@internetarchive/bookreader 5.0.0-64 → 5.0.0-65
Sign up to get free protection for your applications and to get access to all the features.
- package/BookReader/BookReader.css +2 -1
- package/BookReader/BookReader.js +1 -1
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +2 -2
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/plugins/plugin.search.js +1 -1
- package/BookReader/plugins/plugin.search.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/BookReader/plugins/plugin.url.js +1 -1
- package/BookReader/plugins/plugin.url.js.map +1 -1
- package/CHANGELOG.md +5 -0
- package/package.json +13 -13
- package/src/BookReader.js +0 -5
- package/src/BookReader/DebugConsole.js +0 -54
- package/tests/jest/BookReader/DebugConsole.test.js +0 -25
package/BookReader/BookReader.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
/*! For license information please see BookReader.js.LICENSE.txt */
|
2
|
-
(function(){var __webpack_modules__={105:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return DebugConsole}});var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9826),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1539),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9600),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6649),core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6078),core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2526),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1817),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9653),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2165),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6992),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(8783),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3948),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_12__),$=__webpack_require__(5311);function _typeof(t){return _typeof="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},_typeof(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_toPropertyKey(r.key),r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(t,e){if("object"!==_typeof(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.on("submit",(function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];_realLog.apply(void 0,e),_this.logToScreen(e)},window.onerror=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return _this.logToScreen(e)}}},{key:"logToScreen",value:function(t){var e=t.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==e?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(e,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(t,e,n){"use strict";n.d(e,{RS:function(){return h},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 i(t){return i="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},i(t)}function o(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}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<e;n++)r[n]=t[n];return r}function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.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,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new O(i||[]);return r(a,"_invoke",{value:k(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function m(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(C([])));b&&b!==e&&n.call(b,a)&&(g=b);var _=m.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(r,a,s,u){var c=h(t[r],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==i(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;r(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 k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)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=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(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,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function c(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}var f=function(){function t(e,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.page=e,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var e,n;return e=t,n=[{key:"update",value:function(t){var e,n,i=t.dimensions,o=void 0===i?null:i,a=t.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var l=this.imageCache.imageLoaded(this.page.index,s),f=!l&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(e=this.$img)||void 0===e?void 0:e[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var d=[];return l||(this.$container.addClass("BRpageloading"),d.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),f&&d.push('url("'.concat(this.page.getURI(f,0),'") center/100% 100% no-repeat')),l||this.$img.css("background",d.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,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,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 h(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 d(t){var e=t.l,n=t.r,r=t.b,i=t.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-e).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function p(t,e,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=i.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=i.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(i)}var f,h=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,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(e.entries());try{for(h.s();!(f=h.n()).done;){var p=o(f.value,2),v=p[0],m=d(p[1]);s&&m.setAttribute("class",s[v]),c.appendChild(m)}}catch(t){h.e(t)}finally{h.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 i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:k(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function m(){}var g={};l(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(C([])));b&&b!==e&&n.call(b,s)&&(g=b);var _=m.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(o,a,s,u){var c=h(t[o],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){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)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=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(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,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(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,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=m,o(_,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:v,configurable:!0}),v.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),l(_,c,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,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);n<e;n++)r[n]=t[n];return r}function u(t){t.bind("mousedown",(function(){return!1})),t[0].onselectstart=function(){return!1}}function c(t,e,n){return Math.min(Math.max(t,e),n)}function l(t,e){return t/e*100+"%"}function f(t,e){return!e.includes(t)}function h(){var t=arguments.length>0&&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?h(n.shadowRoot,!0):n}function d(){var t=h(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(/</g,"<").replace(/"/g,""")}function m(t){return decodeURIComponent(t).replace(/\+/g," ")}function g(t){return encodeURIComponent(t).replace(/%20/g,"+")}function y(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,o)}),e),a&&t.apply(i,o)}}function b(t,e,n){var r,i;return e||(e=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+e?(clearTimeout(i),i=setTimeout((function(){r=o,t.apply(n,a)}),e)):(r=o,t.apply(n,a))}}function _(t){if("function"==typeof t.CustomEvent)return!1;t.CustomEvent=w}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,i=e.cancelable,o=void 0!==i&&i,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,o,s),u}function x(){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 k(t){return t.reduce((function(t,e){return t+e}),0)}function E(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,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function S(t,e){return t.length==e.length&&t.every((function(t,n){return t==e[n]}))}function P(t,e){return t&&e&&!S(t,e)}function O(t){return C.apply(this,arguments)}function C(){return(C=a(i().mark((function t(e){return i().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 T(t){return j.apply(this,arguments)}function j(){return j=a(i().mark((function t(e){var n,r,o,a,s,u,c,l,f,h,d,p=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(n=p.length>1&&void 0!==p[1]?p[1]:{}).step,o=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,h=Date.now();case 2:if(!(Date.now()-h<s)){t.next=10;break}if(d=e(),!c(d)){t.next=6;break}return t.abrupt("return",d);case 6:return t.next=8,f(o);case 8:t.next=2;break;case 10:case"end":return t.stop()}}),t)}))),j.apply(this,arguments)}function L(t,e){return new Promise((function(n){t.addEventListener(e,(function r(i){t.removeEventListener(e,r),n(i)}))}))}function R(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}n.r(e),n.d(e,{PolyfilledCustomEvent:function(){return w},arrChanged:function(){return P},arrEquals:function(){return S},calcScreenDPI:function(){return x},clamp:function(){return c},cssPercentage:function(){return l},debounce:function(){return y},decodeURIComponentPlus:function(){return m},disableSelect:function(){return u},encodeURIComponentPlus:function(){return g},escapeHTML:function(){return v},escapeRegExp:function(){return R},genToArray:function(){return E},getActiveElement:function(){return h},getIFrameDocument:function(){return p},isInputActive:function(){return d},notInArray:function(){return f},poll:function(){return T},polyfillCustomEvent:function(){return _},promisifyEvent:function(){return L},sleep:function(){return O},sum:function(){return k},throttle:function(){return b}}),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(9714),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(2443),n(3680),n(3706),n(2703),n(489),n(4747),n(5069)},9662:function(t,e,n){var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(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),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(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),i=n(1400),o=n(6244);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].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),i=n(6916),o=n(7908),a=n(3411),s=n(7659),u=n(4411),c=n(6244),l=n(6135),f=n(4121),h=n(1246),d=Array;t.exports=function(t){var e=o(t),n=u(this),p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v;m&&(v=r(v,p>2?arguments[2]:void 0));var g,y,b,_,w,x,k=h(e),E=0;if(!k||this===d&&s(k))for(g=c(e),y=n?new this(g):d(g);g>E;E++)x=m?v(e[E],E):e[E],l(y,E,x);else for(w=(_=f(e,k)).next,y=n?new this:[];!(b=i(w,_)).done;E++)x=m?a(_,v,[b.value,E],!0):b.value,l(y,E,x);return y.length=E,y}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(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),i=n(1702),o=n(8361),a=n(7908),s=n(6244),u=n(5417),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(p,v,m,g){for(var y,b,_=a(p),w=o(_),x=r(v,m),k=s(w),E=0,S=g||u,P=e?S(p,k):n||h?S(p,0):void 0;k>E;E++)if((d||E in w)&&(b=x(y=w[E],E,_),t))if(e)P[E]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:c(P,y)}else switch(t){case 4:return!1;case 7:c(P,y)}return f?-1:i||l?l:P}};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),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=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),i=n(7908),o=n(8361),a=n(6244),s=TypeError,u=function(t){return function(e,n,u,c){r(n);var l=i(e),f=o(l),h=a(l),d=t?h-1:0,p=t?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:u(!1),right:u(!0)}},3658:function(t,e,n){"use strict";var r=n(9781),i=n(3157),o=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(i(t)&&!a(t,"length").writable)throw o("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),i=n(6244),o=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),c=r(e,u),l=r(void 0===n?u:n,u),f=a(s(l-c,0)),h=0;c<l;c++,h++)o(f,h,t[c]);return f.length=h,f}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,u),e),o(r(t,u),e),e)},a=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},7475:function(t,e,n){var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:function(t,e,n){"use strict";var r=n(30),i=n(7045),o=n(9190),a=n(9974),s=n(5787),u=n(8554),c=n(408),l=n(1656),f=n(6178),h=n(6340),d=n(9781),p=n(2423).fastKey,v=n(9909),m=v.set,g=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,i){s(t,h),m(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:n})})),h=f.prototype,v=g(e),y=function(t,e,n){var r,i,o=v(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=v(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(h,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=a(t,arguments.length>1?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)}}),o(h,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)}}),d&&i(h,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);l(t,e,(function(t,e){m(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(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),h(e)}}},9320:function(t,e,n){"use strict";var r=n(1702),i=n(9190),o=n(2423).getWeakData,a=n(5787),s=n(9670),u=n(8554),c=n(111),l=n(408),f=n(2092),h=n(2597),d=n(9909),p=d.set,v=d.getterFor,m=f.find,g=f.findIndex,y=r([].splice),b=0,_=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},x=function(t,e){return m(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var n=x(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(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,i){a(t,d),p(t,{type:e,id:b++,frozen:void 0}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,m=v(e),g=function(t,e,n){var r=m(t),i=o(s(e),!0);return!0===i?_(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=m(this);if(!c(t))return!1;var n=o(t);return!0===n?_(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!c(t))return!1;var n=o(t);return!0===n?_(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=m(this);if(c(t)){var n=o(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),f}}},7710:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(1702),a=n(4705),s=n(8052),u=n(2423),c=n(408),l=n(5787),f=n(614),h=n(8554),d=n(111),p=n(7293),v=n(7072),m=n(8003),g=n(9587);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=y?"set":"add",w=i[t],x=w&&w.prototype,k=w,E={},S=function(t){var e=o(x[t]);s(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(w)||!(b||x.forEach&&!p((function(){(new w).entries().next()})))))k=n.getConstructor(e,t,y,_),u.enable();else if(a(t,!0)){var P=new k,O=P[_](b?{}:-0,1)!=P,C=p((function(){P.has(1)})),T=v((function(t){new w(t)})),j=!b&&p((function(){for(var t=new w,e=5;e--;)t[_](e,e);return!t.has(-0)}));T||((k=e((function(t,e){l(t,x);var n=g(new w,t,k);return h(e)||c(e,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=x,x.constructor=k),(C||j)&&(S("delete"),S("has"),y&&S("get")),(j||O)&&S(_),b&&x.clear&&delete x.clear}return E[t]=k,r({global:!0,constructor:!0,forced:k!=w},E),m(k,t),b||n.setStrong(k,t,y),k}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6178:function(t){t.exports=function(t,e){return{value:t,done:e}}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8709:function(t,e,n){"use strict";var r=n(9670),i=n(2140),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return i(this,t)}},7045:function(t,e,n){var r=n(6339),i=n(3070);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},8052:function(t,e,n){var r=n(614),i=n(3070),o=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9190:function(t,e,n){var r=n(8052);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},3072:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},5117:function(t,e,n){"use strict";var r=n(6330),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},7207:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)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,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},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),i=n(5268);t.exports=!r&&!i&&"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);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof 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);t.exports="undefined"!=typeof process&&"process"==r(process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},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),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,h,d,p=t.target,v=t.global,m=t.stat;if(n=v?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(m?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,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),i=n(8052),o=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 h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var v=r(/./[h]),m=e(h,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,m[0]),i(l,h,m[1])}f&&u(l[h],"sham",!0)}},6790:function(t,e,n){"use strict";var r=n(3157),i=n(6244),o=n(7207),a=n(9974),s=function(t,e,n,u,c,l,f,h){for(var d,p,v=c,m=0,g=!!f&&a(f,h);m<u;)m in n&&(d=g?g(n[m],m,e):n[m],l>0&&r(d)?(p=i(d),v=s(t,e,d,p,v,l-1)-1):(o(v+1),t[v]=d),v++),m++;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),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(t,e,n){var r=n(1470),i=n(9662),o=n(4374),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?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),i=n(9662),o=n(111),a=n(2597),s=n(206),u=n(4374),c=Function,l=r([].concat),f=r([].join),h={};t.exports=u?c.bind:function(t){var e=i(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(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(u.prototype=n),u}},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},5668:function(t,e,n){var r=n(1702),i=n(9662);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},1470:function(t,e,n){var r=n(4326),i=n(1702);t.exports=function(t){if("Function"===r(t))return i(t)}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(8554),a=n(7497),s=n(5112)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},4121:function(t,e,n){var r=n(6916),i=n(9662),o=n(9670),a=n(6330),s=n(1246),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw u(a(t)+" is not iterable")}},8044:function(t,e,n){var r=n(1702),i=n(3157),o=n(614),a=n(4326),s=n(1340),u=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r<e;r++){var c=t[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!=a(c)&&"String"!=a(c)||u(n,s(c))}var l=n.length,f=!0;return function(t,e){if(f)return f=!1,e;if(i(this))return e;for(var r=0;r<l;r++)if(n[r]===t)return e}}}},8173:function(t,e,n){var r=n(9662),i=n(8554);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},647:function(t,e,n){var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}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}()||this||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},842:function(t){t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},2423:function(t,e,n){var r=n(2109),i=n(1702),o=n(3501),a=n(111),s=n(2597),u=n(3070).f,c=n(8006),l=n(1156),f=n(2050),h=n(9711),d=n(6677),p=!1,v=h("meta"),m=0,g=function(t){u(t,v,{value:{objectID:"O"+m++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!f(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&f(t)&&!s(t,v)&&g(t),t}};o[v]=!0},9909:function(t,e,n){var r,i,o,a=n(4811),s=n(7854),u=n(111),c=n(8880),l=n(2597),f=n(5465),h=n(6200),d=n(3501),p="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw v(p);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var y=h("state");d[y]=!0,r=function(t,e){if(l(t,y))throw v(p);return e.facade=t,c(t,y,e),e},i=function(t){return l(t,y)?t[y]:{}},o=function(t){return l(t,y)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t,e,n){var r=n(4154),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(c),v=function(t){if(!o(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(t))}catch(t){return!0}};m.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?m:v},5032:function(t,e,n){var r=n(2597);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,n){var r=n(614),i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:function(t,e,n){var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},408:function(t,e,n){var r=n(9974),i=n(6916),o=n(9670),a=n(6330),s=n(7659),u=n(6244),c=n(7976),l=n(4121),f=n(1246),h=n(9212),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var m,g,y,b,_,w,x,k=n&&n.that,E=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),P=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),C=r(e,k),T=function(t){return m&&h(m,"normal",t),new p(!0,t)},j=function(t){return E?(o(t),O?C(t[0],t[1],T):C(t[0],t[1])):O?C(t,T):C(t)};if(S)m=t.iterator;else if(P)m=t;else{if(!(g=f(t)))throw d(a(t)+" is not iterable");if(s(g)){for(y=0,b=u(t);b>y;y++)if((_=j(t[y]))&&c(v,_))return _;return new p(!1)}m=l(t,g)}for(w=S?t.next:m.next;!(x=i(w,m)).done;){try{_=j(x.value)}catch(t){h(m,"throw",t)}if("object"==typeof _&&_&&c(v,_))return _}return new p(!1)}},9212:function(t,e,n){var r=n(6916),i=n(9670),o=n(8173);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(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 i(a),n}},3061:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=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=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},1656:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),a=n(6530),s=n(614),u=n(3061),c=n(9518),l=n(7674),f=n(8003),h=n(8880),d=n(8052),p=n(5112),v=n(7497),m=n(3383),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",k="values",E="entries",S=function(){return this};t.exports=function(t,e,n,a,p,m,P){u(n,e,a);var O,C,T,j=function(t){if(t===p&&M)return M;if(!_&&t in A)return A[t];switch(t){case x:case k:case E:return function(){return new n(this,t)}}return function(){return new n(this)}},L=e+" Iterator",R=!1,A=t.prototype,I=A[w]||A["@@iterator"]||p&&A[p],M=!_&&I||j(p),N="Array"==e&&A.entries||I;if(N&&(O=c(N.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===b||(l?l(O,b):s(O[w])||d(O,w,S)),f(O,L,!0,!0),o&&(v[L]=S)),g&&p==k&&I&&I.name!==k&&(!o&&y?h(A,"name",k):(R=!0,M=function(){return i(I,this)})),p)if(C={values:j(k),keys:m?M:j(x),entries:j(E)},P)for(T in C)(_||R||!(T in A))&&d(A,T,C[T]);else r({target:e,proto:!0,forced:_||R},C);return o&&!P||A[w]===M||d(A,w,M,{name:p}),v[e]=M,C}},3383:function(t,e,n){"use strict";var r,i,o,a=n(7293),s=n(614),u=n(111),c=n(30),l=n(9518),f=n(8052),h=n(5112),d=n(1913),p=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:d&&(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(1702),i=n(7293),o=n(614),a=n(2597),s=n(9781),u=n(6530).CONFIGURABLE,c=n(2788),l=n(9909),f=l.enforce,h=l.get,d=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+m(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return o(this)&&h(this).source||c(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,i,o,a,s,u=n(7854),c=n(9974),l=n(1236).f,f=n(261).set,h=n(8572),d=n(8334),p=n(1528),v=n(1036),m=n(5268),g=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,_=u.Promise,w=l(u,"queueMicrotask"),x=w&&w.value;if(!x){var k=new h,E=function(){var t,e;for(m&&(t=b.domain)&&t.exit();e=k.get();)try{e()}catch(t){throw k.head&&r(),t}t&&t.enter()};d||m||v||!g||!y?!p&&_&&_.resolve?((a=_.resolve(void 0)).constructor=_,s=c(a.then,a),r=function(){s(E)}):m?r=function(){b.nextTick(E)}:(f=c(f,u),r=function(){f(E)}):(i=!0,o=y.createTextNode(""),new g(E).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),x=function(t){k.head||r(),k.add(t)}}t.exports=x},8523:function(t,e,n){"use strict";var r=n(9662),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},3929:function(t,e,n){var r=n(7850),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},3009:function(t,e,n){var r=n(7854),i=n(7293),o=n(1702),a=n(1340),s=n(3111).trim,u=n(1361),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},1574:function(t,e,n){"use strict";var r=n(9781),i=n(1702),o=n(6916),a=n(7293),s=n(1956),u=n(5181),c=n(5296),l=n(7908),f=n(8361),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=u.f,d=c.f;i>a;)for(var v,m=f(arguments[a++]),g=h?p(s(m),h(m)):s(m),y=g.length,b=0;y>b;)v=g[b++],r&&!o(d,m,v)||(n[v]=m[v]);return n}:h},30:function(t,e,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200),f="prototype",h="script",d=l("IE_PROTO"),p=function(){},v=function(t){return"<"+h+">"+t+"</"+h+">"},m=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&r?m(r):(e=c("iframe"),n="java"+h+":",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):m(r);for(var i=a.length;i--;)delete g[f][a[i]];return g()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=i(t),n=new p,p[f]=null,n[d]=t):n=g(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],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),i)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),i=n(6916),o=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(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=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 o(t)}catch(t){return a(s)}}(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(2597),i=n(614),o=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=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},2050:function(t,e,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!=o(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),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(5668),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(6916),i=n(614),o=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.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),i=n(2492),o=n(614),a=n(4705),s=n(2788),u=n(5112),c=n(7871),l=n(3823),f=n(1913),h=n(7392),d=i&&i.prototype,p=u("species"),v=!1,m=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((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)&&!m}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:v}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},612:function(t,e,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;t.exports=o||!i((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},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},7651:function(t,e,n){var r=n(6916),i=n(9670),o=n(614),a=n(4326),s=n(2261),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=r(n,t,e);return null!==c&&i(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,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),f=n(30),h=n(9909).get,d=n(9441),p=n(7168),v=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=a("".charAt),b=a("".indexOf),_=a("".replace),w=a("".slice),x=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),k=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(x||E||k||d||p)&&(g=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),S=s(t),P=p.raw;if(P)return P.lastIndex=d.lastIndex,e=o(g,P,S),d.lastIndex=P.lastIndex,e;var O=p.groups,C=k&&d.sticky,T=o(u,d),j=d.source,L=0,R=S;if(C&&(T=_(T,"y",""),-1===b(T,"g")&&(T+="g"),R=w(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(S,d.lastIndex-1))&&(j="(?: "+j+")",R=" "+R,L++),n=new RegExp("^(?:"+j+")",T)),E&&(n=new RegExp("^"+j+"$(?!\\s)",T)),x&&(r=d.lastIndex),i=o(m,C?n:d,R),C?i?(i.input=w(i.input,L),i[0]=w(i[0],L),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),E&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=c=f(null),a=0;a<O.length;a++)c[(l=O[a])[0]]=i[l[1]];return i}),t.exports=g},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:function(t,e,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(8554),i=TypeError;t.exports=function(t){if(r(t))throw i("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),i=n(7045),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var r=n(9670),i=n(9483),o=n(8554),a=n(5112)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},8710:function(t,e,n){var r=n(1702),i=n(9303),o=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=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=n(1340),a=n(1361),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},6293:function(t,e,n){var r=n(7392),i=n(7293),o=n(7854).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},6532:function(t,e,n){var r=n(6916),i=n(5005),o=n(5112),a=n(8052);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("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,i,o,a,s=n(7854),u=n(2104),c=n(9974),l=n(614),f=n(2597),h=n(7293),d=n(490),p=n(206),v=n(317),m=n(8053),g=n(8334),y=n(5268),b=s.setImmediate,_=s.clearImmediate,w=s.process,x=s.Dispatch,k=s.Function,E=s.MessageChannel,S=s.String,P=0,O={},C="onreadystatechange";h((function(){r=s.location}));var T=function(t){if(f(O,t)){var e=O[t];delete O[t],e()}},j=function(t){return function(){T(t)}},L=function(t){T(t.data)},R=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){m(arguments.length,1);var e=l(t)?t:k(t),n=p(arguments,1);return O[++P]=function(){u(e,void 0,n)},i(P),P},_=function(t){delete O[t]},y?i=function(t){w.nextTick(j(t))}:x&&x.now?i=function(t){x.now(j(t))}:E&&!g?(a=(o=new E).port2,o.port1.onmessage=L,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(R)?(i=R,s.addEventListener("message",L,!1)):i=C in v("script")?function(t){d.appendChild(v("script"))[C]=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:b,clear:_}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(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),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(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),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(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),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(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),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},5143:function(t,e,n){var r=n(7293),i=n(5112),o=n(9781),a=n(1913),s=i("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})),a&&!t.toJSON||!e.size&&(a||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},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),i=n(7293);t.exports=r&&i((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<n)throw e("Not enough arguments");return t}},4811:function(t,e,n){var r=n(7854),i=n(614),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},6800:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(6293),u=n(3307),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(c,t)?c[t]:f("Symbol."+t)),l[t]}},1361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),u=n(6244),c=n(7207),l=n(6135),f=n(5417),h=n(1194),d=n(5112),p=n(7392),v=d("isConcatSpreadable"),m=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(t){var e,n,r,i,o,a=s(this),h=f(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(g(o=-1===e?a:arguments[e]))for(i=u(o),c(d+i),n=0;n<i;n++,d++)n in o&&l(h,d,o[n]);else c(d+1),l(h,d++,o);return h.length=d,h}})},3290:function(t,e,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=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 i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(t,e,n){"use strict";var r=n(2109),i=n(2092).find,o=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 i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=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 o(t),(e=u(n,0)).length=i(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),i=n(6790),o=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=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},1038:function(t,e,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:function(t,e,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(7293),a=n(1223);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(1656),c=n(6178),l=n(1913),f=n(9781),h="Array Iterator",d=a.set,p=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,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=o.Arguments=o.Array;if(i("keys"),i("values"),i("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),i=n(1702),o=n(8361),a=n(5656),s=n(9341),u=i([].join);r({target:"Array",proto:!0,forced:o!=Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392);r({target:"Array",proto:!0,forced:!n(5268)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},5069:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3157),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),s=n(1400),u=n(6244),c=n(5656),l=n(6135),f=n(5112),h=n(1194),d=n(206),p=h("slice"),v=f("species"),m=Array,g=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,h=c(this),p=u(h),y=s(t,p),b=s(void 0===e?p:e,p);if(i(h)&&(n=h.constructor,(o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===m||void 0===n))return d(h,y,b);for(r=new(void 0===n?m:n)(g(b-y,0)),f=0;y<b;y++,f++)y in h&&l(r,f,h[y]);return r.length=f,r}})},2707:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(5117),c=n(1340),l=n(7293),f=n(4362),h=n(9341),d=n(8886),p=n(256),v=n(7392),m=n(8008),g=[],y=i(g.sort),b=i(g.push),_=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),x=h("sort"),k=!l((function(){if(v)return v<70;if(!(d&&d>3)){if(p)return!0;if(m)return m<603;var t,e,n,r,i="";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++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:_||!w||!x||!k},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(k)return void 0===t?y(e):y(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&b(i,e[r]);for(f(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},561:function(t,e,n){"use strict";var r=n(2109),i=n(7908),o=n(1400),a=n(9303),s=n(6244),u=n(3658),c=n(7207),l=n(5417),f=n(6135),h=n(5117),d=n(1194)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,m,g,y,b=i(this),_=s(b),w=o(t,_),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=_-w):(n=x-2,r=v(p(a(e),0),_-w)),c(_+n-r),d=l(b,r),m=0;m<r;m++)(g=w+m)in b&&f(d,m,b[g]);if(d.length=r,n<r){for(m=w;m<_-r;m++)y=m+n,(g=m+r)in b?b[y]=b[g]:h(b,y);for(m=_;m>_-r+n;m--)h(b,m-1)}else if(n>r)for(m=_-r;m>w;m--)y=m+n-1,(g=m+r-1)in b?b[y]=b[g]:h(b,y);for(m=0;m<n;m++)b[m+w]=arguments[m+2];return u(b,_-r+n),d}})},9244:function(t,e,n){n(1223)("flatMap")},3792:function(t,e,n){n(1223)("flat")},6078:function(t,e,n){var r=n(2597),i=n(8052),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),a=n(7045),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},5837:function(t,e,n){var r=n(2109),i=n(7854);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(6916),s=n(1702),u=n(7293),c=n(614),l=n(2190),f=n(206),h=n(8044),d=n(6293),p=String,v=i("JSON","stringify"),m=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,E=!d||u((function(){var t=i("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),P=function(t,e){var n=f(arguments),r=h(e);if(c(r)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(r)&&(e=a(r,this,p(t),e)),!l(e))return e},o(v,null,n)},O=function(t,e,n){var r=g(n,e-1),i=g(n,e+1);return m(x,t)&&!m(k,i)||m(k,t)&&!m(x,r)?"\\u"+_(y(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:E||S},{stringify:function(t,e,n){var r=f(arguments),i=o(E?P:v,null,r);return S&&"string"==typeof i?b(i,w,O):i}})},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";n(7710)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(t,e,n){n(9098)},4914:function(t,e,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},2420:function(t,e,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(t,e,n){n(8003)(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(2109),i=n(1913),o=n(9781),a=n(7854),s=n(857),u=n(1702),c=n(4705),l=n(2597),f=n(9587),h=n(7976),d=n(2190),p=n(7593),v=n(7293),m=n(8006).f,g=n(1236).f,y=n(3070).f,b=n(863),_=n(3111).trim,w="Number",x=a[w],k=s[w],E=x.prototype,S=a.TypeError,P=u("".slice),O=u("".charCodeAt),C=c(w,!x(" 0o1")||!x("0b1")||x("+0x1")),T=function(t){var e,n=arguments.length<1?0:x(function(t){var e=p(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,o,a,s,u,c=p(t,"number");if(d(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(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,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=P(c,2)).length,s=0;s<a;s++)if((u=O(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c}(e)}(t));return h(E,e=this)&&v((function(){b(e)}))?f(Object(n),this,T):n};T.prototype=E,C&&!i&&(E.constructor=T),r({global:!0,constructor:!0,wrap:!0,forced:C},{Number:T});var j=function(t,e){for(var n,r=o?m(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(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&y(t,n,g(e,n))};i&&k&&j(s[w],k),(C||i)&&j(s[w],x)},9601:function(t,e,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},3371:function(t,e,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},5003:function(t,e,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:function(t,e,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},9660:function(t,e,n){var r=n(2109),i=n(6293),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((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),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(8052),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1058:function(t,e,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=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=o(e.resolve),a=[],s=0,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=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),i=n(1913),o=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:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&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,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),f=n(8052),h=n(7674),d=n(8003),p=n(6340),v=n(9662),m=n(614),g=n(111),y=n(5787),b=n(6707),_=n(261).set,w=n(5948),x=n(842),k=n(2534),E=n(8572),S=n(9909),P=n(2492),O=n(3702),C=n(8523),T="Promise",j=O.CONSTRUCTOR,L=O.REJECTION_EVENT,R=O.SUBCLASSING,A=S.getterFor(T),I=S.set,M=P&&P.prototype,N=P,$=M,D=c.TypeError,U=c.document,B=c.process,F=C.f,z=F,W=!!(U&&U.createEvent&&c.dispatchEvent),q="unhandledrejection",H=function(t){var e;return!(!g(t)||!m(e=t.then))&&e},V=function(t,e){var n,r,i,o=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=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===t.promise?c(D("Promise-chain cycle")):(r=H(n))?l(r,n,u,c):u(n)):c(o)}catch(t){f&&!i&&f.exit(),c(t)}},G=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)V(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},Y=function(t,e,n){var r,i;W?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!L&&(i=c["on"+t])?i(r):t===q&&x("Unhandled promise rejection",n)},K=function(t){l(_,c,(function(){var e,n=t.facade,r=t.value;if(X(t)&&(e=k((function(){u?B.emit("unhandledRejection",r,n):Y(q,n,r)})),t.rejection=u||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){l(_,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):Y("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,G(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw D("Promise can't be resolved itself");var r=H(e);r?w((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,G(t,!1))}catch(e){Q({done:!1},e,t)}}};if(j&&($=(N=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:T,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:void 0})}).prototype=f($,"then",(function(t,e){var n=A(this),r=F(b(this,N));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=u?B.domain:void 0,0==n.state?n.reactions.add(r):w((function(){V(r,n)})),r.promise})),i=function(){var t=new r,e=A(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},C.f=F=function(t){return t===N||void 0===t?new i(t):z(t)},!s&&m(P)&&M!==Object.prototype)){o=M.then,R||f(M,"then",(function(t,e){var n=this;return new N((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(t){}h&&h(M,$)}a({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:N}),d(N,T,!1,!0),p(T)},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),i=n(6916),o=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=o(e.resolve);u(t,(function(t){i(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),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),i=n(5005),o=n(1913),a=n(2492),s=n(3702).CONSTRUCTOR,u=n(9478),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},2419:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(7065),s=n(9483),u=n(9670),c=n(111),l=n(30),f=n(7293),h=i("Reflect","construct"),d=Object.prototype,p=[].push,v=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),m=!f((function(){h((function(){}))})),g=v||m;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(m&&!v)return h(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 o(p,r,e),new(o(a,t,r))}var i=n.prototype,f=l(c(i)?i:d),g=o(t,f,e);return c(g)?g:f}})},4819:function(t,e,n){var r=n(2109),i=n(6916),o=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:i(r.get,f):o(l=c(e))?t(l,n,f):void 0}})},4603:function(t,e,n){var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),u=n(8880),c=n(8006).f,l=n(7976),f=n(7850),h=n(1340),d=n(4706),p=n(2999),v=n(2626),m=n(8052),g=n(7293),y=n(2597),b=n(9909).enforce,_=n(6340),w=n(5112),x=n(9441),k=n(7168),E=w("match"),S=i.RegExp,P=S.prototype,O=i.SyntaxError,C=o(P.exec),T=o("".charAt),j=o("".replace),L=o("".indexOf),R=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,M=/a/g,N=new S(I)!==I,$=p.MISSED_STICKY,D=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!N||$||x||k||g((function(){return M[E]=!1,S(I)!=I||S(M)==M||"/a/i"!=S(I,"i")}))))){for(var U=function(t,e){var n,r,i,o,a,c,p=l(P,this),v=f(t),m=void 0===e,g=[],_=t;if(!p&&v&&m&&t.constructor===U)return t;if((v||l(P,t))&&(t=t.source,m&&(e=d(_))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),_=t,x&&"dotAll"in I&&(r=!!e&&L(e,"s")>-1)&&(e=j(e,/s/g,"")),n=e,$&&"sticky"in I&&(i=!!e&&L(e,"y")>-1)&&D&&(e=j(e,/y/g,"")),k&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=T(t,r)))e+=T(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:C(A,R(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||y(a,l))throw new O("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t),t=o[0],g=o[1]),a=s(S(t,e),p?this:P,U),(r||i||g.length)&&(c=b(a),r&&(c.dotAll=!0,c.raw=U(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=T(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+T(t,++r);return i}(t),n)),i&&(c.sticky=!0),g.length&&(c.groups=g)),t!==_)try{u(a,"source",""===_?"(?:)":_)}catch(t){}return a},B=c(S),F=0;B.length>F;)v(U,S,B[F++]);P.constructor=U,U.prototype=P,m(i,"RegExp",U,{constructor:!0})}_("RegExp")},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,i=n(8052),o=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"})})),h=r&&l.name!=c;(f||h)&&i(RegExp.prototype,c,(function(){var t=o(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,i=n(2109),o=n(1470),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),f=n(4964),h=n(1913),d=o("".endsWith),p=o("".slice),v=Math.min,m=f("endsWith");i({target:"String",proto:!0,forced:!(!h&&!m&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||m)},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:v(s(n),r),o=u(t);return d?d(e,o,i):p(e,i-o.length,i)===o}})},2023:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3929),a=n(4488),s=n(1340),u=n(4964),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(1656),s=n(6178),u="String Iterator",c=o.set,l=o.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},4723:function(t,e,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(8554),s=n(7466),u=n(1340),c=n(4488),l=n(8173),f=n(1530),h=n(7651);i("match",(function(t,e,n){return[function(e){var n=c(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var l,d=[],p=0;null!==(l=h(r,i));){var v=u(l[0]);d[p]=v,""===v&&(r.lastIndex=f(i,s(r.lastIndex),c)),p++}return 0===p?null:d}]}))},5306:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),u=n(9670),c=n(614),l=n(8554),f=n(9303),h=n(7466),d=n(1340),p=n(4488),v=n(1530),m=n(8173),g=n(647),y=n(7651),b=n(5112)("replace"),_=Math.max,w=Math.min,x=o([].concat),k=o([].push),E=o("".indexOf),S=o("".slice),P="$0"==="a".replace(/./,"$0"),O=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var o=O?"$":"$0";return[function(t,n){var r=p(this),o=l(t)?void 0:m(t,b);return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=u(this),s=d(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var l=n(e,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=d(i));var m=a.global;if(m){var b=a.unicode;a.lastIndex=0}for(var P=[];;){var O=y(a,s);if(null===O)break;if(k(P,O),!m)break;""===d(O[0])&&(a.lastIndex=v(s,h(a.lastIndex),b))}for(var C,T="",j=0,L=0;L<P.length;L++){for(var R=d((O=P[L])[0]),A=_(w(f(O.index),s.length),0),I=[],M=1;M<O.length;M++)k(I,void 0===(C=O[M])?C:String(C));var N=O.groups;if(p){var $=x([R],I,A,s);void 0!==N&&k($,N);var D=d(r(i,void 0,$))}else D=g(R,s,A,I,N,i);A>=j&&(T+=S(s,j,A)+D,j=A+R.length)}return T+S(s,j)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!P||O)},4765:function(t,e,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(8554),s=n(4488),u=n(1150),c=n(1340),l=n(8173),f=n(7651);i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},3123:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(9670),u=n(8554),c=n(7850),l=n(4488),f=n(6707),h=n(1530),d=n(7466),p=n(1340),v=n(8173),m=n(1589),g=n(7651),y=n(2261),b=n(2999),_=n(7293),w=b.UNSUPPORTED_Y,x=4294967295,k=Math.min,E=[].push,S=o(/./.exec),P=o(E),O=o("".slice),C=!_((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 o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(l(this)),a=void 0===n?x:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!c(t))return i(e,o,t,a);for(var s,u,f,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,g=new RegExp(t.source,d+"g");(s=i(y,g,o))&&!((u=g.lastIndex)>v&&(P(h,O(o,v,s.index)),s.length>1&&s.index<o.length&&r(E,h,m(s,1)),f=s[0].length,v=u,h.length>=a));)g.lastIndex===s.index&&g.lastIndex++;return v===o.length?!f&&S(g,"")||P(h,""):P(h,O(o,v)),h.length>a?m(h,0,a):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=l(this),a=u(e)?void 0:v(e,t);return a?i(a,e,r,n):i(o,p(r),e,n)},function(t,r){var i=s(this),a=p(t),u=n(o,i,a,r,o!==e);if(u.done)return u.value;var c=f(i,RegExp),l=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),m=new c(w?"^(?:"+i.source+")":i,v),y=void 0===r?x:r>>>0;if(0===y)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var b=0,_=0,E=[];_<a.length;){m.lastIndex=w?0:_;var S,C=g(m,w?O(a,_):a);if(null===C||(S=k(d(m.lastIndex+(w?_:0)),a.length))===b)_=h(a,_,l);else{if(P(E,O(a,b,_)),E.length===y)return E;for(var T=1;T<=C.length-1;T++)if(P(E,C[T]),E.length===y)return E;_=b=S}}return P(E,O(a,b)),E}]}),!C,w)},6755:function(t,e,n){"use strict";var r,i=n(2109),o=n(1470),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),f=n(4964),h=n(1913),d=o("".startsWith),p=o("".slice),v=Math.min,m=f("startsWith");i({target:"String",proto:!0,forced:!(!h&&!m&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(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),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(6293),l=n(7293),f=n(2597),h=n(7976),d=n(9670),p=n(5656),v=n(4948),m=n(1340),g=n(9114),y=n(30),b=n(1956),_=n(8006),w=n(1156),x=n(5181),k=n(1236),E=n(3070),S=n(6048),P=n(5296),O=n(8052),C=n(7045),T=n(2309),j=n(6200),L=n(3501),R=n(9711),A=n(5112),I=n(6061),M=n(6800),N=n(6532),$=n(8003),D=n(9909),U=n(2092).forEach,B=j("hidden"),F="Symbol",z="prototype",W=D.set,q=D.getterFor(F),H=Object[z],V=i.Symbol,G=V&&V[z],Y=i.TypeError,K=i.QObject,X=k.f,Z=E.f,J=w.f,Q=P.f,tt=a([].push),et=T("symbols"),nt=T("op-symbols"),rt=T("wks"),it=!K||!K[z]||!K[z].findChild,ot=u&&l((function(){return 7!=y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(H,e);r&&delete H[e],Z(t,e,n),r&&t!==H&&Z(H,e,r)}:Z,at=function(t,e){var n=et[t]=y(G);return W(n,{type:F,tag:t,description:e}),u||(n.description=e),n},st=function(t,e,n){t===H&&st(nt,e,n),d(t);var r=v(e);return d(n),f(et,r)?(n.enumerable?(f(t,B)&&t[B][r]&&(t[B][r]=!1),n=y(n,{enumerable:g(0,!1)})):(f(t,B)||Z(t,B,g(1,{})),t[B][r]=!0),ot(t,r,n)):Z(t,r,n)},ut=function(t,e){d(t);var n=p(e),r=b(n).concat(ht(n));return U(r,(function(e){u&&!o(ct,n,e)||st(t,e,n[e])})),t},ct=function(t){var e=v(t),n=o(Q,this,e);return!(this===H&&f(et,e)&&!f(nt,e))&&(!(n||!f(this,e)||!f(et,e)||f(this,B)&&this[B][e])||n)},lt=function(t,e){var n=p(t),r=v(e);if(n!==H||!f(et,r)||f(nt,r)){var i=X(n,r);return!i||!f(et,r)||f(n,B)&&n[B][r]||(i.enumerable=!0),i}},ft=function(t){var e=J(p(t)),n=[];return U(e,(function(t){f(et,t)||f(L,t)||tt(n,t)})),n},ht=function(t){var e=t===H,n=J(e?nt:p(t)),r=[];return U(n,(function(t){!f(et,t)||e&&!f(H,t)||tt(r,et[t])})),r};c||(V=function(){if(h(G,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=R(t),n=function(t){this===H&&o(n,nt,t),f(this,B)&&f(this[B],e)&&(this[B][e]=!1),ot(this,e,g(1,t))};return u&&it&&ot(H,e,{configurable:!0,set:n}),at(e,t)},O(G=V[z],"toString",(function(){return q(this).tag})),O(V,"withoutSetter",(function(t){return at(R(t),t)})),P.f=ct,E.f=st,S.f=ut,k.f=lt,_.f=w.f=ft,x.f=ht,I.f=function(t){return at(A(t),t)},u&&(C(G,"description",{configurable:!0,get:function(){return q(this).description}}),s||O(H,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),U(b(rt),(function(t){M(t)})),r({target:F,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?y(t):ut(y(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),N(),$(V,F),L[B]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(1702),s=n(2597),u=n(614),c=n(7976),l=n(1340),f=n(7045),h=n(9920),d=o.Symbol,p=d&&d.prototype;if(i&&u(d)&&(!("description"in p)||void 0!==d().description)){var v={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};h(m,d),m.prototype=p,p.constructor=m;var g="Symbol(test)"==String(d("test")),y=a(p.valueOf),b=a(p.toString),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),x=a("".slice);f(p,"description",{configurable:!0,get:function(){var t=y(this);if(s(v,t))return"";var e=b(t),n=g?x(e,7,-1):w(e,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},763:function(t,e,n){var r=n(2109),i=n(5005),o=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(o(c,e))return c[e];var n=i("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),i=n(2597),o=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(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},6649:function(t,e,n){var r=n(6800),i=n(6532);r("toPrimitive"),i()},3680:function(t,e,n){var r=n(5005),i=n(6800),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(t,e,n){"use strict";var r,i=n(6677),o=n(7854),a=n(1702),s=n(9190),u=n(2423),c=n(7710),l=n(9320),f=n(111),h=n(9909).enforce,d=n(7293),p=n(4811),v=Object,m=Array.isArray,g=v.isExtensible,y=v.isFrozen,b=v.isSealed,_=v.freeze,w=v.seal,x={},k={},E=!o.ActiveXObject&&"ActiveXObject"in o,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},P=c("WeakMap",S,l),O=P.prototype,C=a(O.set);if(p)if(E){r=l.getConstructor(S,"WeakMap",!0),u.enable();var T=a(O.delete),j=a(O.has),L=a(O.get);s(O,{delete:function(t){if(f(t)&&!g(t)){var e=h(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.delete(t)}return T(this,t)},has:function(t){if(f(t)&&!g(t)){var e=h(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)&&!g(t)){var e=h(this);return e.frozen||(e.frozen=new r),j(this,t)?L(this,t):e.frozen.get(t)}return L(this,t)},set:function(t,e){if(f(t)&&!g(t)){var n=h(this);n.frozen||(n.frozen=new r),j(this,t)?C(this,t,e):n.frozen.set(t,e)}else C(this,t,e);return this}})}else i&&d((function(){var t=_([]);return C(new P,t,1),!y(t)}))&&s(O,{set:function(t,e){var n;return m(t)&&(y(t)?n=x:b(t)&&(n=k)),C(this,t,e),n==x&&_(t),n==k&&w(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),i=n(8324),o=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 i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),f=a.values,h=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),i[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 d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},5556:function(t,e,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(5143),c=n(8052),l=n(7045),f=n(9190),h=n(8003),d=n(3061),p=n(9909),v=n(5787),m=n(614),g=n(2597),y=n(9974),b=n(648),_=n(9670),w=n(111),x=n(1340),k=n(30),E=n(9114),S=n(4121),P=n(1246),O=n(8053),C=n(5112),T=n(4362),j=C("iterator"),L="URLSearchParams",R=L+"Iterator",A=p.set,I=p.getterFor(L),M=p.getterFor(R),N=Object.getOwnPropertyDescriptor,$=function(t){if(!s)return i[t];var e=N(i,t);return e&&e.value},D=$("fetch"),U=$("Request"),B=$("Headers"),F=U&&U.prototype,z=B&&B.prototype,W=i.RegExp,q=i.TypeError,H=i.decodeURIComponent,V=i.encodeURIComponent,G=a("".charAt),Y=a([].join),K=a([].push),X=a("".replace),Z=a([].shift),J=a([].splice),Q=a("".split),tt=a("".slice),et=/\+/g,nt=Array(4),rt=function(t){return nt[t-1]||(nt[t-1]=W("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return H(t)}catch(e){return t}},ot=function(t){var e=X(t,et," "),n=4;try{return H(e)}catch(t){for(;n;)e=X(e,rt(n--),it);return e}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return st[t]},ct=function(t){return X(V(t),at,ut)},lt=d((function(t,e){A(this,{type:R,iterator:S(I(t).entries),kind:e})}),"Iterator",(function(){var t=M(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),ft=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?tt(t,1):t:x(t)))};ft.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=P(t);if(c)for(n=(e=S(t,c)).next;!(r=o(n,e)).done;){if(a=(i=S(_(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw q("Expected sequence with length 2");K(this.entries,{key:x(s.value),value:x(u.value)})}else for(var l in t)g(t,l)&&K(this.entries,{key:l,value:x(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=Q(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=Q(e,"="),K(this.entries,{key:ot(Z(n)),value:ot(Y(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],K(n,ct(t.key)+"="+ct(t.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){v(this,dt);var t=A(this,new ft(arguments.length>0?arguments[0]:void 0));s||(this.length=t.entries.length)},dt=ht.prototype;if(f(dt,{append:function(t,e){O(arguments.length,2);var n=I(this);K(n.entries,{key:x(t),value:x(e)}),s||this.length++,n.updateURL()},delete:function(t){O(arguments.length,1);for(var e=I(this),n=e.entries,r=x(t),i=0;i<n.length;)n[i].key===r?J(n,i,1):i++;s||(this.length=n.length),e.updateURL()},get:function(t){O(arguments.length,1);for(var e=I(this).entries,n=x(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){O(arguments.length,1);for(var e=I(this).entries,n=x(t),r=[],i=0;i<e.length;i++)e[i].key===n&&K(r,e[i].value);return r},has:function(t){O(arguments.length,1);for(var e=I(this).entries,n=x(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){O(arguments.length,1);for(var n,r=I(this),i=r.entries,o=!1,a=x(t),u=x(e),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?J(i,c--,1):(o=!0,n.value=u));o||K(i,{key:a,value:u}),s||(this.length=i.length),r.updateURL()},sort:function(){var t=I(this);T(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=I(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new lt(this,"keys")},values:function(){return new lt(this,"values")},entries:function(){return new lt(this,"entries")}},{enumerable:!0}),c(dt,j,dt.entries,{name:"entries"}),c(dt,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),s&&l(dt,"size",{get:function(){return I(this).entries.length},configurable:!0,enumerable:!0}),h(ht,L),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:ht}),!u&&m(B)){var pt=a(z.has),vt=a(z.set),mt=function(t){if(w(t)){var e,n=t.body;if(b(n)===L)return e=t.headers?new B(t.headers):new B,pt(e,"content-type")||vt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(t,{body:E(0,x(n)),headers:E(0,e)})}return t};if(m(D)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return D(t,arguments.length>1?mt(arguments[1]):{})}}),m(U)){var gt=function(t){return v(this,F),new U(t,arguments.length>1?mt(arguments[1]):{})};F.constructor=gt,gt.prototype=F,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ht,getState:I}},1637:function(t,e,n){n(5556)},840:function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),f="function",h=Math.round,d=Math.abs,p=Date.now;function v(t,e,n){return setTimeout(x(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(g(t,n[e],n),!0)}function g(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function y(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var b=y((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),_=y((function(t,e){return b(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function k(t,e){return typeof t==f?t.apply(e&&e[0]||s,e):t}function E(t,e){return t===s?e:t}function S(t,e,n){g(T(e),(function(e){t.addEventListener(e,n,!1)}))}function P(t,e,n){g(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function O(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function j(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function L(t){return Array.prototype.slice.call(t,0)}function R(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];j(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function A(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return s}var I=1;function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var N="ontouchstart"in i,$=A(i,"PointerEvent")!==s,D=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U="touch",B="mouse",F=25,z=1,W=4,q=8,H=1,V=2,G=4,Y=8,K=16,X=V|G,Z=Y|K,J=X|Z,Q=["x","y"],tt=["clientX","clientY"];function et(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){k(t.options.enable,[t])&&n.handler(e)},this.init()}function nt(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&z&&r-i==0,a=e&(W|q)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=rt(e)),i>1&&!n.firstMultiple?n.firstMultiple=rt(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=e.center=it(r);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ut(u,c),e.distance=st(u,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==z&&o.eventType!==W||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=at(e.deltaX,e.deltaY);var l,f,h=ot(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,e.scale=a?(l=a.pointers,st((f=r)[0],f[1],tt)/st(l[0],l[1],tt)):1,e.rotation=a?function(t,e){return ut(e[1],e[0],tt)+ut(t[1],t[0],tt)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=q&&(u>F||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,f=ot(u,c,l);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,o=at(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var v=t.element;O(e.srcEvent.target,v)&&(v=e.srcEvent.target),e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function rt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:it(e),deltaX:t.deltaX,deltaY:t.deltaY}}function it(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function ot(t,e,n){return{x:e/t||0,y:n/t||0}}function at(t,e){return t===e?H:d(t)>=d(e)?t<0?V:G:e<0?Y:K}function st(t,e,n){n||(n=Q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function ut(t,e,n){n||(n=Q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}et.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(M(this.element),this.evWin,this.domHandler)}};var ct={mousedown:z,mousemove:2,mouseup:W},lt="mousedown",ft="mousemove mouseup";function ht(){this.evEl=lt,this.evWin=ft,this.pressed=!1,et.apply(this,arguments)}w(ht,et,{handler:function(t){var e=ct[t.type];e&z&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=W),this.pressed&&(e&W&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:B,srcEvent:t}))}});var dt={pointerdown:z,pointermove:2,pointerup:W,pointercancel:q,pointerout:q},pt={2:U,3:"pen",4:B,5:"kinect"},vt="pointerdown",mt="pointermove pointerup pointercancel";function gt(){this.evEl=vt,this.evWin=mt,et.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(vt="MSPointerDown",mt="MSPointerMove MSPointerUp MSPointerCancel"),w(gt,et,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=dt[r],o=pt[t.pointerType]||t.pointerType,a=o==U,s=j(e,t.pointerId,"pointerId");i&z&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(W|q)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var yt={touchstart:z,touchmove:2,touchend:W,touchcancel:q};function bt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,et.apply(this,arguments)}function _t(t,e){var n=L(t.touches),r=L(t.changedTouches);return e&(W|q)&&(n=R(n.concat(r),"identifier",!0)),[n,r]}w(bt,et,{handler:function(t){var e=yt[t.type];if(e===z&&(this.started=!0),this.started){var n=_t.call(this,t,e);e&(W|q)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:t})}}});var wt={touchstart:z,touchmove:2,touchend:W,touchcancel:q},xt="touchstart touchmove touchend touchcancel";function kt(){this.evTarget=xt,this.targetIds={},et.apply(this,arguments)}function Et(t,e){var n=L(t.touches),r=this.targetIds;if(e&(2|z)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=L(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return O(t.target,u)})),e===z)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(W|q)&&delete r[a[i].identifier],i++;return s.length?[R(o.concat(s),"identifier",!0),s]:void 0}w(kt,et,{handler:function(t){var e=wt[t.type],n=Et.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:t})}});var St=2500;function Pt(){et.apply(this,arguments);var t=x(this.handler,this);this.touch=new kt(this.manager,t),this.mouse=new ht(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Ot(t,e){t&z?(this.primaryTouch=e.changedPointers[0].identifier,Ct.call(this,e)):t&(W|q)&&Ct.call(this,e)}function Ct(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),St)}}function Tt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(Pt,et,{handler:function(t,e,n){var r=n.pointerType==U,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Ot.call(this,e,n);else if(i&&Tt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var jt=A(l.style,"touchAction"),Lt=jt!==s,Rt="compute",At="auto",It="manipulation",Mt="none",Nt="pan-x",$t="pan-y",Dt=function(){if(!Lt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function Ut(t,e){this.manager=t,this.set(e)}Ut.prototype={set:function(t){t==Rt&&(t=this.compute()),Lt&&this.manager.element.style&&Dt[t]&&(this.manager.element.style[jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return g(this.manager.recognizers,(function(e){k(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(C(t,Mt))return Mt;var e=C(t,Nt),n=C(t,$t);return e&&n?Mt:e||n?e?Nt:$t:C(t,It)?It:At}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=C(r,Mt)&&!Dt[Mt],o=C(r,$t)&&!Dt[$t],a=C(r,Nt)&&!Dt[Nt];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&n&X||a&&n&Z?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Bt=1,Ft=32;function zt(t){this.options=u({},this.defaults,t||{}),this.id=I++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Bt,this.simultaneous={},this.requireFail=[]}function Wt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function qt(t){return t==K?"down":t==Y?"up":t==V?"left":t==G?"right":""}function Ht(t,e){var n=e.manager;return n?n.get(t):t}function Vt(){zt.apply(this,arguments)}function Gt(){Vt.apply(this,arguments),this.pX=null,this.pY=null}function Yt(){Vt.apply(this,arguments)}function Kt(){zt.apply(this,arguments),this._timer=null,this._input=null}function Xt(){Vt.apply(this,arguments)}function Zt(){Vt.apply(this,arguments)}function Jt(){zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Qt(t,e){return(e=e||{}).recognizers=E(e.recognizers,Qt.defaults.preset),new te(t,e)}function te(t,e){this.options=u({},Qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||($?gt:D?kt:N?Pt:ht))(this,nt),this.touchAction=new Ut(this,this.options.touchAction),ee(this,!0),g(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ee(t,e){var n,r=t.element;r.style&&(g(t.options.cssProps,(function(i,o){n=A(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}zt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ht(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=Ht(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===j(e,t=Ht(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Ht(t,this);var e=j(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Wt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Wt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Ft},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Ft|Bt)))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!k(this.options.enable,[this,e]))return this.reset(),void(this.state=Ft);56&this.state&&(this.state=Bt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(Vt,zt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(n&q||!i)?16|e:r||i?n&W?8|e:2&e?4|e:2:Ft}}),w(Gt,Vt,{defaults:{event:"pan",threshold:10,pointers:1,direction:J},getTouchAction:function(){var t=this.options.direction,e=[];return t&X&&e.push($t),t&Z&&e.push(Nt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&X?(i=0===o?H:o<0?V:G,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?H:a<0?Y:K,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Vt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=qt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Yt,Vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),w(Kt,zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[At]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(W|q)&&!i)this.reset();else if(t.eventType&z)this.reset(),this._timer=v((function(){this.state=8,this.tryEmit()}),e.time,this);else if(t.eventType&W)return 8;return Ft},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&W?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Xt,Vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(Zt,Vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|Z,pointers:1},getTouchAction:function(){return Gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(X|Z)?e=t.overallVelocity:n&X?e=t.overallVelocityX:n&Z&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&t.eventType&W},emit:function(t){var e=qt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Jt,zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[It]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&z&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=W)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||st(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=v((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Ft},failTimeout:function(){return this._timer=v((function(){this.state=Ft}),this.options.interval,this),Ft},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Qt.VERSION="2.0.7",Qt.defaults={domEvents:!1,touchAction:Rt,enable:!0,inputTarget:null,inputClass:null,preset:[[Xt,{enable:!1}],[Yt,{enable:!1},["rotate"]],[Zt,{direction:X}],[Gt,{direction:X},["swipe"]],[Jt],[Jt,{event:"doubletap",taps:2},["tap"]],[Kt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},te.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof zt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=j(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return g(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return g(T(t),(function(t){e?n[t]&&n[t].splice(j(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Qt,{INPUT_START:z,INPUT_MOVE:2,INPUT_END:W,INPUT_CANCEL:q,STATE_POSSIBLE:Bt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ft,DIRECTION_NONE:H,DIRECTION_LEFT:V,DIRECTION_RIGHT:G,DIRECTION_UP:Y,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:Z,DIRECTION_ALL:J,Manager:te,Input:et,TouchAction:Ut,TouchInput:kt,MouseInput:ht,PointerEventInput:gt,TouchMouseInput:Pt,SingleTouchInput:bt,Recognizer:zt,AttrRecognizer:Vt,Tap:Jt,Pan:Gt,Swipe:Zt,Pinch:Yt,Rotate:Xt,Press:Kt,on:S,off:P,each:g,merge:_,extend:b,assign:u,inherit:w,bindFn:x,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Qt,(r=function(){return Qt}.call(e,n,e,t))===s||(t.exports=r)}(window,document)},4581:function(t,e,n){!function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v,m,g,y,b,_,w,x,k,E,S,P,O,C,T,j,L,R,A,I,M,N={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,(function(t,n){e[t]=n})),e},createIframe:function(){var n=e.createElement("iframe"),r=t(this).data("cbox-iframe-attrs");return"object"==typeof r&&t.each(r,(function(t,e){n[t]=e})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},$="colorbox",D="cbox",U=D+"Element",B=D+"_open",F=D+"_load",z=D+"_complete",W=D+"_cleanup",q=D+"_closed",H=D+"_purge",V=t("<a/>"),G="div",Y=0,K={};function X(n,r,i){var o=e.createElement(n);return r&&(o.id=D+r),i&&(o.style.cssText=i),t(o)}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!==N[e]&&(this.cache[e]=N[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=(C+t)%e;return n<0?e+n:n}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?h.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 i[0]&&!i[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),i.focus())}function it(t){it.str!==t&&(i.add(r).removeClass(it.str).addClass(t),it.str=t)}function ot(n){t(e).trigger(n),V.triggerHandler(n)}var at=function(){var t,e,n=D+"Slideshow_",r="click."+D;function o(){clearTimeout(e)}function a(){(k.get("loop")||f[C+1])&&(o(),e=setTimeout(I.next,k.get("slideshowSpeed")))}function s(){y.html(k.get("slideshowStop")).unbind(r).one(r,u),V.bind(z,a).bind(F,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),V.unbind(z,a).unbind(F,o),y.html(k.get("slideshowStart")).unbind(r).one(r,(function(){I.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,y.hide(),o(),V.unbind(z,a).unbind(F,o),i.removeClass(n+"off "+n+"on")}return function(){t?k.get("slideshow")||(V.unbind(W,c),c()):k.get("slideshow")&&f[1]&&(t=!0,V.one(W,c),k.get("slideshowAuto")?s():u(),y.show())}}();function st(o){var h,g;if(!R){if(h=t(o).data($),k=new J(o,h),g=k.get("rel"),C=0,g&&!1!==g&&"nofollow"!==g?(f=t("."+U).filter((function(){return new J(this,t.data(this,$)).get("rel")===g})),-1===(C=f.index(k.el))&&(f=f.add(k.el),C=f.length-1)):f=t(k.el),!j){j=L=!0,it(k.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=X(G,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),E=s.height()+l.height()+a.outerHeight(!0)-a.height(),S=u.width()+c.width()+a.outerWidth(!0)-a.width(),P=d.outerHeight(!0),O=d.outerWidth(!0);var y=tt(k.get("initialWidth"),"x"),b=tt(k.get("initialHeight"),"y"),_=k.get("maxWidth"),M=k.get("maxHeight");k.w=Math.max((!1!==_?Math.min(y,tt(_,"x")):y)-O-S,0),k.h=Math.max((!1!==M?Math.min(b,tt(M,"y")):b)-P-E,0),d.css({width:"",height:k.h}),I.position(),ot(B),k.get("onOpen"),x.add(m).hide(),i.focus(),k.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",rt,!0),V.one(q,(function(){e.removeEventListener("focus",rt,!0)}))),k.get("returnFocus")&&V.one(q,(function(){t(k.el).focus()}))}var N=parseFloat(k.get("opacity"));r.css({opacity:N==N?N:"",cursor:k.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),k.get("closeButton")?w.html(k.get("close")).appendTo(a):w.appendTo("<div/>"),function(){var e,r,i,o=I.prep,a=++Y;if(L=!0,T=!1,ot(H),ot(F),k.get("onLoad"),k.h=k.get("height")?tt(k.get("height"),"y")-P-E:k.get("innerHeight")&&tt(k.get("innerHeight"),"y"),k.w=k.get("width")?tt(k.get("width"),"x")-O-S:k.get("innerWidth")&&tt(k.get("innerWidth"),"x"),k.mw=k.w,k.mh=k.h,k.get("maxWidth")&&(k.mw=tt(k.get("maxWidth"),"x")-O-S,k.mw=k.w&&k.w<k.mw?k.w:k.mw),k.get("maxHeight")&&(k.mh=tt(k.get("maxHeight"),"y")-P-E,k.mh=k.h&&k.h<k.mh?k.h:k.mh),e=k.get("href"),A=setTimeout((function(){v.show()}),100),k.get("inline")){var s=t(e).eq(0);i=t("<div>").hide().insertBefore(s),V.one(H,(function(){i.replaceWith(s)})),o(s)}else k.get("iframe")?o(" "):k.get("html")?o(k.get("html")):et(k,e)?(e=nt(k,e),T=k.get("createImg"),t(T).addClass(D+"Photo").bind("error."+D,(function(){o(X(G,"Error").html(k.get("imgError")))})).one("load",(function(){a===Y&&setTimeout((function(){var e;k.get("retinaImage")&&n.devicePixelRatio>1&&(T.height=T.height/n.devicePixelRatio,T.width=T.width/n.devicePixelRatio),k.get("scalePhotos")&&(r=function(){T.height-=T.height*e,T.width-=T.width*e},k.mw&&T.width>k.mw&&(e=(T.width-k.mw)/T.width,r()),k.mh&&T.height>k.mh&&(e=(T.height-k.mh)/T.height,r())),k.h&&(T.style.marginTop=Math.max(k.mh-T.height,0)/2+"px"),f[1]&&(k.get("loop")||f[C+1])&&(T.style.cursor="pointer",t(T).bind("click."+D,(function(){I.next()}))),T.style.width=T.width+"px",T.style.height=T.height+"px",o(T)}),1)})),T.src=e):e&&p.load(e,k.get("data"),(function(e,n){a===Y&&o("error"===n?X(G,"Error").html(k.get("xhrError")):t(this).contents())}))}()}}function ut(){i||(M=!1,h=t(n),i=X(G).attr({id:$,class:!1===t.support.opacity?D+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=X(G,"Overlay").hide(),v=t([X(G,"LoadingOverlay")[0],X(G,"LoadingGraphic")[0]]),o=X(G,"Wrapper"),a=X(G,"Content").append(m=X(G,"Title"),g=X(G,"Current"),_=t('<button type="button"/>').attr({id:D+"Previous"}),b=t('<button type="button"/>').attr({id:D+"Next"}),y=t('<button type="button"/>').attr({id:D+"Slideshow"}),v),w=t('<button type="button"/>').attr({id:D+"Close"}),o.append(X(G).append(X(G,"TopLeft"),s=X(G,"TopCenter"),X(G,"TopRight")),X(G,!1,"clear:left").append(u=X(G,"MiddleLeft"),a,c=X(G,"MiddleRight")),X(G,!1,"clear:left").append(X(G,"BottomLeft"),l=X(G,"BottomCenter"),X(G,"BottomRight"))).find("div div").css({float:"left"}),p=X(G,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=b.add(_).add(g).add(y)),e.body&&!i.parent().length&&t(e.body).append(r,i.append(o,p))}t[$]||(t(ut),(I=t.fn[$]=t[$]=function(n,o){var a=this;return n=n||{},t.isFunction(a)&&(a=t("<a/>"),n.open=!0),a[0]?(ut(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),st(this))}return!!i&&(M||(M=!0,b.click((function(){I.next()})),_.click((function(){I.prev()})),w.click((function(){I.close()})),r.click((function(){k.get("overlayClose")&&I.close()})),t(e).bind("keydown."+D,(function(t){var e=t.keyCode;j&&k.get("escKey")&&27===e&&(t.preventDefault(),I.close()),j&&k.get("arrowKey")&&f[1]&&!t.altKey&&(37===e?(t.preventDefault(),_.click()):39===e&&(t.preventDefault(),b.click()))})),t.isFunction(t.fn.on)?t(e).on("click."+D,"."+U,n):t("."+U).live("click."+D,n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var e=t.data(this,$)||{};t.data(this,$,t.extend(e,n))})).addClass(U),new J(a[0],n).get("open")&&st(a[0])),a):a}).position=function(e,n){var r,f,d,p=0,v=0,m=i.offset();function g(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(i[0].style.width,10)-S+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-E+"px"}if(h.unbind("resize."+D),i.css({top:-9e4,left:-9e4}),f=h.scrollTop(),d=h.scrollLeft(),k.get("fixed")?(m.top-=f,m.left-=d,i.css({position:"fixed"})):(p=f,v=d,i.css({position:"absolute"})),!1!==k.get("right")?v+=Math.max(h.width()-k.w-O-S-tt(k.get("right"),"x"),0):!1!==k.get("left")?v+=tt(k.get("left"),"x"):v+=Math.round(Math.max(h.width()-k.w-O-S,0)/2),!1!==k.get("bottom")?p+=Math.max(Z()-k.h-P-E-tt(k.get("bottom"),"y"),0):!1!==k.get("top")?p+=tt(k.get("top"),"y"):p+=Math.round(Math.max(Z()-k.h-P-E,0)/2),i.css({top:m.top,left:m.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:k.w+O+S,height:k.h+P+E,top:p,left:v},e){var y=0;t.each(r,(function(t){r[t]===K[t]||(y=e)})),e=y}K=r,e||i.css(r),i.dequeue().animate(r,{duration:e||0,complete:function(){g(),L=!1,o[0].style.width=k.w+O+S+"px",o[0].style.height=k.h+P+E+"px",k.get("reposition")&&setTimeout((function(){h.bind("resize."+D,I.position)}),1),t.isFunction(n)&&n()},step:g})},I.resize=function(t){var e;j&&((t=t||{}).width&&(k.w=tt(t.width,"x")-O-S),t.innerWidth&&(k.w=tt(t.innerWidth,"x")),d.css({width:k.w}),t.height&&(k.h=tt(t.height,"y")-P-E),t.innerHeight&&(k.h=tt(t.innerHeight,"y")),t.innerHeight||t.height||(e=d.scrollTop(),d.css({height:"auto"}),k.h=d.height()),d.css({height:k.h}),e&&d.scrollTop(e),I.position("none"===k.get("transition")?0:k.get("speed")))},I.prep=function(n){if(j){var r,o="none"===k.get("transition")?0:k.get("speed");d.remove(),(d=X(G,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(k.w=k.w||d.width(),k.w=k.mw&&k.mw<k.w?k.mw:k.w,k.w),overflow:k.get("scrolling")?"auto":"hidden"}).css({height:(k.h=k.h||d.height(),k.h=k.mh&&k.mh<k.h?k.mh:k.h,k.h)}).prependTo(a),p.hide(),t(T).css({float:"none"}),it(k.get("className")),r=function(){var n,r,a=f.length;function s(){!1===t.support.opacity&&i[0].style.removeAttribute("filter")}j&&(r=function(){clearTimeout(A),v.hide(),ot(z),k.get("onComplete")},m.html(k.get("title")).show(),d.show(),a>1?("string"==typeof k.get("current")&&g.html(k.get("current").replace("{current}",C+1).replace("{total}",a)).show(),b[k.get("loop")||C<a-1?"show":"hide"]().html(k.get("next")),_[k.get("loop")||C?"show":"hide"]().html(k.get("previous")),at(),k.get("preloading")&&t.each([Q(-1),Q(1)],(function(){var n=f[this],r=new J(n,t.data(n,$)),i=r.get("href");i&&et(r,i)&&(i=nt(r,i),e.createElement("img").src=i)}))):x.hide(),k.get("iframe")?(n=k.get("createIframe"),k.get("scrolling")||(n.scrolling="no"),t(n).attr({src:k.get("href"),class:D+"Iframe"}).one("load",r).appendTo(d),V.one(H,(function(){n.src="//about:blank"})),k.get("fastIframe")&&t(n).trigger("load")):r(),"fade"===k.get("transition")?i.fadeTo(o,1,s):s())},"fade"===k.get("transition")?i.fadeTo(o,0,(function(){I.position(0,r)})):I.position(o,r)}},I.next=function(){!L&&f[1]&&(k.get("loop")||f[C+1])&&(C=Q(1),st(f[C]))},I.prev=function(){!L&&f[1]&&(k.get("loop")||C)&&(C=Q(-1),st(f[C]))},I.close=function(){j&&!R&&(R=!0,j=!1,ot(W),k.get("onCleanup"),h.unbind("."+D),r.fadeTo(k.get("fadeOut")||0,0),i.stop().fadeTo(k.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),ot(H),d.remove(),setTimeout((function(){R=!1,ot(q),k.get("onClosed")}),1)})))},I.remove=function(){i&&(i.stop(),t[$].close(),i.stop(!1,!0).remove(),r.remove(),R=!1,i=null,t("."+U).removeData($).removeClass(U),t(e).unbind("click."+D).unbind("keydown."+D))},I.element=function(){return t(k.el)},I.settings=N)}(n(5311),document,window)},5557:function(t,e,n){!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(n(5311))},1870:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=o)},7053:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=o)},5592:function(t,e,n){var r,i,o;i=[n(5311)],void 0===(o="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=o)},6891:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],r=function(t){var e,n=0,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],c=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:c}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(u=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,(function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){t(this)[e](),o&&o.call(r[0]),n()}))}})),t.widget},void 0===(o=r.apply(e,i))||(t.exports=o)},6177:function(t,e,n){var r,i,o;i=[n(5311),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=o)},6227:function(t,e,n){var r,i,o;i=[n(5311),n(6177),n(7053),n(5592),n(6891)],r=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=i.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===l.min))&&(i=n,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})},void 0===(o=r.apply(e,i))||(t.exports=o)},5311:function(t){"use strict";t.exports=jQuery},5756: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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{XM:function(){return s},Xe:function(){return u},pX:function(){return a}}),n(6649),n(6078),n(2526),n(1817),n(1539),n(9653),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(9714),n(8309),n(4916);var a={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},s=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{_$litDirective$:t,values:n}}},u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}},{key:"_$AS",value:function(t,e){return this.update(t,e)}},{key:"update",value:function(t,e){return this.render.apply(this,function(t){if(Array.isArray(t))return i(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return i(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)?i(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}],n&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4817:function(t,e,n){"use strict";var r;function i(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&&o(t,e)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===p(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,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=c(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(i)?i:String(i)),r)}var i}function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t){return p="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},p(t)}n.d(e,{Al:function(){return Z},Jb:function(){return N},Ld:function(){return $},YP:function(){return M},dy:function(){return I},sY:function(){return Q}}),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4603),n(4916),n(9714),n(4129),n(6755),n(7852),n(3123),n(8309),n(3290),n(6649),n(6078),n(9653),n(1038),n(489),n(2419);var v=window,m=v.trustedTypes,g=m?m.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,y="lit$".concat((Math.random()+"").slice(9),"$"),b="?"+y,_="<".concat(b,">"),w=document,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w.createComment(t)},k=function(t){return null===t||"object"!=p(t)&&"function"!=typeof t},E=Array.isArray,S=function(t){return E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])},P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,C=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,L=/"/g,R=/^(?:script|style|textarea|title)$/i,A=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:t,strings:e,values:r}}},I=A(1),M=A(2),N=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),D=new WeakMap,U=w.createTreeWalker(w,129,null,!1),B=function(t,e){for(var n,r=t.length-1,i=[],o=2===e?"<svg>":"",a=P,s=0;s<r;s++){for(var u=t[s],c=void 0,l=void 0,f=-1,h=0;h<u.length&&(a.lastIndex=h,null!==(l=a.exec(u)));)h=a.lastIndex,a===P?"!--"===l[1]?a=O:void 0!==l[1]?a=C:void 0!==l[2]?(R.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=T):void 0!==l[3]&&(a=T):a===T?">"===l[0]?(a=null!=n?n:P,f=-1):void 0===l[1]?f=-2:(f=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?T:'"'===l[3]?L:j):a===L||a===j?a=T:a===O||a===C?a=P:(a=T,n=void 0);var d=a===T&&t[s+1].startsWith("/>")?" ":"";o+=a===P?u+_:f>=0?(i.push(c),u.slice(0,f)+"$lit$"+u.slice(f)+y+d):u+y+(-2===f?(i.push(void 0),s):d)}var p=o+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(p):p,i]},F=function(){function t(e,n){var r,i=e.strings,o=e._$litType$;f(this,t),this.parts=[];var a,s=0,h=0,d=i.length-1,p=this.parts,v=function(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||c(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.")}()}(B(i,o),2),g=v[0],_=v[1];if(this.el=t.createElement(g,n),U.currentNode=this.el.content,2===o){var w=this.el.content,k=w.firstChild;k.remove(),w.append.apply(w,function(t){if(Array.isArray(t))return l(t)}(a=k.childNodes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||c(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}for(;null!==(r=U.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes()){var E,S=[],P=u(r.getAttributeNames());try{for(P.s();!(E=P.n()).done;){var O=E.value;if(O.endsWith("$lit$")||O.startsWith(y)){var C=_[h++];if(S.push(O),void 0!==C){var T=r.getAttribute(C.toLowerCase()+"$lit$").split(y),j=/([.?@])?(.*)/.exec(C);p.push({type:1,index:s,name:j[2],strings:T,ctor:"."===j[1]?V:"?"===j[1]?Y:"@"===j[1]?K:H})}else p.push({type:6,index:s})}}}catch(t){P.e(t)}finally{P.f()}for(var L=0,A=S;L<A.length;L++){var I=A[L];r.removeAttribute(I)}}if(R.test(r.tagName)){var M=r.textContent.split(y),N=M.length-1;if(N>0){r.textContent=m?m.emptyScript:"";for(var $=0;$<N;$++)r.append(M[$],x()),U.nextNode(),p.push({type:2,index:++s});r.append(M[N],x())}}}else if(8===r.nodeType)if(r.data===b)p.push({type:2,index:s});else for(var D=-1;-1!==(D=r.data.indexOf(y,D+1));)p.push({type:7,index:s}),D+=y.length-1;s++}}return d(t,null,[{key:"createElement",value:function(t,e){var n=w.createElement("template");return n.innerHTML=t,n}}]),t}();function z(t,e){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===N)return e;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,c=k(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(e=z(t,u._$AS(t,e.values),u,s)),e}var W=function(){function t(e,n){f(this,t),this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=n}return d(t,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"v",value:function(t){var e,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:w).importNode(r,!0);U.currentNode=o;for(var a=U.nextNode(),s=0,u=0,c=i[0];void 0!==c;){if(s===c.index){var l=void 0;2===c.type?l=new q(a,a.nextSibling,this,t):1===c.type?l=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(l=new X(a,this,t)),this.u.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=U.nextNode(),s++)}return o}},{key:"p",value:function(t){var e,n=0,r=u(this.u);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}catch(t){r.e(t)}finally{r.f()}}}]),t}(),q=function(){function t(e,n,r,i){var o;f(this,t),this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cm=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return d(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=z(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),k(t)?t===$||null==t||""===t?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==N&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):S(t)?this.k(t):this.g(t)}},{key:"O",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}},{key:"T",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"g",value:function(t){this._$AH!==$&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(w.createTextNode(t)),this._$AH=t}},{key:"$",value:function(t){var e,n=t.values,r=t._$litType$,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=F.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.p(n);else{var o=new W(i,this),a=o.v(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new F(t)),e}},{key:"k",value:function(e){E(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=u(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new t(this.O(x()),this.O(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,n);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}]),t}(),H=function(){function t(e,n,r,i,o){f(this,t),this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$}return d(t,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=z(this,t,e,0),(o=!k(t)||t!==this._$AH&&t!==N)&&(this._$AH=t);else{var a,s,u=t;for(t=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],e,a))===N&&(s=this._$AH[a]),o||(o=!k(s)||s!==this._$AH[a]),s===$?t=$:t!==$&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.j(t)}},{key:"j",value:function(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}]),t}(),V=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=3,t}return d(n,[{key:"j",value:function(t){this.element[this.name]=t===$?void 0:t}}]),n}(H),G=m?m.emptyScript:"",Y=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=4,t}return d(n,[{key:"j",value:function(t){t&&t!==$?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}]),n}(H),K=function(t){i(n,t);var e=a(n);function n(t,r,i,o,a){var s;return f(this,n),(s=e.call(this,t,r,i,o,a)).type=5,s}return d(n,[{key:"_$AI",value:function(t){var e;if((t=null!==(e=z(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:$)!==N){var n=this._$AH,r=t===$&&n!==$||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==$&&(n===$||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}]),n}(H),X=function(){function t(e,n,r){f(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return d(t,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){z(this,t)}}]),t}(),Z={P:"$lit$",A:y,M:b,C:1,L:B,R:W,D:S,V:z,I:q,H:H,N:Y,U:K,B:V,F:X},J=v.litHtmlPolyfillSupport;null==J||J(F,q),(null!==(r=v.litHtmlVersions)&&void 0!==r?r:v.litHtmlVersions=[]).push("2.5.0");var Q=function(t,e,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new q(e.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(t),a}},9089:function(t,e,n){"use strict";n.d(e,{Mo:function(){return r},Cb:function(){return c},IO:function(){return x},SB:function(){return p}});var r=function(t){return function(e){return"function"==typeof e?function(t,e){return customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){customElements.define(t,e)}}}(t,e)}};function i(t){return i="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},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(2526),n(1817),n(1539),n(6649),n(6078),n(9653),n(7941),n(7327),n(5003),n(4747),n(9337),n(2165),n(6992),n(8783),n(3948);var u=function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?a(a({},e),{},{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}};function c(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):u(t,e)}}function l(t){return l="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},l(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return c(h(h({},t),{},{state:!0}))}function v(t){return v="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},v(t)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==v(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===v(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(9601);var b,_=function(t){var e=t.finisher,n=t.descriptor;return function(t,r){var i;if(void 0===r){var o=null!==(i=t.originalKey)&&void 0!==i?i:t.key,a=null!=n?{kind:"method",placement:"prototype",key:o,descriptor:n(t.key)}:g(g({},t),{},{key:o});return null!=e&&(a.finisher=function(t){e(t,o)}),a}var s=t.constructor;void 0!==n&&Object.defineProperty(t,r,n(r)),null==e||e(s,r)}};function w(t){return w="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},w(t)}function x(t,e){return _({descriptor:function(n){var r={get:function(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==w(n)?Symbol():"__"+n;r.get=function(){var e,n;return void 0===this[i]&&(this[i]=null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null),this[i]}}return r}})}n(8674),n(2443),n(3680),n(3706),n(2703),n(489),n(8309),n(5069),n(7042),null===(b=window.HTMLSlotElement)||void 0===b||b.prototype.assignedElements},871: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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{oi:function(){return q},iv:function(){return h},dy:function(){return $.dy},Ld:function(){return $.Ld},sY:function(){return $.sY},YP:function(){return $.YP}}),n(9653),n(7941),n(6992),n(1532),n(1539),n(8783),n(3948),n(8674),n(4747),n(561),n(2526),n(1817),n(489),n(2222),n(6210),n(189),n(5069),n(4944),n(3792),n(9714),n(2419),n(6649),n(6078),n(2165),n(2443),n(3680),n(3706),n(2703),n(8309),n(7042),n(1038),n(4916),n(4129),n(5827),n(1249);var a,s=window,u=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),l=new WeakMap,f=function(){function t(e,n,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$cssResult$=!0,r!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}var e,n;return e=t,n=[{key:"styleSheet",get:function(){var t=this.o,e=this.t;if(u&&void 0===t){var n=void 0!==e&&1===e.length;n&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&l.set(e,t))}return t}},{key:"toString",value:function(){return this.cssText}}],n&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=1===t.length?t[0]:n.reduce((function(e,n,r){return e+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]}),t[0]);return new f(i,t,c)},d=u?function(t){return t}:function(t){return t instanceof CSSStyleSheet?function(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 i(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)?i(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 a,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,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.cssRules);try{for(r.s();!(e=r.n()).done;)n+=e.value.cssText}catch(t){r.e(t)}finally{r.f()}return function(t){return new f("string"==typeof t?t:t+"",void 0,c)}(n)}(t):t};function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return g(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)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t){return y="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},y(t)}function b(){b=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new O(i||[]);return r(a,"_invoke",{value:k(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==e&&n.call(g,o)&&(v=g);var _=p.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==y(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(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,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(_,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),u(_,s,"Generator"),u(_,o,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function _(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===y(i)?i:String(i)),r)}var i}function x(t){var e="function"==typeof Map?new Map:void 0;return x=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 k(t,arguments,P(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,t)},x(t)}function k(t,e,n){return k=E()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&S(i,n.prototype),i},k.apply(null,arguments)}function E(){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 S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var O=window,C=O.trustedTypes,T=C?C.emptyScript:"",j=O.reactiveElementPolyfillSupport,L={toAttribute:function(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){var n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},R=function(t,e){return e!==t&&(e==e||t==t)},A={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:R},I=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&&S(t,e)}(f,t);var e,n,r,i,o,a,c,l=(a=f,c=E(),function(){var t,e=P(a);if(c){var n=P(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===y(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 f(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this))._$Ei=new Map,t.isUpdatePending=!1,t.hasUpdated=!1,t._$El=null,t.u(),t}return e=f,n=[{key:"u",value:function(){var t,e=this;this._$E_=new Promise((function(t){return e.enableUpdating=t})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((function(t){return t(e)}))}},{key:"addController",value:function(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}},{key:"removeController",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}},{key:"_$Eg",value:function(){var t=this;this.constructor.elementProperties.forEach((function(e,n){t.hasOwnProperty(n)&&(t._$Ei.set(n,t[n]),delete t[n])}))}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return function(t,e){u?t.adoptedStyleSheets=e.map((function(t){return t instanceof CSSStyleSheet?t:t.styleSheet})):e.forEach((function(e){var n=document.createElement("style"),r=s.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))}(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$EO",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){var o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:L).toAttribute(e,r.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}},{key:"_$AK",value:function(t,e){var n,r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){var o=r.getPropertyOptions(i),a="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==(null===(n=o.converter)||void 0===n?void 0:n.fromAttribute)?o.converter:L;this._$El=i,this[i]=a.fromAttribute(e,o.type),this._$El=null}}},{key:"requestUpdate",value:function(t,e,n){var r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||R)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(i=b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isUpdatePending=!0,t.prev=1,t.next=4,this._$E_;case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),Promise.reject(t.t0);case 9:if(e=this.scheduleUpdate(),t.t1=null!=e,!t.t1){t.next=14;break}return t.next=14,e;case 14:return t.abrupt("return",!this.isUpdatePending);case 15:case"end":return t.stop()}}),t,this,[[1,6]])})),o=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=i.apply(t,e);function a(t){_(o,n,r,a,s,"next",t)}function s(t){_(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var t,e=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(t,n){return e[n]=t})),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw n=!1,this._$Ek(),t}n&&this._$AE(r)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._$EC&&(this._$EC.forEach((function(t,n){return e._$EO(n,e[n],t)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}],r=[{key:"addInitializer",value:function(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this.elementProperties.forEach((function(n,r){var i=t._$Ep(r,n);void 0!==i&&(t._$Ev.set(i,r),e.push(i))})),e}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==y(t)?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(r){var i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this.elementProperties.get(t)||A}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=v(t.h)),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var e,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(e=r.n()).done;){var i=e.value;this.createProperty(i,n[i])}}catch(t){r.e(t)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,r=p(new Set(t.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.unshift(d(i))}}catch(t){r.e(t)}finally{r.f()}}else void 0!==t&&e.push(d(t));return e}},{key:"_$Ep",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}],n&&w(e.prototype,n),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(x(HTMLElement));I.finalized=!0,I.elementProperties=new Map,I.elementStyles=[],I.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:I}),(null!==(a=O.reactiveElementVersions)&&void 0!==a?a:O.reactiveElementVersions=[]).push("1.5.0");var M,N,$=n(4817);function D(t){return D="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},D(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==D(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===D(i)?i:String(i)),r)}var i}function B(){return B="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=W(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},B.apply(this,arguments)}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}n(5743),n(4819),n(5003);var q=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)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=W(r);if(i){var n=W(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return z(t)}(this,t)});function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.apply(this,arguments)).renderOptions={host:z(t)},t._$Dt=void 0,t}return e=a,n=[{key:"createRenderRoot",value:function(){var t,e,n=B(W(a.prototype),"createRenderRoot",this).call(this);return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}},{key:"update",value:function(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),B(W(a.prototype),"update",this).call(this,t),this._$Dt=(0,$.sY)(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;B(W(a.prototype),"connectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;B(W(a.prototype),"disconnectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}},{key:"render",value:function(){return $.Jb}}],n&&U(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(I);q.finalized=!0,q._$litElement$=!0,null===(M=globalThis.litElementHydrateSupport)||void 0===M||M.call(globalThis,{LitElement:q});var H=globalThis.litElementPolyfillSupport;null==H||H({LitElement:q}),(null!==(N=globalThis.litElementVersions)&&void 0!==N?N:globalThis.litElementVersions=[]).push("3.2.0")}},__webpack_module_cache__={},deferred;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(t,e,n,r){if(!e){var i=1/0;for(u=0;u<deferred.length;u++){e=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<e.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(t){return __webpack_require__.O[t](e[a])}))?e.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[e,n,r]},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t={898:0};__webpack_require__.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(e){return 0!==t[e]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(e&&e(n);u<o.length;u++)i=o[u],__webpack_require__.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return __webpack_require__.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";__webpack_require__(1539),__webpack_require__(9714),__webpack_require__(5827),__webpack_require__(2222),__webpack_require__(1249),__webpack_require__(6833),__webpack_require__(8674),__webpack_require__(7327),__webpack_require__(7941),__webpack_require__(4916),__webpack_require__(6992),__webpack_require__(8783),__webpack_require__(3948),__webpack_require__(1637),__webpack_require__(4765),__webpack_require__(7042),__webpack_require__(4747),__webpack_require__(9826),__webpack_require__(6699),__webpack_require__(2023),__webpack_require__(1058),__webpack_require__(5306),__webpack_require__(9600),__webpack_require__(2526),__webpack_require__(1817),__webpack_require__(2165),__webpack_require__(1038),__webpack_require__(8309),__webpack_require__(2443),__webpack_require__(3680),__webpack_require__(3706),__webpack_require__(2703),__webpack_require__(489),__webpack_require__(5069),__webpack_require__(6891),__webpack_require__(6177),__webpack_require__(5557);var t=__webpack_require__(5685);__webpack_require__(6649),__webpack_require__(6078),__webpack_require__(9653),__webpack_require__(6227);var e={fragmentChange:"fragmentChange",pageChanged:"pageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},n=__webpack_require__(5311);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 i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}var o=function(){function r(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.br=e,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,t.throttle)(this.updateNavIndex.bind(this),250,!1)}var o,a;return o=r,a=[{key:"controlFor",value:function(t){var e=this.br.options.controls[t];return e.visible?e.template?"<li>".concat(e.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(e.className,'" title="').concat(e.label,'">\n <div class="icon icon-').concat(e.iconClassName,'"></div>\n <span class="tooltip">').concat(e.label,"</span>\n </button>\n </li>"):""}},{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,i=r.options.controls.viewmode,o=[{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!i.excludedModes.includes(t.mode)})),a=o.map((function(t){return t.mode}));i.excludedModes.includes(r.mode)&&r.switchMode(a[0]);for(var s=a.indexOf(r.mode),u=0;u<=s;u++)a.push(a.shift());o.length<2&&this.$nav.find(".".concat(i.className)).remove(),this.br.bind(e.PostInit,(function(){var e=t.$nav.find(".".concat(i.className)).off(".bindNavigationHandlers").on("click",(function(e){var i=a.shift(),s=o.find((function(t){return t.mode===i})),u=o.find((function(t){return t.mode===a[0]}));a.push(i),r.viewModeOrder=a,t.updateViewModeButton(n(e.currentTarget),u.className,u.title),r.switchMode(s.mode)})),s=o.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(".tooltip").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,i="rl"===e.pageProgression,o=i?"book_flip_next":"book_flip_prev",a=i?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(o),this.br.options.controls.bookRight.className="book_right ".concat(a),e.refs.$BRfooter=this.$root=n('<div class="BRfooter"></div>'),e.refs.$BRnav=this.$nav=n('<div class="BRnav BRnavDesktop">\n '.concat(r?'<div class="BRnavTitle">'.concat(r,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n <p><span class=\'BRcurrentpage\'></span></p>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),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 i,o=0,a=0;a<r;a++)i=e.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(t,e,n,r,i){if(!("n"!=n[0]))return"(".concat(t+1," of ").concat(e,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(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)}}],a&&i(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();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)}function s(t){var e="function"==typeof Map?new Map:void 0;return s=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 u(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,t)},s(t)}function u(t,e,n){return u=c()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&l(i,n.prototype),i},u.apply(null,arguments)}function c(){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 l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}__webpack_require__(2419),__webpack_require__(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},d=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&&l(t,e)}(o,t);var e,n,r,i=(n=o,r=c(),function(){var t,e=f(n);if(r){var i=f(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(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 o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,Object.defineProperty(e,"prototype",{writable:!1}),e}(s(Error)),p=__webpack_require__(105),v=(__webpack_require__(4581),__webpack_require__(5311));function m(t){return m="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},m(t)}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==m(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===m(i)?i:String(i)),r)}var i}var b=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.br=t}var r,i;return r=n,(i=[{key:"buildToolbarElement",value:function(){var t=this.br,e=t.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(t.logoURL,'"></a>\n </span>'):"";t.refs.$BRtoolbar=v('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(e,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return t.bookUrl&&t.options.enableBookTitleLink?n.append(v("<a>").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('<div style="display: none;"></div>').append(v('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n </div>')).append(v('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')).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+"",i=(r+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=v('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(t),a.find(".fieldset-embed input").on("change",(function(t){var e=v(t.target).parents("form").first(),r={};r.mode=v(e.find(".fieldset-embed input[name=pages]:checked")).val(),e.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&e.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(t){return t.target.select()})),a.find(".facebook-share-button").on("click",(function(){_("https://www.facebook.com/sharer.php?"+v.param({u:e._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){_("https://twitter.com/intent/tweet?"+v.param({url:e._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var t="".concat(n.bookTitle,"\n\n").concat(e._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(t))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(t)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var n=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var r=v('<div class="BRinfoLeftCol"></div>');n.thumbnail&&r.append(v('\n <div class="BRimageW">\n <img src="'.concat(n.thumbnail,'" alt="').concat((0,t.escapeHTML)(n.bookTitle),'" />\n </div>')));var i,o=v('<div class="BRinfoRightCol">'),a=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 g(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)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,f=s.value,h="Title"===l?(0,t.escapeHTML)(f):f;o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(h,"</div>\n </div>")))}}catch(t){a.e(t)}finally{a.f()}var d=n.bookUrlMoreInfo?n.bookUrlMoreInfo:n.bookTitle;d&&n.bookUrl&&o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(n.bookUrl,'">\n ').concat((0,t.escapeHTML)(d),"\n </a>\n </div>\n </div>")));var p=v('<div class="BRfloatFoot BRinfoFooter"></div>'),m=v('<div class="BRinfoW mv20-lg">').append([r,o,v('<br style="clear:both"/>')]);e.append(m,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var t=this.br.refs.$BRtoolbar;return t&&"block"===t.css("display")?t.outerHeight()+parseInt(t.css("top")):0}}])&&y(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function _(t,e,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(e,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(t,r,u)}function w(t){return w="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},w(t)}function x(){x=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new O(i||[]);return r(a,"_invoke",{value:k(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==w(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(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,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function k(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 E(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)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==w(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===w(i)?i:String(i)),r)}var i}function O(t,e,n){return e&&P(t.prototype,e),n&&P(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}__webpack_require__(2707),__webpack_require__(4553),__webpack_require__(6535),__webpack_require__(9244);var C=function(){function e(t){var n,r,i,o;S(this,e),this.br=t,this.reduceSet=t.reduceSet,this.ppi=null!==(n=null===(r=t.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:h.ppi,this.pageProgression=null!==(i=null===(o=t.options)||void 0===o?void 0:o.pageProgression)&&void 0!==i?i:h.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null}return O(e,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var t,e=[],n=[],r=k(this.pagesIterator());try{for(r.s();!(t=r.n()).done;){var i=t.value;e.push(i.widthInches),n.push(i.heightInches)}}catch(t){r.e(t)}finally{r.f()}return e.sort((function(t,e){return t-e})),n.sort((function(t,e){return t-e})),this._medianPageSize={width:e[Math.floor(e.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,t.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var n=(0,t.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(n)}},{key:"getPageIndex",value:function(t){var e=this.getPageIndices(t);return e.length?e[e.length-1]:void 0}},{key:"getPageIndices",value:function(t){var e=[];if("n"==t.slice(0,1))try{var n=t.slice(1,t.length),r=parseInt(n);return e.push(r),e}catch(t){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==t&&e.push(i);return e}},{key:"getPageName",value:function(t){return"Page "+this.getPageNum(t)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(t){return this.getPageProp(t,"width")}},{key:"getPageHeight",value:function(t){return this.getPageProp(t,"height")}},{key:"getPageURI",value:function(t,e,n){return this.getPageProp(t,"viewable",!0)?this.getPageProp(t,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(t){return this.getPageProp(t,"pageSide")||(t%2==0?"R":"L")}},{key:"getPageNum",value:function(t){var e=this.getPageProp(t,"pageNum");return void 0===e?"n".concat(t):e}},{key:"getPageProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(t,e,n)}},{key:"getSpreadIndices",value:function(t){return"rl"==this.pageProgression?"R"==this.getPageSide(t)?[t+1,t]:[t,t-1]:"L"==this.getPageSide(t)?[t,t+1]:[t-1,t]}},{key:"leafNumToIndex",value:function(t){var e=this._getDataFlattened().findIndex((function(e){return e.leafNum==t}));return e>-1?e:t}},{key:"parsePageString",value:function(t){var e,n=/^leaf(\d+)/.exec(t);return n?null===(e=this.leafNumToIndex(parseInt(n[1],10)))&&(e=void 0):e=this.getPageIndex(t),e}},{key:"getPage",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(e||!(t<0||t>=n))return t<0&&t>=-n&&(t+=n),new T(this,t%=n)}},{key:"pagesIterator",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?1/0:i,a=e.combineConsecutiveUnviewables,s=void 0!==a&&a;return x().mark((function e(){var n,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Math.max(0,r),o=Math.min(o,t.getNumLeafs()),n=r;case 3:if(!(n<o)){e.next=12;break}if(i=t.getPage(n),!s||!i.isConsecutiveUnviewable){e.next=7;break}return e.abrupt("continue",9);case 7:return e.next=9,i;case 9:n++,e.next=3;break;case 12:case"end":return e.stop()}}),e)}))()}},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var t=null,e=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===t?2===r.length?"L":"R":"L"===t?"R":"L"),t=i.pageSide,!1===i.viewable?i.unviewablesStart=null===e?e=n:e:e=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened();return isNaN(t)||t<0||t>=r.length||void 0===r[t][e]?n:r[t][e]}}]),e}(),T=function(){function t(e,n){S(this,t),this.ppi=e._getDataProp(n,"ppi",e.ppi),this.book=e,this.index=n,this.width=e.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=e.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=e.getPageSide(n),this.leafNum=e._getDataProp(n,"leafNum",this.index),this.isViewable=e._getDataProp(n,"viewable",!0),this.unviewablesStart=e._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return O(t,[{key:"makeViewable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=t)if(t){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var e,n=k(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(t){n.e(t)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var i,o=k(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(t){o.e(t)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"left",get:function(){return"lr"===this.book.pageProgression?this.prev:this.next}},{key:"right",get:function(){return"lr"===this.book.pageProgression?this.next:this.prev}},{key:"spread",get:function(){return{left:"L"===this.pageSide?this:this.left,right:"R"===this.pageSide?this:this.right}}},{key:"goLeft",value:function(t){var e="lr"===this.book.pageProgression?this.index-t:this.index+t;return this.book.getPage(e)}},{key:"goRight",value:function(t){var e="lr"===this.book.pageProgression?this.index+t:this.index-t;return this.book.getPage(e)}},{key:"getURI",value:function(t,e){return this.book.getPageURI(this.index,t,e)}},{key:"getURISrcSet",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(t),o=[],a=r.decr(i);a>=1;a=r.decr(a))o.push(a);return o.map((function(t){return"".concat(e.getURI(t,n)," ").concat(i/t,"x")})).join(", ")}},{key:"findNext",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:e}).next().value}},{key:"findPrev",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,n=void 0!==e&&e;if(0!=this.index){if(n){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new t(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:n})}return new t(this.book,this.index-1)}}},{key:"findLeft",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:e}):this.findNext({combineConsecutiveUnviewables:e})}},{key:"findRight",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:e}):this.findPrev({combineConsecutiveUnviewables:e})}}]),t}(),j=(__webpack_require__(4819),__webpack_require__(5003),__webpack_require__(561),__webpack_require__(9601),__webpack_require__(3371),__webpack_require__(9089)),L=__webpack_require__(871),R=(__webpack_require__(189),__webpack_require__(4817)),A=__webpack_require__(5756);function I(t){return I="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},I(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==I(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===I(i)?i:String(i)),r)}var i}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}function D(t,e){if(e&&("object"===I(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)}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}var B=(0,A.XM)(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&&$(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=U(r);if(i){var n=U(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return D(this,t)});function a(t){var e,n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),t.type!==A.pX.ATTRIBUTE||"style"!==t.name||(null===(n=t.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return D(e)}return e=a,(n=[{key:"render",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null==r?e:e+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(t,e){var n=this,r=function(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return M(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)?M(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.")}()}(e,1)[0],i=t.element.style;if(void 0===this.vt){for(var o in this.vt=new Set,r)this.vt.add(o);return this.render(r)}for(var a in this.vt.forEach((function(t){null==r[t]&&(n.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")})),r){var s=r[a];null!=s&&(this.vt.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return R.Jb}}])&&N(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A.Xe)),F=(__webpack_require__(2420),__webpack_require__(840)),z=__webpack_require__.n(F);function W(t){return W="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},W(t)}function q(){q=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==W(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function H(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function V(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){H(o,r,i,a,s,"next",t)}function s(t){H(o,r,i,a,s,"throw",t)}a(void 0)}))}}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,K(r.key),r)}}function Y(t,e,n){return(e=K(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}var X=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Y(this,"_preventEvent",(function(t){return t.preventDefault(),!1})),Y(this,"_pinchStart",(function(){var t,e;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(t=(e=n.mode).detachScrollListeners)||void 0===t||t.call(e)})),Y(this,"_pinchMove",function(){var t=V(q().mark((function t(e){var r;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.lastEvent=e,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(t){return r=t})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Y(this,"_pinchEnd",V(q().mark((function t(){var e,r;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.pinchMoveFramePromise;case 2:n.mode.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(e=(r=n.mode).attachScrollListeners)||void 0===e||e.call(r);case 8:case"end":return t.stop()}}),t)})))),Y(this,"_pinchCancel",V(q().mark((function t(){return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._pinchEnd();case 2:case"end":return t.stop()}}),t)})))),Y(this,"_handleCtrlWheel",(function(t){if(t.ctrlKey){t.preventDefault();var e=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(t),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(t.deltaY)*e}})),this.mode=e,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete z().defaults.cssProps.userSelect,this.hammer=new(z().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(z().Pinch))}var e,n;return e=t,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(t){var e=t.clientX,n=t.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(e-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(t,e){var n=this.mode.$container,r=n.scrollTop,i=n.scrollLeft,o=this.mode.htmlDimensionsCacher.clientWidth,a=this.mode.htmlDimensionsCacher.clientHeight,s=t/e,u=this.mode.scaleCenter.x,c=this.mode.scaleCenter.y,l=s*(i+u*o),f=s*(r+c*a);n.scrollTop=f-c*a,n.scrollLeft=l-u*o}}])&&G(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Z(t){return Z="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},Z(t)}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function Q(t,e,n){return(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t){var e=function(t,e){if("object"!==Z(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Z(e)?e:String(e)}var et=function(){function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Q(this,"clientWidth",100),Q(this,"clientHeight",100),Q(this,"boundingClientRect",{top:0,left:0}),Q(this,"updateClientSizes",(function(){var t=r.element.getBoundingClientRect();r.clientWidth=r.element.clientWidth,r.clientHeight=r.element.clientHeight,r.boundingClientRect.top=t.top,r.boundingClientRect.left=t.left})),Q(this,"debouncedUpdateClientSizes",(0,t.debounce)(this.updateClientSizes,150,!1)),this.element=n}var n,r;return n=e,r=[{key:"attachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).removeEventListener("resize",this.debouncedUpdateClientSizes)}}],r&&J(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();function nt(t){return nt="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},nt(t)}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,it(r.key),r)}}function it(t){var e=function(t,e){if("object"!==nt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===nt(e)?e:String(e)}var ot=function(){function t(e,n){var r,i,o,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=function(){a.element.classList.add(a.className),clearTimeout(a.timeout),a.timeout=setTimeout((function(){a.element.classList.remove(a.className)}),600)},(i=it(i="onScroll"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,this.element=e,this.className=n,this.timeout=null}var e,n;return e=t,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function at(t){return at="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},at(t)}function st(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lt(r.key),r)}}function ut(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ct(t,e,n){return(e=lt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lt(t){var e=function(t,e){if("object"!==at(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===at(e)?e:String(e)}var ft,ht=ut((function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ct(this,"screenDPI",(0,t.calcScreenDPI)()),ct(this,"worldUnitsToRenderedPixels",(function(t){return t*r.screenDPI})),ct(this,"renderedPixelsToWorldUnits",(function(t){return t/r.screenDPI})),ct(this,"renderedPixelsToVisiblePixels",(function(t){return t*r.mode.scale})),ct(this,"visiblePixelsToRenderedPixels",(function(t){return t/r.mode.scale})),ct(this,"worldUnitsToVisiblePixels",(function(t){return r.renderedPixelsToVisiblePixels(r.worldUnitsToRenderedPixels(t))})),ct(this,"visiblePixelsToWorldUnits",(function(t){return r.renderedPixelsToWorldUnits(r.visiblePixelsToRenderedPixels(t))})),this.mode=n}));function dt(t){return dt="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},dt(t)}function pt(t){return function(t){if(Array.isArray(t))return St(t)}(t)||Pt(t)||Et(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}function mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gt(){gt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!_t(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||Pt(e)||Et(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.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=kt(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:xt(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=xt(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function yt(t){var e,n=kt(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function bt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function _t(t){return t.decorators&&t.decorators.length}function wt(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function xt(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function kt(t){var e=function(t,e){if("object"!==dt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===dt(e)?e:String(e)}function Et(t,e){if(t){if("string"==typeof t)return St(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)?St(t,e):void 0}}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ot(){return Ot="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=Ct(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ot.apply(this,arguments)}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}var Tt=function(t,e,n,r){var i=gt(),o=e((function(t){i.initializeInstanceElements(t,a.elements)}),n),a=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(wt(o.descriptor)||wt(i.descriptor)){if(_t(o)||_t(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(_t(o)){if(_t(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}bt(o,i)}else e.push(o)}return e}(o.d.map(yt)),t);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,j.Mo)("br-mode-1up")],(function(e,n){var r=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&&vt(t,e)}(a,t);var n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ct(r);if(i){var n=Ct(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mt(t)}(this,t)});function a(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(mt(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(n);return{F:r,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,j.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new ht(this)}},{kind:"field",decorators:[(0,j.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,j.Cb)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,j.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,j.IO)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var t=this.coordSpace.worldUnitsToRenderedPixels;return{width:t(this.worldDimensions.width)+"px",height:t(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,j.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new et(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new X(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new ot(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).smooth,r=void 0!==n&&n;r&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[t]-this.SPACING_IN/2),r&&setTimeout((function(){return e.style.scrollBehavior=""}),100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){Ot(Ct(r.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t);this.scale=this.computeDefaultScale(e)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&this.updatePages(),t.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),t.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),t.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled())),t.has("scale")){var e=t.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,e),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,t.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){Ot(Ct(r.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),Ot(Ct(r.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t,e,n=this;return(0,L.dy)(ft||(t=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],e||(e=t.slice(0)),ft=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),B(this.worldStyle),this.renderedPages.map((function(t){return n.renderPage(t)})))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=t.coordSpace.visiblePixelsToWorldUnits(t.htmlDimensionsCacher.clientWidth),o=n(e.widthInches),a=n(e.heightInches),s=Math.max(t.SPACING_IN,(i-e.widthInches)/2),u=t.pageTops[e.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=t.createPageContainer(e).update({dimensions:{width:o,height:a,top:0,left:0},reduce:e.width/r(e.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",t.visiblePages.includes(e)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var t=this;return function(){var e=t.scrollTop,n=t.scrollLeft,r=t.htmlDimensionsCacher.clientWidth,i=t.htmlDimensionsCacher.clientHeight,o=t.coordSpace.visiblePixelsToWorldUnits;t.visibleRegion={top:o(e),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e;return[null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(pt(this.visiblePages),[null===(e=this.visiblePages[this.visiblePages.length-1])||void 0===e?void 0:e.next]).filter((function(t){return t})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,t.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(t,e){var n,r={},i=e,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Et(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+e}}catch(t){o.e(t)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(t){var e=this.coordSpace.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,e/(t.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,pt(this.pages.map((function(t){return t.widthInches}))))+2*this.SPACING_IN,height:(0,t.sum)(this.pages.map((function(t){return t.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var t=this;return this.pages.filter((function(e){var n=t.pageTops[e.index],r=n+e.heightInches,i=t.visibleRegion.top;return n<=i+t.visibleRegion.height&&r>=i}))}},{kind:"field",key:"attachScrollListeners",value:function(){var t=this;return function(){t.addEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var t=this;return function(){t.removeEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.detach()}}}]}}),L.oi),jt=__webpack_require__(5311);function Lt(t){return Lt="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},Lt(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,It(r.key),r)}}function At(t,e,n){return(e=It(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function It(t){var e=function(t,e){if("object"!==Lt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Lt(e)?e:String(e)}function Mt(t,e){return t.split(" ").map((function(t){return t+e})).join(" ")}function Nt(t){var e,n;return void 0!==t.clientX?(e=t.clientX,n=t.clientY):void 0!==t.screenX?(e=t.screenX,n=t.screenY):void 0!==t.targetTouches?(e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY):void 0===t.originalEvent?console.error("don't understand x and y for "+t.type,t):void 0!==t.originalEvent.clientX?(e=t.originalEvent.clientX,n=t.originalEvent.clientY):void 0!==t.originalEvent.screenX?(e=t.originalEvent.screenX,n=t.originalEvent.screenY):void 0!==t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches[0].pageX,n=t.originalEvent.targetTouches[0].pageY),{left:e,top:n}}var $t={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Dt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),At(this,"_dragStartHandler",(function(t){return!!n._shouldAbort()||!(t.which>1||!n.settings.acceptPropagatedEvent&&t.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=Nt(t),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].addEventListener(t,n._dragEndHandler,!0)})),n.settings.preventDefault?(t.preventDefault(),!1):void 0)})),At(this,"_dragContinueHandler",(function(t){if(n._shouldAbort())return!0;var e=Nt(t),r=e.left-n.lastCoord.left,i=e.top-n.lastCoord.top,o=n.settings.scrollWindow?jt(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=e,n.settings.preventDefault?(t.preventDefault(),!1):void 0})),At(this,"_dragEndHandler",(function(t){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].removeEventListener(t,n._dragEndHandler,!0)}));var e={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(e.left,e.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0})),this.handling_element=jt(e),this.settings=jt.extend({},$t,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=Mt(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=Mt(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var e,n;return e=t,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&Rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ut=__webpack_require__(5311);function Bt(t){return Bt="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},Bt(t)}function Ft(){Ft=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Bt(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function zt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Wt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){zt(o,r,i,a,s,"next",t)}function s(t){zt(o,r,i,a,s,"throw",t)}a(void 0)}))}}function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Bt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Bt(i)?i:String(i)),r)}var i}var Ht,Vt,Gt,Yt,Kt,Xt,Zt,Jt,Qt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode1UpLit=new Tt(n,e),this.$el=Ut(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(Wt(Ft().mark((function n(){return Ft().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=7;break}return t.mode1UpLit.initFirstRender(e),t.everShown=!0,t.mode1UpLit.requestUpdate(),n.next=6,t.mode1UpLit.updateComplete;case 6:new Dt(t.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:t.mode1UpLit.jumpToIndex(e),setTimeout((function(){t.mode1UpLit.updateVisibleRegion()}));case 9:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){var i=Math.abs(this.br.currentIndex()-t),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(t,{smooth:o})}},{key:"zoom",value:function(t){switch(t){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&qt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),te=(__webpack_require__(4723),__webpack_require__(5311));function ee(t){return ee="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},ee(t)}function ne(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function re(){re=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==ee(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function ie(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function oe(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ie(o,r,i,a,s,"next",t)}function s(t){ie(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_e(r.key),r)}}function se(t,e,n){return e&&ae(t.prototype,e),n&&ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(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&&le(t,e)}function le(t,e){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},le(t,e)}function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var i=Se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return he(t)}(this,n)}}function he(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function de(t,e,n,r){var i=pe();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=e((function(t){i.initializeInstanceElements(t,s.elements)}),n),s=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(ye(o.descriptor)||ye(i.descriptor)){if(ge(o)||ge(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(ge(o)){if(ge(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}me(o,i)}else e.push(o)}return e}(a.d.map(ve)),t);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}function pe(){pe=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!ge(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||ke(e)||we(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.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=_e(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:be(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=be(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function ve(t){var e,n=_e(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function me(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function ge(t){return t.decorators&&t.decorators.length}function ye(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function be(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function _e(t){var e=function(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ee(e)?e:String(e)}function we(t,e){if(t){if("string"==typeof t)return xe(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)?xe(t,e):void 0}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ke(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ee(){return Ee="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=Se(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ee.apply(this,arguments)}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}var Pe=de([(0,j.Mo)("br-mode-2up")],(function(e,n){var r,i,o=function(t){ce(r,t);var n=fe(r);function r(t,i){var o;return ue(this,r),o=n.call(this),e(he(o)),o.book=t,o.br=i,o}return se(r)}(n);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new ht(this)}},{kind:"field",decorators:[(0,j.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,j.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,j.Cb)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,j.IO)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,j.Cb)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find((function(t){return"L"==t.pageSide}))}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find((function(t){return"R"==t.pageSide}))}},{kind:"field",decorators:[(0,j.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",key:"activeFlip",value:function(){return null}},{kind:"field",key:"_leftCoverWidth",value:function(){return 0}},{kind:"get",key:"$container",value:function(){return this}},{kind:"get",key:"$visibleWorld",value:function(){return this.$book}},{kind:"field",decorators:[(0,j.IO)(".br-mode-2up__book")],key:"$book",value:void 0},{kind:"get",key:"positions",value:function(){return this.computePositions(this.pageLeft,this.pageRight)}},{kind:"method",key:"computePageHeight",value:function(t){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(t){return t.widthInches*this.computePageHeight(t)/t.heightInches}},{kind:"method",key:"computePositions",value:function(t,e){var n,r,i,o,a=this.computePageWidth.bind(this),s=this.book.getNumLeafs(),u=this.activeFlip?Math.ceil(this.activeFlip.pagesFlippingCount/2)*this.PAGE_THICKNESS_IN:0,c="lr"==this.book.pageProgression?null!==(n=null==t?void 0:t.index)&&void 0!==n?n:0:t?s-t.index:0,l=this._leftCoverWidth+c*this.PAGE_THICKNESS_IN,f=l,h=a(t||e.right),d=l-h,p=d,v="left"!=(null===(r=this.activeFlip)||void 0===r?void 0:r.direction)?0:u,m=Math.ceil(c/2)*this.PAGE_THICKNESS_IN-v,g=v+m,y=p-v,b=y-m,_=l,w=e?a(e):0,x=_+w,k="lr"==this.book.pageProgression?e?s-e.index:0:null!==(i=null==e?void 0:e.index)&&void 0!==i?i:0,E=x,S="right"!=(null===(o=this.activeFlip)||void 0===o?void 0:o.direction)?0:u,P=E+S,O=Math.ceil(k/2)*this.PAGE_THICKNESS_IN-S,C=E+O+S;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:m,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:g,pageLeftStart:d,pageLeftWidth:h,pageLeftEnd:f,gutter:l,pageRightStart:_,pageRightWidth:w,pageRightEnd:x,leafEdgesRightStart:E,leafEdgesRightMovingWidth:S,leafEdgesRightMainStart:P,leafEdgesRightMainWidth:O,leafEdgesRightEnd:C,leafEdgesRightFullWidth:S+O,spreadWidth:x-d,bookWidth:C-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new et(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new X(this)}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"field",key:"PAGE_THICKNESS_IN",value:function(){return.002}},{kind:"method",key:"jumpToIndex",value:(i=oe(re().mark((function t(e){var n,r,i=arguments;return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(i.length>1&&void 0!==i[1]?i[1]:{}).smooth,r=void 0===n||n,t.next=3,this.flipAnimation(e,{animate:r});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){Ee(Se(o.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){Ee(Se(o.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),Ee(Se(o.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),t.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),t.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),t.has("scale")){var e=t.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,e)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t=this;return(0,L.dy)(Ht||(Ht=ne(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map((function(e){return t.renderPage(e)})),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t),n=e.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter((function(t){return t})),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(e),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=n(t.computePageWidth(e)),o=n(t.computePageHeight(e)),a=t.visiblePages.map((function(t){return t.index})).includes(e.index),s=t.computePositions(e.spread.left,e.spread.right),u=t.createPageContainer(e).update({dimensions:{width:i,height:o,top:0,left:n("L"==e.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:e.width/r(t.computePageWidth(e))}).$container[0];return u.classList.toggle("BRpage-visible",a),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var t=this;return function(e){var n;if(!t.visiblePages.length)return(0,L.dy)(Vt||(Vt=ne([""])));if(!("left"==e?t.positions.leafEdgesLeftFullWidth:t.positions.leafEdgesRightFullWidth))return(0,L.dy)(Gt||(Gt=ne([""])));var r=t.coordSpace.worldUnitsToRenderedPixels,i=r(t.computePageHeight(t.visiblePages[0])),o=(null===(n=t.activeFlip)||void 0===n?void 0:n.direction)==e,a=t.book.getPage("lr"==t.book.pageProgression?0:t.book.getNumLeafs()-1),s=t.book.getPage("lr"==t.book.pageProgression?t.book.getNumLeafs()-1:0),u=o?t.activeFlip.pagesFlippingCount:0,c="left"==e?[a.index,t.pageLeft.goLeft(u).index]:[t.pageRight.goRight(u).index,s.index],l={width:"".concat(r("left"==e?t.positions.leafEdgesLeftMainWidth:t.positions.leafEdgesRightMainWidth),"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftStart:t.positions.leafEdgesRightMainStart),"px")},f=(0,L.dy)(Yt||(Yt=ne(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n .pageClickHandler=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--','"\n style=',"\n ></br-leaf-edges>\n "])),c[0],c[1],t.book,(function(e){return t.br.jumpToIndex(e)}),e,e,B(l));if(o){var h=r("left"==e?t.positions.leafEdgesLeftMovingWidth:t.positions.leafEdgesRightMovingWidth),d={width:"".concat(h,"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftMovingStart:t.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==e?t.positions.pageLeftWidth:-t.positions.pageRightWidth)+h/2,"px 0")},p=(0,L.dy)(Kt||(Kt=ne(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--',' br-mode-2up__leafs--flipping"\n style=',"\n ></br-leaf-edges>\n "])),t.activeFlip.pagesFlipping[0],t.activeFlip.pagesFlipping[1],t.book,e,e,B(d));return"left"==e?(0,L.dy)(Xt||(Xt=ne(["","",""])),f,p):(0,L.dy)(Zt||(Zt=ne(["","",""])),p,f)}return f}}},{kind:"method",key:"resizeViaAutofit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(t,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],e=this.computeTranslate(t,this.scale);this.$book.style.transform="translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e,n,r,i,o,a;return[null===(t=this.visiblePages[0])||void 0===t||null===(e=t.prev)||void 0===e?void 0:e.prev,null===(n=this.visiblePages[0])||void 0===n?void 0:n.prev].concat((a=this.visiblePages,function(t){if(Array.isArray(t))return xe(t)}(a)||ke(a)||we(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[null===(r=this.visiblePages[this.visiblePages.length-1])||void 0===r?void 0:r.next,null===(i=this.visiblePages[this.visiblePages.length-1])||void 0===i||null===(o=i.next)||void 0===o?void 0:o.next]).filter((function(t){return t})).slice(0,10)}},{kind:"method",key:"computeScale",value:function(t,e){if(!t)return 1;var n=t.spread,r=this.computePositions(n.left,n.right).bookWidth,i=this.computePageHeight(n.left||n.right),o=this.scale;this.scale=1;var a=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth-20)/r,s=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientHeight-20)/i;this.scale=o;var u=1;if("width"==e)u=a;else if("height"==e)u=s;else if("auto"==e)u=Math.min(a,s);else{if("none"!=e)throw new Error("Invalid autoFit value: ".concat(e));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!t)return{x:0,y:0};var n=t.spread,r=this.computePositions(n.left,n.right),i=r.bookWidth,o=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(i)*e,s=this.coordSpace.worldUnitsToRenderedPixels(o)*e,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*e,c=(this.htmlDimensionsCacher.clientWidth-a)/2+u,l=(this.htmlDimensionsCacher.clientHeight-s)/2;return{x:Math.max(u,c),y:Math.max(0,l)}}},{kind:"method",key:"flipAnimation",value:(r=oe(re().mark((function e(n){var r,i,o,a,s,u,c,l,f,h,d,p,v,m,g,y,b,_,w,x,k,E,S,P,O,C,T,j,L,R=this,A=arguments;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(A.length>1&&void 0!==A[1]?A[1]:{}).animate,c=void 0===u||u,l=null===(r=this.pageLeft||this.pageRight)||void 0===r?void 0:r.spread){e.next=4;break}return e.abrupt("return");case 4:if(n=this.parseNextSpread(n),!this.activeFlip&&n){e.next=7;break}return e.abrupt("return");case 7:if(f=this.book.pageProgression,h=null!==(i=null===(o=l.left)||void 0===o?void 0:o.index)&&void 0!==i?i:"lr"==f?-1:this.book.getNumLeafs(),d=null!==(a=null===(s=n.left)||void 0===s?void 0:s.index)&&void 0!==a?a:"lr"==f?-1:this.book.getNumLeafs(),h!=d){e.next=12;break}return e.abrupt("return");case 12:p=this.renderedPages.map((function(t){return t.index})),v=[],m=0,g=[n.left,n.right];case 15:if(!(m<g.length)){e.next=24;break}if(y=g[m]){e.next=19;break}return e.abrupt("continue",21);case 19:v.push(this.createPageContainer(y)),p.includes(y.index)||this.renderedPages.push(y);case 21:m++,e.next=15;break;case 24:if(b=this.computeTranslate(l.left||l.right,this.scale),_=this.computeTranslate(n.left||n.right,this.scale),w=Math.sqrt(Math.pow(_.x-b.x,2)+Math.pow(_.y-b.y,2)),x="translate(".concat(_.x,"px, ").concat(_.y,"px)"),w<50&&(E=null===(k=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===k?void 0:k[0])&&(x=E),S="".concat(x," scale(").concat(this.scale,")"),!c||!("animate"in Element.prototype)){e.next=57;break}return P="lr"==f?d>h?"right":"left":d>h?"left":"right",this.activeFlip={direction:P,pagesFlipping:[h,d],pagesFlippingCount:Math.abs(d-h)},this.classList.add("br-mode-2up--flipping-".concat(P)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.next=38,this.updateComplete;case 38:return this.visiblePages.map((function(t){return R.pageContainerCache[t.index].$container})).forEach((function(t){return t.addClass("BRpage-exiting")})),v.forEach((function(t){return t.$container.addClass("BRpage-entering")})),O={duration:this.flipSpeed+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},C=this.$book.animate([{transform:S}],O),T=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==P?"rotateY(-180deg)":"rotateY(180deg)"}],O),j="left"==P?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],O):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],O),L="left"==P?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],O):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],O),C.play(),T.play(),j.play(),L.play(),v.forEach((function(t){return t.$container.addClass("BRpage-visible")})),e.next=52,Promise.race([(0,t.promisifyEvent)(C,"finish"),(0,t.promisifyEvent)(T,"finish"),(0,t.promisifyEvent)(j,"finish"),(0,t.promisifyEvent)(L,"finish")]);case 52:this.classList.remove("br-mode-2up--flipping-".concat(P)),this.classList.remove("BRpageFlipping"),this.visiblePages.map((function(t){return R.pageContainerCache[t.index].$container})).forEach((function(t){return t.removeClass("BRpage-exiting BRpage-visible")})),v.forEach((function(t){return t.$container.removeClass("BRpage-entering")})),this.activeFlip=null;case 57:this.$book.style.transform=S,this.visiblePages=("lr"==f?[n.left,n.right]:[n.right,n.left]).filter((function(t){return t}));case 59:case"end":return e.stop()}}),e,this)}))),function(t){return r.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(t){"next"==t?t="lr"==this.book.pageProgression?"right":"left":"prev"==t&&(t="lr"==this.book.pageProgression?"left":"right");var e,n,r=(this.pageLeft||this.pageRight).spread;if("left"==t)t=null===(e=r.left)||void 0===e||null===(n=e.findLeft({combineConsecutiveUnviewables:!0}))||void 0===n?void 0:n.spread;else if("right"==t){var i,o;t=null===(i=r.right)||void 0===i||null===(o=i.findRight({combineConsecutiveUnviewables:!0}))||void 0===o?void 0:o.spread}return"number"==typeof t&&(t=this.book.getPage(t).spread),t instanceof T&&(t=t.spread),t}},{kind:"field",key:"handlePageClick",value:function(){var t=this;return function(e){if(3==e.which&&t.br.protected)return!1;if(1==e.which){var n=te(e.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?t.flipAnimation("left"):"R"==n.data("side")&&t.flipAnimation("right"))}}}}]}}),L.oi),Oe=(de([(0,j.Mo)("br-leaf-edges")],(function(t,e){var n=function(e){ce(r,e);var n=fe(r);function r(){var e;ue(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),t(he(e)),e}return se(r)}(e);return{F:n,d:[{kind:"field",decorators:[(0,j.Cb)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,j.Cb)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,j.Cb)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,j.Cb)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,j.Cb)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,j.IO)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,j.IO)(".br-leaf-edges__label")],key:"$hoverLabel",value:void 0},{kind:"get",key:"pageWidthPercent",value:function(){return 100/(this.rightIndex-this.leftIndex+1)}},{kind:"method",key:"render",value:function(){return(0,L.dy)(Jt||(Jt=ne(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),B({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){Ee(Se(n.prototype),"connectedCallback",this).call(this),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("click",this.onClick)}},{kind:"method",key:"disconnectedCallback",value:function(){Ee(Se(n.prototype),"disconnectedCallback",this).call(this),this.addEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mousemove",this.onMouseMove),this.removeEventListener("mouseleave",this.onMouseLeave)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"onMouseEnter",value:function(){var t=this;return function(e){t.addEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="block",t.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var t=this;return function(e){t.$hoverBar.style.left="".concat(e.offsetX,"px"),"right"==t.side?t.$hoverLabel.style.left="".concat(e.offsetX,"px"):t.$hoverLabel.style.right="".concat(t.offsetWidth-e.offsetX,"px"),t.$hoverLabel.style.top="".concat(e.offsetY,"px");var n=t.mouseEventToPageIndex(e);t.$hoverLabel.textContent=t.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var t=this;return function(e){t.removeEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="none",t.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var t=this;return function(e){t.pageClickHandler(t.mouseEventToPageIndex(e))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(t){return Math.floor(this.leftIndex+t.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}}),L.oi),__webpack_require__(5311));function Ce(t){return Ce="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},Ce(t)}function Te(){Te=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ce(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function je(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Le(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){je(o,r,i,a,s,"next",t)}function s(t){je(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ce(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ce(i)?i:String(i)),r)}var i}var Ae=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode2UpLit=new Pe(n,e),this.mode2UpLit.flipSpeed=e.flipSpeed,this.$el=Oe(this.mode2UpLit).attr("autoFit",this.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(Le(Te().mark((function n(){return Te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=9;break}return t.mode2UpLit.initFirstRender(e),t.everShown=!0,t.mode2UpLit.requestUpdate(),n.next=6,t.mode2UpLit.updateComplete;case 6:new Dt(t.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.next=12;break;case 9:return n.next=11,t.mode2UpLit.jumpToIndex(e,{smooth:!1});case 11:t.resizePageView();case 12:t.mode2UpLit.style.opacity="1";case 13:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){this.mode2UpLit.jumpToIndex(t)}},{key:"zoom",value:function(t){switch(t){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode2UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode2UpLit.scale<this.mode2UpLit.initialScale&&"none"==this.mode2UpLit.autoFit&&(this.mode2UpLit.autoFit="auto"),"none"!=this.mode2UpLit.autoFit&&this.mode2UpLit.resizeViaAutofit(),this.mode2UpLit.recenter()}}])&&Re(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ie=__webpack_require__(5311);function Me(t){return Me="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},Me(t)}function Ne(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 $e(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)?$e(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Me(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Me(i)?i:String(i)),r)}var i}var Ue=function(){function n(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.br=t,this.book=e}var r,i;return r=n,i=[{key:"drawLeafs",value:function(n){var r,i,o,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,f=0,h=0,d=0,p=0,v=[],m=Ne(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(m.s();!(o=m.n()).done;){var g=o.value,y=this.br.thumbWidth;l+(y+this.br.thumbPadding)>c&&(d++,l=0,p=0),v[d]||(v[d]={}),v[d].leafs||(v[d].leafs=[],v[d].height=0,v[d].top=0),v[d].leafs[p]={num:g.index,left:l},(r=s(g.height*this.br.thumbWidth/g.width))>v[d].height&&(v[d].height=r),0===p&&(f+=this.br.thumbPadding+v[d].height),(l+=y+this.br.thumbPadding)>h&&(h=l),p++,g.index==n&&(i=f-this.br.thumbPadding-v[d].height)}}catch(t){m.e(t)}finally{m.f()}this.br.refs.$brPageViewEl.height(f);var b=s((this.br.refs.$brContainer.prop("scrollWidth")-h)/2)-14;void 0!==i&&this.br.refs.$brContainer.scrollTop(i);for(var _=this.br.refs.$brContainer.prop("scrollTop"),w=_+this.br.refs.$brContainer.height(),x=0,k=0,E=[],S=[],P=u.getNumLeafs()-1,O=0,C=0;C<v.length;C++)v[C]&&(k+=this.br.thumbPadding+v[C].height,(x>=_&&x<=w||k>=_&&k<=w||x<=_&&k>=w)&&(E.push(C),v[C].leafs[0].num<P&&(P=v[C].leafs[0].num),v[C].leafs[v[C].leafs.length-1].num>O&&(O=v[C].leafs[v[C].leafs.length-1].num)),x>v[C].top&&(v[C].top=x),x=k);for(var T=E[0],j=E[E.length-1],L=1;L<this.br.thumbRowBuffer+1;L++)j+L<v.length&&E.push(j+L);for(var R=1;R<this.br.thumbRowBuffer;R++)T-R>=0&&E.push(T-R);E.sort((function(t,e){return t-e}));for(var A=0,I=E;A<I.length;A++){var M=I[A];if((0,t.notInArray)(M,this.br.displayedRows)){if(!v[M])continue;var N,$=Ne(v[M].leafs);try{var D=function(){var t=N.value,n=t.num,r=t.left,i=a.br.thumbWidth,o=s(u.getPageHeight(n)*a.br.thumbWidth/u.getPageWidth(n)),l=v[M].top,f=r+b;"rl"==a.br.pageProgression&&(f=c-i-f),f+=a.br.thumbPadding,S.push(n);var h=s(u.getPageWidth(n)/a.br.thumbWidth),d=2*Math.round(h/2),p=a.br._createPageContainer(n).update({dimensions:{width:i,height:o,top:l,left:f},reduce:d});p.$container.data("leaf",n).on("mouseup",(function(t){a.br.updateFirstIndex(n,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var r=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(r),a.br._components.navbar.updateViewModeButton(Ie(".viewmode"),"twopg","Two-page view"),a.br.trigger(e.fragmentChange),t.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for($.s();!(N=$.n()).done;)D()}catch(t){$.e(t)}finally{$.f()}}}var U,B=Ne(this.br.displayedRows);try{for(B.s();!(U=B.n()).done;){var F=U.value;if((0,t.notInArray)(F,E)){var z,W,q=Ne(null===(z=v[F])||void 0===z?void 0:z.leafs);try{for(q.s();!(W=q.n()).done;){var H,V=W.value.num;null!=S&&S.includes(V)||null===(H=this.br.$(".pagediv".concat(V)))||void 0===H||H.remove()}}catch(t){q.e(t)}finally{q.f()}}}}catch(t){B.e(t)}finally{B.f()}var G=this.br.currentIndex();G<P?this.br.updateFirstIndex(P):G>O&&this.br.updateFirstIndex(O),this.br.displayedRows=E.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(t){var e=Ie(t).data("leaf"),n=Ie(t).data("reduce"),r=this.br.imageCache.image(e,n),i=Ie(t).parent();Ie(i).append(r),Ie(t).remove()}},{key:"zoom",value:function(e){var n=this.br.thumbColumns;switch(e){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(e))}this.br.thumbColumns=(0,t.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=n&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(t){var e=(t+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-e)/(t+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=Ie("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Dt(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){for(var e=this,n=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,f=0;f<=t;f++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var h=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));h>c&&(c=h),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(t),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){e.br.animating=!1})))}}],i&&De(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),Be=(__webpack_require__(4914),{floor:Math.floor,decr:function(t){return t-1}}),Fe={floor:function(t){return Math.pow(2,Math.floor(Math.log2(Math.max(1,t))))},decr:function(t){return Math.pow(2,Math.log2(t)-1)}},ze={pow2:Fe,integer:Be},We=__webpack_require__(5311);function qe(t){return qe="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},qe(t)}function He(t){return function(t){if(Array.isArray(t))return Ve(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ve(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)?Ve(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==qe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===qe(i)?i:String(i)),r)}var i}var Ye=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Fe:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.book=e,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var e,n;return e=t,n=[{key:"image",value:function(t,e){var n=(this.cache[t]||[]).filter((function(t){return t.loaded&&t.reduce<=e}));if(n.length){var r=Math.max.apply(Math,He(n.map((function(t){return t.reduce}))));return this._serveImageElement(t,r)}return this._serveImageElement(t,e)}},{key:"imageLoaded",value:function(t,e){var n,r,i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce<=e}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(e=this.cache[t])||void 0===e?void 0:e.filter((function(t){return t.loaded})))||[];if(!r.length)return null;var i=r.filter((function(t){return t.reduce>=n}));if(i.length)return Math.min.apply(Math,He(i.map((function(t){return t.reduce}))));var o=r.filter((function(t){return t.reduce<n}));return Math.max.apply(Math,He(o.map((function(t){return t.reduce}))))}},{key:"_serveImageElement",value:function(t,e){var n,r=this.reduceSet.floor(e),i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[t]||(this.cache[t]=[])).push(i));var o=this.book.getPage(t),a=We("<img />",{class:"BRpageimage",alt:"Book page image",src:o.getURI(r,0)}).data("reduce",r);return this.useSrcSet&&a.attr("srcset",o.getURISrcSet(r)),i.loaded||a.one("load",(function(){return i.loaded=!0})),a}}],n&&Ge(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ke=__webpack_require__(9860),Xe=__webpack_require__(5311),Ze=__webpack_require__(5311);function Je(t){return Je="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},Je(t)}function Qe(){Qe=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&n.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Je(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function tn(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function en(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){tn(o,r,i,a,s,"next",t)}function s(t){tn(o,r,i,a,s,"throw",t)}a(void 0)}))}}function nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Ze.extend(!0,{},rn.defaultOptions,t,rn.optionOverrides);this.setup(e)}function on(t,e,n){var r,i,o,a,s,u,c,l;i=n,o=function(t){return t.br},a=rn,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,u=function(t){return t._overrideable[e]},c=(r=t).prototype[i],l=function(){return c.apply(u(this),arguments)},Object.defineProperty(a.prototype,s,{get:function(){return l},set:function(t){r.prototype[i]=function(){var e=this instanceof r?o(this):this;return t.apply(e,arguments)},l=t}})}-1!=location.toString().indexOf("_debugShowConsole=true")&&Xe((function(){return(new p.E).init()})),rn.version="5.0.0-64",rn.constMode1up=1,rn.constMode2up=2,rn.constModeThumb=3,rn.imageCache=null,rn.constNavAnimationDuration=300,rn.constResizeAnimationDuration=100,rn.eventNames=e,rn.defaultOptions=h,rn.optionOverrides={},rn.prototype.setup=function(t){this.options=t,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=rn.constMode1up,this.constMode2up=rn.constMode2up,this.constModeThumb=rn.constModeThumb,this.reduce=8,this.defaults=t.defaults,this.padding=t.padding,this.reduceSet=ze[t.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(t.reduceSet,". Ignoring.")),this.reduceSet=ze[h.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=t.ui,this.uiAutoHide=t.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=t.thumbRowBuffer,this.thumbColumns=t.thumbColumns,this.thumbMaxLoading=t.thumbMaxLoading,this.thumbPadding=t.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed="number"==typeof t.flipSpeed?t.flipSpeed:{fast:200,slow:600}[t.flipSpeed]||400,this.flipDelay=t.flipDelay,this.firstIndex=null,this.isFullscreenActive=t.startFullscreen||!1,this.lastScroll=null,this.showLogo=t.showLogo,this.logoURL=t.logoURL,this.imagesBaseURL=t.imagesBaseURL,this.reductionFactors=t.reductionFactors,this.onePage=t.onePage,this.twoPage=t.twoPage,this.onePageMinBreakpoint=t.onePageMinBreakpoint,this.bookTitle=t.bookTitle,this.bookUrl=t.bookUrl,this.bookUrlText=t.bookUrlText,this.bookUrlTitle=t.bookUrlTitle,this.titleLeaf=t.titleLeaf,this.metadata=t.metadata,this.thumbnail=t.thumbnail,this.bookUrlMoreInfo=t.bookUrlMoreInfo,this.enableExperimentalControls=t.enableExperimentalControls,this.el=t.el,this.pageProgression=t.pageProgression,this.protected=t.protected,this.getEmbedCode=t.getEmbedCode,this.popup=null,this.data=t.data,this.refs={},this.book=new C(this),t.getNumLeafs&&(this.book.getNumLeafs=t.getNumLeafs.bind(this)),t.getPageWidth&&(this.book.getPageWidth=t.getPageWidth.bind(this)),t.getPageHeight&&(this.book.getPageHeight=t.getPageHeight.bind(this)),t.getPageURI&&(this.book.getPageURI=t.getPageURI.bind(this)),t.getPageSide&&(this.book.getPageSide=t.getPageSide.bind(this)),t.getPageNum&&(this.book.getPageNum=t.getPageNum.bind(this)),t.getPageProp&&(this.book.getPageProp=t.getPageProp.bind(this)),t.getSpreadIndices&&(this.book.getSpreadIndices=t.getSpreadIndices.bind(this)),t.leafNumToIndex&&(this.book.leafNumToIndex=t.leafNumToIndex.bind(this)),this._components={navbar:new o(this),toolbar:new b(this)},this._modes={mode1Up:new Qt(this,this.book),mode2Up:new Ae(this,this.book),modeThumb:new Ue(this,this.book)},this._overrideable={book:this.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new Ye(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},rn.prototype.getActivePageContainerElements=function(){var t=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map((function(t){return t.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(t){return t.$container[0]})));return this.mode==this.constModeThumb&&(t=t.concat(this.$(".BRpagecontainer").toArray())),t},rn.prototype.getActivePageContainerElementsForIndex=function(t){var e,n,r,i,o;return[null===(e=this._modes.mode2Up.mode2UpLit.pageContainerCache[t])||void 0===e||null===(n=e.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[t])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(t)).toArray():[],function(t){if(Array.isArray(t))return nn(t)}(o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return nn(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)?nn(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(t){return t}))},Object.defineProperty(rn.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),rn.util=t,rn.prototype.extendParams=function(t,e){var n=Xe.extend({},e);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Xe.extend(t,n)},rn.prototype.initParams=function(){var e={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?e.index=this.book.leafNumToIndex(this.titleLeaf):e.index=0,this.defaults){var n=this.paramsFromFragment(this.defaults);void 0!==n.page&&(e.pageFound=!0),this.extendParams(e,n)}if(this.options.enablePageResume){var r=this.getResumeValue();null!==r&&(e.index!==r&&(e.fragmentChange=!0),e.index=r)}if(this.options.enableUrlPlugin){var i=this.paramsFromFragment(this.urlReadFragment());!Object.keys(i).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(i=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(i).length&&(void 0!==i.page&&(e.pageFound=!0),this.extendParams(e,i),e.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!e.pageFound,!this.options.initialSearchTerm))if(e.search)this.options.initialSearchTerm=e.search,this.searchTerm=e.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=t.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},rn.prototype.getLocationSearch=function(){return window.location.search},rn.prototype.getLocationHash=function(){return window.location.hash},rn.prototype.readQueryString=function(){var t=this.getLocationSearch();if(t)return t;var e=this.getLocationHash(),n=e.search(/\?\w+=/);return n>-1?e.slice(n):""},rn.prototype.getInitialMode=function(t){var e,n=Xe(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(e=t.mode?t.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(e)||(e=this.constMode1up),this.options.defaults)try{e=function(t){var e={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(t in e))throw new d("Invalid mode string: ".concat(t));return e[t]}(this.options.defaults)}catch(t){}return e},rn.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var t=this.initParams();this.firstIndex=t.index?t.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Xe(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=Xe("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),t.mode=this.getInitialMode(t),this.mode=t.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(t),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(t){t.data.lastScroll=(new Date).getTime(),t.data.constModeThumb==t.data.mode&&t.data.drawLeafsThrottled()})),this.options.autoResize&&(Xe(window).on("resize",this,(function(t){t.data.resize()})),Xe(window).on("orientationchange",this,function(t){t.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(rn.eventNames.PostInit)},rn.prototype.trigger=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r="BookReader:"+e;t.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:{props:n}})),Xe(document).trigger(r,n)},rn.prototype.bind=function(t,e){Xe(document).on("BookReader:"+t,e)},rn.prototype.unbind=function(t,e){Xe(document).off("BookReader:"+t,e)},rn.prototype.resize=function(){this.init.initComplete&&(this.resizeBRcontainer(),this._components.navbar.switchNavbarControls(),this.constMode1up==this.mode?"none"!=this.onePage.autofit?(this._modes.mode1Up.resizePageView(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled()):this.constModeThumb==this.mode?this._modes.modeThumb.prepare():this._modes.mode2Up.resizePageView(),this.trigger(rn.eventNames.resize))},rn.prototype.setupKeyListeners=function(){var e=this;window.IntersectionObserver&&new IntersectionObserver((function(t){t.forEach((function(t){0===t.intersectionRatio?e.hasKeyFocus=!1:e.hasKeyFocus=!0}))}),{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",(function(n){if(e.hasKeyFocus&&!(n.getModifierState("Control")||n.getModifierState("Alt")||n.getModifierState("Meta")||n.getModifierState("Win")||t.isInputActive()))switch(n.key){case"Home":n.preventDefault(),e.first();break;case"End":n.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(n.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":e.constMode2up===e.mode&&(n.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(n.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(n.preventDefault(),e.right());break;case"-":case"Subtract":n.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":n.preventDefault(),e.zoom(1);break;case"F":case"f":n.preventDefault(),e.toggleFullscreen()}}))},rn.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},rn.prototype._createPageContainer=function(t){return new Ke._z(this.book.getPage(t,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},rn.prototype.bindGestures=function(t){var e=this,n=1;t.unbind("touchmove").bind("touchmove",(function(t){t.originalEvent.cancelable&&(n=t.originalEvent.touches.length),t.stopPropagation()})),t.unbind("gesturechange").bind("gesturechange",(function(t){t.preventDefault(),2!==n||(new Date).getTime()-e.lastScroll<500||(t.originalEvent.scale>1.5?e.zoom(1):t.originalEvent.scale<.6&&e.zoom(-1))}))},rn.prototype.drawLeafsThrottled=t.throttle(rn.prototype.drawLeafs,250),rn.prototype.zoom=function(t){var e;1==t?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},rn.prototype.resizeBRcontainer=function(t){t?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},rn.prototype.centerPageView=function(){var t=this.refs.$brContainer.prop("scrollWidth"),e=this.refs.$brContainer.prop("clientWidth");t>e&&this.refs.$brContainer.prop("scrollLeft",(t-e)/2)},rn.prototype.quantizeReduce=function(t,e){for(var n=e[0].reduce,r=Math.abs(t-n),i=1;i<e.length;i++){var o=Math.abs(t-e[i].reduce);o<r&&(r=o,n=e[i].reduce)}return n},rn.prototype.nextReduce=function(t,e,n){if("in"===e){for(var r=0,i=1;i<n.length;i++)n[i].reduce<t&&(r=i);return n[r]}if("out"===e){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>t&&(a=s);return n[a]}if("auto"===e){var u=n.find((function(t){return"auto"==t.autofit}));if(u)return u;for(var c=n.filter((function(t){var e=t.autofit;return"height"==e||"width"==e})),l=null,f=0;f<c.length;f++)(null===l||l.reduce<c[f].reduce)&&(l=c[f]);if(l)return l}else if("height"===e||"width"===e){var h=n.find((function(t){return t.autofit==e}));if(h)return h}return n[0]},rn.prototype._reduceSort=function(t,e){return t.reduce-e.reduce},rn.prototype.jumpToPage=function(t){var e=this.book.parsePageString(t);return void 0!==e&&(this.jumpToIndex(e),!0)},rn.prototype._isIndexDisplayed=function(t){return this.displayedIndices?this.displayedIndices.includes(t):this.currentIndex()==t},rn.prototype.jumpToIndex=function(t,e,n,r){var i=this.book.getPage(t);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,e,n,r)}this.trigger(rn.eventNames.stop),this.activeMode.jumpToIndex(t,e,n,r)},rn.prototype.getPrevReadMode=function(t){return t===rn.constMode1up||t===rn.constMode2up?t:null===this.prevReadMode?rn.constMode1up:void 0},rn.prototype.switchMode=function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o;if(i.init,i.pageFound,this.init.initComplete){if(t===this.mode)return;if(!this.canSwitchToMode(t))return}this.trigger(rn.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=t&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=t,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==t?this._modes.mode1Up.prepare():this.constModeThumb==t?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||a||this.trigger(rn.eventNames.fragmentChange);var s=t+"PageViewSelected";this.trigger(rn.eventNames[s]),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},rn.prototype.updateBrClasses=function(){var t={};t[this.constMode1up]="BRmode1up",t[this.constMode2up]="BRmode2up",t[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(t[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Xe(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Xe(document.body).removeClass("BRfullscreenActive"))},rn.prototype.isFullscreen=function(){return this.isFullscreenActive},rn.prototype.toggleFullscreen=en(Qe().mark((function t(){var e,n=arguments;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){t.next=6;break}return t.next=4,this.exitFullScreen();case 4:t.next=8;break;case 6:return t.next=8,this.enterFullscreen(e);case 8:case"end":return t.stop()}}),t,this)}))),rn.prototype.enterFullscreen=en(Qe().mark((function t(){var e,n,r,i=this,o=arguments;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(o.length>0&&void 0!==o[0])||o[0],this.refs.$br.addClass("BRfullscreenAnimation"),r=this.currentIndex(),n&&(this._fullscreenCloseHandler=function(t){27===t.keyCode&&i.toggleFullscreen()},Xe(document).on("keyup",this._fullscreenCloseHandler)),Xe(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),!(this.activeMode instanceof Qt)){t.next=13;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),t.next=13,this.activeMode.mode1UpLit.updateComplete;case 13:return this.jumpToIndex(r),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(rn.eventNames.fragmentChange),this.trigger(rn.eventNames.fullscreenToggled),t.next=19,new Promise((function(t){return setTimeout(t,0)}));case 19:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 21:case"end":return t.stop()}}),t,this)}))),rn.prototype.exitFullScreen=en(Qe().mark((function t(){var e,n;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Xe(document).off("keyup",this._fullscreenCloseHandler),n=Xe(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(rn.eventNames.fullscreenToggled),this.updateBrClasses(),t.next=10,new Promise((function(t){return setTimeout(t,0)}));case 10:if(this.resize(),!(this.activeMode instanceof Qt)){t.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),t.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(rn.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 19:case"end":return t.stop()}}),t,this)}))),rn.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return t.clamp(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},rn.prototype.updateFirstIndex=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).suppressFragmentChange,n=void 0!==e&&e;this.firstIndex!==t&&(this.firstIndex=t,this.suppressFragmentChange||n||this.trigger(rn.eventNames.fragmentChange),this.options.initialSearchTerm&&!n&&(this.suppressFragmentChange=!1),this.trigger(rn.eventNames.pageChanged),this.trigger(rn.eventNames.userAction),this._components.navbar.updateNavIndexThrottled(t))},rn.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},rn.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},rn.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},rn.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},rn.prototype.next=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggerStop,e=void 0===t||t;this.constMode2up==this.mode?(e&&this.trigger(rn.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("next")):this.firstIndex<this.book.getNumLeafs()-1&&this.jumpToIndex(this.firstIndex+1)},rn.prototype.prev=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggerStop,e=void 0===t||t;this.firstIndex<1||(this.constMode2up==this.mode?(e&&this.trigger(rn.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("prev")):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},rn.prototype.first=function(){this.jumpToIndex(0)},rn.prototype.last=function(){this.jumpToIndex(this.book.getNumLeafs()-1)},rn.prototype.initNavbar=o.prototype.init,on(o,"_components.navbar","init","initNavbar"),rn.prototype.buildToolbarElement=b.prototype.buildToolbarElement,on(b,"_components.toolbar","buildToolbarElement"),rn.prototype.initToolbar=b.prototype.initToolbar,on(b,"_components.toolbar","initToolbar"),rn.prototype.buildShareDiv=b.prototype.buildShareDiv,on(b,"_components.toolbar","buildShareDiv"),rn.prototype.buildInfoDiv=b.prototype.buildInfoDiv,on(b,"_components.toolbar","buildInfoDiv"),rn.prototype.getToolBarHeight=b.prototype.getToolBarHeight,on(b,"_components.toolbar","getToolBarHeight"),rn.prototype.bindNavigationHandlers=function(){var t=this,e=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){t.trigger(rn.eventNames.stop),t.left()},book_right:function(){t.trigger(rn.eventNames.stop),t.right()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){t.switchMode(e.constMode1up)},thumb:function(){t.switchMode(e.constModeThumb)},twopg:function(){t.switchMode(e.constMode2up)},zoom_in:function(){t.trigger(rn.eventNames.stop),t.zoom(1),t.trigger(rn.eventNames.zoomIn)},zoom_out:function(){t.trigger(rn.eventNames.stop),t.zoom(-1),t.trigger(rn.eventNames.zoomOut)},full:function(){if("embed"==t.ui){var e=t.$(".BRembedreturn a").attr("href");window.open(e)}else t.toggleFullscreen()}};this.$("nav.BRcontrols li button").on("click",(function(){t.trigger(rn.eventNames.userAction)}));var i=function(t){n.filter(".".concat(t)).on("click.bindNavigationHandlers",(function(){return r[t](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var t=[];a.hasClass("BRdn")?(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:-1*e.getToolBarHeight()}).promise()),t.push(e.$(".BRfooter").animate({bottom:-1*e.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),e.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:0}).promise()),t.push(e.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),e.$(".BRvavCntl").animate({opacity:1})),Xe.when.apply(Xe,t).done((function(){e.mode==e.constMode2up&&null!=e.twoPage.autofit&&"none"!=e.twoPage.autofit||e.mode==e.constMode1up&&null!=e.onePage.autofit&&"none"!=e.onePage.autofit?e.resize():e.resizeBRcontainer()}))})),a.on("mouseover",(function(){Xe(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Xe(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Xe(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Xe(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:.75},250)}))},rn.prototype.getPageURI=C.prototype.getPageURI,on(C,"book","getPageURI"),rn.prototype.updateFromParams=function(t){var e=t.mode,n=void 0===e?0:e,r=t.init,i=void 0!==r&&r,o=t.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==t.index?t.index!=this.currentIndex()&&this.jumpToIndex(t.index):void 0!==t.page&&t.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(t.page),this.enableSearch&&void 0!==t.search&&this.searchTerm!==t.search&&this.$(".BRsearchInput").val(t.search),this.enableThemesPlugin&&void 0!==t.theme&&this.updateTheme(t.theme)},rn.prototype.canSwitchToMode=function(t){return t!=this.constMode2up&&t!=this.constModeThumb||!(this.book.getNumLeafs()<2)},rn.prototype._getPageURI=function(t,e,n){var r=this.book.getPage(t,!1);return r?(void 0===e&&(e=r.height/this.twoPage.height),r.getURI(e,n)):this.imagesBaseURL+"transparent.png"},rn.prototype.showProgressPopup=function(t,e){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Xe(this.popup).prop("className","BRprogresspopup"),"function"==typeof e){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),Xe(r).append(i),r.addEventListener("click",(function(){e(),n.removeProgressPopup()})),Xe(this.popup).append(r)}var o=document.createElement("div");if(Xe(o).css({height:"20px"}).prop("className","BRprogressbar"),Xe(this.popup).append(o),t){var a=document.createElement("div");a.innerHTML=t,Xe(this.popup).append(a)}Xe(this.popup).appendTo(this.refs.$br)}},rn.prototype.removeProgressPopup=function(){Xe(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},rn.prototype.initUIStrings=function(){var t={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var e in"rl"==this.pageProgression&&(t[".book_leftmost"]="Last page",t[".book_rightmost"]="First page"),t)this.$(e).prop("title",t[e])},rn.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(t,e){if(!e.complete||0===e.naturalHeight){var n=e.src;e.src="",setTimeout((function(){e.src=n}),1e3)}}))},rn.prototype.getFooterHeight=function(){var t=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(t&&this.refs.$BRfooter){var e=t.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(e)&&!isNaN(n))return e+n}return 0},rn.prototype.paramsFromCurrent=function(){var t={},e=this.currentIndex(),n=this.book.getPageNum(e);return(0===n||n)&&(t.page=n),t.index=e,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),this.enableSearch&&(t.search=this.searchTerm),t},rn.prototype.paramsFromFragment=function(e){var n={};"#"==e.substr(0,1)&&(e=e.substr(1));var r=parseInt(/^\d+$/.exec(e));if(!isNaN(r))return n.index=r,n;for(var i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?n.mode=this.constMode1up:"2up"==o.mode?n.mode=this.constMode2up:"thumb"==o.mode&&(n.mode=this.constModeThumb),void 0!==o.page&&(n.page=o.page),null!=o.search&&(n.search=t.decodeURIComponentPlus(o.search)),null!=o.theme&&(n.theme=o.theme),n},rn.prototype.fragmentFromParams=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",r=[];if(void 0!==e.page?r.push("page",e.page):void 0!==e.index&&r.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)r.push("mode","1up");else if(e.mode==this.constMode2up)r.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;r.push("mode","thumb")}return e.search&&"hash"===n&&r.push("search",e.search),t.encodeURIComponentPlus(r.join("/")).replace(/%2F/g,"/")},rn.prototype.queryStringFromParams=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(e);t.view?r.set("view",t.view):r.delete("view"),t.search&&"history"===n&&r.set("q",t.search);var i=r.toString();return i?"?"+i:""},rn.prototype.$=function(t){return this.refs.$br.find(t)},window.BookReader=rn}(),__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|
2
|
+
!function(){var t,e={9860:function(t,e,n){"use strict";n.d(e,{RS:function(){return h},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 i(t){return i="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},i(t)}function o(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}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<e;n++)r[n]=t[n];return r}function u(){u=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.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,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function g(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(O([])));b&&b!==e&&n.call(b,a)&&(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 k(t,e){function o(r,a,s,u){var c=h(t[r],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==i(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;r(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(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===d)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=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(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,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=g,r(w,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function c(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}var f=function(){function t(e,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.page=e,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var e,n;return e=t,n=[{key:"update",value:function(t){var e,n,i=t.dimensions,o=void 0===i?null:i,a=t.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var l=this.imageCache.imageLoaded(this.page.index,s),f=!l&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(e=this.$img)||void 0===e?void 0:e[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var d=[];return l||(this.$container.addClass("BRpageloading"),d.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),f&&d.push('url("'.concat(this.page.getURI(f,0),'") center/100% 100% no-repeat')),l||this.$img.css("background",d.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,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,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 h(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 d(t){var e=t.l,n=t.r,r=t.b,i=t.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-e).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function p(t,e,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=i.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=i.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(i)}var f,h=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,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(e.entries());try{for(h.s();!(f=h.n()).done;){var p=o(f.value,2),v=p[0],g=d(p[1]);s&&g.setAttribute("class",s[v]),c.appendChild(g)}}catch(t){h.e(t)}finally{h.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 i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new C(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function g(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(O([])));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 k(t,e){function i(o,a,s,u){var c=h(t[o],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){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===d)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=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(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,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(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,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,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);n<e;n++)r[n]=t[n];return r}function u(t){t.bind("mousedown",(function(){return!1})),t[0].onselectstart=function(){return!1}}function c(t,e,n){return Math.min(Math.max(t,e),n)}function l(t,e){return t/e*100+"%"}function f(t,e){return!e.includes(t)}function h(){var t=arguments.length>0&&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?h(n.shadowRoot,!0):n}function d(){var t=h(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(/</g,"<").replace(/"/g,""")}function g(t){return decodeURIComponent(t).replace(/\+/g," ")}function m(t){return encodeURIComponent(t).replace(/%20/g,"+")}function y(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,o)}),e),a&&t.apply(i,o)}}function b(t,e,n){var r,i;return e||(e=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+e?(clearTimeout(i),i=setTimeout((function(){r=o,t.apply(n,a)}),e)):(r=o,t.apply(n,a))}}function w(t){if("function"==typeof t.CustomEvent)return!1;t.CustomEvent=x}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,i=e.cancelable,o=void 0!==i&&i,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,o,s),u}function k(){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 _(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,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function E(t,e){return t.length==e.length&&t.every((function(t,n){return t==e[n]}))}function P(t,e){return t&&e&&!E(t,e)}function C(t){return O.apply(this,arguments)}function O(){return(O=a(i().mark((function t(e){return i().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 T(t){return L.apply(this,arguments)}function L(){return L=a(i().mark((function t(e){var n,r,o,a,s,u,c,l,f,h,d,p=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(n=p.length>1&&void 0!==p[1]?p[1]:{}).step,o=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?C:l,h=Date.now();case 2:if(!(Date.now()-h<s)){t.next=10;break}if(d=e(),!c(d)){t.next=6;break}return t.abrupt("return",d);case 6:return t.next=8,f(o);case 8:t.next=2;break;case 10:case"end":return t.stop()}}),t)}))),L.apply(this,arguments)}function j(t,e){return new Promise((function(n){t.addEventListener(e,(function r(i){t.removeEventListener(e,r),n(i)}))}))}function R(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}n.r(e),n.d(e,{PolyfilledCustomEvent:function(){return x},arrChanged:function(){return P},arrEquals:function(){return E},calcScreenDPI:function(){return k},clamp:function(){return c},cssPercentage:function(){return l},debounce:function(){return y},decodeURIComponentPlus:function(){return g},disableSelect:function(){return u},encodeURIComponentPlus:function(){return m},escapeHTML:function(){return v},escapeRegExp:function(){return R},genToArray:function(){return _},getActiveElement:function(){return h},getIFrameDocument:function(){return p},isInputActive:function(){return d},notInArray:function(){return f},poll:function(){return T},polyfillCustomEvent:function(){return w},promisifyEvent:function(){return j},sleep:function(){return C},sum:function(){return S},throttle:function(){return b}}),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(9714),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(2443),n(3680),n(3706),n(2703),n(489),n(4747),n(5069)},9662:function(t,e,n){var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(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),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(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),i=n(1400),o=n(6244);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].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),i=n(6916),o=n(7908),a=n(3411),s=n(7659),u=n(4411),c=n(6244),l=n(6135),f=n(4121),h=n(1246),d=Array;t.exports=function(t){var e=o(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,k,S=h(e),_=0;if(!S||this===d&&s(S))for(m=c(e),y=n?new this(m):d(m);m>_;_++)k=g?v(e[_],_):e[_],l(y,_,k);else for(x=(w=f(e,S)).next,y=n?new this:[];!(b=i(x,w)).done;_++)k=g?a(w,v,[b.value,_],!0):b.value,l(y,_,k);return y.length=_,y}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(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),i=n(1702),o=n(8361),a=n(7908),s=n(6244),u=n(5417),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(p,v,g,m){for(var y,b,w=a(p),x=o(w),k=r(v,g),S=s(x),_=0,E=m||u,P=e?E(p,S):n||h?E(p,0):void 0;S>_;_++)if((d||_ in x)&&(b=k(y=x[_],_,w),t))if(e)P[_]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return _;case 2:c(P,y)}else switch(t){case 4:return!1;case 7:c(P,y)}return f?-1:i||l?l:P}};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),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=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),i=n(7908),o=n(8361),a=n(6244),s=TypeError,u=function(t){return function(e,n,u,c){r(n);var l=i(e),f=o(l),h=a(l),d=t?h-1:0,p=t?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:u(!1),right:u(!0)}},3658:function(t,e,n){"use strict";var r=n(9781),i=n(3157),o=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(i(t)&&!a(t,"length").writable)throw o("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),i=n(6244),o=n(6135),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),c=r(e,u),l=r(void 0===n?u:n,u),f=a(s(l-c,0)),h=0;c<l;c++,h++)o(f,h,t[c]);return f.length=h,f}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,u),e),o(r(t,u),e),e)},a=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},7475:function(t,e,n){var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:function(t,e,n){"use strict";var r=n(3070).f,i=n(30),o=n(9190),a=n(9974),s=n(5787),u=n(8554),c=n(408),l=n(1656),f=n(6178),h=n(6340),d=n(9781),p=n(2423).fastKey,v=n(9909),g=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,r){s(t,h),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(r)||c(r,t[l],{that:t,AS_ENTRIES:n})})),h=f.prototype,v=m(e),y=function(t,e,n){var r,i,o=v(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=v(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(h,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(this),r=a(t,arguments.length>1?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)}}),o(h,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)}}),d&&r(h,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=m(e),o=m(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(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),h(e)}}},9320:function(t,e,n){"use strict";var r=n(1702),i=n(9190),o=n(2423).getWeakData,a=n(5787),s=n(9670),u=n(8554),c=n(111),l=n(408),f=n(2092),h=n(2597),d=n(9909),p=d.set,v=d.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=[]},k=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=k(this,t);if(e)return e[1]},has:function(t){return!!k(this,t)},set:function(t,e){var n=k(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,i){a(t,d),p(t,{type:e,id:b++,frozen:void 0}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,g=v(e),m=function(t,e,n){var r=g(t),i=o(s(e),!0);return!0===i?w(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?w(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=g(this);if(c(t)){var n=o(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),i=n(7854),o=n(1702),a=n(4705),s=n(8052),u=n(2423),c=n(408),l=n(5787),f=n(614),h=n(8554),d=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=i[t],k=x&&x.prototype,S=x,_={},E=function(t){var e=o(k[t]);s(k,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(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||k.forEach&&!p((function(){(new x).entries().next()})))))S=n.getConstructor(e,t,y,w),u.enable();else if(a(t,!0)){var P=new S,C=P[w](b?{}:-0,1)!=P,O=p((function(){P.has(1)})),T=v((function(t){new x(t)})),L=!b&&p((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));T||((S=e((function(t,e){l(t,k);var n=m(new x,t,S);return h(e)||c(e,n[w],{that:n,AS_ENTRIES:y}),n}))).prototype=k,k.constructor=S),(O||L)&&(E("delete"),E("has"),y&&E("get")),(L||C)&&E(w),b&&k.clear&&delete k.clear}return _[t]=S,r({global:!0,constructor:!0,forced:S!=x},_),g(S,t),b||n.setStrong(S,t,y),S}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6178:function(t){t.exports=function(t,e){return{value:t,done:e}}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8709:function(t,e,n){"use strict";var r=n(9670),i=n(2140),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return i(this,t)}},8052:function(t,e,n){var r=n(614),i=n(3070),o=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9190:function(t,e,n){var r=n(8052);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},3072:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},5117:function(t,e,n){"use strict";var r=n(6330),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},7207:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)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,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},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),i=n(5268);t.exports=!r&&!i&&"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),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.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),i=n(7854);t.exports="process"==r(i.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,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},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),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,h,d,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(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,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),i=n(8052),o=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 h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var v=r(/./[h]),g=e(h,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,h,g[1])}f&&u(l[h],"sham",!0)}},6790:function(t,e,n){"use strict";var r=n(3157),i=n(6244),o=n(7207),a=n(9974),s=function(t,e,n,u,c,l,f,h){for(var d,p,v=c,g=0,m=!!f&&a(f,h);g<u;)g in n&&(d=m?m(n[g],g,e):n[g],l>0&&r(d)?(p=i(d),v=s(t,e,d,p,v,l-1)-1):(o(v+1),t[v]=d),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),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(t,e,n){var r=n(1470),i=n(9662),o=n(4374),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?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),i=n(9662),o=n(111),a=n(2597),s=n(206),u=n(4374),c=Function,l=r([].concat),f=r([].join),h={};t.exports=u?c.bind:function(t){var e=i(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(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(u.prototype=n),u}},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1470:function(t,e,n){var r=n(4326),i=n(1702);t.exports=function(t){if("Function"===r(t))return i(t)}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(8554),a=n(7497),s=n(5112)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},4121:function(t,e,n){var r=n(6916),i=n(9662),o=n(9670),a=n(6330),s=n(1246),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw u(a(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662),i=n(8554);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},647:function(t,e,n){var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}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),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(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),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},2423:function(t,e,n){var r=n(2109),i=n(1702),o=n(3501),a=n(111),s=n(2597),u=n(3070).f,c=n(8006),l=n(1156),f=n(2050),h=n(9711),d=n(6677),p=!1,v=h("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=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!f(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&f(t)&&!s(t,v)&&m(t),t}};o[v]=!0},9909:function(t,e,n){var r,i,o,a=n(4811),s=n(7854),u=n(111),c=n(8880),l=n(2597),f=n(5465),h=n(6200),d=n(3501),p="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw v(p);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var y=h("state");d[y]=!0,r=function(t,e){if(l(t,y))throw v(p);return e.facade=t,c(t,y,e),e},i=function(t){return l(t,y)?t[y]:{}},o=function(t){return l(t,y)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t,e,n){var r=n(4154),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(c),v=function(t){if(!o(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},5032:function(t,e,n){var r=n(2597);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,n){var r=n(614),i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:function(t,e,n){var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},408:function(t,e,n){var r=n(9974),i=n(6916),o=n(9670),a=n(6330),s=n(7659),u=n(6244),c=n(7976),l=n(4121),f=n(1246),h=n(9212),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,y,b,w,x,k,S=n&&n.that,_=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),P=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),O=r(e,S),T=function(t){return g&&h(g,"normal",t),new p(!0,t)},L=function(t){return _?(o(t),C?O(t[0],t[1],T):O(t[0],t[1])):C?O(t,T):O(t)};if(E)g=t.iterator;else if(P)g=t;else{if(!(m=f(t)))throw d(a(t)+" is not iterable");if(s(m)){for(y=0,b=u(t);b>y;y++)if((w=L(t[y]))&&c(v,w))return w;return new p(!1)}g=l(t,m)}for(x=E?t.next:g.next;!(k=i(x,g)).done;){try{w=L(k.value)}catch(t){h(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),i=n(9670),o=n(8173);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(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 i(a),n}},3061:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=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=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},1656:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),a=n(6530),s=n(614),u=n(3061),c=n(9518),l=n(7674),f=n(8003),h=n(8880),d=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"),k="keys",S="values",_="entries",E=function(){return this};t.exports=function(t,e,n,a,p,g,P){u(n,e,a);var C,O,T,L=function(t){if(t===p&&M)return M;if(!w&&t in A)return A[t];switch(t){case k:case S:case _:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",R=!1,A=t.prototype,I=A[x]||A["@@iterator"]||p&&A[p],M=!w&&I||L(p),N="Array"==e&&A.entries||I;if(N&&(C=c(N.call(new t)))!==Object.prototype&&C.next&&(o||c(C)===b||(l?l(C,b):s(C[x])||d(C,x,E)),f(C,j,!0,!0),o&&(v[j]=E)),m&&p==S&&I&&I.name!==S&&(!o&&y?h(A,"name",S):(R=!0,M=function(){return i(I,this)})),p)if(O={values:L(S),keys:g?M:L(k),entries:L(_)},P)for(T in O)(w||R||!(T in A))&&d(A,T,O[T]);else r({target:e,proto:!0,forced:w||R},O);return o&&!P||A[x]===M||d(A,x,M,{name:p}),v[e]=M,O}},3383:function(t,e,n){"use strict";var r,i,o,a=n(7293),s=n(614),u=n(111),c=n(30),l=n(9518),f=n(8052),h=n(5112),d=n(1913),p=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:d&&(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),i=n(614),o=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,u=n(2788),c=n(9909),l=c.enforce,f=c.get,h=Object.defineProperty,d=a&&!r((function(){return 8!==h((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),(!o(t,"name")||s&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(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,i,o,a,s,u,c,l,f=n(7854),h=n(9974),d=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,k=f.Promise,S=d(f,"queueMicrotask"),_=S&&S.value;_||(r=function(){var t,e;for(y&&(t=x.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||y||m||!b||!w?!g&&k&&k.resolve?((c=k.resolve(void 0)).constructor=k,l=h(c.then,c),a=function(){l(r)}):y?a=function(){x.nextTick(r)}:(p=h(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=_||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},8523:function(t,e,n){"use strict";var r=n(9662),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},3929:function(t,e,n){var r=n(7850),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},3009:function(t,e,n){var r=n(7854),i=n(7293),o=n(1702),a=n(1340),s=n(3111).trim,u=n(1361),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=o(h.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},1574:function(t,e,n){"use strict";var r=n(9781),i=n(1702),o=n(6916),a=n(7293),s=n(1956),u=n(5181),c=n(5296),l=n(7908),f=n(8361),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=u.f,d=c.f;i>a;)for(var v,g=f(arguments[a++]),m=h?p(s(g),h(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:h},30:function(t,e,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200),f="prototype",h="script",d=l("IE_PROTO"),p=function(){},v=function(t){return"<"+h+">"+t+"</"+h+">"},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"+h+":",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 i=a.length;i--;)delete m[f][a[i]];return m()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=i(t),n=new p,p[f]=null,n[d]=t):n=m(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],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),i)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),i=n(6916),o=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(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=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 o(t)}catch(t){return a(s)}}(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(2597),i=n(614),o=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=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},2050:function(t,e,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!=o(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),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),i=n(9670),o=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 i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(6916),i=n(614),o=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.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),i=n(2492),o=n(614),a=n(4705),s=n(2788),u=n(5112),c=n(7871),l=n(3823),f=n(1913),h=n(7392),d=i&&i.prototype,p=u("species"),v=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((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),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},612:function(t,e,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;t.exports=o||!i((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),i=n(9670),o=n(614),a=n(4326),s=n(2261),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=r(n,t,e);return null!==c&&i(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,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),f=n(30),h=n(9909).get,d=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),k=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=c.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(k||_||S||d||p)&&(m=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),E=s(t),P=p.raw;if(P)return P.lastIndex=d.lastIndex,e=o(m,P,E),d.lastIndex=P.lastIndex,e;var C=p.groups,O=S&&d.sticky,T=o(u,d),L=d.source,j=0,R=E;if(O&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),R=x(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(E,d.lastIndex-1))&&(L="(?: "+L+")",R=" "+R,j++),n=new RegExp("^(?:"+L+")",T)),_&&(n=new RegExp("^"+L+"$(?!\\s)",T)),k&&(r=d.lastIndex),i=o(g,O?n:d,R),O?i?(i.input=x(i.input,j),i[0]=x(i[0],j),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),_&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&C)for(i.groups=c=f(null),a=0;a<C.length;a++)c[(l=C[a])[0]]=i[l[1]];return i}),t.exports=m},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:function(t,e,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(8554),i=TypeError;t.exports=function(t){if(r(t))throw i("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),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[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),i=n(9483),o=n(8554),a=n(5112)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},8710:function(t,e,n){var r=n(1702),i=n(9303),o=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=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=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=o(i(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),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((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),i=n(5005),o=n(5112),a=n(8052);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("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,i,o,a,s=n(7854),u=n(2104),c=n(9974),l=n(614),f=n(2597),h=n(7293),d=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,k=s.Dispatch,S=s.Function,_=s.MessageChannel,E=s.String,P=0,C={},O="onreadystatechange";try{r=s.location}catch(t){}var T=function(t){if(f(C,t)){var e=C[t];delete C[t],e()}},L=function(t){return function(){T(t)}},j=function(t){T(t.data)},R=function(t){s.postMessage(E(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 C[++P]=function(){u(e,void 0,n)},i(P),P},w=function(t){delete C[t]},y?i=function(t){x.nextTick(L(t))}:k&&k.now?i=function(t){k.now(L(t))}:_&&!m?(a=(o=new _).port2,o.port1.onmessage=j,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(R)?(i=R,s.addEventListener("message",j,!1)):i=O in v("script")?function(t){d.appendChild(v("script"))[O]=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(L(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),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(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),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),u=n(5112),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(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),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(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),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(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),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},5143:function(t,e,n){var r=n(7293),i=n(5112),o=n(1913),a=i("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})),o&&!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),i=n(7293);t.exports=r&&i((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<n)throw e("Not enough arguments");return t}},4811:function(t,e,n){var r=n(7854),i=n(614),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},6800:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(6293),u=n(3307),c=i("wks"),l=r.Symbol,f=l&&l.for,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):h(e)}return c[t]}},1361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),u=n(6244),c=n(7207),l=n(6135),f=n(5417),h=n(1194),d=n(5112),p=n(7392),v=d("isConcatSpreadable"),g=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=h("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!m},{concat:function(t){var e,n,r,i,o,a=s(this),h=f(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(y(o=-1===e?a:arguments[e]))for(i=u(o),c(d+i),n=0;n<i;n++,d++)n in o&&l(h,d,o[n]);else c(d+1),l(h,d++,o);return h.length=d,h}})},3290:function(t,e,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=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 i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(t,e,n){"use strict";var r=n(2109),i=n(2092).find,o=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 i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=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 o(t),(e=u(n,0)).length=i(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),i=n(6790),o=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=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},1038:function(t,e,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:function(t,e,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(7293),a=n(1223);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(1656),c=n(6178),l=n(1913),f=n(9781),h="Array Iterator",d=a.set,p=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,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=o.Arguments=o.Array;if(i("keys"),i("values"),i("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),i=n(1702),o=n(8361),a=n(5656),s=n(9341),u=i([].join),c=o!=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),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},5069:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3157),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),s=n(1400),u=n(6244),c=n(5656),l=n(6135),f=n(5112),h=n(1194),d=n(206),p=h("slice"),v=f("species"),g=Array,m=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,f,h=c(this),p=u(h),y=s(t,p),b=s(void 0===e?p:e,p);if(i(h)&&(n=h.constructor,(o(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return d(h,y,b);for(r=new(void 0===n?g:n)(m(b-y,0)),f=0;y<b;y++,f++)y in h&&l(r,f,h[y]);return r.length=f,r}})},2707:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(5117),c=n(1340),l=n(7293),f=n(4362),h=n(9341),d=n(8886),p=n(256),v=n(7392),g=n(8008),m=[],y=i(m.sort),b=i(m.push),w=l((function(){m.sort(void 0)})),x=l((function(){m.sort(null)})),k=h("sort"),S=!l((function(){if(v)return v<70;if(!(d&&d>3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";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;r<m.length;r++)e=m[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:w||!x||!k||!S},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(S)return void 0===t?y(e):y(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&b(i,e[r]);for(f(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},561:function(t,e,n){"use strict";var r=n(2109),i=n(7908),o=n(1400),a=n(9303),s=n(6244),u=n(3658),c=n(7207),l=n(5417),f=n(6135),h=n(5117),d=n(1194)("splice"),p=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,g,m,y,b=i(this),w=s(b),x=o(t,w),k=arguments.length;for(0===k?n=r=0:1===k?(n=0,r=w-x):(n=k-2,r=v(p(a(e),0),w-x)),c(w+n-r),d=l(b,r),g=0;g<r;g++)(m=x+g)in b&&f(d,g,b[m]);if(d.length=r,n<r){for(g=x;g<w-r;g++)y=g+n,(m=g+r)in b?b[y]=b[m]:h(b,y);for(g=w;g>w-r+n;g--)h(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]:h(b,y);for(g=0;g<n;g++)b[g+x]=arguments[g+2];return u(b,w-r+n),d}})},9244:function(t,e,n){n(1223)("flatMap")},3792:function(t,e,n){n(1223)("flat")},6078:function(t,e,n){var r=n(2597),i=n(8052),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),a=n(3070).f,s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},5837:function(t,e,n){var r=n(2109),i=n(7854);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(6916),s=n(1702),u=n(7293),c=n(3157),l=n(614),f=n(111),h=n(2190),d=n(206),p=n(6293),v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,_=!p||u((function(){var t=i("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),E=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),P=function(t,e){var n=d(arguments),r=e;if((f(e)||void 0!==t)&&!h(t))return c(e)||(e=function(t,e){if(l(r)&&(e=a(r,this,t,e)),!h(e))return e}),n[1]=e,o(v,null,n)},C=function(t,e,n){var r=m(n,e-1),i=m(n,e+1);return g(k,t)&&!g(S,i)||g(S,t)&&!g(k,r)?"\\u"+w(y(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:_||E},{stringify:function(t,e,n){var r=d(arguments),i=o(_?P:v,null,r);return E&&"string"==typeof i?b(i,x,C):i}})},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";n(7710)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(t,e,n){n(9098)},4914:function(t,e,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},2420:function(t,e,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(t,e,n){n(8003)(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(2109),i=n(1913),o=n(9781),a=n(7854),s=n(857),u=n(1702),c=n(4705),l=n(2597),f=n(9587),h=n(7976),d=n(2190),p=n(7593),v=n(7293),g=n(8006).f,m=n(1236).f,y=n(3070).f,b=n(863),w=n(3111).trim,x="Number",k=a[x],S=s[x],_=k.prototype,E=a.TypeError,P=u("".slice),C=u("".charCodeAt),O=c(x,!k(" 0o1")||!k("0b1")||k("+0x1")),T=function(t){var e,n=arguments.length<1?0:k(function(t){var e=p(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,o,a,s,u,c=p(t,"number");if(d(c))throw E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=C(c,0))||45===e){if(88===(n=C(c,2))||120===n)return NaN}else if(48===e){switch(C(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=P(c,2)).length,s=0;s<a;s++)if((u=C(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c}(e)}(t));return h(_,e=this)&&v((function(){b(e)}))?f(Object(n),this,T):n};T.prototype=_,O&&!i&&(_.constructor=T),r({global:!0,constructor:!0,wrap:!0,forced:O},{Number:T});var L=function(t,e){for(var n,r=o?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(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&y(t,n,m(e,n))};i&&S&&L(s[x],S),(O||i)&&L(s[x],k)},9601:function(t,e,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},3371:function(t,e,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},5003:function(t,e,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:function(t,e,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},9660:function(t,e,n){var r=n(2109),i=n(6293),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((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),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(8052),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1058:function(t,e,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=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=o(e.resolve),a=[],s=0,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=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),i=n(1913),o=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:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&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,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),f=n(8052),h=n(7674),d=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),k=n(842),S=n(2534),_=n(8572),E=n(9909),P=n(2492),C=n(3702),O=n(8523),T="Promise",L=C.CONSTRUCTOR,j=C.REJECTION_EVENT,R=C.SUBCLASSING,A=E.getterFor(T),I=E.set,M=P&&P.prototype,N=P,$=M,D=c.TypeError,F=c.document,U=c.process,B=O.f,z=B,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,i,o=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=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===t.promise?c(D("Promise-chain cycle")):(r=V(n))?l(r,n,u,c):u(n)):c(o)}catch(t){f&&!i&&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,i;W?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!j&&(i=c["on"+t])?i(r):t===H&&k("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?U.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?U.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 D("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(L&&($=(N=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:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=f($,"then",(function(t,e){var n=A(this),r=B(b(this,N));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=u?U.domain:void 0,0==n.state?n.reactions.add(r):x((function(){G(r,n)})),r.promise})),i=function(){var t=new r,e=A(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},O.f=B=function(t){return t===N||void 0===t?new i(t):z(t)},!s&&g(P)&&M!==Object.prototype)){o=M.then,R||f(M,"then",(function(t,e){var n=this;return new N((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(t){}h&&h(M,$)}a({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:N}),d(N,T,!1,!0),p(T)},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),i=n(6916),o=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=o(e.resolve);u(t,(function(t){i(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),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),i=n(5005),o=n(1913),a=n(2492),s=n(3702).CONSTRUCTOR,u=n(9478),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},2419:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(7065),s=n(9483),u=n(9670),c=n(111),l=n(30),f=n(7293),h=i("Reflect","construct"),d=Object.prototype,p=[].push,v=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),g=!f((function(){h((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 h(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 o(p,r,e),new(o(a,t,r))}var i=n.prototype,f=l(c(i)?i:d),m=o(t,f,e);return c(m)?m:f}})},4819:function(t,e,n){var r=n(2109),i=n(6916),o=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:i(r.get,f):o(l=c(e))?t(l,n,f):void 0}})},4603:function(t,e,n){var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),u=n(8880),c=n(8006).f,l=n(7976),f=n(7850),h=n(1340),d=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),k=n(9441),S=n(7168),_=x("match"),E=i.RegExp,P=E.prototype,C=i.SyntaxError,O=o(P.exec),T=o("".charAt),L=o("".replace),j=o("".indexOf),R=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,M=/a/g,N=new E(I)!==I,$=p.MISSED_STICKY,D=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!N||$||k||S||m((function(){return M[_]=!1,E(I)!=I||E(M)==M||"/a/i"!=E(I,"i")}))))){for(var F=function(t,e){var n,r,i,o,a,c,p=l(P,this),v=f(t),g=void 0===e,m=[],w=t;if(!p&&v&&g&&t.constructor===F)return t;if((v||l(P,t))&&(t=t.source,g&&(e=d(w))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),w=t,k&&"dotAll"in I&&(r=!!e&&j(e,"s")>-1)&&(e=L(e,/s/g,"")),n=e,$&&"sticky"in I&&(i=!!e&&j(e,"y")>-1)&&D&&(e=L(e,/y/g,"")),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=T(t,r)))e+=T(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O(A,R(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||y(a,l))throw new C("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),a=s(E(t,e),p?this:P,F),(r||i||m.length)&&(c=b(a),r&&(c.dotAll=!0,c.raw=F(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=T(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+T(t,++r);return i}(t),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),t!==w)try{u(a,"source",""===w?"(?:)":w)}catch(t){}return a},U=c(E),B=0;U.length>B;)v(F,E,U[B++]);P.constructor=F,F.prototype=P,g(i,"RegExp",F,{constructor:!0})}w("RegExp")},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,i=n(8052),o=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"})})),h=r&&l.name!=c;(f||h)&&i(RegExp.prototype,c,(function(){var t=o(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,i=n(2109),o=n(1470),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),f=n(4964),h=n(1913),d=o("".endsWith),p=o("".slice),v=Math.min,g=f("endsWith");i({target:"String",proto:!0,forced:!(!h&&!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,i=void 0===n?r:v(s(n),r),o=u(t);return d?d(e,o,i):p(e,i-o.length,i)===o}})},2023:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3929),a=n(4488),s=n(1340),u=n(4964),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(1656),s=n(6178),u="String Iterator",c=o.set,l=o.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},4723:function(t,e,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(8554),s=n(7466),u=n(1340),c=n(4488),l=n(8173),f=n(1530),h=n(7651);i("match",(function(t,e,n){return[function(e){var n=c(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var l,d=[],p=0;null!==(l=h(r,i));){var v=u(l[0]);d[p]=v,""===v&&(r.lastIndex=f(i,s(r.lastIndex),c)),p++}return 0===p?null:d}]}))},5306:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),u=n(9670),c=n(614),l=n(8554),f=n(9303),h=n(7466),d=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,k=o([].concat),S=o([].push),_=o("".indexOf),E=o("".slice),P="$0"==="a".replace(/./,"$0"),C=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var o=C?"$":"$0";return[function(t,n){var r=p(this),o=l(t)?void 0:g(t,b);return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=u(this),s=d(t);if("string"==typeof i&&-1===_(i,o)&&-1===_(i,"$<")){var l=n(e,a,s,i);if(l.done)return l.value}var p=c(i);p||(i=d(i));var g=a.global;if(g){var b=a.unicode;a.lastIndex=0}for(var P=[];;){var C=y(a,s);if(null===C)break;if(S(P,C),!g)break;""===d(C[0])&&(a.lastIndex=v(s,h(a.lastIndex),b))}for(var O,T="",L=0,j=0;j<P.length;j++){for(var R=d((C=P[j])[0]),A=w(x(f(C.index),s.length),0),I=[],M=1;M<C.length;M++)S(I,void 0===(O=C[M])?O:String(O));var N=C.groups;if(p){var $=k([R],I,A,s);void 0!==N&&S($,N);var D=d(r(i,void 0,$))}else D=m(R,s,A,I,N,i);A>=L&&(T+=E(s,L,A)+D,L=A+R.length)}return T+E(s,L)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!P||C)},4765:function(t,e,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(8554),s=n(4488),u=n(1150),c=n(1340),l=n(8173),f=n(7651);i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},3123:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(9670),u=n(8554),c=n(7850),l=n(4488),f=n(6707),h=n(1530),d=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,k=4294967295,S=Math.min,_=[].push,E=o(/./.exec),P=o(_),C=o("".slice),O=!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 o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(l(this)),a=void 0===n?k:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!c(t))return i(e,o,t,a);for(var s,u,f,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,d+"g");(s=i(y,m,o))&&!((u=m.lastIndex)>v&&(P(h,C(o,v,s.index)),s.length>1&&s.index<o.length&&r(_,h,g(s,1)),f=s[0].length,v=u,h.length>=a));)m.lastIndex===s.index&&m.lastIndex++;return v===o.length?!f&&E(m,"")||P(h,""):P(h,C(o,v)),h.length>a?g(h,0,a):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=l(this),a=u(e)?void 0:v(e,t);return a?i(a,e,r,n):i(o,p(r),e,n)},function(t,r){var i=s(this),a=p(t),u=n(o,i,a,r,o!==e);if(u.done)return u.value;var c=f(i,RegExp),l=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),g=new c(x?"^(?:"+i.source+")":i,v),y=void 0===r?k:r>>>0;if(0===y)return[];if(0===a.length)return null===m(g,a)?[a]:[];for(var b=0,w=0,_=[];w<a.length;){g.lastIndex=x?0:w;var E,O=m(g,x?C(a,w):a);if(null===O||(E=S(d(g.lastIndex+(x?w:0)),a.length))===b)w=h(a,w,l);else{if(P(_,C(a,b,w)),_.length===y)return _;for(var T=1;T<=O.length-1;T++)if(P(_,O[T]),_.length===y)return _;w=b=E}}return P(_,C(a,b)),_}]}),!O,x)},6755:function(t,e,n){"use strict";var r,i=n(2109),o=n(1470),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),f=n(4964),h=n(1913),d=o("".startsWith),p=o("".slice),v=Math.min,g=f("startsWith");i({target:"String",proto:!0,forced:!(!h&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(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),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(6293),l=n(7293),f=n(2597),h=n(7976),d=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),k=n(5181),S=n(1236),_=n(3070),E=n(6048),P=n(5296),C=n(8052),O=n(2309),T=n(6200),L=n(3501),j=n(9711),R=n(5112),A=n(6061),I=n(6800),M=n(6532),N=n(8003),$=n(9909),D=n(2092).forEach,F=T("hidden"),U="Symbol",B="prototype",z=$.set,W=$.getterFor(U),H=Object[B],V=i.Symbol,G=V&&V[B],Y=i.TypeError,X=i.QObject,q=S.f,K=_.f,Z=x.f,J=P.f,Q=a([].push),tt=O("symbols"),et=O("op-symbols"),nt=O("wks"),rt=!X||!X[B]||!X[B].findChild,it=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,ot=function(t,e){var n=tt[t]=y(G);return z(n,{type:U,tag:t,description:e}),u||(n.description=e),n},at=function(t,e,n){t===H&&at(et,e,n),d(t);var r=v(e);return d(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),it(t,r,n)):K(t,r,n)},st=function(t,e){d(t);var n=p(e),r=b(n).concat(ft(n));return D(r,(function(e){u&&!o(ut,n,e)||at(t,e,n[e])})),t},ut=function(t){var e=v(t),n=o(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 i=q(n,r);return!i||!f(tt,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},lt=function(t){var e=Z(p(t)),n=[];return D(e,(function(t){f(tt,t)||f(L,t)||Q(n,t)})),n},ft=function(t){var e=t===H,n=Z(e?et:p(t)),r=[];return D(n,(function(t){!f(tt,t)||e&&!f(H,t)||Q(r,tt[t])})),r};c||(V=function(){if(h(G,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=j(t),n=function(t){this===H&&o(n,et,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),it(this,e,m(1,t))};return u&&rt&&it(H,e,{configurable:!0,set:n}),ot(e,t)},C(G=V[B],"toString",(function(){return W(this).tag})),C(V,"withoutSetter",(function(t){return ot(j(t),t)})),P.f=ut,_.f=at,E.f=st,S.f=ct,w.f=x.f=lt,k.f=ft,A.f=function(t){return ot(R(t),t)},u&&(K(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||C(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),D(b(nt),(function(t){I(t)})),r({target:U,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}),M(),N(V,U),L[F]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(1702),s=n(2597),u=n(614),c=n(7976),l=n(1340),f=n(3070).f,h=n(9920),d=o.Symbol,p=d&&d.prototype;if(i&&u(d)&&(!("description"in p)||void 0!==d().description)){var v={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};h(g,d),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(d("test")),y=a(p.valueOf),b=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);f(p,"description",{configurable:!0,get:function(){var t=y(this);if(s(v,t))return"";var e=b(t),n=m?k(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),i=n(5005),o=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(o(c,e))return c[e];var n=i("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),i=n(2597),o=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(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},6649:function(t,e,n){var r=n(6800),i=n(6532);r("toPrimitive"),i()},3680:function(t,e,n){var r=n(5005),i=n(6800),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(t,e,n){"use strict";var r,i=n(6677),o=n(7854),a=n(1702),s=n(9190),u=n(2423),c=n(7710),l=n(9320),f=n(111),h=n(9909).enforce,d=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,k={},S={},_=!o.ActiveXObject&&"ActiveXObject"in o,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},P=c("WeakMap",E,l),C=P.prototype,O=a(C.set);if(p)if(_){r=l.getConstructor(E,"WeakMap",!0),u.enable();var T=a(C.delete),L=a(C.has),j=a(C.get);s(C,{delete:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.delete(t)}return T(this,t)},has:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),L(this,t)||e.frozen.has(t)}return L(this,t)},get:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),L(this,t)?j(this,t):e.frozen.get(t)}return j(this,t)},set:function(t,e){if(f(t)&&!m(t)){var n=h(this);n.frozen||(n.frozen=new r),L(this,t)?O(this,t,e):n.frozen.set(t,e)}else O(this,t,e);return this}})}else i&&d((function(){var t=w([]);return O(new P,t,1),!y(t)}))&&s(C,{set:function(t,e){var n;return g(t)&&(y(t)?n=k:b(t)&&(n=S)),O(this,t,e),n==k&&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),i=n(8324),o=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 i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),f=a.values,h=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),i[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 d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},5556:function(t,e,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(5143),c=n(8052),l=n(9190),f=n(8003),h=n(3061),d=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),k=n(30),S=n(9114),_=n(4121),E=n(1246),P=n(8053),C=n(5112),O=n(4362),T=C("iterator"),L="URLSearchParams",j=L+"Iterator",R=d.set,A=d.getterFor(L),I=d.getterFor(j),M=Object.getOwnPropertyDescriptor,N=function(t){if(!s)return i[t];var e=M(i,t);return e&&e.value},$=N("fetch"),D=N("Request"),F=N("Headers"),U=D&&D.prototype,B=F&&F.prototype,z=i.RegExp,W=i.TypeError,H=i.decodeURIComponent,V=i.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}},it=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}},ot=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return at[t]},ut=function(t){return q(V(t),ot,st)},ct=h((function(t,e){R(this,{type:j,iterator:_(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:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=E(t);if(c)for(n=(e=_(t,c)).next;!(r=o(n,e)).done;){if(a=(i=_(b(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).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,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=J(e,"="),X(this.entries,{key:it(K(n)),value:it(Y(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],X(n,ut(t.key)+"="+ut(t.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ft=function(){p(this,ht),R(this,new lt(arguments.length>0?arguments[0]:void 0))},ht=ft.prototype;if(l(ht,{append:function(t,e){P(arguments.length,2);var n=A(this);X(n.entries,{key:x(t),value:x(e)}),n.updateURL()},delete:function(t){P(arguments.length,1);for(var e=A(this),n=e.entries,r=x(t),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;e.updateURL()},get:function(t){P(arguments.length,1);for(var e=A(this).entries,n=x(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){P(arguments.length,1);for(var e=A(this).entries,n=x(t),r=[],i=0;i<e.length;i++)e[i].key===n&&X(r,e[i].value);return r},has:function(t){P(arguments.length,1);for(var e=A(this).entries,n=x(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){P(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=x(t),s=x(e),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?Z(i,u--,1):(o=!0,n.value=s));o||X(i,{key:a,value:s}),r.updateURL()},sort:function(){var t=A(this);O(t.entries,(function(t,e){return t.key>e.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),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ht,T,ht.entries,{name:"entries"}),c(ht,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),f(ft,L),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:ft}),!u&&v(F)){var dt=a(B.has),pt=a(B.set),vt=function(t){if(w(t)){var e,n=t.body;if(y(n)===L)return e=t.headers?new F(t.headers):new F,dt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(t,{body:S(0,x(n)),headers:S(0,e)})}return t};if(v($)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return $(t,arguments.length>1?vt(arguments[1]):{})}}),v(D)){var gt=function(t){return p(this,U),new D(t,arguments.length>1?vt(arguments[1]):{})};U.constructor=gt,gt.prototype=U,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ft,getState:A}},1637:function(t,e,n){n(5556)},840:function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),f="function",h=Math.round,d=Math.abs,p=Date.now;function v(t,e,n){return setTimeout(k(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function y(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var b=y((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),w=y((function(t,e){return b(t,e,!0)}),"merge","Use `assign`.");function x(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function k(t,e){return function(){return t.apply(e,arguments)}}function S(t,e){return typeof t==f?t.apply(e&&e[0]||s,e):t}function _(t,e){return t===s?e:t}function E(t,e,n){m(T(e),(function(e){t.addEventListener(e,n,!1)}))}function P(t,e,n){m(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function C(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function O(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function L(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function j(t){return Array.prototype.slice.call(t,0)}function R(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];L(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function A(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return s}var I=1;function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var N="ontouchstart"in i,$=A(i,"PointerEvent")!==s,D=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",U="mouse",B=25,z=1,W=4,H=8,V=1,G=2,Y=4,X=8,q=16,K=G|Y,Z=X|q,J=K|Z,Q=["x","y"],tt=["clientX","clientY"];function et(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){S(t.options.enable,[t])&&n.handler(e)},this.init()}function nt(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&z&&r-i==0,a=e&(W|H)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=rt(e)),i>1&&!n.firstMultiple?n.firstMultiple=rt(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=e.center=it(r);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ut(u,c),e.distance=st(u,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==z&&o.eventType!==W||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=at(e.deltaX,e.deltaY);var l,f,h=ot(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,e.scale=a?(l=a.pointers,st((f=r)[0],f[1],tt)/st(l[0],l[1],tt)):1,e.rotation=a?function(t,e){return ut(e[1],e[0],tt)+ut(t[1],t[0],tt)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=H&&(u>B||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,f=ot(u,c,l);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,o=at(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var v=t.element;C(e.srcEvent.target,v)&&(v=e.srcEvent.target),e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function rt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:it(e),deltaX:t.deltaX,deltaY:t.deltaY}}function it(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function ot(t,e,n){return{x:e/t||0,y:n/t||0}}function at(t,e){return t===e?V:d(t)>=d(e)?t<0?G:Y:e<0?X:q}function st(t,e,n){n||(n=Q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function ut(t,e,n){n||(n=Q);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}et.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(M(this.element),this.evWin,this.domHandler)}};var ct={mousedown:z,mousemove:2,mouseup:W},lt="mousedown",ft="mousemove mouseup";function ht(){this.evEl=lt,this.evWin=ft,this.pressed=!1,et.apply(this,arguments)}x(ht,et,{handler:function(t){var e=ct[t.type];e&z&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=W),this.pressed&&(e&W&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:U,srcEvent:t}))}});var dt={pointerdown:z,pointermove:2,pointerup:W,pointercancel:H,pointerout:H},pt={2:F,3:"pen",4:U,5:"kinect"},vt="pointerdown",gt="pointermove pointerup pointercancel";function mt(){this.evEl=vt,this.evWin=gt,et.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(vt="MSPointerDown",gt="MSPointerMove MSPointerUp MSPointerCancel"),x(mt,et,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=dt[r],o=pt[t.pointerType]||t.pointerType,a=o==F,s=L(e,t.pointerId,"pointerId");i&z&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(W|H)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var yt={touchstart:z,touchmove:2,touchend:W,touchcancel:H};function bt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,et.apply(this,arguments)}function wt(t,e){var n=j(t.touches),r=j(t.changedTouches);return e&(W|H)&&(n=R(n.concat(r),"identifier",!0)),[n,r]}x(bt,et,{handler:function(t){var e=yt[t.type];if(e===z&&(this.started=!0),this.started){var n=wt.call(this,t,e);e&(W|H)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}}});var xt={touchstart:z,touchmove:2,touchend:W,touchcancel:H},kt="touchstart touchmove touchend touchcancel";function St(){this.evTarget=kt,this.targetIds={},et.apply(this,arguments)}function _t(t,e){var n=j(t.touches),r=this.targetIds;if(e&(2|z)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=j(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return C(t.target,u)})),e===z)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(W|H)&&delete r[a[i].identifier],i++;return s.length?[R(o.concat(s),"identifier",!0),s]:void 0}x(St,et,{handler:function(t){var e=xt[t.type],n=_t.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:t})}});var Et=2500;function Pt(){et.apply(this,arguments);var t=k(this.handler,this);this.touch=new St(this.manager,t),this.mouse=new ht(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Ct(t,e){t&z?(this.primaryTouch=e.changedPointers[0].identifier,Ot.call(this,e)):t&(W|H)&&Ot.call(this,e)}function Ot(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),Et)}}function Tt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}x(Pt,et,{handler:function(t,e,n){var r=n.pointerType==F,i=n.pointerType==U;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Ct.call(this,e,n);else if(i&&Tt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Lt=A(l.style,"touchAction"),jt=Lt!==s,Rt="compute",At="auto",It="manipulation",Mt="none",Nt="pan-x",$t="pan-y",Dt=function(){if(!jt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function Ft(t,e){this.manager=t,this.set(e)}Ft.prototype={set:function(t){t==Rt&&(t=this.compute()),jt&&this.manager.element.style&&Dt[t]&&(this.manager.element.style[Lt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){S(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(O(t,Mt))return Mt;var e=O(t,Nt),n=O(t,$t);return e&&n?Mt:e||n?e?Nt:$t:O(t,It)?It:At}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=O(r,Mt)&&!Dt[Mt],o=O(r,$t)&&!Dt[$t],a=O(r,Nt)&&!Dt[Nt];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&n&K||a&&n&Z?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ut=1,Bt=32;function zt(t){this.options=u({},this.defaults,t||{}),this.id=I++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=Ut,this.simultaneous={},this.requireFail=[]}function Wt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ht(t){return t==q?"down":t==X?"up":t==G?"left":t==Y?"right":""}function Vt(t,e){var n=e.manager;return n?n.get(t):t}function Gt(){zt.apply(this,arguments)}function Yt(){Gt.apply(this,arguments),this.pX=null,this.pY=null}function Xt(){Gt.apply(this,arguments)}function qt(){zt.apply(this,arguments),this._timer=null,this._input=null}function Kt(){Gt.apply(this,arguments)}function Zt(){Gt.apply(this,arguments)}function Jt(){zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Qt(t,e){return(e=e||{}).recognizers=_(e.recognizers,Qt.defaults.preset),new te(t,e)}function te(t,e){this.options=u({},Qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||($?mt:D?St:N?Pt:ht))(this,nt),this.touchAction=new Ft(this,this.options.touchAction),ee(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ee(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=A(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}zt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Vt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=Vt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===L(e,t=Vt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=Vt(t,this);var e=L(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Wt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Wt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Bt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Bt|Ut)))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!S(this.options.enable,[this,e]))return this.reset(),void(this.state=Bt);56&this.state&&(this.state=Ut),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},x(Gt,zt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(n&H||!i)?16|e:r||i?n&W?8|e:2&e?4|e:2:Bt}}),x(Yt,Gt,{defaults:{event:"pan",threshold:10,pointers:1,direction:J},getTouchAction:function(){var t=this.options.direction,e=[];return t&K&&e.push($t),t&Z&&e.push(Nt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&K?(i=0===o?V:o<0?G:Y,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?V:a<0?X:q,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Gt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ht(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),x(Xt,Gt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),x(qt,zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[At]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(W|H)&&!i)this.reset();else if(t.eventType&z)this.reset(),this._timer=v((function(){this.state=8,this.tryEmit()}),e.time,this);else if(t.eventType&W)return 8;return Bt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&W?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),x(Kt,Gt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),x(Zt,Gt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Z,pointers:1},getTouchAction:function(){return Yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(K|Z)?e=t.overallVelocity:n&K?e=t.overallVelocityX:n&Z&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&t.eventType&W},emit:function(t){var e=Ht(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),x(Jt,zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[It]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&z&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=W)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||st(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=v((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Bt},failTimeout:function(){return this._timer=v((function(){this.state=Bt}),this.options.interval,this),Bt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Qt.VERSION="2.0.7",Qt.defaults={domEvents:!1,touchAction:Rt,enable:!0,inputTarget:null,inputClass:null,preset:[[Kt,{enable:!1}],[Xt,{enable:!1},["rotate"]],[Zt,{direction:K}],[Yt,{direction:K},["swipe"]],[Jt],[Jt,{event:"doubletap",taps:2},["tap"]],[qt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},te.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof zt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=L(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return m(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return m(T(t),(function(t){e?n[t]&&n[t].splice(L(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Qt,{INPUT_START:z,INPUT_MOVE:2,INPUT_END:W,INPUT_CANCEL:H,STATE_POSSIBLE:Ut,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Bt,DIRECTION_NONE:V,DIRECTION_LEFT:G,DIRECTION_RIGHT:Y,DIRECTION_UP:X,DIRECTION_DOWN:q,DIRECTION_HORIZONTAL:K,DIRECTION_VERTICAL:Z,DIRECTION_ALL:J,Manager:te,Input:et,TouchAction:Ft,TouchInput:St,MouseInput:ht,PointerEventInput:mt,TouchMouseInput:Pt,SingleTouchInput:bt,Recognizer:zt,AttrRecognizer:Gt,Tap:Jt,Pan:Yt,Swipe:Zt,Pinch:Xt,Rotate:Kt,Press:qt,on:E,off:P,each:m,merge:w,extend:b,assign:u,inherit:x,bindFn:k,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Qt,(r=function(){return Qt}.call(e,n,e,t))===s||(t.exports=r)}(window,document)},4581:function(t,e,n){!function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v,g,m,y,b,w,x,k,S,_,E,P,C,O,T,L,j,R,A,I,M,N={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,(function(t,n){e[t]=n})),e},createIframe:function(){var n=e.createElement("iframe"),r=t(this).data("cbox-iframe-attrs");return"object"==typeof r&&t.each(r,(function(t,e){n[t]=e})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},$="colorbox",D="cbox",F=D+"Element",U=D+"_open",B=D+"_load",z=D+"_complete",W=D+"_cleanup",H=D+"_closed",V=D+"_purge",G=t("<a/>"),Y="div",X=0,q={};function K(n,r,i){var o=e.createElement(n);return r&&(o.id=D+r),i&&(o.style.cssText=i),t(o)}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!==N[e]&&(this.cache[e]=N[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=(O+t)%e;return n<0?e+n:n}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?h.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 i[0]&&!i[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),i.focus())}function it(t){it.str!==t&&(i.add(r).removeClass(it.str).addClass(t),it.str=t)}function ot(n){t(e).trigger(n),G.triggerHandler(n)}var at=function(){var t,e,n=D+"Slideshow_",r="click."+D;function o(){clearTimeout(e)}function a(){(S.get("loop")||f[O+1])&&(o(),e=setTimeout(I.next,S.get("slideshowSpeed")))}function s(){y.html(S.get("slideshowStop")).unbind(r).one(r,u),G.bind(z,a).bind(B,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),G.unbind(z,a).unbind(B,o),y.html(S.get("slideshowStart")).unbind(r).one(r,(function(){I.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,y.hide(),o(),G.unbind(z,a).unbind(B,o),i.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(o){var h,m;if(!R){if(h=t(o).data($),S=new J(o,h),m=S.get("rel"),O=0,m&&!1!==m&&"nofollow"!==m?(f=t("."+F).filter((function(){return new J(this,t.data(this,$)).get("rel")===m})),-1===(O=f.index(S.el))&&(f=f.add(S.el),O=f.length-1)):f=t(S.el),!L){L=j=!0,it(S.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=K(Y,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),_=s.height()+l.height()+a.outerHeight(!0)-a.height(),E=u.width()+c.width()+a.outerWidth(!0)-a.width(),P=d.outerHeight(!0),C=d.outerWidth(!0);var y=tt(S.get("initialWidth"),"x"),b=tt(S.get("initialHeight"),"y"),w=S.get("maxWidth"),M=S.get("maxHeight");S.w=Math.max((!1!==w?Math.min(y,tt(w,"x")):y)-C-E,0),S.h=Math.max((!1!==M?Math.min(b,tt(M,"y")):b)-P-_,0),d.css({width:"",height:S.h}),I.position(),ot(U),S.get("onOpen"),k.add(g).hide(),i.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 N=parseFloat(S.get("opacity"));r.css({opacity:N==N?N:"",cursor:S.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),S.get("closeButton")?x.html(S.get("close")).appendTo(a):x.appendTo("<div/>"),function(){var e,r,i,o=I.prep,a=++X;if(j=!0,T=!1,ot(V),ot(B),S.get("onLoad"),S.h=S.get("height")?tt(S.get("height"),"y")-P-_:S.get("innerHeight")&&tt(S.get("innerHeight"),"y"),S.w=S.get("width")?tt(S.get("width"),"x")-C-E: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")-C-E,S.mw=S.w&&S.w<S.mw?S.w:S.mw),S.get("maxHeight")&&(S.mh=tt(S.get("maxHeight"),"y")-P-_,S.mh=S.h&&S.h<S.mh?S.h:S.mh),e=S.get("href"),A=setTimeout((function(){v.show()}),100),S.get("inline")){var s=t(e).eq(0);i=t("<div>").hide().insertBefore(s),G.one(V,(function(){i.replaceWith(s)})),o(s)}else S.get("iframe")?o(" "):S.get("html")?o(S.get("html")):et(S,e)?(e=nt(S,e),T=S.get("createImg"),t(T).addClass(D+"Photo").bind("error."+D,(function(){o(K(Y,"Error").html(S.get("imgError")))})).one("load",(function(){a===X&&setTimeout((function(){var e;S.get("retinaImage")&&n.devicePixelRatio>1&&(T.height=T.height/n.devicePixelRatio,T.width=T.width/n.devicePixelRatio),S.get("scalePhotos")&&(r=function(){T.height-=T.height*e,T.width-=T.width*e},S.mw&&T.width>S.mw&&(e=(T.width-S.mw)/T.width,r()),S.mh&&T.height>S.mh&&(e=(T.height-S.mh)/T.height,r())),S.h&&(T.style.marginTop=Math.max(S.mh-T.height,0)/2+"px"),f[1]&&(S.get("loop")||f[O+1])&&(T.style.cursor="pointer",t(T).bind("click."+D,(function(){I.next()}))),T.style.width=T.width+"px",T.style.height=T.height+"px",o(T)}),1)})),T.src=e):e&&p.load(e,S.get("data"),(function(e,n){a===X&&o("error"===n?K(Y,"Error").html(S.get("xhrError")):t(this).contents())}))}()}}function ut(){i||(M=!1,h=t(n),i=K(Y).attr({id:$,class:!1===t.support.opacity?D+"IE":"",role:"dialog",tabindex:"-1"}).hide(),r=K(Y,"Overlay").hide(),v=t([K(Y,"LoadingOverlay")[0],K(Y,"LoadingGraphic")[0]]),o=K(Y,"Wrapper"),a=K(Y,"Content").append(g=K(Y,"Title"),m=K(Y,"Current"),w=t('<button type="button"/>').attr({id:D+"Previous"}),b=t('<button type="button"/>').attr({id:D+"Next"}),y=t('<button type="button"/>').attr({id:D+"Slideshow"}),v),x=t('<button type="button"/>').attr({id:D+"Close"}),o.append(K(Y).append(K(Y,"TopLeft"),s=K(Y,"TopCenter"),K(Y,"TopRight")),K(Y,!1,"clear:left").append(u=K(Y,"MiddleLeft"),a,c=K(Y,"MiddleRight")),K(Y,!1,"clear:left").append(K(Y,"BottomLeft"),l=K(Y,"BottomCenter"),K(Y,"BottomRight"))).find("div div").css({float:"left"}),p=K(Y,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),k=b.add(w).add(m).add(y)),e.body&&!i.parent().length&&t(e.body).append(r,i.append(o,p))}t[$]||(t(ut),(I=t.fn[$]=t[$]=function(n,o){var a=this;return n=n||{},t.isFunction(a)&&(a=t("<a/>"),n.open=!0),a[0]?(ut(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),st(this))}return!!i&&(M||(M=!0,b.click((function(){I.next()})),w.click((function(){I.prev()})),x.click((function(){I.close()})),r.click((function(){S.get("overlayClose")&&I.close()})),t(e).bind("keydown."+D,(function(t){var e=t.keyCode;L&&S.get("escKey")&&27===e&&(t.preventDefault(),I.close()),L&&S.get("arrowKey")&&f[1]&&!t.altKey&&(37===e?(t.preventDefault(),w.click()):39===e&&(t.preventDefault(),b.click()))})),t.isFunction(t.fn.on)?t(e).on("click."+D,"."+F,n):t("."+F).live("click."+D,n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var e=t.data(this,$)||{};t.data(this,$,t.extend(e,n))})).addClass(F),new J(a[0],n).get("open")&&st(a[0])),a):a}).position=function(e,n){var r,f,d,p=0,v=0,g=i.offset();function m(){s[0].style.width=l[0].style.width=a[0].style.width=parseInt(i[0].style.width,10)-E+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-_+"px"}if(h.unbind("resize."+D),i.css({top:-9e4,left:-9e4}),f=h.scrollTop(),d=h.scrollLeft(),S.get("fixed")?(g.top-=f,g.left-=d,i.css({position:"fixed"})):(p=f,v=d,i.css({position:"absolute"})),!1!==S.get("right")?v+=Math.max(h.width()-S.w-C-E-tt(S.get("right"),"x"),0):!1!==S.get("left")?v+=tt(S.get("left"),"x"):v+=Math.round(Math.max(h.width()-S.w-C-E,0)/2),!1!==S.get("bottom")?p+=Math.max(Z()-S.h-P-_-tt(S.get("bottom"),"y"),0):!1!==S.get("top")?p+=tt(S.get("top"),"y"):p+=Math.round(Math.max(Z()-S.h-P-_,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:S.w+C+E,height:S.h+P+_,top:p,left:v},e){var y=0;t.each(r,(function(t){r[t]===q[t]||(y=e)})),e=y}q=r,e||i.css(r),i.dequeue().animate(r,{duration:e||0,complete:function(){m(),j=!1,o[0].style.width=S.w+C+E+"px",o[0].style.height=S.h+P+_+"px",S.get("reposition")&&setTimeout((function(){h.bind("resize."+D,I.position)}),1),t.isFunction(n)&&n()},step:m})},I.resize=function(t){var e;L&&((t=t||{}).width&&(S.w=tt(t.width,"x")-C-E),t.innerWidth&&(S.w=tt(t.innerWidth,"x")),d.css({width:S.w}),t.height&&(S.h=tt(t.height,"y")-P-_),t.innerHeight&&(S.h=tt(t.innerHeight,"y")),t.innerHeight||t.height||(e=d.scrollTop(),d.css({height:"auto"}),S.h=d.height()),d.css({height:S.h}),e&&d.scrollTop(e),I.position("none"===S.get("transition")?0:S.get("speed")))},I.prep=function(n){if(L){var r,o="none"===S.get("transition")?0:S.get("speed");d.remove(),(d=K(Y,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(S.w=S.w||d.width(),S.w=S.mw&&S.mw<S.w?S.mw:S.w,S.w),overflow:S.get("scrolling")?"auto":"hidden"}).css({height:(S.h=S.h||d.height(),S.h=S.mh&&S.mh<S.h?S.mh:S.h,S.h)}).prependTo(a),p.hide(),t(T).css({float:"none"}),it(S.get("className")),r=function(){var n,r,a=f.length;function s(){!1===t.support.opacity&&i[0].style.removeAttribute("filter")}L&&(r=function(){clearTimeout(A),v.hide(),ot(z),S.get("onComplete")},g.html(S.get("title")).show(),d.show(),a>1?("string"==typeof S.get("current")&&m.html(S.get("current").replace("{current}",O+1).replace("{total}",a)).show(),b[S.get("loop")||O<a-1?"show":"hide"]().html(S.get("next")),w[S.get("loop")||O?"show":"hide"]().html(S.get("previous")),at(),S.get("preloading")&&t.each([Q(-1),Q(1)],(function(){var n=f[this],r=new J(n,t.data(n,$)),i=r.get("href");i&&et(r,i)&&(i=nt(r,i),e.createElement("img").src=i)}))):k.hide(),S.get("iframe")?(n=S.get("createIframe"),S.get("scrolling")||(n.scrolling="no"),t(n).attr({src:S.get("href"),class:D+"Iframe"}).one("load",r).appendTo(d),G.one(V,(function(){n.src="//about:blank"})),S.get("fastIframe")&&t(n).trigger("load")):r(),"fade"===S.get("transition")?i.fadeTo(o,1,s):s())},"fade"===S.get("transition")?i.fadeTo(o,0,(function(){I.position(0,r)})):I.position(o,r)}},I.next=function(){!j&&f[1]&&(S.get("loop")||f[O+1])&&(O=Q(1),st(f[O]))},I.prev=function(){!j&&f[1]&&(S.get("loop")||O)&&(O=Q(-1),st(f[O]))},I.close=function(){L&&!R&&(R=!0,L=!1,ot(W),S.get("onCleanup"),h.unbind("."+D),r.fadeTo(S.get("fadeOut")||0,0),i.stop().fadeTo(S.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),ot(V),d.remove(),setTimeout((function(){R=!1,ot(H),S.get("onClosed")}),1)})))},I.remove=function(){i&&(i.stop(),t[$].close(),i.stop(!1,!0).remove(),r.remove(),R=!1,i=null,t("."+F).removeData($).removeClass(F),t(e).unbind("click."+D).unbind("keydown."+D))},I.element=function(){return t(S.el)},I.settings=N)}(n(5311),document,window)},5557:function(t,e,n){!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(n(5311))},1870:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=o)},7053:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=o)},5592:function(t,e,n){var r,i,o;i=[n(5311)],void 0===(o="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=o)},6891:function(t,e,n){var r,i,o;i=[n(5311),n(5592)],r=function(t){var e,n=0,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],c=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:c}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(u=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,(function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){t(this)[e](),o&&o.call(r[0]),n()}))}})),t.widget},void 0===(o=r.apply(e,i))||(t.exports=o)},6177:function(t,e,n){var r,i,o;i=[n(5311),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=o)},6227:function(t,e,n){var r,i,o;i=[n(5311),n(6177),n(7053),n(5592),n(6891)],r=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=i.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===l.min))&&(i=n,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})},void 0===(o=r.apply(e,i))||(t.exports=o)},5311:function(t){"use strict";t.exports=jQuery},5756: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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{XM:function(){return s},Xe:function(){return u},pX:function(){return a}}),n(6649),n(6078),n(2526),n(1817),n(1539),n(9653),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(9714),n(8309),n(4916);var a={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},s=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{_$litDirective$:t,values:n}}},u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}},{key:"_$AS",value:function(t,e){return this.update(t,e)}},{key:"update",value:function(t,e){return this.render.apply(this,function(t){if(Array.isArray(t))return i(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return i(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)?i(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}],n&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4817:function(t,e,n){"use strict";var r;function i(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&&o(t,e)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===p(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,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=c(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(i)?i:String(i)),r)}var i}function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t){return p="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},p(t)}n.d(e,{Al:function(){return Z},Jb:function(){return N},Ld:function(){return $},YP:function(){return M},dy:function(){return I},sY:function(){return Q}}),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4603),n(4916),n(9714),n(4129),n(6755),n(7852),n(3123),n(8309),n(3290),n(6649),n(6078),n(9653),n(1038),n(489),n(2419);var v=window,g=v.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,y="lit$".concat((Math.random()+"").slice(9),"$"),b="?"+y,w="<".concat(b,">"),x=document,k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return x.createComment(t)},S=function(t){return null===t||"object"!=p(t)&&"function"!=typeof t},_=Array.isArray,E=function(t){return _(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])},P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,O=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,j=/"/g,R=/^(?:script|style|textarea|title)$/i,A=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:t,strings:e,values:r}}},I=A(1),M=A(2),N=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),D=new WeakMap,F=x.createTreeWalker(x,129,null,!1),U=function(t,e){for(var n,r=t.length-1,i=[],o=2===e?"<svg>":"",a=P,s=0;s<r;s++){for(var u=t[s],c=void 0,l=void 0,f=-1,h=0;h<u.length&&(a.lastIndex=h,null!==(l=a.exec(u)));)h=a.lastIndex,a===P?"!--"===l[1]?a=C:void 0!==l[1]?a=O:void 0!==l[2]?(R.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=T):void 0!==l[3]&&(a=T):a===T?">"===l[0]?(a=null!=n?n:P,f=-1):void 0===l[1]?f=-2:(f=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?T:'"'===l[3]?j:L):a===j||a===L?a=T:a===C||a===O?a=P:(a=T,n=void 0);var d=a===T&&t[s+1].startsWith("/>")?" ":"";o+=a===P?u+w:f>=0?(i.push(c),u.slice(0,f)+"$lit$"+u.slice(f)+y+d):u+y+(-2===f?(i.push(void 0),s):d)}var p=o+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,i]},B=function(){function t(e,n){var r,i=e.strings,o=e._$litType$;f(this,t),this.parts=[];var a,s=0,h=0,d=i.length-1,p=this.parts,v=function(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||c(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.")}()}(U(i,o),2),m=v[0],w=v[1];if(this.el=t.createElement(m,n),F.currentNode=this.el.content,2===o){var x=this.el.content,S=x.firstChild;S.remove(),x.append.apply(x,function(t){if(Array.isArray(t))return l(t)}(a=S.childNodes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||c(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}for(;null!==(r=F.nextNode())&&p.length<d;){if(1===r.nodeType){if(r.hasAttributes()){var _,E=[],P=u(r.getAttributeNames());try{for(P.s();!(_=P.n()).done;){var C=_.value;if(C.endsWith("$lit$")||C.startsWith(y)){var O=w[h++];if(E.push(C),void 0!==O){var T=r.getAttribute(O.toLowerCase()+"$lit$").split(y),L=/([.?@])?(.*)/.exec(O);p.push({type:1,index:s,name:L[2],strings:T,ctor:"."===L[1]?G:"?"===L[1]?X:"@"===L[1]?q:V})}else p.push({type:6,index:s})}}}catch(t){P.e(t)}finally{P.f()}for(var j=0,A=E;j<A.length;j++){var I=A[j];r.removeAttribute(I)}}if(R.test(r.tagName)){var M=r.textContent.split(y),N=M.length-1;if(N>0){r.textContent=g?g.emptyScript:"";for(var $=0;$<N;$++)r.append(M[$],k()),F.nextNode(),p.push({type:2,index:++s});r.append(M[N],k())}}}else if(8===r.nodeType)if(r.data===b)p.push({type:2,index:s});else for(var D=-1;-1!==(D=r.data.indexOf(y,D+1));)p.push({type:7,index:s}),D+=y.length-1;s++}}return d(t,null,[{key:"createElement",value:function(t,e){var n=x.createElement("template");return n.innerHTML=t,n}}]),t}();function z(t,e){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===N)return e;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,c=S(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(e=z(t,u._$AS(t,e.values),u,s)),e}var W=function(){function t(e,n){f(this,t),this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=n}return d(t,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"v",value:function(t){var e,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(r,!0);F.currentNode=o;for(var a=F.nextNode(),s=0,u=0,c=i[0];void 0!==c;){if(s===c.index){var l=void 0;2===c.type?l=new H(a,a.nextSibling,this,t):1===c.type?l=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(l=new K(a,this,t)),this.u.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=F.nextNode(),s++)}return o}},{key:"p",value:function(t){var e,n=0,r=u(this.u);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}catch(t){r.e(t)}finally{r.f()}}}]),t}(),H=function(){function t(e,n,r,i){var o;f(this,t),this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cm=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return d(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=z(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),S(t)?t===$||null==t||""===t?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==N&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):E(t)?this.k(t):this.g(t)}},{key:"O",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}},{key:"T",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"g",value:function(t){this._$AH!==$&&S(this._$AH)?this._$AA.nextSibling.data=t:this.T(x.createTextNode(t)),this._$AH=t}},{key:"$",value:function(t){var e,n=t.values,r=t._$litType$,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=B.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.p(n);else{var o=new W(i,this),a=o.v(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new B(t)),e}},{key:"k",value:function(e){_(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=u(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new t(this.O(k()),this.O(k()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,n);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}]),t}(),V=function(){function t(e,n,r,i,o){f(this,t),this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$}return d(t,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=z(this,t,e,0),(o=!S(t)||t!==this._$AH&&t!==N)&&(this._$AH=t);else{var a,s,u=t;for(t=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],e,a))===N&&(s=this._$AH[a]),o||(o=!S(s)||s!==this._$AH[a]),s===$?t=$:t!==$&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.j(t)}},{key:"j",value:function(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}]),t}(),G=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=3,t}return d(n,[{key:"j",value:function(t){this.element[this.name]=t===$?void 0:t}}]),n}(V),Y=g?g.emptyScript:"",X=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=4,t}return d(n,[{key:"j",value:function(t){t&&t!==$?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}]),n}(V),q=function(t){i(n,t);var e=a(n);function n(t,r,i,o,a){var s;return f(this,n),(s=e.call(this,t,r,i,o,a)).type=5,s}return d(n,[{key:"_$AI",value:function(t){var e;if((t=null!==(e=z(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:$)!==N){var n=this._$AH,r=t===$&&n!==$||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==$&&(n===$||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}]),n}(V),K=function(){function t(e,n,r){f(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return d(t,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){z(this,t)}}]),t}(),Z={P:"$lit$",A:y,M:b,C:1,L:U,R:W,D:E,V:z,I:H,H:V,N:X,U:q,B:G,F:K},J=v.litHtmlPolyfillSupport;null==J||J(B,H),(null!==(r=v.litHtmlVersions)&&void 0!==r?r:v.litHtmlVersions=[]).push("2.5.0");var Q=function(t,e,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new H(e.insertBefore(k(),s),s,void 0,null!=n?n:{})}return a._$AI(t),a}},9089:function(t,e,n){"use strict";n.d(e,{Mo:function(){return r},Cb:function(){return c},IO:function(){return k},SB:function(){return p}});var r=function(t){return function(e){return"function"==typeof e?function(t,e){return customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){customElements.define(t,e)}}}(t,e)}};function i(t){return i="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},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(2526),n(1817),n(1539),n(6649),n(6078),n(9653),n(7941),n(7327),n(5003),n(4747),n(9337),n(2165),n(6992),n(8783),n(3948);var u=function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?a(a({},e),{},{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}};function c(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):u(t,e)}}function l(t){return l="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},l(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return c(h(h({},t),{},{state:!0}))}function v(t){return v="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},v(t)}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==v(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===v(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(9601);var b,w=function(t){var e=t.finisher,n=t.descriptor;return function(t,r){var i;if(void 0===r){var o=null!==(i=t.originalKey)&&void 0!==i?i:t.key,a=null!=n?{kind:"method",placement:"prototype",key:o,descriptor:n(t.key)}:m(m({},t),{},{key:o});return null!=e&&(a.finisher=function(t){e(t,o)}),a}var s=t.constructor;void 0!==n&&Object.defineProperty(t,r,n(r)),null==e||e(s,r)}};function x(t){return x="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},x(t)}function k(t,e){return w({descriptor:function(n){var r={get:function(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==x(n)?Symbol():"__"+n;r.get=function(){var e,n;return void 0===this[i]&&(this[i]=null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null),this[i]}}return r}})}n(8674),n(2443),n(3680),n(3706),n(2703),n(489),n(8309),n(5069),n(7042),null===(b=window.HTMLSlotElement)||void 0===b||b.prototype.assignedElements},871: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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{oi:function(){return H},iv:function(){return h},dy:function(){return $.dy},Ld:function(){return $.Ld},sY:function(){return $.sY},YP:function(){return $.YP}}),n(9653),n(7941),n(6992),n(1532),n(1539),n(8783),n(3948),n(8674),n(4747),n(561),n(2526),n(1817),n(489),n(2222),n(6210),n(189),n(5069),n(4944),n(3792),n(9714),n(2419),n(6649),n(6078),n(2165),n(2443),n(3680),n(3706),n(2703),n(8309),n(7042),n(1038),n(4916),n(4129),n(5827),n(1249);var a,s=window,u=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),l=new WeakMap,f=function(){function t(e,n,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$cssResult$=!0,r!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}var e,n;return e=t,n=[{key:"styleSheet",get:function(){var t=this.o,e=this.t;if(u&&void 0===t){var n=void 0!==e&&1===e.length;n&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&l.set(e,t))}return t}},{key:"toString",value:function(){return this.cssText}}],n&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=1===t.length?t[0]:n.reduce((function(e,n,r){return e+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]}),t[0]);return new f(i,t,c)},d=u?function(t){return t}:function(t){return t instanceof CSSStyleSheet?function(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 i(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)?i(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 a,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,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.cssRules);try{for(r.s();!(e=r.n()).done;)n+=e.value.cssText}catch(t){r.e(t)}finally{r.f()}return function(t){return new f("string"==typeof t?t:t+"",void 0,c)}(n)}(t):t};function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(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)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t){return y="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},y(t)}function b(){b=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:S(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(O([])));m&&m!==e&&n.call(m,o)&&(v=m);var w=p.prototype=h.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==y(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(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,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),u(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function w(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===y(i)?i:String(i)),r)}var i}function k(t){var e="function"==typeof Map?new Map:void 0;return k=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 S(t,arguments,P(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,t)},k(t)}function S(t,e,n){return S=_()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&E(i,n.prototype),i},S.apply(null,arguments)}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var C=window,O=C.trustedTypes,T=O?O.emptyScript:"",L=C.reactiveElementPolyfillSupport,j={toAttribute:function(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){var n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},R=function(t,e){return e!==t&&(e==e||t==t)},A={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:R},I=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&&E(t,e)}(f,t);var e,n,r,i,o,a,c,l=(a=f,c=_(),function(){var t,e=P(a);if(c){var n=P(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===y(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 f(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=l.call(this))._$Ei=new Map,t.isUpdatePending=!1,t.hasUpdated=!1,t._$El=null,t.u(),t}return e=f,n=[{key:"u",value:function(){var t,e=this;this._$E_=new Promise((function(t){return e.enableUpdating=t})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((function(t){return t(e)}))}},{key:"addController",value:function(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}},{key:"removeController",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}},{key:"_$Eg",value:function(){var t=this;this.constructor.elementProperties.forEach((function(e,n){t.hasOwnProperty(n)&&(t._$Ei.set(n,t[n]),delete t[n])}))}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return function(t,e){u?t.adoptedStyleSheets=e.map((function(t){return t instanceof CSSStyleSheet?t:t.styleSheet})):e.forEach((function(e){var n=document.createElement("style"),r=s.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))}(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$EO",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A,i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){var o=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:j).toAttribute(e,r.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}},{key:"_$AK",value:function(t,e){var n,r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){var o=r.getPropertyOptions(i),a="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==(null===(n=o.converter)||void 0===n?void 0:n.fromAttribute)?o.converter:j;this._$El=i,this[i]=a.fromAttribute(e,o.type),this._$El=null}}},{key:"requestUpdate",value:function(t,e,n){var r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||R)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(i=b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isUpdatePending=!0,t.prev=1,t.next=4,this._$E_;case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),Promise.reject(t.t0);case 9:if(e=this.scheduleUpdate(),t.t1=null!=e,!t.t1){t.next=14;break}return t.next=14,e;case 14:return t.abrupt("return",!this.isUpdatePending);case 15:case"end":return t.stop()}}),t,this,[[1,6]])})),o=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=i.apply(t,e);function a(t){w(o,n,r,a,s,"next",t)}function s(t){w(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var t,e=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(t,n){return e[n]=t})),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw n=!1,this._$Ek(),t}n&&this._$AE(r)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$Ek",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$E_}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._$EC&&(this._$EC.forEach((function(t,n){return e._$EO(n,e[n],t)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}],r=[{key:"addInitializer",value:function(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this.elementProperties.forEach((function(n,r){var i=t._$Ep(r,n);void 0!==i&&(t._$Ev.set(i,r),e.push(i))})),e}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==y(t)?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(r){var i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this.elementProperties.get(t)||A}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=v(t.h)),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var e,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(e=r.n()).done;){var i=e.value;this.createProperty(i,n[i])}}catch(t){r.e(t)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,r=p(new Set(t.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.unshift(d(i))}}catch(t){r.e(t)}finally{r.f()}}else void 0!==t&&e.push(d(t));return e}},{key:"_$Ep",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}],n&&x(e.prototype,n),r&&x(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(k(HTMLElement));I.finalized=!0,I.elementProperties=new Map,I.elementStyles=[],I.shadowRootOptions={mode:"open"},null==L||L({ReactiveElement:I}),(null!==(a=C.reactiveElementVersions)&&void 0!==a?a:C.reactiveElementVersions=[]).push("1.5.0");var M,N,$=n(4817);function D(t){return D="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},D(t)}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==D(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===D(i)?i:String(i)),r)}var i}function U(){return U="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=W(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},U.apply(this,arguments)}function B(t,e){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},B(t,e)}function z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}n(5743),n(4819),n(5003);var H=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&&B(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=W(r);if(i){var n=W(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return z(t)}(this,t)});function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.apply(this,arguments)).renderOptions={host:z(t)},t._$Dt=void 0,t}return e=a,n=[{key:"createRenderRoot",value:function(){var t,e,n=U(W(a.prototype),"createRenderRoot",this).call(this);return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}},{key:"update",value:function(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),U(W(a.prototype),"update",this).call(this,t),this._$Dt=(0,$.sY)(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;U(W(a.prototype),"connectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;U(W(a.prototype),"disconnectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}},{key:"render",value:function(){return $.Jb}}],n&&F(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(I);H.finalized=!0,H._$litElement$=!0,null===(M=globalThis.litElementHydrateSupport)||void 0===M||M.call(globalThis,{LitElement:H});var V=globalThis.litElementPolyfillSupport;null==V||V({LitElement:H}),(null!==(N=globalThis.litElementVersions)&&void 0!==N?N:globalThis.litElementVersions=[]).push("3.2.0")}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t](o,o.exports,r),o.loaded=!0,o.exports}r.m=e,t=[],r.O=function(e,n,i,o){if(!n){var a=1/0;for(l=0;l<t.length;l++){n=t[l][0],i=t[l][1],o=t[l][2];for(var s=!0,u=0;u<n.length;u++)(!1&o||a>=o)&&Object.keys(r.O).every((function(t){return r.O[t](n[u])}))?n.splice(u--,1):(s=!1,o<a&&(a=o));if(s){t.splice(l--,1);var c=i();void 0!==c&&(e=c)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[n,i,o]},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t={898:0};r.O.j=function(e){return 0===t[e]};var e=function(e,n){var i,o,a=n[0],s=n[1],u=n[2],c=0;if(a.some((function(e){return 0!==t[e]}))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(u)var l=u(r)}for(e&&e(n);c<a.length;c++)o=a[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return r.O(l)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var i={};!function(){"use strict";r(5827),r(1539),r(2222),r(1249),r(6833),r(8674),r(7327),r(7941),r(4916),r(6992),r(8783),r(3948),r(1637),r(4765),r(7042),r(4747),r(9826),r(6699),r(2023),r(1058),r(5306),r(9600),r(9714),r(2526),r(1817),r(2165),r(1038),r(8309),r(2443),r(3680),r(3706),r(2703),r(489),r(5069),r(6891),r(6177),r(5557);var t=r(5685);r(6649),r(6078),r(9653),r(6227);var e={fragmentChange:"fragmentChange",pageChanged:"pageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},n=r(5311);function i(t){return i="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},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}var a=function(){function r(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.br=e,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,t.throttle)(this.updateNavIndex.bind(this),250,!1)}var i,a;return i=r,a=[{key:"controlFor",value:function(t){var e=this.br.options.controls[t];return e.visible?e.template?"<li>".concat(e.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(e.className,'" title="').concat(e.label,'">\n <div class="icon icon-').concat(e.iconClassName,'"></div>\n <span class="tooltip">').concat(e.label,"</span>\n </button>\n </li>"):""}},{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,i=r.options.controls.viewmode,o=[{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!i.excludedModes.includes(t.mode)})),a=o.map((function(t){return t.mode}));i.excludedModes.includes(r.mode)&&r.switchMode(a[0]);for(var s=a.indexOf(r.mode),u=0;u<=s;u++)a.push(a.shift());o.length<2&&this.$nav.find(".".concat(i.className)).remove(),this.br.bind(e.PostInit,(function(){var e=t.$nav.find(".".concat(i.className)).off(".bindNavigationHandlers").on("click",(function(e){var i=a.shift(),s=o.find((function(t){return t.mode===i})),u=o.find((function(t){return t.mode===a[0]}));a.push(i),r.viewModeOrder=a,t.updateViewModeButton(n(e.currentTarget),u.className,u.title),r.switchMode(s.mode)})),s=o.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(".tooltip").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,i="rl"===e.pageProgression,o=i?"book_flip_next":"book_flip_prev",a=i?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(o),this.br.options.controls.bookRight.className="book_right ".concat(a),e.refs.$BRfooter=this.$root=n('<div class="BRfooter"></div>'),e.refs.$BRnav=this.$nav=n('<div class="BRnav BRnavDesktop">\n '.concat(r?'<div class="BRnavTitle">'.concat(r,"</div>"):"",'\n <nav class="BRcontrols">\n <ul class="controls">\n <li class="scrubber">\n <div class="BRnavpos">\n <div class="BRpager"></div>\n <div class="BRnavline"></div>\n </div>\n <p><span class=\'BRcurrentpage\'></span></p>\n </li>\n ').concat(this._renderControls(),"\n </ul>\n </nav>\n </div>")),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 i,o=0,a=0;a<r;a++)i=e.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(t,e,n,r,i){if(!("n"!=n[0]))return"(".concat(t+1," of ").concat(e,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(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)}}],a&&o(i.prototype,a),Object.defineProperty(i,"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,h(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 i=new(Function.bind.apply(t,r));return n&&f(i,n.prototype),i},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 h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}r(2419),r(1532);var d={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)}(o,t);var e,n,r,i=(n=o,r=l(),function(){var t,e=h(n);if(r){var i=h(this).constructor;t=Reflect.construct(e,arguments,i)}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 o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,Object.defineProperty(e,"prototype",{writable:!1}),e}(u(Error)),v=(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<e;n++)r[n]=t[n];return r}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==g(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===g(i)?i:String(i)),r)}var i}var b=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.br=t}var r,i;return r=n,(i=[{key:"buildToolbarElement",value:function(){var t=this.br,e=t.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(t.logoURL,'"></a>\n </span>'):"";t.refs.$BRtoolbar=v('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(e,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return t.bookUrl&&t.options.enableBookTitleLink?n.append(v("<a>").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('<div style="display: none;"></div>').append(v('\n <div class="BRfloat BRshare">\n <div class="BRfloatHead">\n Share\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n </div>')).append(v('\n <div class="BRfloat BRinfo">\n <div class="BRfloatHead">About this book\n <button class="floatShut" href="javascript:;" onclick="$.fn.colorbox.close();"><span class="br-colorbox-shift">Close</span></button>\n </div>\n <div class="BRfloatBody">\n <div class="BRfloatCover"></div>\n <div class="BRfloatMeta">\n <div class="BRfloatTitle">\n <h2><a /></h2>\n </div>\n </div>\n </div>\n <div class="BRfloatFoot">\n <a href="https://openlibrary.org/dev/docs/bookreader">About the BookReader</a>\n </div>\n </div>')).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+"",i=(r+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=v('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(t),a.find(".fieldset-embed input").on("change",(function(t){var e=v(t.target).parents("form").first(),r={};r.mode=v(e.find(".fieldset-embed input[name=pages]:checked")).val(),e.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&e.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(t){return t.target.select()})),a.find(".facebook-share-button").on("click",(function(){w("https://www.facebook.com/sharer.php?"+v.param({u:e._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){w("https://twitter.com/intent/tweet?"+v.param({url:e._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var t="".concat(n.bookTitle,"\n\n").concat(e._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(t))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(t)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(e){var n=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var r=v('<div class="BRinfoLeftCol"></div>');n.thumbnail&&r.append(v('\n <div class="BRimageW">\n <img src="'.concat(n.thumbnail,'" alt="').concat((0,t.escapeHTML)(n.bookTitle),'" />\n </div>')));var i,o=v('<div class="BRinfoRightCol">'),a=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 m(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)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,f=s.value,h="Title"===l?(0,t.escapeHTML)(f):f;o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(h,"</div>\n </div>")))}}catch(t){a.e(t)}finally{a.f()}var d=n.bookUrlMoreInfo?n.bookUrlMoreInfo:n.bookTitle;d&&n.bookUrl&&o.append(v('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(n.bookUrl,'">\n ').concat((0,t.escapeHTML)(d),"\n </a>\n </div>\n </div>")));var p=v('<div class="BRfloatFoot BRinfoFooter"></div>'),g=v('<div class="BRinfoW mv20-lg">').append([r,o,v('<br style="clear:both"/>')]);e.append(g,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var t=this.br.refs.$BRtoolbar;return t&&"block"===t.css("display")?t.outerHeight()+parseInt(t.css("top")):0}}])&&y(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function w(t,e,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(e,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(t,r,u)}function x(t){return x="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},x(t)}function k(){k=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:S(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(O([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==x(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(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,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function S(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 _(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)?_(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==x(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===x(i)?i:String(i)),r)}var i}function C(t,e,n){return e&&P(t.prototype,e),n&&P(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}r(2707),r(4553),r(6535),r(9244);var O=function(){function e(t){var n,r,i,o;E(this,e),this.br=t,this.reduceSet=t.reduceSet,this.ppi=null!==(n=null===(r=t.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:d.ppi,this.pageProgression=null!==(i=null===(o=t.options)||void 0===o?void 0:o.pageProgression)&&void 0!==i?i:d.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null}return C(e,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var t,e=[],n=[],r=S(this.pagesIterator());try{for(r.s();!(t=r.n()).done;){var i=t.value;e.push(i.widthInches),n.push(i.heightInches)}}catch(t){r.e(t)}finally{r.f()}return e.sort((function(t,e){return t-e})),n.sort((function(t,e){return t-e})),this._medianPageSize={width:e[Math.floor(e.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,t.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var n=(0,t.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(n)}},{key:"getPageIndex",value:function(t){var e=this.getPageIndices(t);return e.length?e[e.length-1]:void 0}},{key:"getPageIndices",value:function(t){var e=[];if("n"==t.slice(0,1))try{var n=t.slice(1,t.length),r=parseInt(n);return e.push(r),e}catch(t){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==t&&e.push(i);return e}},{key:"getPageName",value:function(t){return"Page "+this.getPageNum(t)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(t){return this.getPageProp(t,"width")}},{key:"getPageHeight",value:function(t){return this.getPageProp(t,"height")}},{key:"getPageURI",value:function(t,e,n){return this.getPageProp(t,"viewable",!0)?this.getPageProp(t,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(t){return this.getPageProp(t,"pageSide")||(t%2==0?"R":"L")}},{key:"getPageNum",value:function(t){var e=this.getPageProp(t,"pageNum");return void 0===e?"n".concat(t):e}},{key:"getPageProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(t,e,n)}},{key:"getSpreadIndices",value:function(t){return"rl"==this.pageProgression?"R"==this.getPageSide(t)?[t+1,t]:[t,t-1]:"L"==this.getPageSide(t)?[t,t+1]:[t-1,t]}},{key:"leafNumToIndex",value:function(t){var e=this._getDataFlattened().findIndex((function(e){return e.leafNum==t}));return e>-1?e:t}},{key:"parsePageString",value:function(t){var e,n=/^leaf(\d+)/.exec(t);return n?null===(e=this.leafNumToIndex(parseInt(n[1],10)))&&(e=void 0):e=this.getPageIndex(t),e}},{key:"getPage",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(e||!(t<0||t>=n))return t<0&&t>=-n&&(t+=n),new T(this,t%=n)}},{key:"pagesIterator",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?1/0:i,a=e.combineConsecutiveUnviewables,s=void 0!==a&&a;return k().mark((function e(){var n,i;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Math.max(0,r),o=Math.min(o,t.getNumLeafs()),n=r;case 3:if(!(n<o)){e.next=12;break}if(i=t.getPage(n),!s||!i.isConsecutiveUnviewable){e.next=7;break}return e.abrupt("continue",9);case 7:return e.next=9,i;case 9:n++,e.next=3;break;case 12:case"end":return e.stop()}}),e)}))()}},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var t=null,e=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===t?2===r.length?"L":"R":"L"===t?"R":"L"),t=i.pageSide,!1===i.viewable?i.unviewablesStart=null===e?e=n:e:e=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened();return isNaN(t)||t<0||t>=r.length||void 0===r[t][e]?n:r[t][e]}}]),e}(),T=function(){function t(e,n){E(this,t),this.ppi=e._getDataProp(n,"ppi",e.ppi),this.book=e,this.index=n,this.width=e.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=e.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=e.getPageSide(n),this.leafNum=e._getDataProp(n,"leafNum",this.index),this.isViewable=e._getDataProp(n,"viewable",!0),this.unviewablesStart=e._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return C(t,[{key:"makeViewable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=t)if(t){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var e,n=S(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(t){n.e(t)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var i,o=S(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(t){o.e(t)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"left",get:function(){return"lr"===this.book.pageProgression?this.prev:this.next}},{key:"right",get:function(){return"lr"===this.book.pageProgression?this.next:this.prev}},{key:"spread",get:function(){return{left:"L"===this.pageSide?this:this.left,right:"R"===this.pageSide?this:this.right}}},{key:"goLeft",value:function(t){var e="lr"===this.book.pageProgression?this.index-t:this.index+t;return this.book.getPage(e)}},{key:"goRight",value:function(t){var e="lr"===this.book.pageProgression?this.index+t:this.index-t;return this.book.getPage(e)}},{key:"getURI",value:function(t,e){return this.book.getPageURI(this.index,t,e)}},{key:"getURISrcSet",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(t),o=[],a=r.decr(i);a>=1;a=r.decr(a))o.push(a);return o.map((function(t){return"".concat(e.getURI(t,n)," ").concat(i/t,"x")})).join(", ")}},{key:"findNext",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:e}).next().value}},{key:"findPrev",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,n=void 0!==e&&e;if(0!=this.index){if(n){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var r=new t(this.book,this.index-1);return r.isViewable?r:r.findPrev({combineConsecutiveUnviewables:n})}return new t(this.book,this.index-1)}}},{key:"findLeft",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:e}):this.findNext({combineConsecutiveUnviewables:e})}},{key:"findRight",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).combineConsecutiveUnviewables,e=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:e}):this.findPrev({combineConsecutiveUnviewables:e})}}]),t}(),L=(r(4819),r(5003),r(561),r(9601),r(3371),r(9089)),j=r(871),R=(r(189),r(4817)),A=r(5756);function I(t){return I="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},I(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==I(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===I(i)?i:String(i)),r)}var i}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}function D(t,e){if(e&&("object"===I(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)}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}var U=(0,A.XM)(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&&$(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=F(r);if(i){var n=F(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return D(this,t)});function a(t){var e,n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),t.type!==A.pX.ATTRIBUTE||"style"!==t.name||(null===(n=t.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return D(e)}return e=a,(n=[{key:"render",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null==r?e:e+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(t,e){var n=this,r=function(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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return M(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)?M(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.")}()}(e,1)[0],i=t.element.style;if(void 0===this.vt){for(var o in this.vt=new Set,r)this.vt.add(o);return this.render(r)}for(var a in this.vt.forEach((function(t){null==r[t]&&(n.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")})),r){var s=r[a];null!=s&&(this.vt.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return R.Jb}}])&&N(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A.Xe)),B=(r(2420),r(840)),z=r.n(B);function W(t){return W="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},W(t)}function H(){H=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:x(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(P([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==W(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)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")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function V(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function G(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){V(o,r,i,a,s,"next",t)}function s(t){V(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q(r.key),r)}}function X(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}var K=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),X(this,"_preventEvent",(function(t){return t.preventDefault(),!1})),X(this,"_pinchStart",(function(){var t,e;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(t=(e=n.mode).detachScrollListeners)||void 0===t||t.call(e)})),X(this,"_pinchMove",function(){var t=G(H().mark((function t(e){var r;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.lastEvent=e,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(t){return r=t})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),X(this,"_pinchEnd",G(H().mark((function t(){var e,r;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.pinchMoveFramePromise;case 2:n.mode.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(e=(r=n.mode).attachScrollListeners)||void 0===e||e.call(r);case 8:case"end":return t.stop()}}),t)})))),X(this,"_pinchCancel",G(H().mark((function t(){return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._pinchEnd();case 2:case"end":return t.stop()}}),t)})))),X(this,"_handleCtrlWheel",(function(t){if(t.ctrlKey){t.preventDefault();var e=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(t),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(t.deltaY)*e}})),this.mode=e,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete z().defaults.cssProps.userSelect,this.hammer=new(z().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(z().Pinch))}var e,n;return e=t,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(t){var e=t.clientX,n=t.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(e-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(t,e){var n=this.mode.$container,r=n.scrollTop,i=n.scrollLeft,o=this.mode.htmlDimensionsCacher.clientWidth,a=this.mode.htmlDimensionsCacher.clientHeight,s=t/e,u=this.mode.scaleCenter.x,c=this.mode.scaleCenter.y,l=s*(i+u*o),f=s*(r+c*a);n.scrollTop=f-c*a,n.scrollLeft=l-u*o}}])&&Y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Z(t){return Z="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},Z(t)}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function Q(t,e,n){return(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t){var e=function(t,e){if("object"!==Z(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Z(e)?e:String(e)}var et=function(){function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Q(this,"clientWidth",100),Q(this,"clientHeight",100),Q(this,"boundingClientRect",{top:0,left:0}),Q(this,"updateClientSizes",(function(){var t=r.element.getBoundingClientRect();r.clientWidth=r.element.clientWidth,r.clientHeight=r.element.clientHeight,r.boundingClientRect.top=t.top,r.boundingClientRect.left=t.left})),Q(this,"debouncedUpdateClientSizes",(0,t.debounce)(this.updateClientSizes,150,!1)),this.element=n}var n,r;return n=e,r=[{key:"attachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).removeEventListener("resize",this.debouncedUpdateClientSizes)}}],r&&J(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();function nt(t){return nt="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},nt(t)}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,it(r.key),r)}}function it(t){var e=function(t,e){if("object"!==nt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===nt(e)?e:String(e)}var ot=function(){function t(e,n){var r,i,o,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r=this,o=function(){a.element.classList.add(a.className),clearTimeout(a.timeout),a.timeout=setTimeout((function(){a.element.classList.remove(a.className)}),600)},(i=it(i="onScroll"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,this.element=e,this.className=n,this.timeout=null}var e,n;return e=t,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function at(t){return at="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},at(t)}function st(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lt(r.key),r)}}function ut(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ct(t,e,n){return(e=lt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lt(t){var e=function(t,e){if("object"!==at(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===at(e)?e:String(e)}var ft,ht=ut((function e(n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ct(this,"screenDPI",(0,t.calcScreenDPI)()),ct(this,"worldUnitsToRenderedPixels",(function(t){return t*r.screenDPI})),ct(this,"renderedPixelsToWorldUnits",(function(t){return t/r.screenDPI})),ct(this,"renderedPixelsToVisiblePixels",(function(t){return t*r.mode.scale})),ct(this,"visiblePixelsToRenderedPixels",(function(t){return t/r.mode.scale})),ct(this,"worldUnitsToVisiblePixels",(function(t){return r.renderedPixelsToVisiblePixels(r.worldUnitsToRenderedPixels(t))})),ct(this,"visiblePixelsToWorldUnits",(function(t){return r.renderedPixelsToWorldUnits(r.visiblePixelsToRenderedPixels(t))})),this.mode=n}));function dt(t){return dt="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},dt(t)}function pt(t){return function(t){if(Array.isArray(t))return Et(t)}(t)||Pt(t)||_t(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}function gt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mt(){mt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!wt(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||Pt(e)||_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.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=St(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:kt(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=kt(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function yt(t){var e,n=St(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function bt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function wt(t){return t.decorators&&t.decorators.length}function xt(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function kt(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function St(t){var e=function(t,e){if("object"!==dt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===dt(e)?e:String(e)}function _t(t,e){if(t){if("string"==typeof t)return Et(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)?Et(t,e):void 0}}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Ct(){return Ct="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=Ot(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ct.apply(this,arguments)}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(t)}var Tt=function(t,e,n,r){var i=mt(),o=e((function(t){i.initializeInstanceElements(t,a.elements)}),n),a=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(xt(o.descriptor)||xt(i.descriptor)){if(wt(o)||wt(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(wt(o)){if(wt(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}bt(o,i)}else e.push(o)}return e}(o.d.map(yt)),t);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,L.Mo)("br-mode-1up")],(function(e,n){var r=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&&vt(t,e)}(a,t);var n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ot(r);if(i){var n=Ot(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gt(t)}(this,t)});function a(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(gt(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(n);return{F:r,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,L.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new ht(this)}},{kind:"field",decorators:[(0,L.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,L.Cb)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,L.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,L.IO)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var t=this.coordSpace.worldUnitsToRenderedPixels;return{width:t(this.worldDimensions.width)+"px",height:t(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,L.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new et(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new K(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new ot(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).smooth,r=void 0!==n&&n;r&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[t]-this.SPACING_IN/2),r&&setTimeout((function(){return e.style.scrollBehavior=""}),100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){Ct(Ot(r.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t);this.scale=this.computeDefaultScale(e)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&this.updatePages(),t.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),t.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),t.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled())),t.has("scale")){var e=t.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,e),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,t.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){Ct(Ot(r.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.attachScrollListeners(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.detachScrollListeners(),this.smoothZoomer.detach(),Ct(Ot(r.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t,e,n=this;return(0,j.dy)(ft||(t=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],e||(e=t.slice(0)),ft=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),U(this.worldStyle),this.renderedPages.map((function(t){return n.renderPage(t)})))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=t.coordSpace.visiblePixelsToWorldUnits(t.htmlDimensionsCacher.clientWidth),o=n(e.widthInches),a=n(e.heightInches),s=Math.max(t.SPACING_IN,(i-e.widthInches)/2),u=t.pageTops[e.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=t.createPageContainer(e).update({dimensions:{width:o,height:a,top:0,left:0},reduce:e.width/r(e.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",t.visiblePages.includes(e)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var t=this;return function(){var e=t.scrollTop,n=t.scrollLeft,r=t.htmlDimensionsCacher.clientWidth,i=t.htmlDimensionsCacher.clientHeight,o=t.coordSpace.visiblePixelsToWorldUnits;t.visibleRegion={top:o(e),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e;return[null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(pt(this.visiblePages),[null===(e=this.visiblePages[this.visiblePages.length-1])||void 0===e?void 0:e.next]).filter((function(t){return t})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,t.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(t,e){var n,r={},i=e,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_t(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+e}}catch(t){o.e(t)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(t){var e=this.coordSpace.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,e/(t.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,pt(this.pages.map((function(t){return t.widthInches}))))+2*this.SPACING_IN,height:(0,t.sum)(this.pages.map((function(t){return t.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var t=this;return this.pages.filter((function(e){var n=t.pageTops[e.index],r=n+e.heightInches,i=t.visibleRegion.top;return n<=i+t.visibleRegion.height&&r>=i}))}},{kind:"field",key:"attachScrollListeners",value:function(){var t=this;return function(){t.addEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var t=this;return function(){t.removeEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.detach()}}}]}}),j.oi),Lt=r(5311);function jt(t){return jt="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},jt(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,It(r.key),r)}}function At(t,e,n){return(e=It(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function It(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jt(e)?e:String(e)}function Mt(t,e){return t.split(" ").map((function(t){return t+e})).join(" ")}function Nt(t){var e,n;return void 0!==t.clientX?(e=t.clientX,n=t.clientY):void 0!==t.screenX?(e=t.screenX,n=t.screenY):void 0!==t.targetTouches?(e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY):void 0===t.originalEvent?console.error("don't understand x and y for "+t.type,t):void 0!==t.originalEvent.clientX?(e=t.originalEvent.clientX,n=t.originalEvent.clientY):void 0!==t.originalEvent.screenX?(e=t.originalEvent.screenX,n=t.originalEvent.screenY):void 0!==t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches[0].pageX,n=t.originalEvent.targetTouches[0].pageY),{left:e,top:n}}var $t={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Dt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),At(this,"_dragStartHandler",(function(t){return!!n._shouldAbort()||!(t.which>1||!n.settings.acceptPropagatedEvent&&t.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=Nt(t),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].addEventListener(t,n._dragEndHandler,!0)})),n.settings.preventDefault?(t.preventDefault(),!1):void 0)})),At(this,"_dragContinueHandler",(function(t){if(n._shouldAbort())return!0;var e=Nt(t),r=e.left-n.lastCoord.left,i=e.top-n.lastCoord.top,o=n.settings.scrollWindow?Lt(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=e,n.settings.preventDefault?(t.preventDefault(),!1):void 0})),At(this,"_dragEndHandler",(function(t){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].removeEventListener(t,n._dragEndHandler,!0)}));var e={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(e.left,e.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0})),this.handling_element=Lt(e),this.settings=Lt.extend({},$t,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=Mt(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=Mt(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var e,n;return e=t,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&Rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ft=r(5311);function Ut(t){return Ut="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},Ut(t)}function Bt(){Bt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:x(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(P([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ut(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)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")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function zt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Wt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){zt(o,r,i,a,s,"next",t)}function s(t){zt(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ut(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ut(i)?i:String(i)),r)}var i}var Vt,Gt,Yt,Xt,qt,Kt,Zt,Jt,Qt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode1UpLit=new Tt(n,e),this.$el=Ft(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(Wt(Bt().mark((function n(){return Bt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=7;break}return t.mode1UpLit.initFirstRender(e),t.everShown=!0,t.mode1UpLit.requestUpdate(),n.next=6,t.mode1UpLit.updateComplete;case 6:new Dt(t.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:t.mode1UpLit.jumpToIndex(e),setTimeout((function(){t.mode1UpLit.updateVisibleRegion()}));case 9:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){var i=Math.abs(this.br.currentIndex()-t),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(t,{smooth:o})}},{key:"zoom",value:function(t){switch(t){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&Ht(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),te=(r(4723),r(5311));function ee(t){return ee="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},ee(t)}function ne(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function re(){re=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:x(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(P([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==ee(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)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")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function ie(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function oe(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ie(o,r,i,a,s,"next",t)}function s(t){ie(o,r,i,a,s,"throw",t)}a(void 0)}))}}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,we(r.key),r)}}function se(t,e,n){return e&&ae(t.prototype,e),n&&ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(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&&le(t,e)}function le(t,e){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},le(t,e)}function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ee(t);if(e){var i=Ee(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return he(t)}(this,n)}}function he(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function de(t,e,n,r){var i=pe();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=e((function(t){i.initializeInstanceElements(t,s.elements)}),n),s=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(ye(o.descriptor)||ye(i.descriptor)){if(me(o)||me(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(me(o)){if(me(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}ge(o,i)}else e.push(o)}return e}(a.d.map(ve)),t);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}function pe(){pe=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!me(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||Se(e)||xe(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.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=we(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:be(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=be(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function ve(t){var e,n=we(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function ge(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function me(t){return t.decorators&&t.decorators.length}function ye(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function be(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function we(t){var e=function(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ee(e)?e:String(e)}function xe(t,e){if(t){if("string"==typeof t)return ke(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)?ke(t,e):void 0}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Se(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _e(){return _e="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=Ee(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},_e.apply(this,arguments)}function Ee(t){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ee(t)}var Pe=de([(0,L.Mo)("br-mode-2up")],(function(e,n){var r,i,o=function(t){ce(r,t);var n=fe(r);function r(t,i){var o;return ue(this,r),o=n.call(this),e(he(o)),o.book=t,o.br=i,o}return se(r)}(n);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new ht(this)}},{kind:"field",decorators:[(0,L.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,L.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,L.Cb)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,L.IO)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,L.Cb)({type:Array,hasChanged:t.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find((function(t){return"L"==t.pageSide}))}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find((function(t){return"R"==t.pageSide}))}},{kind:"field",decorators:[(0,L.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",key:"activeFlip",value:function(){return null}},{kind:"field",key:"_leftCoverWidth",value:function(){return 0}},{kind:"get",key:"$container",value:function(){return this}},{kind:"get",key:"$visibleWorld",value:function(){return this.$book}},{kind:"field",decorators:[(0,L.IO)(".br-mode-2up__book")],key:"$book",value:void 0},{kind:"get",key:"positions",value:function(){return this.computePositions(this.pageLeft,this.pageRight)}},{kind:"method",key:"computePageHeight",value:function(t){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(t){return t.widthInches*this.computePageHeight(t)/t.heightInches}},{kind:"method",key:"computePositions",value:function(t,e){var n,r,i,o,a=this.computePageWidth.bind(this),s=this.book.getNumLeafs(),u=this.activeFlip?Math.ceil(this.activeFlip.pagesFlippingCount/2)*this.PAGE_THICKNESS_IN:0,c="lr"==this.book.pageProgression?null!==(n=null==t?void 0:t.index)&&void 0!==n?n:0:t?s-t.index:0,l=this._leftCoverWidth+c*this.PAGE_THICKNESS_IN,f=l,h=a(t||e.right),d=l-h,p=d,v="left"!=(null===(r=this.activeFlip)||void 0===r?void 0:r.direction)?0:u,g=Math.ceil(c/2)*this.PAGE_THICKNESS_IN-v,m=v+g,y=p-v,b=y-g,w=l,x=e?a(e):0,k=w+x,S="lr"==this.book.pageProgression?e?s-e.index:0:null!==(i=null==e?void 0:e.index)&&void 0!==i?i:0,_=k,E="right"!=(null===(o=this.activeFlip)||void 0===o?void 0:o.direction)?0:u,P=_+E,C=Math.ceil(S/2)*this.PAGE_THICKNESS_IN-E,O=_+C+E;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:g,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:m,pageLeftStart:d,pageLeftWidth:h,pageLeftEnd:f,gutter:l,pageRightStart:w,pageRightWidth:x,pageRightEnd:k,leafEdgesRightStart:_,leafEdgesRightMovingWidth:E,leafEdgesRightMainStart:P,leafEdgesRightMainWidth:C,leafEdgesRightEnd:O,leafEdgesRightFullWidth:E+C,spreadWidth:k-d,bookWidth:O-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new et(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new K(this)}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"field",key:"PAGE_THICKNESS_IN",value:function(){return.002}},{kind:"method",key:"jumpToIndex",value:(i=oe(re().mark((function t(e){var n,r,i=arguments;return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(i.length>1&&void 0!==i[1]?i[1]:{}).smooth,r=void 0===n||n,t.next=3,this.flipAnimation(e,{animate:r});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){_e(Ee(o.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){_e(Ee(o.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),_e(Ee(o.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),t.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),t.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),t.has("scale")){var e=t.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,e)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var t=this;return(0,j.dy)(Vt||(Vt=ne(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map((function(e){return t.renderPage(e)})),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t),n=e.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter((function(t){return t})),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(e),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.coordSpace.worldUnitsToRenderedPixels,r=t.coordSpace.worldUnitsToVisiblePixels,i=n(t.computePageWidth(e)),o=n(t.computePageHeight(e)),a=t.visiblePages.map((function(t){return t.index})).includes(e.index),s=t.computePositions(e.spread.left,e.spread.right),u=t.createPageContainer(e).update({dimensions:{width:i,height:o,top:0,left:n("L"==e.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:e.width/r(t.computePageWidth(e))}).$container[0];return u.classList.toggle("BRpage-visible",a),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var t=this;return function(e){var n;if(!t.visiblePages.length)return(0,j.dy)(Gt||(Gt=ne([""])));if(!("left"==e?t.positions.leafEdgesLeftFullWidth:t.positions.leafEdgesRightFullWidth))return(0,j.dy)(Yt||(Yt=ne([""])));var r=t.coordSpace.worldUnitsToRenderedPixels,i=r(t.computePageHeight(t.visiblePages[0])),o=(null===(n=t.activeFlip)||void 0===n?void 0:n.direction)==e,a=t.book.getPage("lr"==t.book.pageProgression?0:t.book.getNumLeafs()-1),s=t.book.getPage("lr"==t.book.pageProgression?t.book.getNumLeafs()-1:0),u=o?t.activeFlip.pagesFlippingCount:0,c="left"==e?[a.index,t.pageLeft.goLeft(u).index]:[t.pageRight.goRight(u).index,s.index],l={width:"".concat(r("left"==e?t.positions.leafEdgesLeftMainWidth:t.positions.leafEdgesRightMainWidth),"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftStart:t.positions.leafEdgesRightMainStart),"px")},f=(0,j.dy)(Xt||(Xt=ne(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n .pageClickHandler=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--','"\n style=',"\n ></br-leaf-edges>\n "])),c[0],c[1],t.book,(function(e){return t.br.jumpToIndex(e)}),e,e,U(l));if(o){var h=r("left"==e?t.positions.leafEdgesLeftMovingWidth:t.positions.leafEdgesRightMovingWidth),d={width:"".concat(h,"px"),height:"".concat(i,"px"),left:"".concat(r("left"==e?t.positions.leafEdgesLeftMovingStart:t.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==e?t.positions.pageLeftWidth:-t.positions.pageRightWidth)+h/2,"px 0")},p=(0,j.dy)(qt||(qt=ne(["\n <br-leaf-edges\n leftIndex=","\n rightIndex=","\n .book=","\n side=",'\n class="br-mode-2up__leafs br-mode-2up__leafs--',' br-mode-2up__leafs--flipping"\n style=',"\n ></br-leaf-edges>\n "])),t.activeFlip.pagesFlipping[0],t.activeFlip.pagesFlipping[1],t.book,e,e,U(d));return"left"==e?(0,j.dy)(Kt||(Kt=ne(["","",""])),f,p):(0,j.dy)(Zt||(Zt=ne(["","",""])),p,f)}return f}}},{kind:"method",key:"resizeViaAutofit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(t,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],e=this.computeTranslate(t,this.scale);this.$book.style.transform="translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e,n,r,i;return[null===(t=this.visiblePages[0])||void 0===t||null===(t=t.prev)||void 0===t?void 0:t.prev,null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat((i=this.visiblePages,function(t){if(Array.isArray(t))return ke(t)}(i)||Se(i)||xe(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[null===(n=this.visiblePages[this.visiblePages.length-1])||void 0===n?void 0:n.next,null===(r=this.visiblePages[this.visiblePages.length-1])||void 0===r||null===(r=r.next)||void 0===r?void 0:r.next]).filter((function(t){return t})).slice(0,10)}},{kind:"method",key:"computeScale",value:function(t,e){if(!t)return 1;var n=t.spread,r=this.computePositions(n.left,n.right).bookWidth,i=this.computePageHeight(n.left||n.right),o=this.scale;this.scale=1;var a=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth-20)/r,s=this.coordSpace.renderedPixelsToWorldUnits(this.htmlDimensionsCacher.clientHeight-20)/i;this.scale=o;var u=1;if("width"==e)u=a;else if("height"==e)u=s;else if("auto"==e)u=Math.min(a,s);else{if("none"!=e)throw new Error("Invalid autoFit value: ".concat(e));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!t)return{x:0,y:0};var n=t.spread,r=this.computePositions(n.left,n.right),i=r.bookWidth,o=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(i)*e,s=this.coordSpace.worldUnitsToRenderedPixels(o)*e,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*e,c=(this.htmlDimensionsCacher.clientWidth-a)/2+u,l=(this.htmlDimensionsCacher.clientHeight-s)/2;return{x:Math.max(u,c),y:Math.max(0,l)}}},{kind:"method",key:"flipAnimation",value:(r=oe(re().mark((function e(n){var r,i,o,a,s,u,c,l,f,h,d,p,v,g,m,y,b,w,x,k,S,_,E,P,C,O,T,L,j,R=this,A=arguments;return re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(A.length>1&&void 0!==A[1]?A[1]:{}).animate,c=void 0===u||u,l=null===(r=this.pageLeft||this.pageRight)||void 0===r?void 0:r.spread){e.next=4;break}return e.abrupt("return");case 4:if(n=this.parseNextSpread(n),!this.activeFlip&&n){e.next=7;break}return e.abrupt("return");case 7:if(f=this.book.pageProgression,h=null!==(i=null===(o=l.left)||void 0===o?void 0:o.index)&&void 0!==i?i:"lr"==f?-1:this.book.getNumLeafs(),d=null!==(a=null===(s=n.left)||void 0===s?void 0:s.index)&&void 0!==a?a:"lr"==f?-1:this.book.getNumLeafs(),h!=d){e.next=12;break}return e.abrupt("return");case 12:p=this.renderedPages.map((function(t){return t.index})),v=[],g=0,m=[n.left,n.right];case 15:if(!(g<m.length)){e.next=24;break}if(y=m[g]){e.next=19;break}return e.abrupt("continue",21);case 19:v.push(this.createPageContainer(y)),p.includes(y.index)||this.renderedPages.push(y);case 21:g++,e.next=15;break;case 24:if(b=this.computeTranslate(l.left||l.right,this.scale),w=this.computeTranslate(n.left||n.right,this.scale),x=Math.sqrt(Math.pow(w.x-b.x,2)+Math.pow(w.y-b.y,2)),k="translate(".concat(w.x,"px, ").concat(w.y,"px)"),x<50&&(_=null===(S=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===S?void 0:S[0])&&(k=_),E="".concat(k," scale(").concat(this.scale,")"),!c||!("animate"in Element.prototype)){e.next=57;break}return P="lr"==f?d>h?"right":"left":d>h?"left":"right",this.activeFlip={direction:P,pagesFlipping:[h,d],pagesFlippingCount:Math.abs(d-h)},this.classList.add("br-mode-2up--flipping-".concat(P)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.next=38,this.updateComplete;case 38:return this.visiblePages.map((function(t){return R.pageContainerCache[t.index].$container})).forEach((function(t){return t.addClass("BRpage-exiting")})),v.forEach((function(t){return t.$container.addClass("BRpage-entering")})),C={duration:this.flipSpeed+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},O=this.$book.animate([{transform:E}],C),T=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==P?"rotateY(-180deg)":"rotateY(180deg)"}],C),L="left"==P?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],C):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],C),j="left"==P?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],C):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],C),O.play(),T.play(),L.play(),j.play(),v.forEach((function(t){return t.$container.addClass("BRpage-visible")})),e.next=52,Promise.race([(0,t.promisifyEvent)(O,"finish"),(0,t.promisifyEvent)(T,"finish"),(0,t.promisifyEvent)(L,"finish"),(0,t.promisifyEvent)(j,"finish")]);case 52:this.classList.remove("br-mode-2up--flipping-".concat(P)),this.classList.remove("BRpageFlipping"),this.visiblePages.map((function(t){return R.pageContainerCache[t.index].$container})).forEach((function(t){return t.removeClass("BRpage-exiting BRpage-visible")})),v.forEach((function(t){return t.$container.removeClass("BRpage-entering")})),this.activeFlip=null;case 57:this.$book.style.transform=E,this.visiblePages=("lr"==f?[n.left,n.right]:[n.right,n.left]).filter((function(t){return t}));case 59:case"end":return e.stop()}}),e,this)}))),function(t){return r.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(t){"next"==t?t="lr"==this.book.pageProgression?"right":"left":"prev"==t&&(t="lr"==this.book.pageProgression?"left":"right");var e,n=(this.pageLeft||this.pageRight).spread;if("left"==t)t=null===(e=n.left)||void 0===e||null===(e=e.findLeft({combineConsecutiveUnviewables:!0}))||void 0===e?void 0:e.spread;else if("right"==t){var r;t=null===(r=n.right)||void 0===r||null===(r=r.findRight({combineConsecutiveUnviewables:!0}))||void 0===r?void 0:r.spread}return"number"==typeof t&&(t=this.book.getPage(t).spread),t instanceof T&&(t=t.spread),t}},{kind:"field",key:"handlePageClick",value:function(){var t=this;return function(e){if(3==e.which&&t.br.protected)return!1;if(1==e.which){var n=te(e.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?t.flipAnimation("left"):"R"==n.data("side")&&t.flipAnimation("right"))}}}}]}}),j.oi),Ce=(de([(0,L.Mo)("br-leaf-edges")],(function(t,e){var n=function(e){ce(r,e);var n=fe(r);function r(){var e;ue(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),t(he(e)),e}return se(r)}(e);return{F:n,d:[{kind:"field",decorators:[(0,L.Cb)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,L.Cb)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,L.Cb)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,L.Cb)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,L.Cb)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,L.IO)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,L.IO)(".br-leaf-edges__label")],key:"$hoverLabel",value:void 0},{kind:"get",key:"pageWidthPercent",value:function(){return 100/(this.rightIndex-this.leftIndex+1)}},{kind:"method",key:"render",value:function(){return(0,j.dy)(Jt||(Jt=ne(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),U({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){_e(Ee(n.prototype),"connectedCallback",this).call(this),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave),this.addEventListener("click",this.onClick)}},{kind:"method",key:"disconnectedCallback",value:function(){_e(Ee(n.prototype),"disconnectedCallback",this).call(this),this.addEventListener("mouseenter",this.onMouseEnter),this.removeEventListener("mousemove",this.onMouseMove),this.removeEventListener("mouseleave",this.onMouseLeave)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"onMouseEnter",value:function(){var t=this;return function(e){t.addEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="block",t.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var t=this;return function(e){t.$hoverBar.style.left="".concat(e.offsetX,"px"),"right"==t.side?t.$hoverLabel.style.left="".concat(e.offsetX,"px"):t.$hoverLabel.style.right="".concat(t.offsetWidth-e.offsetX,"px"),t.$hoverLabel.style.top="".concat(e.offsetY,"px");var n=t.mouseEventToPageIndex(e);t.$hoverLabel.textContent=t.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var t=this;return function(e){t.removeEventListener("mousemove",t.onMouseMove),t.$hoverBar.style.display="none",t.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var t=this;return function(e){t.pageClickHandler(t.mouseEventToPageIndex(e))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(t){return Math.floor(this.leftIndex+t.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}}),j.oi),r(5311));function Oe(t){return Oe="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},Oe(t)}function Te(){Te=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:x(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(P([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Oe(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)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")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function Le(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function je(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Le(o,r,i,a,s,"next",t)}function s(t){Le(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Oe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Oe(i)?i:String(i)),r)}var i}var Ae=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode2UpLit=new Pe(n,e),this.mode2UpLit.flipSpeed=e.flipSpeed,this.$el=Ce(this.mode2UpLit).attr("autoFit",this.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(je(Te().mark((function n(){return Te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=9;break}return t.mode2UpLit.initFirstRender(e),t.everShown=!0,t.mode2UpLit.requestUpdate(),n.next=6,t.mode2UpLit.updateComplete;case 6:new Dt(t.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.next=12;break;case 9:return n.next=11,t.mode2UpLit.jumpToIndex(e,{smooth:!1});case 11:t.resizePageView();case 12:t.mode2UpLit.style.opacity="1";case 13:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){this.mode2UpLit.jumpToIndex(t)}},{key:"zoom",value:function(t){switch(t){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode2UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode2UpLit.scale<this.mode2UpLit.initialScale&&"none"==this.mode2UpLit.autoFit&&(this.mode2UpLit.autoFit="auto"),"none"!=this.mode2UpLit.autoFit&&this.mode2UpLit.resizeViaAutofit(),this.mode2UpLit.recenter()}}])&&Re(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ie=r(5311);function Me(t){return Me="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},Me(t)}function Ne(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 $e(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)?$e(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Me(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Me(i)?i:String(i)),r)}var i}var Fe=function(){function n(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.br=t,this.book=e}var r,i;return r=n,i=[{key:"drawLeafs",value:function(n){var r,i,o,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,f=0,h=0,d=0,p=0,v=[],g=Ne(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(o=g.n()).done;){var m=o.value,y=this.br.thumbWidth;l+(y+this.br.thumbPadding)>c&&(d++,l=0,p=0),v[d]||(v[d]={}),v[d].leafs||(v[d].leafs=[],v[d].height=0,v[d].top=0),v[d].leafs[p]={num:m.index,left:l},(r=s(m.height*this.br.thumbWidth/m.width))>v[d].height&&(v[d].height=r),0===p&&(f+=this.br.thumbPadding+v[d].height),(l+=y+this.br.thumbPadding)>h&&(h=l),p++,m.index==n&&(i=f-this.br.thumbPadding-v[d].height)}}catch(t){g.e(t)}finally{g.f()}this.br.refs.$brPageViewEl.height(f);var b=s((this.br.refs.$brContainer.prop("scrollWidth")-h)/2)-14;void 0!==i&&this.br.refs.$brContainer.scrollTop(i);for(var w=this.br.refs.$brContainer.prop("scrollTop"),x=w+this.br.refs.$brContainer.height(),k=0,S=0,_=[],E=[],P=u.getNumLeafs()-1,C=0,O=0;O<v.length;O++)v[O]&&(S+=this.br.thumbPadding+v[O].height,(k>=w&&k<=x||S>=w&&S<=x||k<=w&&S>=x)&&(_.push(O),v[O].leafs[0].num<P&&(P=v[O].leafs[0].num),v[O].leafs[v[O].leafs.length-1].num>C&&(C=v[O].leafs[v[O].leafs.length-1].num)),k>v[O].top&&(v[O].top=k),k=S);for(var T=_[0],L=_[_.length-1],j=1;j<this.br.thumbRowBuffer+1;j++)L+j<v.length&&_.push(L+j);for(var R=1;R<this.br.thumbRowBuffer;R++)T-R>=0&&_.push(T-R);_.sort((function(t,e){return t-e}));for(var A=0,I=_;A<I.length;A++){var M=I[A];if((0,t.notInArray)(M,this.br.displayedRows)){if(!v[M])continue;var N,$=Ne(v[M].leafs);try{var D=function(){var t=N.value,n=t.num,r=t.left,i=a.br.thumbWidth,o=s(u.getPageHeight(n)*a.br.thumbWidth/u.getPageWidth(n)),l=v[M].top,f=r+b;"rl"==a.br.pageProgression&&(f=c-i-f),f+=a.br.thumbPadding,E.push(n);var h=s(u.getPageWidth(n)/a.br.thumbWidth),d=2*Math.round(h/2),p=a.br._createPageContainer(n).update({dimensions:{width:i,height:o,top:l,left:f},reduce:d});p.$container.data("leaf",n).on("mouseup",(function(t){a.br.updateFirstIndex(n,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var r=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(r),a.br._components.navbar.updateViewModeButton(Ie(".viewmode"),"twopg","Two-page view"),a.br.trigger(e.fragmentChange),t.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for($.s();!(N=$.n()).done;)D()}catch(t){$.e(t)}finally{$.f()}}}var F,U=Ne(this.br.displayedRows);try{for(U.s();!(F=U.n()).done;){var B=F.value;if((0,t.notInArray)(B,_)){var z,W,H=Ne(null===(z=v[B])||void 0===z?void 0:z.leafs);try{for(H.s();!(W=H.n()).done;){var V,G=W.value.num;null!=E&&E.includes(G)||null===(V=this.br.$(".pagediv".concat(G)))||void 0===V||V.remove()}}catch(t){H.e(t)}finally{H.f()}}}}catch(t){U.e(t)}finally{U.f()}var Y=this.br.currentIndex();Y<P?this.br.updateFirstIndex(P):Y>C&&this.br.updateFirstIndex(C),this.br.displayedRows=_.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(t){var e=Ie(t).data("leaf"),n=Ie(t).data("reduce"),r=this.br.imageCache.image(e,n),i=Ie(t).parent();Ie(i).append(r),Ie(t).remove()}},{key:"zoom",value:function(e){var n=this.br.thumbColumns;switch(e){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(e))}this.br.thumbColumns=(0,t.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=n&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(t){var e=(t+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-e)/(t+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=Ie("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Dt(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){for(var e=this,n=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,f=0;f<=t;f++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var h=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));h>c&&(c=h),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(t),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){e.br.animating=!1})))}}],i&&De(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),Ue=(r(4914),{floor:Math.floor,decr:function(t){return t-1}}),Be={floor:function(t){return Math.pow(2,Math.floor(Math.log2(Math.max(1,t))))},decr:function(t){return Math.pow(2,Math.log2(t)-1)}},ze={pow2:Be,integer:Ue},We=r(5311);function He(t){return He="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},He(t)}function Ve(t){return function(t){if(Array.isArray(t))return Ge(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ge(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)?Ge(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==He(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===He(i)?i:String(i)),r)}var i}var Xe=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Be:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.book=e,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var e,n;return e=t,n=[{key:"image",value:function(t,e){var n=(this.cache[t]||[]).filter((function(t){return t.loaded&&t.reduce<=e}));if(n.length){var r=Math.max.apply(Math,Ve(n.map((function(t){return t.reduce}))));return this._serveImageElement(t,r)}return this._serveImageElement(t,e)}},{key:"imageLoaded",value:function(t,e){var n,r,i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce<=e}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(e=this.cache[t])||void 0===e?void 0:e.filter((function(t){return t.loaded})))||[];if(!r.length)return null;var i=r.filter((function(t){return t.reduce>=n}));if(i.length)return Math.min.apply(Math,Ve(i.map((function(t){return t.reduce}))));var o=r.filter((function(t){return t.reduce<n}));return Math.max.apply(Math,Ve(o.map((function(t){return t.reduce}))))}},{key:"_serveImageElement",value:function(t,e){var n,r=this.reduceSet.floor(e),i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[t]||(this.cache[t]=[])).push(i));var o=this.book.getPage(t),a=We("<img />",{class:"BRpageimage",alt:"Book page image",src:o.getURI(r,0)}).data("reduce",r);return this.useSrcSet&&a.attr("srcset",o.getURISrcSet(r)),i.loaded||a.one("load",(function(){return i.loaded=!0})),a}}],n&&Ye(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),qe=r(9860),Ke=r(5311),Ze=r(5311);function Je(t){return Je="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},Je(t)}function Qe(){Qe=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:x(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(P([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Je(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)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=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)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")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},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 i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function tn(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function en(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){tn(o,r,i,a,s,"next",t)}function s(t){tn(o,r,i,a,s,"throw",t)}a(void 0)}))}}function nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Ke.extend(!0,{},rn.defaultOptions,t,rn.optionOverrides);this.setup(e)}function on(t,e,n){var r,i,o,a,s,u,c,l;i=n,o=function(t){return t.br},a=rn,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,u=function(t){return t._overrideable[e]},c=(r=t).prototype[i],l=function(){return c.apply(u(this),arguments)},Object.defineProperty(a.prototype,s,{get:function(){return l},set:function(t){r.prototype[i]=function(){var e=this instanceof r?o(this):this;return t.apply(e,arguments)},l=t}})}rn.version="5.0.0-65",rn.constMode1up=1,rn.constMode2up=2,rn.constModeThumb=3,rn.imageCache=null,rn.constNavAnimationDuration=300,rn.constResizeAnimationDuration=100,rn.eventNames=e,rn.defaultOptions=d,rn.optionOverrides={},rn.prototype.setup=function(t){this.options=t,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=rn.constMode1up,this.constMode2up=rn.constMode2up,this.constModeThumb=rn.constModeThumb,this.reduce=8,this.defaults=t.defaults,this.padding=t.padding,this.reduceSet=ze[t.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(t.reduceSet,". Ignoring.")),this.reduceSet=ze[d.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=t.ui,this.uiAutoHide=t.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=t.thumbRowBuffer,this.thumbColumns=t.thumbColumns,this.thumbMaxLoading=t.thumbMaxLoading,this.thumbPadding=t.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed="number"==typeof t.flipSpeed?t.flipSpeed:{fast:200,slow:600}[t.flipSpeed]||400,this.flipDelay=t.flipDelay,this.firstIndex=null,this.isFullscreenActive=t.startFullscreen||!1,this.lastScroll=null,this.showLogo=t.showLogo,this.logoURL=t.logoURL,this.imagesBaseURL=t.imagesBaseURL,this.reductionFactors=t.reductionFactors,this.onePage=t.onePage,this.twoPage=t.twoPage,this.onePageMinBreakpoint=t.onePageMinBreakpoint,this.bookTitle=t.bookTitle,this.bookUrl=t.bookUrl,this.bookUrlText=t.bookUrlText,this.bookUrlTitle=t.bookUrlTitle,this.titleLeaf=t.titleLeaf,this.metadata=t.metadata,this.thumbnail=t.thumbnail,this.bookUrlMoreInfo=t.bookUrlMoreInfo,this.enableExperimentalControls=t.enableExperimentalControls,this.el=t.el,this.pageProgression=t.pageProgression,this.protected=t.protected,this.getEmbedCode=t.getEmbedCode,this.popup=null,this.data=t.data,this.refs={},this.book=new O(this),t.getNumLeafs&&(this.book.getNumLeafs=t.getNumLeafs.bind(this)),t.getPageWidth&&(this.book.getPageWidth=t.getPageWidth.bind(this)),t.getPageHeight&&(this.book.getPageHeight=t.getPageHeight.bind(this)),t.getPageURI&&(this.book.getPageURI=t.getPageURI.bind(this)),t.getPageSide&&(this.book.getPageSide=t.getPageSide.bind(this)),t.getPageNum&&(this.book.getPageNum=t.getPageNum.bind(this)),t.getPageProp&&(this.book.getPageProp=t.getPageProp.bind(this)),t.getSpreadIndices&&(this.book.getSpreadIndices=t.getSpreadIndices.bind(this)),t.leafNumToIndex&&(this.book.leafNumToIndex=t.leafNumToIndex.bind(this)),this._components={navbar:new a(this),toolbar:new b(this)},this._modes={mode1Up:new Qt(this,this.book),mode2Up:new Ae(this,this.book),modeThumb:new Fe(this,this.book)},this._overrideable={book:this.book,"_components.navbar":this._components.navbar,"_components.toolbar":this._components.toolbar,"_modes.mode1Up":this._modes.mode1Up,"_modes.mode2Up":this._modes.mode2Up,"_modes.modeThumb":this._modes.modeThumb},this.imageCache=new Xe(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},rn.prototype.getActivePageContainerElements=function(){var t=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map((function(t){return t.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(t){return t.$container[0]})));return this.mode==this.constModeThumb&&(t=t.concat(this.$(".BRpagecontainer").toArray())),t},rn.prototype.getActivePageContainerElementsForIndex=function(t){var e,n,r;return[null===(e=this._modes.mode2Up.mode2UpLit.pageContainerCache[t])||void 0===e||null===(e=e.$container)||void 0===e?void 0:e[0],null===(n=this._modes.mode1Up.mode1UpLit.pageContainerCache[t])||void 0===n||null===(n=n.$container)||void 0===n?void 0:n[0]].concat((r=this.mode==this.constModeThumb?this.$(".pagediv".concat(t)).toArray():[],function(t){if(Array.isArray(t))return nn(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return nn(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)?nn(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(t){return t}))},Object.defineProperty(rn.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),rn.util=t,rn.prototype.extendParams=function(t,e){var n=Ze.extend({},e);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Ze.extend(t,n)},rn.prototype.initParams=function(){var e={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?e.index=this.book.leafNumToIndex(this.titleLeaf):e.index=0,this.defaults){var n=this.paramsFromFragment(this.defaults);void 0!==n.page&&(e.pageFound=!0),this.extendParams(e,n)}if(this.options.enablePageResume){var r=this.getResumeValue();null!==r&&(e.index!==r&&(e.fragmentChange=!0),e.index=r)}if(this.options.enableUrlPlugin){var i=this.paramsFromFragment(this.urlReadFragment());!Object.keys(i).length&&this.urlReadHashFragment()&&"history"===this.options.urlMode&&(i=this.paramsFromFragment(this.urlReadHashFragment())),Object.keys(i).length&&(void 0!==i.page&&(e.pageFound=!0),this.extendParams(e,i),e.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!e.pageFound,!this.options.initialSearchTerm))if(e.search)this.options.initialSearchTerm=e.search,this.searchTerm=e.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=t.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},rn.prototype.getLocationSearch=function(){return window.location.search},rn.prototype.getLocationHash=function(){return window.location.hash},rn.prototype.readQueryString=function(){var t=this.getLocationSearch();if(t)return t;var e=this.getLocationHash(),n=e.search(/\?\w+=/);return n>-1?e.slice(n):""},rn.prototype.getInitialMode=function(t){var e,n=Ze(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(e=t.mode?t.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(e)||(e=this.constMode1up),this.options.defaults)try{e=function(t){var e={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(t in e))throw new p("Invalid mode string: ".concat(t));return e[t]}(this.options.defaults)}catch(t){}return e},rn.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var t=this.initParams();this.firstIndex=t.index?t.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Ze(this.el).empty().removeClass().addClass("ui-"+this.ui).addClass("br-ui-"+this.ui).addClass("BookReader"),this.isTouchDevice?this.refs.$br.addClass("touch"):this.refs.$br.addClass("no-touch"),this.refs.$brContainer=Ze("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),t.mode=this.getInitialMode(t),this.mode=t.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(t),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(t){t.data.lastScroll=(new Date).getTime(),t.data.constModeThumb==t.data.mode&&t.data.drawLeafsThrottled()})),this.options.autoResize&&(Ze(window).on("resize",this,(function(t){t.data.resize()})),Ze(window).on("orientationchange",this,function(t){t.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(rn.eventNames.PostInit)},rn.prototype.trigger=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r="BookReader:"+e;t.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:{props:n}})),Ze(document).trigger(r,n)},rn.prototype.bind=function(t,e){Ze(document).on("BookReader:"+t,e)},rn.prototype.unbind=function(t,e){Ze(document).off("BookReader:"+t,e)},rn.prototype.resize=function(){this.init.initComplete&&(this.resizeBRcontainer(),this._components.navbar.switchNavbarControls(),this.constMode1up==this.mode?"none"!=this.onePage.autofit?(this._modes.mode1Up.resizePageView(),this.centerPageView()):(this.centerPageView(),this.displayedIndices=[],this.drawLeafsThrottled()):this.constModeThumb==this.mode?this._modes.modeThumb.prepare():this._modes.mode2Up.resizePageView(),this.trigger(rn.eventNames.resize))},rn.prototype.setupKeyListeners=function(){var e=this;window.IntersectionObserver&&new IntersectionObserver((function(t){t.forEach((function(t){0===t.intersectionRatio?e.hasKeyFocus=!1:e.hasKeyFocus=!0}))}),{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",(function(n){if(e.hasKeyFocus&&!(n.getModifierState("Control")||n.getModifierState("Alt")||n.getModifierState("Meta")||n.getModifierState("Win")||t.isInputActive()))switch(n.key){case"Home":n.preventDefault(),e.first();break;case"End":n.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(n.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":e.constMode2up===e.mode&&(n.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(n.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(n.preventDefault(),e.right());break;case"-":case"Subtract":n.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":n.preventDefault(),e.zoom(1);break;case"F":case"f":n.preventDefault(),e.toggleFullscreen()}}))},rn.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},rn.prototype._createPageContainer=function(t){return new qe._z(this.book.getPage(t,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},rn.prototype.bindGestures=function(t){var e=this,n=1;t.unbind("touchmove").bind("touchmove",(function(t){t.originalEvent.cancelable&&(n=t.originalEvent.touches.length),t.stopPropagation()})),t.unbind("gesturechange").bind("gesturechange",(function(t){t.preventDefault(),2!==n||(new Date).getTime()-e.lastScroll<500||(t.originalEvent.scale>1.5?e.zoom(1):t.originalEvent.scale<.6&&e.zoom(-1))}))},rn.prototype.drawLeafsThrottled=t.throttle(rn.prototype.drawLeafs,250),rn.prototype.zoom=function(t){var e;1==t?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},rn.prototype.resizeBRcontainer=function(t){t?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},rn.prototype.centerPageView=function(){var t=this.refs.$brContainer.prop("scrollWidth"),e=this.refs.$brContainer.prop("clientWidth");t>e&&this.refs.$brContainer.prop("scrollLeft",(t-e)/2)},rn.prototype.quantizeReduce=function(t,e){for(var n=e[0].reduce,r=Math.abs(t-n),i=1;i<e.length;i++){var o=Math.abs(t-e[i].reduce);o<r&&(r=o,n=e[i].reduce)}return n},rn.prototype.nextReduce=function(t,e,n){if("in"===e){for(var r=0,i=1;i<n.length;i++)n[i].reduce<t&&(r=i);return n[r]}if("out"===e){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>t&&(a=s);return n[a]}if("auto"===e){var u=n.find((function(t){return"auto"==t.autofit}));if(u)return u;for(var c=n.filter((function(t){var e=t.autofit;return"height"==e||"width"==e})),l=null,f=0;f<c.length;f++)(null===l||l.reduce<c[f].reduce)&&(l=c[f]);if(l)return l}else if("height"===e||"width"===e){var h=n.find((function(t){return t.autofit==e}));if(h)return h}return n[0]},rn.prototype._reduceSort=function(t,e){return t.reduce-e.reduce},rn.prototype.jumpToPage=function(t){var e=this.book.parsePageString(t);return void 0!==e&&(this.jumpToIndex(e),!0)},rn.prototype._isIndexDisplayed=function(t){return this.displayedIndices?this.displayedIndices.includes(t):this.currentIndex()==t},rn.prototype.jumpToIndex=function(t,e,n,r){var i=this.book.getPage(t);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,e,n,r)}this.trigger(rn.eventNames.stop),this.activeMode.jumpToIndex(t,e,n,r)},rn.prototype.getPrevReadMode=function(t){return t===rn.constMode1up||t===rn.constMode2up?t:null===this.prevReadMode?rn.constMode1up:void 0},rn.prototype.switchMode=function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o;if(i.init,i.pageFound,this.init.initComplete){if(t===this.mode)return;if(!this.canSwitchToMode(t))return}this.trigger(rn.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=t&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=t,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==t?this._modes.mode1Up.prepare():this.constModeThumb==t?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||a||this.trigger(rn.eventNames.fragmentChange);var s=t+"PageViewSelected";this.trigger(rn.eventNames[s]),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},rn.prototype.updateBrClasses=function(){var t={};t[this.constMode1up]="BRmode1up",t[this.constMode2up]="BRmode2up",t[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(t[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Ze(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Ze(document.body).removeClass("BRfullscreenActive"))},rn.prototype.isFullscreen=function(){return this.isFullscreenActive},rn.prototype.toggleFullscreen=en(Qe().mark((function t(){var e,n=arguments;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){t.next=6;break}return t.next=4,this.exitFullScreen();case 4:t.next=8;break;case 6:return t.next=8,this.enterFullscreen(e);case 8:case"end":return t.stop()}}),t,this)}))),rn.prototype.enterFullscreen=en(Qe().mark((function t(){var e,n,r,i=this,o=arguments;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(o.length>0&&void 0!==o[0])||o[0],this.refs.$br.addClass("BRfullscreenAnimation"),r=this.currentIndex(),n&&(this._fullscreenCloseHandler=function(t){27===t.keyCode&&i.toggleFullscreen()},Ze(document).on("keyup",this._fullscreenCloseHandler)),Ze(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),!(this.activeMode instanceof Qt)){t.next=13;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),t.next=13,this.activeMode.mode1UpLit.updateComplete;case 13:return this.jumpToIndex(r),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(rn.eventNames.fragmentChange),this.trigger(rn.eventNames.fullscreenToggled),t.next=19,new Promise((function(t){return setTimeout(t,0)}));case 19:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 21:case"end":return t.stop()}}),t,this)}))),rn.prototype.exitFullScreen=en(Qe().mark((function t(){var e,n;return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Ze(document).off("keyup",this._fullscreenCloseHandler),n=Ze(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(rn.eventNames.fullscreenToggled),this.updateBrClasses(),t.next=10,new Promise((function(t){return setTimeout(t,0)}));case 10:if(this.resize(),!(this.activeMode instanceof Qt)){t.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),t.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(rn.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 19:case"end":return t.stop()}}),t,this)}))),rn.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return t.clamp(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},rn.prototype.updateFirstIndex=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).suppressFragmentChange,n=void 0!==e&&e;this.firstIndex!==t&&(this.firstIndex=t,this.suppressFragmentChange||n||this.trigger(rn.eventNames.fragmentChange),this.options.initialSearchTerm&&!n&&(this.suppressFragmentChange=!1),this.trigger(rn.eventNames.pageChanged),this.trigger(rn.eventNames.userAction),this._components.navbar.updateNavIndexThrottled(t))},rn.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},rn.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},rn.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},rn.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},rn.prototype.next=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggerStop,e=void 0===t||t;this.constMode2up==this.mode?(e&&this.trigger(rn.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("next")):this.firstIndex<this.book.getNumLeafs()-1&&this.jumpToIndex(this.firstIndex+1)},rn.prototype.prev=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggerStop,e=void 0===t||t;this.firstIndex<1||(this.constMode2up==this.mode?(e&&this.trigger(rn.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("prev")):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},rn.prototype.first=function(){this.jumpToIndex(0)},rn.prototype.last=function(){this.jumpToIndex(this.book.getNumLeafs()-1)},rn.prototype.initNavbar=a.prototype.init,on(a,"_components.navbar","init","initNavbar"),rn.prototype.buildToolbarElement=b.prototype.buildToolbarElement,on(b,"_components.toolbar","buildToolbarElement"),rn.prototype.initToolbar=b.prototype.initToolbar,on(b,"_components.toolbar","initToolbar"),rn.prototype.buildShareDiv=b.prototype.buildShareDiv,on(b,"_components.toolbar","buildShareDiv"),rn.prototype.buildInfoDiv=b.prototype.buildInfoDiv,on(b,"_components.toolbar","buildInfoDiv"),rn.prototype.getToolBarHeight=b.prototype.getToolBarHeight,on(b,"_components.toolbar","getToolBarHeight"),rn.prototype.bindNavigationHandlers=function(){var t=this,e=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){t.trigger(rn.eventNames.stop),t.left()},book_right:function(){t.trigger(rn.eventNames.stop),t.right()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){t.switchMode(e.constMode1up)},thumb:function(){t.switchMode(e.constModeThumb)},twopg:function(){t.switchMode(e.constMode2up)},zoom_in:function(){t.trigger(rn.eventNames.stop),t.zoom(1),t.trigger(rn.eventNames.zoomIn)},zoom_out:function(){t.trigger(rn.eventNames.stop),t.zoom(-1),t.trigger(rn.eventNames.zoomOut)},full:function(){if("embed"==t.ui){var e=t.$(".BRembedreturn a").attr("href");window.open(e)}else t.toggleFullscreen()}};this.$("nav.BRcontrols li button").on("click",(function(){t.trigger(rn.eventNames.userAction)}));var i=function(t){n.filter(".".concat(t)).on("click.bindNavigationHandlers",(function(){return r[t](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var t=[];a.hasClass("BRdn")?(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:-1*e.getToolBarHeight()}).promise()),t.push(e.$(".BRfooter").animate({bottom:-1*e.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),e.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:0}).promise()),t.push(e.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),e.$(".BRvavCntl").animate({opacity:1})),Ze.when.apply(Ze,t).done((function(){e.mode==e.constMode2up&&null!=e.twoPage.autofit&&"none"!=e.twoPage.autofit||e.mode==e.constMode1up&&null!=e.onePage.autofit&&"none"!=e.onePage.autofit?e.resize():e.resizeBRcontainer()}))})),a.on("mouseover",(function(){Ze(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ze(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Ze(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ze(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:.75},250)}))},rn.prototype.getPageURI=O.prototype.getPageURI,on(O,"book","getPageURI"),rn.prototype.updateFromParams=function(t){var e=t.mode,n=void 0===e?0:e,r=t.init,i=void 0!==r&&r,o=t.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==t.index?t.index!=this.currentIndex()&&this.jumpToIndex(t.index):void 0!==t.page&&t.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(t.page),this.enableSearch&&void 0!==t.search&&this.searchTerm!==t.search&&this.$(".BRsearchInput").val(t.search),this.enableThemesPlugin&&void 0!==t.theme&&this.updateTheme(t.theme)},rn.prototype.canSwitchToMode=function(t){return t!=this.constMode2up&&t!=this.constModeThumb||!(this.book.getNumLeafs()<2)},rn.prototype._getPageURI=function(t,e,n){var r=this.book.getPage(t,!1);return r?(void 0===e&&(e=r.height/this.twoPage.height),r.getURI(e,n)):this.imagesBaseURL+"transparent.png"},rn.prototype.showProgressPopup=function(t,e){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Ze(this.popup).prop("className","BRprogresspopup"),"function"==typeof e){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),Ze(r).append(i),r.addEventListener("click",(function(){e(),n.removeProgressPopup()})),Ze(this.popup).append(r)}var o=document.createElement("div");if(Ze(o).css({height:"20px"}).prop("className","BRprogressbar"),Ze(this.popup).append(o),t){var a=document.createElement("div");a.innerHTML=t,Ze(this.popup).append(a)}Ze(this.popup).appendTo(this.refs.$br)}},rn.prototype.removeProgressPopup=function(){Ze(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},rn.prototype.initUIStrings=function(){var t={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var e in"rl"==this.pageProgression&&(t[".book_leftmost"]="Last page",t[".book_rightmost"]="First page"),t)this.$(e).prop("title",t[e])},rn.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(t,e){if(!e.complete||0===e.naturalHeight){var n=e.src;e.src="",setTimeout((function(){e.src=n}),1e3)}}))},rn.prototype.getFooterHeight=function(){var t=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(t&&this.refs.$BRfooter){var e=t.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(e)&&!isNaN(n))return e+n}return 0},rn.prototype.paramsFromCurrent=function(){var t={},e=this.currentIndex(),n=this.book.getPageNum(e);return(0===n||n)&&(t.page=n),t.index=e,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),this.enableSearch&&(t.search=this.searchTerm),t},rn.prototype.paramsFromFragment=function(e){var n={};"#"==e.substr(0,1)&&(e=e.substr(1));var r=parseInt(/^\d+$/.exec(e));if(!isNaN(r))return n.index=r,n;for(var i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?n.mode=this.constMode1up:"2up"==o.mode?n.mode=this.constMode2up:"thumb"==o.mode&&(n.mode=this.constModeThumb),void 0!==o.page&&(n.page=o.page),null!=o.search&&(n.search=t.decodeURIComponentPlus(o.search)),null!=o.theme&&(n.theme=o.theme),n},rn.prototype.fragmentFromParams=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",r=[];if(void 0!==e.page?r.push("page",e.page):void 0!==e.index&&r.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)r.push("mode","1up");else if(e.mode==this.constMode2up)r.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;r.push("mode","thumb")}return e.search&&"hash"===n&&r.push("search",e.search),t.encodeURIComponentPlus(r.join("/")).replace(/%2F/g,"/")},rn.prototype.queryStringFromParams=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(e);t.view?r.set("view",t.view):r.delete("view"),t.search&&"history"===n&&r.set("q",t.search);var i=r.toString();return i?"?"+i:""},rn.prototype.$=function(t){return this.refs.$br.find(t)},window.BookReader=rn}(),i=r.O(i)}();
|
3
3
|
//# sourceMappingURL=BookReader.js.map
|