@internetarchive/bookreader 5.0.0-60 → 5.0.0-61

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see BookReader.js.LICENSE.txt */
2
- (function(){var __webpack_modules__={2292:function(e,t,n){"use strict";n(5666),n(1539),n(9714),n(5827),n(2222),n(1249),n(6833),n(8674),n(7327),n(7941),n(4916),n(6992),n(8783),n(3948),n(1637),n(4765),n(7042),n(4747),n(9826),n(6699),n(2023),n(1058),n(3123),n(5306),n(9600),n(2526),n(1817),n(2165),n(1038),n(8309),n(6891),n(6177),n(5557);var r=n(5685);function i(e,t,n,r,i,o){var a,s=(a=e.prototype[t],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){e.prototype[t]=function(){var t=this instanceof e?n(this):this;return r.apply(t,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",pageChanged:"pageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,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,r.throttle)(this.updateNavIndex.bind(this),250,!1)}var t,n;return t=e,(n=[{key:"controlFor",value:function(e){var t=this.br.options.controls[e];return t.visible?t.template?"<li>".concat(t.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(t.className,'" title="').concat(t.label,'">\n <div class="icon icon-').concat(t.iconClassName,'"></div>\n <span class="tooltip">').concat(t.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(t){return e.controlFor(t)})).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,n=t.options.controls.viewmode,r=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(e){return!n.excludedModes.includes(e.mode)})),i=r.map((function(e){return e.mode}));n.excludedModes.includes(t.mode)&&t.switchMode(i[0]);for(var s=i.indexOf(t.mode),u=0;u<=s;u++)i.push(i.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(o.PostInit,(function(){var o=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(e){return e.mode===o})),u=r.find((function(e){return e.mode===i[0]}));i.push(o),t.viewModeOrder=i,e.updateViewModeButton(a(n.currentTarget),u.className,u.title),t.switchMode(s.mode)})),s=r.find((function(e){return e.mode===i[0]}));e.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).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(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,i=r?"book_flip_next":"book_flip_prev",o=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(i),this.br.options.controls.bookRight.className="book_right ".concat(o),t.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavDesktop">\n '.concat(n?'<div class="BRnavTitle">'.concat(n,"</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),t.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.book.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return s.on("slide",(function(t,n){return e.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return e.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):t.jumpToIndex(r.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.book.getPageNum(e),r=(t.book.getPageProp(e,"pageType"),t.book.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=t.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(e,t,n,r,i){if("n"==n[0])return"(".concat(e+1," of ").concat(t,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(e,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function d(e,t,n){return(d=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&v(i,n.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(489),n(2419),n(1532);var m={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},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(o,e);var t,n,r,i=(t=o,n=p(),function(){var e,r=g(t);if(n){var i=g(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return h(this,e)});function o(){return l(this,o),i.apply(this,arguments)}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r}(f(Error)),b=n(105),w=(n(4581),n(3609));function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t}var t,n;return t=e,(n=[{key:"buildToolbarElement",value:function(){var e=this.br,t=e.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(e.logoURL,'"></a>\n </span>'):"";e.refs.$BRtoolbar=w('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(t,'\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=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return e.bookUrl&&e.options.enableBookTitleLink?n.append(w("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle),e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var n=this.br;n.refs.$br.append(this.buildToolbarElement()),n.$(".BRnavCntl").addClass("BRup"),n.$(".pause").hide(),n.refs.$BRtoolbar.append(),n.canSwitchToMode(n.constMode2up)||n.$(".two_page_mode, .play, .pause").hide(),n.canSwitchToMode(n.constModeThumb)||n.$(".thumbnail_mode").hide(),n.canSwitchToMode(n.constMode2up)||n.canSwitchToMode(n.constModeThumb)||n.$(".one_page_mode").hide(),w('<div style="display: none;"></div>').append(w('\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(w('\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(n.refs.$br),n.$(".BRinfo .BRfloatTitle a").attr({href:n.bookUrl}).text(n.bookTitle).addClass("title"),this.buildInfoDiv(n.$(".BRinfo")),this.buildShareDiv(n.$(".BRshare")),n.$(".share").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRshare"),onLoad:function(){n.trigger(o.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(o.stop)}})}},{key:"buildShareDiv",value:function(e){var t=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=w('\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(e),a.find(".fieldset-embed input").on("change",(function(e){var t=w(e.target).parents("form").first(),r={};r.mode=w(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&t.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(e){return e.target.select()})),a.find(".facebook-share-button").on("click",(function(){P("https://www.facebook.com/sharer.php?"+w.param({u:t._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){P("https://twitter.com/intent/tweet?"+w.param({url:t._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var e="".concat(n.bookTitle,"\n\n").concat(t._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(e))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(e)}},{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 t=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=w('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(w('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,r.escapeHTML)(t.bookTitle),'" />\n </div>')));var i,o=w('<div class="BRinfoRightCol">'),a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,h=s.value,f="Title"===l?(0,r.escapeHTML)(h):h;o.append(w('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(f,"</div>\n </div>")))}}catch(e){a.e(e)}finally{a.f()}var d=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;d&&t.bookUrl&&o.append(w('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,r.escapeHTML)(d),"\n </a>\n </div>\n </div>")));var p=w('<div class="BRfloatFoot BRinfoFooter"></div>'),v=w('<div class="BRinfoW mv20-lg">').append([n,o,w('<br style="clear:both"/>')]);e.append(v,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var e=this.br.refs.$BRtoolbar;return e&&"block"===e.css("display")?e.outerHeight()+parseInt(e.css("top")):0}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function P(e,t,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-t/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(2707),n(4553),n(6535),n(9244);var O=function(){function e(t){var n,r,i,o;C(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:m.ppi,this.pageProgression=null!==(i=null===(o=t.options)||void 0===o?void 0:o.pageProgression)&&void 0!==i?i:m.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null}return R(e,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=S(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var i=e.value;t.push(i.widthInches),n.push(i.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(),n.sort(),this._medianPageSize={width:t[Math.floor(t.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,r.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,r.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(t)}},{key:"getPageIndex",value:function(e){var t=this.getPageIndices(e);return t.length?t[t.length-1]:void 0}},{key:"getPageIndices",value:function(e){var t=[];if("n"==e.slice(0,1))try{var n=e.slice(1,e.length),r=parseInt(n);return t.push(r),t}catch(e){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==e&&t.push(i);return t}},{key:"getPageName",value:function(e){return"Page "+this.getPageNum(e)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(e){return this.getPageProp(e,"width")}},{key:"getPageHeight",value:function(e){return this.getPageProp(e,"height")}},{key:"getPageURI",value:function(e,t,n){return this.getPageProp(e,"viewable",!0)?this.getPageProp(e,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(e){return this.getPageProp(e,"pageSide")||(e%2==0?"R":"L")}},{key:"getPageNum",value:function(e){var t=this.getPageProp(e,"pageNum");return void 0===t?"n".concat(e):t}},{key:"getPageProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(e,t,n)}},{key:"getSpreadIndices",value:function(e){return"rl"==this.pageProgression?"R"==this.getPageSide(e)?[e+1,e]:[e,e-1]:"L"==this.getPageSide(e)?[e,e+1]:[e-1,e]}},{key:"leafNumToIndex",value:function(e){var t=this._getDataFlattened().findIndex((function(t){return t.leafNum==e}));return t>-1?t:e}},{key:"parsePageString",value:function(e){var t,n=/^leaf(\d+)/.exec(e);return n?null===(t=this.leafNumToIndex(parseInt(n[1],10)))&&(t=void 0):t=this.getPageIndex(e),t}},{key:"getPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(t||!(e<0||e>=n))return e<0&&e>=-n&&(e+=n),new A(this,e%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.start,r=void 0===n?0:n,i=t.end,o=void 0===i?1/0:i,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){e.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){e.next=8;break}return e.abrupt("continue",10);case 8:return e.next=10,c;case 10:u++,e.next=4;break;case 13:case"end":return e.stop()}}),e,this)}))},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var e=null,t=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=i.pageSide,!1===i.viewable?i.unviewablesStart=null===t?t=n:t:t=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened(),i=isNaN(e)||e<0||e>=r.length;return i||void 0===r[e][t]?n:r[e][t]}}]),e}(),A=function(){function e(t,n){C(this,e),this.ppi=t._getDataProp(n,"ppi",t.ppi),this.book=t,this.index=n,this.width=t.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=t.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=t.getPageSide(n),this.leafNum=t._getDataProp(n,"leafNum",this.index),this.isViewable=t._getDataProp(n,"viewable",!0),this.unviewablesStart=t._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return R(e,[{key:"makeViewable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=e)if(e){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var t,n=S(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(e){n.e(e)}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(e){o.e(e)}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(e){var t="lr"===this.book.pageProgression?this.index-e:this.index+e;return this.book.getPage(t)}},{key:"goRight",value:function(e){var t="lr"===this.book.pageProgression?this.index+e:this.index-e;return this.book.getPage(t)}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(e),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(e){return"".concat(t.getURI(e,n)," ").concat(i/e,"x")})).join(", ")}},{key:"findNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new e(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new e(this.book,this.index-1)}}},{key:"findLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:n}):this.findNext({combineConsecutiveUnviewables:n})}},{key:"findRight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:n}):this.findPrev({combineConsecutiveUnviewables:n})}}]),e}(),I=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(3371),n(9653),n(9089)),M=n(871),j=(n(189),n(4817)),$=n(5756);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=(0,$.XM)(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=F(r);if(i){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function a(e){var t,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),e.type!==$.pX.ATTRIBUTE||"style"!==e.name||(null===(n=e.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 U(t)}return t=a,(n=[{key:"render",value:function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return null==r?t:t+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(e,t){var n=this,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],i=e.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(e){null==r[e]&&(n.vt.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")})),r){var s=r[a];null!=s&&(this.vt.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return j.Jb}}])&&N(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}($.Xe)),W=(n(2420),n(840)),H=n.n(W);function V(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){V(o,r,i,a,s,"next",e)}function s(e){V(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"_preventEvent",(function(e){return e.preventDefault(),!1})),X(this,"_pinchStart",(function(){var e,t;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(e=(t=n.mode).detachScrollListeners)||void 0===e||e.call(t)})),X(this,"_pinchMove",function(){var e=q(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.lastEvent=t,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(e){return r=e})),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 e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),X(this,"_pinchEnd",q(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.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===(t=(r=n.mode).attachScrollListeners)||void 0===t||t.call(r);case 8:case"end":return e.stop()}}),e)})))),X(this,"_pinchCancel",q(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._pinchEnd();case 2:case"end":return e.stop()}}),e)})))),X(this,"_handleCtrlWheel",(function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(e.deltaY)*t}})),this.mode=t,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete H().defaults.cssProps.userSelect,this.hammer=new(H().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(H().Pinch))}var t,n;return t=e,(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(e){var t=e.clientX,n=e.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(e,t){var n=this.mode.$container,r=n.scrollTop,i=n.scrollLeft,o=this.mode.htmlDimensionsCacher.clientWidth,a=this.mode.htmlDimensionsCacher.clientHeight,s=e/t,u=this.mode.scaleCenter.x,c=this.mode.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o}}])&&Y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Z(this,"clientWidth",100),Z(this,"clientHeight",100),Z(this,"boundingClientRect",{top:0,left:0}),Z(this,"updateClientSizes",(function(){var e=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=e.top,n.boundingClientRect.left=e.left})),Z(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=t}var t,n;return t=e,(n=[{key:"attachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&K(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ee=function(){function e(t,n){var r,i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(){o.element.classList.add(o.className),clearTimeout(o.timeout),o.timeout=setTimeout((function(){o.element.classList.remove(o.className)}),600)},(r="onScroll")in this?Object.defineProperty(this,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[r]=i,this.element=t,this.className=n,this.timeout=null}var t,n;return t=e,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&Q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie,oe=ne((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),re(this,"screenDPI",(0,r.calcScreenDPI)()),re(this,"worldUnitsToRenderedPixels",(function(e){return e*n.screenDPI})),re(this,"renderedPixelsToWorldUnits",(function(e){return e/n.screenDPI})),re(this,"renderedPixelsToVisiblePixels",(function(e){return e*n.mode.scale})),re(this,"visiblePixelsToRenderedPixels",(function(e){return e/n.mode.scale})),re(this,"worldUnitsToVisiblePixels",(function(e){return n.renderedPixelsToVisiblePixels(n.worldUnitsToRenderedPixels(e))})),re(this,"visiblePixelsToWorldUnits",(function(e){return n.renderedPixelsToWorldUnits(n.visiblePixelsToRenderedPixels(e))})),this.mode=t}));function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e){return function(e){if(Array.isArray(e))return be(e)}(e)||we(e)||ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(){he=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!pe(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||we(t)||ye(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=me(e.key),r=String(e.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=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"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=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ge(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=ge(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function fe(e){var t,n=me(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function de(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function pe(e){return e.decorators&&e.decorators.length}function ve(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ge(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function me(e){var t=function(e,t){if("object"!==ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===ae(t)?t:String(t)}function ye(e,t){if(e){if("string"==typeof e)return be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function we(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _e(){return(_e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ke(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ke(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xe(e)););return e}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e,t,n,r){var i=he(),o=t((function(e){i.initializeInstanceElements(e,a.elements)}),n),a=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(ve(o.descriptor)||ve(i.descriptor)){if(pe(o)||pe(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(pe(o)){if(pe(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}de(o,i)}else t.push(o)}return t}(o.d.map(fe)),e);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,I.Mo)("br-mode-1up")],(function(e,t){var n=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(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(e){return!1}}(),function(){var e,t=xe(r);if(i){var n=xe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ce(this,e)});function a(t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(le(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new oe(this)}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,I.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,I.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,I.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 e=this.coordSpace.worldUnitsToRenderedPixels;return{width:e(this.worldDimensions.width)+"px",height:e(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,I.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new J(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new G(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new ee(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(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),i&&setTimeout((function(){return t.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(e){_e(xe(n.prototype),"firstUpdated",this).call(this,e),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e);this.scale=this.computeDefaultScale(t)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&this.updatePages(),e.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),e.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),e.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled())),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,t),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){_e(xe(n.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(),_e(xe(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e,t,n=this;return(0,M.dy)(ie||(e=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],t||(t=e.slice(0)),ie=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),z(this.worldStyle),this.renderedPages.map((function(e){return n.renderPage(e)})))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,i=e.coordSpace.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),o=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(i-t.widthInches)/2),u=e.pageTops[t.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=e.createPageContainer(t).update({dimensions:{width:o,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",e.visiblePages.includes(t)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,i=e.htmlDimensionsCacher.clientHeight,o=e.coordSpace.visiblePixelsToWorldUnits;e.visibleRegion={top:o(t),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(se(this.visiblePages),[null===(t=this.visiblePages[this.visiblePages.length-1])||void 0===t?void 0:t.next]).filter((function(e){return e})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,r.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},i=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ye(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+t}}catch(e){o.e(e)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.coordSpace.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,t/(e.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,se(this.pages.map((function(e){return e.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(this.pages.map((function(e){return e.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var e=this;return this.pages.filter((function(t){var n=e.pageTops[t.index],r=n+t.heightInches,i=e.visibleRegion.top;return n<=i+e.visibleRegion.height&&r>=i}))}},{kind:"field",key:"attachScrollListeners",value:function(){var e=this;return function(){e.addEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var e=this;return function(){e.removeEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.detach()}}}]}}),M.oi),Se=n(3609);function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){return e.split(" ").map((function(e){return e+t})).join(" ")}function Oe(e){var t,n;return void 0!==e.clientX?(t=e.clientX,n=e.clientY):void 0!==e.screenX?(t=e.screenX,n=e.screenY):void 0!==e.targetTouches?(t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY):void 0===e.originalEvent?console.error("don't understand x and y for "+e.type,e):void 0!==e.originalEvent.clientX?(t=e.originalEvent.clientX,n=e.originalEvent.clientY):void 0!==e.originalEvent.screenX?(t=e.originalEvent.screenX,n=e.originalEvent.screenY):void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches[0].pageX,n=e.originalEvent.targetTouches[0].pageY),{left:t,top:n}}var Ae={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Ie=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ee(this,e),Te(this,"_dragStartHandler",(function(e){return!!n._shouldAbort()||!(e.which>1||!n.settings.acceptPropagatedEvent&&e.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=Oe(e),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(e){n.handling_element[0].addEventListener(e,n._dragEndHandler,!0)})),n.settings.preventDefault?(e.preventDefault(),!1):void 0)})),Te(this,"_dragContinueHandler",(function(e){if(n._shouldAbort())return!0;var t=Oe(e),r=t.left-n.lastCoord.left,i=t.top-n.lastCoord.top,o=n.settings.scrollWindow?Se(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0})),Te(this,"_dragEndHandler",(function(e){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(e){n.handling_element[0].removeEventListener(e,n._dragEndHandler,!0)}));var t={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(t.left,t.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1):void 0})),this.handling_element=Se(t),this.settings=Se.extend({},Ae,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=Re(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=Re(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var t,n;return t=e,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Me=n(3609);function je(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function $e(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){je(o,r,i,a,s,"next",e)}function s(e){je(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var De,Ne,Be,Ue,Fe,ze,We,He,Ve=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode1UpLit=new Pe(n,t),this.$el=Me(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var t,n;return t=e,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout($e(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=7;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.next=6,e.mode1UpLit.updateComplete;case 6:new Ie(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:e.mode1UpLit.jumpToIndex(t),setTimeout((function(){e.mode1UpLit.updateVisibleRegion()}));case 9:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){var i=Math.abs(this.br.currentIndex()-e),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(e,{smooth:o})}},{key:"zoom",value:function(e){switch(e){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&Le(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qe=(n(4723),n(3609));function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ge(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ge(o,r,i,a,s,"next",e)}function s(e){Ge(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rt(this,n)}}function rt(e,t){if(t&&("object"===Ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}function it(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ot(e,t,n,r){var i=at();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=t((function(e){i.initializeInstanceElements(e,s.elements)}),n),s=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(lt(o.descriptor)||lt(i.descriptor)){if(ct(o)||ct(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(ct(o)){if(ct(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}ut(o,i)}else t.push(o)}return t}(a.d.map(st)),e);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}function at(){at=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ct(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||vt(t)||dt(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=ft(e.key),r=String(e.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=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"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=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ht(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=ht(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function st(e){var t,n=ft(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function ut(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function ct(e){return e.decorators&&e.decorators.length}function lt(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ht(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function ft(e){var t=function(e,t){if("object"!==Ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Ye(t)?t:String(t)}function dt(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function gt(){return(gt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=mt(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function mt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=yt(e)););return e}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=ot([(0,I.Mo)("br-mode-2up")],(function(e,t){var n,i,o=function(t){et(r,t);var n=nt(r);function r(t,i){var o;return Qe(this,r),o=n.call(this),e(it(o)),o.book=t,o.br=i,o}return Je(r)}(t);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new oe(this)}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,I.Cb)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,I.IO)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find((function(e){return"L"==e.pageSide}))}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find((function(e){return"R"==e.pageSide}))}},{kind:"field",decorators:[(0,I.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,I.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(e){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(e){return e.widthInches*this.computePageHeight(e)/e.heightInches}},{kind:"method",key:"computePositions",value:function(e,t){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==e?void 0:e.index)&&void 0!==n?n:0:e?s-e.index:0,l=this._leftCoverWidth+c*this.PAGE_THICKNESS_IN,h=l,f=a(e||t.right),d=l-f,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,_=t?a(t):0,k=w+_,x="lr"==this.book.pageProgression?t?s-t.index:0:null!==(i=null==t?void 0:t.index)&&void 0!==i?i:0,P=k,S="right"!=(null===(o=this.activeFlip)||void 0===o?void 0:o.direction)?0:u,E=P+S,C=Math.ceil(x/2)*this.PAGE_THICKNESS_IN-S,T=P+C+S;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:g,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:m,pageLeftStart:d,pageLeftWidth:f,pageLeftEnd:h,gutter:l,pageRightStart:w,pageRightWidth:_,pageRightEnd:k,leafEdgesRightStart:P,leafEdgesRightMovingWidth:S,leafEdgesRightMainStart:E,leafEdgesRightMainWidth:C,leafEdgesRightEnd:T,leafEdgesRightFullWidth:S+C,spreadWidth:k-d,bookWidth:T-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new J(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new G(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=Ke(regeneratorRuntime.mark((function e(t){var n,r,i,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=n.smooth,i=void 0===r||r,e.next=3,this.flipAnimation(t,{animate:i});case 3:case"end":return e.stop()}}),e,this)}))),function(e){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(e){gt(yt(o.prototype),"firstUpdated",this).call(this,e),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){gt(yt(o.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),gt(yt(o.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),e.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),e.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),e.has("scale")){var t=e.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,t)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,M.dy)(De||(De=Xe(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map((function(t){return e.renderPage(t)})),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e),n=t.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter((function(e){return e})),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(t),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,i=n(e.computePageWidth(t)),o=n(e.computePageHeight(t)),a=e.visiblePages.map((function(e){return e.index})).includes(t.index),s=e.computePositions(t.spread.left,t.spread.right),u=e.createPageContainer(t).update({dimensions:{width:i,height:o,top:0,left:n("L"==t.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:t.width/r(e.computePageWidth(t))}).$container[0];return u.classList.toggle("BRpage-visible",a),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var e=this;return function(t){var n;if(!e.visiblePages.length)return(0,M.dy)(Ne||(Ne=Xe([""])));if(!("left"==t?e.positions.leafEdgesLeftFullWidth:e.positions.leafEdgesRightFullWidth))return(0,M.dy)(Be||(Be=Xe([""])));var r=e.coordSpace.worldUnitsToRenderedPixels,i=r(e.computePageHeight(e.visiblePages[0])),o=(null===(n=e.activeFlip)||void 0===n?void 0:n.direction)==t,a=e.book.getPage("lr"==e.book.pageProgression?0:e.book.getNumLeafs()-1),s=e.book.getPage("lr"==e.book.pageProgression?e.book.getNumLeafs()-1:0),u=o?e.activeFlip.pagesFlippingCount:0,c="left"==t?[a.index,e.pageLeft.goLeft(u).index]:[e.pageRight.goRight(u).index,s.index],l={width:"".concat(r("left"==t?e.positions.leafEdgesLeftMainWidth:e.positions.leafEdgesRightMainWidth),"px"),height:"".concat(i,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftStart:e.positions.leafEdgesRightMainStart),"px")},h=(0,M.dy)(Ue||(Ue=Xe(["\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],e.book,(function(t){return e.br.jumpToIndex(t)}),t,t,z(l));if(o){var f=r("left"==t?e.positions.leafEdgesLeftMovingWidth:e.positions.leafEdgesRightMovingWidth),d={width:"".concat(f,"px"),height:"".concat(i,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftMovingStart:e.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==t?e.positions.pageLeftWidth:-e.positions.pageRightWidth)+f/2,"px 0")},p=(0,M.dy)(Fe||(Fe=Xe(["\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 "])),e.activeFlip.pagesFlipping[0],e.activeFlip.pagesFlipping[1],e.book,t,t,z(d));return"left"==t?(0,M.dy)(ze||(ze=Xe(["","",""])),h,p):(0,M.dy)(We||(We=Xe(["","",""])),p,h)}return h}}},{kind:"method",key:"resizeViaAutofit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(e,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],t=this.computeTranslate(e,this.scale);this.$book.style.transform="translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t,n,r,i,o,a;return[null===(e=this.visiblePages[0])||void 0===e||null===(t=e.prev)||void 0===t?void 0:t.prev,null===(n=this.visiblePages[0])||void 0===n?void 0:n.prev].concat((a=this.visiblePages,function(e){if(Array.isArray(e))return pt(e)}(a)||vt(a)||dt(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(e){return e})).slice(0,10)}},{kind:"method",key:"computeScale",value:function(e,t){if(!e)return 1;var n=e.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"==t)u=Math.min(a,1);else if("height"==t)u=Math.min(s,1);else if("auto"==t)u=Math.min(a,s,1);else{if("none"!=t)throw new Error("Invalid autoFit value: ".concat(t));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!e)return{x:0,y:0};var n=e.spread,r=this.computePositions(n.left,n.right),i=r.bookWidth,o=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(i)*t,s=this.coordSpace.worldUnitsToRenderedPixels(o)*t,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*t,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:(n=Ke(regeneratorRuntime.mark((function e(t){var n,i,o,a,s,u,c,l,h,f,d,p,v,g,m,y,b,w,_,k,x,P,S,E,C,T,R,O,A,I,M=this,j=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=j.length>1&&void 0!==j[1]?j[1]:{},c=u.animate,l=void 0===c||c,h=null===(n=this.pageLeft||this.pageRight)||void 0===n?void 0:n.spread){e.next=4;break}return e.abrupt("return");case 4:if(t=this.parseNextSpread(t),!this.activeFlip&&t){e.next=7;break}return e.abrupt("return");case 7:if(f=this.book.pageProgression,d=null!==(i=null===(o=h.left)||void 0===o?void 0:o.index)&&void 0!==i?i:"lr"==f?-1:this.book.getNumLeafs(),p=null!==(a=null===(s=t.left)||void 0===s?void 0:s.index)&&void 0!==a?a:"lr"==f?-1:this.book.getNumLeafs(),d!=p){e.next=12;break}return e.abrupt("return");case 12:v=this.renderedPages.map((function(e){return e.index})),g=[],m=0,y=[t.left,t.right];case 15:if(!(m<y.length)){e.next=24;break}if(b=y[m]){e.next=19;break}return e.abrupt("continue",21);case 19:g.push(this.createPageContainer(b)),v.includes(b.index)||this.renderedPages.push(b);case 21:m++,e.next=15;break;case 24:if(w=this.computeTranslate(h.left||h.right,this.scale),_=this.computeTranslate(t.left||t.right,this.scale),k=Math.sqrt(Math.pow(_.x-w.x,2)+Math.pow(_.y-w.y,2)),x="translate(".concat(_.x,"px, ").concat(_.y,"px)"),k<50&&(S=null===(P=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===P?void 0:P[0])&&(x=S),E="".concat(x," scale(").concat(this.scale,")"),!l||!("animate"in Element.prototype)){e.next=57;break}return C="lr"==f?p>d?"right":"left":p>d?"left":"right",this.activeFlip={direction:C,pagesFlipping:[d,p],pagesFlippingCount:Math.abs(p-d)},this.classList.add("br-mode-2up--flipping-".concat(C)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.next=38,this.updateComplete;case 38:return this.visiblePages.map((function(e){return M.pageContainerCache[e.index].$container})).forEach((function(e){return e.addClass("BRpage-exiting")})),g.forEach((function(e){return e.$container.addClass("BRpage-entering")})),T={duration:this.flipSpeed+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},R=this.$book.animate([{transform:E}],T),O=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==C?"rotateY(-180deg)":"rotateY(180deg)"}],T),A="left"==C?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],T):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],T),I="left"==C?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],T):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],T),R.play(),O.play(),A.play(),I.play(),g.forEach((function(e){return e.$container.addClass("BRpage-visible")})),e.next=52,Promise.race([(0,r.promisifyEvent)(R,"finish"),(0,r.promisifyEvent)(O,"finish"),(0,r.promisifyEvent)(A,"finish"),(0,r.promisifyEvent)(I,"finish")]);case 52:this.classList.remove("br-mode-2up--flipping-".concat(C)),this.classList.remove("BRpageFlipping"),this.visiblePages.map((function(e){return M.pageContainerCache[e.index].$container})).forEach((function(e){return e.removeClass("BRpage-exiting BRpage-visible")})),g.forEach((function(e){return e.$container.removeClass("BRpage-entering")})),this.activeFlip=null;case 57:this.$book.style.transform=E,this.visiblePages=("lr"==f?[t.left,t.right]:[t.right,t.left]).filter((function(e){return e}));case 59:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(e){"next"==e?e="lr"==this.book.pageProgression?"right":"left":"prev"==e&&(e="lr"==this.book.pageProgression?"left":"right");var t,n,r=(this.pageLeft||this.pageRight).spread;if("left"==e)e=null===(t=r.left)||void 0===t||null===(n=t.findLeft({combineConsecutiveUnviewables:!0}))||void 0===n?void 0:n.spread;else if("right"==e){var i,o;e=null===(i=r.right)||void 0===i||null===(o=i.findRight({combineConsecutiveUnviewables:!0}))||void 0===o?void 0:o.spread}return"number"==typeof e&&(e=this.book.getPage(e).spread),e instanceof A&&(e=e.spread),e}},{kind:"field",key:"handlePageClick",value:function(){var e=this;return function(t){if(3==t.which&&e.br.protected)return!1;if(1==t.which){var n=qe(t.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?e.flipAnimation("left"):"R"==n.data("side")&&e.flipAnimation("right"))}}}}]}}),M.oi),wt=(ot([(0,I.Mo)("br-leaf-edges")],(function(e,t){var n=function(t){et(r,t);var n=nt(r);function r(){var t;Qe(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n.call.apply(n,[this].concat(o)),e(it(t)),t}return Je(r)}(t);return{F:n,d:[{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,I.Cb)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,I.Cb)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,I.Cb)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,I.IO)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,I.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,M.dy)(He||(He=Xe(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),z({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){gt(yt(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(){gt(yt(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 e=this;return function(t){e.addEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="block",e.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var e=this;return function(t){e.$hoverBar.style.left="".concat(t.offsetX,"px"),"right"==e.side?e.$hoverLabel.style.left="".concat(t.offsetX,"px"):e.$hoverLabel.style.right="".concat(e.offsetWidth-t.offsetX,"px"),e.$hoverLabel.style.top="".concat(t.offsetY,"px");var n=e.mouseEventToPageIndex(t);e.$hoverLabel.textContent=e.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var e=this;return function(t){e.removeEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="none",e.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var e=this;return function(t){e.pageClickHandler(e.mouseEventToPageIndex(t))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(e){return Math.floor(this.leftIndex+e.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}}),M.oi),n(3609));function _t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function kt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){_t(o,r,i,a,s,"next",e)}function s(e){_t(o,r,i,a,s,"throw",e)}a(void 0)}))}}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode2UpLit=new bt(n,t),this.mode2UpLit.flipSpeed=t.flipSpeed,this.$el=wt(this.mode2UpLit).attr("autoFit",this.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),this.everShown=!1}var t,n;return t=e,(n=[{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(kt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=9;break}return e.mode2UpLit.initFirstRender(t),e.everShown=!0,e.mode2UpLit.requestUpdate(),n.next=6,e.mode2UpLit.updateComplete;case 6:new Ie(e.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.next=12;break;case 9:return n.next=11,e.mode2UpLit.jumpToIndex(t,{smooth:!1});case 11:e.resizePageView();case 12:e.mode2UpLit.style.opacity="1";case 13:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){this.mode2UpLit.jumpToIndex(e)}},{key:"zoom",value:function(e){switch(e){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{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()}}])&&xt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),St=n(3609);function Et(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Rt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n}var t,n;return t=e,(n=[{key:"drawLeafs",value:function(e){var t,n,i,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,h=0,f=0,d=0,p=0,v=[],g=Et(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(i=g.n()).done;){var m=i.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},(t=s(m.height*this.br.thumbWidth/m.width))>v[d].height&&(v[d].height=t),0===p&&(h+=this.br.thumbPadding+v[d].height),(l+=y+this.br.thumbPadding)>f&&(f=l),p++,m.index==e&&(n=h-this.br.thumbPadding-v[d].height)}}catch(e){g.e(e)}finally{g.f()}this.br.refs.$brPageViewEl.height(h);var b=s((this.br.refs.$brContainer.prop("scrollWidth")-f)/2)-14;void 0!==n&&this.br.refs.$brContainer.scrollTop(n);for(var w=this.br.refs.$brContainer.prop("scrollTop"),_=w+this.br.refs.$brContainer.height(),k=0,x=0,P=[],S=[],E=u.getNumLeafs()-1,C=0,T=0;T<v.length;T++)v[T]&&(x+=this.br.thumbPadding+v[T].height,(k>=w&&k<=_||x>=w&&x<=_||k<=w&&x>=_)&&(P.push(T),v[T].leafs[0].num<E&&(E=v[T].leafs[0].num),v[T].leafs[v[T].leafs.length-1].num>C&&(C=v[T].leafs[v[T].leafs.length-1].num)),k>v[T].top&&(v[T].top=k),k=x);for(var R=P[0],O=P[P.length-1],A=1;A<this.br.thumbRowBuffer+1;A++)O+A<v.length&&P.push(O+A);for(var I=1;I<this.br.thumbRowBuffer;I++)R-I>=0&&P.push(R-I);P.sort();for(var M=0,j=P;M<j.length;M++){var $=j[M];if((0,r.notInArray)($,this.br.displayedRows)){if(!v[$])continue;var L,D=Et(v[$].leafs);try{var N=function(){var e=L.value,t=e.num,n=e.left,r=a.br.thumbWidth,i=s(u.getPageHeight(t)*a.br.thumbWidth/u.getPageWidth(t)),l=v[$].top,h=n+b;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,S.push(t);var f=s(u.getPageWidth(t)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(t).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",t).on("mouseup",(function(e){a.br.updateFirstIndex(t,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var n=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(n),a.br._components.navbar.updateViewModeButton(St(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),e.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(L=D.n()).done;)N()}catch(e){D.e(e)}finally{D.f()}}}var B,U=Et(this.br.displayedRows);try{for(U.s();!(B=U.n()).done;){var F=B.value;if((0,r.notInArray)(F,P)){var z,W,H=Et(null===(z=v[F])||void 0===z?void 0:z.leafs);try{for(H.s();!(W=H.n()).done;){var V,q=W.value.num;null!=S&&S.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(e){H.e(e)}finally{H.f()}}}}catch(e){U.e(e)}finally{U.f()}var Y=this.br.currentIndex();Y<E?this.br.updateFirstIndex(E):Y>C&&this.br.updateFirstIndex(C),this.br.displayedRows=P.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(e){var t=St(e).data("leaf"),n=St(e).data("reduce"),r=this.br.imageCache.image(t,n),i=St(e).parent();St(i).append(r),St(e).remove()}},{key:"zoom",value:function(e){var t=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,r.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=t&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(e){var t=(e+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-t)/(e+.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=St("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Ie(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(e){for(var t=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,h=0;h<=e;h++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var f=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));f>c&&(c=f),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(e),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(){t.br.animating=!1})))}}])&&Tt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ot=(n(4914),{floor:Math.floor,decr:function(e){return e-1}}),At={floor:function(e){return Math.pow(2,Math.floor(Math.log2(Math.max(1,e))))},decr:function(e){return Math.pow(2,Math.log2(e)-1)}},It={pow2:At,integer:Ot},Mt=n(3609);function jt(e){return function(e){if(Array.isArray(e))return $t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nt=function(){function e(t){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?At:o;Lt(this,e),this.book=t,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var t,n;return t=e,(n=[{key:"image",value:function(e,t){var n=(this.cache[e]||[]).filter((function(e){return e.loaded&&e.reduce<=t}));if(n.length){var r=Math.max.apply(Math,jt(n.map((function(e){return e.reduce}))));return this._serveImageElement(e,r)}return this._serveImageElement(e,t)}},{key:"imageLoaded",value:function(e,t){var n,r,i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce<=t}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(t=this.cache[e])||void 0===t?void 0:t.filter((function(e){return e.loaded})))||[];if(!r.length)return null;var i=r.filter((function(e){return e.reduce>=n}));if(i.length)return Math.min.apply(Math,jt(i.map((function(e){return e.reduce}))));var o=r.filter((function(e){return e.reduce<n}));return Math.max.apply(Math,jt(o.map((function(e){return e.reduce}))))}},{key:"_serveImageElement",value:function(e,t){var n,r=this.reduceSet.floor(t),i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(i));var o=this.book.getPage(e),a=Mt("<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}}])&&Dt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Bt=n(9860),Ut=n(3609),Ft=n(3609);function zt(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zt(o,r,i,a,s,"next",e)}function s(e){zt(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ft.extend(!0,{},Vt.defaultOptions,e,Vt.optionOverrides);this.setup(t)}function qt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(e){return e.br},a=function(e){return e._overrideable[t]};i(e,n,o,Vt,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&Ut((function(){return(new b.E).init()})),Vt.version="5.0.0-60",Vt.constMode1up=1,Vt.constMode2up=2,Vt.constModeThumb=3,Vt.imageCache=null,Vt.constNavAnimationDuration=300,Vt.constResizeAnimationDuration=100,Vt.eventNames=o,Vt.defaultOptions=m,Vt.optionOverrides={},Vt.prototype.setup=function(e){this.options=e,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Vt.constMode1up,this.constMode2up=Vt.constMode2up,this.constModeThumb=Vt.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=It[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=It[m.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed="number"==typeof e.flipSpeed?e.flipSpeed:{fast:200,slow:600}[e.flipSpeed]||400,this.flipDelay=e.flipDelay,this.firstIndex=null,this.isFullscreenActive=e.startFullscreen||!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,this.refs={},this.book=new O(this),e.getNumLeafs&&(this.book.getNumLeafs=e.getNumLeafs.bind(this)),e.getPageWidth&&(this.book.getPageWidth=e.getPageWidth.bind(this)),e.getPageHeight&&(this.book.getPageHeight=e.getPageHeight.bind(this)),e.getPageURI&&(this.book.getPageURI=e.getPageURI.bind(this)),e.getPageSide&&(this.book.getPageSide=e.getPageSide.bind(this)),e.getPageNum&&(this.book.getPageNum=e.getPageNum.bind(this)),e.getPageProp&&(this.book.getPageProp=e.getPageProp.bind(this)),e.getSpreadIndices&&(this.book.getSpreadIndices=e.getSpreadIndices.bind(this)),e.leafNumToIndex&&(this.book.leafNumToIndex=e.leafNumToIndex.bind(this)),this._components={navbar:new u(this),toolbar:new x(this)},this._modes={mode1Up:new Ve(this,this.book),mode2Up:new Pt(this,this.book),modeThumb:new Rt(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 Nt(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},Vt.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map((function(e){return e.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(e){return e.$container[0]})));return this.mode==this.constModeThumb&&(e=e.concat(this.$(".BRpagecontainer").toArray())),e},Vt.prototype.getActivePageContainerElementsForIndex=function(e){var t,n,r,i,o;return[null===(t=this._modes.mode2Up.mode2UpLit.pageContainerCache[e])||void 0===t||null===(n=t.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[],function(e){if(Array.isArray(e))return Ht(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):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(e){return e}))},Object.defineProperty(Vt.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Vt.util=r,Vt.prototype.extendParams=function(e,t){var n=Ut.extend({},t);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Ut.extend(e,n)},Vt.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 t=this.paramsFromFragment(this.defaults);void 0!==t.page&&(e.pageFound=!0),this.extendParams(e,t)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(e.index!==n&&(e.fragmentChange=!0),e.index=n)}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=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},Vt.prototype.getLocationSearch=function(){return window.location.search},Vt.prototype.getLocationHash=function(){return window.location.hash},Vt.prototype.readQueryString=function(){var e=this.getLocationSearch();if(e)return e;var t=this.getLocationHash(),n=t.search(/\?\w+=/);return n>-1?t.slice(n):""},Vt.prototype.getInitialMode=function(e){var t,n=Ut(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(t=e.mode?e.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),this.options.defaults)try{t=function(e){var t={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(e in t))throw new y("Invalid mode string: ".concat(e));return t[e]}(this.options.defaults)}catch(e){}return t},Vt.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Ut(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=Ut("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(e){e.data.lastScroll=(new Date).getTime(),e.data.constModeThumb==e.data.mode&&e.data.drawLeafsThrottled()})),this.options.autoResize&&(Ut(window).on("resize",this,(function(e){e.data.resize()})),Ut(window).on("orientationchange",this,function(e){e.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(Vt.eventNames.PostInit)},Vt.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Ut(document).trigger(n,t)},Vt.prototype.bind=function(e,t){Ut(document).on("BookReader:"+e,t)},Vt.prototype.unbind=function(e,t){Ut(document).off("BookReader:"+e,t)},Vt.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(Vt.eventNames.resize))},Vt.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(t){if(e.hasKeyFocus&&!(t.getModifierState("Control")||t.getModifierState("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||r.isInputActive()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":e.constMode2up===e.mode&&(t.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(t.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(t.preventDefault(),e.right());break;case"-":case"Subtract":t.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":t.preventDefault(),e.zoom(1);break;case"F":case"f":t.preventDefault(),e.toggleFullscreen()}}))},Vt.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Vt.prototype._createPageContainer=function(e){return new Bt._z(this.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},Vt.prototype.bindGestures=function(e){var t=this,n=1;e.unbind("touchmove").bind("touchmove",(function(e){e.originalEvent.cancelable&&(n=e.originalEvent.touches.length),e.stopPropagation()})),e.unbind("gesturechange").bind("gesturechange",(function(e){e.preventDefault(),2!==n||(new Date).getTime()-t.lastScroll<500||(e.originalEvent.scale>1.5?t.zoom(1):e.originalEvent.scale<.6&&t.zoom(-1))}))},Vt.prototype.drawLeafsThrottled=r.throttle(Vt.prototype.drawLeafs,250),Vt.prototype.zoom=function(e){var t;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},Vt.prototype.resizeBRcontainer=function(e){e?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Vt.prototype.centerPageView=function(){var e=this.refs.$brContainer.prop("scrollWidth"),t=this.refs.$brContainer.prop("clientWidth");e>t&&this.refs.$brContainer.prop("scrollLeft",(e-t)/2)},Vt.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),i=1;i<t.length;i++){var o=Math.abs(e-t[i].reduce);o<r&&(r=o,n=t[i].reduce)}return n},Vt.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,i=1;i<n.length;i++)n[i].reduce<e&&(r=i);return n[r]}if("out"===t){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>e&&(a=s);return n[a]}if("auto"===t){var u=n.find((function(e){return"auto"==e.autofit}));if(u)return u;for(var c=n.filter((function(e){var t=e.autofit;return"height"==t||"width"==t})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===t||"width"===t){var f=n.find((function(e){return e.autofit==t}));if(f)return f}return n[0]},Vt.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},Vt.prototype.jumpToPage=function(e){var t=this.book.parsePageString(e);return void 0!==t&&(this.jumpToIndex(t),!0)},Vt.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},Vt.prototype.jumpToIndex=function(e,t,n,r){var i=this.book.getPage(e);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,t,n,r)}this.trigger(Vt.eventNames.stop),this.activeMode.jumpToIndex(e,t,n,r)},Vt.prototype.getPrevReadMode=function(e){return e===Vt.constMode1up||e===Vt.constMode2up?e:null===this.prevReadMode?Vt.constMode1up:void 0},Vt.prototype.switchMode=function(e){var t,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(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(Vt.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this._modes.mode1Up.prepare():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||a||this.trigger(Vt.eventNames.fragmentChange);var s=e+"PageViewSelected";this.trigger(Vt.eventNames[s]),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},Vt.prototype.updateBrClasses=function(){var e={};e[this.constMode1up]="BRmode1up",e[this.constMode2up]="BRmode2up",e[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(e[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Ut(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Ut(document.body).removeClass("BRfullscreenActive"))},Vt.prototype.isFullscreen=function(){return this.isFullscreenActive},Vt.prototype.toggleFullscreen=Wt(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.next=6;break}return e.next=4,this.exitFullScreen();case 4:e.next=8;break;case 6:return e.next=8,this.enterFullscreen(t);case 8:case"end":return e.stop()}}),e,this)}))),Vt.prototype.enterFullscreen=Wt(regeneratorRuntime.mark((function e(){var t,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.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(e){27===e.keyCode&&i.toggleFullscreen()},Ut(document).on("keyup",this._fullscreenCloseHandler)),Ut(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),!(this.activeMode instanceof Ve)){e.next=13;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),e.next=13,this.activeMode.mode1UpLit.updateComplete;case 13:return this.jumpToIndex(r),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(Vt.eventNames.fragmentChange),this.trigger(Vt.eventNames.fullscreenToggled),e.next=19,new Promise((function(e){return setTimeout(e,0)}));case 19:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 21:case"end":return e.stop()}}),e,this)}))),Vt.prototype.exitFullScreen=Wt(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Ut(document).off("keyup",this._fullscreenCloseHandler),n=Ut(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(Vt.eventNames.fullscreenToggled),this.updateBrClasses(),e.next=10,new Promise((function(e){return setTimeout(e,0)}));case 10:if(this.resize(),!(this.activeMode instanceof Ve)){e.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(Vt.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 19:case"end":return e.stop()}}),e,this)}))),Vt.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return r.clamp(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},Vt.prototype.updateFirstIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(Vt.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger(Vt.eventNames.pageChanged),this.trigger(Vt.eventNames.userAction),this._components.navbar.updateNavIndexThrottled(e))},Vt.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},Vt.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Vt.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},Vt.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Vt.prototype.next=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t;this.constMode2up==this.mode?(n&&this.trigger(Vt.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("next")):this.firstIndex<this.book.getNumLeafs()-1&&this.jumpToIndex(this.firstIndex+1)},Vt.prototype.prev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=this.firstIndex<1;r||(this.constMode2up==this.mode?(n&&this.trigger(Vt.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("prev")):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},Vt.prototype.first=function(){this.jumpToIndex(0)},Vt.prototype.last=function(){this.jumpToIndex(this.book.getNumLeafs()-1)},Vt.prototype.initNavbar=u.prototype.init,qt(u,"_components.navbar","init","initNavbar"),Vt.prototype.buildToolbarElement=x.prototype.buildToolbarElement,qt(x,"_components.toolbar","buildToolbarElement"),Vt.prototype.initToolbar=x.prototype.initToolbar,qt(x,"_components.toolbar","initToolbar"),Vt.prototype.buildShareDiv=x.prototype.buildShareDiv,qt(x,"_components.toolbar","buildShareDiv"),Vt.prototype.buildInfoDiv=x.prototype.buildInfoDiv,qt(x,"_components.toolbar","buildInfoDiv"),Vt.prototype.getToolBarHeight=x.prototype.getToolBarHeight,qt(x,"_components.toolbar","getToolBarHeight"),Vt.prototype.bindNavigationHandlers=function(){var e=this,t=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){e.trigger(Vt.eventNames.stop),e.left()},book_right:function(){e.trigger(Vt.eventNames.stop),e.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(){e.switchMode(t.constMode1up)},thumb:function(){e.switchMode(t.constModeThumb)},twopg:function(){e.switchMode(t.constMode2up)},zoom_in:function(){e.trigger(Vt.eventNames.stop),e.zoom(1),e.trigger(Vt.eventNames.zoomIn)},zoom_out:function(){e.trigger(Vt.eventNames.stop),e.zoom(-1),e.trigger(Vt.eventNames.zoomOut)},full:function(){if("embed"==e.ui){var t=e.$(".BRembedreturn a").attr("href");window.open(t)}else e.toggleFullscreen()}};this.$("nav.BRcontrols li button").on("click",(function(){e.trigger(Vt.eventNames.userAction)})),n.filter(".fit").bind("fit",(function(){}));var i=function(e){n.filter(".".concat(e)).on("click.bindNavigationHandlers",(function(){return r[e](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var e=[];a.hasClass("BRdn")?(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:-1*t.getToolBarHeight()}).promise()),e.push(t.$(".BRfooter").animate({bottom:-1*t.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),t.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:0}).promise()),e.push(t.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),t.$(".BRvavCntl").animate({opacity:1})),Ut.when.apply(Ut,e).done((function(){t.mode==t.constMode2up&&null!=t.twoPage.autofit&&"none"!=t.twoPage.autofit||t.mode==t.constMode1up&&null!=t.onePage.autofit&&"none"!=t.onePage.autofit?t.resize():t.resizeBRcontainer()}))})),a.on("mouseover",(function(){Ut(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ut(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Ut(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ut(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),Ut(document).off("mousemove.navigation",this.el),Ut(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),Ut(document).off("mousedown.swipe",".BRpageimage"),Ut(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},Vt.prototype.unbindNavigationHandlers=function(){Ut(document).off("mousemove.navigation",this.el)},Vt.prototype.navigationMousemoveHandler=function(e){if(e.data.br.uiAutoHide){var t=Ut(document).height()-75;e.pageY<76||e.pageY>t?e.data.br.hideNavigation():e.data.br.showNavigation()}},Vt.prototype.initSwipeData=function(e,t){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:e,startY:t,lastX:e,lastY:t,deltaX:0,deltaY:0,deltaT:0}},Vt.prototype.swipeMousedownHandler=function(e){var t=e.data.br;return 3==e.which?!t.protected:(Ut(e.target).on("mouseout.swipe",{br:t},t.swipeMouseupHandler).on("mouseup.swipe",{br:t},t.swipeMouseupHandler).on("mousemove.swipe",{br:t},t.swipeMousemoveHandler),t.initSwipeData(e.clientX,e.clientY),t._swipe.mightBeSwiping=!0,t._swipe.mightBeDragging=!0,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},Vt.prototype.swipeMousemoveHandler=function(e){var t=e.data.br,n=t._swipe;if(n.mightBeSwiping){n.deltaX=e.clientX-n.startX,n.deltaY=e.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(t.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,t.mode==t.constMode2up&&(n.deltaX<0?t.right():t.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,t.refs.$brContainer.scrollTop(t.refs.$brContainer.scrollTop()-e.clientY+n.lastY).scrollLeft(t.refs.$brContainer.scrollLeft()-e.clientX+n.lastX)),n.lastX=e.clientX,n.lastY=e.clientY,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}},Vt.prototype.swipeMouseupHandler=function(e){var t=e.data.br._swipe;return t.mightBeSwiping=!1,t.mightBeDragging=!1,Ut(e.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!t.didSwipe&&!t.didDrag||(e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},Vt.prototype.bindMozTouchHandlers=function(){var e=this;this.refs.$br.on("MozTouchDown",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchMove",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchUp",(function(t){this.mode==e.constMode2up&&t.preventDefault()}))},Vt.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},Vt.prototype.setNavigationView=function(e){var t=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(Vt.eventNames.navToggled)}.bind(this),i=0,o=0;e?(i=-1*this.getToolBarHeight(),o=-1*this.getFooterHeight(),this.refs.$BRtoolbar.addClass("js-menu-hide"),this.refs.$BRfooter.addClass("js-menu-hide")):(this.refs.$BRtoolbar.removeClass("js-menu-hide"),this.refs.$BRfooter.removeClass("js-menu-hide")),this.refs.$BRtoolbar.animate({top:i},t,n,r),this.refs.$BRfooter.animate({bottom:o},t,n,r)},Vt.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},Vt.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},Vt.prototype.getPageURI=O.prototype.getPageURI,qt(O,"book","getPageURI"),Vt.prototype.updateFromParams=function(e){var t=e.mode,n=void 0===t?0:t,r=e.init,i=void 0!==r&&r,o=e.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),this.enableSearch&&void 0!==e.search&&this.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},Vt.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Vt.prototype._getPageURI=function(e,t,n){var r=this.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},Vt.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Ut(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){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"),Ut(r).append(i),r.addEventListener("click",(function(){t(),n.removeProgressPopup()})),Ut(this.popup).append(r)}var o=document.createElement("div");if(Ut(o).css({height:"20px"}).prop("className","BRprogressbar"),Ut(this.popup).append(o),e){var a=document.createElement("div");a.innerHTML=e,Ut(this.popup).append(a)}Ut(this.popup).appendTo(this.refs.$br)}},Vt.prototype.removeProgressPopup=function(){Ut(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Vt.prototype.initUIStrings=function(){var e={".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 t in"rl"==this.pageProgression&&(e[".book_leftmost"]="Last page",e[".book_rightmost"]="First page"),e)this.$(t).prop("title",e[t])},Vt.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(e,t){if(!t.complete||0===t.naturalHeight){var n=t.src;t.src="",setTimeout((function(){t.src=n}),1e3)}}))},Vt.prototype.getFooterHeight=function(){var e=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(e&&this.refs.$BRfooter){var t=e.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(t)&&!isNaN(n))return t+n}return 0},Vt.prototype.paramsFromCurrent=function(){var e={},t=this.currentIndex(),n=this.book.getPageNum(t);return(0===n||n)&&(e.page=n),e.index=t,e.mode=this.mode,this.isFullscreenActive&&(e.view="theater"),this.enableSearch&&(e.search=this.searchTerm),e},Vt.prototype.paramsFromFragment=function(e){var t={};"#"==e.substr(0,1)&&(e=e.substr(1));var n=parseInt(/^\d+$/.exec(e));if(!isNaN(n))return t.index=n,t;for(var i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?t.mode=this.constMode1up:"2up"==o.mode?t.mode=this.constMode2up:"thumb"==o.mode&&(t.mode=this.constModeThumb),void 0!==o.page&&(t.page=o.page),null!=o.search&&(t.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(t.theme=o.theme),t},Vt.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==e.page?i.push("page",e.page):void 0!==e.index&&i.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)i.push("mode","1up");else if(e.mode==this.constMode2up)i.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;i.push("mode","thumb")}return e.search&&"hash"===t&&i.push("search",e.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},Vt.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var i=r.toString();return i?"?"+i:""},Vt.prototype.$=function(e){return this.refs.$br.find(e)},window.BookReader=Vt},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__),$=__webpack_require__(3609);function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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 e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_realLog.apply(void 0,t),_this.logToScreen(t)},window.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _this.logToScreen(t)}}},{key:"logToScreen",value:function(e){var t=e.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==t?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(t,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(e,t,n){"use strict";n.d(t,{_z:function(){return l},hy:function(){return h},Tm:function(){return d}}),n(5666),n(5827),n(1539),n(9600),n(2222),n(9714),n(6992),n(3948),n(8674),n(7042),n(8309),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165);var r=n(3609);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var t,n;return t=e,(n=[{key:"update",value:function(e){var t,n,i=e.dimensions,o=void 0===i?null:i,a=e.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var c=this.imageCache.imageLoaded(this.page.index,s),l=!c&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var f=[];return c||(this.$container.addClass("BRpageloading"),f.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),l&&f.push('url("'.concat(this.page.getURI(l,0),'") center/100% 100% no-repeat')),c||this.$img.css("background",f.join(",")).one("loadend",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(t.target).css({background:""}),r(t.target).parent().removeClass("BRpageloading");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),this}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(e,t){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(e.width," ").concat(e.height)),n.setAttribute("class","BRPageLayer ".concat(t)),n.setAttribute("preserveAspectRatio","none"),n}function f(e){var t=e.l,n=e.r,r=e.b,i=e.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",t.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-t).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(e)),c=u||h(n,e);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(t.entries());try{for(p.s();!(d=p.n()).done;){var v=i(d.value,2),g=v[0],m=v[1],y=f(m);s&&y.setAttribute("class",s[g]),c.appendChild(y)}}catch(e){p.e(e)}finally{p.f()}}},5685:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){e.bind("mousedown",(function(){return!1})),e[0].onselectstart=function(){return!1}}function s(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e/t*100+"%"}function c(e,t){return!t.includes(e)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.activeElement;return t&&null!=n&&n.shadowRoot?l(n.shadowRoot,!0):n}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=l(e);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function f(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function d(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(e){return decodeURIComponent(e).replace(/\+/g," ")}function v(e){return encodeURIComponent(e).replace(/%20/g,"+")}function g(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function m(e,t,n){var r,i;return t||(t=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+t?(clearTimeout(i),i=setTimeout((function(){r=o,e.apply(n,a)}),t)):(r=o,e.apply(n,a))}}function y(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=b}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,i=t.cancelable,o=void 0!==i&&i,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,o,s),u}function w(){var e=document.createElement("div");e.style.width="1in",document.body.appendChild(e);var t=e.offsetWidth;document.body.removeChild(e);var n=1.25*t;return 0==n?100:n}function _(e){return e.reduce((function(e,t){return e+t}),0)}function k(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function x(e,t){return e.length==t.length&&e.every((function(e,n){return e==t[n]}))}function P(e,t){return e&&t&&!x(e,t)}function S(e){return E.apply(this,arguments)}function E(){return(E=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return T.apply(this,arguments)}function T(){return(T=i(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.step,i=void 0===r?50:r,o=n.timeout,a=void 0===o?500:o,s=n.until,u=void 0===s?function(e){return Boolean(e)}:s,c=n._sleep,l=void 0===c?S:c,h=Date.now();case 2:if(!(Date.now()-h<a)){e.next=10;break}if(f=t(),!u(f)){e.next=6;break}return e.abrupt("return",f);case 6:return e.next=8,l(i);case 8:e.next=2;break;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t){return new Promise((function(n){e.addEventListener(t,(function r(i){e.removeEventListener(t,r),n(i)}))}))}n.r(t),n.d(t,{disableSelect:function(){return a},clamp:function(){return s},cssPercentage:function(){return u},notInArray:function(){return c},getActiveElement:function(){return l},isInputActive:function(){return h},getIFrameDocument:function(){return f},escapeHTML:function(){return d},decodeURIComponentPlus:function(){return p},encodeURIComponentPlus:function(){return v},debounce:function(){return g},throttle:function(){return m},polyfillCustomEvent:function(){return y},PolyfilledCustomEvent:function(){return b},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return k},arrEquals:function(){return x},arrChanged:function(){return P},sleep:function(){return S},poll:function(){return C},promisifyEvent:function(){return R}}),n(5666),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948)},9662:function(e,t,n){var r=n(7854),i=n(614),o=n(6330),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},9483:function(e,t,n){var r=n(7854),i=n(4411),o=n(6330),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a constructor")}},6077:function(e,t,n){var r=n(7854),i=n(614),o=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},1223:function(e,t,n){var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e,t,n){var r=n(7854),i=n(7976),o=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},9670:function(e,t,n){var r=n(7854),i=n(111),o=r.String,a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},7556:function(e,t,n){var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},1285:function(e,t,n){"use strict";var r=n(7908),i=n(1400),o=n(6244);e.exports=function(e){for(var t=r(this),n=o(t),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;)t[s++]=e;return t}},8533:function(e,t,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var r=n(7854),i=n(9974),o=n(6916),a=n(7908),s=n(3411),u=n(7659),c=n(4411),l=n(6244),h=n(6135),f=n(8554),d=n(1246),p=r.Array;e.exports=function(e){var t=a(e),n=c(this),r=arguments.length,v=r>1?arguments[1]:void 0,g=void 0!==v;g&&(v=i(v,r>2?arguments[2]:void 0));var m,y,b,w,_,k,x=d(t),P=0;if(!x||this==p&&u(x))for(m=l(t),y=n?new this(m):p(m);m>P;P++)k=g?v(t[P],P):t[P],h(y,P,k);else for(_=(w=f(t,x)).next,y=n?new this:[];!(b=o(_,w)).done;P++)k=g?s(w,v,[b.value,P],!0):b.value,h(y,P,k);return y.length=P,y}},1318:function(e,t,n){var r=n(5656),i=n(1400),o=n(6244),a=function(e){return function(t,n,a){var s,u=r(t),c=o(u),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,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(e){var t=1==e,n=2==e,i=3==e,l=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,v,g,m){for(var y,b,w=a(p),_=o(w),k=r(v,g),x=s(_),P=0,S=m||u,E=t?S(p,x):n||f?S(p,0):void 0;x>P;P++)if((d||P in _)&&(b=k(y=_[P],P,w),e))if(t)E[P]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return P;case 2:c(E,y)}else switch(e){case 4:return!1;case 7:c(E,y)}return h?-1:i||l?l:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(e,t,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},3671:function(e,t,n){var r=n(7854),i=n(9662),o=n(7908),a=n(8361),s=n(6244),u=r.TypeError,c=function(e){return function(t,n,r,c){i(n);var l=o(t),h=a(l),f=s(l),d=e?f-1:0,p=e?-1:1;if(r<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw u("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in h&&(c=n(c,h[d],d,l));return c}};e.exports={left:c(!1),right:c(!0)}},1589:function(e,t,n){var r=n(7854),i=n(1400),o=n(6244),a=n(6135),s=r.Array,u=Math.max;e.exports=function(e,t,n){for(var r=o(e),c=i(t,r),l=i(void 0===n?r:n,r),h=s(u(l-c,0)),f=0;c<l;c++,f++)a(h,f,e[c]);return h.length=f,h}},206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},4362:function(e,t,n){var r=n(1589),i=Math.floor,o=function(e,t){var n=e.length,u=i(n/2);return n<8?a(e,t):s(e,o(r(e,0,u),t),o(r(e,u),t),t)},a=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e};e.exports=o},7475:function(e,t,n){var r=n(7854),i=n(3157),o=n(4411),a=n(111),s=n(5112)("species"),u=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(o(t)&&(t===u||i(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?u:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},7072:function(e,t,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(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e,t,n){var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},648:function(e,t,n){var r=n(7854),i=n(1694),o=n(614),a=n(4326),s=n(5112)("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=u(e),s))?n:c?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),u=n(408),c=n(654),l=n(6340),h=n(9781),f=n(2423).fastKey,d=n(9909),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,d),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),d=l.prototype,g=v(t),m=function(e,t,n){var r,i,o=g(e),a=y(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},y=function(e,t){var n,r=g(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(d,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),o(d,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),h&&r(d,"size",{get:function(){return g(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},9320:function(e,t,n){"use strict";var r=n(1702),i=n(2248),o=n(2423).getWeakData,a=n(9670),s=n(111),u=n(5787),c=n(408),l=n(2092),h=n(2597),f=n(9909),d=f.set,p=f.getterFor,v=l.find,g=l.findIndex,m=r([].splice),y=0,b=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},_=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var n=_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var l=e((function(e,i){u(e,f),d(e,{type:t,id:y++,frozen:void 0}),null!=i&&c(i,e[r],{that:e,AS_ENTRIES:n})})),f=l.prototype,v=p(t),g=function(e,t,n){var r=v(e),i=o(a(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return i(f,{delete:function(e){var t=v(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t).has(e):n&&h(n,t.id)}}),i(f,n?{get:function(e){var t=v(this);if(s(e)){var n=o(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),l}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(1702),a=n(4705),s=n(1320),u=n(2423),c=n(408),l=n(5787),h=n(614),f=n(111),d=n(7293),p=n(7072),v=n(8003),g=n(9587);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=m?"set":"add",w=i[e],_=w&&w.prototype,k=w,x={},P=function(e){var t=o(_[e]);s(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!h(w)||!(y||_.forEach&&!d((function(){(new w).entries().next()})))))k=n.getConstructor(t,e,m,b),u.enable();else if(a(e,!0)){var S=new k,E=S[b](y?{}:-0,1)!=S,C=d((function(){S.has(1)})),T=p((function(e){new w(e)})),R=!y&&d((function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)}));T||((k=t((function(e,t){l(e,_);var n=g(new w,e,k);return null!=t&&c(t,n[b],{that:n,AS_ENTRIES:m}),n}))).prototype=_,_.constructor=k),(C||R)&&(P("delete"),P("has"),m&&P("get")),(R||E)&&P(b),y&&_.clear&&delete _.clear}return x[e]=k,r({global:!0,forced:k!=w},x),v(k,e),y||n.setStrong(k,e,m),k}},9920:function(e,t,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var h=s[l];r(e,h)||n&&r(n,h)||u(e,h,c(t,h))}}},4964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},8709:function(e,t,n){"use strict";var r=n(7854),i=n(9670),o=n(2140),a=r.TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return o(this,e)}},654:function(e,t,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),a=n(6530),s=n(614),u=n(4994),c=n(9518),l=n(7674),h=n(8003),f=n(8880),d=n(1320),p=n(5112),v=n(7497),g=n(3383),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=p("iterator"),k="keys",x="values",P="entries",S=function(){return this};e.exports=function(e,t,n,a,p,g,E){u(n,t,a);var C,T,R,O=function(e){if(e===p&&$)return $;if(!w&&e in M)return M[e];switch(e){case k:case x:case P:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",I=!1,M=e.prototype,j=M[_]||M["@@iterator"]||p&&M[p],$=!w&&j||O(p),L="Array"==t&&M.entries||j;if(L&&(C=c(L.call(new e)))!==Object.prototype&&C.next&&(o||c(C)===b||(l?l(C,b):s(C[_])||d(C,_,S)),h(C,A,!0,!0),o&&(v[A]=S)),m&&p==x&&j&&j.name!==x&&(!o&&y?f(M,"name",x):(I=!0,$=function(){return i(j,this)})),p)if(T={values:O(x),keys:g?$:O(k),entries:O(P)},E)for(R in T)(w||I||!(R in M))&&d(M,R,T[R]);else r({target:t,proto:!0,forced:w||I},T);return o&&!E||M[_]===$||d(M,_,$,{name:p}),v[t]=$,T}},7235:function(e,t,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(e,t,n){var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},8886:function(e,t,n){var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window&&"object"!=typeof Deno},256:function(e,t,n){var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:function(e,t,n){var r=n(8113),i=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(e,t,n){var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),i=n(7854);e.exports="process"==r(i.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,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]),e.exports=i},8008:function(e,t,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,h,f,d,p=e.target,v=e.global,g=e.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],h=e.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1702),i=n(1320),o=n(2261),a=n(7293),s=n(5112),u=n(8880),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,h){var f=s(e),d=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var v=r(/./[f]),g=t(f,""[e],(function(e,t,n,i,a){var s=r(e),u=t.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,f,g[1])}h&&u(l[f],"sham",!0)}},6790:function(e,t,n){"use strict";var r=n(7854),i=n(3157),o=n(6244),a=n(9974),s=r.TypeError,u=function(e,t,n,r,c,l,h,f){for(var d,p,v=c,g=0,m=!!h&&a(h,f);g<r;){if(g in n){if(d=m?m(n[g],g,t):n[g],l>0&&i(d))p=o(d),v=u(e,t,d,p,v,l-1)-1;else{if(v>=9007199254740991)throw s("Exceed the acceptable array length");e[v]=d}v++}g++}return v};e.exports=u},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(e,t,n){var r=n(1702),i=n(9662),o=n(4374),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},7065:function(e,t,n){"use strict";var r=n(7854),i=n(1702),o=n(9662),a=n(111),s=n(2597),u=n(206),c=n(4374),l=r.Function,h=i([].concat),f=i([].join),d={},p=function(e,t,n){if(!s(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=l("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=c?l.bind:function(e){var t=o(this),n=t.prototype,r=u(arguments,1),i=function(){var n=h(r,u(arguments));return this instanceof i?p(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},6916:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,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);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),i=n(614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},1246:function(e,t,n){var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[r(e)]}},8554:function(e,t,n){var r=n(7854),i=n(6916),o=n(9662),a=n(9670),s=n(6330),u=n(1246),c=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(o(n))return a(i(n,e));throw c(s(e)+" is not iterable")}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:function(e,t,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;e.exports=function(e,t,n,r,h,f){var d=n+e.length,p=r.length,v=l;return void 0!==h&&(h=i(h),v=c),s(f,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,d);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var f=o(l/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7854),i=n(1702),o=n(7293),a=n(4326),s=r.Object,u=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?u(e,""):s(e)}:s},9587:function(e,t,n){var r=n(614),i=n(111),o=n(7674);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},2788:function(e,t,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},2423:function(e,t,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),h=n(2050),f=n(9711),d=n(6677),p=!1,v=f("meta"),g=0,m=function(e){u(e,v,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!h(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!h(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return d&&p&&h(e)&&!s(e,v)&&m(e),e}};o[v]=!0},9909:function(e,t,n){var r,i,o,a=n(8536),s=n(7854),u=n(1702),c=n(111),l=n(8880),h=n(2597),f=n(5465),d=n(6200),p=n(3501),v="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new m),b=u(y.get),w=u(y.has),_=u(y.set);r=function(e,t){if(w(y,e))throw new g(v);return t.facade=e,_(y,e,t),t},i=function(e){return b(y,e)||{}},o=function(e){return w(y,e)}}else{var k=d("state");p[k]=!0,r=function(e,t){if(h(e,k))throw new g(v);return t.facade=e,l(e,k,t),t},i=function(e){return h(e,k)?e[k]:{}},o=function(e){return h(e,k)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e){e.exports=function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(c),v=function(e){if(!o(e))return!1;try{return h(c,l,e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(e){return!0}};g.sham=!0,e.exports=!h||i((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?g:v},5032:function(e,t,n){var r=n(2597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},4705:function(e,t,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==l||n!=c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),i=n(4326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},2190:function(e,t,n){var r=n(7854),i=n(5005),o=n(614),a=n(7976),s=n(3307),u=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,u(e))}},408:function(e,t,n){var r=n(7854),i=n(9974),o=n(6916),a=n(9670),s=n(6330),u=n(7659),c=n(6244),l=n(7976),h=n(8554),f=n(1246),d=n(9212),p=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},g=v.prototype;e.exports=function(e,t,n){var r,m,y,b,w,_,k,x=n&&n.that,P=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),C=i(t,x),T=function(e){return r&&d(r,"normal",e),new v(!0,e)},R=function(e){return P?(a(e),E?C(e[0],e[1],T):C(e[0],e[1])):E?C(e,T):C(e)};if(S)r=e;else{if(!(m=f(e)))throw p(s(e)+" is not iterable");if(u(m)){for(y=0,b=c(e);b>y;y++)if((w=R(e[y]))&&l(g,w))return w;return new v(!1)}r=h(e,m)}for(_=r.next;!(k=o(_,r)).done;){try{w=R(k.value)}catch(e){d(r,"throw",e)}if("object"==typeof w&&w&&l(g,w))return w}return new v(!1)}},9212:function(e,t,n){var r=n(6916),i=n(9670),o=n(8173);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},3383:function(e,t,n){"use strict";var r,i,o,a=n(7293),s=n(614),u=n(30),c=n(9518),l=n(1320),h=n(5112),f=n(1913),d=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):p=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(e){e.exports={}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},4310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},5948:function(e,t,n){var r,i,o,a,s,u,c,l,h=n(7854),f=n(9974),d=n(1236).f,p=n(261).set,v=n(8334),g=n(1528),m=n(1036),y=n(5268),b=h.MutationObserver||h.WebKitMutationObserver,w=h.document,_=h.process,k=h.Promise,x=d(h,"queueMicrotask"),P=x&&x.value;P||(r=function(){var e,t;for(y&&(e=_.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},v||y||m||!b||!w?!g&&k&&k.resolve?((c=k.resolve(void 0)).constructor=k,l=f(c.then,c),a=function(){l(r)}):y?a=function(){_.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=P||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},735:function(e,t,n){var r=n(133);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(e,t,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[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}))},8536:function(e,t,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},8523:function(e,t,n){"use strict";var r=n(9662),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(7854),i=n(7850),o=r.TypeError;e.exports=function(e){if(i(e))throw o("The method doesn't accept regular expressions");return e}},3009:function(e,t,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,h=l&&l.iterator,f=/^[+-]?0x/i,d=o(f.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||h&&!i((function(){c(Object(h))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(d(f,n)?16:10))}:c},1574:function(e,t,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),h=n(8361),f=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,f=u.f,d=c.f;i>a;)for(var v,g=h(arguments[a++]),m=f?p(s(g),f(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:f},30:function(e,t,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?d(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[l]=e):n=p(),void 0===t?n:o.f(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},3070:function(e,t,n){var r=n(7854),i=n(9781),o=n(4664),a=n(3353),s=n(9670),u=n(4948),c=r.TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,n){if(s(e),t=u(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=h(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=u(t),s(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,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),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=u(t),l)try{return h(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},1156:function(e,t,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):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},8006:function(e,t,n){var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(7854),i=n(2597),o=n(614),a=n(7908),s=n(6200),u=n(8544),c=s("IE_PROTO"),l=r.Object,h=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=a(e);if(i(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?h:null}},2050:function(e,t,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!=o(e))&&(!s||s(e))}:s},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),i=n(9670),o=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},4699:function(e,t,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(e){return function(t){for(var n,i=a(t),c=o(i),l=c.length,h=0,f=[];l>h;)n=c[h++],r&&!s(i,n)||u(f,e?[n,i[n]]:i[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},288:function(e,t,n){"use strict";var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(e,t,n){var r=n(7854),i=n(6916),o=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&o(n=e.toString)&&!a(r=i(n,e)))return r;if(o(n=e.valueOf)&&!a(r=i(n,e)))return r;if("string"!==t&&o(n=e.toString)&&!a(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},3702:function(e,t,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(1913),h=n(7392),f=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(h>=51&&/native code/.test(e))return!1;var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r)||!t&&c&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},2492:function(e,t,n){var r=n(7854);e.exports=r.Promise},9478:function(e,t,n){var r=n(9670),i=n(111),o=n(8523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},612:function(e,t,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8572:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},1320:function(e,t,n){var r=n(7854),i=n(614),o=n(2597),a=n(8880),s=n(3505),u=n(2788),c=n(9909),l=n(6530).CONFIGURABLE,h=c.get,f=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,u){var c,h=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:t;i(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||l&&n.name!==g)&&a(n,"name",g),(c=f(n)).source||(c.source=d.join("string"==typeof g?g:""))),e!==r?(h?!v&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||u(this)}))},7651:function(e,t,n){var r=n(7854),i=n(6916),o=n(9670),a=n(614),s=n(4326),u=n(2261),c=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=i(n,e,t);return null!==r&&o(r),r}if("RegExp"===s(e))return i(u,e,t);throw c("RegExp#exec called on incompatible receiver")}},2261:function(e,t,n){"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),h=n(30),f=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),_=a("".slice),k=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=c.BROKEN_CARET,P=void 0!==/()??/.exec("")[1];(k||P||x||d||p)&&(m=function(e){var t,n,r,i,a,c,l,d=this,p=f(d),S=s(e),E=p.raw;if(E)return E.lastIndex=d.lastIndex,t=o(m,E,S),d.lastIndex=E.lastIndex,t;var C=p.groups,T=x&&d.sticky,R=o(u,d),O=d.source,A=0,I=S;if(T&&(R=w(R,"y",""),-1===b(R,"g")&&(R+="g"),I=_(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(S,d.lastIndex-1))&&(O="(?: "+O+")",I=" "+I,A++),n=new RegExp("^(?:"+O+")",R)),P&&(n=new RegExp("^"+O+"$(?!\\s)",R)),k&&(r=d.lastIndex),i=o(g,T?n:d,I),T?i?(i.input=_(i.input,A),i[0]=_(i[0],A),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),P&&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=h(null),a=0;a<C.length;a++)c[(l=C[a])[0]]=i[l[1]];return i}),e.exports=m},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},4706:function(e,t,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},2999:function(e,t,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:function(e,t,n){var r=n(7854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3505:function(e,t,n){var r=n(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(e,t,n){var r=n(9670),i=n(9483),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8710:function(e,t,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(e){return function(t,n){var r,l,h=o(a(t)),f=i(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=u(h,f))<55296||r>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?e?s(h,f):r:e?c(h,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(e,t,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+"*$"),h=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},6532:function(e,t,n){var r=n(6916),i=n(5005),o=n(5112),a=n(1320);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}))}},261:function(e,t,n){var r,i,o,a,s=n(7854),u=n(2104),c=n(9974),l=n(614),h=n(2597),f=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,_=s.process,k=s.Dispatch,x=s.Function,P=s.MessageChannel,S=s.String,E=0,C={};try{r=s.location}catch(e){}var T=function(e){if(h(C,e)){var t=C[e];delete C[e],t()}},R=function(e){return function(){T(e)}},O=function(e){T(e.data)},A=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=l(e)?e:x(e),n=p(arguments,1);return C[++E]=function(){u(t,void 0,n)},i(E),E},w=function(e){delete C[e]},y?i=function(e){_.nextTick(R(e))}:k&&k.now?i=function(e){k.now(R(e))}:P&&!m?(a=(o=new P).port2,o.port1.onmessage=O,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(A)?(i=A,s.addEventListener("message",O,!1)):i="onreadystatechange"in v("script")?function(e){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:w}},863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},1400:function(e,t,n){var r=n(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(7854),i=n(4488),o=r.Object;e.exports=function(e){return o(i(e))}},7593:function(e,t,n){var r=n(7854),i=n(6916),o=n(111),a=n(2190),s=n(8173),u=n(2140),c=n(5112),l=r.TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,r=s(e,h);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:function(e,t,n){var r=n(7854),i=n(648),o=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e,t,n){var r=n(7854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},9711:function(e,t,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(e,t,n){var r=n(7854).TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=l&&l.for,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(l,e)?c[e]=l[e]:c[e]=u&&h?h(t):f(t)}return c[e]}},1361:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(7293),a=n(3157),s=n(111),u=n(7908),c=n(6244),l=n(6135),h=n(5417),f=n(1194),d=n(5112),p=n(7392),v=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",y=i.TypeError,b=p>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),w=f("concat"),_=function(e){if(!s(e))return!1;var t=e[v];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!b||!w},{concat:function(e){var t,n,r,i,o,a=u(this),s=h(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(_(o=-1===t?a:arguments[t])){if(f+(i=c(o))>g)throw y(m);for(n=0;n<i;n++,f++)n in o&&l(s,f,o[n])}else{if(f>=g)throw y(m);l(s,f++,o)}return s.length=f,s}})},3290:function(e,t,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(e,t,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(e,t,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(e,t,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(e){var t,n=a(this),r=s(n);return o(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},4944:function(e,t,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 e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},1038:function(e,t,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:i})},6699:function(e,t,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(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(e,t,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(654),c=n(1913),l=n(9781),h="Array Iterator",f=a.set,d=a.getterFor(h);e.exports=u(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},9600:function(e,t,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(e){return u(a(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5827:function(e,t,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(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},5069:function(e,t,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(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(3157),a=n(4411),s=n(111),u=n(1400),c=n(6244),l=n(5656),h=n(6135),f=n(5112),d=n(1194),p=n(206),v=d("slice"),g=f("species"),m=i.Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,i,f=l(this),d=c(f),v=u(e,d),b=u(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,(a(n)&&(n===m||o(n.prototype))||s(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return p(f,v,b);for(r=new(void 0===n?m:n)(y(b-v,0)),i=0;v<b;v++,i++)v in f&&h(r,i,f[v]);return r.length=i,r}})},2707:function(e,t,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(1340),c=n(7293),l=n(4362),h=n(9341),f=n(8886),d=n(256),p=n(7392),v=n(8008),g=[],m=i(g.sort),y=i(g.push),b=c((function(){g.sort(void 0)})),w=c((function(){g.sort(null)})),_=h("sort"),k=!c((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(v)return v<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:b||!w||!_||!k},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(k)return void 0===e?m(t):m(t,e);var n,r,i=[],c=s(t);for(r=0;r<c;r++)r in t&&y(i,t[r]);for(l(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=i.length,r=0;r<n;)t[r]=i[r++];for(;r<c;)delete t[r++];return t}})},561:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(1400),a=n(9303),s=n(6244),u=n(7908),c=n(5417),l=n(6135),h=n(1194)("splice"),f=i.TypeError,d=Math.max,p=Math.min,v=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,i,h,m,y,b=u(this),w=s(b),_=o(e,w),k=arguments.length;if(0===k?n=r=0:1===k?(n=0,r=w-_):(n=k-2,r=p(d(a(t),0),w-_)),w+n-r>v)throw f(g);for(i=c(b,r),h=0;h<r;h++)(m=_+h)in b&&l(i,h,b[m]);if(i.length=r,n<r){for(h=_;h<w-r;h++)y=h+n,(m=h+r)in b?b[y]=b[m]:delete b[y];for(h=w;h>w-r+n;h--)delete b[h-1]}else if(n>r)for(h=w-r;h>_;h--)y=h+n-1,(m=h+r-1)in b?b[y]=b[m]:delete b[y];for(h=0;h<n;h++)b[h+_]=arguments[h+2];return b.length=w-r+n,i}})},9244:function(e,t,n){n(1223)("flatMap")},3792:function(e,t,n){n(1223)("flat")},6078:function(e,t,n){var r=n(2597),i=n(1320),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(e,t,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(e){return""}}})},5837:function(e,t,n){n(2109)({global:!0},{globalThis:n(7854)})},8862:function(e,t,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),h=n(111),f=n(2190),d=n(206),p=n(133),v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),_=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,P=!p||u((function(){var e=i("Symbol")();return"[null]"!=v([e])||"{}"!=v({a:e})||"{}"!=v(Object(e))})),S=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(e,t){var n=d(arguments),r=t;if((h(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if(l(r)&&(t=a(r,this,e,t)),!f(t))return t}),n[1]=t,o(v,null,n)},C=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return g(k,e)&&!g(x,i)||g(x,e)&&!g(k,r)?"\\u"+w(y(e,0),16):e};v&&r({target:"JSON",stat:!0,forced:P||S},{stringify:function(e,t,n){var r=d(arguments),i=o(P?E:v,null,r);return S&&"string"==typeof i?b(i,_,C):i}})},3706:function(e,t,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(e,t,n){"use strict";n(7710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(e,t,n){n(9098)},4914:function(e,t,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},2420:function(e,t,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(e,t,n){n(8003)(Math,"Math",!0)},9653:function(e,t,n){"use strict";var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(1320),u=n(2597),c=n(9587),l=n(7976),h=n(2190),f=n(7593),d=n(7293),p=n(8006).f,v=n(1236).f,g=n(3070).f,m=n(863),y=n(3111).trim,b="Number",w=i.Number,_=w.prototype,k=i.TypeError,x=o("".slice),P=o("".charCodeAt),S=function(e){var t=f(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,n,r,i,o,a,s,u,c=f(e,"number");if(h(c))throw k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),43===(t=P(c,0))||45===t){if(88===(n=P(c,2))||120===n)return NaN}else if(48===t){switch(P(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=x(c,2)).length,s=0;s<a;s++)if((u=P(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(a(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var C,T=function(e){var t=arguments.length<1?0:w(S(e)),n=this;return l(_,n)&&d((function(){m(n)}))?c(Object(t),n,T):t},R=r?p(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;R.length>O;O++)u(w,C=R[O])&&!u(T,C)&&g(T,C,v(w,C));T.prototype=_,_.constructor=T,s(i,b,T)}},9601:function(e,t,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(e,t,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(e){return u&&a(e)?u(s(e)):e}})},5003:function(e,t,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(e,t){return a(o(e),t)}})},9337:function(e,t,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(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&u(l,t,n);return l}})},6210:function(e,t,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(e,t,n){var r=n(2109),i=n(133),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},489:function(e,t,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(e){return a(o(e))}})},7941:function(e,t,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},1539:function(e,t,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(e,t,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},1058:function(e,t,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(e,t,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(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,a[o]=e,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},4164:function(e,t,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(1320),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},3401:function(e,t,n){"use strict";var r,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),h=n(1320),f=n(2248),d=n(7674),p=n(8003),v=n(6340),g=n(9662),m=n(614),y=n(111),b=n(5787),w=n(6707),_=n(261).set,k=n(5948),x=n(842),P=n(2534),S=n(8572),E=n(9909),C=n(2492),T=n(3702),R=n(8523),O="Promise",A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,M=T.SUBCLASSING,j=E.getterFor(O),$=E.set,L=C&&C.prototype,D=C,N=L,B=c.TypeError,U=c.document,F=c.process,z=R.f,W=z,H=!!(U&&U.createEvent&&c.dispatchEvent),V="unhandledrejection",q=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},Y=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,h=e.domain;try{s?(a||(2===t.rejection&&J(t),t.rejection=1),!0===s?n=o:(h&&h.enter(),n=s(o),h&&(h.exit(),i=!0)),n===e.promise?c(B("Promise-chain cycle")):(r=q(n))?l(r,n,u,c):u(n)):c(o)}catch(e){h&&!i&&h.exit(),c(e)}},X=function(e,t){e.notified||(e.notified=!0,k((function(){for(var n,r=e.reactions;n=r.get();)Y(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},G=function(e,t,n){var r,i;H?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!I&&(i=c["on"+e])?i(r):e===V&&x("Unhandled promise rejection",n)},K=function(e){l(_,c,(function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=P((function(){u?F.emit("unhandledRejection",r,n):G(V,n,r)})),e.rejection=u||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},J=function(e){l(_,c,(function(){var t=e.facade;u?F.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(r){e(t,r,n)}},ee=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},te=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B("Promise can't be resolved itself");var r=q(t);r?k((function(){var n={done:!1};try{l(r,t,Q(te,n,e),Q(ee,n,e))}catch(t){ee(n,t,e)}})):(e.value=t,e.state=1,X(e,!1))}catch(t){ee({done:!1},t,e)}}};if(A&&(N=(D=function(e){b(this,N),g(e),l(r,this);var t=j(this);try{e(Q(te,t),Q(ee,t))}catch(e){ee(t,e)}}).prototype,(r=function(e){$(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(N,{then:function(e,t){var n=j(this),r=z(w(this,D));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=u?F.domain:void 0,0==n.state?n.reactions.add(r):k((function(){Y(r,n)})),r.promise}}),i=function(){var e=new r,t=j(e);this.promise=e,this.resolve=Q(te,t),this.reject=Q(ee,t)},R.f=z=function(e){return e===D||void 0===e?new i(e):W(e)},!s&&m(C)&&L!==Object.prototype)){o=L.then,M||h(L,"then",(function(e,t){var n=this;return new D((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,N)}a({global:!0,wrap:!0,forced:A},{Promise:D}),p(D,O,!1,!0),v(O)},8674:function(e,t,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(e,t,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(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(e,t,n){"use strict";var r=n(2109),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},6294:function(e,t,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(e){return u(l&&this===c?a:this,e)}})},2419:function(e,t,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),h=n(7293),f=i("Reflect","construct"),d=Object.prototype,p=[].push,v=h((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!h((function(){f((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!v)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(p,r,t),new(o(a,e,r))}var i=n.prototype,h=l(c(i)?i:d),m=o(e,h,t);return c(m)?m:h}})},4819:function(e,t,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 e(t,n){var r,l,h=arguments.length<3?t:arguments[2];return a(t)===h?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,h):o(l=c(t))?e(l,n,h):void 0}})},4603:function(e,t,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),h=n(7850),f=n(1340),d=n(4706),p=n(2999),v=n(2626),g=n(1320),m=n(7293),y=n(2597),b=n(9909).enforce,w=n(6340),_=n(5112),k=n(9441),x=n(7168),P=_("match"),S=i.RegExp,E=S.prototype,C=i.SyntaxError,T=o(E.exec),R=o("".charAt),O=o("".replace),A=o("".indexOf),I=o("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,$=/a/g,L=new S(j)!==j,D=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||D||k||x||m((function(){return $[P]=!1,S(j)!=j||S($)==$||"/a/i"!=S(j,"i")}))))){for(var B=function(e,t){var n,r,i,o,a,c,p=l(E,this),v=h(e),g=void 0===t,m=[],w=e;if(!p&&v&&g&&e.constructor===B)return e;if((v||l(E,e))&&(e=e.source,g&&(t=d(w))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),w=e,k&&"dotAll"in j&&(r=!!t&&A(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,D&&"sticky"in j&&(i=!!t&&A(t,"y")>-1)&&N&&(t=O(t,/y/g,"")),x&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=R(e,r)))t+=R(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(M,I(e,r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&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+=t:i+=t}return[i,o]}(e))[0],m=o[1]),a=s(S(e,t),p?this:E,B),(r||i||m.length)&&(c=b(a),r&&(c.dotAll=!0,c.raw=B(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=R(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+R(e,++r);return i}(e),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(e){}return a},U=c(S),F=0;U.length>F;)v(B,S,U[F++]);E.constructor=B,B.prototype=E,g(i,"RegExp",B)}w("RegExp")},4916:function(e,t,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(e,t,n){"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),s=n(7293),u=n(4706),c="toString",l=RegExp.prototype.toString,h=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=r&&l.name!=c;(h||f)&&i(RegExp.prototype,c,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},7227:function(e,t,n){"use strict";n(7710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},189:function(e,t,n){n(7227)},7852:function(e,t,n){"use strict";var r,i=n(2109),o=n(1702),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),h=n(4964),f=n(1913),d=o("".endsWith),p=o("".slice),v=Math.min,g=h("endsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(e){var t=u(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:v(s(n),r),o=u(e);return d?d(t,o,i):p(t,i-o.length,i)===o}})},2023:function(e,t,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(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},4723:function(e,t,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(7466),s=n(1340),u=n(4488),c=n(8173),l=n(1530),h=n(7651);i("match",(function(e,t,n){return[function(t){var n=u(this),i=null==t?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),i=s(e),u=n(t,r,i);if(u.done)return u.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var f,d=[],p=0;null!==(f=h(r,i));){var v=s(f[0]);d[p]=v,""===v&&(r.lastIndex=l(i,a(r.lastIndex),c)),p++}return 0===p?null:d}]}))},5306:function(e,t,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(9303),h=n(7466),f=n(1340),d=n(4488),p=n(1530),v=n(8173),g=n(647),m=n(7651),y=n(5112)("replace"),b=Math.max,w=Math.min,_=o([].concat),k=o([].push),x=o("".indexOf),P=o("".slice),S="$0"==="a".replace(/./,"$0"),E=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var o=E?"$":"$0";return[function(e,n){var r=d(this),o=null==e?void 0:v(e,y);return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var a=u(this),s=f(e);if("string"==typeof i&&-1===x(i,o)&&-1===x(i,"$<")){var d=n(t,a,s,i);if(d.done)return d.value}var v=c(i);v||(i=f(i));var y=a.global;if(y){var S=a.unicode;a.lastIndex=0}for(var E=[];;){var C=m(a,s);if(null===C)break;if(k(E,C),!y)break;""===f(C[0])&&(a.lastIndex=p(s,h(a.lastIndex),S))}for(var T,R="",O=0,A=0;A<E.length;A++){for(var I=f((C=E[A])[0]),M=b(w(l(C.index),s.length),0),j=[],$=1;$<C.length;$++)k(j,void 0===(T=C[$])?T:String(T));var L=C.groups;if(v){var D=_([I],j,M,s);void 0!==L&&k(D,L);var N=f(r(i,void 0,D))}else N=g(I,s,M,j,L,i);M>=O&&(R+=P(s,O,M)+N,O=M+I.length)}return R+P(s,O)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||E)},4765:function(e,t,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(4488),s=n(1150),u=n(1340),c=n(8173),l=n(7651);i("search",(function(e,t,n){return[function(t){var n=a(this),i=null==t?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),a=n(t,r,i);if(a.done)return a.value;var c=r.lastIndex;s(c,0)||(r.lastIndex=0);var h=l(r,i);return s(r.lastIndex,c)||(r.lastIndex=c),null===h?-1:h.index}]}))},3123:function(e,t,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7850),u=n(9670),c=n(4488),l=n(6707),h=n(1530),f=n(7466),d=n(1340),p=n(8173),v=n(1589),g=n(7651),m=n(2261),y=n(2999),b=n(7293),w=y.UNSUPPORTED_Y,_=4294967295,k=Math.min,x=[].push,P=o(/./.exec),S=o(x),E=o("".slice);a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=d(c(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);for(var u,l,h,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,y=new RegExp(e.source,p+"g");(u=i(m,y,o))&&!((l=y.lastIndex)>g&&(S(f,E(o,g,u.index)),u.length>1&&u.index<o.length&&r(x,f,v(u,1)),h=u[0].length,g=l,f.length>=a));)y.lastIndex===u.index&&y.lastIndex++;return g===o.length?!h&&P(y,"")||S(f,""):S(f,E(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=c(this),a=null==t?void 0:p(t,e);return a?i(a,t,r,n):i(o,d(r),t,n)},function(e,r){var i=u(this),a=d(e),s=n(o,i,a,r,o!==t);if(s.done)return s.value;var c=l(i,RegExp),p=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?_:r>>>0;if(0===y)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var b=0,x=0,P=[];x<a.length;){m.lastIndex=w?0:x;var C,T=g(m,w?E(a,x):a);if(null===T||(C=k(f(m.lastIndex+(w?x:0)),a.length))===b)x=h(a,x,p);else{if(S(P,E(a,b,x)),P.length===y)return P;for(var R=1;R<=T.length-1;R++)if(S(P,T[R]),P.length===y)return P;x=b=C}}return S(P,E(a,b)),P}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},6755:function(e,t,n){"use strict";var r,i=n(2109),o=n(1702),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),h=n(4964),f=n(1913),d=o("".startsWith),p=o("".slice),v=Math.min,g=h("startsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=u(l(this));c(e);var n=s(v(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return d?d(t,r,n):p(t,n,n+r.length)===r}})},4032:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(133),l=n(7293),h=n(2597),f=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),_=n(1156),k=n(5181),x=n(1236),P=n(3070),S=n(6048),E=n(5296),C=n(1320),T=n(2309),R=n(6200),O=n(3501),A=n(9711),I=n(5112),M=n(6061),j=n(7235),$=n(6532),L=n(8003),D=n(9909),N=n(2092).forEach,B=R("hidden"),U="Symbol",F=D.set,z=D.getterFor(U),W=Object.prototype,H=i.Symbol,V=H&&H.prototype,q=i.TypeError,Y=i.QObject,X=x.f,G=P.f,K=_.f,Z=E.f,J=a([].push),Q=T("symbols"),ee=T("op-symbols"),te=T("wks"),ne=!Y||!Y.prototype||!Y.prototype.findChild,re=u&&l((function(){return 7!=y(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],G(e,t,n),r&&e!==W&&G(W,t,r)}:G,ie=function(e,t){var n=Q[e]=y(V);return F(n,{type:U,tag:e,description:t}),u||(n.description=t),n},oe=function(e,t,n){e===W&&oe(ee,t,n),d(e);var r=v(t);return d(n),h(Q,r)?(n.enumerable?(h(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,B)||G(e,B,m(1,{})),e[B][r]=!0),re(e,r,n)):G(e,r,n)},ae=function(e,t){d(e);var n=p(t),r=b(n).concat(le(n));return N(r,(function(t){u&&!o(se,n,t)||oe(e,t,n[t])})),e},se=function(e){var t=v(e),n=o(Z,this,t);return!(this===W&&h(Q,t)&&!h(ee,t))&&(!(n||!h(this,t)||!h(Q,t)||h(this,B)&&this[B][t])||n)},ue=function(e,t){var n=p(e),r=v(t);if(n!==W||!h(Q,r)||h(ee,r)){var i=X(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ce=function(e){var t=K(p(e)),n=[];return N(t,(function(e){h(Q,e)||h(O,e)||J(n,e)})),n},le=function(e){var t=e===W,n=K(t?ee:p(e)),r=[];return N(n,(function(e){!h(Q,e)||t&&!h(W,e)||J(r,Q[e])})),r};c||(C(V=(H=function(){if(f(V,this))throw q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=A(e),n=function(e){this===W&&o(n,ee,e),h(this,B)&&h(this[B],t)&&(this[B][t]=!1),re(this,t,m(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return z(this).tag})),C(H,"withoutSetter",(function(e){return ie(A(e),e)})),E.f=se,P.f=oe,S.f=ae,x.f=ue,w.f=_.f=ce,k.f=le,M.f=function(e){return ie(I(e),e)},u&&(G(V,"description",{configurable:!0,get:function(){return z(this).description}}),s||C(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),N(b(te),(function(e){j(e)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:oe,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),$(),L(H,U),O[B]=!0},1817:function(e,t,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),h=n(3070).f,f=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 e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(v[t]=!0),t};f(g,d),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(d("test")),y=a(p.toString),b=a(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),k=a("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(s(v,e))return"";var n=m?k(t,7,-1):_(t,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:g})}},763:function(e,t,n){var r=n(2109),i=n(5005),o=n(2597),a=n(1340),s=n(2309),u=n(735),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},2165:function(e,t,n){n(7235)("iterator")},2526:function(e,t,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(e,t,n){var r=n(2109),i=n(2597),o=n(2190),a=n(6330),s=n(2309),u=n(735),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},6649:function(e,t,n){var r=n(7235),i=n(6532);r("toPrimitive"),i()},3680:function(e,t,n){var r=n(5005),i=n(7235),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(e,t,n){"use strict";var r,i=n(7854),o=n(1702),a=n(2248),s=n(2423),u=n(7710),c=n(9320),l=n(111),h=n(2050),f=n(9909).enforce,d=n(8536),p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=u("WeakMap",v,c);if(d&&p){r=c.getConstructor(v,"WeakMap",!0),s.enable();var m=g.prototype,y=o(m.delete),b=o(m.has),w=o(m.get),_=o(m.set);a(m,{delete:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),b(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(l(e)&&!h(e)){var n=f(this);n.frozen||(n.frozen=new r),b(this,e)?_(this,e,t):n.frozen.set(e,t)}else _(this,e,t);return this}})}},4129:function(e,t,n){n(1202)},5743:function(e,t,n){n(5837)},4747:function(e,t,n){var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(e,t,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"),h=a.values,f=function(e,t){if(e){if(e[c]!==h)try{s(e,c,h)}catch(t){e[c]=h}if(e[l]||s(e,l,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},5556:function(e,t,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(590),c=n(1320),l=n(2248),h=n(8003),f=n(4994),d=n(9909),p=n(5787),v=n(614),g=n(2597),m=n(9974),y=n(648),b=n(9670),w=n(111),_=n(1340),k=n(30),x=n(9114),P=n(8554),S=n(1246),E=n(8053),C=n(5112),T=n(4362),R=C("iterator"),O="URLSearchParams",A="URLSearchParamsIterator",I=d.set,M=d.getterFor(O),j=d.getterFor(A),$=Object.getOwnPropertyDescriptor,L=function(e){if(!s)return i[e];var t=$(i,e);return t&&t.value},D=L("fetch"),N=L("Request"),B=L("Headers"),U=N&&N.prototype,F=B&&B.prototype,z=i.RegExp,W=i.TypeError,H=i.decodeURIComponent,V=i.encodeURIComponent,q=a("".charAt),Y=a([].join),X=a([].push),G=a("".replace),K=a([].shift),Z=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return H(e)}catch(t){return e}},ie=function(e){var t=G(e,ee," "),n=4;try{return H(t)}catch(e){for(;n;)t=G(t,ne(n--),re);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},ue=function(e){return G(V(e),oe,se)},ce=f((function(e,t){I(this,{type:A,iterator:P(M(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===q(e,0)?Q(e,1):e:_(e)))};le.prototype={type:O,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,s,u,c=S(e);if(c)for(n=(t=P(e,c)).next;!(r=o(n,t)).done;){if(a=(i=P(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:_(s.value),value:_(u.value)})}else for(var l in e)g(e,l)&&X(this.entries,{key:l,value:_(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=J(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=J(t,"="),X(this.entries,{key:ie(K(n)),value:ie(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,ue(e.key)+"="+ue(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,fe);var e=arguments.length>0?arguments[0]:void 0;I(this,new le(e))},fe=he.prototype;if(l(fe,{append:function(e,t){E(arguments.length,2);var n=M(this);X(n.entries,{key:_(e),value:_(t)}),n.updateURL()},delete:function(e){E(arguments.length,1);for(var t=M(this),n=t.entries,r=_(e),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;t.updateURL()},get:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=[],i=0;i<t.length;i++)t[i].key===n&&X(r,t[i].value);return r},has:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){E(arguments.length,1);for(var n,r=M(this),i=r.entries,o=!1,a=_(e),s=_(t),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 e=M(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=m(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(fe,R,fe.entries,{name:"entries"}),c(fe,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),h(he,O),r({global:!0,forced:!u},{URLSearchParams:he}),!u&&v(B)){var de=a(F.has),pe=a(F.set),ve=function(e){if(w(e)){var t,n=e.body;if(y(n)===O)return t=e.headers?new B(e.headers):new B,de(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:x(0,_(n)),headers:x(0,t)})}return e};if(v(D)&&r({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ve(arguments[1]):{})}}),v(N)){var ge=function(e){return p(this,U),new N(e,arguments.length>1?ve(arguments[1]):{})};U.constructor=ge,ge.prototype=U,r({global:!0,forced:!0,noTargetGet:!0},{Request:ge})}}e.exports={URLSearchParams:he,getState:M}},1637:function(e,t,n){n(5556)},840:function(e,t,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(e,t,n){return setTimeout(_(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.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),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var y=m((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),b=m((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function k(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function x(e,t){return e===s?t:e}function P(e,t,n){g(T(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){g(T(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function C(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function R(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function O(e){return Array.prototype.slice.call(e,0)}function A(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];R(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function I(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var M=1;function j(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var $="ontouchstart"in i,L=I(i,"PointerEvent")!==s,D=$&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",B="mouse",U=["x","y"],F=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){k(e.options.enable,[e])&&n.handler(t)},this.init()}function W(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=H(t)),i>1&&!n.firstMultiple?n.firstMultiple=H(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=t.center=V(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=G(u,c),t.distance=X(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var l,h,p=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,t.scale=a?(l=a.pointers,X((h=r)[0],h[1],F)/X(l[0],l[1],F)):1,t.rotation=a?function(e,t){return G(t[1],t[0],F)+G(e[1],e[0],F)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===s)){var c=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,h=q(u,c,l);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=Y(c,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var v=e.element;E(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(j(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",J="mousemove mouseup";function Q(){this.evEl=Z,this.evWin=J,this.pressed=!1,z.apply(this,arguments)}w(Q,z,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:N,3:"pen",4:B,5:"kinect"},ne="pointerdown",re="pointermove pointerup pointercancel";function ie(){this.evEl=ne,this.evWin=re,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ne="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,z,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ee[r],o=te[e.pointerType]||e.pointerType,a=o==N,s=R(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ue(){this.evTarget=ae,this.evWin=se,this.started=!1,z.apply(this,arguments)}function ce(e,t){var n=O(e.touches),r=O(e.changedTouches);return 12&t&&(n=A(n.concat(r),"identifier",!0)),[n,r]}w(ue,z,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},he="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=he,this.targetIds={},z.apply(this,arguments)}function de(e,t){var n=O(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=O(e.changedTouches),s=[],u=this.target;if(o=n.filter((function(e){return E(e.target,u)})),1===t)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]),12&t&&delete r[a[i].identifier],i++;return s.length?[A(o.concat(s),"identifier",!0),s]:void 0}function pe(){z.apply(this,arguments);var e=_(this.handler,this);this.touch=new fe(this.manager,e),this.mouse=new Q(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ve(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(fe,z,{handler:function(e){var t=le[e.type],n=de.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}),w(pe,z,{handler:function(e,t,n){var r=n.pointerType==N,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ve.call(this,t,n);else if(i&&me.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=I(l.style,"touchAction"),be=ye!==s,we="compute",_e="auto",ke="manipulation",xe="none",Pe="pan-x",Se="pan-y",Ee=function(){if(!be)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==we&&(e=this.compute()),be&&this.manager.element.style&&Ee[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){k(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(C(e,xe))return xe;var t=C(e,Pe),n=C(e,Se);return t&&n?xe:t||n?t?Pe:Se:C(e,ke)?ke:_e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=C(r,xe)&&!Ee.none,o=C(r,Se)&&!Ee["pan-y"],a=C(r,Pe)&&!Ee["pan-x"];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Te=32;function Re(e){this.options=u({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Oe(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ae(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ie(e,t){var n=t.manager;return n?n.get(e):e}function Me(){Re.apply(this,arguments)}function je(){Me.apply(this,arguments),this.pX=null,this.pY=null}function $e(){Me.apply(this,arguments)}function Le(){Re.apply(this,arguments),this._timer=null,this._input=null}function De(){Me.apply(this,arguments)}function Ne(){Me.apply(this,arguments)}function Be(){Re.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ue(e,t){return(t=t||{}).recognizers=x(t.recognizers,Ue.defaults.preset),new Fe(e,t)}function Fe(e,t){this.options=u({},Ue.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(L?ie:D?fe:$?pe:Q))(this,W),this.touchAction=new Ce(this,this.options.touchAction),ze(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function ze(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(i,o){n=I(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Re.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ie(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=Ie(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===R(t,e=Ie(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=Ie(e,this);var t=R(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Oe(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Oe(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Te},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!k(this.options.enable,[this,t]))return this.reset(),void(this.state=Te);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Me,Re,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Te}}),w(je,Me,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Se),24&e&&t.push(Pe),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Me.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ae(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w($e,Me,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Le,Re,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Te},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(De,Me,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ne,Me,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return je.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Ae(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Be,Re,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ke]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Te},failTimeout:function(){return this._timer=p((function(){this.state=Te}),this.options.interval,this),Te},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ue.VERSION="2.0.7",Ue.defaults={domEvents:!1,touchAction:we,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[$e,{enable:!1},["rotate"]],[Ne,{direction:6}],[je,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[Le]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Fe.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Re)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=R(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(T(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(T(e),(function(e){t?n[e]&&n[e].splice(R(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Ue,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Te,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Fe,Input:z,TouchAction:Ce,TouchInput:fe,MouseInput:Q,PointerEventInput:ie,TouchMouseInput:pe,SingleTouchInput:ue,Recognizer:Re,AttrRecognizer:Me,Tap:Be,Pan:je,Swipe:Ne,Pinch:$e,Rotate:De,Press:Le,on:P,off:S,each:g,merge:b,extend:y,assign:u,inherit:w,bindFn:_,prefixed:I}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ue,(r=function(){return Ue}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},4581:function(e,t,n){!function(e,t,n){var r,i,o,a,s,u,c,l,h,f,d,p,v,g,m,y,b,w,_,k,x,P,S,E,C,T,R,O,A,I,M,j,$,L={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 e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,n=e(this).data("cbox-img-attrs");return"object"==typeof n&&e.each(n,(function(e,n){t[e]=n})),t},createIframe:function(){var n=t.createElement("iframe"),r=e(this).data("cbox-iframe-attrs");return"object"==typeof r&&e.each(r,(function(e,t){n[e]=t})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},D="colorbox",N="cboxElement",B="cbox_load",U="cbox_complete",F="cbox_cleanup",z="cbox_closed",W="cbox_purge",H=e("<a/>"),V="div",q=0,Y={};function X(n,r,i){var o=t.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),e(o)}function G(){return n.innerHeight?n.innerHeight:e(n).height()}function K(t,n){n!==Object(n)&&(n={}),this.cache={},this.el=t,this.value=function(t){var r;return void 0===this.cache[t]&&(void 0!==(r=e(this.el).attr("data-cbox-"+t))?this.cache[t]=r:void 0!==n[t]?this.cache[t]=n[t]:void 0!==L[t]&&(this.cache[t]=L[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function Z(e){var t=h.length,n=(T+e)%t;return n<0?t+n:n}function J(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():G())/100:1)*parseInt(e,10))}function Q(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ee(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function te(e){"contains"in i[0]&&!i[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),i.focus())}function ne(e){ne.str!==e&&(i.add(r).removeClass(ne.str).addClass(e),ne.str=e)}function re(n){e(t).trigger(n),H.triggerHandler(n)}var ie=function(){var e,t,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(t)}function a(){(x.get("loop")||h[T+1])&&(o(),t=setTimeout(j.next,x.get("slideshowSpeed")))}function s(){y.html(x.get("slideshowStop")).unbind(r).one(r,u),H.bind(U,a).bind(B,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),H.unbind(U,a).unbind(B,o),y.html(x.get("slideshowStart")).unbind(r).one(r,(function(){j.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){e=!1,y.hide(),o(),H.unbind(U,a).unbind(B,o),i.removeClass(n+"off "+n+"on")}return function(){e?x.get("slideshow")||(H.unbind(F,c),c()):x.get("slideshow")&&h[1]&&(e=!0,H.one(F,c),x.get("slideshowAuto")?s():u(),y.show())}}();function oe(o){var f,m;if(!I){if(f=e(o).data(D),x=new K(o,f),m=x.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(h=e(".cboxElement").filter((function(){return new K(this,e.data(this,D)).get("rel")===m})),-1===(T=h.index(x.el))&&(h=h.add(x.el),T=h.length-1)):h=e(x.el),!O){O=A=!0,ne(x.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=X(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),P=s.height()+l.height()+a.outerHeight(!0)-a.height(),S=u.width()+c.width()+a.outerWidth(!0)-a.width(),E=d.outerHeight(!0),C=d.outerWidth(!0);var y=J(x.get("initialWidth"),"x"),b=J(x.get("initialHeight"),"y"),w=x.get("maxWidth"),$=x.get("maxHeight");x.w=Math.max((!1!==w?Math.min(y,J(w,"x")):y)-C-S,0),x.h=Math.max((!1!==$?Math.min(b,J($,"y")):b)-E-P,0),d.css({width:"",height:x.h}),j.position(),re("cbox_open"),x.get("onOpen"),k.add(g).hide(),i.focus(),x.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",te,!0),H.one(z,(function(){t.removeEventListener("focus",te,!0)}))),x.get("returnFocus")&&H.one(z,(function(){e(x.el).focus()}))}var L=parseFloat(x.get("opacity"));r.css({opacity:L==L?L:"",cursor:x.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),x.get("closeButton")?_.html(x.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var t,r,i,o=j.prep,a=++q;if(A=!0,R=!1,re(W),re(B),x.get("onLoad"),x.h=x.get("height")?J(x.get("height"),"y")-E-P:x.get("innerHeight")&&J(x.get("innerHeight"),"y"),x.w=x.get("width")?J(x.get("width"),"x")-C-S:x.get("innerWidth")&&J(x.get("innerWidth"),"x"),x.mw=x.w,x.mh=x.h,x.get("maxWidth")&&(x.mw=J(x.get("maxWidth"),"x")-C-S,x.mw=x.w&&x.w<x.mw?x.w:x.mw),x.get("maxHeight")&&(x.mh=J(x.get("maxHeight"),"y")-E-P,x.mh=x.h&&x.h<x.mh?x.h:x.mh),t=x.get("href"),M=setTimeout((function(){v.show()}),100),x.get("inline")){var s=e(t).eq(0);i=e("<div>").hide().insertBefore(s),H.one(W,(function(){i.replaceWith(s)})),o(s)}else x.get("iframe")?o(" "):x.get("html")?o(x.get("html")):Q(x,t)?(t=ee(x,t),R=x.get("createImg"),e(R).addClass("cboxPhoto").bind("error.cbox",(function(){o(X(V,"Error").html(x.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var t;x.get("retinaImage")&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),x.get("scalePhotos")&&(r=function(){R.height-=R.height*t,R.width-=R.width*t},x.mw&&R.width>x.mw&&(t=(R.width-x.mw)/R.width,r()),x.mh&&R.height>x.mh&&(t=(R.height-x.mh)/R.height,r())),x.h&&(R.style.marginTop=Math.max(x.mh-R.height,0)/2+"px"),h[1]&&(x.get("loop")||h[T+1])&&(R.style.cursor="pointer",e(R).bind("click.cbox",(function(){j.next()}))),R.style.width=R.width+"px",R.style.height=R.height+"px",o(R)}),1)})),R.src=t):t&&p.load(t,x.get("data"),(function(t,n){a===q&&o("error"===n?X(V,"Error").html(x.get("xhrError")):e(this).contents())}))}()}}function ae(){i||($=!1,f=e(n),i=X(V).attr({id:D,class:!1===e.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=X(V,"Overlay").hide(),v=e([X(V,"LoadingOverlay")[0],X(V,"LoadingGraphic")[0]]),o=X(V,"Wrapper"),a=X(V,"Content").append(g=X(V,"Title"),m=X(V,"Current"),w=e('<button type="button"/>').attr({id:"cboxPrevious"}),b=e('<button type="button"/>').attr({id:"cboxNext"}),y=e('<button type="button"/>').attr({id:"cboxSlideshow"}),v),_=e('<button type="button"/>').attr({id:"cboxClose"}),o.append(X(V).append(X(V,"TopLeft"),s=X(V,"TopCenter"),X(V,"TopRight")),X(V,!1,"clear:left").append(u=X(V,"MiddleLeft"),a,c=X(V,"MiddleRight")),X(V,!1,"clear:left").append(X(V,"BottomLeft"),l=X(V,"BottomCenter"),X(V,"BottomRight"))).find("div div").css({float:"left"}),p=X(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),k=b.add(w).add(m).add(y)),t.body&&!i.parent().length&&e(t.body).append(r,i.append(o,p))}e.colorbox||(e(ae),(j=e.fn.colorbox=e.colorbox=function(n,o){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ae(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),oe(this))}return!!i&&($||($=!0,b.click((function(){j.next()})),w.click((function(){j.prev()})),_.click((function(){j.close()})),r.click((function(){x.get("overlayClose")&&j.close()})),e(t).bind("keydown.cbox",(function(e){var t=e.keyCode;O&&x.get("escKey")&&27===t&&(e.preventDefault(),j.close()),O&&x.get("arrowKey")&&h[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),b.click()))})),e.isFunction(e.fn.on)?e(t).on("click.cbox",".cboxElement",n):e(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var t=e.data(this,D)||{};e.data(this,D,e.extend(t,n))})).addClass(N),new K(a[0],n).get("open")&&oe(a[0])),a):a}).position=function(t,n){var r,h,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)-S+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-P+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),x.get("fixed")?(g.top-=h,g.left-=d,i.css({position:"fixed"})):(p=h,v=d,i.css({position:"absolute"})),!1!==x.get("right")?v+=Math.max(f.width()-x.w-C-S-J(x.get("right"),"x"),0):!1!==x.get("left")?v+=J(x.get("left"),"x"):v+=Math.round(Math.max(f.width()-x.w-C-S,0)/2),!1!==x.get("bottom")?p+=Math.max(G()-x.h-E-P-J(x.get("bottom"),"y"),0):!1!==x.get("top")?p+=J(x.get("top"),"y"):p+=Math.round(Math.max(G()-x.h-E-P,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:x.w+C+S,height:x.h+E+P,top:p,left:v},t){var y=0;e.each(r,(function(e){r[e]===Y[e]||(y=t)})),t=y}Y=r,t||i.css(r),i.dequeue().animate(r,{duration:t||0,complete:function(){m(),A=!1,o[0].style.width=x.w+C+S+"px",o[0].style.height=x.h+E+P+"px",x.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",j.position)}),1),e.isFunction(n)&&n()},step:m})},j.resize=function(e){var t;O&&((e=e||{}).width&&(x.w=J(e.width,"x")-C-S),e.innerWidth&&(x.w=J(e.innerWidth,"x")),d.css({width:x.w}),e.height&&(x.h=J(e.height,"y")-E-P),e.innerHeight&&(x.h=J(e.innerHeight,"y")),e.innerHeight||e.height||(t=d.scrollTop(),d.css({height:"auto"}),x.h=d.height()),d.css({height:x.h}),t&&d.scrollTop(t),j.position("none"===x.get("transition")?0:x.get("speed")))},j.prep=function(n){if(O){var r,o="none"===x.get("transition")?0:x.get("speed");d.remove(),(d=X(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(x.w=x.w||d.width(),x.w=x.mw&&x.mw<x.w?x.mw:x.w,x.w),overflow:x.get("scrolling")?"auto":"hidden"}).css({height:(x.h=x.h||d.height(),x.h=x.mh&&x.mh<x.h?x.mh:x.h,x.h)}).prependTo(a),p.hide(),e(R).css({float:"none"}),ne(x.get("className")),r=function(){var n,r,a=h.length;function s(){!1===e.support.opacity&&i[0].style.removeAttribute("filter")}O&&(r=function(){clearTimeout(M),v.hide(),re(U),x.get("onComplete")},g.html(x.get("title")).show(),d.show(),a>1?("string"==typeof x.get("current")&&m.html(x.get("current").replace("{current}",T+1).replace("{total}",a)).show(),b[x.get("loop")||T<a-1?"show":"hide"]().html(x.get("next")),w[x.get("loop")||T?"show":"hide"]().html(x.get("previous")),ie(),x.get("preloading")&&e.each([Z(-1),Z(1)],(function(){var n=h[this],r=new K(n,e.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=ee(r,i),t.createElement("img").src=i)}))):k.hide(),x.get("iframe")?(n=x.get("createIframe"),x.get("scrolling")||(n.scrolling="no"),e(n).attr({src:x.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(W,(function(){n.src="//about:blank"})),x.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===x.get("transition")?i.fadeTo(o,1,s):s())},"fade"===x.get("transition")?i.fadeTo(o,0,(function(){j.position(0,r)})):j.position(o,r)}},j.next=function(){!A&&h[1]&&(x.get("loop")||h[T+1])&&(T=Z(1),oe(h[T]))},j.prev=function(){!A&&h[1]&&(x.get("loop")||T)&&(T=Z(-1),oe(h[T]))},j.close=function(){O&&!I&&(I=!0,O=!1,re(F),x.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(x.get("fadeOut")||0,0),i.stop().fadeTo(x.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),re(W),d.remove(),setTimeout((function(){I=!1,re(z),x.get("onClosed")}),1)})))},j.remove=function(){i&&(i.stop(),e.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),I=!1,i=null,e(".cboxElement").removeData(D).removeClass(N),e(t).unbind("click.cbox").unbind("keydown.cbox"))},j.element=function(){return e(x.el)},j.settings=L)}(n(3609),document,window)},5557:function(e,t,n){!function(e){if(e.support.touch="ontouchend"in document,e.support.touch){var t,n=e.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){t&&(o(e,"mouseup"),o(e,"mouseout"),this._touchMoved||o(e,"click"),t=!1)},n._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)},n._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t)}}function o(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(r)}}}(n(3609))},1870:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},7053:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.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(t,i):r)||(e.exports=o)},5592:function(e,t,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},6891:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var i,o,a,s={},u=t.split(".")[0],c=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[u]=e[u]||{},i=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:u,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){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&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=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=e.data(this,i);return"instance"===o?(u=r,!1):r?e.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:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,this))}))),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(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(t){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(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||e.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(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).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),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},6177:function(e,t,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.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(!t){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)&&e(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===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!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&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,i):r)||(e.exports=o)},6227:function(e,t,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.slider",e.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 t,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)),t=i.length;t<n;t++)o.push("<span tabindex='0'></span>");this.handles=i.add(e(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(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.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=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.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(t){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:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(r-c.values(t));(i>n||i===n&&(t===c._lastChangedValue||c.values(t)===l.min))&&(i=n,o=e(this),a=t)})),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-o.width()/2,top:t.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(t,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,i,o;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/t)>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(e,t,n){var r={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(e),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),i=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),o[t]=n),n!==i&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var r,i,o;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):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(t,n){var r,i=0;switch("range"===t&&!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)),e.isArray(this.options.values)&&(i=this.options.values.length),this._super(t,n),t){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(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,r;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);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(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return 2*Math.abs(n)>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,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+"%",e(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-t+"%"},{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-t+"%"},{queue:!1,duration:s.animate}))),t=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(t){var n,r,i,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:r=this._valueMin();break;case e.ui.keyCode.END:r=this._valueMax();break;case e.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(t,o,r)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}})})?r.apply(t,i):r)||(e.exports=o)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&r.call(_,o)&&(b=_);var k=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return m.prototype=y,u(k,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(P.prototype),u(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new P(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3609:function(e){"use strict";e.exports=jQuery},5756:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Xe:function(){return s},pX:function(){return o},XM:function(){return a}}),n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(8309),n(4916);var o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}}},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,function(e){if(Array.isArray(e))return r(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4817:function(e,t,n){"use strict";var r;function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Al:function(){return J},dy:function(){return $},Jb:function(){return D},Ld:function(){return N},sY:function(){return ee},YP:function(){return L}}),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(1038),n(489),n(2419);var g=window,m=g.trustedTypes,y=m?m.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),w="?"+b,_="<".concat(w,">"),k=document,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return k.createComment(e)},P=function(e){return null===e||"object"!=v(e)&&"function"!=typeof e},S=Array.isArray,E=function(e){return S(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,R=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,I=/"/g,M=/^(?:script|style|textarea|title)$/i,j=function(e){return function(t){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$:e,strings:t,values:r}}},$=j(1),L=j(2),D=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),B=new WeakMap,U=k.createTreeWalker(k,129,null,!1),F=function(e,t){for(var n,r=e.length-1,i=[],o=2===t?"<svg>":"",a=C,s=0;s<r;s++){for(var u=e[s],c=void 0,l=void 0,h=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(l=a.exec(u)));)f=a.lastIndex,a===C?"!--"===l[1]?a=T:void 0!==l[1]?a=R:void 0!==l[2]?(M.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=O):void 0!==l[3]&&(a=O):a===O?">"===l[0]?(a=null!=n?n:C,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?O:'"'===l[3]?I:A):a===I||a===A?a=O:a===T||a===R?a=C:(a=O,n=void 0);var d=a===O&&e[s+1].startsWith("/>")?" ":"";o+=a===C?u+_:h>=0?(i.push(c),u.slice(0,h)+"$lit$"+u.slice(h)+b+d):u+b+(-2===h?(i.push(void 0),s):d)}var p=o+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(p):p,i]},z=function(){function e(t,n){var r,i=t.strings,o=t._$litType$;f(this,e),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(F(i,o),2),g=v[0],y=v[1];if(this.el=e.createElement(g,n),U.currentNode=this.el.content,2===o){var _=this.el.content,k=_.firstChild;k.remove(),_.append.apply(_,function(e){if(Array.isArray(e))return h(e)}(a=k.childNodes)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||l(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 P,S=[],E=c(r.getAttributeNames());try{for(E.s();!(P=E.n()).done;){var C=P.value;if(C.endsWith("$lit$")||C.startsWith(b)){var T=y[u++];if(S.push(C),void 0!==T){var R=r.getAttribute(T.toLowerCase()+"$lit$").split(b),O=/([.?@])?(.*)/.exec(T);p.push({type:1,index:s,name:O[2],strings:R,ctor:"."===O[1]?Y:"?"===O[1]?G:"@"===O[1]?K:q})}else p.push({type:6,index:s})}}}catch(e){E.e(e)}finally{E.f()}for(var A=0,I=S;A<I.length;A++){var j=I[A];r.removeAttribute(j)}}if(M.test(r.tagName)){var $=r.textContent.split(b),L=$.length-1;if(L>0){r.textContent=m?m.emptyScript:"";for(var D=0;D<L;D++)r.append($[D],x()),U.nextNode(),p.push({type:2,index:++s});r.append($[L],x())}}}else if(8===r.nodeType)if(r.data===w)p.push({type:2,index:s});else for(var N=-1;-1!==(N=r.data.indexOf(b,N+1));)p.push({type:7,index:s}),N+=b.length-1;s++}}return p(e,null,[{key:"createElement",value:function(e,t){var n=k.createElement("template");return n.innerHTML=e,n}}]),e}();function W(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===D)return t;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,c=P(t)?void 0:t._$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(e))._$AT(e,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(t=W(e,u._$AS(e,t.values),u,s)),t}var H=function(){function e(t,n){f(this,e),this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=n}return p(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"v",value:function(e){var t,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:k).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 V(a,a.nextSibling,this,e):1===c.type?l=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(l=new Z(a,this,e)),this.u.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=U.nextNode(),s++)}return o}},{key:"p",value:function(e){var t,n=0,r=c(this.u);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}]),e}(),V=function(){function e(t,n,r,i){var o;f(this,e),this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cm=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cm}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;e=W(this,e,t),P(e)?e===N||null==e||""===e?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==D&&this.g(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):E(e)?this.k(e):this.g(e)}},{key:"O",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"g",value:function(e){this._$AH!==N&&P(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,n=e.values,r=e._$litType$,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=z.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(n);else{var o=new H(i,this),a=o.v(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=B.get(e.strings);return void 0===t&&B.set(e.strings,t=new z(e)),t}},{key:"k",value:function(t){S(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new e(this.O(x()),this.O(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cm=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}]),e}(),q=function(){function e(t,n,r,i,o){f(this,e),this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,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=N}return p(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=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)e=W(this,e,t,0),(o=!P(e)||e!==this._$AH&&e!==D)&&(this._$AH=e);else{var a,s,u=e;for(e=i[0],a=0;a<i.length-1;a++)(s=W(this,u[n+a],t,a))===D&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===N?e=N:e!==N&&(e+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.j(e)}},{key:"j",value:function(e){e===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),Y=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=3,e}return p(n,[{key:"j",value:function(e){this.element[this.name]=e===N?void 0:e}}]),n}(q),X=m?m.emptyScript:"",G=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=4,e}return p(n,[{key:"j",value:function(e){e&&e!==N?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}]),n}(q),K=function(e){i(n,e);var t=a(n);function n(e,r,i,o,a){var s;return f(this,n),(s=t.call(this,e,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((e=null!==(t=W(this,e,n,0))&&void 0!==t?t:N)!==D){var r=this._$AH,i=e===N&&r!==N||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==N&&(r===N||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}]),n}(q),Z=function(){function e(t,n,r){f(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){W(this,e)}}]),e}(),J={P:"$lit$",A:b,M:w,C:1,L:F,R:H,D:E,V:W,I:V,H:q,N:G,U:K,B:Y,F:Z},Q=g.litHtmlPolyfillSupport;null==Q||Q(z,V),(null!==(r=g.litHtmlVersions)&&void 0!==r?r:g.litHtmlVersions=[]).push("2.5.0");var ee=function(e,t,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,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 V(t.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a}},9089:function(e,t,n){"use strict";n.d(t,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(e){return function(t){return"function"==typeof t?function(e,t){return customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){customElements.define(e,t)}}}(e,t)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(t,n){return void 0!==n?function(e,t,n){t.constructor.createProperty(n,e)}(e,t,n):function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?a(a({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}}(e,t)}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return u(l(l({},e),{},{state:!0}))}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){return r=(n={descriptor:function(n){var r={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var i="symbol"==g(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[i]&&(this[i]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(e,t){var n;if(void 0===t){var o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:p(p({},e),{},{key:o});return null!=r&&(a.finisher=function(e){r(e,o)}),a}var s=e.constructor;void 0!==i&&Object.defineProperty(e,t,i(t)),null==r||r(s,t)};var n,r,i}n(2526),n(1817),n(1539),n(7941),n(7327),n(5003),n(4747),n(9337),n(9601),n(2165),n(6992),n(8783),n(3948),n(8674),n(5666),null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements},871:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{oi:function(){return Y},iv:function(){return h},dy:function(){return D.dy},Ld:function(){return D.Ld},sY:function(){return D.sY},YP:function(){return D.YP}}),n(5666),n(9653),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(2165),n(1038),n(7042),n(8309),n(4916),n(4129),n(5827),n(1249);var o,a=window,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),c=new WeakMap,l=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,r!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}var t,n;return t=e,(n=[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(s&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=c.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=1===e.length?e[0]:n.reduce((function(t,n,r){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+e[r+1]}),e[0]);return new l(i,e,u)},f=function(e,t){s?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),r=a.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))},d=s?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.cssRules);try{for(i.s();!(t=i.n()).done;)n+=t.value.cssText}catch(e){i.e(e)}finally{i.f()}return function(e){return new l("string"==typeof e?e:e+"",void 0,u)}(n)}(e):e};function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)})(e)}function x(e,t,n){return(x=P()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&S(i,n.prototype),i}).apply(null,arguments)}function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=window,T=C.trustedTypes,R=T?T.emptyScript:"",O=C.reactiveElementPolyfillSupport,A={toAttribute:function(e,t){switch(t){case Boolean:e=e?R:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},I=function(e,t){return t!==e&&(t==t||e==e)},M={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:I},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(c,e);var t,n,r,i,o,a,s,u=(t=c,n=P(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return _(this,e)});function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e.u(),e}return r=c,o=[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Ep(r,n);void 0!==i&&(e._$Ev.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==y(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||M}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=v(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=p(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(d(i))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(d(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}],(i=[{key:"u",value:function(){var e,t=this;this._$E_=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return f(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,i=this.constructor._$Ep(e,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:A).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,i=r._$Ev.get(e);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:A;this._$El=i,this[i]=a.fromAttribute(t,o.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||I)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(a=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$E_;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){b(i,n,r,o,s,"next",e)}function s(e){b(i,n,r,o,s,"throw",e)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(e,n){return t[n]=e})),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{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(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach((function(e,n){return t._$EO(n,t[n],e)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(k(HTMLElement));j.finalized=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:j}),(null!==(o=C.reactiveElementVersions)&&void 0!==o?o:C.reactiveElementVersions=[]).push("1.5.0");var $,L,D=n(4817);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(){return(F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=z(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function z(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(5743),n(4819),n(5003);var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=q(r);if(i){var n=q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return H(this,e)});function a(){var e;return B(this,a),(e=o.apply(this,arguments)).renderOptions={host:V(e)},e._$Dt=void 0,e}return t=a,(n=[{key:"createRenderRoot",value:function(){var e,t,n=F(q(a.prototype),"createRenderRoot",this).call(this);return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}},{key:"update",value:function(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),F(q(a.prototype),"update",this).call(this,e),this._$Dt=(0,D.sY)(t,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;F(q(a.prototype),"connectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;F(q(a.prototype),"disconnectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return D.Jb}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j);Y.finalized=!0,Y._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:Y});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:Y}),(null!==(L=globalThis.litElementVersions)&&void 0!==L?L:globalThis.litElementVersions=[]).push("3.2.0")}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(e,t,n,r){if(!t){var i=1/0;for(u=0;u<deferred.length;u++){t=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<t.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[t,n,r]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={898:0};__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0;return __webpack_require__.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__=__webpack_require__(2292);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
2
+ (function(){var __webpack_modules__={2292:function(e,t,n){"use strict";n(5666),n(1539),n(9714),n(5827),n(2222),n(1249),n(6833),n(8674),n(7327),n(7941),n(4916),n(6992),n(8783),n(3948),n(1637),n(4765),n(7042),n(4747),n(9826),n(6699),n(2023),n(1058),n(3123),n(5306),n(9600),n(2526),n(1817),n(2165),n(1038),n(8309),n(6891),n(6177),n(5557);var r=n(5685);function i(e,t,n,r,i,o){var a,s=(a=e.prototype[t],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){e.prototype[t]=function(){var t=this instanceof e?n(this):this;return r.apply(t,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",pageChanged:"pageChanged",PostInit:"PostInit",stop:"stop",resize:"resize",userAction:"userAction",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,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,r.throttle)(this.updateNavIndex.bind(this),250,!1)}var t,n;return t=e,(n=[{key:"controlFor",value:function(e){var t=this.br.options.controls[e];return t.visible?t.template?"<li>".concat(t.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(t.className,'" title="').concat(t.label,'">\n <div class="icon icon-').concat(t.iconClassName,'"></div>\n <span class="tooltip">').concat(t.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var e=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(t){return e.controlFor(t)})).join("")}},{key:"_bindViewModeButton",value:function(){var e=this,t=this.br,n=t.options.controls.viewmode,r=[{mode:t.constMode1up,className:"onepg",title:"One-page view"},{mode:t.constMode2up,className:"twopg",title:"Two-page view"},{mode:t.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(e){return!n.excludedModes.includes(e.mode)})),i=r.map((function(e){return e.mode}));n.excludedModes.includes(t.mode)&&t.switchMode(i[0]);for(var s=i.indexOf(t.mode),u=0;u<=s;u++)i.push(i.shift());r.length<2&&this.$nav.find(".".concat(n.className)).remove(),this.br.bind(o.PostInit,(function(){var o=e.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(e){return e.mode===o})),u=r.find((function(e){return e.mode===i[0]}));i.push(o),t.viewModeOrder=i,e.updateViewModeButton(a(n.currentTarget),u.className,u.title),t.switchMode(s.mode)})),s=r.find((function(e){return e.mode===i[0]}));e.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(e,t,n){e.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(t)).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(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.remove("hide")})),this.minimumControls.forEach((function(e){var t=document.querySelector(".controls .".concat(e));t&&t.classList.add("hide")}))}},{key:"init",value:function(){var e=this,t=this.br,n=t.options.navbarTitle,r="rl"===t.pageProgression,i=r?"book_flip_next":"book_flip_prev",o=r?"book_flip_prev":"book_flip_next";this.br.options.controls.bookLeft.className="book_left ".concat(i),this.br.options.controls.bookRight.className="book_right ".concat(o),t.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),t.refs.$BRnav=this.$nav=a('<div class="BRnav BRnavDesktop">\n '.concat(n?'<div class="BRnavTitle">'.concat(n,"</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),t.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:t.book.getNumLeafs()-1,value:t.currentIndex(),range:"min"});return s.on("slide",(function(t,n){return e.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return e.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):t.jumpToIndex(r.value),!0})),t.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(t.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(e){var t=this.br,n=t.book.getPageNum(e),r=(t.book.getPageProp(e,"pageType"),t.book.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=t.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(e,t,n,r,i){if("n"==n[0])return"(".concat(e+1," of ").concat(t,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(e,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(e){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(e))}},{key:"updateNavIndex",value:function(e){e=void 0!==e?e:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",e)}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function d(e,t,n){return(d=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&v(i,n.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(489),n(2419),n(1532);var m={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},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(o,e);var t,n,r,i=(t=o,n=p(),function(){var e,r=g(t);if(n){var i=g(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return h(this,e)});function o(){return l(this,o),i.apply(this,arguments)}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r}(f(Error)),b=n(105),w=(n(4581),n(3609));function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t}var t,n;return t=e,(n=[{key:"buildToolbarElement",value:function(){var e=this.br,t=e.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(e.logoURL,'"></a>\n </span>'):"";e.refs.$BRtoolbar=w('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(t,'\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=e.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return e.bookUrl&&e.options.enableBookTitleLink?n.append(w("<a>").attr({href:e.bookUrl,title:e.bookUrlTitle}).addClass("BRreturn").html(e.bookUrlText||e.bookTitle)):e.bookTitle&&n.append(e.bookUrlText||e.bookTitle),e.refs.$BRtoolbar}},{key:"initToolbar",value:function(e,t){var n=this.br;n.refs.$br.append(this.buildToolbarElement()),n.$(".BRnavCntl").addClass("BRup"),n.$(".pause").hide(),n.refs.$BRtoolbar.append(),n.canSwitchToMode(n.constMode2up)||n.$(".two_page_mode, .play, .pause").hide(),n.canSwitchToMode(n.constModeThumb)||n.$(".thumbnail_mode").hide(),n.canSwitchToMode(n.constMode2up)||n.canSwitchToMode(n.constModeThumb)||n.$(".one_page_mode").hide(),w('<div style="display: none;"></div>').append(w('\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(w('\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(n.refs.$br),n.$(".BRinfo .BRfloatTitle a").attr({href:n.bookUrl}).text(n.bookTitle).addClass("title"),this.buildInfoDiv(n.$(".BRinfo")),this.buildShareDiv(n.$(".BRshare")),n.$(".share").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRshare"),onLoad:function(){n.trigger(o.stop),n.$(".BRpageviewValue").val(window.location.href)}}),n.$(".info").colorbox({inline:!0,opacity:"0.5",href:n.$(".BRinfo"),onLoad:function(){n.trigger(o.stop)}})}},{key:"buildShareDiv",value:function(e){var t=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=w('\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(e),a.find(".fieldset-embed input").on("change",(function(e){var t=w(e.target).parents("form").first(),r={};r.mode=w(t.find(".fieldset-embed input[name=pages]:checked")).val(),t.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&t.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(e){return e.target.select()})),a.find(".facebook-share-button").on("click",(function(){P("https://www.facebook.com/sharer.php?"+w.param({u:t._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){P("https://twitter.com/intent/tweet?"+w.param({url:t._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var e="".concat(n.bookTitle,"\n\n").concat(t._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(e))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(e)}},{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 t=this.br;e.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=w('<div class="BRinfoLeftCol"></div>');t.thumbnail&&n.append(w('\n <div class="BRimageW">\n <img src="'.concat(t.thumbnail,'" alt="').concat((0,r.escapeHTML)(t.bookTitle),'" />\n </div>')));var i,o=w('<div class="BRinfoRightCol">'),a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,h=s.value,f="Title"===l?(0,r.escapeHTML)(h):h;o.append(w('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(f,"</div>\n </div>")))}}catch(e){a.e(e)}finally{a.f()}var d=t.bookUrlMoreInfo?t.bookUrlMoreInfo:t.bookTitle;d&&t.bookUrl&&o.append(w('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(t.bookUrl,'">\n ').concat((0,r.escapeHTML)(d),"\n </a>\n </div>\n </div>")));var p=w('<div class="BRfloatFoot BRinfoFooter"></div>'),v=w('<div class="BRinfoW mv20-lg">').append([n,o,w('<br style="clear:both"/>')]);e.append(v,p).addClass("wide")}},{key:"getToolBarHeight",value:function(){var e=this.br.refs.$BRtoolbar;return e&&"block"===e.css("display")?e.outerHeight()+parseInt(e.css("top")):0}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function P(e,t,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-t/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(e,r,u)}function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(2707),n(4553),n(6535),n(9244);var O=function(){function e(t){var n,r,i,o;C(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:m.ppi,this.pageProgression=null!==(i=null===(o=t.options)||void 0===o?void 0:o.pageProgression)&&void 0!==i?i:m.pageProgression,this._medianPageSize=null,this._getDataFlattenedCached=null}return R(e,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var e,t=[],n=[],r=S(this.pagesIterator());try{for(r.s();!(e=r.n()).done;){var i=e.value;t.push(i.widthInches),n.push(i.heightInches)}}catch(e){r.e(e)}finally{r.f()}return t.sort(),n.sort(),this._medianPageSize={width:t[Math.floor(t.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(e){return e=(0,r.clamp)(e,0,this.getNumLeafs()-1),this.getPageWidth(e)}},{key:"_getPageHeight",value:function(e){var t=(0,r.clamp)(e,0,this.getNumLeafs()-1);return this.getPageHeight(t)}},{key:"getPageIndex",value:function(e){var t=this.getPageIndices(e);return t.length?t[t.length-1]:void 0}},{key:"getPageIndices",value:function(e){var t=[];if("n"==e.slice(0,1))try{var n=e.slice(1,e.length),r=parseInt(n);return t.push(r),t}catch(e){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==e&&t.push(i);return t}},{key:"getPageName",value:function(e){return"Page "+this.getPageNum(e)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(e){return this.getPageProp(e,"width")}},{key:"getPageHeight",value:function(e){return this.getPageProp(e,"height")}},{key:"getPageURI",value:function(e,t,n){return this.getPageProp(e,"viewable",!0)?this.getPageProp(e,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(e){return this.getPageProp(e,"pageSide")||(e%2==0?"R":"L")}},{key:"getPageNum",value:function(e){var t=this.getPageProp(e,"pageNum");return void 0===t?"n".concat(e):t}},{key:"getPageProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(e,t,n)}},{key:"getSpreadIndices",value:function(e){return"rl"==this.pageProgression?"R"==this.getPageSide(e)?[e+1,e]:[e,e-1]:"L"==this.getPageSide(e)?[e,e+1]:[e-1,e]}},{key:"leafNumToIndex",value:function(e){var t=this._getDataFlattened().findIndex((function(t){return t.leafNum==e}));return t>-1?t:e}},{key:"parsePageString",value:function(e){var t,n=/^leaf(\d+)/.exec(e);return n?null===(t=this.leafNumToIndex(parseInt(n[1],10)))&&(t=void 0):t=this.getPageIndex(e),t}},{key:"getPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(t||!(e<0||e>=n))return e<0&&e>=-n&&(e+=n),new A(this,e%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.start,r=void 0===n?0:n,i=t.end,o=void 0===i?1/0:i,a=t.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){e.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){e.next=8;break}return e.abrupt("continue",10);case 8:return e.next=10,c;case 10:u++,e.next=4;break;case 13:case"end":return e.stop()}}),e,this)}))},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var e=null,t=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===e?2===r.length?"L":"R":"L"===e?"R":"L"),e=i.pageSide,!1===i.viewable?i.unviewablesStart=null===t?t=n:t:t=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened(),i=isNaN(e)||e<0||e>=r.length;return i||void 0===r[e][t]?n:r[e][t]}}]),e}(),A=function(){function e(t,n){C(this,e),this.ppi=t._getDataProp(n,"ppi",t.ppi),this.book=t,this.index=n,this.width=t.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=t.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=t.getPageSide(n),this.leafNum=t._getDataProp(n,"leafNum",this.index),this.isViewable=t._getDataProp(n,"viewable",!0),this.unviewablesStart=t._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return R(e,[{key:"makeViewable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=e)if(e){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var t,n=S(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(e){n.e(e)}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(e){o.e(e)}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(e){var t="lr"===this.book.pageProgression?this.index-e:this.index+e;return this.book.getPage(t)}},{key:"goRight",value:function(e){var t="lr"===this.book.pageProgression?this.index+e:this.index-e;return this.book.getPage(t)}},{key:"getURI",value:function(e,t){return this.book.getPageURI(this.index,e,t)}},{key:"getURISrcSet",value:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(e),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(e){return"".concat(t.getURI(e,n)," ").concat(i/e,"x")})).join(", ")}},{key:"findNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new e(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new e(this.book,this.index-1)}}},{key:"findLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findPrev({combineConsecutiveUnviewables:n}):this.findNext({combineConsecutiveUnviewables:n})}},{key:"findRight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combineConsecutiveUnviewables,n=void 0!==t&&t;return"lr"===this.book.pageProgression?this.findNext({combineConsecutiveUnviewables:n}):this.findPrev({combineConsecutiveUnviewables:n})}}]),e}(),I=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(3371),n(9653),n(9089)),M=n(871),j=(n(189),n(4817)),$=n(5756);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=(0,$.XM)(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=F(r);if(i){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function a(e){var t,n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),e.type!==$.pX.ATTRIBUTE||"style"!==e.name||(null===(n=e.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 U(t)}return t=a,(n=[{key:"render",value:function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return null==r?t:t+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(e,t){var n=this,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],i=e.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(e){null==r[e]&&(n.vt.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")})),r){var s=r[a];null!=s&&(this.vt.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return j.Jb}}])&&N(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}($.Xe)),W=(n(2420),n(840)),H=n.n(W);function V(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){V(o,r,i,a,s,"next",e)}function s(e){V(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"_preventEvent",(function(e){return e.preventDefault(),!1})),X(this,"_pinchStart",(function(){var e,t;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.mode.autoFit="none",n.detachCtrlZoom(),null===(e=(t=n.mode).detachScrollListeners)||void 0===e||e.call(t)})),X(this,"_pinchMove",function(){var e=q(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.lastEvent=t,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(e){return r=e})),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 e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),X(this,"_pinchEnd",q(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.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===(t=(r=n.mode).attachScrollListeners)||void 0===t||t.call(r);case 8:case"end":return e.stop()}}),e)})))),X(this,"_pinchCancel",q(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._pinchEnd();case 2:case"end":return e.stop()}}),e)})))),X(this,"_handleCtrlWheel",(function(e){if(e.ctrlKey){e.preventDefault();var t=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(e),n.mode.autoFit="none",n.mode.scale*=1-Math.sign(e.deltaY)*t}})),this.mode=t,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete H().defaults.cssProps.userSelect,this.hammer=new(H().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(H().Pinch))}var t,n;return t=e,(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(e){var t=e.clientX,n=e.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(t-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}},{key:"updateViewportOnZoom",value:function(e,t){var n=this.mode.$container,r=n.scrollTop,i=n.scrollLeft,o=this.mode.htmlDimensionsCacher.clientWidth,a=this.mode.htmlDimensionsCacher.clientHeight,s=e/t,u=this.mode.scaleCenter.x,c=this.mode.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o}}])&&Y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Z(this,"clientWidth",100),Z(this,"clientHeight",100),Z(this,"boundingClientRect",{top:0,left:0}),Z(this,"updateClientSizes",(function(){var e=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=e.top,n.boundingClientRect.left=e.left})),Z(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=t}var t,n;return t=e,(n=[{key:"attachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&K(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ee=function(){function e(t,n){var r,i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=function(){o.element.classList.add(o.className),clearTimeout(o.timeout),o.timeout=setTimeout((function(){o.element.classList.remove(o.className)}),600)},(r="onScroll")in this?Object.defineProperty(this,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[r]=i,this.element=t,this.className=n,this.timeout=null}var t,n;return t=e,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&Q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie,oe=ne((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),re(this,"screenDPI",(0,r.calcScreenDPI)()),re(this,"worldUnitsToRenderedPixels",(function(e){return e*n.screenDPI})),re(this,"renderedPixelsToWorldUnits",(function(e){return e/n.screenDPI})),re(this,"renderedPixelsToVisiblePixels",(function(e){return e*n.mode.scale})),re(this,"visiblePixelsToRenderedPixels",(function(e){return e/n.mode.scale})),re(this,"worldUnitsToVisiblePixels",(function(e){return n.renderedPixelsToVisiblePixels(n.worldUnitsToRenderedPixels(e))})),re(this,"visiblePixelsToWorldUnits",(function(e){return n.renderedPixelsToWorldUnits(n.visiblePixelsToRenderedPixels(e))})),this.mode=t}));function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e){return function(e){if(Array.isArray(e))return be(e)}(e)||we(e)||ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(){he=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!pe(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||we(t)||ye(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=me(e.key),r=String(e.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=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"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=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ge(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=ge(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function fe(e){var t,n=me(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function de(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function pe(e){return e.decorators&&e.decorators.length}function ve(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ge(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function me(e){var t=function(e,t){if("object"!==ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===ae(t)?t:String(t)}function ye(e,t){if(e){if("string"==typeof e)return be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function we(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _e(){return(_e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ke(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ke(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xe(e)););return e}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e,t,n,r){var i=he(),o=t((function(e){i.initializeInstanceElements(e,a.elements)}),n),a=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(ve(o.descriptor)||ve(i.descriptor)){if(pe(o)||pe(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(pe(o)){if(pe(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}de(o,i)}else t.push(o)}return t}(o.d.map(fe)),e);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,I.Mo)("br-mode-1up")],(function(e,t){var n=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(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(e){return!1}}(),function(){var e,t=xe(r);if(i){var n=xe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ce(this,e)});function a(t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),e(le(r)),r.book=t,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(t);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"coordSpace",value:function(){return new oe(this)}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,I.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,I.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,I.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 e=this.coordSpace.worldUnitsToRenderedPixels;return{width:e(this.worldDimensions.width)+"px",height:e(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,I.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new J(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new G(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new ee(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(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.coordSpace.worldUnitsToVisiblePixels(this.pageTops[e]-this.SPACING_IN/2),i&&setTimeout((function(){return t.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(e){_e(xe(n.prototype),"firstUpdated",this).call(this,e),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e);this.scale=this.computeDefaultScale(t)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&this.updatePages(),e.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),e.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),e.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.visiblePages.length&&(this.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled())),e.has("scale")){var t=e.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.smoothZoomer.updateViewportOnZoom(this.scale,t),this.updateVisibleRegion(),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"updatePages",value:function(){this.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))}},{kind:"method",key:"connectedCallback",value:function(){_e(xe(n.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(),_e(xe(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e,t,n=this;return(0,M.dy)(ie||(e=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],t||(t=e.slice(0)),ie=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),z(this.worldStyle),this.renderedPages.map((function(e){return n.renderPage(e)})))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,i=e.coordSpace.visiblePixelsToWorldUnits(e.htmlDimensionsCacher.clientWidth),o=n(t.widthInches),a=n(t.heightInches),s=Math.max(e.SPACING_IN,(i-t.widthInches)/2),u=e.pageTops[t.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=e.createPageContainer(t).update({dimensions:{width:o,height:a,top:0,left:0},reduce:t.width/r(t.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",e.visiblePages.includes(t)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var e=this;return function(){var t=e.scrollTop,n=e.scrollLeft,r=e.htmlDimensionsCacher.clientWidth,i=e.htmlDimensionsCacher.clientHeight,o=e.coordSpace.visiblePixelsToWorldUnits;e.visibleRegion={top:o(t),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t;return[null===(e=this.visiblePages[0])||void 0===e?void 0:e.prev].concat(se(this.visiblePages),[null===(t=this.visiblePages[this.visiblePages.length-1])||void 0===t?void 0:t.next]).filter((function(e){return e})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var e=this;return(0,r.throttle)((function(){e.renderedPages=e.computeRenderedPages(),e.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(e,t){var n,r={},i=t,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ye(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+t}}catch(e){o.e(e)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(e){var t=this.coordSpace.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,t/(e.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,se(this.pages.map((function(e){return e.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(this.pages.map((function(e){return e.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var e=this;return this.pages.filter((function(t){var n=e.pageTops[t.index],r=n+t.heightInches,i=e.visibleRegion.top;return n<=i+e.visibleRegion.height&&r>=i}))}},{kind:"field",key:"attachScrollListeners",value:function(){var e=this;return function(){e.addEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var e=this;return function(){e.removeEventListener("scroll",e.updateVisibleRegion),e.scrollClassAdder.detach()}}}]}}),M.oi),Se=n(3609);function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){return e.split(" ").map((function(e){return e+t})).join(" ")}function Oe(e){var t,n;return void 0!==e.clientX?(t=e.clientX,n=e.clientY):void 0!==e.screenX?(t=e.screenX,n=e.screenY):void 0!==e.targetTouches?(t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY):void 0===e.originalEvent?console.error("don't understand x and y for "+e.type,e):void 0!==e.originalEvent.clientX?(t=e.originalEvent.clientX,n=e.originalEvent.clientY):void 0!==e.originalEvent.screenX?(t=e.originalEvent.screenX,n=e.originalEvent.screenY):void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches[0].pageX,n=e.originalEvent.targetTouches[0].pageY),{left:t,top:n}}var Ae={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},Ie=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ee(this,e),Te(this,"_dragStartHandler",(function(e){return!!n._shouldAbort()||!(e.which>1||!n.settings.acceptPropagatedEvent&&e.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=Oe(e),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(e){n.handling_element[0].addEventListener(e,n._dragEndHandler,!0)})),n.settings.preventDefault?(e.preventDefault(),!1):void 0)})),Te(this,"_dragContinueHandler",(function(e){if(n._shouldAbort())return!0;var t=Oe(e),r=t.left-n.lastCoord.left,i=t.top-n.lastCoord.top,o=n.settings.scrollWindow?Se(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=t,n.settings.preventDefault?(e.preventDefault(),!1):void 0})),Te(this,"_dragEndHandler",(function(e){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(e){n.handling_element[0].removeEventListener(e,n._dragEndHandler,!0)}));var t={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(t.left,t.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1):void 0})),this.handling_element=Se(t),this.settings=Se.extend({},Ae,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=Re(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=Re(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var t,n;return t=e,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Me=n(3609);function je(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function $e(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){je(o,r,i,a,s,"next",e)}function s(e){je(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var De,Ne,Be,Ue,Fe,ze,We,He,Ve=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode1UpLit=new Pe(n,t),this.$el=Me(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var t,n;return t=e,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout($e(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=7;break}return e.mode1UpLit.initFirstRender(t),e.everShown=!0,e.mode1UpLit.requestUpdate(),n.next=6,e.mode1UpLit.updateComplete;case 6:new Ie(e.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:e.mode1UpLit.jumpToIndex(t),setTimeout((function(){e.mode1UpLit.updateVisibleRegion()}));case 9:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){var i=Math.abs(this.br.currentIndex()-e),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(e,{smooth:o})}},{key:"zoom",value:function(e){switch(e){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&Le(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qe=(n(4723),n(3609));function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ge(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ge(o,r,i,a,s,"next",e)}function s(e){Ge(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rt(this,n)}}function rt(e,t){if(t&&("object"===Ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}function it(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ot(e,t,n,r){var i=at();if(r)for(var o=0;o<r.length;o++)i=r[o](i);var a=t((function(e){i.initializeInstanceElements(e,s.elements)}),n),s=i.decorateClass(function(e){for(var t=[],n=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},r=0;r<e.length;r++){var i,o=e[r];if("method"===o.kind&&(i=t.find(n)))if(lt(o.descriptor)||lt(i.descriptor)){if(ct(o)||ct(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(ct(o)){if(ct(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}ut(o,i)}else t.push(o)}return t}(a.d.map(st)),e);return i.initializeClassElements(a.F,s.elements),i.runClassFinishers(a.F,s.finishers)}function at(){at=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(n){t.forEach((function(t){t.kind===n&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var n=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var i=t.placement;if(t.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?e:n;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var n=t.descriptor;if("field"===t.kind){var r=t.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,n)},decorateClass:function(e,t){var n=[],r=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ct(e))return n.push(e);var t=this.decorateElement(e,i);n.push(t.element),n.push.apply(n,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:n,finishers:r};var o=this.decorateConstructor(n,t);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(e,t,n){var r=t[e.placement];if(!n&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var n=[],r=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),u=this.toElementFinisherExtras((0,i[o])(s)||s);e=u.element,this.addElementPlacement(e,t),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],t);n.push.apply(n,c)}}return{element:e,finishers:r,extras:n}},decorateConstructor:function(e,t){for(var n=[],r=t.length-1;r>=0;r--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;a<e.length-1;a++)for(var s=a+1;s<e.length;s++)if(e[a].key===e[s].key&&e[a].placement===e[s].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:n}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){var t;if(void 0!==e)return(t=e,function(e){if(Array.isArray(e))return e}(t)||vt(t)||dt(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var n=ft(e.key),r=String(e.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=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:t,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==t?this.disallowProperty(e,"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=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:ht(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var n=ht(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:n}},runClassFinishers:function(e,t){for(var n=0;n<t.length;n++){var r=(0,t[n])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,n){if(void 0!==e[t])throw new TypeError(n+" can't have a ."+t+" property.")}};return e}function st(e){var t,n=ft(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:n,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function ut(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function ct(e){return e.decorators&&e.decorators.length}function lt(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function ht(e,t){var n=e[t];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+t+"' to be a function");return n}function ft(e){var t=function(e,t){if("object"!==Ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Ye(t)?t:String(t)}function dt(e,t){if(e){if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function gt(){return(gt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=mt(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function mt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=yt(e)););return e}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=ot([(0,I.Mo)("br-mode-2up")],(function(e,t){var n,i,o=function(t){et(r,t);var n=nt(r);function r(t,i){var o;return Qe(this,r),o=n.call(this),e(it(o)),o.book=t,o.br=i,o}return Je(r)}(t);return{F:o,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",key:"coordSpace",value:function(){return new oe(this)}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",key:"initialScale",value:function(){return 1}},{kind:"field",decorators:[(0,I.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,I.Cb)({type:String})],key:"autoFit",value:function(){return"auto"}},{kind:"field",key:"flipSpeed",value:function(){return 400}},{kind:"field",decorators:[(0,I.IO)(".br-mode-2up__leafs--flipping")],key:"$flippingEdges",value:void 0},{kind:"field",decorators:[(0,I.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"get",key:"pageLeft",value:function(){return this.visiblePages.find((function(e){return"L"==e.pageSide}))}},{kind:"get",key:"pageRight",value:function(){return this.visiblePages.find((function(e){return"R"==e.pageSide}))}},{kind:"field",decorators:[(0,I.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,I.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(e){return this.book.getMedianPageSizeInches().height}},{kind:"method",key:"computePageWidth",value:function(e){return e.widthInches*this.computePageHeight(e)/e.heightInches}},{kind:"method",key:"computePositions",value:function(e,t){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==e?void 0:e.index)&&void 0!==n?n:0:e?s-e.index:0,l=this._leftCoverWidth+c*this.PAGE_THICKNESS_IN,h=l,f=a(e||t.right),d=l-f,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,_=t?a(t):0,k=w+_,x="lr"==this.book.pageProgression?t?s-t.index:0:null!==(i=null==t?void 0:t.index)&&void 0!==i?i:0,P=k,S="right"!=(null===(o=this.activeFlip)||void 0===o?void 0:o.direction)?0:u,E=P+S,C=Math.ceil(x/2)*this.PAGE_THICKNESS_IN-S,T=P+C+S;return{leafEdgesLeftStart:b,leafEdgesLeftMainWidth:g,leafEdgesLeftMovingStart:y,leafEdgesLeftMovingWidth:v,leafEdgesLeftEnd:p,leafEdgesLeftFullWidth:m,pageLeftStart:d,pageLeftWidth:f,pageLeftEnd:h,gutter:l,pageRightStart:w,pageRightWidth:_,pageRightEnd:k,leafEdgesRightStart:P,leafEdgesRightMovingWidth:S,leafEdgesRightMainStart:E,leafEdgesRightMainWidth:C,leafEdgesRightEnd:T,leafEdgesRightFullWidth:S+C,spreadWidth:k-d,bookWidth:T-b}}},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new J(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new G(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=Ke(regeneratorRuntime.mark((function e(t){var n,r,i,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=n.smooth,i=void 0===r||r,e.next=3,this.flipAnimation(t,{animate:i});case 3:case"end":return e.stop()}}),e,this)}))),function(e){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(e){gt(yt(o.prototype),"firstUpdated",this).call(this,e),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"connectedCallback",value:function(){gt(yt(o.prototype),"connectedCallback",this).call(this),this.htmlDimensionsCacher.attachResizeListener(),this.smoothZoomer.attach()}},{kind:"method",key:"disconnectedCallback",value:function(){this.htmlDimensionsCacher.detachResizeListener(),this.smoothZoomer.detach(),gt(yt(o.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"updated",value:function(e){if(e.has("book")&&(this._leftCoverWidth=this.computePageWidth(this.book.getPage("lr"==this.book.pageProgression?0:-1))),e.has("visiblePages")&&(this.renderedPages=this.computeRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(e){return e.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),e.has("autoFit")&&"none"!=this.autoFit&&this.resizeViaAutofit(),e.has("scale")){var t=e.get("scale");this.recenter(),this.smoothZoomer.updateViewportOnZoom(this.scale,t)}}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"method",key:"render",value:function(){var e=this;return(0,M.dy)(De||(De=Xe(['\n <div class="br-mode-2up__book" @mouseup=',">\n ","\n ","\n ","\n </div>"])),this.handlePageClick,this.renderLeafEdges("left"),this.renderedPages.map((function(t){return e.renderPage(t)})),this.renderLeafEdges("right"))}},{kind:"field",key:"createPageContainer",value:function(){var e=this;return function(t){return e.pageContainerCache[t.index]||(e.pageContainerCache[t.index]=e.br._createPageContainer(t.index))}}},{kind:"method",key:"initFirstRender",value:function(e){var t=this.book.getPage(e),n=t.spread;this.visiblePages=("lr"==this.book.pageProgression?[n.left,n.right]:[n.right,n.left]).filter((function(e){return e})),this.htmlDimensionsCacher.updateClientSizes(),this.resizeViaAutofit(t),this.initialScale=this.scale}},{kind:"field",key:"renderPage",value:function(){var e=this;return function(t){var n=e.coordSpace.worldUnitsToRenderedPixels,r=e.coordSpace.worldUnitsToVisiblePixels,i=n(e.computePageWidth(t)),o=n(e.computePageHeight(t)),a=e.visiblePages.map((function(e){return e.index})).includes(t.index),s=e.computePositions(t.spread.left,t.spread.right),u=e.createPageContainer(t).update({dimensions:{width:i,height:o,top:0,left:n("L"==t.pageSide?s.pageLeftStart:s.pageLeftEnd)},reduce:t.width/r(e.computePageWidth(t))}).$container[0];return u.classList.toggle("BRpage-visible",a),u}}},{kind:"field",key:"renderLeafEdges",value:function(){var e=this;return function(t){var n;if(!e.visiblePages.length)return(0,M.dy)(Ne||(Ne=Xe([""])));if(!("left"==t?e.positions.leafEdgesLeftFullWidth:e.positions.leafEdgesRightFullWidth))return(0,M.dy)(Be||(Be=Xe([""])));var r=e.coordSpace.worldUnitsToRenderedPixels,i=r(e.computePageHeight(e.visiblePages[0])),o=(null===(n=e.activeFlip)||void 0===n?void 0:n.direction)==t,a=e.book.getPage("lr"==e.book.pageProgression?0:e.book.getNumLeafs()-1),s=e.book.getPage("lr"==e.book.pageProgression?e.book.getNumLeafs()-1:0),u=o?e.activeFlip.pagesFlippingCount:0,c="left"==t?[a.index,e.pageLeft.goLeft(u).index]:[e.pageRight.goRight(u).index,s.index],l={width:"".concat(r("left"==t?e.positions.leafEdgesLeftMainWidth:e.positions.leafEdgesRightMainWidth),"px"),height:"".concat(i,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftStart:e.positions.leafEdgesRightMainStart),"px")},h=(0,M.dy)(Ue||(Ue=Xe(["\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],e.book,(function(t){return e.br.jumpToIndex(t)}),t,t,z(l));if(o){var f=r("left"==t?e.positions.leafEdgesLeftMovingWidth:e.positions.leafEdgesRightMovingWidth),d={width:"".concat(f,"px"),height:"".concat(i,"px"),left:"".concat(r("left"==t?e.positions.leafEdgesLeftMovingStart:e.positions.leafEdgesRightStart),"px"),pointerEvents:"none",transformOrigin:"".concat(r("left"==t?e.positions.pageLeftWidth:-e.positions.pageRightWidth)+f/2,"px 0")},p=(0,M.dy)(Fe||(Fe=Xe(["\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 "])),e.activeFlip.pagesFlipping[0],e.activeFlip.pagesFlipping[1],e.book,t,t,z(d));return"left"==t?(0,M.dy)(ze||(ze=Xe(["","",""])),h,p):(0,M.dy)(We||(We=Xe(["","",""])),p,h)}return h}}},{kind:"method",key:"resizeViaAutofit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0];this.scale=this.computeScale(e,this.autoFit)}},{kind:"method",key:"recenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.visiblePages[0],t=this.computeTranslate(e,this.scale);this.$book.style.transform="translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) scale(").concat(this.scale,")")}},{kind:"method",key:"computeRenderedPages",value:function(){var e,t,n,r,i,o,a;return[null===(e=this.visiblePages[0])||void 0===e||null===(t=e.prev)||void 0===t?void 0:t.prev,null===(n=this.visiblePages[0])||void 0===n?void 0:n.prev].concat((a=this.visiblePages,function(e){if(Array.isArray(e))return pt(e)}(a)||vt(a)||dt(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(e){return e})).slice(0,10)}},{kind:"method",key:"computeScale",value:function(e,t){if(!e)return 1;var n=e.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"==t)u=Math.min(a,1);else if("height"==t)u=Math.min(s,1);else if("auto"==t)u=Math.min(a,s,1);else{if("none"!=t)throw new Error("Invalid autoFit value: ".concat(t));u=this.scale}return u}},{kind:"method",key:"computeTranslate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;if(!e)return{x:0,y:0};var n=e.spread,r=this.computePositions(n.left,n.right),i=r.bookWidth,o=this.computePageHeight(n.left||n.right),a=this.coordSpace.worldUnitsToRenderedPixels(i)*t,s=this.coordSpace.worldUnitsToRenderedPixels(o)*t,u=this.coordSpace.worldUnitsToRenderedPixels(-r.leafEdgesLeftStart)*t,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:(n=Ke(regeneratorRuntime.mark((function e(t){var n,i,o,a,s,u,c,l,h,f,d,p,v,g,m,y,b,w,_,k,x,P,S,E,C,T,R,O,A,I,M=this,j=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=j.length>1&&void 0!==j[1]?j[1]:{},c=u.animate,l=void 0===c||c,h=null===(n=this.pageLeft||this.pageRight)||void 0===n?void 0:n.spread){e.next=4;break}return e.abrupt("return");case 4:if(t=this.parseNextSpread(t),!this.activeFlip&&t){e.next=7;break}return e.abrupt("return");case 7:if(f=this.book.pageProgression,d=null!==(i=null===(o=h.left)||void 0===o?void 0:o.index)&&void 0!==i?i:"lr"==f?-1:this.book.getNumLeafs(),p=null!==(a=null===(s=t.left)||void 0===s?void 0:s.index)&&void 0!==a?a:"lr"==f?-1:this.book.getNumLeafs(),d!=p){e.next=12;break}return e.abrupt("return");case 12:v=this.renderedPages.map((function(e){return e.index})),g=[],m=0,y=[t.left,t.right];case 15:if(!(m<y.length)){e.next=24;break}if(b=y[m]){e.next=19;break}return e.abrupt("continue",21);case 19:g.push(this.createPageContainer(b)),v.includes(b.index)||this.renderedPages.push(b);case 21:m++,e.next=15;break;case 24:if(w=this.computeTranslate(h.left||h.right,this.scale),_=this.computeTranslate(t.left||t.right,this.scale),k=Math.sqrt(Math.pow(_.x-w.x,2)+Math.pow(_.y-w.y,2)),x="translate(".concat(_.x,"px, ").concat(_.y,"px)"),k<50&&(S=null===(P=this.$book.style.transform.match(/translate\([^)]+\)/))||void 0===P?void 0:P[0])&&(x=S),E="".concat(x," scale(").concat(this.scale,")"),!l||!("animate"in Element.prototype)){e.next=57;break}return C="lr"==f?p>d?"right":"left":p>d?"left":"right",this.activeFlip={direction:C,pagesFlipping:[d,p],pagesFlippingCount:Math.abs(p-d)},this.classList.add("br-mode-2up--flipping-".concat(C)),this.classList.add("BRpageFlipping"),this.requestUpdate(),e.next=38,this.updateComplete;case 38:return this.visiblePages.map((function(e){return M.pageContainerCache[e.index].$container})).forEach((function(e){return e.addClass("BRpage-exiting")})),g.forEach((function(e){return e.$container.addClass("BRpage-entering")})),T={duration:this.flipSpeed+this.activeFlip.pagesFlippingCount,easing:"ease-in",fill:"none"},R=this.$book.animate([{transform:E}],T),O=this.$flippingEdges.animate([{transform:"rotateY(0deg)"},{transform:"left"==C?"rotateY(-180deg)":"rotateY(180deg)"}],T),A="left"==C?this.querySelector(".BRpage-exiting[data-side=L]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(180deg)"}],T):this.querySelector(".BRpage-exiting[data-side=R]").animate([{transform:"rotateY(0deg)"},{transform:"rotateY(-180deg)"}],T),I="left"==C?this.querySelector(".BRpage-entering[data-side=R]").animate([{transform:"rotateY(-180deg)"},{transform:"rotateY(0deg)"}],T):this.querySelector(".BRpage-entering[data-side=L]").animate([{transform:"rotateY(180deg)"},{transform:"rotateY(0deg)"}],T),R.play(),O.play(),A.play(),I.play(),g.forEach((function(e){return e.$container.addClass("BRpage-visible")})),e.next=52,Promise.race([(0,r.promisifyEvent)(R,"finish"),(0,r.promisifyEvent)(O,"finish"),(0,r.promisifyEvent)(A,"finish"),(0,r.promisifyEvent)(I,"finish")]);case 52:this.classList.remove("br-mode-2up--flipping-".concat(C)),this.classList.remove("BRpageFlipping"),this.visiblePages.map((function(e){return M.pageContainerCache[e.index].$container})).forEach((function(e){return e.removeClass("BRpage-exiting BRpage-visible")})),g.forEach((function(e){return e.$container.removeClass("BRpage-entering")})),this.activeFlip=null;case 57:this.$book.style.transform=E,this.visiblePages=("lr"==f?[t.left,t.right]:[t.right,t.left]).filter((function(e){return e}));case 59:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{kind:"method",key:"parseNextSpread",value:function(e){"next"==e?e="lr"==this.book.pageProgression?"right":"left":"prev"==e&&(e="lr"==this.book.pageProgression?"left":"right");var t,n,r=(this.pageLeft||this.pageRight).spread;if("left"==e)e=null===(t=r.left)||void 0===t||null===(n=t.findLeft({combineConsecutiveUnviewables:!0}))||void 0===n?void 0:n.spread;else if("right"==e){var i,o;e=null===(i=r.right)||void 0===i||null===(o=i.findRight({combineConsecutiveUnviewables:!0}))||void 0===o?void 0:o.spread}return"number"==typeof e&&(e=this.book.getPage(e).spread),e instanceof A&&(e=e.spread),e}},{kind:"field",key:"handlePageClick",value:function(){var e=this;return function(t){if(3==t.which&&e.br.protected)return!1;if(1==t.which){var n=qe(t.target).closest(".BRpagecontainer");n.length&&("L"==n.data("side")?e.flipAnimation("left"):"R"==n.data("side")&&e.flipAnimation("right"))}}}}]}}),M.oi),wt=(ot([(0,I.Mo)("br-leaf-edges")],(function(e,t){var n=function(t){et(r,t);var n=nt(r);function r(){var t;Qe(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n.call.apply(n,[this].concat(o)),e(it(t)),t}return Je(r)}(t);return{F:n,d:[{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"leftIndex",value:function(){return 0}},{kind:"field",decorators:[(0,I.Cb)({type:Number})],key:"rightIndex",value:function(){return 0}},{kind:"field",decorators:[(0,I.Cb)({type:String})],key:"side",value:function(){return"left"}},{kind:"field",decorators:[(0,I.Cb)({attribute:!1})],key:"book",value:function(){return null}},{kind:"field",decorators:[(0,I.Cb)({attribute:!1,type:Function})],key:"pageClickHandler",value:function(){return null}},{kind:"field",decorators:[(0,I.IO)(".br-leaf-edges__bar")],key:"$hoverBar",value:void 0},{kind:"field",decorators:[(0,I.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,M.dy)(He||(He=Xe(['\n <div\n class="br-leaf-edges__bar"\n style="','"\n ></div>\n <div class="br-leaf-edges__label">Page</div>'])),z({width:"".concat(this.pageWidthPercent,"%")}))}},{kind:"method",key:"connectedCallback",value:function(){gt(yt(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(){gt(yt(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 e=this;return function(t){e.addEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="block",e.$hoverLabel.style.display="block"}}},{kind:"field",key:"onMouseMove",value:function(){var e=this;return function(t){e.$hoverBar.style.left="".concat(t.offsetX,"px"),"right"==e.side?e.$hoverLabel.style.left="".concat(t.offsetX,"px"):e.$hoverLabel.style.right="".concat(e.offsetWidth-t.offsetX,"px"),e.$hoverLabel.style.top="".concat(t.offsetY,"px");var n=e.mouseEventToPageIndex(t);e.$hoverLabel.textContent=e.book.getPageName(n)}}},{kind:"field",key:"onMouseLeave",value:function(){var e=this;return function(t){e.removeEventListener("mousemove",e.onMouseMove),e.$hoverBar.style.display="none",e.$hoverLabel.style.display="none"}}},{kind:"field",key:"onClick",value:function(){var e=this;return function(t){e.pageClickHandler(e.mouseEventToPageIndex(t))}}},{kind:"method",key:"mouseEventToPageIndex",value:function(e){return Math.floor(this.leftIndex+e.offsetX/this.offsetWidth*(this.rightIndex-this.leftIndex+1))}}]}}),M.oi),n(3609));function _t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function kt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){_t(o,r,i,a,s,"next",e)}function s(e){_t(o,r,i,a,s,"throw",e)}a(void 0)}))}}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n,this.mode2UpLit=new bt(n,t),this.mode2UpLit.flipSpeed=t.flipSpeed,this.$el=wt(this.mode2UpLit).attr("autoFit",this.br.options.twoPage.autofit).addClass("br-mode-2up__root BRmode2up"),this.everShown=!1}var t,n;return t=e,(n=[{key:"prepare",value:function(){var e=this,t=this.br.currentIndex();this.br.refs.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),this.mode2UpLit.style.opacity="0",setTimeout(kt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.everShown){n.next=9;break}return e.mode2UpLit.initFirstRender(t),e.everShown=!0,e.mode2UpLit.requestUpdate(),n.next=6,e.mode2UpLit.updateComplete;case 6:new Ie(e.mode2UpLit,{preventDefault:!0,dragSelector:".br-mode-2up__book",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),n.next=12;break;case 9:return n.next=11,e.mode2UpLit.jumpToIndex(t,{smooth:!1});case 11:e.resizePageView();case 12:e.mode2UpLit.style.opacity="1";case 13:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(e,t,n,r){this.mode2UpLit.jumpToIndex(e)}},{key:"zoom",value:function(e){switch(e){case"in":this.mode2UpLit.zoomIn();break;case"out":this.mode2UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(e))}}},{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()}}])&&xt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),St=n(3609);function Et(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Rt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.br=t,this.book=n}var t,n;return t=e,(n=[{key:"drawLeafs",value:function(e){var t,n,i,a=this,s=Math.floor,u=this.book,c=this.br.refs.$brContainer.prop("scrollWidth")-20,l=0,h=0,f=0,d=0,p=0,v=[],g=Et(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(i=g.n()).done;){var m=i.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},(t=s(m.height*this.br.thumbWidth/m.width))>v[d].height&&(v[d].height=t),0===p&&(h+=this.br.thumbPadding+v[d].height),(l+=y+this.br.thumbPadding)>f&&(f=l),p++,m.index==e&&(n=h-this.br.thumbPadding-v[d].height)}}catch(e){g.e(e)}finally{g.f()}this.br.refs.$brPageViewEl.height(h);var b=s((this.br.refs.$brContainer.prop("scrollWidth")-f)/2)-14;void 0!==n&&this.br.refs.$brContainer.scrollTop(n);for(var w=this.br.refs.$brContainer.prop("scrollTop"),_=w+this.br.refs.$brContainer.height(),k=0,x=0,P=[],S=[],E=u.getNumLeafs()-1,C=0,T=0;T<v.length;T++)v[T]&&(x+=this.br.thumbPadding+v[T].height,(k>=w&&k<=_||x>=w&&x<=_||k<=w&&x>=_)&&(P.push(T),v[T].leafs[0].num<E&&(E=v[T].leafs[0].num),v[T].leafs[v[T].leafs.length-1].num>C&&(C=v[T].leafs[v[T].leafs.length-1].num)),k>v[T].top&&(v[T].top=k),k=x);for(var R=P[0],O=P[P.length-1],A=1;A<this.br.thumbRowBuffer+1;A++)O+A<v.length&&P.push(O+A);for(var I=1;I<this.br.thumbRowBuffer;I++)R-I>=0&&P.push(R-I);P.sort();for(var M=0,j=P;M<j.length;M++){var $=j[M];if((0,r.notInArray)($,this.br.displayedRows)){if(!v[$])continue;var L,D=Et(v[$].leafs);try{var N=function(){var e=L.value,t=e.num,n=e.left,r=a.br.thumbWidth,i=s(u.getPageHeight(t)*a.br.thumbWidth/u.getPageWidth(t)),l=v[$].top,h=n+b;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,S.push(t);var f=s(u.getPageWidth(t)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(t).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",t).on("mouseup",(function(e){a.br.updateFirstIndex(t,{suppressFragmentChange:!0}),a.br.switchMode(a.br.constMode1up,{suppressFragmentChange:!0});var n=a.br.viewModeOrder.shift();a.br.viewModeOrder.push(n),a.br._components.navbar.updateViewModeButton(St(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),e.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(L=D.n()).done;)N()}catch(e){D.e(e)}finally{D.f()}}}var B,U=Et(this.br.displayedRows);try{for(U.s();!(B=U.n()).done;){var F=B.value;if((0,r.notInArray)(F,P)){var z,W,H=Et(null===(z=v[F])||void 0===z?void 0:z.leafs);try{for(H.s();!(W=H.n()).done;){var V,q=W.value.num;null!=S&&S.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(e){H.e(e)}finally{H.f()}}}}catch(e){U.e(e)}finally{U.f()}var Y=this.br.currentIndex();Y<E?this.br.updateFirstIndex(E):Y>C&&this.br.updateFirstIndex(C),this.br.displayedRows=P.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(e){var t=St(e).data("leaf"),n=St(e).data("reduce"),r=this.br.imageCache.image(t,n),i=St(e).parent();St(i).append(r),St(e).remove()}},{key:"zoom",value:function(e){var t=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,r.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=t&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(e){var t=(e+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-t)/(e+.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=St("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new Ie(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(e){for(var t=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,h=0;h<=e;h++){s+(o+this.br.thumbPadding)>i&&(s=0,c=0,l=0);var f=n(r.getPageHeight(l)*this.br.thumbWidth/r.getPageWidth(l));f>c&&(c=f),0==l&&(a=u,u+=this.br.thumbPadding+c),s+=o+this.br.thumbPadding,l++}this.br.updateFirstIndex(e),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(){t.br.animating=!1})))}}])&&Tt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ot=(n(4914),{floor:Math.floor,decr:function(e){return e-1}}),At={floor:function(e){return Math.pow(2,Math.floor(Math.log2(Math.max(1,e))))},decr:function(e){return Math.pow(2,Math.log2(e)-1)}},It={pow2:At,integer:Ot},Mt=n(3609);function jt(e){return function(e){if(Array.isArray(e))return $t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nt=function(){function e(t){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?At:o;Lt(this,e),this.book=t,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var t,n;return t=e,(n=[{key:"image",value:function(e,t){var n=(this.cache[e]||[]).filter((function(e){return e.loaded&&e.reduce<=t}));if(n.length){var r=Math.max.apply(Math,jt(n.map((function(e){return e.reduce}))));return this._serveImageElement(e,r)}return this._serveImageElement(e,t)}},{key:"imageLoaded",value:function(e,t){var n,r,i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce<=t}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(t=this.cache[e])||void 0===t?void 0:t.filter((function(e){return e.loaded})))||[];if(!r.length)return null;var i=r.filter((function(e){return e.reduce>=n}));if(i.length)return Math.min.apply(Math,jt(i.map((function(e){return e.reduce}))));var o=r.filter((function(e){return e.reduce<n}));return Math.max.apply(Math,jt(o.map((function(e){return e.reduce}))))}},{key:"_serveImageElement",value:function(e,t){var n,r=this.reduceSet.floor(t),i=null===(n=this.cache[e])||void 0===n?void 0:n.find((function(e){return e.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[e]||(this.cache[e]=[])).push(i));var o=this.book.getPage(e),a=Mt("<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}}])&&Dt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Bt=n(9860),Ut=n(3609),Ft=n(3609);function zt(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zt(o,r,i,a,s,"next",e)}function s(e){zt(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ft.extend(!0,{},Vt.defaultOptions,e,Vt.optionOverrides);this.setup(t)}function qt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(e){return e.br},a=function(e){return e._overrideable[t]};i(e,n,o,Vt,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&Ut((function(){return(new b.E).init()})),Vt.version="5.0.0-61",Vt.constMode1up=1,Vt.constMode2up=2,Vt.constModeThumb=3,Vt.imageCache=null,Vt.constNavAnimationDuration=300,Vt.constResizeAnimationDuration=100,Vt.eventNames=o,Vt.defaultOptions=m,Vt.optionOverrides={},Vt.prototype.setup=function(e){this.options=e,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Vt.constMode1up,this.constMode2up=Vt.constMode2up,this.constModeThumb=Vt.constModeThumb,this.reduce=8,this.defaults=e.defaults,this.padding=e.padding,this.reduceSet=It[e.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(e.reduceSet,". Ignoring.")),this.reduceSet=It[m.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=e.ui,this.uiAutoHide=e.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=e.thumbRowBuffer,this.thumbColumns=e.thumbColumns,this.thumbMaxLoading=e.thumbMaxLoading,this.thumbPadding=e.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed="number"==typeof e.flipSpeed?e.flipSpeed:{fast:200,slow:600}[e.flipSpeed]||400,this.flipDelay=e.flipDelay,this.firstIndex=null,this.isFullscreenActive=e.startFullscreen||!1,this.lastScroll=null,this.showLogo=e.showLogo,this.logoURL=e.logoURL,this.imagesBaseURL=e.imagesBaseURL,this.reductionFactors=e.reductionFactors,this.onePage=e.onePage,this.twoPage=e.twoPage,this.onePageMinBreakpoint=e.onePageMinBreakpoint,this.bookTitle=e.bookTitle,this.bookUrl=e.bookUrl,this.bookUrlText=e.bookUrlText,this.bookUrlTitle=e.bookUrlTitle,this.titleLeaf=e.titleLeaf,this.metadata=e.metadata,this.thumbnail=e.thumbnail,this.bookUrlMoreInfo=e.bookUrlMoreInfo,this.enableExperimentalControls=e.enableExperimentalControls,this.el=e.el,this.pageProgression=e.pageProgression,this.protected=e.protected,this.getEmbedCode=e.getEmbedCode,this.popup=null,this.data=e.data,this.refs={},this.book=new O(this),e.getNumLeafs&&(this.book.getNumLeafs=e.getNumLeafs.bind(this)),e.getPageWidth&&(this.book.getPageWidth=e.getPageWidth.bind(this)),e.getPageHeight&&(this.book.getPageHeight=e.getPageHeight.bind(this)),e.getPageURI&&(this.book.getPageURI=e.getPageURI.bind(this)),e.getPageSide&&(this.book.getPageSide=e.getPageSide.bind(this)),e.getPageNum&&(this.book.getPageNum=e.getPageNum.bind(this)),e.getPageProp&&(this.book.getPageProp=e.getPageProp.bind(this)),e.getSpreadIndices&&(this.book.getSpreadIndices=e.getSpreadIndices.bind(this)),e.leafNumToIndex&&(this.book.leafNumToIndex=e.leafNumToIndex.bind(this)),this._components={navbar:new u(this),toolbar:new x(this)},this._modes={mode1Up:new Ve(this,this.book),mode2Up:new Pt(this,this.book),modeThumb:new Rt(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 Nt(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},Vt.prototype.getActivePageContainerElements=function(){var e=Object.values(this._modes.mode2Up.mode2UpLit.pageContainerCache).map((function(e){return e.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(e){return e.$container[0]})));return this.mode==this.constModeThumb&&(e=e.concat(this.$(".BRpagecontainer").toArray())),e},Vt.prototype.getActivePageContainerElementsForIndex=function(e){var t,n,r,i,o;return[null===(t=this._modes.mode2Up.mode2UpLit.pageContainerCache[e])||void 0===t||null===(n=t.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[e])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(e)).toArray():[],function(e){if(Array.isArray(e))return Ht(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(e,t):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(e){return e}))},Object.defineProperty(Vt.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Vt.util=r,Vt.prototype.extendParams=function(e,t){var n=Ut.extend({},t);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}Ut.extend(e,n)},Vt.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 t=this.paramsFromFragment(this.defaults);void 0!==t.page&&(e.pageFound=!0),this.extendParams(e,t)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(e.index!==n&&(e.fragmentChange=!0),e.index=n)}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=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!e.fragmentChange,e},Vt.prototype.getLocationSearch=function(){return window.location.search},Vt.prototype.getLocationHash=function(){return window.location.hash},Vt.prototype.readQueryString=function(){var e=this.getLocationSearch();if(e)return e;var t=this.getLocationHash(),n=t.search(/\?\w+=/);return n>-1?t.slice(n):""},Vt.prototype.getInitialMode=function(e){var t,n=Ut(window).width(),r=n&&n<=this.onePageMinBreakpoint;if(t=e.mode?e.mode:r?this.constMode1up:this.constMode2up,this.canSwitchToMode(t)||(t=this.constMode1up),this.options.defaults)try{t=function(e){var t={"mode/1up":1,"mode/2up":2,"mode/thumb":3};if(!(e in t))throw new y("Invalid mode string: ".concat(e));return t[e]}(this.options.defaults)}catch(e){}return t},Vt.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var e=this.initParams();this.firstIndex=e.index?e.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=Ut(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=Ut("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),e.mode=this.getInitialMode(e),this.mode=e.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(e),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(e){e.data.lastScroll=(new Date).getTime(),e.data.constModeThumb==e.data.mode&&e.data.drawLeafsThrottled()})),this.options.autoResize&&(Ut(window).on("resize",this,(function(e){e.data.resize()})),Ut(window).on("orientationchange",this,function(e){e.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(Vt.eventNames.PostInit)},Vt.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+e;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:t}})),Ut(document).trigger(n,t)},Vt.prototype.bind=function(e,t){Ut(document).on("BookReader:"+e,t)},Vt.prototype.unbind=function(e,t){Ut(document).off("BookReader:"+e,t)},Vt.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(Vt.eventNames.resize))},Vt.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(t){if(e.hasKeyFocus&&!(t.getModifierState("Control")||t.getModifierState("Alt")||t.getModifierState("Meta")||t.getModifierState("Win")||r.isInputActive()))switch(t.key){case"Home":t.preventDefault(),e.first();break;case"End":t.preventDefault(),e.last();break;case"ArrowDown":case"PageDown":case"Down":e.constMode2up===e.mode&&(t.preventDefault(),e.next());break;case"ArrowUp":case"PageUp":case"Up":e.constMode2up===e.mode&&(t.preventDefault(),e.prev());break;case"ArrowLeft":case"Left":e.constModeThumb!=e.mode&&(t.preventDefault(),e.left());break;case"ArrowRight":case"Right":e.constModeThumb!=e.mode&&(t.preventDefault(),e.right());break;case"-":case"Subtract":t.preventDefault(),e.zoom(-1);break;case"+":case"=":case"Add":t.preventDefault(),e.zoom(1);break;case"F":case"f":t.preventDefault(),e.toggleFullscreen()}}))},Vt.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Vt.prototype._createPageContainer=function(e){return new Bt._z(this.book.getPage(e,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},Vt.prototype.bindGestures=function(e){var t=this,n=1;e.unbind("touchmove").bind("touchmove",(function(e){e.originalEvent.cancelable&&(n=e.originalEvent.touches.length),e.stopPropagation()})),e.unbind("gesturechange").bind("gesturechange",(function(e){e.preventDefault(),2!==n||(new Date).getTime()-t.lastScroll<500||(e.originalEvent.scale>1.5?t.zoom(1):e.originalEvent.scale<.6&&t.zoom(-1))}))},Vt.prototype.drawLeafsThrottled=r.throttle(Vt.prototype.drawLeafs,250),Vt.prototype.zoom=function(e){var t;1==e?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},Vt.prototype.resizeBRcontainer=function(e){e?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Vt.prototype.centerPageView=function(){var e=this.refs.$brContainer.prop("scrollWidth"),t=this.refs.$brContainer.prop("clientWidth");e>t&&this.refs.$brContainer.prop("scrollLeft",(e-t)/2)},Vt.prototype.quantizeReduce=function(e,t){for(var n=t[0].reduce,r=Math.abs(e-n),i=1;i<t.length;i++){var o=Math.abs(e-t[i].reduce);o<r&&(r=o,n=t[i].reduce)}return n},Vt.prototype.nextReduce=function(e,t,n){if("in"===t){for(var r=0,i=1;i<n.length;i++)n[i].reduce<e&&(r=i);return n[r]}if("out"===t){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>e&&(a=s);return n[a]}if("auto"===t){var u=n.find((function(e){return"auto"==e.autofit}));if(u)return u;for(var c=n.filter((function(e){var t=e.autofit;return"height"==t||"width"==t})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===t||"width"===t){var f=n.find((function(e){return e.autofit==t}));if(f)return f}return n[0]},Vt.prototype._reduceSort=function(e,t){return e.reduce-t.reduce},Vt.prototype.jumpToPage=function(e){var t=this.book.parsePageString(e);return void 0!==t&&(this.jumpToIndex(t),!0)},Vt.prototype._isIndexDisplayed=function(e){return this.displayedIndices?this.displayedIndices.includes(e):this.currentIndex()==e},Vt.prototype.jumpToIndex=function(e,t,n,r){var i=this.book.getPage(e);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,t,n,r)}this.trigger(Vt.eventNames.stop),this.activeMode.jumpToIndex(e,t,n,r)},Vt.prototype.getPrevReadMode=function(e){return e===Vt.constMode1up||e===Vt.constMode2up?e:null===this.prevReadMode?Vt.constMode1up:void 0},Vt.prototype.switchMode=function(e){var t,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(e===this.mode)return;if(!this.canSwitchToMode(e))return}this.trigger(Vt.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=e&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=e,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==e?this._modes.mode1Up.prepare():this.constModeThumb==e?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):this._modes.mode2Up.prepare(),this.suppressFragmentChange||a||this.trigger(Vt.eventNames.fragmentChange);var s=e+"PageViewSelected";this.trigger(Vt.eventNames[s]),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer)},Vt.prototype.updateBrClasses=function(){var e={};e[this.constMode1up]="BRmode1up",e[this.constMode2up]="BRmode2up",e[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2up BRmodeThumb").addClass(e[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),Ut(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),Ut(document.body).removeClass("BRfullscreenActive"))},Vt.prototype.isFullscreen=function(){return this.isFullscreenActive},Vt.prototype.toggleFullscreen=Wt(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){e.next=6;break}return e.next=4,this.exitFullScreen();case 4:e.next=8;break;case 6:return e.next=8,this.enterFullscreen(t);case 8:case"end":return e.stop()}}),e,this)}))),Vt.prototype.enterFullscreen=Wt(regeneratorRuntime.mark((function e(){var t,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.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(e){27===e.keyCode&&i.toggleFullscreen()},Ut(document).on("keyup",this._fullscreenCloseHandler)),Ut(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),!(this.activeMode instanceof Ve)){e.next=13;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),e.next=13,this.activeMode.mode1UpLit.updateComplete;case 13:return this.jumpToIndex(r),null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(Vt.eventNames.fragmentChange),this.trigger(Vt.eventNames.fullscreenToggled),e.next=19,new Promise((function(e){return setTimeout(e,0)}));case 19:this.resize(),this.refs.$br.removeClass("BRfullscreenAnimation");case 21:case"end":return e.stop()}}),e,this)}))),Vt.prototype.exitFullScreen=Wt(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refs.$br.addClass("BRfullscreenAnimation"),Ut(document).off("keyup",this._fullscreenCloseHandler),n=Ut(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(Vt.eventNames.fullscreenToggled),this.updateBrClasses(),e.next=10,new Promise((function(e){return setTimeout(e,0)}));case 10:if(this.resize(),!(this.activeMode instanceof Ve)){e.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),e.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:null===(t=this.textSelectionPlugin)||void 0===t||t.stopPageFlip(this.refs.$brContainer),this.trigger(Vt.eventNames.fragmentChange),this.refs.$br.removeClass("BRfullscreenAnimation");case 19:case"end":return e.stop()}}),e,this)}))),Vt.prototype.currentIndex=function(){if(this.mode==this.constMode1up||this.mode==this.constModeThumb)return this.firstIndex;if(this.mode==this.constMode2up)return r.clamp(this.firstIndex,0,this.book.getNumLeafs()-1);throw"currentIndex called for unimplemented mode "+this.mode},Vt.prototype.updateFirstIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==e&&(this.firstIndex=e,this.suppressFragmentChange||r||this.trigger(Vt.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger(Vt.eventNames.pageChanged),this.trigger(Vt.eventNames.userAction),this._components.navbar.updateNavIndexThrottled(e))},Vt.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},Vt.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Vt.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},Vt.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Vt.prototype.next=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t;this.constMode2up==this.mode?(n&&this.trigger(Vt.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("next")):this.firstIndex<this.book.getNumLeafs()-1&&this.jumpToIndex(this.firstIndex+1)},Vt.prototype.prev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerStop,n=void 0===t||t,r=this.firstIndex<1;r||(this.constMode2up==this.mode?(n&&this.trigger(Vt.eventNames.stop),this._modes.mode2Up.mode2UpLit.flipAnimation("prev")):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},Vt.prototype.first=function(){this.jumpToIndex(0)},Vt.prototype.last=function(){this.jumpToIndex(this.book.getNumLeafs()-1)},Vt.prototype.initNavbar=u.prototype.init,qt(u,"_components.navbar","init","initNavbar"),Vt.prototype.buildToolbarElement=x.prototype.buildToolbarElement,qt(x,"_components.toolbar","buildToolbarElement"),Vt.prototype.initToolbar=x.prototype.initToolbar,qt(x,"_components.toolbar","initToolbar"),Vt.prototype.buildShareDiv=x.prototype.buildShareDiv,qt(x,"_components.toolbar","buildShareDiv"),Vt.prototype.buildInfoDiv=x.prototype.buildInfoDiv,qt(x,"_components.toolbar","buildInfoDiv"),Vt.prototype.getToolBarHeight=x.prototype.getToolBarHeight,qt(x,"_components.toolbar","getToolBarHeight"),Vt.prototype.bindNavigationHandlers=function(){var e=this,t=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){e.trigger(Vt.eventNames.stop),e.left()},book_right:function(){e.trigger(Vt.eventNames.stop),e.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(){e.switchMode(t.constMode1up)},thumb:function(){e.switchMode(t.constModeThumb)},twopg:function(){e.switchMode(t.constMode2up)},zoom_in:function(){e.trigger(Vt.eventNames.stop),e.zoom(1),e.trigger(Vt.eventNames.zoomIn)},zoom_out:function(){e.trigger(Vt.eventNames.stop),e.zoom(-1),e.trigger(Vt.eventNames.zoomOut)},full:function(){if("embed"==e.ui){var t=e.$(".BRembedreturn a").attr("href");window.open(t)}else e.toggleFullscreen()}};this.$("nav.BRcontrols li button").on("click",(function(){e.trigger(Vt.eventNames.userAction)})),n.filter(".fit").bind("fit",(function(){}));var i=function(e){n.filter(".".concat(e)).on("click.bindNavigationHandlers",(function(){return r[e](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var e=[];a.hasClass("BRdn")?(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:-1*t.getToolBarHeight()}).promise()),e.push(t.$(".BRfooter").animate({bottom:-1*t.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),t.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(t.refs.$BRtoolbar&&e.push(t.refs.$BRtoolbar.animate({top:0}).promise()),e.push(t.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),t.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),t.$(".BRvavCntl").animate({opacity:1})),Ut.when.apply(Ut,e).done((function(){t.mode==t.constMode2up&&null!=t.twoPage.autofit&&"none"!=t.twoPage.autofit||t.mode==t.constMode1up&&null!=t.onePage.autofit&&"none"!=t.onePage.autofit?t.resize():t.resizeBRcontainer()}))})),a.on("mouseover",(function(){Ut(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ut(this).hasClass("BRup")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){Ut(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){Ut(this).hasClass("BRdn")&&t.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),Ut(document).off("mousemove.navigation",this.el),Ut(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),Ut(document).off("mousedown.swipe",".BRpageimage"),Ut(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},Vt.prototype.unbindNavigationHandlers=function(){Ut(document).off("mousemove.navigation",this.el)},Vt.prototype.navigationMousemoveHandler=function(e){if(e.data.br.uiAutoHide){var t=Ut(document).height()-75;e.pageY<76||e.pageY>t?e.data.br.hideNavigation():e.data.br.showNavigation()}},Vt.prototype.initSwipeData=function(e,t){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:e,startY:t,lastX:e,lastY:t,deltaX:0,deltaY:0,deltaT:0}},Vt.prototype.swipeMousedownHandler=function(e){var t=e.data.br;return 3==e.which?!t.protected:(Ut(e.target).on("mouseout.swipe",{br:t},t.swipeMouseupHandler).on("mouseup.swipe",{br:t},t.swipeMouseupHandler).on("mousemove.swipe",{br:t},t.swipeMousemoveHandler),t.initSwipeData(e.clientX,e.clientY),t._swipe.mightBeSwiping=!0,t._swipe.mightBeDragging=!0,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},Vt.prototype.swipeMousemoveHandler=function(e){var t=e.data.br,n=t._swipe;if(n.mightBeSwiping){n.deltaX=e.clientX-n.startX,n.deltaY=e.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(t.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,t.mode==t.constMode2up&&(n.deltaX<0?t.right():t.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,t.refs.$brContainer.scrollTop(t.refs.$brContainer.scrollTop()-e.clientY+n.lastY).scrollLeft(t.refs.$brContainer.scrollLeft()-e.clientX+n.lastX)),n.lastX=e.clientX,n.lastY=e.clientY,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}},Vt.prototype.swipeMouseupHandler=function(e){var t=e.data.br._swipe;return t.mightBeSwiping=!1,t.mightBeDragging=!1,Ut(e.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!t.didSwipe&&!t.didDrag||(e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1)},Vt.prototype.bindMozTouchHandlers=function(){var e=this;this.refs.$br.on("MozTouchDown",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchMove",(function(t){this.mode==e.constMode2up&&t.preventDefault()})).on("MozTouchUp",(function(t){this.mode==e.constMode2up&&t.preventDefault()}))},Vt.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},Vt.prototype.setNavigationView=function(e){var t=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(Vt.eventNames.navToggled)}.bind(this),i=0,o=0;e?(i=-1*this.getToolBarHeight(),o=-1*this.getFooterHeight(),this.refs.$BRtoolbar.addClass("js-menu-hide"),this.refs.$BRfooter.addClass("js-menu-hide")):(this.refs.$BRtoolbar.removeClass("js-menu-hide"),this.refs.$BRfooter.removeClass("js-menu-hide")),this.refs.$BRtoolbar.animate({top:i},t,n,r),this.refs.$BRfooter.animate({bottom:o},t,n,r)},Vt.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},Vt.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},Vt.prototype.getPageURI=O.prototype.getPageURI,qt(O,"book","getPageURI"),Vt.prototype.updateFromParams=function(e){var t=e.mode,n=void 0===t?0:t,r=e.init,i=void 0!==r&&r,o=e.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==e.index?e.index!=this.currentIndex()&&this.jumpToIndex(e.index):void 0!==e.page&&e.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(e.page),this.enableSearch&&void 0!==e.search&&this.searchTerm!==e.search&&this.$(".BRsearchInput").val(e.search),this.enableThemesPlugin&&void 0!==e.theme&&this.updateTheme(e.theme)},Vt.prototype.canSwitchToMode=function(e){return e!=this.constMode2up&&e!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Vt.prototype._getPageURI=function(e,t,n){var r=this.book.getPage(e,!1);return r?(void 0===t&&(t=r.height/this.twoPage.height),r.getURI(t,n)):this.imagesBaseURL+"transparent.png"},Vt.prototype.showProgressPopup=function(e,t){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),Ut(this.popup).prop("className","BRprogresspopup"),"function"==typeof t){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"),Ut(r).append(i),r.addEventListener("click",(function(){t(),n.removeProgressPopup()})),Ut(this.popup).append(r)}var o=document.createElement("div");if(Ut(o).css({height:"20px"}).prop("className","BRprogressbar"),Ut(this.popup).append(o),e){var a=document.createElement("div");a.innerHTML=e,Ut(this.popup).append(a)}Ut(this.popup).appendTo(this.refs.$br)}},Vt.prototype.removeProgressPopup=function(){Ut(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Vt.prototype.initUIStrings=function(){var e={".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 t in"rl"==this.pageProgression&&(e[".book_leftmost"]="Last page",e[".book_rightmost"]="First page"),e)this.$(t).prop("title",e[t])},Vt.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(e,t){if(!t.complete||0===t.naturalHeight){var n=t.src;t.src="",setTimeout((function(){t.src=n}),1e3)}}))},Vt.prototype.getFooterHeight=function(){var e=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(e&&this.refs.$BRfooter){var t=e.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(t)&&!isNaN(n))return t+n}return 0},Vt.prototype.paramsFromCurrent=function(){var e={},t=this.currentIndex(),n=this.book.getPageNum(t);return(0===n||n)&&(e.page=n),e.index=t,e.mode=this.mode,this.isFullscreenActive&&(e.view="theater"),this.enableSearch&&(e.search=this.searchTerm),e},Vt.prototype.paramsFromFragment=function(e){var t={};"#"==e.substr(0,1)&&(e=e.substr(1));var n=parseInt(/^\d+$/.exec(e));if(!isNaN(n))return t.index=n,t;for(var i=e.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?t.mode=this.constMode1up:"2up"==o.mode?t.mode=this.constMode2up:"thumb"==o.mode&&(t.mode=this.constModeThumb),void 0!==o.page&&(t.page=o.page),null!=o.search&&(t.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(t.theme=o.theme),t},Vt.prototype.fragmentFromParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==e.page?i.push("page",e.page):void 0!==e.index&&i.push("page","n"+e.index),void 0!==e.mode)if(e.mode==this.constMode1up)i.push("mode","1up");else if(e.mode==this.constMode2up)i.push("mode","2up");else{if(e.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+e.mode;i.push("mode","thumb")}return e.search&&"hash"===t&&i.push("search",e.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},Vt.prototype.queryStringFromParams=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(t);e.view?r.set("view",e.view):r.delete("view"),e.search&&"history"===n&&r.set("q",e.search);var i=r.toString();return i?"?"+i:""},Vt.prototype.$=function(e){return this.refs.$br.find(e)},window.BookReader=Vt},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__),$=__webpack_require__(3609);function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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 e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_realLog.apply(void 0,t),_this.logToScreen(t)},window.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _this.logToScreen(t)}}},{key:"logToScreen",value:function(e){var t=e.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==t?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(t,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(e,t,n){"use strict";n.d(t,{_z:function(){return l},hy:function(){return h},Tm:function(){return d}}),n(5666),n(5827),n(1539),n(9600),n(2222),n(9714),n(6992),n(3948),n(8674),n(7042),n(8309),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165);var r=n(3609);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.page=t,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(t?"pagediv".concat(t.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==t?void 0:t.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var t,n;return t=e,(n=[{key:"update",value:function(e){var t,n,i=e.dimensions,o=void 0===i?null:i,a=e.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var c=this.imageCache.imageLoaded(this.page.index,s),l=!c&&this.imageCache.getBestLoadedReduce(this.page.index,s),h=this.imageCache.image(this.page.index,s);if((null===(t=this.$img)||void 0===t?void 0:t[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var f=[];return c||(this.$container.addClass("BRpageloading"),f.push('url("'.concat(this.loadingImage,'") center/20px no-repeat'))),l&&f.push('url("'.concat(this.page.getURI(l,0),'") center/100% 100% no-repeat')),c||this.$img.css("background",f.join(",")).one("loadend",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(t.target).css({background:""}),r(t.target).parent().removeClass("BRpageloading");case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),this}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(e,t){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(e.width," ").concat(e.height)),n.setAttribute("class","BRPageLayer ".concat(t)),n.setAttribute("preserveAspectRatio","none"),n}function f(e){var t=e.l,n=e.r,r=e.b,i=e.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",t.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-t).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(e,t,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(e)),c=u||h(n,e);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(t.entries());try{for(p.s();!(d=p.n()).done;){var v=i(d.value,2),g=v[0],m=v[1],y=f(m);s&&y.setAttribute("class",s[g]),c.appendChild(y)}}catch(e){p.e(e)}finally{p.f()}}},5685:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){e.bind("mousedown",(function(){return!1})),e[0].onselectstart=function(){return!1}}function s(e,t,n){return Math.min(Math.max(e,t),n)}function u(e,t){return e/t*100+"%"}function c(e,t){return!t.includes(e)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.activeElement;return t&&null!=n&&n.shadowRoot?l(n.shadowRoot,!0):n}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=l(e);return"INPUT"==(null==t?void 0:t.tagName)||"TEXTAREA"==(null==t?void 0:t.tagName)}function f(e){var t=e.contentWindow||e.contentDocument;return t.document||t}function d(e){return e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(e){return decodeURIComponent(e).replace(/\+/g," ")}function v(e){return encodeURIComponent(e).replace(/%20/g,"+")}function g(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}function m(e,t,n){var r,i;return t||(t=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+t?(clearTimeout(i),i=setTimeout((function(){r=o,e.apply(n,a)}),t)):(r=o,e.apply(n,a))}}function y(e){if("function"==typeof e.CustomEvent)return!1;e.CustomEvent=b}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0!==n&&n,i=t.cancelable,o=void 0!==i&&i,a=t.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(e,r,o,s),u}function w(){var e=document.createElement("div");e.style.width="1in",document.body.appendChild(e);var t=e.offsetWidth;document.body.removeChild(e);var n=1.25*t;return 0==n?100:n}function _(e){return e.reduce((function(e,t){return e+t}),0)}function k(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function x(e,t){return e.length==t.length&&e.every((function(e,n){return e==t[n]}))}function P(e,t){return e&&t&&!x(e,t)}function S(e){return E.apply(this,arguments)}function E(){return(E=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return T.apply(this,arguments)}function T(){return(T=i(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.step,i=void 0===r?50:r,o=n.timeout,a=void 0===o?500:o,s=n.until,u=void 0===s?function(e){return Boolean(e)}:s,c=n._sleep,l=void 0===c?S:c,h=Date.now();case 2:if(!(Date.now()-h<a)){e.next=10;break}if(f=t(),!u(f)){e.next=6;break}return e.abrupt("return",f);case 6:return e.next=8,l(i);case 8:e.next=2;break;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t){return new Promise((function(n){e.addEventListener(t,(function r(i){e.removeEventListener(t,r),n(i)}))}))}n.r(t),n.d(t,{disableSelect:function(){return a},clamp:function(){return s},cssPercentage:function(){return u},notInArray:function(){return c},getActiveElement:function(){return l},isInputActive:function(){return h},getIFrameDocument:function(){return f},escapeHTML:function(){return d},decodeURIComponentPlus:function(){return p},encodeURIComponentPlus:function(){return v},debounce:function(){return g},throttle:function(){return m},polyfillCustomEvent:function(){return y},PolyfilledCustomEvent:function(){return b},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return k},arrEquals:function(){return x},arrChanged:function(){return P},sleep:function(){return S},poll:function(){return C},promisifyEvent:function(){return R}}),n(5666),n(6699),n(2023),n(4916),n(5306),n(5827),n(1539),n(8674),n(7042),n(8309),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948)},9662:function(e,t,n){var r=n(7854),i=n(614),o=n(6330),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},9483:function(e,t,n){var r=n(7854),i=n(4411),o=n(6330),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a constructor")}},6077:function(e,t,n){var r=n(7854),i=n(614),o=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},1223:function(e,t,n){var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e,t,n){var r=n(7854),i=n(7976),o=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},9670:function(e,t,n){var r=n(7854),i=n(111),o=r.String,a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},7556:function(e,t,n){var r=n(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},1285:function(e,t,n){"use strict";var r=n(7908),i=n(1400),o=n(6244);e.exports=function(e){for(var t=r(this),n=o(t),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;)t[s++]=e;return t}},8533:function(e,t,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var r=n(7854),i=n(9974),o=n(6916),a=n(7908),s=n(3411),u=n(7659),c=n(4411),l=n(6244),h=n(6135),f=n(8554),d=n(1246),p=r.Array;e.exports=function(e){var t=a(e),n=c(this),r=arguments.length,v=r>1?arguments[1]:void 0,g=void 0!==v;g&&(v=i(v,r>2?arguments[2]:void 0));var m,y,b,w,_,k,x=d(t),P=0;if(!x||this==p&&u(x))for(m=l(t),y=n?new this(m):p(m);m>P;P++)k=g?v(t[P],P):t[P],h(y,P,k);else for(_=(w=f(t,x)).next,y=n?new this:[];!(b=o(_,w)).done;P++)k=g?s(w,v,[b.value,P],!0):b.value,h(y,P,k);return y.length=P,y}},1318:function(e,t,n){var r=n(5656),i=n(1400),o=n(6244),a=function(e){return function(t,n,a){var s,u=r(t),c=o(u),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,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(e){var t=1==e,n=2==e,i=3==e,l=4==e,h=6==e,f=7==e,d=5==e||h;return function(p,v,g,m){for(var y,b,w=a(p),_=o(w),k=r(v,g),x=s(_),P=0,S=m||u,E=t?S(p,x):n||f?S(p,0):void 0;x>P;P++)if((d||P in _)&&(b=k(y=_[P],P,w),e))if(t)E[P]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return P;case 2:c(E,y)}else switch(e){case 4:return!1;case 7:c(E,y)}return h?-1:i||l?l:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(e,t,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},3671:function(e,t,n){var r=n(7854),i=n(9662),o=n(7908),a=n(8361),s=n(6244),u=r.TypeError,c=function(e){return function(t,n,r,c){i(n);var l=o(t),h=a(l),f=s(l),d=e?f-1:0,p=e?-1:1;if(r<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw u("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in h&&(c=n(c,h[d],d,l));return c}};e.exports={left:c(!1),right:c(!0)}},1589:function(e,t,n){var r=n(7854),i=n(1400),o=n(6244),a=n(6135),s=r.Array,u=Math.max;e.exports=function(e,t,n){for(var r=o(e),c=i(t,r),l=i(void 0===n?r:n,r),h=s(u(l-c,0)),f=0;c<l;c++,f++)a(h,f,e[c]);return h.length=f,h}},206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},4362:function(e,t,n){var r=n(1589),i=Math.floor,o=function(e,t){var n=e.length,u=i(n/2);return n<8?a(e,t):s(e,o(r(e,0,u),t),o(r(e,u),t),t)},a=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e};e.exports=o},7475:function(e,t,n){var r=n(7854),i=n(3157),o=n(4411),a=n(111),s=n(5112)("species"),u=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(o(t)&&(t===u||i(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?u:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},7072:function(e,t,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(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e,t,n){var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},648:function(e,t,n){var r=n(7854),i=n(1694),o=n(614),a=n(4326),s=n(5112)("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=u(e),s))?n:c?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),u=n(408),c=n(654),l=n(6340),h=n(9781),f=n(2423).fastKey,d=n(9909),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,d),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})})),d=l.prototype,g=v(t),m=function(e,t,n){var r,i,o=g(e),a=y(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},y=function(e,t){var n,r=g(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(d,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),o(d,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),h&&r(d,"size",{get:function(){return g(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},9320:function(e,t,n){"use strict";var r=n(1702),i=n(2248),o=n(2423).getWeakData,a=n(9670),s=n(111),u=n(5787),c=n(408),l=n(2092),h=n(2597),f=n(9909),d=f.set,p=f.getterFor,v=l.find,g=l.findIndex,m=r([].splice),y=0,b=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},_=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var n=_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var l=e((function(e,i){u(e,f),d(e,{type:t,id:y++,frozen:void 0}),null!=i&&c(i,e[r],{that:e,AS_ENTRIES:n})})),f=l.prototype,v=p(t),g=function(e,t,n){var r=v(e),i=o(a(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return i(f,{delete:function(e){var t=v(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t).has(e):n&&h(n,t.id)}}),i(f,n?{get:function(e){var t=v(this);if(s(e)){var n=o(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),l}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(1702),a=n(4705),s=n(1320),u=n(2423),c=n(408),l=n(5787),h=n(614),f=n(111),d=n(7293),p=n(7072),v=n(8003),g=n(9587);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=m?"set":"add",w=i[e],_=w&&w.prototype,k=w,x={},P=function(e){var t=o(_[e]);s(_,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!h(w)||!(y||_.forEach&&!d((function(){(new w).entries().next()})))))k=n.getConstructor(t,e,m,b),u.enable();else if(a(e,!0)){var S=new k,E=S[b](y?{}:-0,1)!=S,C=d((function(){S.has(1)})),T=p((function(e){new w(e)})),R=!y&&d((function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)}));T||((k=t((function(e,t){l(e,_);var n=g(new w,e,k);return null!=t&&c(t,n[b],{that:n,AS_ENTRIES:m}),n}))).prototype=_,_.constructor=k),(C||R)&&(P("delete"),P("has"),m&&P("get")),(R||E)&&P(b),y&&_.clear&&delete _.clear}return x[e]=k,r({global:!0,forced:k!=w},x),v(k,e),y||n.setStrong(k,e,m),k}},9920:function(e,t,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var h=s[l];r(e,h)||n&&r(n,h)||u(e,h,c(t,h))}}},4964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},8709:function(e,t,n){"use strict";var r=n(7854),i=n(9670),o=n(2140),a=r.TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return o(this,e)}},654:function(e,t,n){"use strict";var r=n(2109),i=n(6916),o=n(1913),a=n(6530),s=n(614),u=n(4994),c=n(9518),l=n(7674),h=n(8003),f=n(8880),d=n(1320),p=n(5112),v=n(7497),g=n(3383),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=p("iterator"),k="keys",x="values",P="entries",S=function(){return this};e.exports=function(e,t,n,a,p,g,E){u(n,t,a);var C,T,R,O=function(e){if(e===p&&$)return $;if(!w&&e in M)return M[e];switch(e){case k:case x:case P:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",I=!1,M=e.prototype,j=M[_]||M["@@iterator"]||p&&M[p],$=!w&&j||O(p),L="Array"==t&&M.entries||j;if(L&&(C=c(L.call(new e)))!==Object.prototype&&C.next&&(o||c(C)===b||(l?l(C,b):s(C[_])||d(C,_,S)),h(C,A,!0,!0),o&&(v[A]=S)),m&&p==x&&j&&j.name!==x&&(!o&&y?f(M,"name",x):(I=!0,$=function(){return i(j,this)})),p)if(T={values:O(x),keys:g?$:O(k),entries:O(P)},E)for(R in T)(w||I||!(R in M))&&d(M,R,T[R]);else r({target:t,proto:!0,forced:w||I},T);return o&&!E||M[_]===$||d(M,_,$,{name:p}),v[t]=$,T}},7235:function(e,t,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(e,t,n){var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},8886:function(e,t,n){var r=n(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window&&"object"!=typeof Deno},256:function(e,t,n){var r=n(8113);e.exports=/MSIE|Trident/.test(r)},1528:function(e,t,n){var r=n(8113),i=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(e,t,n){var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),i=n(7854);e.exports="process"==r(i.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,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]),e.exports=i},8008:function(e,t,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);e.exports=function(e,t){var n,l,h,f,d,p=e.target,v=e.global,g=e.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],h=e.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,e.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1702),i=n(1320),o=n(2261),a=n(7293),s=n(5112),u=n(8880),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,h){var f=s(e),d=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=d&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!d||!p||n){var v=r(/./[f]),g=t(f,""[e],(function(e,t,n,i,a){var s=r(e),u=t.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,f,g[1])}h&&u(l[f],"sham",!0)}},6790:function(e,t,n){"use strict";var r=n(7854),i=n(3157),o=n(6244),a=n(9974),s=r.TypeError,u=function(e,t,n,r,c,l,h,f){for(var d,p,v=c,g=0,m=!!h&&a(h,f);g<r;){if(g in n){if(d=m?m(n[g],g,t):n[g],l>0&&i(d))p=o(d),v=u(e,t,d,p,v,l-1)-1;else{if(v>=9007199254740991)throw s("Exceed the acceptable array length");e[v]=d}v++}g++}return v};e.exports=u},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(e,t,n){var r=n(1702),i=n(9662),o=n(4374),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},7065:function(e,t,n){"use strict";var r=n(7854),i=n(1702),o=n(9662),a=n(111),s=n(2597),u=n(206),c=n(4374),l=r.Function,h=i([].concat),f=i([].join),d={},p=function(e,t,n){if(!s(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=l("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=c?l.bind:function(e){var t=o(this),n=t.prototype,r=u(arguments,1),i=function(){var n=h(r,u(arguments));return this instanceof i?p(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},6916:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,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);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),i=n(614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},1246:function(e,t,n){var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[r(e)]}},8554:function(e,t,n){var r=n(7854),i=n(6916),o=n(9662),a=n(9670),s=n(6330),u=n(1246),c=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(o(n))return a(i(n,e));throw c(s(e)+" is not iterable")}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:function(e,t,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;e.exports=function(e,t,n,r,h,f){var d=n+e.length,p=r.length,v=l;return void 0!==h&&(h=i(h),v=c),s(f,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,d);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var f=o(l/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7854),i=n(1702),o=n(7293),a=n(4326),s=r.Object,u=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?u(e,""):s(e)}:s},9587:function(e,t,n){var r=n(614),i=n(111),o=n(7674);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},2788:function(e,t,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},2423:function(e,t,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),h=n(2050),f=n(9711),d=n(6677),p=!1,v=f("meta"),g=0,m=function(e){u(e,v,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!h(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!h(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return d&&p&&h(e)&&!s(e,v)&&m(e),e}};o[v]=!0},9909:function(e,t,n){var r,i,o,a=n(8536),s=n(7854),u=n(1702),c=n(111),l=n(8880),h=n(2597),f=n(5465),d=n(6200),p=n(3501),v="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new m),b=u(y.get),w=u(y.has),_=u(y.set);r=function(e,t){if(w(y,e))throw new g(v);return t.facade=e,_(y,e,t),t},i=function(e){return b(y,e)||{}},o=function(e){return w(y,e)}}else{var k=d("state");p[k]=!0,r=function(e,t){if(h(e,k))throw new g(v);return t.facade=e,l(e,k,t),t},i=function(e){return h(e,k)?e[k]:{}},o=function(e){return h(e,k)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e){e.exports=function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(c),v=function(e){if(!o(e))return!1;try{return h(c,l,e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(e){return!0}};g.sham=!0,e.exports=!h||i((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?g:v},5032:function(e,t,n){var r=n(2597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},4705:function(e,t,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==l||n!=c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),i=n(4326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},2190:function(e,t,n){var r=n(7854),i=n(5005),o=n(614),a=n(7976),s=n(3307),u=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,u(e))}},408:function(e,t,n){var r=n(7854),i=n(9974),o=n(6916),a=n(9670),s=n(6330),u=n(7659),c=n(6244),l=n(7976),h=n(8554),f=n(1246),d=n(9212),p=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},g=v.prototype;e.exports=function(e,t,n){var r,m,y,b,w,_,k,x=n&&n.that,P=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),C=i(t,x),T=function(e){return r&&d(r,"normal",e),new v(!0,e)},R=function(e){return P?(a(e),E?C(e[0],e[1],T):C(e[0],e[1])):E?C(e,T):C(e)};if(S)r=e;else{if(!(m=f(e)))throw p(s(e)+" is not iterable");if(u(m)){for(y=0,b=c(e);b>y;y++)if((w=R(e[y]))&&l(g,w))return w;return new v(!1)}r=h(e,m)}for(_=r.next;!(k=o(_,r)).done;){try{w=R(k.value)}catch(e){d(r,"throw",e)}if("object"==typeof w&&w&&l(g,w))return w}return new v(!1)}},9212:function(e,t,n){var r=n(6916),i=n(9670),o=n(8173);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},3383:function(e,t,n){"use strict";var r,i,o,a=n(7293),s=n(614),u=n(30),c=n(9518),l=n(1320),h=n(5112),f=n(1913),d=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):p=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(e){e.exports={}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},4310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},5948:function(e,t,n){var r,i,o,a,s,u,c,l,h=n(7854),f=n(9974),d=n(1236).f,p=n(261).set,v=n(8334),g=n(1528),m=n(1036),y=n(5268),b=h.MutationObserver||h.WebKitMutationObserver,w=h.document,_=h.process,k=h.Promise,x=d(h,"queueMicrotask"),P=x&&x.value;P||(r=function(){var e,t;for(y&&(e=_.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},v||y||m||!b||!w?!g&&k&&k.resolve?((c=k.resolve(void 0)).constructor=k,l=f(c.then,c),a=function(){l(r)}):y?a=function(){_.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,u=w.createTextNode(""),new b(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=P||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},735:function(e,t,n){var r=n(133);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(e,t,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[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}))},8536:function(e,t,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},8523:function(e,t,n){"use strict";var r=n(9662),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(7854),i=n(7850),o=r.TypeError;e.exports=function(e){if(i(e))throw o("The method doesn't accept regular expressions");return e}},3009:function(e,t,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,h=l&&l.iterator,f=/^[+-]?0x/i,d=o(f.exec),p=8!==c(u+"08")||22!==c(u+"0x16")||h&&!i((function(){c(Object(h))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(d(f,n)?16:10))}:c},1574:function(e,t,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),h=n(8361),f=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,f=u.f,d=c.f;i>a;)for(var v,g=h(arguments[a++]),m=f?p(s(g),f(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:f},30:function(e,t,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?d(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[l]=e):n=p(),void 0===t?n:o.f(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},3070:function(e,t,n){var r=n(7854),i=n(9781),o=n(4664),a=n(3353),s=n(9670),u=n(4948),c=r.TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,n){if(s(e),t=u(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=h(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=u(t),s(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,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),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=u(t),l)try{return h(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},1156:function(e,t,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):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},8006:function(e,t,n){var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(7854),i=n(2597),o=n(614),a=n(7908),s=n(6200),u=n(8544),c=s("IE_PROTO"),l=r.Object,h=l.prototype;e.exports=u?l.getPrototypeOf:function(e){var t=a(e);if(i(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?h:null}},2050:function(e,t,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!=o(e))&&(!s||s(e))}:s},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),i=n(9670),o=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},4699:function(e,t,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(e){return function(t){for(var n,i=a(t),c=o(i),l=c.length,h=0,f=[];l>h;)n=c[h++],r&&!s(i,n)||u(f,e?[n,i[n]]:i[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},288:function(e,t,n){"use strict";var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(e,t,n){var r=n(7854),i=n(6916),o=n(614),a=n(111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&o(n=e.toString)&&!a(r=i(n,e)))return r;if(o(n=e.valueOf)&&!a(r=i(n,e)))return r;if("string"!==t&&o(n=e.toString)&&!a(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},3702:function(e,t,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(1913),h=n(7392),f=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(h>=51&&/native code/.test(e))return!1;var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r)||!t&&c&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},2492:function(e,t,n){var r=n(7854);e.exports=r.Promise},9478:function(e,t,n){var r=n(9670),i=n(111),o=n(8523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},612:function(e,t,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8572:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},1320:function(e,t,n){var r=n(7854),i=n(614),o=n(2597),a=n(8880),s=n(3505),u=n(2788),c=n(9909),l=n(6530).CONFIGURABLE,h=c.get,f=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,u){var c,h=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:t;i(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||l&&n.name!==g)&&a(n,"name",g),(c=f(n)).source||(c.source=d.join("string"==typeof g?g:""))),e!==r?(h?!v&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||u(this)}))},7651:function(e,t,n){var r=n(7854),i=n(6916),o=n(9670),a=n(614),s=n(4326),u=n(2261),c=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=i(n,e,t);return null!==r&&o(r),r}if("RegExp"===s(e))return i(u,e,t);throw c("RegExp#exec called on incompatible receiver")}},2261:function(e,t,n){"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),h=n(30),f=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),_=a("".slice),k=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=c.BROKEN_CARET,P=void 0!==/()??/.exec("")[1];(k||P||x||d||p)&&(m=function(e){var t,n,r,i,a,c,l,d=this,p=f(d),S=s(e),E=p.raw;if(E)return E.lastIndex=d.lastIndex,t=o(m,E,S),d.lastIndex=E.lastIndex,t;var C=p.groups,T=x&&d.sticky,R=o(u,d),O=d.source,A=0,I=S;if(T&&(R=w(R,"y",""),-1===b(R,"g")&&(R+="g"),I=_(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(S,d.lastIndex-1))&&(O="(?: "+O+")",I=" "+I,A++),n=new RegExp("^(?:"+O+")",R)),P&&(n=new RegExp("^"+O+"$(?!\\s)",R)),k&&(r=d.lastIndex),i=o(g,T?n:d,I),T?i?(i.input=_(i.input,A),i[0]=_(i[0],A),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:k&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),P&&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=h(null),a=0;a<C.length;a++)c[(l=C[a])[0]]=i[l[1]];return i}),e.exports=m},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},4706:function(e,t,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},2999:function(e,t,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,t,n){var r=n(7293),i=n(7854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:function(e,t,n){var r=n(7854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},1150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3505:function(e,t,n){var r=n(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(e,t,n){var r=n(9670),i=n(9483),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8710:function(e,t,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(e){return function(t,n){var r,l,h=o(a(t)),f=i(n),d=h.length;return f<0||f>=d?e?"":void 0:(r=u(h,f))<55296||r>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?e?s(h,f):r:e?c(h,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(e,t,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+"*$"),h=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},6532:function(e,t,n){var r=n(6916),i=n(5005),o=n(5112),a=n(1320);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}))}},261:function(e,t,n){var r,i,o,a,s=n(7854),u=n(2104),c=n(9974),l=n(614),h=n(2597),f=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,_=s.process,k=s.Dispatch,x=s.Function,P=s.MessageChannel,S=s.String,E=0,C={};try{r=s.location}catch(e){}var T=function(e){if(h(C,e)){var t=C[e];delete C[e],t()}},R=function(e){return function(){T(e)}},O=function(e){T(e.data)},A=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=l(e)?e:x(e),n=p(arguments,1);return C[++E]=function(){u(t,void 0,n)},i(E),E},w=function(e){delete C[e]},y?i=function(e){_.nextTick(R(e))}:k&&k.now?i=function(e){k.now(R(e))}:P&&!m?(a=(o=new P).port2,o.port1.onmessage=O,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(A)?(i=A,s.addEventListener("message",O,!1)):i="onreadystatechange"in v("script")?function(e){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:w}},863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},1400:function(e,t,n){var r=n(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(7854),i=n(4488),o=r.Object;e.exports=function(e){return o(i(e))}},7593:function(e,t,n){var r=n(7854),i=n(6916),o=n(111),a=n(2190),s=n(8173),u=n(2140),c=n(5112),l=r.TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,r=s(e,h);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},1340:function(e,t,n){var r=n(7854),i=n(648),o=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e,t,n){var r=n(7854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},9711:function(e,t,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(e,t,n){var r=n(7854).TypeError;e.exports=function(e,t){if(e<t)throw r("Not enough arguments");return e}},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=l&&l.for,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(l,e)?c[e]=l[e]:c[e]=u&&h?h(t):f(t)}return c[e]}},1361:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(7293),a=n(3157),s=n(111),u=n(7908),c=n(6244),l=n(6135),h=n(5417),f=n(1194),d=n(5112),p=n(7392),v=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",y=i.TypeError,b=p>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),w=f("concat"),_=function(e){if(!s(e))return!1;var t=e[v];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!b||!w},{concat:function(e){var t,n,r,i,o,a=u(this),s=h(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(_(o=-1===t?a:arguments[t])){if(f+(i=c(o))>g)throw y(m);for(n=0;n<i;n++,f++)n in o&&l(s,f,o[n])}else{if(f>=g)throw y(m);l(s,f++,o)}return s.length=f,s}})},3290:function(e,t,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(e,t,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(e,t,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(e,t,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(e){var t,n=a(this),r=s(n);return o(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},4944:function(e,t,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 e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},1038:function(e,t,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:i})},6699:function(e,t,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(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(e,t,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(654),c=n(1913),l=n(9781),h="Array Iterator",f=a.set,d=a.getterFor(h);e.exports=u(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&l&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},9600:function(e,t,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(e){return u(a(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5827:function(e,t,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(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},5069:function(e,t,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(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(3157),a=n(4411),s=n(111),u=n(1400),c=n(6244),l=n(5656),h=n(6135),f=n(5112),d=n(1194),p=n(206),v=d("slice"),g=f("species"),m=i.Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,i,f=l(this),d=c(f),v=u(e,d),b=u(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,(a(n)&&(n===m||o(n.prototype))||s(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return p(f,v,b);for(r=new(void 0===n?m:n)(y(b-v,0)),i=0;v<b;v++,i++)v in f&&h(r,i,f[v]);return r.length=i,r}})},2707:function(e,t,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(1340),c=n(7293),l=n(4362),h=n(9341),f=n(8886),d=n(256),p=n(7392),v=n(8008),g=[],m=i(g.sort),y=i(g.push),b=c((function(){g.sort(void 0)})),w=c((function(){g.sort(null)})),_=h("sort"),k=!c((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(v)return v<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:b||!w||!_||!k},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(k)return void 0===e?m(t):m(t,e);var n,r,i=[],c=s(t);for(r=0;r<c;r++)r in t&&y(i,t[r]);for(l(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=i.length,r=0;r<n;)t[r]=i[r++];for(;r<c;)delete t[r++];return t}})},561:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(1400),a=n(9303),s=n(6244),u=n(7908),c=n(5417),l=n(6135),h=n(1194)("splice"),f=i.TypeError,d=Math.max,p=Math.min,v=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,i,h,m,y,b=u(this),w=s(b),_=o(e,w),k=arguments.length;if(0===k?n=r=0:1===k?(n=0,r=w-_):(n=k-2,r=p(d(a(t),0),w-_)),w+n-r>v)throw f(g);for(i=c(b,r),h=0;h<r;h++)(m=_+h)in b&&l(i,h,b[m]);if(i.length=r,n<r){for(h=_;h<w-r;h++)y=h+n,(m=h+r)in b?b[y]=b[m]:delete b[y];for(h=w;h>w-r+n;h--)delete b[h-1]}else if(n>r)for(h=w-r;h>_;h--)y=h+n-1,(m=h+r-1)in b?b[y]=b[m]:delete b[y];for(h=0;h<n;h++)b[h+_]=arguments[h+2];return b.length=w-r+n,i}})},9244:function(e,t,n){n(1223)("flatMap")},3792:function(e,t,n){n(1223)("flat")},6078:function(e,t,n){var r=n(2597),i=n(1320),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(e,t,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(e){return""}}})},5837:function(e,t,n){n(2109)({global:!0},{globalThis:n(7854)})},8862:function(e,t,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),h=n(111),f=n(2190),d=n(206),p=n(133),v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),_=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,P=!p||u((function(){var e=i("Symbol")();return"[null]"!=v([e])||"{}"!=v({a:e})||"{}"!=v(Object(e))})),S=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(e,t){var n=d(arguments),r=t;if((h(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if(l(r)&&(t=a(r,this,e,t)),!f(t))return t}),n[1]=t,o(v,null,n)},C=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return g(k,e)&&!g(x,i)||g(x,e)&&!g(k,r)?"\\u"+w(y(e,0),16):e};v&&r({target:"JSON",stat:!0,forced:P||S},{stringify:function(e,t,n){var r=d(arguments),i=o(P?E:v,null,r);return S&&"string"==typeof i?b(i,_,C):i}})},3706:function(e,t,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(e,t,n){"use strict";n(7710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(e,t,n){n(9098)},4914:function(e,t,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},2420:function(e,t,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(e,t,n){n(8003)(Math,"Math",!0)},9653:function(e,t,n){"use strict";var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(1320),u=n(2597),c=n(9587),l=n(7976),h=n(2190),f=n(7593),d=n(7293),p=n(8006).f,v=n(1236).f,g=n(3070).f,m=n(863),y=n(3111).trim,b="Number",w=i.Number,_=w.prototype,k=i.TypeError,x=o("".slice),P=o("".charCodeAt),S=function(e){var t=f(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,n,r,i,o,a,s,u,c=f(e,"number");if(h(c))throw k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),43===(t=P(c,0))||45===t){if(88===(n=P(c,2))||120===n)return NaN}else if(48===t){switch(P(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=x(c,2)).length,s=0;s<a;s++)if((u=P(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(a(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var C,T=function(e){var t=arguments.length<1?0:w(S(e)),n=this;return l(_,n)&&d((function(){m(n)}))?c(Object(t),n,T):t},R=r?p(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;R.length>O;O++)u(w,C=R[O])&&!u(T,C)&&g(T,C,v(w,C));T.prototype=_,_.constructor=T,s(i,b,T)}},9601:function(e,t,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(e,t,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(e){return u&&a(e)?u(s(e)):e}})},5003:function(e,t,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(e,t){return a(o(e),t)}})},9337:function(e,t,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(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,t=c[h++]))&&u(l,t,n);return l}})},6210:function(e,t,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(e,t,n){var r=n(2109),i=n(133),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},489:function(e,t,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(e){return a(o(e))}})},7941:function(e,t,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},1539:function(e,t,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(e,t,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},1058:function(e,t,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(e,t,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(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,a[o]=e,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},4164:function(e,t,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(1320),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},3401:function(e,t,n){"use strict";var r,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),h=n(1320),f=n(2248),d=n(7674),p=n(8003),v=n(6340),g=n(9662),m=n(614),y=n(111),b=n(5787),w=n(6707),_=n(261).set,k=n(5948),x=n(842),P=n(2534),S=n(8572),E=n(9909),C=n(2492),T=n(3702),R=n(8523),O="Promise",A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,M=T.SUBCLASSING,j=E.getterFor(O),$=E.set,L=C&&C.prototype,D=C,N=L,B=c.TypeError,U=c.document,F=c.process,z=R.f,W=z,H=!!(U&&U.createEvent&&c.dispatchEvent),V="unhandledrejection",q=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},Y=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,h=e.domain;try{s?(a||(2===t.rejection&&J(t),t.rejection=1),!0===s?n=o:(h&&h.enter(),n=s(o),h&&(h.exit(),i=!0)),n===e.promise?c(B("Promise-chain cycle")):(r=q(n))?l(r,n,u,c):u(n)):c(o)}catch(e){h&&!i&&h.exit(),c(e)}},X=function(e,t){e.notified||(e.notified=!0,k((function(){for(var n,r=e.reactions;n=r.get();)Y(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},G=function(e,t,n){var r,i;H?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!I&&(i=c["on"+e])?i(r):e===V&&x("Unhandled promise rejection",n)},K=function(e){l(_,c,(function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=P((function(){u?F.emit("unhandledRejection",r,n):G(V,n,r)})),e.rejection=u||Z(e)?2:1,t.error))throw t.value}))},Z=function(e){return 1!==e.rejection&&!e.parent},J=function(e){l(_,c,(function(){var t=e.facade;u?F.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Q=function(e,t,n){return function(r){e(t,r,n)}},ee=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},te=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B("Promise can't be resolved itself");var r=q(t);r?k((function(){var n={done:!1};try{l(r,t,Q(te,n,e),Q(ee,n,e))}catch(t){ee(n,t,e)}})):(e.value=t,e.state=1,X(e,!1))}catch(t){ee({done:!1},t,e)}}};if(A&&(N=(D=function(e){b(this,N),g(e),l(r,this);var t=j(this);try{e(Q(te,t),Q(ee,t))}catch(e){ee(t,e)}}).prototype,(r=function(e){$(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(N,{then:function(e,t){var n=j(this),r=z(w(this,D));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=u?F.domain:void 0,0==n.state?n.reactions.add(r):k((function(){Y(r,n)})),r.promise}}),i=function(){var e=new r,t=j(e);this.promise=e,this.resolve=Q(te,t),this.reject=Q(ee,t)},R.f=z=function(e){return e===D||void 0===e?new i(e):W(e)},!s&&m(C)&&L!==Object.prototype)){o=L.then,M||h(L,"then",(function(e,t){var n=this;return new D((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,N)}a({global:!0,wrap:!0,forced:A},{Promise:D}),p(D,O,!1,!0),v(O)},8674:function(e,t,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(e,t,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(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(e,t,n){"use strict";var r=n(2109),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},6294:function(e,t,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(e){return u(l&&this===c?a:this,e)}})},2419:function(e,t,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),h=n(7293),f=i("Reflect","construct"),d=Object.prototype,p=[].push,v=h((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!h((function(){f((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!v)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(p,r,t),new(o(a,e,r))}var i=n.prototype,h=l(c(i)?i:d),m=o(e,h,t);return c(m)?m:h}})},4819:function(e,t,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 e(t,n){var r,l,h=arguments.length<3?t:arguments[2];return a(t)===h?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,h):o(l=c(t))?e(l,n,h):void 0}})},4603:function(e,t,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),h=n(7850),f=n(1340),d=n(4706),p=n(2999),v=n(2626),g=n(1320),m=n(7293),y=n(2597),b=n(9909).enforce,w=n(6340),_=n(5112),k=n(9441),x=n(7168),P=_("match"),S=i.RegExp,E=S.prototype,C=i.SyntaxError,T=o(E.exec),R=o("".charAt),O=o("".replace),A=o("".indexOf),I=o("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,j=/a/g,$=/a/g,L=new S(j)!==j,D=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||D||k||x||m((function(){return $[P]=!1,S(j)!=j||S($)==$||"/a/i"!=S(j,"i")}))))){for(var B=function(e,t){var n,r,i,o,a,c,p=l(E,this),v=h(e),g=void 0===t,m=[],w=e;if(!p&&v&&g&&e.constructor===B)return e;if((v||l(E,e))&&(e=e.source,g&&(t=d(w))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),w=e,k&&"dotAll"in j&&(r=!!t&&A(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,D&&"sticky"in j&&(i=!!t&&A(t,"y")>-1)&&N&&(t=O(t,/y/g,"")),x&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(t=R(e,r)))t+=R(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(M,I(e,r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&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+=t:i+=t}return[i,o]}(e))[0],m=o[1]),a=s(S(e,t),p?this:E,B),(r||i||m.length)&&(c=b(a),r&&(c.dotAll=!0,c.raw=B(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=R(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+R(e,++r);return i}(e),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(e){}return a},U=c(S),F=0;U.length>F;)v(B,S,U[F++]);E.constructor=B,B.prototype=E,g(i,"RegExp",B)}w("RegExp")},4916:function(e,t,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(e,t,n){"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),s=n(7293),u=n(4706),c="toString",l=RegExp.prototype.toString,h=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=r&&l.name!=c;(h||f)&&i(RegExp.prototype,c,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},7227:function(e,t,n){"use strict";n(7710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(5631))},189:function(e,t,n){n(7227)},7852:function(e,t,n){"use strict";var r,i=n(2109),o=n(1702),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),h=n(4964),f=n(1913),d=o("".endsWith),p=o("".slice),v=Math.min,g=h("endsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(e){var t=u(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:v(s(n),r),o=u(e);return d?d(t,o,i):p(t,i-o.length,i)===o}})},2023:function(e,t,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(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},4723:function(e,t,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(7466),s=n(1340),u=n(4488),c=n(8173),l=n(1530),h=n(7651);i("match",(function(e,t,n){return[function(t){var n=u(this),i=null==t?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),i=s(e),u=n(t,r,i);if(u.done)return u.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var f,d=[],p=0;null!==(f=h(r,i));){var v=s(f[0]);d[p]=v,""===v&&(r.lastIndex=l(i,a(r.lastIndex),c)),p++}return 0===p?null:d}]}))},5306:function(e,t,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(9303),h=n(7466),f=n(1340),d=n(4488),p=n(1530),v=n(8173),g=n(647),m=n(7651),y=n(5112)("replace"),b=Math.max,w=Math.min,_=o([].concat),k=o([].push),x=o("".indexOf),P=o("".slice),S="$0"==="a".replace(/./,"$0"),E=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var o=E?"$":"$0";return[function(e,n){var r=d(this),o=null==e?void 0:v(e,y);return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var a=u(this),s=f(e);if("string"==typeof i&&-1===x(i,o)&&-1===x(i,"$<")){var d=n(t,a,s,i);if(d.done)return d.value}var v=c(i);v||(i=f(i));var y=a.global;if(y){var S=a.unicode;a.lastIndex=0}for(var E=[];;){var C=m(a,s);if(null===C)break;if(k(E,C),!y)break;""===f(C[0])&&(a.lastIndex=p(s,h(a.lastIndex),S))}for(var T,R="",O=0,A=0;A<E.length;A++){for(var I=f((C=E[A])[0]),M=b(w(l(C.index),s.length),0),j=[],$=1;$<C.length;$++)k(j,void 0===(T=C[$])?T:String(T));var L=C.groups;if(v){var D=_([I],j,M,s);void 0!==L&&k(D,L);var N=f(r(i,void 0,D))}else N=g(I,s,M,j,L,i);M>=O&&(R+=P(s,O,M)+N,O=M+I.length)}return R+P(s,O)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||E)},4765:function(e,t,n){"use strict";var r=n(6916),i=n(7007),o=n(9670),a=n(4488),s=n(1150),u=n(1340),c=n(8173),l=n(7651);i("search",(function(e,t,n){return[function(t){var n=a(this),i=null==t?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),a=n(t,r,i);if(a.done)return a.value;var c=r.lastIndex;s(c,0)||(r.lastIndex=0);var h=l(r,i);return s(r.lastIndex,c)||(r.lastIndex=c),null===h?-1:h.index}]}))},3123:function(e,t,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7850),u=n(9670),c=n(4488),l=n(6707),h=n(1530),f=n(7466),d=n(1340),p=n(8173),v=n(1589),g=n(7651),m=n(2261),y=n(2999),b=n(7293),w=y.UNSUPPORTED_Y,_=4294967295,k=Math.min,x=[].push,P=o(/./.exec),S=o(x),E=o("".slice);a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=d(c(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);for(var u,l,h,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,y=new RegExp(e.source,p+"g");(u=i(m,y,o))&&!((l=y.lastIndex)>g&&(S(f,E(o,g,u.index)),u.length>1&&u.index<o.length&&r(x,f,v(u,1)),h=u[0].length,g=l,f.length>=a));)y.lastIndex===u.index&&y.lastIndex++;return g===o.length?!h&&P(y,"")||S(f,""):S(f,E(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=c(this),a=null==t?void 0:p(t,e);return a?i(a,t,r,n):i(o,d(r),t,n)},function(e,r){var i=u(this),a=d(e),s=n(o,i,a,r,o!==t);if(s.done)return s.value;var c=l(i,RegExp),p=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?_:r>>>0;if(0===y)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var b=0,x=0,P=[];x<a.length;){m.lastIndex=w?0:x;var C,T=g(m,w?E(a,x):a);if(null===T||(C=k(f(m.lastIndex+(w?x:0)),a.length))===b)x=h(a,x,p);else{if(S(P,E(a,b,x)),P.length===y)return P;for(var R=1;R<=T.length-1;R++)if(S(P,T[R]),P.length===y)return P;x=b=C}}return S(P,E(a,b)),P}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},6755:function(e,t,n){"use strict";var r,i=n(2109),o=n(1702),a=n(1236).f,s=n(7466),u=n(1340),c=n(3929),l=n(4488),h=n(4964),f=n(1913),d=o("".startsWith),p=o("".slice),v=Math.min,g=h("startsWith");i({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=u(l(this));c(e);var n=s(v(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return d?d(t,r,n):p(t,n,n+r.length)===r}})},4032:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(133),l=n(7293),h=n(2597),f=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),_=n(1156),k=n(5181),x=n(1236),P=n(3070),S=n(6048),E=n(5296),C=n(1320),T=n(2309),R=n(6200),O=n(3501),A=n(9711),I=n(5112),M=n(6061),j=n(7235),$=n(6532),L=n(8003),D=n(9909),N=n(2092).forEach,B=R("hidden"),U="Symbol",F=D.set,z=D.getterFor(U),W=Object.prototype,H=i.Symbol,V=H&&H.prototype,q=i.TypeError,Y=i.QObject,X=x.f,G=P.f,K=_.f,Z=E.f,J=a([].push),Q=T("symbols"),ee=T("op-symbols"),te=T("wks"),ne=!Y||!Y.prototype||!Y.prototype.findChild,re=u&&l((function(){return 7!=y(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],G(e,t,n),r&&e!==W&&G(W,t,r)}:G,ie=function(e,t){var n=Q[e]=y(V);return F(n,{type:U,tag:e,description:t}),u||(n.description=t),n},oe=function(e,t,n){e===W&&oe(ee,t,n),d(e);var r=v(t);return d(n),h(Q,r)?(n.enumerable?(h(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,B)||G(e,B,m(1,{})),e[B][r]=!0),re(e,r,n)):G(e,r,n)},ae=function(e,t){d(e);var n=p(t),r=b(n).concat(le(n));return N(r,(function(t){u&&!o(se,n,t)||oe(e,t,n[t])})),e},se=function(e){var t=v(e),n=o(Z,this,t);return!(this===W&&h(Q,t)&&!h(ee,t))&&(!(n||!h(this,t)||!h(Q,t)||h(this,B)&&this[B][t])||n)},ue=function(e,t){var n=p(e),r=v(t);if(n!==W||!h(Q,r)||h(ee,r)){var i=X(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ce=function(e){var t=K(p(e)),n=[];return N(t,(function(e){h(Q,e)||h(O,e)||J(n,e)})),n},le=function(e){var t=e===W,n=K(t?ee:p(e)),r=[];return N(n,(function(e){!h(Q,e)||t&&!h(W,e)||J(r,Q[e])})),r};c||(C(V=(H=function(){if(f(V,this))throw q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=A(e),n=function(e){this===W&&o(n,ee,e),h(this,B)&&h(this[B],t)&&(this[B][t]=!1),re(this,t,m(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return z(this).tag})),C(H,"withoutSetter",(function(e){return ie(A(e),e)})),E.f=se,P.f=oe,S.f=ae,x.f=ue,w.f=_.f=ce,k.f=le,M.f=function(e){return ie(I(e),e)},u&&(G(V,"description",{configurable:!0,get:function(){return z(this).description}}),s||C(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),N(b(te),(function(e){j(e)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:oe,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),$(),L(H,U),O[B]=!0},1817:function(e,t,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),h=n(3070).f,f=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 e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(v[t]=!0),t};f(g,d),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(d("test")),y=a(p.toString),b=a(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),k=a("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(s(v,e))return"";var n=m?k(t,7,-1):_(t,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:g})}},763:function(e,t,n){var r=n(2109),i=n(5005),o=n(2597),a=n(1340),s=n(2309),u=n(735),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},2165:function(e,t,n){n(7235)("iterator")},2526:function(e,t,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(e,t,n){var r=n(2109),i=n(2597),o=n(2190),a=n(6330),s=n(2309),u=n(735),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},6649:function(e,t,n){var r=n(7235),i=n(6532);r("toPrimitive"),i()},3680:function(e,t,n){var r=n(5005),i=n(7235),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(e,t,n){"use strict";var r,i=n(7854),o=n(1702),a=n(2248),s=n(2423),u=n(7710),c=n(9320),l=n(111),h=n(2050),f=n(9909).enforce,d=n(8536),p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=u("WeakMap",v,c);if(d&&p){r=c.getConstructor(v,"WeakMap",!0),s.enable();var m=g.prototype,y=o(m.delete),b=o(m.has),w=o(m.get),_=o(m.set);a(m,{delete:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.delete(e)}return y(this,e)},has:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!h(e)){var t=f(this);return t.frozen||(t.frozen=new r),b(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(l(e)&&!h(e)){var n=f(this);n.frozen||(n.frozen=new r),b(this,e)?_(this,e,t):n.frozen.set(e,t)}else _(this,e,t);return this}})}},4129:function(e,t,n){n(1202)},5743:function(e,t,n){n(5837)},4747:function(e,t,n){var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(e,t,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"),h=a.values,f=function(e,t){if(e){if(e[c]!==h)try{s(e,c,h)}catch(t){e[c]=h}if(e[l]||s(e,l,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},5556:function(e,t,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(590),c=n(1320),l=n(2248),h=n(8003),f=n(4994),d=n(9909),p=n(5787),v=n(614),g=n(2597),m=n(9974),y=n(648),b=n(9670),w=n(111),_=n(1340),k=n(30),x=n(9114),P=n(8554),S=n(1246),E=n(8053),C=n(5112),T=n(4362),R=C("iterator"),O="URLSearchParams",A="URLSearchParamsIterator",I=d.set,M=d.getterFor(O),j=d.getterFor(A),$=Object.getOwnPropertyDescriptor,L=function(e){if(!s)return i[e];var t=$(i,e);return t&&t.value},D=L("fetch"),N=L("Request"),B=L("Headers"),U=N&&N.prototype,F=B&&B.prototype,z=i.RegExp,W=i.TypeError,H=i.decodeURIComponent,V=i.encodeURIComponent,q=a("".charAt),Y=a([].join),X=a([].push),G=a("".replace),K=a([].shift),Z=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return H(e)}catch(t){return e}},ie=function(e){var t=G(e,ee," "),n=4;try{return H(t)}catch(e){for(;n;)t=G(t,ne(n--),re);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},ue=function(e){return G(V(e),oe,se)},ce=f((function(e,t){I(this,{type:A,iterator:P(M(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===q(e,0)?Q(e,1):e:_(e)))};le.prototype={type:O,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,s,u,c=S(e);if(c)for(n=(t=P(e,c)).next;!(r=o(n,t)).done;){if(a=(i=P(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:_(s.value),value:_(u.value)})}else for(var l in e)g(e,l)&&X(this.entries,{key:l,value:_(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=J(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=J(t,"="),X(this.entries,{key:ie(K(n)),value:ie(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,ue(e.key)+"="+ue(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,fe);var e=arguments.length>0?arguments[0]:void 0;I(this,new le(e))},fe=he.prototype;if(l(fe,{append:function(e,t){E(arguments.length,2);var n=M(this);X(n.entries,{key:_(e),value:_(t)}),n.updateURL()},delete:function(e){E(arguments.length,1);for(var t=M(this),n=t.entries,r=_(e),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;t.updateURL()},get:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=[],i=0;i<t.length;i++)t[i].key===n&&X(r,t[i].value);return r},has:function(e){E(arguments.length,1);for(var t=M(this).entries,n=_(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){E(arguments.length,1);for(var n,r=M(this),i=r.entries,o=!1,a=_(e),s=_(t),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 e=M(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=m(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(fe,R,fe.entries,{name:"entries"}),c(fe,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),h(he,O),r({global:!0,forced:!u},{URLSearchParams:he}),!u&&v(B)){var de=a(F.has),pe=a(F.set),ve=function(e){if(w(e)){var t,n=e.body;if(y(n)===O)return t=e.headers?new B(e.headers):new B,de(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:x(0,_(n)),headers:x(0,t)})}return e};if(v(D)&&r({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ve(arguments[1]):{})}}),v(N)){var ge=function(e){return p(this,U),new N(e,arguments.length>1?ve(arguments[1]):{})};U.constructor=ge,ge.prototype=U,r({global:!0,forced:!0,noTargetGet:!0},{Request:ge})}}e.exports={URLSearchParams:he,getState:M}},1637:function(e,t,n){n(5556)},840:function(e,t,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(e,t,n){return setTimeout(_(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.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),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var y=m((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),b=m((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&u(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function k(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function x(e,t){return e===s?t:e}function P(e,t,n){g(T(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){g(T(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function C(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function R(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function O(e){return Array.prototype.slice.call(e,0)}function A(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];R(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function I(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var M=1;function j(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var $="ontouchstart"in i,L=I(i,"PointerEvent")!==s,D=$&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",B="mouse",U=["x","y"],F=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){k(e.options.enable,[e])&&n.handler(t)},this.init()}function W(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=H(t)),i>1&&!n.firstMultiple?n.firstMultiple=H(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=t.center=V(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=G(u,c),t.distance=X(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var l,h,p=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,t.scale=a?(l=a.pointers,X((h=r)[0],h[1],F)/X(l[0],l[1],F)):1,t.rotation=a?function(e,t){return G(t[1],t[0],F)+G(e[1],e[0],F)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||a.velocity===s)){var c=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,h=q(u,c,l);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=Y(c,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var v=e.element;E(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:V(t),deltaX:e.deltaX,deltaY:e.deltaY}}function V(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:f(e)>=f(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){n||(n=U);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(j(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",J="mousemove mouseup";function Q(){this.evEl=Z,this.evWin=J,this.pressed=!1,z.apply(this,arguments)}w(Q,z,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:N,3:"pen",4:B,5:"kinect"},ne="pointerdown",re="pointermove pointerup pointercancel";function ie(){this.evEl=ne,this.evWin=re,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ne="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,z,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ee[r],o=te[e.pointerType]||e.pointerType,a=o==N,s=R(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ue(){this.evTarget=ae,this.evWin=se,this.started=!1,z.apply(this,arguments)}function ce(e,t){var n=O(e.touches),r=O(e.changedTouches);return 12&t&&(n=A(n.concat(r),"identifier",!0)),[n,r]}w(ue,z,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ce.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},he="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=he,this.targetIds={},z.apply(this,arguments)}function de(e,t){var n=O(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=O(e.changedTouches),s=[],u=this.target;if(o=n.filter((function(e){return E(e.target,u)})),1===t)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]),12&t&&delete r[a[i].identifier],i++;return s.length?[A(o.concat(s),"identifier",!0),s]:void 0}function pe(){z.apply(this,arguments);var e=_(this.handler,this);this.touch=new fe(this.manager,e),this.mouse=new Q(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ve(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function me(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(fe,z,{handler:function(e){var t=le[e.type],n=de.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}),w(pe,z,{handler:function(e,t,n){var r=n.pointerType==N,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ve.call(this,t,n);else if(i&&me.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=I(l.style,"touchAction"),be=ye!==s,we="compute",_e="auto",ke="manipulation",xe="none",Pe="pan-x",Se="pan-y",Ee=function(){if(!be)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==we&&(e=this.compute()),be&&this.manager.element.style&&Ee[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){k(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(C(e,xe))return xe;var t=C(e,Pe),n=C(e,Se);return t&&n?xe:t||n?t?Pe:Se:C(e,ke)?ke:_e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=C(r,xe)&&!Ee.none,o=C(r,Se)&&!Ee["pan-y"],a=C(r,Pe)&&!Ee["pan-x"];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Te=32;function Re(e){this.options=u({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Oe(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ae(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ie(e,t){var n=t.manager;return n?n.get(e):e}function Me(){Re.apply(this,arguments)}function je(){Me.apply(this,arguments),this.pX=null,this.pY=null}function $e(){Me.apply(this,arguments)}function Le(){Re.apply(this,arguments),this._timer=null,this._input=null}function De(){Me.apply(this,arguments)}function Ne(){Me.apply(this,arguments)}function Be(){Re.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ue(e,t){return(t=t||{}).recognizers=x(t.recognizers,Ue.defaults.preset),new Fe(e,t)}function Fe(e,t){this.options=u({},Ue.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new(this.options.inputClass||(L?ie:D?fe:$?pe:Q))(this,W),this.touchAction=new Ce(this,this.options.touchAction),ze(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function ze(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(i,o){n=I(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Re.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ie(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=Ie(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===R(t,e=Ie(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=Ie(e,this);var t=R(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Oe(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Oe(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Te},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=u({},e);if(!k(this.options.enable,[this,t]))return this.reset(),void(this.state=Te);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Me,Re,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Te}}),w(je,Me,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Se),24&e&&t.push(Pe),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Me.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ae(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w($e,Me,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Le,Re,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Te},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(De,Me,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ne,Me,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return je.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Ae(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Be,Re,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ke]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Te},failTimeout:function(){return this._timer=p((function(){this.state=Te}),this.options.interval,this),Te},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ue.VERSION="2.0.7",Ue.defaults={domEvents:!1,touchAction:we,enable:!0,inputTarget:null,inputClass:null,preset:[[De,{enable:!1}],[$e,{enable:!1},["rotate"]],[Ne,{direction:6}],[je,{direction:6},["swipe"]],[Be],[Be,{event:"doubletap",taps:2},["tap"]],[Le]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Fe.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Re)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=R(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(T(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(T(e),(function(e){t?n[e]&&n[e].splice(R(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Ue,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Te,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Fe,Input:z,TouchAction:Ce,TouchInput:fe,MouseInput:Q,PointerEventInput:ie,TouchMouseInput:pe,SingleTouchInput:ue,Recognizer:Re,AttrRecognizer:Me,Tap:Be,Pan:je,Swipe:Ne,Pinch:$e,Rotate:De,Press:Le,on:P,off:S,each:g,merge:b,extend:y,assign:u,inherit:w,bindFn:_,prefixed:I}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ue,(r=function(){return Ue}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},4581:function(e,t,n){!function(e,t,n){var r,i,o,a,s,u,c,l,h,f,d,p,v,g,m,y,b,w,_,k,x,P,S,E,C,T,R,O,A,I,M,j,$,L={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 e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,n=e(this).data("cbox-img-attrs");return"object"==typeof n&&e.each(n,(function(e,n){t[e]=n})),t},createIframe:function(){var n=t.createElement("iframe"),r=e(this).data("cbox-iframe-attrs");return"object"==typeof r&&e.each(r,(function(e,t){n[e]=t})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},D="colorbox",N="cboxElement",B="cbox_load",U="cbox_complete",F="cbox_cleanup",z="cbox_closed",W="cbox_purge",H=e("<a/>"),V="div",q=0,Y={};function X(n,r,i){var o=t.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),e(o)}function G(){return n.innerHeight?n.innerHeight:e(n).height()}function K(t,n){n!==Object(n)&&(n={}),this.cache={},this.el=t,this.value=function(t){var r;return void 0===this.cache[t]&&(void 0!==(r=e(this.el).attr("data-cbox-"+t))?this.cache[t]=r:void 0!==n[t]?this.cache[t]=n[t]:void 0!==L[t]&&(this.cache[t]=L[t])),this.cache[t]},this.get=function(t){var n=this.value(t);return e.isFunction(n)?n.call(this.el,this):n}}function Z(e){var t=h.length,n=(T+e)%t;return n<0?t+n:n}function J(e,t){return Math.round((/%/.test(e)?("x"===t?f.width():G())/100:1)*parseInt(e,10))}function Q(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function ee(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function te(e){"contains"in i[0]&&!i[0].contains(e.target)&&e.target!==r[0]&&(e.stopPropagation(),i.focus())}function ne(e){ne.str!==e&&(i.add(r).removeClass(ne.str).addClass(e),ne.str=e)}function re(n){e(t).trigger(n),H.triggerHandler(n)}var ie=function(){var e,t,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(t)}function a(){(x.get("loop")||h[T+1])&&(o(),t=setTimeout(j.next,x.get("slideshowSpeed")))}function s(){y.html(x.get("slideshowStop")).unbind(r).one(r,u),H.bind(U,a).bind(B,o),i.removeClass(n+"off").addClass(n+"on")}function u(){o(),H.unbind(U,a).unbind(B,o),y.html(x.get("slideshowStart")).unbind(r).one(r,(function(){j.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){e=!1,y.hide(),o(),H.unbind(U,a).unbind(B,o),i.removeClass(n+"off "+n+"on")}return function(){e?x.get("slideshow")||(H.unbind(F,c),c()):x.get("slideshow")&&h[1]&&(e=!0,H.one(F,c),x.get("slideshowAuto")?s():u(),y.show())}}();function oe(o){var f,m;if(!I){if(f=e(o).data(D),x=new K(o,f),m=x.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(h=e(".cboxElement").filter((function(){return new K(this,e.data(this,D)).get("rel")===m})),-1===(T=h.index(x.el))&&(h=h.add(x.el),T=h.length-1)):h=e(x.el),!O){O=A=!0,ne(x.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=X(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),P=s.height()+l.height()+a.outerHeight(!0)-a.height(),S=u.width()+c.width()+a.outerWidth(!0)-a.width(),E=d.outerHeight(!0),C=d.outerWidth(!0);var y=J(x.get("initialWidth"),"x"),b=J(x.get("initialHeight"),"y"),w=x.get("maxWidth"),$=x.get("maxHeight");x.w=Math.max((!1!==w?Math.min(y,J(w,"x")):y)-C-S,0),x.h=Math.max((!1!==$?Math.min(b,J($,"y")):b)-E-P,0),d.css({width:"",height:x.h}),j.position(),re("cbox_open"),x.get("onOpen"),k.add(g).hide(),i.focus(),x.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",te,!0),H.one(z,(function(){t.removeEventListener("focus",te,!0)}))),x.get("returnFocus")&&H.one(z,(function(){e(x.el).focus()}))}var L=parseFloat(x.get("opacity"));r.css({opacity:L==L?L:"",cursor:x.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),x.get("closeButton")?_.html(x.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var t,r,i,o=j.prep,a=++q;if(A=!0,R=!1,re(W),re(B),x.get("onLoad"),x.h=x.get("height")?J(x.get("height"),"y")-E-P:x.get("innerHeight")&&J(x.get("innerHeight"),"y"),x.w=x.get("width")?J(x.get("width"),"x")-C-S:x.get("innerWidth")&&J(x.get("innerWidth"),"x"),x.mw=x.w,x.mh=x.h,x.get("maxWidth")&&(x.mw=J(x.get("maxWidth"),"x")-C-S,x.mw=x.w&&x.w<x.mw?x.w:x.mw),x.get("maxHeight")&&(x.mh=J(x.get("maxHeight"),"y")-E-P,x.mh=x.h&&x.h<x.mh?x.h:x.mh),t=x.get("href"),M=setTimeout((function(){v.show()}),100),x.get("inline")){var s=e(t).eq(0);i=e("<div>").hide().insertBefore(s),H.one(W,(function(){i.replaceWith(s)})),o(s)}else x.get("iframe")?o(" "):x.get("html")?o(x.get("html")):Q(x,t)?(t=ee(x,t),R=x.get("createImg"),e(R).addClass("cboxPhoto").bind("error.cbox",(function(){o(X(V,"Error").html(x.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var t;x.get("retinaImage")&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),x.get("scalePhotos")&&(r=function(){R.height-=R.height*t,R.width-=R.width*t},x.mw&&R.width>x.mw&&(t=(R.width-x.mw)/R.width,r()),x.mh&&R.height>x.mh&&(t=(R.height-x.mh)/R.height,r())),x.h&&(R.style.marginTop=Math.max(x.mh-R.height,0)/2+"px"),h[1]&&(x.get("loop")||h[T+1])&&(R.style.cursor="pointer",e(R).bind("click.cbox",(function(){j.next()}))),R.style.width=R.width+"px",R.style.height=R.height+"px",o(R)}),1)})),R.src=t):t&&p.load(t,x.get("data"),(function(t,n){a===q&&o("error"===n?X(V,"Error").html(x.get("xhrError")):e(this).contents())}))}()}}function ae(){i||($=!1,f=e(n),i=X(V).attr({id:D,class:!1===e.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=X(V,"Overlay").hide(),v=e([X(V,"LoadingOverlay")[0],X(V,"LoadingGraphic")[0]]),o=X(V,"Wrapper"),a=X(V,"Content").append(g=X(V,"Title"),m=X(V,"Current"),w=e('<button type="button"/>').attr({id:"cboxPrevious"}),b=e('<button type="button"/>').attr({id:"cboxNext"}),y=e('<button type="button"/>').attr({id:"cboxSlideshow"}),v),_=e('<button type="button"/>').attr({id:"cboxClose"}),o.append(X(V).append(X(V,"TopLeft"),s=X(V,"TopCenter"),X(V,"TopRight")),X(V,!1,"clear:left").append(u=X(V,"MiddleLeft"),a,c=X(V,"MiddleRight")),X(V,!1,"clear:left").append(X(V,"BottomLeft"),l=X(V,"BottomCenter"),X(V,"BottomRight"))).find("div div").css({float:"left"}),p=X(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),k=b.add(w).add(m).add(y)),t.body&&!i.parent().length&&e(t.body).append(r,i.append(o,p))}e.colorbox||(e(ae),(j=e.fn.colorbox=e.colorbox=function(n,o){var a=this;return n=n||{},e.isFunction(a)&&(a=e("<a/>"),n.open=!0),a[0]?(ae(),function(){function n(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),oe(this))}return!!i&&($||($=!0,b.click((function(){j.next()})),w.click((function(){j.prev()})),_.click((function(){j.close()})),r.click((function(){x.get("overlayClose")&&j.close()})),e(t).bind("keydown.cbox",(function(e){var t=e.keyCode;O&&x.get("escKey")&&27===t&&(e.preventDefault(),j.close()),O&&x.get("arrowKey")&&h[1]&&!e.altKey&&(37===t?(e.preventDefault(),w.click()):39===t&&(e.preventDefault(),b.click()))})),e.isFunction(e.fn.on)?e(t).on("click.cbox",".cboxElement",n):e(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var t=e.data(this,D)||{};e.data(this,D,e.extend(t,n))})).addClass(N),new K(a[0],n).get("open")&&oe(a[0])),a):a}).position=function(t,n){var r,h,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)-S+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-P+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),x.get("fixed")?(g.top-=h,g.left-=d,i.css({position:"fixed"})):(p=h,v=d,i.css({position:"absolute"})),!1!==x.get("right")?v+=Math.max(f.width()-x.w-C-S-J(x.get("right"),"x"),0):!1!==x.get("left")?v+=J(x.get("left"),"x"):v+=Math.round(Math.max(f.width()-x.w-C-S,0)/2),!1!==x.get("bottom")?p+=Math.max(G()-x.h-E-P-J(x.get("bottom"),"y"),0):!1!==x.get("top")?p+=J(x.get("top"),"y"):p+=Math.round(Math.max(G()-x.h-E-P,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:x.w+C+S,height:x.h+E+P,top:p,left:v},t){var y=0;e.each(r,(function(e){r[e]===Y[e]||(y=t)})),t=y}Y=r,t||i.css(r),i.dequeue().animate(r,{duration:t||0,complete:function(){m(),A=!1,o[0].style.width=x.w+C+S+"px",o[0].style.height=x.h+E+P+"px",x.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",j.position)}),1),e.isFunction(n)&&n()},step:m})},j.resize=function(e){var t;O&&((e=e||{}).width&&(x.w=J(e.width,"x")-C-S),e.innerWidth&&(x.w=J(e.innerWidth,"x")),d.css({width:x.w}),e.height&&(x.h=J(e.height,"y")-E-P),e.innerHeight&&(x.h=J(e.innerHeight,"y")),e.innerHeight||e.height||(t=d.scrollTop(),d.css({height:"auto"}),x.h=d.height()),d.css({height:x.h}),t&&d.scrollTop(t),j.position("none"===x.get("transition")?0:x.get("speed")))},j.prep=function(n){if(O){var r,o="none"===x.get("transition")?0:x.get("speed");d.remove(),(d=X(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(x.w=x.w||d.width(),x.w=x.mw&&x.mw<x.w?x.mw:x.w,x.w),overflow:x.get("scrolling")?"auto":"hidden"}).css({height:(x.h=x.h||d.height(),x.h=x.mh&&x.mh<x.h?x.mh:x.h,x.h)}).prependTo(a),p.hide(),e(R).css({float:"none"}),ne(x.get("className")),r=function(){var n,r,a=h.length;function s(){!1===e.support.opacity&&i[0].style.removeAttribute("filter")}O&&(r=function(){clearTimeout(M),v.hide(),re(U),x.get("onComplete")},g.html(x.get("title")).show(),d.show(),a>1?("string"==typeof x.get("current")&&m.html(x.get("current").replace("{current}",T+1).replace("{total}",a)).show(),b[x.get("loop")||T<a-1?"show":"hide"]().html(x.get("next")),w[x.get("loop")||T?"show":"hide"]().html(x.get("previous")),ie(),x.get("preloading")&&e.each([Z(-1),Z(1)],(function(){var n=h[this],r=new K(n,e.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=ee(r,i),t.createElement("img").src=i)}))):k.hide(),x.get("iframe")?(n=x.get("createIframe"),x.get("scrolling")||(n.scrolling="no"),e(n).attr({src:x.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(W,(function(){n.src="//about:blank"})),x.get("fastIframe")&&e(n).trigger("load")):r(),"fade"===x.get("transition")?i.fadeTo(o,1,s):s())},"fade"===x.get("transition")?i.fadeTo(o,0,(function(){j.position(0,r)})):j.position(o,r)}},j.next=function(){!A&&h[1]&&(x.get("loop")||h[T+1])&&(T=Z(1),oe(h[T]))},j.prev=function(){!A&&h[1]&&(x.get("loop")||T)&&(T=Z(-1),oe(h[T]))},j.close=function(){O&&!I&&(I=!0,O=!1,re(F),x.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(x.get("fadeOut")||0,0),i.stop().fadeTo(x.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),re(W),d.remove(),setTimeout((function(){I=!1,re(z),x.get("onClosed")}),1)})))},j.remove=function(){i&&(i.stop(),e.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),I=!1,i=null,e(".cboxElement").removeData(D).removeClass(N),e(t).unbind("click.cbox").unbind("keydown.cbox"))},j.element=function(){return e(x.el)},j.settings=L)}(n(3609),document,window)},5557:function(e,t,n){!function(e){if(e.support.touch="ontouchend"in document,e.support.touch){var t,n=e.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(e){!t&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,this._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){t&&(o(e,"mouseup"),o(e,"mouseout"),this._touchMoved||o(e,"click"),t=!1)},n._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),r.call(t)},n._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t)}}function o(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(r)}}}(n(3609))},1870:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},7053:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){return e.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(t,i):r)||(e.exports=o)},5592:function(e,t,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},6891:function(e,t,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(e){var t,n=0,r=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,r){var i,o,a,s={},u=t.split(".")[0],c=u+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][c.toLowerCase()]=function(t){return!!e.data(t,c)},e[u]=e[u]||{},i=e[u][t],o=e[u][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(r,(function(t,r){e.isFunction(r)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=i,t=r.apply(this,arguments),this._super=n,this._superApply=o,t}}():s[t]=r})),o.prototype=e.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||t},s,{constructor:o,namespace:u,widgetName:t,widgetFullName:c}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){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&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=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=e.data(this,i);return"instance"===o?(u=r,!1):r?e.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:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=e.widget.extend.apply(null,[o].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(o||{}),t._init&&t._init()):e.data(this,i,new n(o,this))}))),u}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(i=a[t]=e.widget.extend({},this.options[t]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(t=r.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=n}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t)i=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&i&&i.length&&(r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(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(t){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&t.classes[i[s]]&&n.push(t.classes[i[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(r,i){-1!==e.inArray(t.target,i)&&(n.classesElementLookup[r]=e(i.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(t,n,r){var i,o=this;"boolean"!=typeof t&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,(function(r,a){function s(){if(t||!0!==o.options.disabled&&!e(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||e.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(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,o,a=this.options[t];if(r=r||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).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),!(e.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:t;"number"==typeof(i=i||{})&&(i={duration:i}),a=!e.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&e.effects&&e.effects.effect[s]?r[t](i):s!==t&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){e(this)[t](),o&&o.call(r[0]),n()}))}})),e.widget})?r.apply(t,i):r)||(e.exports=o)},6177:function(e,t,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.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(!t){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)&&e(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===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!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&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,i):r)||(e.exports=o)},6227:function(e,t,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(e){return e.widget("ui.slider",e.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 t,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)),t=i.length;t<n;t++)o.push("<span tabindex='0'></span>");this.handles=i.add(e(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(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.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=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.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(t){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:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(r-c.values(t));(i>n||i===n&&(t===c._lastChangedValue||c.values(t)===l.min))&&(i=n,o=e(this),a=t)})),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:t.pageX-s.left-o.width()/2,top:t.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(t,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,i,o;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/t)>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(e,t,n){var r={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(e),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),i=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(r,n):Math.max(r,n)),o[t]=n),n!==i&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var r,i,o;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):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(t,n){var r,i=0;switch("range"===t&&!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)),e.isArray(this.options.values)&&(i=this.options.values.length),this._super(t,n),t){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(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n,r;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);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(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return 2*Math.abs(n)>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,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+"%",e(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-t+"%"},{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-t+"%"},{queue:!1,duration:s.animate}))),t=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(t){var n,r,i,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:r=this._valueMin();break;case e.ui.keyCode.END:r=this._valueMax();break;case e.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(t,o,r)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}})})?r.apply(t,i):r)||(e.exports=o)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&r.call(_,o)&&(b=_);var k=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return m.prototype=y,u(k,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(P.prototype),u(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new P(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3609:function(e){"use strict";e.exports=jQuery},5756:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Xe:function(){return s},pX:function(){return o},XM:function(){return a}}),n(2526),n(1817),n(1539),n(2165),n(6992),n(8783),n(3948),n(1038),n(7042),n(8309),n(4916);var o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}}},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,function(e){if(Array.isArray(e))return r(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4817:function(e,t,n){"use strict";var r;function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Al:function(){return J},dy:function(){return $},Jb:function(){return D},Ld:function(){return N},sY:function(){return ee},YP:function(){return L}}),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(1038),n(489),n(2419);var g=window,m=g.trustedTypes,y=m?m.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),w="?"+b,_="<".concat(w,">"),k=document,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return k.createComment(e)},P=function(e){return null===e||"object"!=v(e)&&"function"!=typeof e},S=Array.isArray,E=function(e){return S(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,R=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,I=/"/g,M=/^(?:script|style|textarea|title)$/i,j=function(e){return function(t){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$:e,strings:t,values:r}}},$=j(1),L=j(2),D=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),B=new WeakMap,U=k.createTreeWalker(k,129,null,!1),F=function(e,t){for(var n,r=e.length-1,i=[],o=2===t?"<svg>":"",a=C,s=0;s<r;s++){for(var u=e[s],c=void 0,l=void 0,h=-1,f=0;f<u.length&&(a.lastIndex=f,null!==(l=a.exec(u)));)f=a.lastIndex,a===C?"!--"===l[1]?a=T:void 0!==l[1]?a=R:void 0!==l[2]?(M.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=O):void 0!==l[3]&&(a=O):a===O?">"===l[0]?(a=null!=n?n:C,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?O:'"'===l[3]?I:A):a===I||a===A?a=O:a===T||a===R?a=C:(a=O,n=void 0);var d=a===O&&e[s+1].startsWith("/>")?" ":"";o+=a===C?u+_:h>=0?(i.push(c),u.slice(0,h)+"$lit$"+u.slice(h)+b+d):u+b+(-2===h?(i.push(void 0),s):d)}var p=o+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(p):p,i]},z=function(){function e(t,n){var r,i=t.strings,o=t._$litType$;f(this,e),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(F(i,o),2),g=v[0],y=v[1];if(this.el=e.createElement(g,n),U.currentNode=this.el.content,2===o){var _=this.el.content,k=_.firstChild;k.remove(),_.append.apply(_,function(e){if(Array.isArray(e))return h(e)}(a=k.childNodes)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||l(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 P,S=[],E=c(r.getAttributeNames());try{for(E.s();!(P=E.n()).done;){var C=P.value;if(C.endsWith("$lit$")||C.startsWith(b)){var T=y[u++];if(S.push(C),void 0!==T){var R=r.getAttribute(T.toLowerCase()+"$lit$").split(b),O=/([.?@])?(.*)/.exec(T);p.push({type:1,index:s,name:O[2],strings:R,ctor:"."===O[1]?Y:"?"===O[1]?G:"@"===O[1]?K:q})}else p.push({type:6,index:s})}}}catch(e){E.e(e)}finally{E.f()}for(var A=0,I=S;A<I.length;A++){var j=I[A];r.removeAttribute(j)}}if(M.test(r.tagName)){var $=r.textContent.split(b),L=$.length-1;if(L>0){r.textContent=m?m.emptyScript:"";for(var D=0;D<L;D++)r.append($[D],x()),U.nextNode(),p.push({type:2,index:++s});r.append($[L],x())}}}else if(8===r.nodeType)if(r.data===w)p.push({type:2,index:s});else for(var N=-1;-1!==(N=r.data.indexOf(b,N+1));)p.push({type:7,index:s}),N+=b.length-1;s++}}return p(e,null,[{key:"createElement",value:function(e,t){var n=k.createElement("template");return n.innerHTML=e,n}}]),e}();function W(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===D)return t;var u=void 0!==s?null===(n=a._$Co)||void 0===n?void 0:n[s]:a._$Cl,c=P(t)?void 0:t._$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(e))._$AT(e,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=u:a._$Cl=u),void 0!==u&&(t=W(e,u._$AS(e,t.values),u,s)),t}var H=function(){function e(t,n){f(this,e),this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=n}return p(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"v",value:function(e){var t,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:k).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 V(a,a.nextSibling,this,e):1===c.type?l=new c.ctor(a,c.name,c.strings,this,e):6===c.type&&(l=new Z(a,this,e)),this.u.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=U.nextNode(),s++)}return o}},{key:"p",value:function(e){var t,n=0,r=c(this.u);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}catch(e){r.e(e)}finally{r.f()}}}]),e}(),V=function(){function e(t,n,r,i){var o;f(this,e),this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cm=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cm}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;e=W(this,e,t),P(e)?e===N||null==e||""===e?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==D&&this.g(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):E(e)?this.k(e):this.g(e)}},{key:"O",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"g",value:function(e){this._$AH!==N&&P(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,n=e.values,r=e._$litType$,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=z.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(n);else{var o=new H(i,this),a=o.v(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=B.get(e.strings);return void 0===t&&B.set(e.strings,t=new z(e)),t}},{key:"k",value:function(t){S(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new e(this.O(x()),this.O(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cm=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}]),e}(),q=function(){function e(t,n,r,i,o){f(this,e),this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,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=N}return p(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=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)e=W(this,e,t,0),(o=!P(e)||e!==this._$AH&&e!==D)&&(this._$AH=e);else{var a,s,u=e;for(e=i[0],a=0;a<i.length-1;a++)(s=W(this,u[n+a],t,a))===D&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===N?e=N:e!==N&&(e+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.j(e)}},{key:"j",value:function(e){e===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),Y=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=3,e}return p(n,[{key:"j",value:function(e){this.element[this.name]=e===N?void 0:e}}]),n}(q),X=m?m.emptyScript:"",G=function(e){i(n,e);var t=a(n);function n(){var e;return f(this,n),(e=t.apply(this,arguments)).type=4,e}return p(n,[{key:"j",value:function(e){e&&e!==N?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}]),n}(q),K=function(e){i(n,e);var t=a(n);function n(e,r,i,o,a){var s;return f(this,n),(s=t.call(this,e,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((e=null!==(t=W(this,e,n,0))&&void 0!==t?t:N)!==D){var r=this._$AH,i=e===N&&r!==N||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==N&&(r===N||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}]),n}(q),Z=function(){function e(t,n,r){f(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){W(this,e)}}]),e}(),J={P:"$lit$",A:b,M:w,C:1,L:F,R:H,D:E,V:W,I:V,H:q,N:G,U:K,B:Y,F:Z},Q=g.litHtmlPolyfillSupport;null==Q||Q(z,V),(null!==(r=g.litHtmlVersions)&&void 0!==r?r:g.litHtmlVersions=[]).push("2.5.0");var ee=function(e,t,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,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 V(t.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(e),a}},9089:function(e,t,n){"use strict";n.d(t,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(e){return function(t){return"function"==typeof t?function(e,t){return customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){customElements.define(e,t)}}}(e,t)}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(t,n){return void 0!==n?function(e,t,n){t.constructor.createProperty(n,e)}(e,t,n):function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?a(a({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}}(e,t)}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return u(l(l({},e),{},{state:!0}))}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){return r=(n={descriptor:function(n){var r={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var i="symbol"==g(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[i]&&(this[i]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(e,t){var n;if(void 0===t){var o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:p(p({},e),{},{key:o});return null!=r&&(a.finisher=function(e){r(e,o)}),a}var s=e.constructor;void 0!==i&&Object.defineProperty(e,t,i(t)),null==r||r(s,t)};var n,r,i}n(2526),n(1817),n(1539),n(7941),n(7327),n(5003),n(4747),n(9337),n(9601),n(2165),n(6992),n(8783),n(3948),n(8674),n(5666),null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements},871:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{oi:function(){return Y},iv:function(){return h},dy:function(){return D.dy},Ld:function(){return D.Ld},sY:function(){return D.sY},YP:function(){return D.YP}}),n(5666),n(9653),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(2165),n(1038),n(7042),n(8309),n(4916),n(4129),n(5827),n(1249);var o,a=window,s=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),c=new WeakMap,l=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,r!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}var t,n;return t=e,(n=[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(s&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=c.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=1===e.length?e[0]:n.reduce((function(t,n,r){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+e[r+1]}),e[0]);return new l(i,e,u)},f=function(e,t){s?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),r=a.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))},d=s?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.cssRules);try{for(i.s();!(t=i.n()).done;)n+=t.value.cssText}catch(e){i.e(e)}finally{i.f()}return function(e){return new l("string"==typeof e?e:e+"",void 0,u)}(n)}(e):e};function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)})(e)}function x(e,t,n){return(x=P()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&S(i,n.prototype),i}).apply(null,arguments)}function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=window,T=C.trustedTypes,R=T?T.emptyScript:"",O=C.reactiveElementPolyfillSupport,A={toAttribute:function(e,t){switch(t){case Boolean:e=e?R:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},I=function(e,t){return t!==e&&(t==t||e==e)},M={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:I},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(c,e);var t,n,r,i,o,a,s,u=(t=c,n=P(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return _(this,e)});function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.call(this))._$Ei=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$El=null,e.u(),e}return r=c,o=[{key:"addInitializer",value:function(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Ep(r,n);void 0!==i&&(e._$Ev.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==y(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||M}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=v(e.h)),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(e){r.e(e)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=p(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(d(i))}}catch(e){r.e(e)}finally{r.f()}}else void 0!==e&&t.push(d(e));return t}},{key:"_$Ep",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}],(i=[{key:"u",value:function(){var e,t=this;this._$E_=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}},{key:"_$Eg",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Ei.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return f(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EO",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,i=this.constructor._$Ep(e,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:A).toAttribute(t,r.type);this._$El=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}},{key:"_$AK",value:function(e,t){var n,r=this.constructor,i=r._$Ev.get(e);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:A;this._$El=i,this[i]=a.fromAttribute(t,o.type),this._$El=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||I)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}},{key:"_$Ej",value:(a=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$E_;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])})),s=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=a.apply(e,t);function o(e){b(i,n,r,o,s,"next",e)}function s(e){b(i,n,r,o,s,"throw",e)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((function(e,n){return t[n]=e})),this._$Ei=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw n=!1,this._$Ek(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{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(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach((function(e,n){return t._$EO(n,t[n],e)})),this._$EC=void 0),this._$Ek()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(k(HTMLElement));j.finalized=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:j}),(null!==(o=C.reactiveElementVersions)&&void 0!==o?o:C.reactiveElementVersions=[]).push("1.5.0");var $,L,D=n(4817);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(){return(F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=z(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function z(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(5743),n(4819),n(5003);var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=q(r);if(i){var n=q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return H(this,e)});function a(){var e;return B(this,a),(e=o.apply(this,arguments)).renderOptions={host:V(e)},e._$Dt=void 0,e}return t=a,(n=[{key:"createRenderRoot",value:function(){var e,t,n=F(q(a.prototype),"createRenderRoot",this).call(this);return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}},{key:"update",value:function(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),F(q(a.prototype),"update",this).call(this,e),this._$Dt=(0,D.sY)(t,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;F(q(a.prototype),"connectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;F(q(a.prototype),"disconnectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return D.Jb}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j);Y.finalized=!0,Y._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:Y});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:Y}),(null!==(L=globalThis.litElementVersions)&&void 0!==L?L:globalThis.litElementVersions=[]).push("3.2.0")}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(e,t,n,r){if(!t){var i=1/0;for(u=0;u<deferred.length;u++){t=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<t.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(e){return __webpack_require__.O[e](t[a])}))?t.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(e=s)}}return e}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[t,n,r]},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={898:0};__webpack_require__.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0;return __webpack_require__.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __webpack_exports__=__webpack_require__(2292);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
3
3
  //# sourceMappingURL=BookReader.js.map