@internetarchive/bookreader 5.0.0-52-alpha1 → 5.0.0-52

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__={812:function(t,e,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(3762),n(6891),n(6177),n(5557);var r=n(5685);function i(t,e,n,r,i,o){var a,s=(a=t.prototype[e],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){t.prototype[e]=function(){var e=this instanceof t?n(this):this;return r.apply(e,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,r.throttle)(this.updateNavIndex.bind(this),250,!1)}var e,n;return e=t,(n=[{key:"controlFor",value:function(t){var e=this.br.options.controls[t];return e.visible?e.template?"<li>".concat(e.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(e.className,'" title="').concat(e.label,'">\n <div class="icon icon-').concat(e.iconClassName,'"></div>\n <span class="tooltip">').concat(e.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var t=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(e){return t.controlFor(e)})).join("")}},{key:"_bindViewModeButton",value:function(){var t=this,e=this.br,n=e.options.controls.viewmode,r=[{mode:e.constMode1up,className:"onepg",title:"One-page view"},{mode:e.constMode2up,className:"twopg",title:"Two-page view"},{mode:e.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(t){return!n.excludedModes.includes(t.mode)})),i=r.map((function(t){return t.mode}));n.excludedModes.includes(e.mode)&&e.switchMode(i[0]);for(var s=i.indexOf(e.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=t.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(t){return t.mode===o})),u=r.find((function(t){return t.mode===i[0]}));i.push(o),e.viewModeOrder=i,t.updateViewModeButton(a(n.currentTarget),u.className,u.title),e.switchMode(s.mode)})),s=r.find((function(t){return t.mode===i[0]}));t.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(t,e,n){t.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(e)).end().find(".tooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"init",value:function(){var t=this,e=this.br,n=e.options.navbarTitle,r="rl"===e.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),e.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),e.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),e.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:e.book.getNumLeafs()-1,value:e.currentIndex(),range:"min"});return s.on("slide",(function(e,n){return t.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return t.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):e.jumpToIndex(r.value),!0})),e.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(e.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(t){var e=this.br,n=e.book.getPageNum(t),r=(e.book.getPageProp(t,"pageType"),e.book.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=e.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(t,e,n,r,i){if("n"==n[0])return"(".concat(t+1," of ").concat(e,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(t,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(t){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(t))}},{key:"updateNavIndex",value:function(t){t=void 0!==t?t:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",t)}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),c={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:"fast",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},l=n(105),h=(n(4581),n(3609));function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e}var e,n;return e=t,(n=[{key:"buildToolbarElement",value:function(){var t=this.br,e=t.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(t.logoURL,'"></a>\n </span>'):"";t.refs.$BRtoolbar=h('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(e,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return t.bookUrl&&t.options.enableBookTitleLink?n.append(h("<a>").attr({href:t.bookUrl,title:t.bookUrlTitle}).addClass("BRreturn").html(t.bookUrlText||t.bookTitle)):t.bookTitle&&n.append(t.bookUrlText||t.bookTitle),t.refs.$BRtoolbar}},{key:"initToolbar",value:function(t,e){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(),h('<div style="display: none;"></div>').append(h('\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(h('\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(t){var e=this,n=this.br,r=document.location+"",i=(r+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=h('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(t),a.find(".fieldset-embed input").on("change",(function(t){var e=h(t.target).parents("form").first(),r={};r.mode=h(e.find(".fieldset-embed input[name=pages]:checked")).val(),e.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&e.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(t){return t.target.select()})),a.find(".facebook-share-button").on("click",(function(){v("https://www.facebook.com/sharer.php?"+h.param({u:e._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){v("https://twitter.com/intent/tweet?"+h.param({url:e._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var t="".concat(n.bookTitle,"\n\n").concat(e._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(t))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(t)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(t){var e=this.br;t.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=h('<div class="BRinfoLeftCol"></div>');e.thumbnail&&n.append(h('\n <div class="BRimageW">\n <img src="'.concat(e.thumbnail,'" alt="').concat((0,r.escapeHTML)(e.bookTitle),'" />\n </div>')));var i,o=h('<div class="BRinfoRightCol">'),a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,d=s.value,p="Title"===l?(0,r.escapeHTML)(d):d;o.append(h('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(p,"</div>\n </div>")))}}catch(t){a.e(t)}finally{a.f()}var v=e.bookUrlMoreInfo?e.bookUrlMoreInfo:e.bookTitle;v&&e.bookUrl&&o.append(h('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(e.bookUrl,'">\n ').concat((0,r.escapeHTML)(v),"\n </a>\n </div>\n </div>")));var g=h('<div class="BRfloatFoot BRinfoFooter"></div>'),m=h('<div class="BRinfoW mv20-lg">').append([n,o,h('<br style="clear:both"/>')]);t.append(m,g).addClass("wide")}},{key:"getToolBarHeight",value:function(){var t=this.br.refs.$BRtoolbar;return t&&"block"===t.css("display")?t.outerHeight()+parseInt(t.css("top")):0}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function v(t,e,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(e,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(t,r,u)}function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n(2707),n(4553),n(6535),n(9244);var _=function(){function t(e){var n,r;b(this,t),this.br=e,this.reduceSet=e.reduceSet,this.ppi=null!==(n=null===(r=e.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:c.ppi,this._medianPageSize=null,this._getDataFlattenedCached=null}return w(t,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var t,e=[],n=[],r=g(this.pagesIterator());try{for(r.s();!(t=r.n()).done;){var i=t.value;e.push(i.widthInches),n.push(i.heightInches)}}catch(t){r.e(t)}finally{r.f()}return e.sort(),n.sort(),this._medianPageSize={width:e[Math.floor(e.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(t){return t=(0,r.clamp)(t,0,this.getNumLeafs()-1),this.getPageWidth(t)}},{key:"_getPageHeight",value:function(t){var e=(0,r.clamp)(t,0,this.getNumLeafs()-1);return this.getPageHeight(e)}},{key:"getPageIndex",value:function(t){var e=this.getPageIndices(t);return e.length?e[e.length-1]:void 0}},{key:"getPageIndices",value:function(t){var e=[];if("n"==t.slice(0,1))try{var n=t.slice(1,t.length),r=parseInt(n);return e.push(r),e}catch(t){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==t&&e.push(i);return e}},{key:"getPageName",value:function(t){return"Page "+this.getPageNum(t)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(t){return this.getPageProp(t,"width")}},{key:"getPageHeight",value:function(t){return this.getPageProp(t,"height")}},{key:"getPageURI",value:function(t,e,n){return this.getPageProp(t,"viewable",!0)?this.getPageProp(t,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(t){return this.getPageProp(t,"pageSide")||(t%2==0?"R":"L")}},{key:"getPageNum",value:function(t){var e=this.getPageProp(t,"pageNum");return void 0===e?"n".concat(t):e}},{key:"getPageProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(t,e,n)}},{key:"getSpreadIndices",value:function(t){return"rl"==this.br.pageProgression?"R"==this.getPageSide(t)?[t+1,t]:[t,t-1]:"L"==this.getPageSide(t)?[t,t+1]:[t-1,t]}},{key:"leafNumToIndex",value:function(t){var e=this._getDataFlattened().findIndex((function(e){return e.leafNum==t}));return e>-1?e:t}},{key:"parsePageString",value:function(t){var e,n=/^leaf(\d+)/.exec(t);return n?null===(e=this.leafNumToIndex(parseInt(n[1],10)))&&(e=void 0):e=this.getPageIndex(t),e}},{key:"getPage",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(e||!(t<0||t>=n))return t<0&&t>=-n&&(t+=n),new x(this,t%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function t(){var e,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?1/0:i,a=e.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){t.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){t.next=8;break}return t.abrupt("continue",10);case 8:return t.next=10,c;case 10:u++,t.next=4;break;case 13:case"end":return t.stop()}}),t,this)}))},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var t=null,e=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===t?2===r.length?"L":"R":"L"===t?"R":"L"),t=i.pageSide,!1===i.viewable?i.unviewablesStart=null===e?e=n:e:e=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened(),i=isNaN(t)||t<0||t>=r.length;return i||void 0===r[t][e]?n:r[t][e]}}]),t}(),x=function(){function t(e,n){b(this,t),this.ppi=e._getDataProp(n,"ppi",e.ppi),this.book=e,this.index=n,this.width=e.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=e.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=e.getPageSide(n),this.leafNum=e._getDataProp(n,"leafNum",this.index),this.isViewable=e._getDataProp(n,"viewable",!0),this.unviewablesStart=e._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return w(t,[{key:"makeViewable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=t)if(t){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var e,n=g(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(t){n.e(t)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var i,o=g(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(t){o.e(t)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"getURI",value:function(t,e){return this.book.getPageURI(this.index,t,e)}},{key:"getURISrcSet",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(t),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(t){return"".concat(e.getURI(t,n)," ").concat(i/t,"x")})).join(", ")}},{key:"findNext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.combineConsecutiveUnviewables,n=void 0!==e&&e;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new t(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new t(this.book,this.index-1)}}}]),t}(),P=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(2419),n(3371),n(9653),n(489),n(9089)),k=n(871),C=(n(189),n(4817)),S=n(5756);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=(0,S.XM)(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=M(r);if(i){var n=M(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return O(this,t)});function a(t){var e,n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),t.type!==S.pX.ATTRIBUTE||"style"!==t.name||(null===(n=t.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return O(e)}return e=a,(n=[{key:"render",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null==r?e:e+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(t,e){var n=this,r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0],i=t.element.style;if(void 0===this.ct){for(var o in this.ct=new Set,r)this.ct.add(o);return this.render(r)}for(var a in this.ct.forEach((function(t){null==r[t]&&(n.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")})),r){var s=r[a];null!=s&&(this.ct.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return C.Jb}}])&&R(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(S.Xe)),$=(n(2420),n(840)),j=n.n($);function L(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){L(o,r,i,a,s,"next",t)}function s(t){L(o,r,i,a,s,"throw",t)}a(void 0)}))}}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),B(this,"_preventEvent",(function(t){return t.preventDefault(),!1})),B(this,"_pinchStart",(function(){var t,e;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.detachCtrlZoom(),null===(t=(e=n.mode).detachScrollListeners)||void 0===t||t.call(e)})),B(this,"_pinchMove",function(){var t=D(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.lastEvent=e,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(t){return r=t})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),B(this,"_pinchEnd",D(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.pinchMoveFramePromise;case 2:n.mode.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(e=(r=n.mode).attachScrollListeners)||void 0===e||e.call(r);case 8:case"end":return t.stop()}}),t)})))),B(this,"_pinchCancel",D(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._pinchEnd();case 2:case"end":return t.stop()}}),t)})))),B(this,"_handleCtrlWheel",(function(t){if(t.ctrlKey){t.preventDefault();var e=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(t),n.mode.scale*=1-Math.sign(t.deltaY)*e}})),this.mode=e,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete j().defaults.cssProps.userSelect,this.hammer=new(j().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(j().Pinch))}var e,n;return e=t,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(t){var e=t.clientX,n=t.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(e-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}}])&&N(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,"clientWidth",100),W(this,"clientHeight",100),W(this,"boundingClientRect",{top:0,left:0}),W(this,"updateClientSizes",(function(){var t=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=t.top,n.boundingClientRect.left=t.left})),W(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=e}var e,n;return e=t,(n=[{key:"attachResizeListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;t.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;t.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&F(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var V,q=function(){function t(e,n){var r,i,o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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=e,this.className=n,this.timeout=null}var e,n;return e=t,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&H(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function X(t){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t){return function(t){if(Array.isArray(t))return at(t)}(t)||st(t)||ot(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z(t)}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(){J=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!et(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||st(e)||ot(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=it(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:rt(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=rt(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function Q(t){var e,n=it(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function tt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function et(t){return t.decorators&&t.decorators.length}function nt(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function rt(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function it(t){var e=function(t,e){if("object"!==X(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===X(e)?e:String(e)}function ot(t,e){if(t){if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function st(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ut(){return(ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ct(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function ct(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=lt(t)););return t}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ht=function(t,e,n,r){var i=J(),o=e((function(t){i.initializeInstanceElements(t,a.elements)}),n),a=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(nt(o.descriptor)||nt(i.descriptor)){if(et(o)||et(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(et(o)){if(et(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}tt(o,i)}else e.push(o)}return e}(o.d.map(Q)),t);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,P.Mo)("br-mode-1up")],(function(t,e){var n=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}(a,e);var n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=lt(r);if(i){var n=lt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return K(this,t)});function a(e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),t(Z(r)),r.book=e,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(e);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,P.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"screenDPI",value:function(){return(0,r.calcScreenDPI)()}},{kind:"field",key:"realWorldReduce",value:function(){return 1}},{kind:"field",decorators:[(0,P.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,P.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,P.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,P.IO)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var t=this.worldUnitsToRenderedPixels;return{width:t(this.worldDimensions.width)+"px",height:t(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,P.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new z(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new U(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new q(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.worldUnitsToVisiblePixels(this.pageTops[t]-this.SPACING_IN/2),i&&setTimeout((function(){return e.style.scrollBehavior=""}),100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){ut(lt(n.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t);this.scale=this.computeDefaultScale(e)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&(this.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))),t.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),t.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),t.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),t.has("scale")){var e=t.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.updateViewportOnZoom(this.scale,e),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"connectedCallback",value:function(){ut(lt(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(),ut(lt(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"worldUnitsToRenderedPixels",value:function(){var t=this;return function(e){return e*t.screenDPI/t.realWorldReduce}}},{kind:"field",key:"renderedPixelsToWorldUnits",value:function(){var t=this;return function(e){return e*t.realWorldReduce/t.screenDPI}}},{kind:"field",key:"renderedPixelsToVisiblePixels",value:function(){var t=this;return function(e){return e*t.scale}}},{kind:"field",key:"visiblePixelsToRenderedPixels",value:function(){var t=this;return function(e){return e/t.scale}}},{kind:"field",key:"worldUnitsToVisiblePixels",value:function(){var t=this;return function(e){return t.renderedPixelsToVisiblePixels(t.worldUnitsToRenderedPixels(e))}}},{kind:"field",key:"visiblePixelsToWorldUnits",value:function(){var t=this;return function(e){return t.renderedPixelsToWorldUnits(t.visiblePixelsToRenderedPixels(e))}}},{kind:"method",key:"render",value:function(){var t,e,n=this;return(0,k.dy)(V||(t=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],e||(e=t.slice(0)),V=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),A(this.worldStyle),this.renderedPages.map((function(t){return n.renderPage(t)})))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.worldUnitsToRenderedPixels,r=t.worldUnitsToVisiblePixels,i=t.visiblePixelsToWorldUnits(t.htmlDimensionsCacher.clientWidth),o=n(e.widthInches),a=n(e.heightInches),s=Math.max(t.SPACING_IN,(i-e.widthInches)/2),u=t.pageTops[e.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=t.createPageContainer(e).update({dimensions:{width:o,height:a,top:0,left:0},reduce:e.width/r(e.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",t.visiblePages.includes(e)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var t=this;return function(){var e=t.scrollTop,n=t.scrollLeft,r=t.htmlDimensionsCacher.clientWidth,i=t.htmlDimensionsCacher.clientHeight,o=t.visiblePixelsToWorldUnits;t.visibleRegion={top:o(e),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e;return[null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(Y(this.visiblePages),[null===(e=this.visiblePages[this.visiblePages.length-1])||void 0===e?void 0:e.next]).filter((function(t){return t})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var t=this;return(0,r.throttle)((function(){t.renderedPages=t.computeRenderedPages(),t.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(t,e){var n,r={},i=e,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ot(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+e}}catch(t){o.e(t)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(t){var e=this.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,e/(t.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,Y(this.pages.map((function(t){return t.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(this.pages.map((function(t){return t.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var t=this;return this.pages.filter((function(e){var n=t.pageTops[e.index],r=n+e.heightInches,i=t.visibleRegion.top;return n<=i+t.visibleRegion.height&&r>=i}))}},{kind:"method",key:"updateViewportOnZoom",value:function(t,e){var n=this,r=n.scrollTop,i=n.scrollLeft,o=this.htmlDimensionsCacher.clientWidth,a=this.htmlDimensionsCacher.clientHeight,s=t/e,u=this.scaleCenter.x,c=this.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o,this.updateVisibleRegion()}},{kind:"field",key:"attachScrollListeners",value:function(){var t=this;return function(){t.addEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var t=this;return function(){t.removeEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.detach()}}}]}}),k.oi),ft=n(3609);function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gt(t,e){return t.split(" ").map((function(t){return t+e})).join(" ")}function mt(t){var e,n;return void 0!==t.clientX?(e=t.clientX,n=t.clientY):void 0!==t.screenX?(e=t.screenX,n=t.screenY):void 0!==t.targetTouches?(e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY):void 0===t.originalEvent?console.error("don't understand x and y for "+t.type,t):void 0!==t.originalEvent.clientX?(e=t.originalEvent.clientX,n=t.originalEvent.clientY):void 0!==t.originalEvent.screenX?(e=t.originalEvent.screenX,n=t.originalEvent.screenY):void 0!==t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches[0].pageX,n=t.originalEvent.targetTouches[0].pageY),{left:e,top:n}}var bt={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},yt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dt(this,t),vt(this,"_dragStartHandler",(function(t){return!!n._shouldAbort()||!(t.which>1||!n.settings.acceptPropagatedEvent&&t.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=mt(t),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].addEventListener(t,n._dragEndHandler,!0)})),n.settings.preventDefault?(t.preventDefault(),!1):void 0)})),vt(this,"_dragContinueHandler",(function(t){if(n._shouldAbort())return!0;var e=mt(t),r=e.left-n.lastCoord.left,i=e.top-n.lastCoord.top,o=n.settings.scrollWindow?ft(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=e,n.settings.preventDefault?(t.preventDefault(),!1):void 0})),vt(this,"_dragEndHandler",(function(t){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].removeEventListener(t,n._dragEndHandler,!0)}));var e={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(e.left,e.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0})),this.handling_element=ft(e),this.settings=ft.extend({},bt,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=gt(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=gt(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var e,n;return e=t,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&pt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),wt=n(3609);function _t(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function xt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){_t(o,r,i,a,s,"next",t)}function s(t){_t(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var kt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode1UpLit=new ht(n,e),this.$el=wt(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(xt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=7;break}return t.mode1UpLit.initFirstRender(e),t.everShown=!0,t.mode1UpLit.requestUpdate(),n.next=6,t.mode1UpLit.updateComplete;case 6:new yt(t.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:t.mode1UpLit.jumpToIndex(e);case 8:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){var i=Math.abs(this.br.currentIndex()-t),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(t,{smooth:o})}},{key:"zoom",value:function(t){switch(t){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&Pt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ct=(n(9337),n(3609));function St(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?St(Object(n),!0).forEach((function(e){Tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var It=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.leafEdgeL=null,this.leafEdgeR=null,this.pageContainers={},this.smoothZoomer=null,this._scale=1,this.scaleCenter={x:.5,y:.5},this.scrollClassAdder=null}var e,n;return e=t,(n=[{key:"$container",get:function(){return this.br.refs.$brContainer[0]}},{key:"$visibleWorld",get:function(){var t;return null===(t=this.br.refs.$brTwoPageView)||void 0===t?void 0:t[0]}},{key:"scale",get:function(){return this._scale},set:function(t){this.$visibleWorld.style.transform="scale(".concat(t,")"),this.updateViewportOnZoom(t,this._scale),this._scale=t}},{key:"jumpToIndex",value:function(t){t<Math.min(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)?this.flipBackToIndex(t):t>Math.max(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)&&this.flipFwdToIndex(t)}},{key:"drawLeafs",value:function(){var t=this.br.refs.$brTwoPageView,e=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;this.createPageContainer(e).$container.css(this.leftLeafCss).appendTo(t),this.createPageContainer(n).$container.css(this.rightLeafCss).appendTo(t),this.displayedIndices=[this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR],this.br.displayedIndices=this.displayedIndices,this.br.trigger("pageChanged")}},{key:"zoom",value:function(t){this.br.stopFlipAnimations(),this.calculateReductionFactors();var e=this.br.nextReduce(this.br.reduce,t,this.br.twoPage.reductionFactors);if(this.br.reduce!=e.reduce||this.br.twoPage.autofit!=e.autofit){this.br.twoPage.autofit=e.autofit,this.br.reduce=e.reduce,this.br.pageScale=this.br.reduce;var n=this.getViewCenter();this.prepare(n.percentageX,n.percentageY,!0)}}},{key:"resizeSpread",value:function(){var t,e,n,r;this.br.resizeBRcontainer(!1),this.calculateSpreadSize(),null===(t=this.br.refs)||void 0===t||t.$brTwoPageView.css(this.mainContainerCss),this.centerView(),Ct(this.br.twoPage.coverDiv).css(this.spreadCoverCss);var i=this.br.refs.$brTwoPageView;null===(e=i.find(".BRleafEdgeR"))||void 0===e||e.css(this.leafEdgeRCss),null===(n=i.find(".BRleafEdgeL"))||void 0===n||n.css(this.leafEdgeLCss),null===(r=i.find(".BRgutter"))||void 0===r||r.css(this.spineCss);var o=this.br.twoPage.currentIndexL,a=this.br.twoPage.currentIndexR;this.pageContainers[o].$container.css(this.leftLeafCss),this.pageContainers[a].$container.css(this.rightLeafCss)}},{key:"prepare",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.br.reduce,a=this.br.displayedIndices;this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css("overflow","auto");var s=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),u=this.book.getSpreadIndices(s);this.br.twoPage.currentIndexL=u[0],this.br.twoPage.currentIndexR=u[1],this.calculateSpreadSize();var c=o==this.br.reduce,l=a==this.br.displayedIndices,h=!l||l&&!c;(i||h)&&(this.prunePageContainers(),this.prefetch()),this.br.refs.$brTwoPageView=this.br.refs.$brTwoPageView||Ct('<div class="BRtwopageview"></div>');var f=this.br.refs.$brTwoPageView;f.empty(),f[0].style.transformOrigin="0 0",this.br.refs.$brContainer.append(f),this.dragScrollable=this.dragScrollable||new yt(this.br.refs.$brContainer[0],{preventDefault:!0,dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),this.attachMouseHandlers(),null===(n=this.br.refs)||void 0===n||n.$brTwoPageView.css(this.mainContainerCss),this.br.twoPage.totalWidth<this.br.refs.$brContainer.prop("clientWidth")&&(t=.5),this.br.twoPage.totalHeight<this.br.refs.$brContainer.prop("clientHeight")&&(e=.5),this.centerView(t,e),this.br.twoPage.coverDiv=document.createElement("div"),Ct(this.br.twoPage.coverDiv).attr("class","BRbookcover").css(this.spreadCoverCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeR=document.createElement("div"),this.leafEdgeR.className="BRleafEdgeR",Ct(this.leafEdgeR).css(this.leafEdgeRCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeL=document.createElement("div"),this.leafEdgeL.className="BRleafEdgeL",Ct(this.leafEdgeL).css(this.leafEdgeLCss).appendTo(this.br.refs.$brTwoPageView);var d=document.createElement("div");Ct(d).attr("class","BRgutter").css(this.spineCss).appendTo(this.br.refs.$brTwoPageView),this.preparePopUp(),this.br.displayedIndices=[],this.drawLeafs(),this.br.updateBrClasses(),this.smoothZoomer=this.smoothZoomer||new U(this),this.smoothZoomer.attach(),this.scrollClassAdder||(this.scrollClassAdder=new q(this.$container,"BRscrolling-active")),this.scrollClassAdder.detach(),this.scrollClassAdder.element=this.$container,this.scrollClassAdder.attach(),this.htmlDimensionsCacher=this.htmlDimensionsCacher||new z(this.$container)}},{key:"unprepare",value:function(){this.smoothZoomer.detach(),this.scrollClassAdder.detach()}},{key:"updateViewportOnZoom",value:function(t,e){var n,r,i=this.br.refs.$brContainer[0],o=i.scrollTop,a=i.scrollLeft,s=this.htmlDimensionsCacher.clientWidth,u=this.htmlDimensionsCacher.clientHeight,c=t/e,l=this.scaleCenter.x,h=this.scaleCenter.y,f=c*(a+l*s),d=c*(o+h*u);i.scrollTop=d-h*u,i.scrollLeft=f-l*s,null===(n=this.pageContainers[this.br.twoPage.currentIndexL])||void 0===n||n.update({reduce:this.br.reduce/t}),null===(r=this.pageContainers[this.br.twoPage.currentIndexR])||void 0===r||r.update({reduce:this.br.reduce/t})}},{key:"prunePageContainers",value:function(){for(var t in this.pageContainers)t!=this.br.twoPage.currentIndexL&&t!=this.br.twoPage.currentIndexR&&Ct(this.pageContainers[t].$container).remove(),(t<this.br.twoPage.currentIndexL-4||t>this.br.twoPage.currentIndexR+4)&&delete this.pageContainers[t]}},{key:"preparePopUp",value:function(){var t=this;this.br.twoPagePopUp=document.createElement("div"),this.br.twoPagePopUp.className="BRtwoPagePopUp",Ct(this.br.twoPagePopUp).css({zIndex:"1000"}).appendTo(this.br.refs.$brContainer),Ct(this.br.twoPagePopUp).hide();for(var e=[{$leafEdge:Ct(this.leafEdgeL),jumpIndexForPageX:this.jumpIndexForLeftEdgePageX.bind(this),leftOffset:function(){return 120-Ct(t.br.twoPagePopUp).width()}},{$leafEdge:Ct(this.leafEdgeR),jumpIndexForPageX:this.jumpIndexForRightEdgePageX.bind(this),leftOffset:function(){return-120}}],n=function(){var e=a[i],n=e.$leafEdge,s=e.jumpIndexForPageX,u=e.leftOffset;n.on("mouseenter",(function(){return Ct(t.br.twoPagePopUp).show()})),n.on("mouseleave",(function(){return Ct(t.br.twoPagePopUp).hide()})),n.on("click",(function(e){t.br.trigger(o.stop),t.br.jumpToIndex(s(e.pageX))})),n.on("mousemove",(function(e){var n=(0,r.clamp)(s(e.pageX),0,t.book.getNumLeafs()-1);Ct(t.br.twoPagePopUp).text("View ".concat(t.book.getPageName(n))),Ct(t.br.twoPagePopUp).css({left:"".concat(e.pageX-t.br.refs.$brContainer.offset().left+t.br.refs.$brContainer.scrollLeft()+u(),"px"),top:"".concat(e.pageY-t.br.refs.$brContainer.offset().top+t.br.refs.$brContainer.scrollTop(),"px")})}))},i=0,a=e;i<a.length;i++)n()}},{key:"setSpreadIndices",value:function(){var t=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),e=this.book.getSpreadIndices(t);this.br.twoPage.currentIndexL=e[0],this.br.twoPage.currentIndexR=e[1]}},{key:"calculateSpreadSize",value:function(){var t,e=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;t=this.br.twoPage.autofit?this.getIdealSpreadSize(e,n):this.getSpreadSizeFromReduce(e,n,this.br.reduce),this.br.twoPage.height=t.height||0,this.br.twoPage.width=t.width||0,this.br.twoPage.scaledWL=this.getPageWidth(e)||0,this.br.twoPage.scaledWR=this.getPageWidth(n)||0,this.br.twoPage.edgeWidth=t.totalLeafEdgeWidth,this.br.twoPage.leafEdgeWidthL=this.leafEdgeWidth(this.br.twoPage.currentIndexL),this.br.twoPage.leafEdgeWidthR=this.br.twoPage.edgeWidth-this.br.twoPage.leafEdgeWidthL,this.br.twoPage.bookCoverDivWidth=this.coverWidth(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR),this.br.twoPage.bookCoverDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding;var r=this.gutterOffsetForIndex(e),i=this.br.twoPage.scaledWL-r+this.br.twoPage.leafEdgeWidthL,o=this.br.twoPage.scaledWR+r+this.br.twoPage.leafEdgeWidthR,a=Math.max(i,o);this.br.twoPage.totalWidth=2*(a+this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.totalHeight=this.br.twoPage.height+2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.middle=this.br.twoPage.totalWidth>>1,this.br.twoPage.gutter=this.br.twoPage.middle+this.gutterOffsetForIndex(e),this.br.twoPage.bookCoverDivLeft=this.br.twoPage.gutter-this.br.twoPage.scaledWL-this.br.twoPage.leafEdgeWidthL-this.br.twoPage.coverInternalPadding,this.br.twoPage.bookCoverDivTop=this.br.twoPage.coverExternalPadding,this.br.twoPage.bookSpineDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding,this.br.twoPage.bookSpineDivLeft=this.br.twoPage.middle-(this.br.twoPage.bookSpineDivWidth>>1),this.br.twoPage.bookSpineDivTop=this.br.twoPage.bookCoverDivTop,this.br.reduce=t.reduce<0?this.br.reduce:t.reduce}},{key:"getIdealSpreadSize",value:function(t,e){var n,r={},i=this.book._getPageHeight(t),o=this.book._getPageWidth(t),a=this.book._getPageHeight(e),s=i/o,u=a/this.book._getPageWidth(e);n=Math.abs(s-1.5)<Math.abs(u-1.5)?s:u;var c=Math.floor(.1*this.book.getNumLeafs()),l=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(c,l);var h=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding)+r.totalLeafEdgeWidth,f=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding);return r.width=this.br.refs.$brContainer.width()-h>>1,r.width=r.width>10?r.width-10:1,r.height=this.br.refs.$brContainer.height()-f,r.height=r.height>15?r.height-15:1,r.height/n<=r.width?r.width=Math.floor(r.height/n)||1:r.height=Math.floor(r.width*n)||1,r.reduce=Math.round((i+a)/2/r.height),r}},{key:"getSpreadSizeFromReduce",value:function(t,e,n){var r={},i=Math.floor(.1*this.book.getNumLeafs()),o=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(i,o);var a=this.book._getPageWidth(t)+this.book._getPageWidth(e),s=this.book._getPageHeight(t)+this.book._getPageHeight(e);return r.height=Math.floor(s/2/this.br.reduce),r.width=Math.floor(a/2/this.br.reduce),r.reduce=n,r}},{key:"getAutofitReduce",value:function(){return this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce}},{key:"calculateReductionFactors",value:function(){this.br.twoPage.reductionFactors=this.br.reductionFactors.concat([{reduce:this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce,autofit:"auto"}]),this.br.twoPage.reductionFactors.sort(this.br._reduceSort)}},{key:"flipBackToIndex",value:function(t){if(this.br.constMode1up!=this.br.mode&&!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==t){var e=this.br.twoPage,n=e.currentIndexL,r=e.currentIndexR,i=Math.min(n,r),o=this.book.getPage(i).findPrev({combineConsecutiveUnviewables:!0});if(!o)return;t=o.index,"R"==o.pageSide&&t--}this.br._components.navbar.updateNavIndexThrottled(t);var a=this.book.getSpreadIndices(t);a[0]<this.br.firstDisplayableIndex()||a[1]<this.br.firstDisplayableIndex()||(this.br.animating=!0,"rl"!=this.br.pageProgression?(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1])):(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])))}else alert("error: leafEdgeTmp should be null!")}},{key:"flipLeftToRight",value:function(t,e){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.twoPage.currentIndexL,i=this.leafEdgeWidth(this.br.twoPage.currentIndexL),o=this.leafEdgeWidth(t),a=i-o,s=this.getPageWidth(r),u=this.getPageWidth(t),c=this.getPageWidth(e),l=this.top(),h=this.br.twoPage.middle+this.gutterOffsetForIndex(t),f=this.br.refs.$brTwoPageView,d=h-s-a;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ct(this.br.leafEdgeTmp).css({width:"".concat(a,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(d,"px"),top:"".concat(l,"px"),zIndex:1e3}).appendTo(f),Ct(this.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-s-o,"px")});var p=this.pageContainers[r].$container.offset().left,v="".concat(f.prop("clientWidth")-p-this.pageContainers[r].$container.width()+f.offset().left-2,"px");this.pageContainers[r].$container.css({right:v,left:""}),Ct(this.br.leafEdgeTmp).animate({left:h},this.br.flipSpeed,"easeInSine"),this.pageContainers[r].$container.animate({width:"0px"},this.br.flipSpeed,"easeInSine",(function(){Ct(n.br.leafEdgeTmp).animate({left:"".concat(h+c,"px")},n.br.flipSpeed,"easeOutSine"),n.br.$(".BRgutter").css({left:"".concat(h-.5*n.br.twoPage.bookSpineDivWidth,"px")}),n.pageContainers[e].$container.animate({width:"".concat(c,"px")},n.br.flipSpeed,"easeOutSine",(function(){var r;n.pageContainers[t].$container.css("zIndex",2),Ct(n.leafEdgeR).css({width:"".concat(n.br.twoPage.edgeWidth-o,"px"),left:"".concat(h+c,"px")}),Ct(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-u-o,"px")}),Ct(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(u+c),"px"),left:"".concat(h-u-o-n.br.twoPage.coverInternalPadding,"px")}),Ct(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=t,n.br.twoPage.currentIndexR=e,n.br.twoPage.scaledWL=u,n.br.twoPage.scaledWR=c,n.br.twoPage.gutter=h,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[t,e],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(t-2),n.createPageContainer(e-2),n.createPageContainer(t-3),n.createPageContainer(e-3)}))}))}},{key:"createPageContainer",value:function(t){return this.pageContainers[t]||(this.pageContainers[t]=this.br._createPageContainer(t)),this.pageContainers[t].update({reduce:this.br.reduce/this.scale}),this.pageContainers[t]}},{key:"flipFwdToIndex",value:function(t){if(!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==t){var e=this.br.twoPage,n=e.currentIndexL,r=e.currentIndexR,i=Math.max(n,r),o=this.book.getPage(i).findNext({combineConsecutiveUnviewables:!0});if(!o)return;t=o.index}if(!(t>this.br.lastDisplayableIndex())){this.br._components.navbar.updateNavIndexThrottled(t),this.br.animating=!0;var a=this.book.getSpreadIndices(t);"rl"!=this.br.pageProgression?(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])):(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1]))}}else alert("error: leafEdgeTmp should be null!")}},{key:"flipRightToLeft",value:function(t,e){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.leafEdgeWidth(this.br.twoPage.currentIndexL),i=this.br.twoPage.edgeWidth-r,o=this.leafEdgeWidth(t),a=this.br.twoPage.edgeWidth-o,s=i-a,u=this.top(),c=this.getPageWidth(this.br.twoPage.currentIndexR),l=this.br.twoPage.middle+this.gutterOffsetForIndex(t),h=this.br.refs.$brTwoPageView;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ct(this.br.leafEdgeTmp).css({width:"".concat(s,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(l+c,"px"),top:"".concat(u,"px"),zIndex:1e3}).appendTo(h);var f=this.getPageWidth(t),d=this.getPageWidth(e);Ct(this.leafEdgeR).css({width:"".concat(a,"px"),left:"".concat(l+d,"px")});var p=this.br.flipSpeed;Ct(this.br.leafEdgeTmp).animate({left:l},p,"easeInSine"),this.pageContainers[this.br.twoPage.currentIndexR].$container.animate({width:"0px"},p,"easeInSine",(function(){n.br.$("BRgutter").css({left:"".concat(l-.5*n.br.twoPage.bookSpineDivWidth,"px")}),Ct(n.br.leafEdgeTmp).animate({left:"".concat(l-f-s,"px")},p,"easeOutSine"),n.pageContainers[t].$container.css({right:"".concat(h.prop("clientWidth")-l,"px"),left:""}),n.pageContainers[t].$container.animate({width:"".concat(f,"px")},p,"easeOutSine",(function(){var r;n.pageContainers[e].$container.css("zIndex",2),Ct(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(l-f-o,"px")}),Ct(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(f+d),"px"),left:"".concat(l-f-o-n.br.twoPage.coverInternalPadding,"px")}),Ct(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=t,n.br.twoPage.currentIndexR=e,n.br.twoPage.scaledWL=f,n.br.twoPage.scaledWR=d,n.br.twoPage.gutter=l,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[t,e],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(t+2),n.createPageContainer(e+2),n.createPageContainer(t+3),n.createPageContainer(e+3)}))}))}},{key:"attachMouseHandlers",value:function(){var t=this;this.br.refs.$brTwoPageView.off("mouseup").on("mouseup",(function(e){if(3==e.which)return!t.br.protected;var n=Ct(e.target).closest(".BRpagecontainer");"L"==n.data("side")?t.br.left():"R"==n.data("side")&&t.br.right()}))}},{key:"prepareFlipLeftToRight",value:function(t,e){this.createPageContainer(t,!0),this.createPageContainer(e,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(t),c={left:"".concat(u-s,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1};this.pageContainers[t].$container.css(c).appendTo(n);var l={left:"".concat(u,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0",zIndex:2};this.pageContainers[e].$container.css(l).appendTo(n)}},{key:"prepareFlipRightToLeft",value:function(t,e){this.createPageContainer(t,!0),this.createPageContainer(e,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(t);Ct(this.pageContainers[e].$container).css({left:"".concat(u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1}).appendTo(n),r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),s=this.br.twoPage.height*i/r,Ct(this.pageContainers[t].$container).css({right:"".concat(n.prop("clientWidth")-u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0px",zIndex:2}).appendTo(n)}},{key:"getPageWidth",value:function(t){var e=this.book._getPageHeight(t),n=this.book._getPageWidth(t);return Math.floor(this.br.twoPage.height*n/e)}},{key:"gutter",value:function(){return this.br.twoPage.middle+this.gutterOffsetForIndex(this.br.twoPage.currentIndexL)}},{key:"top",value:function(){return this.br.twoPage.coverExternalPadding+this.br.twoPage.coverInternalPadding}},{key:"coverWidth",value:function(t){return t+this.br.twoPage.edgeWidth+2*this.br.twoPage.coverInternalPadding}},{key:"getViewCenter",value:function(){var t=this.br.refs,e=t.$brContainer,n=t.$brTwoPageView,r={},i=e.offset(),o=n.offset();return r.percentageX=(i.left-o.left+(e.prop("clientWidth")>>1))/this.br.twoPage.totalWidth,r.percentageY=(i.top-o.top+(e.prop("clientHeight")>>1))/this.br.twoPage.totalHeight,r}},{key:"centerView",value:function(t,e){void 0===t&&(t=.5),void 0===e&&(e=.5);var n=this.br.refs.$brTwoPageView.width(),r=this.br.refs.$brContainer.prop("clientWidth"),i=t*n,o=this.br.refs.$brTwoPageView.height(),a=this.br.refs.$brContainer.prop("clientHeight"),s=e*o;n<r?this.br.refs.$brTwoPageView.css("left","".concat((r>>1)-i,"px")):(this.br.refs.$brTwoPageView.css("left",0),this.br.refs.$brContainer.scrollLeft(i-(r>>1))),o<a?this.br.refs.$brTwoPageView.css("top","".concat((a>>1)-s,"px")):(this.br.refs.$brTwoPageView.css("top",0),this.br.refs.$brContainer.scrollTop(s-(a>>1)))}},{key:"flipAreaHeight",value:function(){return Math.floor(this.br.twoPage.height)}},{key:"flipAreaWidth",value:function(){var t=.15*this.br.twoPage.width;return Math.floor((0,r.clamp)(t,10,100))}},{key:"flipAreaTop",value:function(){return Math.floor(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding)}},{key:"leftFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter-this.br.twoPage.scaledWL)}},{key:"rightFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter+this.br.twoPage.scaledWR-this.flipAreaWidth())}},{key:"setHilightCss",value:function(t,e,n,r,i,o){var a,s=this.book._getPageHeight(e),u=this.book._getPageWidth(e),c=this.br.twoPage.height/s,l=Math.floor(u*c),h=this.gutter();a="L"==this.book.getPageSide(e)?h-l:h;var f=this.top();Ct(t).css({width:"".concat((r-n)*c,"px"),height:"".concat((o-i)*c,"px"),left:"".concat(a+n*c,"px"),top:"".concat(f+i*c,"px")})}},{key:"gutterOffsetForIndex",value:function(t){var e=Math.floor((t/this.book.getNumLeafs()-.5)*this.br.twoPage.edgeWidth);return"rl"==this.br.pageProgression&&(e*=-1),e}},{key:"leafEdgeWidth",value:function(t){return"L"==this.book.getPageSide(t)&&"rl"!=this.br.pageProgression?Math.floor(t/this.book.getNumLeafs()*this.br.twoPage.edgeWidth+.5):Math.floor((1-t/this.book.getNumLeafs())*this.br.twoPage.edgeWidth+.5)}},{key:"jumpIndexForLeftEdgePageX",value:function(t){var e;return"rl"!=this.br.pageProgression?(e=this.br.twoPage.currentIndexL-10*(Ct(this.leafEdgeL).offset().left+Ct(this.leafEdgeL).width()-t),e=(0,r.clamp)(Math.round(e),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2)):(e=this.br.twoPage.currentIndexL+10*(Ct(this.leafEdgeL).offset().left+Ct(this.leafEdgeL).width()-t),e=(0,r.clamp)(Math.round(e),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex()))}},{key:"jumpIndexForRightEdgePageX",value:function(t){var e;return"rl"!=this.br.pageProgression?(e=this.br.twoPage.currentIndexL+10*(t-Ct(this.leafEdgeR).offset().left),e=(0,r.clamp)(Math.round(e),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex())):(e=this.br.twoPage.currentIndexL-10*(t-Ct(this.leafEdgeR).offset().left),e=(0,r.clamp)(Math.round(e),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2))}},{key:"prefetch",value:function(){for(var t=Math.max,e=Math.min,n=this.book,r=this.br.twoPage,i=r.currentIndexL,o=r.currentIndexR,a=n.getPage(t(0,e(i,o))),s=n.getPage(t(i,o)),u=0;u<4;u++)a&&(this.createPageContainer(a.index),a=a.findPrev({combineConsecutiveUnviewables:!0})),s&&(this.createPageContainer(s.index),s=s.findNext({combineConsecutiveUnviewables:!0}))}},{key:"baseLeafCss",get:function(){return{position:"absolute",right:"",top:"".concat(this.top(),"px"),zIndex:2}}},{key:"heightCss",get:function(){return{height:"".concat(this.br.twoPage.height,"px")}}},{key:"leftLeafCss",get:function(){return Et(Et(Et({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter-this.br.twoPage.scaledWL,"px"),width:"".concat(this.br.twoPage.scaledWL,"px")})}},{key:"leafEdgeLCss",get:function(){return Et(Et({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthL,"px"),left:"".concat(this.br.twoPage.bookCoverDivLeft+this.br.twoPage.coverInternalPadding,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthL?"none":null})}},{key:"rightLeafCss",get:function(){return Et(Et(Et({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter,"px"),width:"".concat(this.br.twoPage.scaledWR,"px")})}},{key:"leafEdgeRCss",get:function(){return Et(Et({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthR,"px"),left:"".concat(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR+this.br.twoPage.leafEdgeWidthL,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthR?"none":null})}},{key:"mainContainerCss",get:function(){return{height:"".concat(this.br.twoPage.totalHeight,"px"),width:"".concat(this.br.twoPage.totalWidth,"px"),position:"absolute"}}},{key:"spreadCoverCss",get:function(){return{width:"".concat(this.br.twoPage.bookCoverDivWidth,"px"),height:"".concat(this.br.twoPage.bookCoverDivHeight,"px"),visibility:"visible"}}},{key:"spineCss",get:function(){return{width:"".concat(this.br.twoPage.bookSpineDivWidth,"px"),height:"".concat(this.br.twoPage.bookSpineDivHeight,"px"),left:"".concat(this.br.twoPage.gutter-this.br.twoPage.bookSpineDivWidth/2,"px"),top:"".concat(this.br.twoPage.bookSpineDivTop,"px")}}}])&&Rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ot=n(3609);function Mt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return At(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var jt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n}var e,n;return e=t,(n=[{key:"drawLeafs",value:function(t){var e,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=Mt(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(i=g.n()).done;){var m=i.value,b=this.br.thumbWidth;l+(b+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},(e=s(m.height*this.br.thumbWidth/m.width))>v[d].height&&(v[d].height=e),0===p&&(h+=this.br.thumbPadding+v[d].height),(l+=b+this.br.thumbPadding)>f&&(f=l),p++,m.index==t&&(n=h-this.br.thumbPadding-v[d].height)}}catch(t){g.e(t)}finally{g.f()}this.br.refs.$brPageViewEl.height(h);var y=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(),x=0,P=0,k=[],C=[],S=u.getNumLeafs()-1,E=0,T=0;T<v.length;T++)v[T]&&(P+=this.br.thumbPadding+v[T].height,(x>=w&&x<=_||P>=w&&P<=_||x<=w&&P>=_)&&(k.push(T),v[T].leafs[0].num<S&&(S=v[T].leafs[0].num),v[T].leafs[v[T].leafs.length-1].num>E&&(E=v[T].leafs[v[T].leafs.length-1].num)),x>v[T].top&&(v[T].top=x),x=P);for(var R=k[0],I=k[k.length-1],O=1;O<this.br.thumbRowBuffer+1;O++)I+O<v.length&&k.push(I+O);for(var M=1;M<this.br.thumbRowBuffer;M++)R-M>=0&&k.push(R-M);k.sort();for(var A=0,$=k;A<$.length;A++){var j=$[A];if((0,r.notInArray)(j,this.br.displayedRows)){if(!v[j])continue;var L,D=Mt(v[j].leafs);try{var N=function(){var t=L.value,e=t.num,n=t.left,r=a.br.thumbWidth,i=s(u.getPageHeight(e)*a.br.thumbWidth/u.getPageWidth(e)),l=v[j].top,h=n+y;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,C.push(e);var f=s(u.getPageWidth(e)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(e).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",e).on("mouseup",(function(t){a.br.updateFirstIndex(e,{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(Ot(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),t.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(L=D.n()).done;)N()}catch(t){D.e(t)}finally{D.f()}}}var B,U=Mt(this.br.displayedRows);try{for(U.s();!(B=U.n()).done;){var F=B.value;if((0,r.notInArray)(F,k)){var W,z,H=Mt(null===(W=v[F])||void 0===W?void 0:W.leafs);try{for(H.s();!(z=H.n()).done;){var V,q=z.value.num;null!=C&&C.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(t){H.e(t)}finally{H.f()}}}}catch(t){U.e(t)}finally{U.f()}var X=this.br.currentIndex();X<S?this.br.updateFirstIndex(S):X>E&&this.br.updateFirstIndex(E),this.br.displayedRows=k.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(t){var e=Ot(t).data("leaf"),n=Ot(t).data("reduce"),r=this.br.imageCache.image(e,n),i=Ot(t).parent();Ot(i).append(r),Ot(t).remove()}},{key:"zoom",value:function(t){var e=this.br.thumbColumns;switch(t){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(t))}this.br.thumbColumns=(0,r.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=e&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(t){var e=(t+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-e)/(t+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=Ot("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new yt(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){for(var e=this,n=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,h=0;h<=t;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(t),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){e.br.animating=!1})))}}])&&$t(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Lt=(n(4914),{floor:Math.floor,decr:function(t){return t-1}}),Dt={floor:function(t){return Math.pow(2,Math.floor(Math.log2(Math.max(1,t))))},decr:function(t){return Math.pow(2,Math.log2(t)-1)}},Nt={pow2:Dt,integer:Lt},Bt=n(3609);function Ut(t){return function(t){if(Array.isArray(t))return Ft(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ht=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Dt:o;Wt(this,t),this.book=e,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var e,n;return e=t,(n=[{key:"image",value:function(t,e){var n=(this.cache[t]||[]).filter((function(t){return t.loaded&&t.reduce<=e}));if(n.length){var r=Math.max.apply(Math,Ut(n.map((function(t){return t.reduce}))));return this._serveImageElement(t,r)}return this._serveImageElement(t,e)}},{key:"imageLoaded",value:function(t,e){var n,r,i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce<=e}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(e=this.cache[t])||void 0===e?void 0:e.filter((function(t){return t.loaded})))||[];if(!r.length)return null;var i=r.filter((function(t){return t.reduce>=n}));if(i.length)return Math.min.apply(Math,Ut(i.map((function(t){return t.reduce}))));var o=r.filter((function(t){return t.reduce<n}));return Math.max.apply(Math,Ut(o.map((function(t){return t.reduce}))))}},{key:"_serveImageElement",value:function(t,e){var n,r=this.reduceSet.floor(e),i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[t]||(this.cache[t]=[])).push(i));var o=this.book.getPage(t),a=Bt("<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}}])&&zt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Vt=n(9860),qt=n(3609),Xt=n(3609);function Yt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Gt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Yt(o,r,i,a,s,"next",t)}function s(t){Yt(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Xt.extend(!0,{},Zt.defaultOptions,t,Zt.optionOverrides);this.setup(e)}function Jt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(t){return t.br},a=function(t){return t._overrideable[e]};i(t,n,o,Zt,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&qt((function(){return(new l.E).init()})),Zt.version="5.0.0-52",Zt.constMode1up=1,Zt.constMode2up=2,Zt.constModeThumb=3,Zt.imageCache=null,Zt.constNavAnimationDuration=300,Zt.constResizeAnimationDuration=100,Zt.eventNames=o,Zt.defaultOptions=c,Zt.optionOverrides={},Zt.prototype.setup=function(t){this.options=t,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Zt.constMode1up,this.constMode2up=Zt.constMode2up,this.constModeThumb=Zt.constModeThumb,this.reduce=8,this.defaults=t.defaults,this.padding=t.padding,this.reduceSet=Nt[t.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(t.reduceSet,". Ignoring.")),this.reduceSet=Nt[c.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=t.ui,this.uiAutoHide=t.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=t.thumbRowBuffer,this.thumbColumns=t.thumbColumns,this.thumbMaxLoading=t.thumbMaxLoading,this.thumbPadding=t.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed=t.flipSpeed,this.flipDelay=t.flipDelay,this.twoPagePopUp=null,this.leafEdgeTmp=null,this.firstIndex=null,this.lastDisplayableIndex2up=null,this.isFullscreenActive=t.startFullscreen||!1,this.lastScroll=null,this.showLogo=t.showLogo,this.logoURL=t.logoURL,this.imagesBaseURL=t.imagesBaseURL,this.reductionFactors=t.reductionFactors,this.onePage=t.onePage,this.twoPage=t.twoPage,this.onePageMinBreakpoint=t.onePageMinBreakpoint,this.bookTitle=t.bookTitle,this.bookUrl=t.bookUrl,this.bookUrlText=t.bookUrlText,this.bookUrlTitle=t.bookUrlTitle,this.titleLeaf=t.titleLeaf,this.metadata=t.metadata,this.thumbnail=t.thumbnail,this.bookUrlMoreInfo=t.bookUrlMoreInfo,this.enableExperimentalControls=t.enableExperimentalControls,this.el=t.el,this.pageProgression=t.pageProgression,this.protected=t.protected,this.getEmbedCode=t.getEmbedCode,this.popup=null,this.data=t.data,this.refs={},this.book=new _(this),t.getNumLeafs&&(this.book.getNumLeafs=t.getNumLeafs.bind(this)),t.getPageWidth&&(this.book.getPageWidth=t.getPageWidth.bind(this)),t.getPageHeight&&(this.book.getPageHeight=t.getPageHeight.bind(this)),t.getPageURI&&(this.book.getPageURI=t.getPageURI.bind(this)),t.getPageSide&&(this.book.getPageSide=t.getPageSide.bind(this)),t.getPageNum&&(this.book.getPageNum=t.getPageNum.bind(this)),t.getPageProp&&(this.book.getPageProp=t.getPageProp.bind(this)),t.getSpreadIndices&&(this.book.getSpreadIndices=t.getSpreadIndices.bind(this)),t.leafNumToIndex&&(this.book.leafNumToIndex=t.leafNumToIndex.bind(this)),this._components={navbar:new u(this),toolbar:new p(this)},this._modes={mode1Up:new kt(this,this.book),mode2Up:new It(this,this.book),modeThumb:new jt(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 Ht(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},Zt.prototype.getActivePageContainerElements=function(){var t=Object.values(this._modes.mode2Up.pageContainers).map((function(t){return t.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(t){return t.$container[0]})));return this.mode==this.constModeThumb&&(t=t.concat(this.$(".BRpagecontainer").toArray())),t},Zt.prototype.getActivePageContainerElementsForIndex=function(t){var e,n,r,i,o;return[null===(e=this._modes.mode2Up.pageContainers[t])||void 0===e||null===(n=e.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[t])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(t)).toArray():[],function(t){if(Array.isArray(t))return Kt(t)}(o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(t){return t}))},Object.defineProperty(Zt.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Zt.util=r,Zt.prototype.extendParams=function(t,e){var n=qt.extend({},e);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}qt.extend(t,n)},Zt.prototype.initParams=function(){var t={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?t.index=this.book.leafNumToIndex(this.titleLeaf):t.index=0,this.defaults){var e=this.paramsFromFragment(this.defaults);void 0!==e.page&&(t.pageFound=!0),this.extendParams(t,e)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(t.index!==n&&(t.fragmentChange=!0),t.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&&(t.pageFound=!0),this.extendParams(t,i),t.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!t.pageFound,!this.options.initialSearchTerm))if(t.search)this.options.initialSearchTerm=t.search,this.searchTerm=t.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!t.fragmentChange,t},Zt.prototype.getLocationSearch=function(){return window.location.search},Zt.prototype.getLocationHash=function(){return window.location.hash},Zt.prototype.readQueryString=function(){var t=this.getLocationSearch();if(t)return t;var e=this.getLocationHash(),n=e.search(/\?\w+=/);return n>-1?e.slice(n):""},Zt.prototype.getInitialMode=function(t){var e,n;return e=void 0!==t.mode?t.mode:"full"==this.ui&&this.isFullscreenActive||(n=qt(window).width())&&n<=this.onePageMinBreakpoint?this.constMode1up:this.constMode2up,this.canSwitchToMode(e)||(e=this.constMode1up),this.options.defaults&&(e=this.overridesBookMode()),e},Zt.prototype.overridesBookMode=function(){var t=2;switch(this.options.defaults){case"mode/1up":t=this.constMode1up;break;case"mode/2up":t=this.constMode2up;break;case"mode/thumb":t=this.constModeThumb}return t},Zt.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var t=this.initParams();this.firstIndex=t.index?t.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=qt(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=qt("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),t.mode=this.getInitialMode(t),this.mode=t.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(t),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(t){t.data.lastScroll=(new Date).getTime(),t.data.constModeThumb==t.data.mode&&t.data.drawLeafsThrottled()})),this.options.autoResize&&(qt(window).on("resize",this,(function(t){t.data.resize()})),qt(window).on("orientationchange",this,function(t){t.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(Zt.eventNames.PostInit)},Zt.prototype.trigger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+t;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:e}})),qt(document).trigger(n,e)},Zt.prototype.bind=function(t,e){qt(document).on("BookReader:"+t,e)},Zt.prototype.unbind=function(t,e){qt(document).off("BookReader:"+t,e)},Zt.prototype.resize=function(){if(this.init.initComplete){if(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());else if(this.constModeThumb==this.mode)this._modes.modeThumb.prepare();else if(this.twoPage.autofit)this._modes.mode2Up.prepare();else{var t=this.twoPageGetViewCenter(),e=!1;this.twoPage.totalWidth<this.refs.$brContainer.prop("clientWidth")&&(t.percentageX=.5,e=!0),this.twoPage.totalHeight<this.refs.$brContainer.prop("clientHeight")&&(t.percentageY=.5,e=!0),e&&this._modes.mode2Up.centerView(t.percentageX,t.percentageY)}this.trigger(Zt.eventNames.resize)}},Zt.prototype.setupKeyListeners=function(){var t=this;window.IntersectionObserver&&new IntersectionObserver((function(e){e.forEach((function(e){0===e.intersectionRatio?t.hasKeyFocus=!1:t.hasKeyFocus=!0}))}),{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",(function(e){if(t.hasKeyFocus&&!(e.getModifierState("Control")||e.getModifierState("Alt")||e.getModifierState("Meta")||e.getModifierState("Win")||r.isInputActive()))switch(e.key){case"Home":e.preventDefault(),t.first();break;case"End":e.preventDefault(),t.last();break;case"ArrowDown":case"PageDown":case"Down":t.constMode2up===t.mode&&(e.preventDefault(),t.next());break;case"ArrowUp":case"PageUp":case"Up":t.constMode2up===t.mode&&(e.preventDefault(),t.prev());break;case"ArrowLeft":case"Left":t.constModeThumb!=t.mode&&(e.preventDefault(),t.left());break;case"ArrowRight":case"Right":t.constModeThumb!=t.mode&&(e.preventDefault(),t.right());break;case"-":case"Subtract":e.preventDefault(),t.zoom(-1);break;case"+":case"=":case"Add":e.preventDefault(),t.zoom(1);break;case"F":case"f":e.preventDefault(),t.toggleFullscreen()}}))},Zt.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Zt.prototype._createPageContainer=function(t){return new Vt._z(this.book.getPage(t,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},Zt.prototype.bindGestures=function(t){var e=this,n=1;t.unbind("touchmove").bind("touchmove",(function(t){t.originalEvent.cancelable&&(n=t.originalEvent.touches.length),t.stopPropagation()})),t.unbind("gesturechange").bind("gesturechange",(function(t){t.preventDefault(),2!==n||(new Date).getTime()-e.lastScroll<500||(t.originalEvent.scale>1.5?e.zoom(1):t.originalEvent.scale<.6&&e.zoom(-1))}))},Zt.prototype.drawLeafsThrottled=r.throttle(Zt.prototype.drawLeafs,250),Zt.prototype.zoom=function(t){var e;1==t?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},Zt.prototype.resizeBRcontainer=function(t){t?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Zt.prototype.centerPageView=function(){var t=this.refs.$brContainer.prop("scrollWidth"),e=this.refs.$brContainer.prop("clientWidth");t>e&&this.refs.$brContainer.prop("scrollLeft",(t-e)/2)},Zt.prototype.quantizeReduce=function(t,e){for(var n=e[0].reduce,r=Math.abs(t-n),i=1;i<e.length;i++){var o=Math.abs(t-e[i].reduce);o<r&&(r=o,n=e[i].reduce)}return n},Zt.prototype.nextReduce=function(t,e,n){if("in"===e){for(var r=0,i=1;i<n.length;i++)n[i].reduce<t&&(r=i);return n[r]}if("out"===e){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>t&&(a=s);return n[a]}if("auto"===e){var u=n.find((function(t){return"auto"==t.autofit}));if(u)return u;for(var c=n.filter((function(t){var e=t.autofit;return"height"==e||"width"==e})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===e||"width"===e){var f=n.find((function(t){return t.autofit==e}));if(f)return f}return n[0]},Zt.prototype._reduceSort=function(t,e){return t.reduce-e.reduce},Zt.prototype.jumpToPage=function(t){var e=this.book.parsePageString(t);return void 0!==e&&(this.jumpToIndex(e),!0)},Zt.prototype._isIndexDisplayed=function(t){return this.displayedIndices?this.displayedIndices.includes(t):this.currentIndex()==t},Zt.prototype.jumpToIndex=function(t,e,n,r){var i=this.book.getPage(t);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,e,n,r)}this.trigger(Zt.eventNames.stop),this.constMode2up==this.mode?this._modes.mode2Up.jumpToIndex(t):this.constModeThumb==this.mode?this._modes.modeThumb.jumpToIndex(t):this._modes.mode1Up.jumpToIndex(t,e,n,r)},Zt.prototype.getPrevReadMode=function(t){return t===Zt.constMode1up||t===Zt.constMode2up?t:null===this.prevReadMode?Zt.constMode1up:void 0},Zt.prototype.switchMode=function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o,s=i.init,u=void 0!==s&&s,c=i.pageFound,l=void 0!==c&&c;if(this.init.initComplete){if(t===this.mode)return;if(!this.canSwitchToMode(t))return}this.trigger(Zt.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=t&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=t,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==t?this._modes.mode1Up.prepare():this.constModeThumb==t?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):(!u&&l||this._modes.mode2Up.setSpreadIndices(),this._modes.mode2Up.calculateReductionFactors(),this._modes.mode2Up.prepare(),this._modes.mode2Up.centerView(.5,.5)),this.suppressFragmentChange||a||this.trigger(Zt.eventNames.fragmentChange);var h=t+"PageViewSelected";this.trigger(Zt.eventNames[h]),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},Zt.prototype.updateBrClasses=function(){var t={};t[this.constMode1up]="BRmode1up",t[this.constMode2up]="BRmode2Up",t[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2Up BRmodeThumb").addClass(t[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),qt(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),qt(document.body).removeClass("BRfullscreenActive"))},Zt.prototype.isFullscreen=function(){return this.isFullscreenActive},Zt.prototype.toggleFullscreen=Gt(regeneratorRuntime.mark((function t(){var e,n=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){t.next=6;break}return t.next=4,this.exitFullScreen();case 4:t.next=8;break;case 6:return t.next=8,this.enterFullscreen(e);case 8:case"end":return t.stop()}}),t,this)}))),Zt.prototype.enterFullscreen=Gt(regeneratorRuntime.mark((function t(){var e,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=!(o.length>0&&void 0!==o[0])||o[0],r=this.currentIndex(),this.refs.$brContainer.css("opacity",0),n&&(this._fullscreenCloseHandler=function(t){27===t.keyCode&&i.toggleFullscreen()},qt(document).on("keyup",this._fullscreenCloseHandler)),qt(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),this.animating=!0,t.next=11,new Promise((function(t){return i.refs.$brContainer.animate({opacity:1},"fast","linear",t)}));case 11:if(!(this.activeMode instanceof kt)){t.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),t.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:this.jumpToIndex(r),this.animating=!1,null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(Zt.eventNames.fragmentChange),this.trigger(Zt.eventNames.fullscreenToggled),setTimeout((function(){i.resize()}),0);case 22:case"end":return t.stop()}}),t,this)}))),Zt.prototype.exitFullScreen=Gt(regeneratorRuntime.mark((function t(){var e,n,r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.refs.$brContainer.css("opacity",0),qt(document).off("keyup",this._fullscreenCloseHandler),n=qt(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(Zt.eventNames.fullscreenToggled),this.updateBrClasses(),this.animating=!0,t.next=11,new Promise((function(t){return r.refs.$brContainer.animate({opacity:1},"fast","linear",t)}));case 11:if(this.resize(),!(this.activeMode instanceof kt)){t.next=17;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),t.next=17,this.activeMode.mode1UpLit.updateComplete;case 17:this.animating=!1,null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(Zt.eventNames.fragmentChange);case 20:case"end":return t.stop()}}),t,this)}))),Zt.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},Zt.prototype.updateFirstIndex=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==t&&(this.firstIndex=t,this.suppressFragmentChange||r||this.trigger(Zt.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger("pageChanged"),this._components.navbar.updateNavIndexThrottled(t))},Zt.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},Zt.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Zt.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},Zt.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Zt.prototype.next=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e;this.constMode2up==this.mode?(n&&this.trigger(Zt.eventNames.stop),this._modes.mode2Up.flipFwdToIndex(null)):this.firstIndex<this.lastDisplayableIndex()&&this.jumpToIndex(this.firstIndex+1)},Zt.prototype.prev=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e,r=this.firstIndex<1;r||(this.constMode2up==this.mode?(n&&this.trigger(Zt.eventNames.stop),this._modes.mode2Up.flipBackToIndex(null)):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},Zt.prototype.first=function(){this.jumpToIndex(this.firstDisplayableIndex())},Zt.prototype.last=function(){this.jumpToIndex(this.lastDisplayableIndex())},Zt.prototype.scrollDown=function(){return qt.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?(this.trigger("pageChanged"),this.next()):(this.refs.$brContainer.stop(!0).animate({scrollTop:"+="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},Zt.prototype.scrollUp=function(){return qt.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?(this.trigger("pageChanged"),this.prev()):(this.refs.$brContainer.stop(!0).animate({scrollTop:"-="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},Zt.prototype._scrollAmount=function(){return this.constMode1up==this.mode?parseInt(this.refs.$brContainer.prop("clientHeight")-this.book.getPageHeight(this.currentIndex())/this.reduce*.03):parseInt(.9*this.refs.$brContainer.prop("clientHeight"))},Zt.prototype.stopFlipAnimations=function(){this.trigger(Zt.eventNames.stop),this.leafEdgeTmp&&qt(this.leafEdgeTmp).stop(!1,!0),Xt.each(this._modes.mode2Up.pageContainers,(function(){qt(this.$container).stop(!1,!0)})),this.leafEdgeTmp&&qt(this.leafEdgeTmp).stop(!1,!0),Xt.each(this._modes.mode2Up.pageContainers,(function(){qt(this.$container).stop(!1,!0)}))},Zt.prototype.initNavbar=u.prototype.init,Jt(u,"_components.navbar","init","initNavbar"),Zt.prototype.buildToolbarElement=p.prototype.buildToolbarElement,Jt(p,"_components.toolbar","buildToolbarElement"),Zt.prototype.initToolbar=p.prototype.initToolbar,Jt(p,"_components.toolbar","initToolbar"),Zt.prototype.buildShareDiv=p.prototype.buildShareDiv,Jt(p,"_components.toolbar","buildShareDiv"),Zt.prototype.buildInfoDiv=p.prototype.buildInfoDiv,Jt(p,"_components.toolbar","buildInfoDiv"),Zt.prototype.getToolBarHeight=p.prototype.getToolBarHeight,Jt(p,"_components.toolbar","getToolBarHeight"),Zt.prototype.bindNavigationHandlers=function(){var t=this,e=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){t.trigger(Zt.eventNames.stop),t.left()},book_right:function(){t.trigger(Zt.eventNames.stop),t.right()},book_up:function(){qt.inArray(t.mode,[t.constMode1up,t.constModeThumb])>=0?t.scrollUp():t.prev()},book_down:function(){qt.inArray(t.mode,[t.constMode1up,t.constModeThumb])>=0?t.scrollDown():t.next()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){t.switchMode(e.constMode1up)},thumb:function(){t.switchMode(e.constModeThumb)},twopg:function(){t.switchMode(e.constMode2up)},zoom_in:function(){t.trigger(Zt.eventNames.stop),t.zoom(1),t.trigger(Zt.eventNames.zoomIn)},zoom_out:function(){t.trigger(Zt.eventNames.stop),t.zoom(-1),t.trigger(Zt.eventNames.zoomOut)},full:function(){if("embed"==t.ui){var e=t.$(".BRembedreturn a").attr("href");window.open(e)}else t.toggleFullscreen()}};n.filter(".fit").bind("fit",(function(){}));var i=function(t){n.filter(".".concat(t)).on("click.bindNavigationHandlers",(function(){return r[t](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var t=[];a.hasClass("BRdn")?(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:-1*e.getToolBarHeight()}).promise()),t.push(e.$(".BRfooter").animate({bottom:-1*e.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),e.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:0}).promise()),t.push(e.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),e.$(".BRvavCntl").animate({opacity:1})),qt.when.apply(qt,t).done((function(){e.mode==e.constMode2up&&null!=e.twoPage.autofit&&"none"!=e.twoPage.autofit||e.mode==e.constMode1up&&null!=e.onePage.autofit&&"none"!=e.onePage.autofit?e.resize():e.resizeBRcontainer()}))})),a.on("mouseover",(function(){qt(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){qt(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){qt(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){qt(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),qt(document).off("mousemove.navigation",this.el),qt(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),qt(document).off("mousedown.swipe",".BRpageimage"),qt(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers(),qt(document).on("BookReader:pageChanged",(function(){console.log("here")}))},Zt.prototype.unbindNavigationHandlers=function(){qt(document).off("mousemove.navigation",this.el)},Zt.prototype.navigationMousemoveHandler=function(t){if(t.data.br.uiAutoHide){var e=qt(document).height()-75;t.pageY<76||t.pageY>e?t.data.br.hideNavigation():t.data.br.showNavigation()}},Zt.prototype.initSwipeData=function(t,e){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:t,startY:e,lastX:t,lastY:e,deltaX:0,deltaY:0,deltaT:0}},Zt.prototype.swipeMousedownHandler=function(t){var e=t.data.br;return 3==t.which?!e.protected:(qt(t.target).on("mouseout.swipe",{br:e},e.swipeMouseupHandler).on("mouseup.swipe",{br:e},e.swipeMouseupHandler).on("mousemove.swipe",{br:e},e.swipeMousemoveHandler),e.initSwipeData(t.clientX,t.clientY),e._swipe.mightBeSwiping=!0,e._swipe.mightBeDragging=!0,t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1)},Zt.prototype.swipeMousemoveHandler=function(t){var e=t.data.br,n=e._swipe;if(n.mightBeSwiping){n.deltaX=t.clientX-n.startX,n.deltaY=t.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(e.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,e.mode==e.constMode2up&&(n.deltaX<0?e.right():e.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,e.refs.$brContainer.scrollTop(e.refs.$brContainer.scrollTop()-t.clientY+n.lastY).scrollLeft(e.refs.$brContainer.scrollLeft()-t.clientX+n.lastX)),n.lastX=t.clientX,n.lastY=t.clientY,t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1}},Zt.prototype.swipeMouseupHandler=function(t){var e=t.data.br._swipe;return e.mightBeSwiping=!1,e.mightBeDragging=!1,qt(t.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!e.didSwipe&&!e.didDrag||(t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1)},Zt.prototype.bindMozTouchHandlers=function(){var t=this;this.refs.$br.on("MozTouchDown",(function(e){this.mode==t.constMode2up&&e.preventDefault()})).on("MozTouchMove",(function(e){this.mode==t.constMode2up&&e.preventDefault()})).on("MozTouchUp",(function(e){this.mode==t.constMode2up&&e.preventDefault()}))},Zt.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},Zt.prototype.setNavigationView=function(t){var e=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(Zt.eventNames.navToggled)}.bind(this),i=0,o=0;t?(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},e,n,r),this.refs.$BRfooter.animate({bottom:o},e,n,r)},Zt.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},Zt.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},Zt.prototype.firstDisplayableIndex=function(){return this.mode!=this.constMode2up?0:"rl"!=this.pageProgression?"L"==this.book.getPageSide(0)?0:-1:"R"==this.book.getPageSide(0)?0:-1},Zt.prototype.lastDisplayableIndex=function(){var t=this.book.getNumLeafs()-1;return this.mode!=this.constMode2up?t:"rl"!=this.pageProgression?"R"==this.book.getPageSide(t)?t:t+1:"L"==this.book.getPageSide(t)?t:t+1},Zt.prototype.getPageURI=_.prototype.getPageURI,Jt(_,"book","getPageURI"),Zt.prototype.updateFromParams=function(t){var e=t.mode,n=void 0===e?0:e,r=t.init,i=void 0!==r&&r,o=t.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==t.index?t.index!=this.currentIndex()&&this.jumpToIndex(t.index):void 0!==t.page&&t.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(t.page),this.enableSearch&&void 0!==t.search&&this.searchTerm!==t.search&&this.$(".BRsearchInput").val(t.search),this.enableThemesPlugin&&void 0!==t.theme&&this.updateTheme(t.theme)},Zt.prototype.canSwitchToMode=function(t){return t!=this.constMode2up&&t!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Zt.prototype._getPageURI=function(t,e,n){var r=this.book.getPage(t,!1);return r?(void 0===e&&(e=r.height/this.twoPage.height),r.getURI(e,n)):this.imagesBaseURL+"transparent.png"},Zt.prototype.showProgressPopup=function(t,e){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),qt(this.popup).prop("className","BRprogresspopup"),"function"==typeof e){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),qt(r).append(i),r.addEventListener("click",(function(){e(),n.removeProgressPopup()})),qt(this.popup).append(r)}var o=document.createElement("div");if(qt(o).css({height:"20px"}).prop("className","BRprogressbar"),qt(this.popup).append(o),t){var a=document.createElement("div");a.innerHTML=t,qt(this.popup).append(a)}qt(this.popup).appendTo(this.refs.$br)}},Zt.prototype.removeProgressPopup=function(){qt(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Zt.prototype.initUIStrings=function(){var t={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".book_up":"Page up",".book_down":"Page down",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var e in"rl"==this.pageProgression&&(t[".book_leftmost"]="Last page",t[".book_rightmost"]="First page"),t)this.$(e).prop("title",t[e])},Zt.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(t,e){if(!e.complete||0===e.naturalHeight){var n=e.src;e.src="",setTimeout((function(){e.src=n}),1e3)}}))},Zt.prototype.getFooterHeight=function(){var t=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(t&&this.refs.$BRfooter){var e=t.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(e)&&!isNaN(n))return e+n}return 0},Zt.prototype.paramsFromCurrent=function(){var t={},e=this.currentIndex(),n=this.book.getPageNum(e);return(0===n||n)&&(t.page=n),t.index=e,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),this.enableSearch&&(t.search=this.searchTerm),t},Zt.prototype.paramsFromFragment=function(t){var e={};"#"==t.substr(0,1)&&(t=t.substr(1));var n=parseInt(/^\d+$/.exec(t));if(!isNaN(n))return e.index=n,e;for(var i=t.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?e.mode=this.constMode1up:"2up"==o.mode?e.mode=this.constMode2up:"thumb"==o.mode&&(e.mode=this.constModeThumb),void 0!==o.page&&(e.page=o.page),null!=o.search&&(e.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(e.theme=o.theme),e},Zt.prototype.fragmentFromParams=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==t.page?i.push("page",t.page):void 0!==t.index&&i.push("page","n"+t.index),void 0!==t.mode)if(t.mode==this.constMode1up)i.push("mode","1up");else if(t.mode==this.constMode2up)i.push("mode","2up");else{if(t.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+t.mode;i.push("mode","thumb")}return t.search&&"hash"===e&&i.push("search",t.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},Zt.prototype.queryStringFromParams=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(e);t.view?r.set("view",t.view):r.delete("view"),t.search&&"history"===n&&r.set("q",t.search);var i=r.toString();return i?"?"+i:""},Zt.prototype.$=function(t){return this.refs.$br.find(t)},window.BookReader=Zt},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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.on("submit",(function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];_realLog.apply(void 0,e),_this.logToScreen(e)},window.onerror=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return _this.logToScreen(e)}}},{key:"logToScreen",value:function(t){var e=t.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==e?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(e,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(t,e,n){"use strict";n.d(e,{_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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.page=e,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var e,n;return e=t,(n=[{key:"update",value:function(t){var e,n,i=t.dimensions,o=void 0===i?null:i,a=t.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var 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===(e=this.$img)||void 0===e?void 0:e[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var 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 t,e=(t=regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(e.target).css({background:""}),r(e.target).parent().removeClass("BRpageloading");case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),this}}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(t.width," ").concat(t.height)),n.setAttribute("class","BRPageLayer ".concat(e)),n.setAttribute("preserveAspectRatio","none"),n}function f(t){var e=t.l,n=t.r,r=t.b,i=t.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-e).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(t)),c=u||h(n,t);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(e.entries());try{for(p.s();!(d=p.n()).done;){var v=i(d.value,2),g=v[0],m=v[1],b=f(m);s&&b.setAttribute("class",s[g]),c.appendChild(b)}}catch(t){p.e(t)}finally{p.f()}}},5685:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){t.bind("mousedown",(function(){return!1})),t[0].onselectstart=function(){return!1}}function s(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return t/e*100+"%"}function c(t,e){return!e.includes(t)}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.activeElement;return e&&null!=n&&n.shadowRoot?l(n.shadowRoot,!0):n}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=l(t);return"INPUT"==(null==e?void 0:e.tagName)||"TEXTAREA"==(null==e?void 0:e.tagName)}function f(t){var e=t.contentWindow||t.contentDocument;return e.document||e}function d(t){return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(t){return decodeURIComponent(t).replace(/\+/g," ")}function v(t){return encodeURIComponent(t).replace(/%20/g,"+")}function g(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}function m(t,e,n){var r,i;return e||(e=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+e?(clearTimeout(i),i=setTimeout((function(){r=o,t.apply(n,a)}),e)):(r=o,t.apply(n,a))}}function b(t){if("function"==typeof t.CustomEvent)return!1;t.CustomEvent=y}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,i=e.cancelable,o=void 0!==i&&i,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,o,s),u}function w(){var t=document.createElement("div");t.style.width="1in",document.body.appendChild(t);var e=t.offsetWidth;document.body.removeChild(t);var n=1.25*e;return 0==n?100:n}function _(t){return t.reduce((function(t,e){return t+e}),0)}function x(t){var e,n=[],r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function P(t,e){return t.length==e.length&&t.every((function(t,n){return t==e[n]}))}function k(t,e){return t&&e&&!P(t,e)}function C(t){return S.apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(t){return T.apply(this,arguments)}function T(){return(T=i(regeneratorRuntime.mark((function t(e){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.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(t){return Boolean(t)}:s,c=n._sleep,l=void 0===c?C:c,h=Date.now();case 2:if(!(Date.now()-h<a)){t.next=10;break}if(f=e(),!u(f)){t.next=6;break}return t.abrupt("return",f);case 6:return t.next=8,l(i);case 8:t.next=2;break;case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n.r(e),n.d(e,{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 b},PolyfilledCustomEvent:function(){return y},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return x},arrEquals:function(){return P},arrChanged:function(){return k},sleep:function(){return C},poll:function(){return E}}),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(t,e,n){var r=n(7854),i=n(614),o=n(6330),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(7854),i=n(4411),o=n(6330),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(7854),i=n(614),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,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)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7854),i=n(7976),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(7854),i=n(111),o=r.String,a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not an object")}},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1285:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(6244);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(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;t.exports=function(t){var e=a(t),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,b,y,w,_,x,P=d(e),k=0;if(!P||this==p&&u(P))for(m=l(e),b=n?new this(m):p(m);m>k;k++)x=g?v(e[k],k):e[k],h(b,k,x);else for(_=(w=f(e,P)).next,b=n?new this:[];!(y=o(_,w)).done;k++)x=g?s(w,v,[y.value,k],!0):y.value,h(b,k,x);return b.length=k,b}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var r=n(9974),i=n(1702),o=n(8361),a=n(7908),s=n(6244),u=n(5417),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,v,g,m){for(var b,y,w=a(p),_=o(w),x=r(v,g),P=s(_),k=0,C=m||u,S=e?C(p,P):n||f?C(p,0):void 0;P>k;k++)if((d||k in _)&&(y=x(b=_[k],k,w),t))if(e)S[k]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return k;case 2:c(S,b)}else switch(t){case 4:return!1;case 7:c(S,b)}return h?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(t,e,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},3671:function(t,e,n){var r=n(7854),i=n(9662),o=n(7908),a=n(8361),s=n(6244),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=o(e),h=a(l),f=s(l),d=t?f-1:0,p=t?-1:1;if(r<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in h&&(c=n(c,h[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},1589:function(t,e,n){var r=n(7854),i=n(1400),o=n(6244),a=n(6135),s=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=o(t),c=i(e,r),l=i(void 0===n?r:n,r),h=s(u(l-c,0)),f=0;c<l;c++,f++)a(h,f,t[c]);return h.length=f,h}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,u),e),o(r(t,u),e),e)},a=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},7475:function(t,e,n){var r=n(7854),i=n(3157),o=n(4411),a=n(111),s=n(5112)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===u||i(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(7854),i=n(1694),o=n(614),a=n(4326),s=n(5112)("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?a(e):"Object"==(r=a(e))&&o(e.callee)?"Arguments":r}},5631:function(t,e,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;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,d),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=l.prototype,g=v(e),m=function(t,e,n){var r,i,o=g(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=g(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(d,{clear:function(){for(var t=g(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&r(d,"size",{get:function(){return g(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);c(t,e,(function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},9320:function(t,e,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),b=0,y=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},_=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,f),d(t,{type:e,id:b++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),f=l.prototype,v=p(e),g=function(t,e,n){var r=v(t),i=o(a(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(f,{delete:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&h(n,e.id)}}),i(f,n?{get:function(t){var e=v(this);if(s(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),l}}},7710:function(t,e,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);t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=m?"set":"add",w=i[t],_=w&&w.prototype,x=w,P={},k=function(t){var e=o(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!f(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!f(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!f(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!h(w)||!(b||_.forEach&&!d((function(){(new w).entries().next()})))))x=n.getConstructor(e,t,m,y),u.enable();else if(a(t,!0)){var C=new x,S=C[y](b?{}:-0,1)!=C,E=d((function(){C.has(1)})),T=p((function(t){new w(t)})),R=!b&&d((function(){for(var t=new w,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((x=e((function(t,e){l(t,_);var n=g(new w,t,x);return null!=e&&c(e,n[y],{that:n,AS_ENTRIES:m}),n}))).prototype=_,_.constructor=x),(E||R)&&(k("delete"),k("has"),m&&k("get")),(R||S)&&k(y),b&&_.clear&&delete _.clear}return P[t]=x,r({global:!0,forced:x!=w},P),v(x,t),b||n.setStrong(x,t,m),x}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var h=s[l];r(t,h)||n&&r(n,h)||u(t,h,c(e,h))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8709:function(t,e,n){"use strict";var r=n(7854),i=n(9670),o=n(2140),a=r.TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw a("Incorrect hint");return o(this,t)}},654:function(t,e,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,b=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=p("iterator"),x="keys",P="values",k="entries",C=function(){return this};t.exports=function(t,e,n,a,p,g,S){u(n,e,a);var E,T,R,I=function(t){if(t===p&&j)return j;if(!w&&t in A)return A[t];switch(t){case x:case P:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",M=!1,A=t.prototype,$=A[_]||A["@@iterator"]||p&&A[p],j=!w&&$||I(p),L="Array"==e&&A.entries||$;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(o||c(E)===y||(l?l(E,y):s(E[_])||d(E,_,C)),h(E,O,!0,!0),o&&(v[O]=C)),m&&p==P&&$&&$.name!==P&&(!o&&b?f(A,"name",P):(M=!0,j=function(){return i($,this)})),p)if(T={values:I(P),keys:g?j:I(x),entries:I(k)},S)for(R in T)(w||M||!(R in A))&&d(A,R,T[R]);else r({target:e,proto:!0,forced:w||M},T);return o&&!S||A[_]===j||d(A,_,j,{name:p}),v[e]=j,T}},7235:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,n){var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},8886:function(t,e,n){var r=n(8113).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7871:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},8008:function(t,e,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,h,f,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in e){if(f=e[l],h=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),i=n(1320),o=n(2261),a=n(7293),s=n(5112),u=n(8880),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),d=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!p||n){var v=r(/./[f]),g=e(f,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,f,g[1])}h&&u(l[f],"sham",!0)}},6790:function(t,e,n){"use strict";var r=n(7854),i=n(3157),o=n(6244),a=n(9974),s=r.TypeError,u=function(t,e,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,e):n[g],l>0&&i(d))p=o(d),v=u(t,e,d,p,v,l-1)-1;else{if(v>=9007199254740991)throw s("Exceed the acceptable array length");t[v]=d}v++}g++}return v};t.exports=u},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(t,e,n){var r=n(1702),i=n(9662),o=n(4374),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:function(t,e,n){"use strict";var r=n(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(t,e,n){if(!s(d,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";d[e]=l("C,a","return new C("+f(r,",")+")")}return d[e](t,n)};t.exports=c?l.bind:function(t){var e=o(this),n=e.prototype,r=u(arguments,1),i=function(){var n=h(r,u(arguments));return this instanceof i?p(e,n.length,n):e.apply(t,n)};return a(n)&&(i.prototype=n),i}},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:function(t,e,n){var r=n(7854),i=n(6916),o=n(9662),a=n(9670),s=n(6330),u=n(1246),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return a(i(n,t));throw c(s(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:function(t,e,n){var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var d=n+t.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 t;case"`":return u(e,0,n);case"'":return u(e,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(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),i=n(1702),o=n(7293),a=n(4326),s=r.Object,u=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):s(t)}:s},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},2423:function(t,e,n){var r=n(2109),i=n(1702),o=n(3501),a=n(111),s=n(2597),u=n(3070).f,c=n(8006),l=n(1156),h=n(2050),f=n(9711),d=n(6677),p=!1,v=f("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!h(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!h(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&h(t)&&!s(t,v)&&m(t),t}};o[v]=!0},9909:function(t,e,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 b=f.state||(f.state=new m),y=u(b.get),w=u(b.has),_=u(b.set);r=function(t,e){if(w(b,t))throw new g(v);return e.facade=t,_(b,t,e),e},i=function(t){return y(b,t)||{}},o=function(t){return w(b,t)}}else{var x=d("state");p[x]=!0,r=function(t,e){if(h(t,x))throw new g(v);return e.facade=t,l(t,x,e),e},i=function(t){return h(t,x)?t[x]:{}},o=function(t){return h(t,x)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(c),v=function(t){if(!o(t))return!1;try{return h(c,l,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!h||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},5032:function(t,e,n){var r=n(2597);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:function(t,e,n){var r=n(7854),i=n(5005),o=n(614),a=n(7976),s=n(3307),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,u(t))}},408:function(t,e,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(t,e){this.stopped=t,this.result=e},g=v.prototype;t.exports=function(t,e,n){var r,m,b,y,w,_,x,P=n&&n.that,k=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),E=i(e,P),T=function(t){return r&&d(r,"normal",t),new v(!0,t)},R=function(t){return k?(a(t),S?E(t[0],t[1],T):E(t[0],t[1])):S?E(t,T):E(t)};if(C)r=t;else{if(!(m=f(t)))throw p(s(t)+" is not iterable");if(u(m)){for(b=0,y=c(t);y>b;b++)if((w=R(t[b]))&&l(g,w))return w;return new v(!1)}r=h(t,m)}for(_=r.next;!(x=o(_,r)).done;){try{w=R(x.value)}catch(t){d(r,"throw",t)}if("object"==typeof w&&w&&l(g,w))return w}return new v(!1)}},9212:function(t,e,n){var r=n(6916),i=n(9670),o=n(8173);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},3383:function(t,e,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 t={};return r[d].call(t)!==t}))?r={}:f&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},4310:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},5948:function(t,e,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),b=n(5268),y=h.MutationObserver||h.WebKitMutationObserver,w=h.document,_=h.process,x=h.Promise,P=d(h,"queueMicrotask"),k=P&&P.value;k||(r=function(){var t,e;for(b&&(t=_.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||b||m||!y||!w?!g&&x&&x.resolve?((c=x.resolve(void 0)).constructor=x,l=f(c.then,c),a=function(){l(r)}):b?a=function(){_.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,u=w.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=k||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},735:function(t,e,n){var r=n(133);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:function(t,e,n){var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(t,e,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:function(t,e,n){"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:function(t,e,n){var r=n(7854),i=n(7850),o=r.TypeError;t.exports=function(t){if(i(t))throw o("The method doesn't accept regular expressions");return t}},3009:function(t,e,n){var r=n(7854),i=n(7293),o=n(1702),a=n(1340),s=n(3111).trim,u=n(1361),c=r.parseInt,l=r.Symbol,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))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(f,n)?16:10))}:c},1574:function(t,e,n){"use strict";var r=n(9781),i=n(1702),o=n(6916),a=n(7293),s=n(1956),u=n(5181),c=n(5296),l=n(7908),h=n(8361),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.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 t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=i}))?function(t,e){for(var n=l(t),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),b=m.length,y=0;b>y;)v=m[y++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:f},30:function(t,e,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?d(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=p(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(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;e.f=i?a?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=h(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(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;t.exports=u?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?h:null}},2050:function(t,e,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!=o(t))&&(!s||s(t))}:s},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,h=0,f=[];l>h;)n=c[h++],r&&!s(i,n)||u(f,t?[n,i[n]]:i[n]);return f}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(7854),i=n(6916),o=n(614),a=n(111),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:function(t,e,n){var r=n(7854),i=n(2492),o=n(614),a=n(4705),s=n(2788),u=n(5112),c=n(7871),l=n(1913),h=n(7392),f=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(h>=51&&/native code/.test(t))return!1;var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r)||!e&&c&&!v}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},612:function(t,e,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:function(t,e,n){var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:function(t,e,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");(t.exports=function(t,e,n,u){var c,h=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:e;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:""))),t!==r?(h?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:a(t,e,n)):p?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||u(this)}))},7651:function(t,e,n){var r=n(7854),i=n(6916),o=n(9670),a=n(614),s=n(4326),u=n(2261),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),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,b=a("".charAt),y=a("".indexOf),w=a("".replace),_=a("".slice),x=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),P=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(x||k||P||d||p)&&(m=function(t){var e,n,r,i,a,c,l,d=this,p=f(d),C=s(t),S=p.raw;if(S)return S.lastIndex=d.lastIndex,e=o(m,S,C),d.lastIndex=S.lastIndex,e;var E=p.groups,T=P&&d.sticky,R=o(u,d),I=d.source,O=0,M=C;if(T&&(R=w(R,"y",""),-1===y(R,"g")&&(R+="g"),M=_(C,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(C,d.lastIndex-1))&&(I="(?: "+I+")",M=" "+M,O++),n=new RegExp("^(?:"+I+")",R)),k&&(n=new RegExp("^"+I+"$(?!\\s)",R)),x&&(r=d.lastIndex),i=o(g,T?n:d,M),T?i?(i.input=_(i.input,O),i[0]=_(i[0],O),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),k&&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&&E)for(i.groups=c=h(null),a=0;a<E.length;a++)c[(l=E[a])[0]]=i[l[1]];return i}),t.exports=m},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:function(t,e,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},1150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3505:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.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(t,e,n){var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:function(t,e,n){var r=n(1702),i=n(9303),o=n(1340),a=n(4488),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,h=o(a(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=u(h,f))<55296||r>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?t?s(h,f):r:t?c(h,f,f+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=n(1340),a=n(1361),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},6532:function(t,e,n){var r=n(6916),i=n(5005),o=n(5112),a=n(1320);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}))}},261:function(t,e,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),b=n(5268),y=s.setImmediate,w=s.clearImmediate,_=s.process,x=s.Dispatch,P=s.Function,k=s.MessageChannel,C=s.String,S=0,E={};try{r=s.location}catch(t){}var T=function(t){if(h(E,t)){var e=E[t];delete E[t],e()}},R=function(t){return function(){T(t)}},I=function(t){T(t.data)},O=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};y&&w||(y=function(t){g(arguments.length,1);var e=l(t)?t:P(t),n=p(arguments,1);return E[++S]=function(){u(e,void 0,n)},i(S),S},w=function(t){delete E[t]},b?i=function(t){_.nextTick(R(t))}:x&&x.now?i=function(t){x.now(R(t))}:k&&!m?(a=(o=new k).port2,o.port1.onmessage=I,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(i=O,s.addEventListener("message",I,!1)):i="onreadystatechange"in v("script")?function(t){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:y,clear:w}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),i=n(4488),o=r.Object;t.exports=function(t){return o(i(t))}},7593:function(t,e,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");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(7854),i=n(648),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,n){var r=n(7854).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=l&&l.for,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(l,t)?c[t]=l[t]:c[t]=u&&h?h(e):f(e)}return c[t]}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),i=n(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",b=i.TypeError,y=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),w=f("concat"),_=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,forced:!y||!w},{concat:function(t){var e,n,r,i,o,a=u(this),s=h(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(_(o=-1===e?a:arguments[e])){if(f+(i=c(o))>g)throw b(m);for(n=0;n<i;n++,f++)n in o&&l(s,f,o[n])}else{if(f>=g)throw b(m);l(s,f++,o)}return s.length=f,s}})},3290:function(t,e,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(t,e,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=n(9662),a=n(7908),s=n(6244),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return o(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},4944:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(6244),s=n(9303),u=n(5417);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},1038:function(t,e,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:function(t,e,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(7293),a=n(1223);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(654),c=n(1913),l=n(9781),h="Array Iterator",f=a.set,d=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){f(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[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(t){}},9600:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(8361),a=n(5656),s=n(9341),u=i([].join),c=o!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(a(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},5069:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3157),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(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,b=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var n,r,i,f=l(this),d=c(f),v=u(t,d),y=u(void 0===e?d:e,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,y);for(r=new(void 0===n?m:n)(b(y-v,0)),i=0;v<y;v++,i++)v in f&&h(r,i,f[v]);return r.length=i,r}})},2707:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(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),b=i(g.push),y=c((function(){g.sort(void 0)})),w=c((function(){g.sort(null)})),_=h("sort"),x=!c((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:y||!w||!_||!x},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(x)return void 0===t?m(e):m(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&b(i,e[r]);for(l(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},561:function(t,e,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(t,e){var n,r,i,h,m,b,y=u(this),w=s(y),_=o(t,w),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=w-_):(n=x-2,r=p(d(a(e),0),w-_)),w+n-r>v)throw f(g);for(i=c(y,r),h=0;h<r;h++)(m=_+h)in y&&l(i,h,y[m]);if(i.length=r,n<r){for(h=_;h<w-r;h++)b=h+n,(m=h+r)in y?y[b]=y[m]:delete y[b];for(h=w;h>w-r+n;h--)delete y[h-1]}else if(n>r)for(h=w-r;h>_;h--)b=h+n-1,(m=h+r-1)in y?y[b]=y[m]:delete y[b];for(h=0;h<n;h++)y[h+_]=arguments[h+2];return y.length=w-r+n,i}})},9244:function(t,e,n){n(1223)("flatMap")},3792:function(t,e,n){n(1223)("flat")},6078:function(t,e,n){var r=n(2597),i=n(1320),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),a=n(3070).f,s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},5837:function(t,e,n){n(2109)({global:!0},{globalThis:n(7854)})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(6916),s=n(1702),u=n(7293),c=n(3157),l=n(614),h=n(111),f=n(2190),d=n(206),p=n(133),v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),b=s("".charCodeAt),y=s("".replace),w=s(1..toString),_=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,P=/^[\uDC00-\uDFFF]$/,k=!p||u((function(){var t=i("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),S=function(t,e){var n=d(arguments),r=e;if((h(e)||void 0!==t)&&!f(t))return c(e)||(e=function(t,e){if(l(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,o(v,null,n)},E=function(t,e,n){var r=m(n,e-1),i=m(n,e+1);return g(x,t)&&!g(P,i)||g(P,t)&&!g(x,r)?"\\u"+w(b(t,0),16):t};v&&r({target:"JSON",stat:!0,forced:k||C},{stringify:function(t,e,n){var r=d(arguments),i=o(k?S:v,null,r);return C&&"string"==typeof i?y(i,_,E):i}})},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";n(7710)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(t,e,n){n(9098)},4914:function(t,e,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},2420:function(t,e,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(t,e,n){n(8003)(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(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),b=n(3111).trim,y="Number",w=i.Number,_=w.prototype,x=i.TypeError,P=o("".slice),k=o("".charCodeAt),C=function(t){var e=f(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,r,i,o,a,s,u,c=f(t,"number");if(h(c))throw x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),43===(e=k(c,0))||45===e){if(88===(n=k(c,2))||120===n)return NaN}else if(48===e){switch(k(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=P(c,2)).length,s=0;s<a;s++)if((u=k(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(a(y,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var E,T=function(t){var e=arguments.length<1?0:w(C(t)),n=this;return l(_,n)&&d((function(){m(n)}))?c(Object(e),n,T):e},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(","),I=0;R.length>I;I++)u(w,E=R[I])&&!u(T,E)&&g(T,E,v(w,E));T.prototype=_,_.constructor=T,s(i,y,T)}},9601:function(t,e,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(t,e,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},5003:function(t,e,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:function(t,e,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,e=c[h++]))&&u(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},9660:function(t,e,n){var r=n(2109),i=n(133),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},489:function(t,e,n){var r=n(2109),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1058:function(t,e,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=t,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),i=n(1913),o=n(3702).CONSTRUCTOR,a=n(2492),s=n(5005),u=n(614),c=n(1320),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(a)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),h=n(1320),f=n(2248),d=n(7674),p=n(8003),v=n(6340),g=n(9662),m=n(614),b=n(111),y=n(5787),w=n(6707),_=n(261).set,x=n(5948),P=n(842),k=n(2534),C=n(8572),S=n(9909),E=n(2492),T=n(3702),R=n(8523),I="Promise",O=T.CONSTRUCTOR,M=T.REJECTION_EVENT,A=T.SUBCLASSING,$=S.getterFor(I),j=S.set,L=E&&E.prototype,D=E,N=L,B=c.TypeError,U=c.document,F=c.process,W=R.f,z=W,H=!!(U&&U.createEvent&&c.dispatchEvent),V="unhandledrejection",q=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},X=function(t,e){var n,r,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(a||(2===e.rejection&&J(e),e.rejection=1),!0===s?n=o:(h&&h.enter(),n=s(o),h&&(h.exit(),i=!0)),n===t.promise?c(B("Promise-chain cycle")):(r=q(n))?l(r,n,u,c):u(n)):c(o)}catch(t){h&&!i&&h.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,x((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},G=function(t,e,n){var r,i;H?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!M&&(i=c["on"+t])?i(r):t===V&&P("Unhandled promise rejection",n)},K=function(t){l(_,c,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=k((function(){u?F.emit("unhandledRejection",r,n):G(V,n,r)})),t.rejection=u||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(_,c,(function(){var e=t.facade;u?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Q=function(t,e,n){return function(r){t(e,r,n)}},tt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},et=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw B("Promise can't be resolved itself");var r=q(e);r?x((function(){var n={done:!1};try{l(r,e,Q(et,n,t),Q(tt,n,t))}catch(e){tt(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){tt({done:!1},e,t)}}};if(O&&(N=(D=function(t){y(this,N),g(t),l(r,this);var e=$(this);try{t(Q(et,e),Q(tt,e))}catch(t){tt(e,t)}}).prototype,(r=function(t){j(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=f(N,{then:function(t,e){var n=$(this),r=W(w(this,D));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=u?F.domain:void 0,0==n.state?n.reactions.add(r):x((function(){X(r,n)})),r.promise}}),i=function(){var t=new r,e=$(t);this.promise=t,this.resolve=Q(et,e),this.reject=Q(tt,e)},R.f=W=function(t){return t===D||void 0===t?new i(t):z(t)},!s&&m(E)&&L!==Object.prototype)){o=L.then,A||h(L,"then",(function(t,e){var n=this;return new D((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(t){}d&&d(L,N)}a({global:!0,wrap:!0,forced:O},{Promise:D}),p(D,I,!1,!0),v(I)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=o(e.resolve);u(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),i=n(5005),o=n(1913),a=n(2492),s=n(3702).CONSTRUCTOR,u=n(9478),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},2419:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(7065),s=n(9483),u=n(9670),c=n(111),l=n(30),h=n(7293),f=i("Reflect","construct"),d=Object.prototype,p=[].push,v=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!h((function(){f((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!v)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,h=l(c(i)?i:d),m=o(t,h,e);return c(m)?m:h}})},4819:function(t,e,n){var r=n(2109),i=n(6916),o=n(111),a=n(9670),s=n(5032),u=n(1236),c=n(9518);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,h=arguments.length<3?e:arguments[2];return a(e)===h?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,h):o(l=c(e))?t(l,n,h):void 0}})},4603:function(t,e,n){var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),u=n(8880),c=n(8006).f,l=n(7976),h=n(7850),f=n(1340),d=n(4706),p=n(2999),v=n(2626),g=n(1320),m=n(7293),b=n(2597),y=n(9909).enforce,w=n(6340),_=n(5112),x=n(9441),P=n(7168),k=_("match"),C=i.RegExp,S=C.prototype,E=i.SyntaxError,T=o(S.exec),R=o("".charAt),I=o("".replace),O=o("".indexOf),M=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,j=/a/g,L=new C($)!==$,D=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||D||x||P||m((function(){return j[k]=!1,C($)!=$||C(j)==j||"/a/i"!=C($,"i")}))))){for(var B=function(t,e){var n,r,i,o,a,c,p=l(S,this),v=h(t),g=void 0===e,m=[],w=t;if(!p&&v&&g&&t.constructor===B)return t;if((v||l(S,t))&&(t=t.source,g&&(e=d(w))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),w=t,x&&"dotAll"in $&&(r=!!e&&O(e,"s")>-1)&&(e=I(e,/s/g,"")),n=e,D&&"sticky"in $&&(i=!!e&&O(e,"y")>-1)&&N&&(e=I(e,/y/g,"")),P&&(t=(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:T(A,M(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||b(a,l))throw new E("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t))[0],m=o[1]),a=s(C(t,e),p?this:S,B),(r||i||m.length)&&(c=y(a),r&&(c.dotAll=!0,c.raw=B(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=R(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+R(t,++r);return i}(t),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),t!==w)try{u(a,"source",""===w?"(?:)":w)}catch(t){}return a},U=c(C),F=0;U.length>F;)v(B,C,U[F++]);S.constructor=B,B.prototype=S,g(i,"RegExp",B)}w("RegExp")},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,i=n(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 t=o(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},7227:function(t,e,n){"use strict";n(7710)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},189:function(t,e,n){n(7227)},7852:function(t,e,n){"use strict";var r,i=n(2109),o=n(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(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:v(s(n),r),o=u(t);return d?d(e,o,i):p(e,i-o.length,i)===o}})},2023:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3929),a=n(4488),s=n(1340),u=n(4964),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},5306:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),u=n(9670),c=n(614),l=n(9303),h=n(7466),f=n(1340),d=n(4488),p=n(1530),v=n(8173),g=n(647),m=n(7651),b=n(5112)("replace"),y=Math.max,w=Math.min,_=o([].concat),x=o([].push),P=o("".indexOf),k=o("".slice),C="$0"==="a".replace(/./,"$0"),S=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var o=S?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:v(t,b);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=u(this),s=f(t);if("string"==typeof i&&-1===P(i,o)&&-1===P(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var v=c(i);v||(i=f(i));var b=a.global;if(b){var C=a.unicode;a.lastIndex=0}for(var S=[];;){var E=m(a,s);if(null===E)break;if(x(S,E),!b)break;""===f(E[0])&&(a.lastIndex=p(s,h(a.lastIndex),C))}for(var T,R="",I=0,O=0;O<S.length;O++){for(var M=f((E=S[O])[0]),A=y(w(l(E.index),s.length),0),$=[],j=1;j<E.length;j++)x($,void 0===(T=E[j])?T:String(T));var L=E.groups;if(v){var D=_([M],$,A,s);void 0!==L&&x(D,L);var N=f(r(i,void 0,D))}else N=g(M,s,A,$,L,i);A>=I&&(R+=k(s,I,A)+N,I=A+M.length)}return R+k(s,I)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!C||S)},4765:function(t,e,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(t,e,n){return[function(e){var n=a(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;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(t,e,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),b=n(2999),y=n(7293),w=b.UNSUPPORTED_Y,_=4294967295,x=Math.min,P=[].push,k=o(/./.exec),C=o(P),S=o("".slice);a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=d(c(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);for(var u,l,h,f=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,b=new RegExp(t.source,p+"g");(u=i(m,b,o))&&!((l=b.lastIndex)>g&&(C(f,S(o,g,u.index)),u.length>1&&u.index<o.length&&r(P,f,v(u,1)),h=u[0].length,g=l,f.length>=a));)b.lastIndex===u.index&&b.lastIndex++;return g===o.length?!h&&k(b,"")||C(f,""):C(f,S(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),a=null==e?void 0:p(e,t);return a?i(a,e,r,n):i(o,d(r),e,n)},function(t,r){var i=u(this),a=d(t),s=n(o,i,a,r,o!==e);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),b=void 0===r?_:r>>>0;if(0===b)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var y=0,P=0,k=[];P<a.length;){m.lastIndex=w?0:P;var E,T=g(m,w?S(a,P):a);if(null===T||(E=x(f(m.lastIndex+(w?P:0)),a.length))===y)P=h(a,P,p);else{if(C(k,S(a,y,P)),k.length===b)return k;for(var R=1;R<=T.length-1;R++)if(C(k,T[R]),k.length===b)return k;P=y=E}}return C(k,S(a,y)),k}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},6755:function(t,e,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(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):p(e,n,n+r.length)===r}})},4032:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(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),b=n(30),y=n(1956),w=n(8006),_=n(1156),x=n(5181),P=n(1236),k=n(3070),C=n(6048),S=n(5296),E=n(1320),T=n(2309),R=n(6200),I=n(3501),O=n(9711),M=n(5112),A=n(6061),$=n(7235),j=n(6532),L=n(8003),D=n(9909),N=n(2092).forEach,B=R("hidden"),U="Symbol",F=D.set,W=D.getterFor(U),z=Object.prototype,H=i.Symbol,V=H&&H.prototype,q=i.TypeError,X=i.QObject,Y=P.f,G=k.f,K=_.f,Z=S.f,J=a([].push),Q=T("symbols"),tt=T("op-symbols"),et=T("wks"),nt=!X||!X.prototype||!X.prototype.findChild,rt=u&&l((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(z,e);r&&delete z[e],G(t,e,n),r&&t!==z&&G(z,e,r)}:G,it=function(t,e){var n=Q[t]=b(V);return F(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ot=function(t,e,n){t===z&&ot(tt,e,n),d(t);var r=v(e);return d(n),h(Q,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=b(n,{enumerable:m(0,!1)})):(h(t,B)||G(t,B,m(1,{})),t[B][r]=!0),rt(t,r,n)):G(t,r,n)},at=function(t,e){d(t);var n=p(e),r=y(n).concat(lt(n));return N(r,(function(e){u&&!o(st,n,e)||ot(t,e,n[e])})),t},st=function(t){var e=v(t),n=o(Z,this,e);return!(this===z&&h(Q,e)&&!h(tt,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,B)&&this[B][e])||n)},ut=function(t,e){var n=p(t),r=v(e);if(n!==z||!h(Q,r)||h(tt,r)){var i=Y(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ct=function(t){var e=K(p(t)),n=[];return N(e,(function(t){h(Q,t)||h(I,t)||J(n,t)})),n},lt=function(t){var e=t===z,n=K(e?tt:p(t)),r=[];return N(n,(function(t){!h(Q,t)||e&&!h(z,t)||J(r,Q[t])})),r};c||(E(V=(H=function(){if(f(V,this))throw q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=O(t),n=function(t){this===z&&o(n,tt,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),rt(this,e,m(1,t))};return u&&nt&&rt(z,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return W(this).tag})),E(H,"withoutSetter",(function(t){return it(O(t),t)})),S.f=st,k.f=ot,C.f=at,P.f=ut,w.f=_.f=ct,x.f=lt,A.f=function(t){return it(M(t),t)},u&&(G(V,"description",{configurable:!0,get:function(){return W(this).description}}),s||E(z,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),N(y(et),(function(t){$(t)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):at(b(t),e)},defineProperty:ot,defineProperties:at,getOwnPropertyDescriptor:ut}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ct}),j(),L(H,U),I[B]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(1702),s=n(2597),u=n(614),c=n(7976),l=n(1340),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 t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};f(g,d),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(d("test")),b=a(p.toString),y=a(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),x=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=y(this),e=b(t);if(s(v,t))return"";var n=m?x(e,7,-1):_(e,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:g})}},763:function(t,e,n){var r=n(2109),i=n(5005),o=n(2597),a=n(1340),s=n(2309),u=n(735),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),i=n(2597),o=n(2190),a=n(6330),s=n(2309),u=n(735),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},6649:function(t,e,n){var r=n(7235),i=n(6532);r("toPrimitive"),i()},3680:function(t,e,n){var r=n(5005),i=n(7235),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(t,e,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(t){return function(){return t(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,b=o(m.delete),y=o(m.has),w=o(m.get),_=o(m.set);a(m,{delete:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.delete(t)}return b(this,t)},has:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y(this,t)?w(this,t):e.frozen.get(t)}return w(this,t)},set:function(t,e){if(l(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),y(this,t)?_(this,t,e):n.frozen.set(t,e)}else _(this,t,e);return this}})}},4129:function(t,e,n){n(1202)},5743:function(t,e,n){n(5837)},4747:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),h=a.values,f=function(t,e){if(t){if(t[c]!==h)try{s(t,c,h)}catch(e){t[c]=h}if(t[l]||s(t,l,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},5556:function(t,e,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(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),b=n(648),y=n(9670),w=n(111),_=n(1340),x=n(30),P=n(9114),k=n(8554),C=n(1246),S=n(8053),E=n(5112),T=n(4362),R=E("iterator"),I="URLSearchParams",O="URLSearchParamsIterator",M=d.set,A=d.getterFor(I),$=d.getterFor(O),j=Object.getOwnPropertyDescriptor,L=function(t){if(!s)return i[t];var e=j(i,t);return e&&e.value},D=L("fetch"),N=L("Request"),B=L("Headers"),U=N&&N.prototype,F=B&&B.prototype,W=i.RegExp,z=i.TypeError,H=i.decodeURIComponent,V=i.encodeURIComponent,q=a("".charAt),X=a([].join),Y=a([].push),G=a("".replace),K=a([].shift),Z=a([].splice),J=a("".split),Q=a("".slice),tt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=W("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return H(t)}catch(e){return t}},it=function(t){var e=G(t,tt," "),n=4;try{return H(e)}catch(t){for(;n;)e=G(e,nt(n--),rt);return e}},ot=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return at[t]},ut=function(t){return G(V(t),ot,st)},ct=f((function(t,e){M(this,{type:O,iterator:k(A(t).entries),kind:e})}),"Iterator",(function(){var t=$(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===q(t,0)?Q(t,1):t:_(t)))};lt.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=C(t);if(c)for(n=(e=k(t,c)).next;!(r=o(n,e)).done;){if(a=(i=k(y(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw z("Expected sequence with length 2");Y(this.entries,{key:_(s.value),value:_(u.value)})}else for(var l in t)g(t,l)&&Y(this.entries,{key:l,value:_(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=J(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=J(e,"="),Y(this.entries,{key:it(K(n)),value:it(X(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],Y(n,ut(t.key)+"="+ut(t.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){p(this,ft);var t=arguments.length>0?arguments[0]:void 0;M(this,new lt(t))},ft=ht.prototype;if(l(ft,{append:function(t,e){S(arguments.length,2);var n=A(this);Y(n.entries,{key:_(t),value:_(e)}),n.updateURL()},delete:function(t){S(arguments.length,1);for(var e=A(this),n=e.entries,r=_(t),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;e.updateURL()},get:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=[],i=0;i<e.length;i++)e[i].key===n&&Y(r,e[i].value);return r},has:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){S(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=_(t),s=_(e),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?Z(i,u--,1):(o=!0,n.value=s));o||Y(i,{key:a,value:s}),r.updateURL()},sort:function(){var t=A(this);T(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=A(this).entries,r=m(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ft,R,ft.entries,{name:"entries"}),c(ft,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),h(ht,I),r({global:!0,forced:!u},{URLSearchParams:ht}),!u&&v(B)){var dt=a(F.has),pt=a(F.set),vt=function(t){if(w(t)){var e,n=t.body;if(b(n)===I)return e=t.headers?new B(t.headers):new B,dt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),x(t,{body:P(0,_(n)),headers:P(0,e)})}return t};if(v(D)&&r({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(t){return D(t,arguments.length>1?vt(arguments[1]):{})}}),v(N)){var gt=function(t){return p(this,U),new N(t,arguments.length>1?vt(arguments[1]):{})};U.constructor=gt,gt.prototype=U,r({global:!0,forced:!0,noTargetGet:!0},{Request:gt})}}t.exports={URLSearchParams:ht,getState:A}},1637:function(t,e,n){n(5556)},840:function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(t,e,n){return setTimeout(_(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(g(t,n[e],n),!0)}function g(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function m(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var b=m((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),y=m((function(t,e){return b(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function _(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||s,e):t}function P(t,e){return t===s?e:t}function k(t,e,n){g(T(e),(function(e){t.addEventListener(e,n,!1)}))}function C(t,e,n){g(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function R(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];R(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function M(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return s}var A=1;function $(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var j="ontouchstart"in i,L=M(i,"PointerEvent")!==s,D=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",B="mouse",U=["x","y"],F=["clientX","clientY"];function W(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function z(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=H(e)),i>1&&!n.firstMultiple?n.firstMultiple=H(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=e.center=V(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=G(u,c),e.distance=Y(u,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=X(e.deltaX,e.deltaY);var l,h,p=q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,e.scale=a?(l=a.pointers,Y((h=r)[0],h[1],F)/Y(l[0],l[1],F)):1,e.rotation=a?function(t,e){return G(e[1],e[0],F)+G(t[1],t[0],F)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(u>25||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.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=X(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var v=t.element;S(e.srcEvent.target,v)&&(v=e.srcEvent.target),e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:V(e),deltaX:t.deltaX,deltaY:t.deltaY}}function V(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function q(t,e,n){return{x:e/t||0,y:n/t||0}}function X(t,e){return t===e?1:f(t)>=f(e)?t<0?2:4:e<0?8:16}function Y(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function G(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C($(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,W.apply(this,arguments)}w(Q,W,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:B,srcEvent:t}))}});var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:N,3:"pen",4:B,5:"kinect"},nt="pointerdown",rt="pointermove pointerup pointercancel";function it(){this.evEl=nt,this.evWin=rt,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(nt="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),w(it,W,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=tt[r],o=et[t.pointerType]||t.pointerType,a=o==N,s=R(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",st="touchstart touchmove touchend touchcancel";function ut(){this.evTarget=at,this.evWin=st,this.started=!1,W.apply(this,arguments)}function ct(t,e){var n=I(t.touches),r=I(t.changedTouches);return 12&e&&(n=O(n.concat(r),"identifier",!0)),[n,r]}w(ut,W,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var n=ct.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var lt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ht="touchstart touchmove touchend touchcancel";function ft(){this.evTarget=ht,this.targetIds={},W.apply(this,arguments)}function dt(t,e){var n=I(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=I(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return S(t.target,u)})),1===e)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&e&&delete r[a[i].identifier],i++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}function pt(){W.apply(this,arguments);var t=_(this.handler,this);this.touch=new ft(this.manager,t),this.mouse=new Q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&&gt.call(this,e)}function gt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function mt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(ft,W,{handler:function(t){var e=lt[t.type],n=dt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),w(pt,W,{handler:function(t,e,n){var r=n.pointerType==N,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)vt.call(this,e,n);else if(i&&mt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=M(l.style,"touchAction"),yt=bt!==s,wt="compute",_t="auto",xt="manipulation",Pt="none",kt="pan-x",Ct="pan-y",St=function(){if(!yt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function Et(t,e){this.manager=t,this.set(e)}Et.prototype={set:function(t){t==wt&&(t=this.compute()),yt&&this.manager.element.style&&St[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return g(this.manager.recognizers,(function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,Pt))return Pt;var e=E(t,kt),n=E(t,Ct);return e&&n?Pt:e||n?e?kt:Ct:E(t,xt)?xt:_t}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=E(r,Pt)&&!St.none,o=E(r,Ct)&&!St["pan-y"],a=E(r,kt)&&!St["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Tt=32;function Rt(t){this.options=u({},this.defaults,t||{}),this.id=A++,this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function It(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ot(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Mt(t,e){var n=e.manager;return n?n.get(t):t}function At(){Rt.apply(this,arguments)}function $t(){At.apply(this,arguments),this.pX=null,this.pY=null}function jt(){At.apply(this,arguments)}function Lt(){Rt.apply(this,arguments),this._timer=null,this._input=null}function Dt(){At.apply(this,arguments)}function Nt(){At.apply(this,arguments)}function Bt(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ut(t,e){return(e=e||{}).recognizers=P(e.recognizers,Ut.defaults.preset),new Ft(t,e)}function Ft(t,e){this.options=u({},Ut.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(L?it:D?ft:j?pt:Q))(this,z),this.touchAction=new Et(this,this.options.touchAction),Wt(this,!0),g(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Wt(t,e){var n,r=t.element;r.style&&(g(t.options.cssProps,(function(i,o){n=M(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Rt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Mt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===R(e,t=Mt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Mt(t,this);var e=R(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+It(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+It(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Tt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=Tt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(At,Rt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Tt}}),w($t,At,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Ct),24&t&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return At.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ot(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(jt,At,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),w(Lt,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_t]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(Dt,At,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(Nt,At,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return $t.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Ot(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Bt,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||Y(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Tt},failTimeout:function(){return this._timer=p((function(){this.state=Tt}),this.options.interval,this),Tt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ut.VERSION="2.0.7",Ut.defaults={domEvents:!1,touchAction:wt,enable:!0,inputTarget:null,inputClass:null,preset:[[Dt,{enable:!1}],[jt,{enable:!1},["rotate"]],[Nt,{direction:6}],[$t,{direction:6},["swipe"]],[Bt],[Bt,{event:"doubletap",taps:2},["tap"]],[Lt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ft.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Rt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=R(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return g(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return g(T(t),(function(t){e?n[t]&&n[t].splice(R(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Wt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Ut,{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:Tt,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:Ft,Input:W,TouchAction:Et,TouchInput:ft,MouseInput:Q,PointerEventInput:it,TouchMouseInput:pt,SingleTouchInput:ut,Recognizer:Rt,AttrRecognizer:At,Tap:Bt,Pan:$t,Swipe:Nt,Pinch:jt,Rotate:Dt,Press:Lt,on:k,off:C,each:g,merge:y,extend:b,assign:u,inherit:w,bindFn:_,prefixed:M}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ut,(r=function(){return Ut}.call(e,n,e,t))===s||(t.exports=r)}(window,document)},4581:function(t,e,n){!function(t,e,n){var r,i,o,a,s,u,c,l,h,f,d,p,v,g,m,b,y,w,_,x,P,k,C,S,E,T,R,I,O,M,A,$,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 t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,(function(t,n){e[t]=n})),e},createIframe:function(){var n=e.createElement("iframe"),r=t(this).data("cbox-iframe-attrs");return"object"==typeof r&&t.each(r,(function(t,e){n[t]=e})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},D="colorbox",N="cboxElement",B="cbox_load",U="cbox_complete",F="cbox_cleanup",W="cbox_closed",z="cbox_purge",H=t("<a/>"),V="div",q=0,X={};function Y(n,r,i){var o=e.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),t(o)}function G(){return n.innerHeight?n.innerHeight:t(n).height()}function K(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var r;return void 0===this.cache[e]&&(void 0!==(r=t(this.el).attr("data-cbox-"+e))?this.cache[e]=r:void 0!==n[e]?this.cache[e]=n[e]:void 0!==L[e]&&(this.cache[e]=L[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function Z(t){var e=h.length,n=(T+t)%e;return n<0?e+n:n}function J(t,e){return Math.round((/%/.test(t)?("x"===e?f.width():G())/100:1)*parseInt(t,10))}function Q(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function tt(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function et(t){"contains"in i[0]&&!i[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),i.focus())}function nt(t){nt.str!==t&&(i.add(r).removeClass(nt.str).addClass(t),nt.str=t)}function rt(n){t(e).trigger(n),H.triggerHandler(n)}var it=function(){var t,e,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(e)}function a(){(P.get("loop")||h[T+1])&&(o(),e=setTimeout($.next,P.get("slideshowSpeed")))}function s(){b.html(P.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),b.html(P.get("slideshowStart")).unbind(r).one(r,(function(){$.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,b.hide(),o(),H.unbind(U,a).unbind(B,o),i.removeClass(n+"off "+n+"on")}return function(){t?P.get("slideshow")||(H.unbind(F,c),c()):P.get("slideshow")&&h[1]&&(t=!0,H.one(F,c),P.get("slideshowAuto")?s():u(),b.show())}}();function ot(o){var f,m;if(!M){if(f=t(o).data(D),P=new K(o,f),m=P.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(h=t(".cboxElement").filter((function(){return new K(this,t.data(this,D)).get("rel")===m})),-1===(T=h.index(P.el))&&(h=h.add(P.el),T=h.length-1)):h=t(P.el),!I){I=O=!0,nt(P.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=Y(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),C=u.width()+c.width()+a.outerWidth(!0)-a.width(),S=d.outerHeight(!0),E=d.outerWidth(!0);var b=J(P.get("initialWidth"),"x"),y=J(P.get("initialHeight"),"y"),w=P.get("maxWidth"),j=P.get("maxHeight");P.w=Math.max((!1!==w?Math.min(b,J(w,"x")):b)-E-C,0),P.h=Math.max((!1!==j?Math.min(y,J(j,"y")):y)-S-k,0),d.css({width:"",height:P.h}),$.position(),rt("cbox_open"),P.get("onOpen"),x.add(g).hide(),i.focus(),P.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",et,!0),H.one(W,(function(){e.removeEventListener("focus",et,!0)}))),P.get("returnFocus")&&H.one(W,(function(){t(P.el).focus()}))}var L=parseFloat(P.get("opacity"));r.css({opacity:L==L?L:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?_.html(P.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var e,r,i,o=$.prep,a=++q;if(O=!0,R=!1,rt(z),rt(B),P.get("onLoad"),P.h=P.get("height")?J(P.get("height"),"y")-S-k:P.get("innerHeight")&&J(P.get("innerHeight"),"y"),P.w=P.get("width")?J(P.get("width"),"x")-E-C:P.get("innerWidth")&&J(P.get("innerWidth"),"x"),P.mw=P.w,P.mh=P.h,P.get("maxWidth")&&(P.mw=J(P.get("maxWidth"),"x")-E-C,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.get("maxHeight")&&(P.mh=J(P.get("maxHeight"),"y")-S-k,P.mh=P.h&&P.h<P.mh?P.h:P.mh),e=P.get("href"),A=setTimeout((function(){v.show()}),100),P.get("inline")){var s=t(e).eq(0);i=t("<div>").hide().insertBefore(s),H.one(z,(function(){i.replaceWith(s)})),o(s)}else P.get("iframe")?o(" "):P.get("html")?o(P.get("html")):Q(P,e)?(e=tt(P,e),R=P.get("createImg"),t(R).addClass("cboxPhoto").bind("error.cbox",(function(){o(Y(V,"Error").html(P.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var e;P.get("retinaImage")&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),P.get("scalePhotos")&&(r=function(){R.height-=R.height*e,R.width-=R.width*e},P.mw&&R.width>P.mw&&(e=(R.width-P.mw)/R.width,r()),P.mh&&R.height>P.mh&&(e=(R.height-P.mh)/R.height,r())),P.h&&(R.style.marginTop=Math.max(P.mh-R.height,0)/2+"px"),h[1]&&(P.get("loop")||h[T+1])&&(R.style.cursor="pointer",t(R).bind("click.cbox",(function(){$.next()}))),R.style.width=R.width+"px",R.style.height=R.height+"px",o(R)}),1)})),R.src=e):e&&p.load(e,P.get("data"),(function(e,n){a===q&&o("error"===n?Y(V,"Error").html(P.get("xhrError")):t(this).contents())}))}()}}function at(){i||(j=!1,f=t(n),i=Y(V).attr({id:D,class:!1===t.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(V,"Overlay").hide(),v=t([Y(V,"LoadingOverlay")[0],Y(V,"LoadingGraphic")[0]]),o=Y(V,"Wrapper"),a=Y(V,"Content").append(g=Y(V,"Title"),m=Y(V,"Current"),w=t('<button type="button"/>').attr({id:"cboxPrevious"}),y=t('<button type="button"/>').attr({id:"cboxNext"}),b=t('<button type="button"/>').attr({id:"cboxSlideshow"}),v),_=t('<button type="button"/>').attr({id:"cboxClose"}),o.append(Y(V).append(Y(V,"TopLeft"),s=Y(V,"TopCenter"),Y(V,"TopRight")),Y(V,!1,"clear:left").append(u=Y(V,"MiddleLeft"),a,c=Y(V,"MiddleRight")),Y(V,!1,"clear:left").append(Y(V,"BottomLeft"),l=Y(V,"BottomCenter"),Y(V,"BottomRight"))).find("div div").css({float:"left"}),p=Y(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=y.add(w).add(m).add(b)),e.body&&!i.parent().length&&t(e.body).append(r,i.append(o,p))}t.colorbox||(t(at),($=t.fn.colorbox=t.colorbox=function(n,o){var a=this;return n=n||{},t.isFunction(a)&&(a=t("<a/>"),n.open=!0),a[0]?(at(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),ot(this))}return!!i&&(j||(j=!0,y.click((function(){$.next()})),w.click((function(){$.prev()})),_.click((function(){$.close()})),r.click((function(){P.get("overlayClose")&&$.close()})),t(e).bind("keydown.cbox",(function(t){var e=t.keyCode;I&&P.get("escKey")&&27===e&&(t.preventDefault(),$.close()),I&&P.get("arrowKey")&&h[1]&&!t.altKey&&(37===e?(t.preventDefault(),w.click()):39===e&&(t.preventDefault(),y.click()))})),t.isFunction(t.fn.on)?t(e).on("click.cbox",".cboxElement",n):t(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var e=t.data(this,D)||{};t.data(this,D,t.extend(e,n))})).addClass(N),new K(a[0],n).get("open")&&ot(a[0])),a):a}).position=function(e,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)-C+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-k+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),P.get("fixed")?(g.top-=h,g.left-=d,i.css({position:"fixed"})):(p=h,v=d,i.css({position:"absolute"})),!1!==P.get("right")?v+=Math.max(f.width()-P.w-E-C-J(P.get("right"),"x"),0):!1!==P.get("left")?v+=J(P.get("left"),"x"):v+=Math.round(Math.max(f.width()-P.w-E-C,0)/2),!1!==P.get("bottom")?p+=Math.max(G()-P.h-S-k-J(P.get("bottom"),"y"),0):!1!==P.get("top")?p+=J(P.get("top"),"y"):p+=Math.round(Math.max(G()-P.h-S-k,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:P.w+E+C,height:P.h+S+k,top:p,left:v},e){var b=0;t.each(r,(function(t){r[t]===X[t]||(b=e)})),e=b}X=r,e||i.css(r),i.dequeue().animate(r,{duration:e||0,complete:function(){m(),O=!1,o[0].style.width=P.w+E+C+"px",o[0].style.height=P.h+S+k+"px",P.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",$.position)}),1),t.isFunction(n)&&n()},step:m})},$.resize=function(t){var e;I&&((t=t||{}).width&&(P.w=J(t.width,"x")-E-C),t.innerWidth&&(P.w=J(t.innerWidth,"x")),d.css({width:P.w}),t.height&&(P.h=J(t.height,"y")-S-k),t.innerHeight&&(P.h=J(t.innerHeight,"y")),t.innerHeight||t.height||(e=d.scrollTop(),d.css({height:"auto"}),P.h=d.height()),d.css({height:P.h}),e&&d.scrollTop(e),$.position("none"===P.get("transition")?0:P.get("speed")))},$.prep=function(n){if(I){var r,o="none"===P.get("transition")?0:P.get("speed");d.remove(),(d=Y(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(P.w=P.w||d.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w),overflow:P.get("scrolling")?"auto":"hidden"}).css({height:(P.h=P.h||d.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h)}).prependTo(a),p.hide(),t(R).css({float:"none"}),nt(P.get("className")),r=function(){var n,r,a=h.length;function s(){!1===t.support.opacity&&i[0].style.removeAttribute("filter")}I&&(r=function(){clearTimeout(A),v.hide(),rt(U),P.get("onComplete")},g.html(P.get("title")).show(),d.show(),a>1?("string"==typeof P.get("current")&&m.html(P.get("current").replace("{current}",T+1).replace("{total}",a)).show(),y[P.get("loop")||T<a-1?"show":"hide"]().html(P.get("next")),w[P.get("loop")||T?"show":"hide"]().html(P.get("previous")),it(),P.get("preloading")&&t.each([Z(-1),Z(1)],(function(){var n=h[this],r=new K(n,t.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=tt(r,i),e.createElement("img").src=i)}))):x.hide(),P.get("iframe")?(n=P.get("createIframe"),P.get("scrolling")||(n.scrolling="no"),t(n).attr({src:P.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(z,(function(){n.src="//about:blank"})),P.get("fastIframe")&&t(n).trigger("load")):r(),"fade"===P.get("transition")?i.fadeTo(o,1,s):s())},"fade"===P.get("transition")?i.fadeTo(o,0,(function(){$.position(0,r)})):$.position(o,r)}},$.next=function(){!O&&h[1]&&(P.get("loop")||h[T+1])&&(T=Z(1),ot(h[T]))},$.prev=function(){!O&&h[1]&&(P.get("loop")||T)&&(T=Z(-1),ot(h[T]))},$.close=function(){I&&!M&&(M=!0,I=!1,rt(F),P.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(P.get("fadeOut")||0,0),i.stop().fadeTo(P.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),rt(z),d.remove(),setTimeout((function(){M=!1,rt(W),P.get("onClosed")}),1)})))},$.remove=function(){i&&(i.stop(),t.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),M=!1,i=null,t(".cboxElement").removeData(D).removeClass(N),t(e).unbind("click.cbox").unbind("keydown.cbox"))},$.element=function(){return t(P.el)},$.settings=L)}(n(3609),document,window)},5557:function(t,e,n){!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(n(3609))},3762:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){var e,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated",o=t;return t.effects={effect:{}},function(t,e){var n,r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],o=t.Color=function(e,n,r,i){return new t.Color.fn.parse(e,n,r,i)},a={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=o.support={},c=t("<p>")[0],l=t.each;function h(t,e,n){var r=s[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:0>t?0:r.max<t?r.max:t)}function f(e){var r=o(),s=r._rgba=[];return e=e.toLowerCase(),l(i,(function(t,n){var i,o=n.re.exec(e),u=o&&n.parse(o),c=n.space||"rgba";if(u)return i=r[c](u),r[a[c].cache]=i[a[c].cache],s=r._rgba=i._rgba,!1})),s.length?("0,0,0,0"===s.join()&&t.extend(s,n.transparent),r):n[e]}function d(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,l(a,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),o.fn=t.extend(o.prototype,{parse:function(r,i,s,u){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(i),i=e);var c=this,d=t.type(r),p=this._rgba=[];return i!==e&&(r=[r,i,s,u],d="array"),"string"===d?this.parse(f(r)||n._default):"array"===d?(l(a.rgba.props,(function(t,e){p[e.idx]=h(r[e.idx],e)})),this):"object"===d?(l(a,r instanceof o?function(t,e){r[e.cache]&&(c[e.cache]=r[e.cache].slice())}:function(e,n){var i=n.cache;l(n.props,(function(t,e){if(!c[i]&&n.to){if("alpha"===t||null==r[t])return;c[i]=n.to(c._rgba)}c[i][e.idx]=h(r[t],e,!0)})),c[i]&&t.inArray(null,c[i].slice(0,3))<0&&(c[i][3]=1,n.from&&(c._rgba=n.from(c[i])))}),this):void 0},is:function(t){var e=o(t),n=!0,r=this;return l(a,(function(t,i){var o,a=e[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],l(i.props,(function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]}))),n})),n},_space:function(){var t=[],e=this;return l(a,(function(n,r){e[r.cache]&&t.push(n)})),t.pop()},transition:function(t,e){var n=o(t),r=n._space(),i=a[r],u=0===this.alpha()?o("transparent"):this,c=u[i.cache]||i.to(u._rgba),f=c.slice();return n=n[i.cache],l(i.props,(function(t,r){var i=r.idx,o=c[i],a=n[i],u=s[r.type]||{};null!==a&&(null===o?f[i]=a:(u.mod&&(a-o>u.mod/2?o+=u.mod:o-a>u.mod/2&&(o-=u.mod)),f[i]=h((a-o)*e+o,r)))})),this[r](f)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=o(e)._rgba;return o(t.map(n,(function(t,e){return(1-r)*i[e]+r*t})))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t}));return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(255*r)),"#"+t.map(n,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(r,i,o),u=Math.min(r,i,o),c=s-u,l=s+u,h=.5*l;return e=u===s?0:r===s?60*(i-o)/c+360:i===s?60*(o-r)/c+120:60*(r-i)/c+240,n=0===c?0:h<=.5?c/l:c/(2-l),[Math.round(e)%360,n,h,null==a?1:a]},a.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],r=t[2],i=t[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*d(a,o,e+1/3)),Math.round(255*d(a,o,e)),Math.round(255*d(a,o,e-1/3)),i]},l(a,(function(n,i){var a=i.props,s=i.cache,u=i.to,c=i.from;o.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===e)return this[s].slice();var r,i=t.type(n),f="array"===i||"object"===i?n:arguments,d=this[s].slice();return l(a,(function(t,e){var n=f["object"===i?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=h(n,e)})),c?((r=o(c(d)))[s]=d,r):o(d)},l(a,(function(e,i){o.fn[e]||(o.fn[e]=function(o){var a,s=t.type(o),u="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[u](),l=c[i.idx];return"undefined"===s?l:("function"===s&&(o=o.call(this,l),s=t.type(o)),null==o&&i.empty?this:("string"===s&&(a=r.exec(o))&&(o=l+parseFloat(a[2])*("+"===a[1]?1:-1)),c[i.idx]=o,this[u](c)))})}))})),o.hook=function(e){var n=e.split(" ");l(n,(function(e,n){t.cssHooks[n]={set:function(e,r){var i,a,s="";if("transparent"!==r&&("string"!==t.type(r)||(i=f(r)))){if(r=o(i||r),!u.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?e.parentNode:e;(""===s||"transparent"===s)&&a&&a.style;)try{s=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(t){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=o(e.elem,n),e.end=o(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}))},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return l(["Top","Right","Bottom","Left"],(function(n,r){e["border"+r+"Color"]=t})),e}},n=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var e,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(e){var n,r,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"==typeof i[n=i[r]]&&(o[t.camelCase(n)]=i[n]);else for(n in i)"string"==typeof i[n]&&(o[n]=i[n]);return o}t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(o.style(t.elem,n,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,o,a,s){var u=t.speed(o,a,s);return this.queue((function(){var o,a=t(this),s=a.attr("class")||"",c=u.children?a.find("*").addBack():a;c=c.map((function(){return{el:t(this),start:i(this)}})),(o=function(){t.each(n,(function(t,n){e[n]&&a[n+"Class"](e[n])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=function(e,n){var i,o,a={};for(i in n)o=n[i],e[i]!==o&&(r[i]||!t.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var e=this,n=t.Deferred(),r=t.extend({},u,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,r),n.promise()})),t.when.apply(t,c.get()).done((function(){o(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),u.complete.call(a[0])}))}))},t.fn.extend({addClass:(e=t.fn.addClass,function(n,r,i,o){return r?t.effects.animateClass.call(this,{add:n},r,i,o):e.apply(this,arguments)}),removeClass:function(e){return function(n,r,i,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},r,i,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,r,i,o,a){return"boolean"==typeof r||void 0===r?i?t.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,i,o)}}(t.fn.toggleClass),switchClass:function(e,n,r,i,o){return t.effects.animateClass.call(this,{add:n,remove:e},r,i,o)}})}(),function(){var e;function o(e,n,r,i){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(i=r,r=n,n={}),t.isFunction(r)&&(i=r,r=null),n&&t.extend(e,n),r=r||n.duration,e.duration=t.fx.off?0:"number"==typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=i||n.complete,e}function a(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}function s(t,e){var n=e.outerWidth(),r=e.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=(e=t.expr.filters.animated,function(n){return!!t(n).data(i)||e(n)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var r=0,i=e.length;r<i;r++)null!==e[r]&&t.data(n+e[r],t[0].style[e[r]])},restore:function(t,e){for(var r,i=0,o=e.length;i<o;i++)null!==e[i]&&(r=t.data(n+e[i]),t.css(e[i],r))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},r=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(r),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,r){n[r]=e.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(i),r.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,n,r){return r||(r=n,n="effect"),t.effects.effect[e]=r,t.effects.effect[e].mode=n,r},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(e||100)/100:1,i="vertical"!==n?(e||100)/100:1;return{height:t.height()*i,width:t.width()*r,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();e>1&&r.splice.apply(r,[1,0].concat(r.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(r,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(r)||"",t.removeData(r)},mode:function(t,e){var n=t.is(":hidden");return"toggle"===e&&(e=n?"show":"hide"),(n?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var n,r;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:n}},createPlaceholder:function(e){var r,i=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(n+"placeholder",r)),e.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(t){var e=n+"placeholder",r=t.data(e);r&&(r.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,n,r,i){return i=i||{},t.each(n,(function(t,n){var o=e.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),t.fn.extend({effect:function(){var e=o.apply(this,arguments),n=t.effects.effect[e.effect],r=n.mode,a=e.queue,s=a||"fx",u=e.complete,c=e.mode,l=[],h=function(e){var n=t(this),o=t.effects.mode(n,c)||r;n.data(i,!0),l.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||t.effects.saveStyle(n),t.isFunction(e)&&e()};if(t.fx.off||!n)return c?this[c](e.duration,u):this.each((function(){u&&u.call(this)}));function f(o){var a=t(this);function s(){t.isFunction(u)&&u.call(a[0]),t.isFunction(o)&&o()}e.mode=l.shift(),!1===t.uiBackCompat||r?"none"===e.mode?(a[c](),s()):n.call(a[0],e,(function(){a.removeData(i),t.effects.cleanUp(a),"hide"===e.mode&&a.hide(),s()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),s()):n.call(a[0],e,s)}return!1===a?this.each(h).each(f):this.queue(s,h).queue(s,f)},show:function(t){return function(e){if(a(e))return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(e){if(a(e))return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(e){if(a(e)||"boolean"==typeof e)return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var n=this.css(e),r=[];return t.each(["em","px","%","pt"],(function(t,e){n.indexOf(e)>0&&(r=[parseFloat(n),e])})),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,n){var r=t(this),i=t(e.to),o="fixed"===i.css("position"),a=t("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,c=i.offset(),l={top:c.top-s,left:c.left-u,height:i.innerHeight(),width:i.innerWidth()},h=r.offset(),f=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:h.top-s,left:h.left-u,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(l,e.duration,e.easing,(function(){f.remove(),t.isFunction(n)&&n()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),e={},t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,n){e[n]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}})),t.effects})?r.apply(e,i):r)||(t.exports=o)},1870:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=o)},7053:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=o)},5592:function(t,e,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=o)},6891:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){var e,n=0,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],c=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:c}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(u=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,(function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){t(this)[e](),o&&o.call(r[0]),n()}))}})),t.widget})?r.apply(e,i):r)||(t.exports=o)},6177:function(t,e,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=o)},6227:function(t,e,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=i.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===l.min))&&(i=n,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})})?r.apply(e,i):r)||(t.exports=o)},5666:function(t){var e=function(t){"use strict";var e,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(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,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 I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(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(t,e,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)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function m(){}function b(){}var y={};u(y,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&r.call(_,o)&&(y=_);var x=b.prototype=g.prototype=Object.create(y);function P(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,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,t.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[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:e,done:!0}}return m.prototype=b,u(x,"constructor",b),u(b,"constructor",m),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},P(k.prototype),u(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(x),u(x,s,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=R,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3609:function(t){"use strict";t.exports=jQuery},5756:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,{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(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{_$litDirective$:t,values:n}}},s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}},{key:"_$AS",value:function(t,e){return this.update(t,e)}},{key:"update",value:function(t,e){return this.render.apply(this,function(t){if(Array.isArray(t))return r(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4817:function(t,e,n){"use strict";var r;function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{Al:function(){return J},dy:function(){return $},Jb:function(){return L},Ld:function(){return D},sY:function(){return B},YP:function(){return j}}),n(5743),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4129),n(4916),n(4603),n(9714),n(6755),n(7852),n(3123),n(8309),n(3290),n(1038),n(489),n(2419);var g=globalThis.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),y="?"+b,w="<".concat(y,">"),_=document,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.createComment(t)},P=function(t){return null===t||"object"!=v(t)&&"function"!=typeof t},k=Array.isArray,C=function(t){var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,T=/>/g,R=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,O=/"/g,M=/^(?:script|style|textarea|title)$/i,A=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:t,strings:e,values:r}}},$=A(1),j=A(2),L=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),N=new WeakMap,B=function(t,e,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new V(e.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(t),a},U=_.createTreeWalker(_,129,null,!1),F=function(t,e){for(var n,r=t.length-1,i=[],o=2===e?"<svg>":"",a=S,s=0;s<r;s++){for(var u=t[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===S?"!--"===l[1]?a=E:void 0!==l[1]?a=T:void 0!==l[2]?(M.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=R):void 0!==l[3]&&(a=R):a===R?">"===l[0]?(a=null!=n?n:S,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?R:'"'===l[3]?O:I):a===O||a===I?a=R:a===E||a===T?a=S:(a=R,n=void 0);var d=a===R&&t[s+1].startsWith("/>")?" ":"";o+=a===S?u+w: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+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,i]},W=function(){function t(e,n){var r,i=e.strings,o=e._$litType$;f(this,t),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,v=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(F(i,o),2),m=v[0],w=v[1];if(this.el=t.createElement(m,n),U.currentNode=this.el.content,2===o){var _=this.el.content,P=_.firstChild;P.remove(),_.append.apply(_,function(t){if(Array.isArray(t))return h(t)}(a=P.childNodes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(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 k,C=[],S=c(r.getAttributeNames());try{for(S.s();!(k=S.n()).done;){var E=k.value;if(E.endsWith("$lit$")||E.startsWith(b)){var T=w[u++];if(C.push(E),void 0!==T){var R=r.getAttribute(T.toLowerCase()+"$lit$").split(b),I=/([.?@])?(.*)/.exec(T);p.push({type:1,index:s,name:I[2],strings:R,ctor:"."===I[1]?X:"?"===I[1]?G:"@"===I[1]?K:q})}else p.push({type:6,index:s})}}}catch(t){S.e(t)}finally{S.f()}for(var O=0,A=C;O<A.length;O++){var $=A[O];r.removeAttribute($)}}if(M.test(r.tagName)){var j=r.textContent.split(b),L=j.length-1;if(L>0){r.textContent=g?g.emptyScript:"";for(var D=0;D<L;D++)r.append(j[D],x()),U.nextNode(),p.push({type:2,index:++s});r.append(j[L],x())}}}else if(8===r.nodeType)if(r.data===y)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(t,null,[{key:"createElement",value:function(t,e){var n=_.createElement("template");return n.innerHTML=t,n}}]),t}();function z(t,e){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===L)return e;var u=void 0!==s?null===(n=a._$Cl)||void 0===n?void 0:n[s]:a._$Cu,c=P(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Cl)&&void 0!==i?i:o._$Cl=[])[s]=u:a._$Cu=u),void 0!==u&&(e=z(t,u._$AS(t,e.values),u,s)),e}var H=function(){function t(e,n){f(this,t),this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=n}return p(t,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"p",value:function(t){var e,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).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,t):1===c.type?l=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(l=new Z(a,this,t)),this.v.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=U.nextNode(),s++)}return o}},{key:"m",value:function(t){var e,n=0,r=c(this.v);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}catch(t){r.e(t)}finally{r.f()}}}]),t}(),V=function(){function t(e,n,r,i){var o;f(this,t),this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;t=z(this,t,e),P(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):C(t)?this.S(t):this.$(t)}},{key:"M",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}},{key:"k",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}},{key:"$",value:function(t){this._$AH!==D&&P(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}},{key:"T",value:function(t){var e,n=t.values,r=t._$litType$,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=W.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.m(n);else{var o=new H(i,this),a=o.p(this.options);o.m(n),this.k(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new W(t)),e}},{key:"S",value:function(e){k(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new t(this.M(x()),this.M(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,n);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}]),t}(),q=function(){function t(e,n,r,i,o){f(this,t),this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}return p(t,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=z(this,t,e,0),(o=!P(t)||t!==this._$AH&&t!==L)&&(this._$AH=t);else{var a,s,u=t;for(t=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],e,a))===L&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===D?t=D:t!==D&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.C(t)}},{key:"C",value:function(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}]),t}(),X=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=3,t}return p(n,[{key:"C",value:function(t){this.element[this.name]=t===D?void 0:t}}]),n}(q),Y=g?g.emptyScript:"",G=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=4,t}return p(n,[{key:"C",value:function(t){t&&t!==D?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}]),n}(q),K=function(t){i(n,t);var e=a(n);function n(t,r,i,o,a){var s;return f(this,n),(s=e.call(this,t,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((t=null!==(e=z(this,t,n,0))&&void 0!==e?e:D)!==L){var r=this._$AH,i=t===D&&r!==D||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==D&&(r===D||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}]),n}(q),Z=function(){function t(e,n,r){f(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(t,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){z(this,t)}}]),t}(),J={L:"$lit$",P:b,V:y,I:1,N:F,R:H,j:C,D:z,H:V,F:q,O:G,W:K,B:X,Z:Z},Q=window.litHtmlPolyfillSupport;null==Q||Q(W,V),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.3")},9089:function(t,e,n){"use strict";n.d(e,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(t){return function(e){return"function"==typeof e?function(t,e){return window.customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){window.customElements.define(t,e)}}}(t,e)}};function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?a(a({},e),{},{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}}(t,e)}}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return u(l(l({},t),{},{state:!0}))}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){return r=(n={descriptor:function(n){var r={get:function(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==g(n)?Symbol():"__"+n;r.get=function(){var e,n;return void 0===this[i]&&(this[i]=null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(t,e){var n;if(void 0===e){var o=null!==(n=t.originalKey)&&void 0!==n?n:t.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(t.key)}:p(p({},t),{},{key:o});return null!=r&&(a.finisher=function(t){r(t,o)}),a}var s=t.constructor;void 0!==i&&Object.defineProperty(t,e,i(e)),null==r||r(s,e)};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(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,{oi:function(){return q},iv:function(){return h},dy:function(){return L.dy},Ld:function(){return L.Ld},sY:function(){return L.sY},YP:function(){return L.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(5743),n(9714),n(2419),n(2165),n(1038),n(7042),n(8309),n(4916),n(5827),n(1249);var o,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),u=new Map,c=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}var e,n;return e=t,(n=[{key:"styleSheet",get:function(){var t=u.get(this.cssText);return a&&void 0===t&&(u.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}},{key:"toString",value:function(){return this.cssText}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=function(t){return new c("string"==typeof t?t:t+"",s)},h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=1===t.length?t[0]:n.reduce((function(e,n,r){return e+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]}),t[0]);return new c(i,s)},f=function(t,e){a?t.adoptedStyleSheets=e.map((function(t){return t instanceof CSSStyleSheet?t:t.styleSheet})):e.forEach((function(e){var n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))},d=a?function(t){return t}:function(t){return t instanceof CSSStyleSheet?function(t){var e,n="",i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.cssRules);try{for(i.s();!(e=i.n()).done;)n+=e.value.cssText}catch(t){i.e(t)}finally{i.f()}return l(n)}(t):t};function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){var e="function"==typeof Map?new Map:void 0;return(x=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return P(t,arguments,S(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,t)})(t)}function P(t,e,n){return(P=k()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=window.trustedTypes,T=E?E.emptyScript:"",R=window.reactiveElementPolyfillSupport,I={toAttribute:function(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){var n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},O=function(t,e){return e!==t&&(e==e||t==t)},M={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:O},A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(c,t);var e,n,r,i,o,a,s,u=(e=c,n=k(),function(){var t,r=S(e);if(n){var i=S(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return _(this,t)});function c(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this))._$Et=new Map,t.isUpdatePending=!1,t.hasUpdated=!1,t._$Ei=null,t.o(),t}return r=c,o=[{key:"addInitializer",value:function(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this.elementProperties.forEach((function(n,r){var i=t._$Eh(r,n);void 0!==i&&(t._$Eu.set(i,r),e.push(i))})),e}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==b(t)?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(r){var i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this.elementProperties.get(t)||M}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var e,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(e=r.n()).done;){var i=e.value;this.createProperty(i,n[i])}}catch(t){r.e(t)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,r=p(new Set(t.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.unshift(d(i))}}catch(t){r.e(t)}finally{r.f()}}else void 0!==t&&e.push(d(t));return e}},{key:"_$Eh",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}],(i=[{key:"o",value:function(){var t,e=this;this._$Ep=new Promise((function(t){return e.enableUpdating=t})),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((function(t){return t(e)}))}},{key:"addController",value:function(t){var e,n;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}},{key:"removeController",value:function(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}},{key:"_$Em",value:function(){var t=this;this.constructor.elementProperties.forEach((function(e,n){t.hasOwnProperty(n)&&(t._$Et.set(n,t[n]),delete t[n])}))}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$ES",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,o=this.constructor._$Eh(t,i);if(void 0!==o&&!0===i.reflect){var a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:I.toAttribute)(e,i.type);this._$Ei=t,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}},{key:"_$AK",value:function(t,e){var n,r,i,o=this.constructor,a=o._$Eu.get(t);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),u=s.converter,c=null!==(i=null!==(r=null===(n=u)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof u?u:null)&&void 0!==i?i:I.fromAttribute;this._$Ei=a,this[a]=c(e,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(t,e,n){var r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}},{key:"_$E_",value:(a=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isUpdatePending=!0,t.prev=1,t.next=4,this._$Ep;case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),Promise.reject(t.t0);case 9:if(e=this.scheduleUpdate(),t.t1=null!=e,!t.t1){t.next=14;break}return t.next=14,e;case 14:return t.abrupt("return",!this.isUpdatePending);case 15:case"end":return t.stop()}}),t,this,[[1,6]])})),s=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=a.apply(t,e);function o(t){y(i,n,r,o,s,"next",t)}function s(t){y(i,n,r,o,s,"throw",t)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var t,e=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(t,n){return e[n]=t})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$EU()}catch(t){throw n=!1,this._$EU(),t}n&&this._$AE(r)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ep}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._$EC&&(this._$EC.forEach((function(t,n){return e._$ES(n,e[n],t)})),this._$EC=void 0),this._$EU()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(x(HTMLElement));A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==R||R({ReactiveElement:A}),(null!==(o=globalThis.reactiveElementVersions)&&void 0!==o?o:globalThis.reactiveElementVersions=[]).push("1.3.0");var $,j,L=n(4817);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=F(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function F(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=V(t)););return t}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return H(t)}function H(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(4819),n(5003);var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=V(r);if(i){var n=V(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return z(this,t)});function a(){var t;return N(this,a),(t=o.apply(this,arguments)).renderOptions={host:H(t)},t._$Dt=void 0,t}return e=a,(n=[{key:"createRenderRoot",value:function(){var t,e,n=U(V(a.prototype),"createRenderRoot",this).call(this);return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}},{key:"update",value:function(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),U(V(a.prototype),"update",this).call(this,t),this._$Dt=(0,L.sY)(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;U(V(a.prototype),"connectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;U(V(a.prototype),"disconnectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}},{key:"render",value:function(){return L.Jb}}])&&B(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A);q.finalized=!0,q._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:q});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:q}),(null!==(j=globalThis.litElementVersions)&&void 0!==j?j:globalThis.litElementVersions=[]).push("3.2.0")}},__webpack_module_cache__={},deferred;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(t,e,n,r){if(!e){var i=1/0;for(u=0;u<deferred.length;u++){e=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<e.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(t){return __webpack_require__.O[t](e[a])}))?e.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[e,n,r]},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t={898:0};__webpack_require__.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(e){return 0!==t[e]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(e&&e(n);u<o.length;u++)i=o[u],__webpack_require__.o(t,i)&&t[i]&&t[i][0](),t[o[u]]=0;return __webpack_require__.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var __webpack_exports__=__webpack_require__(812);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
2
+ (function(){var __webpack_modules__={812:function(t,e,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(3762),n(6891),n(6177),n(5557);var r=n(5685);function i(t,e,n,r,i,o){var a,s=(a=t.prototype[e],function(){return a.apply(o(this),arguments)});Object.defineProperty(r.prototype,i,{get:function(){return s},set:function(r){t.prototype[e]=function(){var e=this instanceof t?n(this):this;return r.apply(e,arguments)},s=r}})}n(6227);var o={fragmentChange:"fragmentChange",PostInit:"PostInit",stop:"stop",resize:"resize",navToggled:"navToggled",fullscreenToggled:"fullscreenToggled",zoomOut:"zoomOut",zoomIn:"zoomIn","1PageViewSelected":"1PageViewSelected","2PageViewSelected":"2PageViewSelected","3PageViewSelected":"3PageViewSelected",mobileNavOpen:"mobileNavOpen"},a=n(3609);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.$root=null,this.$nav=null,this.maxPageNum=null,this.minimumControls=["viewmode"],this.maximumControls=["book_left","book_right","zoom_in","zoom_out","onepg","twopg","thumb"],this.updateNavIndexThrottled=(0,r.throttle)(this.updateNavIndex.bind(this),250,!1)}var e,n;return e=t,(n=[{key:"controlFor",value:function(t){var e=this.br.options.controls[t];return e.visible?e.template?"<li>".concat(e.template(this.br),"</li>"):'<li>\n <button class="BRicon '.concat(e.className,'" title="').concat(e.label,'">\n <div class="icon icon-').concat(e.iconClassName,'"></div>\n <span class="tooltip">').concat(e.label,"</span>\n </button>\n </li>"):""}},{key:"_renderControls",value:function(){var t=this;return["bookLeft","bookRight","onePage","twoPage","thumbnail","viewmode","zoomOut","zoomIn","fullScreen"].map((function(e){return t.controlFor(e)})).join("")}},{key:"_bindViewModeButton",value:function(){var t=this,e=this.br,n=e.options.controls.viewmode,r=[{mode:e.constMode1up,className:"onepg",title:"One-page view"},{mode:e.constMode2up,className:"twopg",title:"Two-page view"},{mode:e.constModeThumb,className:"thumb",title:"Thumbnail view"}].filter((function(t){return!n.excludedModes.includes(t.mode)})),i=r.map((function(t){return t.mode}));n.excludedModes.includes(e.mode)&&e.switchMode(i[0]);for(var s=i.indexOf(e.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=t.$nav.find(".".concat(n.className)).off(".bindNavigationHandlers").on("click",(function(n){var o=i.shift(),s=r.find((function(t){return t.mode===o})),u=r.find((function(t){return t.mode===i[0]}));i.push(o),e.viewModeOrder=i,t.updateViewModeButton(a(n.currentTarget),u.className,u.title),e.switchMode(s.mode)})),s=r.find((function(t){return t.mode===i[0]}));t.updateViewModeButton(o,s.className,s.title)}))}},{key:"updateViewModeButton",value:function(t,e,n){t.attr("title",n).find(".icon").removeClass().addClass("icon icon-".concat(e)).end().find(".tooltip").text(n)}},{key:"switchNavbarControls",value:function(){"linerNotes"!==this.br.options.bookType&&(this.br.refs.$brContainer.prop("clientWidth")<640?this.showMinimumNavbarControls():this.showMaximumNavbarControls())}},{key:"showMinimumNavbarControls",value:function(){this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"showMaximumNavbarControls",value:function(){this.maximumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.remove("hide")})),this.minimumControls.forEach((function(t){var e=document.querySelector(".controls .".concat(t));e&&e.classList.add("hide")}))}},{key:"init",value:function(){var t=this,e=this.br,n=e.options.navbarTitle,r="rl"===e.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),e.refs.$BRfooter=this.$root=a('<div class="BRfooter"></div>'),e.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),e.refs.$br.append(this.$root);var s=this.$root.find(".BRpager").slider({animate:!0,min:0,max:e.book.getNumLeafs()-1,value:e.currentIndex(),range:"min"});return s.on("slide",(function(e,n){return t.updateNavPageNum(n.value),!0})),s.on("slidechange",(function(n,r){return t.updateNavPageNum(r.value),s.data("swallowchange")?s.data("swallowchange",!1):e.jumpToIndex(r.value),!0})),e.options.controls.viewmode.visible&&this._bindViewModeButton(),this.updateNavPageNum(e.currentIndex()),this.$nav}},{key:"getNavPageNumString",value:function(t){var e=this.br,n=e.book.getPageNum(t),r=(e.book.getPageProp(t,"pageType"),e.book.getNumLeafs());if(!this.maxPageNum){for(var i,o=0,a=0;a<r;a++)i=e.book.getPageNum(a),!isNaN(i)&&i>o&&(o=i);this.maxPageNum=o}return function(t,e,n,r,i){if("n"==n[0])return"(".concat(t+1," of ").concat(e,")");var o=i?" of ".concat(i):"";return"".concat(n).concat(o)}(t,r,n,0,this.maxPageNum)}},{key:"updateNavPageNum",value:function(t){this.$root.find(".BRcurrentpage").html(this.getNavPageNumString(t))}},{key:"updateNavIndex",value:function(t){t=void 0!==t?t:this.br.currentIndex(),this.$root.find(".BRpager").data("swallowchange",!0).slider("value",t)}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),c={defaults:null,padding:10,ui:"full",uiAutoHide:!1,thumbRowBuffer:1,thumbColumns:6,thumbMaxLoading:4,thumbPadding:10,thumbMinZoomColumns:2,thumbMaxZoomColumns:8,flipSpeed:"fast",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},l=n(105),h=(n(4581),n(3609));function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e}var e,n;return e=t,(n=[{key:"buildToolbarElement",value:function(){var t=this.br,e=t.showLogo?'\n <span class="BRtoolbarSection BRtoolbarSectionLogo">\n <a class="logo" href="'.concat(t.logoURL,'"></a>\n </span>'):"";t.refs.$BRtoolbar=h('\n <div class="BRtoolbar header">\n <div class="BRtoolbarbuttons">\n <div class="BRtoolbarLeft">\n '.concat(e,'\n <span class="BRtoolbarSection BRtoolbarSectionTitle"></span>\n </div>\n <div class="BRtoolbarRight">\n <span class="BRtoolbarSection BRtoolbarSectionInfo">\n <button class="BRpill info js-tooltip">Info</button>\n <button class="BRpill share js-tooltip">Share</button>\n </span>\n </div>\n </div>\n </div>'));var n=t.refs.$BRtoolbar.find(".BRtoolbarSectionTitle");return t.bookUrl&&t.options.enableBookTitleLink?n.append(h("<a>").attr({href:t.bookUrl,title:t.bookUrlTitle}).addClass("BRreturn").html(t.bookUrlText||t.bookTitle)):t.bookTitle&&n.append(t.bookUrlText||t.bookTitle),t.refs.$BRtoolbar}},{key:"initToolbar",value:function(t,e){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(),h('<div style="display: none;"></div>').append(h('\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(h('\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(t){var e=this,n=this.br,r=document.location+"",i=(r+"").replace(/#.*/,""),o=n.getEmbedCode?'\n <div class="share-embed">\n <p class="share-embed-prompt">Copy and paste one of these options to share this book elsewhere.</p>\n <form method="post" action="">\n <fieldset class="fieldset-share-pageview">\n <label for="pageview">Link to this page view</label>\n <input type="text" name="pageview" class="BRpageviewValue" value="'.concat(r,'"/>\n </fieldset>\n <fieldset class="fieldset-share-book-link">\n <label for="booklink">Link to the book</label>\n <input type="text" name="booklink" class="booklink" value="').concat(i,'"/>\n </fieldset>\n <fieldset class="fieldset-embed">\n <label for="iframe">Embed a mini Book Reader</label>\n <fieldset class="sub">\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode1up,'" checked="checked"/>\n 1 page\n </label>\n <label class="sub">\n <input type="radio" name="pages" value="').concat(n.constMode2up,'"/>\n 2 pages\n </label>\n <label class="sub">\n <input type="checkbox" name="thispage" value="thispage"/>\n Open to this page?\n </label>\n </fieldset>\n <textarea cols="30" rows="4" name="iframe" class="BRframeEmbed"></textarea>\n </fieldset>\n </form>\n </div>'):"",a=h('\n <div class="share-title">Share this book</div>\n <div class="share-social">\n <label class="sub open-to-this-page">\n <input class="thispage-social" type="checkbox" />\n Open to this page?\n </label>\n <div><button class="BRaction share facebook-share-button"><i class="BRicon fb" /> Facebook</button></div>\n <div><button class="BRaction share twitter-share-button"><i class="BRicon twitter" /> Twitter</button></div>\n <div><button class="BRaction share email-share-button"><i class="BRicon email" /> Email</button></div>\n </div>\n '.concat(o,'\n <div class="BRfloatFoot">\n <button class="share-finished" type="button" onclick="$.fn.colorbox.close();">Finished</button>\n </div>'));a.appendTo(t),a.find(".fieldset-embed input").on("change",(function(t){var e=h(t.target).parents("form").first(),r={};r.mode=h(e.find(".fieldset-embed input[name=pages]:checked")).val(),e.find(".fieldset-embed input[name=thispage]").prop("checked")&&(r.page=n.book.getPageNum(n.currentIndex())),n.getEmbedCode&&e.find(".BRframeEmbed").val(n.getEmbedCode("480px","430px",r))})),a.find("input, textarea").on("focus",(function(t){return t.target.select()})),a.find(".facebook-share-button").on("click",(function(){v("https://www.facebook.com/sharer.php?"+h.param({u:e._getSocialShareUrl()}),600,400,"Share")})),a.find(".twitter-share-button").on("click",(function(){v("https://twitter.com/intent/tweet?"+h.param({url:e._getSocialShareUrl(),text:n.bookTitle}),600,400,"Share")})),a.find(".email-share-button").on("click",(function(){var t="".concat(n.bookTitle,"\n\n").concat(e._getSocialShareUrl());window.location.href="mailto:?subject=".concat(encodeURI(n.bookTitle),"&body=").concat(encodeURI(t))})),a.find("input[name=thispage]").trigger("change"),a.appendTo(t)}},{key:"_getSocialShareUrl",value:function(){return this.br.$(".thispage-social").prop("checked")?window.location.href:"".concat(document.location.protocol,"//").concat(window.location.hostname).concat(window.location.pathname)}},{key:"buildInfoDiv",value:function(t){var e=this.br;t.find(".BRfloatBody, .BRfloatCover, .BRfloatFoot").remove();var n=h('<div class="BRinfoLeftCol"></div>');e.thumbnail&&n.append(h('\n <div class="BRimageW">\n <img src="'.concat(e.thumbnail,'" alt="').concat((0,r.escapeHTML)(e.bookTitle),'" />\n </div>')));var i,o=h('<div class="BRinfoRightCol">'),a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.metadata);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.extraValueClass,c=void 0===u?"":u,l=s.label,d=s.value,p="Title"===l?(0,r.escapeHTML)(d):d;o.append(h('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoLabel">'.concat(l,'</div>\n <div class="BRinfoValue ').concat(c,'">').concat(p,"</div>\n </div>")))}}catch(t){a.e(t)}finally{a.f()}var v=e.bookUrlMoreInfo?e.bookUrlMoreInfo:e.bookTitle;v&&e.bookUrl&&o.append(h('\n <div class="BRinfoValueWrapper">\n <div class="BRinfoMoreInfoWrapper">\n <a class="BRinfoMoreInfo" href="'.concat(e.bookUrl,'">\n ').concat((0,r.escapeHTML)(v),"\n </a>\n </div>\n </div>")));var g=h('<div class="BRfloatFoot BRinfoFooter"></div>'),m=h('<div class="BRinfoW mv20-lg">').append([n,o,h('<br style="clear:both"/>')]);t.append(m,g).addClass("wide")}},{key:"getToolBarHeight",value:function(){var t=this.br.refs.$BRtoolbar;return t&&"block"===t.css("display")?t.outerHeight()+parseInt(t.css("top")):0}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function v(t,e,n,r){var i=null!=window.screenLeft?window.screenLeft:screen.left,o=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2+i,s=(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-n/2+o,u="status=1,width=".concat(e,",height=").concat(n,",top=").concat(s,",left=").concat(a);window.open(t,r,u)}function g(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n(2707),n(4553),n(6535),n(9244);var _=function(){function t(e){var n,r;b(this,t),this.br=e,this.reduceSet=e.reduceSet,this.ppi=null!==(n=null===(r=e.options)||void 0===r?void 0:r.ppi)&&void 0!==n?n:c.ppi,this._medianPageSize=null,this._getDataFlattenedCached=null}return w(t,[{key:"getMedianPageSizeInches",value:function(){if(this._medianPageSize)return this._medianPageSize;var t,e=[],n=[],r=g(this.pagesIterator());try{for(r.s();!(t=r.n()).done;){var i=t.value;e.push(i.widthInches),n.push(i.heightInches)}}catch(t){r.e(t)}finally{r.f()}return e.sort(),n.sort(),this._medianPageSize={width:e[Math.floor(e.length/2)],height:n[Math.floor(n.length/2)]},this._medianPageSize}},{key:"_getPageWidth",value:function(t){return t=(0,r.clamp)(t,0,this.getNumLeafs()-1),this.getPageWidth(t)}},{key:"_getPageHeight",value:function(t){var e=(0,r.clamp)(t,0,this.getNumLeafs()-1);return this.getPageHeight(e)}},{key:"getPageIndex",value:function(t){var e=this.getPageIndices(t);return e.length?e[e.length-1]:void 0}},{key:"getPageIndices",value:function(t){var e=[];if("n"==t.slice(0,1))try{var n=t.slice(1,t.length),r=parseInt(n);return e.push(r),e}catch(t){}for(var i=0;i<this.getNumLeafs();i++)this.getPageNum(i)==t&&e.push(i);return e}},{key:"getPageName",value:function(t){return"Page "+this.getPageNum(t)}},{key:"getNumLeafs",value:function(){return void 0!==this.br.numLeafs?this.br.numLeafs:this._getDataFlattened().length}},{key:"getPageWidth",value:function(t){return this.getPageProp(t,"width")}},{key:"getPageHeight",value:function(t){return this.getPageProp(t,"height")}},{key:"getPageURI",value:function(t,e,n){return this.getPageProp(t,"viewable",!0)?this.getPageProp(t,"uri"):"/bookreader/static/preview-default.png"}},{key:"getPageSide",value:function(t){return this.getPageProp(t,"pageSide")||(t%2==0?"R":"L")}},{key:"getPageNum",value:function(t){var e=this.getPageProp(t,"pageNum");return void 0===e?"n".concat(t):e}},{key:"getPageProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this._getDataProp(t,e,n)}},{key:"getSpreadIndices",value:function(t){return"rl"==this.br.pageProgression?"R"==this.getPageSide(t)?[t+1,t]:[t,t-1]:"L"==this.getPageSide(t)?[t,t+1]:[t-1,t]}},{key:"leafNumToIndex",value:function(t){var e=this._getDataFlattened().findIndex((function(e){return e.leafNum==t}));return e>-1?e:t}},{key:"parsePageString",value:function(t){var e,n=/^leaf(\d+)/.exec(t);return n?null===(e=this.leafNumToIndex(parseInt(n[1],10)))&&(e=void 0):e=this.getPageIndex(t),e}},{key:"getPage",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getNumLeafs();if(e||!(t<0||t>=n))return t<0&&t>=-n&&(t+=n),new x(this,t%=n)}},{key:"pagesIterator",value:regeneratorRuntime.mark((function t(){var e,n,r,i,o,a,s,u,c,l=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?1/0:i,a=e.combineConsecutiveUnviewables,s=void 0!==a&&a,r=Math.max(0,r),o=Math.min(o,this.getNumLeafs()),u=r;case 4:if(!(u<o)){t.next=13;break}if(c=this.getPage(u),!s||!c.isConsecutiveUnviewable){t.next=8;break}return t.abrupt("continue",10);case 8:return t.next=10,c;case 10:u++,t.next=4;break;case 13:case"end":return t.stop()}}),t,this)}))},{key:"_getDataFlattened",value:function(){if(this._getDataFlattenedCached&&this._getDataFlattenedCached[1]===this.br.data.length)return this._getDataFlattenedCached[0];var t=null,e=null,n=0,r=this.br.data.flatMap((function(r){return r.map((function(i){return i.pageSide||(i.pageSide=null===t?2===r.length?"L":"R":"L"===t?"R":"L"),t=i.pageSide,!1===i.viewable?i.unviewablesStart=null===e?e=n:e:e=null,n++,i}))}));return this._getDataFlattenedCached=[r,this.br.data.length],r}},{key:"_getDataProp",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this._getDataFlattened(),i=isNaN(t)||t<0||t>=r.length;return i||void 0===r[t][e]?n:r[t][e]}}]),t}(),x=function(){function t(e,n){b(this,t),this.ppi=e._getDataProp(n,"ppi",e.ppi),this.book=e,this.index=n,this.width=e.getPageWidth(n),this.widthInches=this.width/this.ppi,this.height=e.getPageHeight(n),this.heightInches=this.height/this.ppi,this.pageSide=e.getPageSide(n),this.leafNum=e._getDataProp(n,"leafNum",this.index),this.isViewable=e._getDataProp(n,"viewable",!0),this.unviewablesStart=e._getDataProp(n,"unviewablesStart")||null,this.isConsecutiveUnviewable=!this.isViewable&&this.unviewablesStart!=this.index,this._rawData=this.book._getDataFlattened()[this.index]}return w(t,[{key:"makeViewable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isViewable!=t)if(t){this._rawData.viewable=!0,delete this._rawData.unviewablesStart;var e,n=g(this.book.pagesIterator({start:this.index+1}));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.isViewable)break;r._rawData.unviewablesStart=this.index+1}}catch(t){n.e(t)}finally{n.f()}}else{this._rawData.viewable=!1,this._rawData.unviewablesStart=this.prev&&!this.prev.isViewable?this.prev.unviewablesStart:this.index;var i,o=g(this.book.pagesIterator({start:this.index+1}));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a.isViewable)break;a._rawData.unviewablesStart=this._rawData.unviewablesStart}}catch(t){o.e(t)}finally{o.f()}}}},{key:"prev",get:function(){return this.findPrev()}},{key:"next",get:function(){return this.findNext()}},{key:"getURI",value:function(t,e){return this.book.getPageURI(this.index,t,e)}},{key:"getURISrcSet",value:function(t){for(var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.book.reduceSet,i=r.floor(t),o=r.decr(i),a=[],s=o;s>=1;s=r.decr(s))a.push(s);return a.map((function(t){return"".concat(e.getURI(t,n)," ").concat(i/t,"x")})).join(", ")}},{key:"findNext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.combineConsecutiveUnviewables,n=void 0!==e&&e;return this.book.pagesIterator({start:this.index+1,combineConsecutiveUnviewables:n}).next().value}},{key:"findPrev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.combineConsecutiveUnviewables,r=void 0!==n&&n;if(0!=this.index){if(r){if(this.isConsecutiveUnviewable)return this.book.getPage(this.unviewablesStart);var i=new t(this.book,this.index-1);return i.isViewable?i:i.findPrev({combineConsecutiveUnviewables:r})}return new t(this.book,this.index-1)}}}]),t}(),P=(n(4819),n(5003),n(6649),n(6078),n(561),n(3680),n(3706),n(2703),n(9601),n(2419),n(3371),n(9653),n(489),n(9089)),k=n(871),C=(n(189),n(4817)),S=n(5756);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=(0,S.XM)(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=M(r);if(i){var n=M(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return O(this,t)});function a(t){var e,n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),t.type!==S.pX.ATTRIBUTE||"style"!==t.name||(null===(n=t.strings)||void 0===n?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return O(e)}return e=a,(n=[{key:"render",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null==r?e:e+"".concat(n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")}),"")}},{key:"update",value:function(t,e){var n=this,r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0],i=t.element.style;if(void 0===this.ct){for(var o in this.ct=new Set,r)this.ct.add(o);return this.render(r)}for(var a in this.ct.forEach((function(t){null==r[t]&&(n.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")})),r){var s=r[a];null!=s&&(this.ct.add(a),a.includes("-")?i.setProperty(a,s):i[a]=s)}return C.Jb}}])&&R(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(S.Xe)),$=(n(2420),n(840)),j=n.n($);function L(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){L(o,r,i,a,s,"next",t)}function s(t){L(o,r,i,a,s,"throw",t)}a(void 0)}))}}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function B(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),B(this,"_preventEvent",(function(t){return t.preventDefault(),!1})),B(this,"_pinchStart",(function(){var t,e;n.oldScale=1,n.mode.$visibleWorld.classList.add("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="transform",n.detachCtrlZoom(),null===(t=(e=n.mode).detachScrollListeners)||void 0===t||t.call(e)})),B(this,"_pinchMove",function(){var t=D(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.lastEvent=e,n.pinchMoveFrame||(r=null,n.pinchMoveFramePromise=new Promise((function(t){return r=t})),n.pinchMoveFrame=n.bufferFn((function(){n.updateScaleCenter({clientX:n.lastEvent.center.x,clientY:n.lastEvent.center.y}),n.mode.scale*=n.lastEvent.scale/n.oldScale,n.oldScale=n.lastEvent.scale,n.pinchMoveFrame=null,r()})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),B(this,"_pinchEnd",D(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.pinchMoveFramePromise;case 2:n.mode.scaleCenter={x:.5,y:.5},n.oldScale=1,n.mode.$visibleWorld.classList.remove("BRsmooth-zooming"),n.mode.$visibleWorld.style.willChange="auto",n.attachCtrlZoom(),null===(e=(r=n.mode).attachScrollListeners)||void 0===e||e.call(r);case 8:case"end":return t.stop()}}),t)})))),B(this,"_pinchCancel",D(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._pinchEnd();case 2:case"end":return t.stop()}}),t)})))),B(this,"_handleCtrlWheel",(function(t){if(t.ctrlKey){t.preventDefault();var e=/Mac/i.test(navigator.platform)?.045:.03;n.updateScaleCenter(t),n.mode.scale*=1-Math.sign(t.deltaY)*e}})),this.mode=e,this.pinchMoveFrame=null,this.pinchMoveFramePromise=Promise.resolve(),this.oldScale=1,this.lastEvent=null,this.attached=!1,this.bufferFn=window.requestAnimationFrame.bind(window),delete j().defaults.cssProps.userSelect,this.hammer=new(j().Manager)(this.mode.$container,{touchAction:"pan-x pan-y"}),this.hammer.add(new(j().Pinch))}var e,n;return e=t,(n=[{key:"attach",value:function(){this.attached||(this.attachCtrlZoom(),this.mode.$container.addEventListener("gesturestart",this._preventEvent),this.mode.$container.addEventListener("gesturechange",this._preventEvent),this.mode.$container.addEventListener("gestureend",this._preventEvent),this.hammer.on("pinchstart",this._pinchStart),this.hammer.on("pinchmove",this._pinchMove),this.hammer.on("pinchend",this._pinchEnd),this.hammer.on("pinchcancel",this._pinchCancel),this.attached=!0)}},{key:"detach",value:function(){this.detachCtrlZoom(),this.mode.$container.removeEventListener("gesturestart",this._preventEvent),this.mode.$container.removeEventListener("gesturechange",this._preventEvent),this.mode.$container.removeEventListener("gestureend",this._preventEvent),this.hammer.off("pinchstart",this._pinchStart),this.hammer.off("pinchmove",this._pinchMove),this.hammer.off("pinchend",this._pinchEnd),this.hammer.off("pinchcancel",this._pinchCancel),this.attached=!1}},{key:"attachCtrlZoom",value:function(){window.addEventListener("wheel",this._handleCtrlWheel,{passive:!1})}},{key:"detachCtrlZoom",value:function(){window.removeEventListener("wheel",this._handleCtrlWheel)}},{key:"updateScaleCenter",value:function(t){var e=t.clientX,n=t.clientY,r=this.mode.htmlDimensionsCacher.boundingClientRect;this.mode.scaleCenter={x:(e-r.left)/this.mode.htmlDimensionsCacher.clientWidth,y:(n-r.top)/this.mode.htmlDimensionsCacher.clientHeight}}}])&&N(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,"clientWidth",100),W(this,"clientHeight",100),W(this,"boundingClientRect",{top:0,left:0}),W(this,"updateClientSizes",(function(){var t=n.element.getBoundingClientRect();n.clientWidth=n.element.clientWidth,n.clientHeight=n.element.clientHeight,n.boundingClientRect.top=t.top,n.boundingClientRect.left=t.left})),W(this,"debouncedUpdateClientSizes",(0,r.debounce)(this.updateClientSizes,150,!1)),this.element=e}var e,n;return e=t,(n=[{key:"attachResizeListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;t.addEventListener("resize",this.debouncedUpdateClientSizes)}},{key:"detachResizeListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;t.removeEventListener("resize",this.debouncedUpdateClientSizes)}}])&&F(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var V,q=function(){function t(e,n){var r,i,o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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=e,this.className=n,this.timeout=null}var e,n;return e=t,(n=[{key:"attach",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"detach",value:function(){this.element.removeEventListener("scroll",this.onScroll)}}])&&H(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function X(t){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t){return function(t){if(Array.isArray(t))return at(t)}(t)||st(t)||ot(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z(t)}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(){J=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(n){e.forEach((function(e){e.kind===n&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var n=t.prototype;["method","field"].forEach((function(r){e.forEach((function(e){var i=e.placement;if(e.kind===r&&("static"===i||"prototype"===i)){var o="static"===i?t:n;this.defineClassElement(o,e)}}),this)}),this)},defineClassElement:function(t,e){var n=e.descriptor;if("field"===e.kind){var r=e.initializer;n={enumerable:n.enumerable,writable:n.writable,configurable:n.configurable,value:void 0===r?void 0:r.call(t)}}Object.defineProperty(t,e.key,n)},decorateClass:function(t,e){var n=[],r=[],i={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,i)}),this),t.forEach((function(t){if(!et(t))return n.push(t);var e=this.decorateElement(t,i);n.push(e.element),n.push.apply(n,e.extras),r.push.apply(r,e.finishers)}),this),!e)return{elements:n,finishers:r};var o=this.decorateConstructor(n,e);return r.push.apply(r,o.finishers),o.finishers=r,o},addElementPlacement:function(t,e,n){var r=e[t.placement];if(!n&&-1!==r.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");r.push(t.key)},decorateElement:function(t,e){for(var n=[],r=[],i=t.decorators,o=i.length-1;o>=0;o--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var s=this.fromElementDescriptor(t),u=this.toElementFinisherExtras((0,i[o])(s)||s);t=u.element,this.addElementPlacement(t,e),u.finisher&&r.push(u.finisher);var c=u.extras;if(c){for(var l=0;l<c.length;l++)this.addElementPlacement(c[l],e);n.push.apply(n,c)}}return{element:t,finishers:r,extras:n}},decorateConstructor:function(t,e){for(var n=[],r=e.length-1;r>=0;r--){var i=this.fromClassDescriptor(t),o=this.toClassDescriptor((0,e[r])(i)||i);if(void 0!==o.finisher&&n.push(o.finisher),void 0!==o.elements){t=o.elements;for(var a=0;a<t.length-1;a++)for(var s=a+1;s<t.length;s++)if(t[a].key===t[s].key&&t[a].placement===t[s].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:n}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||st(e)||ot(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var n=it(t.key),r=String(t.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var i=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var o={kind:e,key:n,placement:r,descriptor:Object.assign({},i)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(i,"get","The property descriptor of a field descriptor"),this.disallowProperty(i,"set","The property descriptor of a field descriptor"),this.disallowProperty(i,"value","The property descriptor of a field descriptor"),o.initializer=t.initializer),o},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:rt(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var n=rt(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:n}},runClassFinishers:function(t,e){for(var n=0;n<e.length;n++){var r=(0,e[n])(t);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");t=r}}return t},disallowProperty:function(t,e,n){if(void 0!==t[e])throw new TypeError(n+" can't have a ."+e+" property.")}};return t}function Q(t){var e,n=it(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===t.kind?"field":"method",key:n,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(r.decorators=t.decorators),"field"===t.kind&&(r.initializer=t.value),r}function tt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function et(t){return t.decorators&&t.decorators.length}function nt(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function rt(t,e){var n=t[e];if(void 0!==n&&"function"!=typeof n)throw new TypeError("Expected '"+e+"' to be a function");return n}function it(t){var e=function(t,e){if("object"!==X(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===X(e)?e:String(e)}function ot(t,e){if(t){if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function st(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ut(){return(ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ct(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function ct(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=lt(t)););return t}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ht=function(t,e,n,r){var i=J(),o=e((function(t){i.initializeInstanceElements(t,a.elements)}),n),a=i.decorateClass(function(t){for(var e=[],n=function(t){return"method"===t.kind&&t.key===o.key&&t.placement===o.placement},r=0;r<t.length;r++){var i,o=t[r];if("method"===o.kind&&(i=e.find(n)))if(nt(o.descriptor)||nt(i.descriptor)){if(et(o)||et(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(et(o)){if(et(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}tt(o,i)}else e.push(o)}return e}(o.d.map(Q)),t);return i.initializeClassElements(o.F,a.elements),i.runClassFinishers(o.F,a.finishers)}([(0,P.Mo)("br-mode-1up")],(function(t,e){var n=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}(a,e);var n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=lt(r);if(i){var n=lt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return K(this,t)});function a(e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r=o.call(this),t(Z(r)),r.book=e,r.br=n,r}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(e);return{F:n,d:[{kind:"field",key:"br",value:void 0},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"book",value:void 0},{kind:"field",decorators:[(0,P.Cb)({type:Array})],key:"pages",value:function(){return[]}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"pageTops",value:function(){return{}}},{kind:"field",key:"screenDPI",value:function(){return(0,r.calcScreenDPI)()}},{kind:"field",key:"realWorldReduce",value:function(){return 1}},{kind:"field",decorators:[(0,P.Cb)({type:Number})],key:"scale",value:function(){return 1}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"scaleCenter",value:function(){return{x:.5,y:.5}}},{kind:"field",decorators:[(0,P.Cb)({type:Object})],key:"visibleRegion",value:function(){return{top:0,left:0,width:100,height:100}}},{kind:"field",decorators:[(0,P.Cb)({type:Array,hasChanged:r.arrChanged})],key:"visiblePages",value:function(){return[]}},{kind:"field",decorators:[(0,P.Cb)({type:Array})],key:"renderedPages",value:function(){return[]}},{kind:"field",key:"pageContainerCache",value:function(){return{}}},{kind:"field",decorators:[(0,P.IO)(".br-mode-1up__world")],key:"$world",value:void 0},{kind:"field",key:"worldDimensions",value:function(){return{width:100,height:100}}},{kind:"get",key:"worldStyle",value:function(){var t=this.worldUnitsToRenderedPixels;return{width:t(this.worldDimensions.width)+"px",height:t(this.worldDimensions.height)+"px"}}},{kind:"get",key:"$container",value:function(){return this}},{kind:"field",decorators:[(0,P.IO)(".br-mode-1up__visible-world")],key:"$visibleWorld",value:void 0},{kind:"field",key:"htmlDimensionsCacher",value:function(){return new z(this)}},{kind:"field",key:"smoothZoomer",value:function(){return new U(this)}},{kind:"field",key:"scrollClassAdder",value:function(){return new q(this,"BRscrolling-active")}},{kind:"field",key:"SPACING_IN",value:function(){return.2}},{kind:"field",key:"ZOOM_FACTOR",value:function(){return 1.1}},{kind:"method",key:"jumpToIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.smooth,i=void 0!==r&&r;i&&(this.style.scrollBehavior="smooth"),this.scrollTop=this.worldUnitsToVisiblePixels(this.pageTops[t]-this.SPACING_IN/2),i&&setTimeout((function(){return e.style.scrollBehavior=""}),100)}},{kind:"method",key:"zoomIn",value:function(){this.scale*=this.ZOOM_FACTOR}},{kind:"method",key:"zoomOut",value:function(){this.scale*=1/this.ZOOM_FACTOR}},{kind:"method",key:"firstUpdated",value:function(t){ut(lt(n.prototype),"firstUpdated",this).call(this,t),this.htmlDimensionsCacher.updateClientSizes(),this.smoothZoomer.attach()}},{kind:"method",key:"initFirstRender",value:function(t){var e=this.book.getPage(t);this.scale=this.computeDefaultScale(e)}},{kind:"method",key:"updated",value:function(t){if(t.has("book")&&(this.pages=(0,r.genToArray)(this.book.pagesIterator({combineConsecutiveUnviewables:!0}))),t.has("pages")&&(this.worldDimensions=this.computeWorldDimensions(),this.pageTops=this.computePageTops(this.pages,this.SPACING_IN)),t.has("visibleRegion")&&(this.visiblePages=this.computeVisiblePages()),t.has("visiblePages")&&(this.throttledUpdateRenderedPages(),this.br.displayedIndices=this.visiblePages.map((function(t){return t.index})),this.br.updateFirstIndex(this.br.displayedIndices[0]),this.br._components.navbar.updateNavIndexThrottled()),t.has("scale")){var e=t.get("scale");this.$visibleWorld.style.transform="scale(".concat(this.scale,")"),this.updateViewportOnZoom(this.scale,e),this.$world.style.transform="scale(".concat(this.scale,")")}}},{kind:"method",key:"connectedCallback",value:function(){ut(lt(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(),ut(lt(n.prototype),"disconnectedCallback",this).call(this)}},{kind:"method",key:"createRenderRoot",value:function(){return this}},{kind:"field",key:"worldUnitsToRenderedPixels",value:function(){var t=this;return function(e){return e*t.screenDPI/t.realWorldReduce}}},{kind:"field",key:"renderedPixelsToWorldUnits",value:function(){var t=this;return function(e){return e*t.realWorldReduce/t.screenDPI}}},{kind:"field",key:"renderedPixelsToVisiblePixels",value:function(){var t=this;return function(e){return e*t.scale}}},{kind:"field",key:"visiblePixelsToRenderedPixels",value:function(){var t=this;return function(e){return e/t.scale}}},{kind:"field",key:"worldUnitsToVisiblePixels",value:function(){var t=this;return function(e){return t.renderedPixelsToVisiblePixels(t.worldUnitsToRenderedPixels(e))}}},{kind:"field",key:"visiblePixelsToWorldUnits",value:function(){var t=this;return function(e){return t.renderedPixelsToWorldUnits(t.visiblePixelsToRenderedPixels(e))}}},{kind:"method",key:"render",value:function(){var t,e,n=this;return(0,k.dy)(V||(t=['\n <div class="br-mode-1up__world" style=','></div>\n <div class="br-mode-1up__visible-world">\n ',"\n </div>"],e||(e=t.slice(0)),V=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))),A(this.worldStyle),this.renderedPages.map((function(t){return n.renderPage(t)})))}},{kind:"field",key:"createPageContainer",value:function(){var t=this;return function(e){return t.pageContainerCache[e.index]||(t.pageContainerCache[e.index]=t.br._createPageContainer(e.index))}}},{kind:"field",key:"renderPage",value:function(){var t=this;return function(e){var n=t.worldUnitsToRenderedPixels,r=t.worldUnitsToVisiblePixels,i=t.visiblePixelsToWorldUnits(t.htmlDimensionsCacher.clientWidth),o=n(e.widthInches),a=n(e.heightInches),s=Math.max(t.SPACING_IN,(i-e.widthInches)/2),u=t.pageTops[e.index],c="translate(".concat(n(s),"px, ").concat(n(u),"px)"),l=t.createPageContainer(e).update({dimensions:{width:o,height:a,top:0,left:0},reduce:e.width/r(e.widthInches)}).$container[0];return l.style.transform=c,l.classList.toggle("BRpage-visible",t.visiblePages.includes(e)),l}}},{kind:"field",key:"updateVisibleRegion",value:function(){var t=this;return function(){var e=t.scrollTop,n=t.scrollLeft,r=t.htmlDimensionsCacher.clientWidth,i=t.htmlDimensionsCacher.clientHeight,o=t.visiblePixelsToWorldUnits;t.visibleRegion={top:o(e),height:o(i),left:o(n),width:o(r)}}}},{kind:"method",key:"computeRenderedPages",value:function(){var t,e;return[null===(t=this.visiblePages[0])||void 0===t?void 0:t.prev].concat(Y(this.visiblePages),[null===(e=this.visiblePages[this.visiblePages.length-1])||void 0===e?void 0:e.next]).filter((function(t){return t})).slice(0,10)}},{kind:"field",key:"throttledUpdateRenderedPages",value:function(){var t=this;return(0,r.throttle)((function(){t.renderedPages=t.computeRenderedPages(),t.requestUpdate()}),100,null)}},{kind:"method",key:"computePageTops",value:function(t,e){var n,r={},i=e,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ot(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r[a.index]=i,i+=a.heightInches+e}}catch(t){o.e(t)}finally{o.f()}return r}},{kind:"method",key:"computeDefaultScale",value:function(t){var e=this.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);return Math.min(1,e/(t.widthInches+2*this.SPACING_IN))||1}},{kind:"method",key:"computeWorldDimensions",value:function(){return{width:Math.max.apply(Math,Y(this.pages.map((function(t){return t.widthInches}))))+2*this.SPACING_IN,height:(0,r.sum)(this.pages.map((function(t){return t.heightInches})))+(this.pages.length+1)*this.SPACING_IN}}},{kind:"method",key:"computeVisiblePages",value:function(){var t=this;return this.pages.filter((function(e){var n=t.pageTops[e.index],r=n+e.heightInches,i=t.visibleRegion.top;return n<=i+t.visibleRegion.height&&r>=i}))}},{kind:"method",key:"updateViewportOnZoom",value:function(t,e){var n=this,r=n.scrollTop,i=n.scrollLeft,o=this.htmlDimensionsCacher.clientWidth,a=this.htmlDimensionsCacher.clientHeight,s=t/e,u=this.scaleCenter.x,c=this.scaleCenter.y,l=s*(i+u*o),h=s*(r+c*a);n.scrollTop=h-c*a,n.scrollLeft=l-u*o,this.updateVisibleRegion()}},{kind:"field",key:"attachScrollListeners",value:function(){var t=this;return function(){t.addEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.attach()}}},{kind:"field",key:"detachScrollListeners",value:function(){var t=this;return function(){t.removeEventListener("scroll",t.updateVisibleRegion),t.scrollClassAdder.detach()}}}]}}),k.oi),ft=n(3609);function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gt(t,e){return t.split(" ").map((function(t){return t+e})).join(" ")}function mt(t){var e,n;return void 0!==t.clientX?(e=t.clientX,n=t.clientY):void 0!==t.screenX?(e=t.screenX,n=t.screenY):void 0!==t.targetTouches?(e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY):void 0===t.originalEvent?console.error("don't understand x and y for "+t.type,t):void 0!==t.originalEvent.clientX?(e=t.originalEvent.clientX,n=t.originalEvent.clientY):void 0!==t.originalEvent.screenX?(e=t.originalEvent.screenX,n=t.originalEvent.screenY):void 0!==t.originalEvent.targetTouches&&(e=t.originalEvent.targetTouches[0].pageX,n=t.originalEvent.targetTouches[0].pageY),{left:e,top:n}}var bt={dragSelector:">:first",acceptPropagatedEvent:!0,preventDefault:!0,dragstart:"mousedown touchstart",dragcontinue:"mousemove touchmove",dragend:"mouseup touchend",dragMinDistance:5,namespace:".ds",scrollWindow:!1},yt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dt(this,t),vt(this,"_dragStartHandler",(function(t){return!!n._shouldAbort()||!(t.which>1||!n.settings.acceptPropagatedEvent&&t.target!=n.handling_element[0])&&(n.lastCoord=n.firstCoord=mt(t),n.handling_element.on(n.settings.dragcontinue,n._dragContinueHandler),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].addEventListener(t,n._dragEndHandler,!0)})),n.settings.preventDefault?(t.preventDefault(),!1):void 0)})),vt(this,"_dragContinueHandler",(function(t){if(n._shouldAbort())return!0;var e=mt(t),r=e.left-n.lastCoord.left,i=e.top-n.lastCoord.top,o=n.settings.scrollWindow?ft(window):n.handling_element;return o.scrollLeft(o.scrollLeft()-r),o.scrollTop(o.scrollTop()-i),n.lastCoord=e,n.settings.preventDefault?(t.preventDefault(),!1):void 0})),vt(this,"_dragEndHandler",(function(t){if(n._shouldAbort())return!0;n.handling_element.off(n.settings.dragcontinue).off(n.settings.dragend),n.settings.dragend.split(" ").forEach((function(t){n.handling_element[0].removeEventListener(t,n._dragEndHandler,!0)}));var e={left:Math.abs(n.lastCoord.left-n.firstCoord.left),top:Math.abs(n.lastCoord.top-n.firstCoord.top)},r=Math.max(e.left,e.top);return n.settings.preventDefault&&r>n.settings.dragMinDistance?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),!1):void 0})),this.handling_element=ft(e),this.settings=ft.extend({},bt,r||{}),this.firstCoord={left:0,top:0},this.lastCoord={left:0,top:0},this.settings.dragstart=gt(this.settings.dragstart,this.settings.namespace),this.settings.dragcontinue=gt(this.settings.dragcontinue,this.settings.namespace),this.handling_element.find(this.settings.dragSelector).on(this.settings.dragstart,this._dragStartHandler)}var e,n;return e=t,(n=[{key:"_shouldAbort",value:function(){return!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator)}}])&&pt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),wt=n(3609);function _t(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function xt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){_t(o,r,i,a,s,"next",t)}function s(t){_t(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var kt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.mode1UpLit=new ht(n,e),this.$el=wt(this.mode1UpLit).addClass("br-mode-1up__root BRmode1up"),this.everShown=!1}var e,n;return e=t,(n=[{key:"$brContainer",get:function(){return this.br.refs.$brContainer}},{key:"prepare",value:function(){var t=this,e=this.br.currentIndex();this.$brContainer.empty().css({overflow:"hidden"}).append(this.$el),setTimeout(xt(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.everShown){n.next=7;break}return t.mode1UpLit.initFirstRender(e),t.everShown=!0,t.mode1UpLit.requestUpdate(),n.next=6,t.mode1UpLit.updateComplete;case 6:new yt(t.mode1UpLit,{preventDefault:!0,dragSelector:".br-mode-1up__visible-world",dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"});case 7:t.mode1UpLit.jumpToIndex(e);case 8:case"end":return n.stop()}}),n)})))),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t,e,n,r){var i=Math.abs(this.br.currentIndex()-t),o=!r&&i<=4;this.mode1UpLit.jumpToIndex(t,{smooth:o})}},{key:"zoom",value:function(t){switch(t){case"in":this.mode1UpLit.zoomIn();break;case"out":this.mode1UpLit.zoomOut();break;default:console.error("Unsupported direction: ".concat(t))}}},{key:"resizePageView",value:function(){this.mode1UpLit.htmlDimensionsCacher.updateClientSizes(),this.mode1UpLit.requestUpdate()}}])&&Pt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ct=(n(9337),n(3609));function St(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?St(Object(n),!0).forEach((function(e){Tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var It=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n,this.leafEdgeL=null,this.leafEdgeR=null,this.pageContainers={},this.smoothZoomer=null,this._scale=1,this.scaleCenter={x:.5,y:.5},this.scrollClassAdder=null}var e,n;return e=t,(n=[{key:"$container",get:function(){return this.br.refs.$brContainer[0]}},{key:"$visibleWorld",get:function(){var t;return null===(t=this.br.refs.$brTwoPageView)||void 0===t?void 0:t[0]}},{key:"scale",get:function(){return this._scale},set:function(t){this.$visibleWorld.style.transform="scale(".concat(t,")"),this.updateViewportOnZoom(t,this._scale),this._scale=t}},{key:"jumpToIndex",value:function(t){t<Math.min(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)?this.flipBackToIndex(t):t>Math.max(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR)&&this.flipFwdToIndex(t)}},{key:"drawLeafs",value:function(){var t=this.br.refs.$brTwoPageView,e=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;this.createPageContainer(e).$container.css(this.leftLeafCss).appendTo(t),this.createPageContainer(n).$container.css(this.rightLeafCss).appendTo(t),this.displayedIndices=[this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR],this.br.displayedIndices=this.displayedIndices,this.br.trigger("pageChanged")}},{key:"zoom",value:function(t){this.br.stopFlipAnimations(),this.calculateReductionFactors();var e=this.br.nextReduce(this.br.reduce,t,this.br.twoPage.reductionFactors);if(this.br.reduce!=e.reduce||this.br.twoPage.autofit!=e.autofit){this.br.twoPage.autofit=e.autofit,this.br.reduce=e.reduce,this.br.pageScale=this.br.reduce;var n=this.getViewCenter();this.prepare(n.percentageX,n.percentageY,!0)}}},{key:"resizeSpread",value:function(){var t,e,n,r;this.br.resizeBRcontainer(!1),this.calculateSpreadSize(),null===(t=this.br.refs)||void 0===t||t.$brTwoPageView.css(this.mainContainerCss),this.centerView(),Ct(this.br.twoPage.coverDiv).css(this.spreadCoverCss);var i=this.br.refs.$brTwoPageView;null===(e=i.find(".BRleafEdgeR"))||void 0===e||e.css(this.leafEdgeRCss),null===(n=i.find(".BRleafEdgeL"))||void 0===n||n.css(this.leafEdgeLCss),null===(r=i.find(".BRgutter"))||void 0===r||r.css(this.spineCss);var o=this.br.twoPage.currentIndexL,a=this.br.twoPage.currentIndexR;this.pageContainers[o].$container.css(this.leftLeafCss),this.pageContainers[a].$container.css(this.rightLeafCss)}},{key:"prepare",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.br.reduce,a=this.br.displayedIndices;this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css("overflow","auto");var s=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),u=this.book.getSpreadIndices(s);this.br.twoPage.currentIndexL=u[0],this.br.twoPage.currentIndexR=u[1],this.calculateSpreadSize();var c=o==this.br.reduce,l=a==this.br.displayedIndices,h=!l||l&&!c;(i||h)&&(this.prunePageContainers(),this.prefetch()),this.br.refs.$brTwoPageView=this.br.refs.$brTwoPageView||Ct('<div class="BRtwopageview"></div>');var f=this.br.refs.$brTwoPageView;f.empty(),f[0].style.transformOrigin="0 0",this.br.refs.$brContainer.append(f),this.dragScrollable=this.dragScrollable||new yt(this.br.refs.$brContainer[0],{preventDefault:!0,dragstart:"mousedown",dragcontinue:"mousemove",dragend:"mouseup"}),this.attachMouseHandlers(),null===(n=this.br.refs)||void 0===n||n.$brTwoPageView.css(this.mainContainerCss),this.br.twoPage.totalWidth<this.br.refs.$brContainer.prop("clientWidth")&&(t=.5),this.br.twoPage.totalHeight<this.br.refs.$brContainer.prop("clientHeight")&&(e=.5),this.centerView(t,e),this.br.twoPage.coverDiv=document.createElement("div"),Ct(this.br.twoPage.coverDiv).attr("class","BRbookcover").css(this.spreadCoverCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeR=document.createElement("div"),this.leafEdgeR.className="BRleafEdgeR",Ct(this.leafEdgeR).css(this.leafEdgeRCss).appendTo(this.br.refs.$brTwoPageView),this.leafEdgeL=document.createElement("div"),this.leafEdgeL.className="BRleafEdgeL",Ct(this.leafEdgeL).css(this.leafEdgeLCss).appendTo(this.br.refs.$brTwoPageView);var d=document.createElement("div");Ct(d).attr("class","BRgutter").css(this.spineCss).appendTo(this.br.refs.$brTwoPageView),this.preparePopUp(),this.br.displayedIndices=[],this.drawLeafs(),this.br.updateBrClasses(),this.smoothZoomer=this.smoothZoomer||new U(this),this.smoothZoomer.attach(),this.scrollClassAdder||(this.scrollClassAdder=new q(this.$container,"BRscrolling-active")),this.scrollClassAdder.detach(),this.scrollClassAdder.element=this.$container,this.scrollClassAdder.attach(),this.htmlDimensionsCacher=this.htmlDimensionsCacher||new z(this.$container)}},{key:"unprepare",value:function(){this.smoothZoomer.detach(),this.scrollClassAdder.detach()}},{key:"updateViewportOnZoom",value:function(t,e){var n,r,i=this.br.refs.$brContainer[0],o=i.scrollTop,a=i.scrollLeft,s=this.htmlDimensionsCacher.clientWidth,u=this.htmlDimensionsCacher.clientHeight,c=t/e,l=this.scaleCenter.x,h=this.scaleCenter.y,f=c*(a+l*s),d=c*(o+h*u);i.scrollTop=d-h*u,i.scrollLeft=f-l*s,null===(n=this.pageContainers[this.br.twoPage.currentIndexL])||void 0===n||n.update({reduce:this.br.reduce/t}),null===(r=this.pageContainers[this.br.twoPage.currentIndexR])||void 0===r||r.update({reduce:this.br.reduce/t})}},{key:"prunePageContainers",value:function(){for(var t in this.pageContainers)t!=this.br.twoPage.currentIndexL&&t!=this.br.twoPage.currentIndexR&&Ct(this.pageContainers[t].$container).remove(),(t<this.br.twoPage.currentIndexL-4||t>this.br.twoPage.currentIndexR+4)&&delete this.pageContainers[t]}},{key:"preparePopUp",value:function(){var t=this;this.br.twoPagePopUp=document.createElement("div"),this.br.twoPagePopUp.className="BRtwoPagePopUp",Ct(this.br.twoPagePopUp).css({zIndex:"1000"}).appendTo(this.br.refs.$brContainer),Ct(this.br.twoPagePopUp).hide();for(var e=[{$leafEdge:Ct(this.leafEdgeL),jumpIndexForPageX:this.jumpIndexForLeftEdgePageX.bind(this),leftOffset:function(){return 120-Ct(t.br.twoPagePopUp).width()}},{$leafEdge:Ct(this.leafEdgeR),jumpIndexForPageX:this.jumpIndexForRightEdgePageX.bind(this),leftOffset:function(){return-120}}],n=function(){var e=a[i],n=e.$leafEdge,s=e.jumpIndexForPageX,u=e.leftOffset;n.on("mouseenter",(function(){return Ct(t.br.twoPagePopUp).show()})),n.on("mouseleave",(function(){return Ct(t.br.twoPagePopUp).hide()})),n.on("click",(function(e){t.br.trigger(o.stop),t.br.jumpToIndex(s(e.pageX))})),n.on("mousemove",(function(e){var n=(0,r.clamp)(s(e.pageX),0,t.book.getNumLeafs()-1);Ct(t.br.twoPagePopUp).text("View ".concat(t.book.getPageName(n))),Ct(t.br.twoPagePopUp).css({left:"".concat(e.pageX-t.br.refs.$brContainer.offset().left+t.br.refs.$brContainer.scrollLeft()+u(),"px"),top:"".concat(e.pageY-t.br.refs.$brContainer.offset().top+t.br.refs.$brContainer.scrollTop(),"px")})}))},i=0,a=e;i<a.length;i++)n()}},{key:"setSpreadIndices",value:function(){var t=(0,r.clamp)(this.br.firstIndex,this.br.firstDisplayableIndex(),this.br.lastDisplayableIndex()),e=this.book.getSpreadIndices(t);this.br.twoPage.currentIndexL=e[0],this.br.twoPage.currentIndexR=e[1]}},{key:"calculateSpreadSize",value:function(){var t,e=this.br.twoPage.currentIndexL,n=this.br.twoPage.currentIndexR;t=this.br.twoPage.autofit?this.getIdealSpreadSize(e,n):this.getSpreadSizeFromReduce(e,n,this.br.reduce),this.br.twoPage.height=t.height||0,this.br.twoPage.width=t.width||0,this.br.twoPage.scaledWL=this.getPageWidth(e)||0,this.br.twoPage.scaledWR=this.getPageWidth(n)||0,this.br.twoPage.edgeWidth=t.totalLeafEdgeWidth,this.br.twoPage.leafEdgeWidthL=this.leafEdgeWidth(this.br.twoPage.currentIndexL),this.br.twoPage.leafEdgeWidthR=this.br.twoPage.edgeWidth-this.br.twoPage.leafEdgeWidthL,this.br.twoPage.bookCoverDivWidth=this.coverWidth(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR),this.br.twoPage.bookCoverDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding;var r=this.gutterOffsetForIndex(e),i=this.br.twoPage.scaledWL-r+this.br.twoPage.leafEdgeWidthL,o=this.br.twoPage.scaledWR+r+this.br.twoPage.leafEdgeWidthR,a=Math.max(i,o);this.br.twoPage.totalWidth=2*(a+this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.totalHeight=this.br.twoPage.height+2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding),this.br.twoPage.middle=this.br.twoPage.totalWidth>>1,this.br.twoPage.gutter=this.br.twoPage.middle+this.gutterOffsetForIndex(e),this.br.twoPage.bookCoverDivLeft=this.br.twoPage.gutter-this.br.twoPage.scaledWL-this.br.twoPage.leafEdgeWidthL-this.br.twoPage.coverInternalPadding,this.br.twoPage.bookCoverDivTop=this.br.twoPage.coverExternalPadding,this.br.twoPage.bookSpineDivHeight=this.br.twoPage.height+2*this.br.twoPage.coverInternalPadding,this.br.twoPage.bookSpineDivLeft=this.br.twoPage.middle-(this.br.twoPage.bookSpineDivWidth>>1),this.br.twoPage.bookSpineDivTop=this.br.twoPage.bookCoverDivTop,this.br.reduce=t.reduce<0?this.br.reduce:t.reduce}},{key:"getIdealSpreadSize",value:function(t,e){var n,r={},i=this.book._getPageHeight(t),o=this.book._getPageWidth(t),a=this.book._getPageHeight(e),s=i/o,u=a/this.book._getPageWidth(e);n=Math.abs(s-1.5)<Math.abs(u-1.5)?s:u;var c=Math.floor(.1*this.book.getNumLeafs()),l=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(c,l);var h=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding)+r.totalLeafEdgeWidth,f=2*(this.br.twoPage.coverInternalPadding+this.br.twoPage.coverExternalPadding);return r.width=this.br.refs.$brContainer.width()-h>>1,r.width=r.width>10?r.width-10:1,r.height=this.br.refs.$brContainer.height()-f,r.height=r.height>15?r.height-15:1,r.height/n<=r.width?r.width=Math.floor(r.height/n)||1:r.height=Math.floor(r.width*n)||1,r.reduce=Math.round((i+a)/2/r.height),r}},{key:"getSpreadSizeFromReduce",value:function(t,e,n){var r={},i=Math.floor(.1*this.book.getNumLeafs()),o=Math.floor(.1*this.br.refs.$brContainer.prop("clientWidth"));r.totalLeafEdgeWidth=Math.min(i,o);var a=this.book._getPageWidth(t)+this.book._getPageWidth(e),s=this.book._getPageHeight(t)+this.book._getPageHeight(e);return r.height=Math.floor(s/2/this.br.reduce),r.width=Math.floor(a/2/this.br.reduce),r.reduce=n,r}},{key:"getAutofitReduce",value:function(){return this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce}},{key:"calculateReductionFactors",value:function(){this.br.twoPage.reductionFactors=this.br.reductionFactors.concat([{reduce:this.getIdealSpreadSize(this.br.twoPage.currentIndexL,this.br.twoPage.currentIndexR).reduce,autofit:"auto"}]),this.br.twoPage.reductionFactors.sort(this.br._reduceSort)}},{key:"flipBackToIndex",value:function(t){if(this.br.constMode1up!=this.br.mode&&!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==t){var e=this.br.twoPage,n=e.currentIndexL,r=e.currentIndexR,i=Math.min(n,r),o=this.book.getPage(i).findPrev({combineConsecutiveUnviewables:!0});if(!o)return;t=o.index,"R"==o.pageSide&&t--}this.br._components.navbar.updateNavIndexThrottled(t);var a=this.book.getSpreadIndices(t);a[0]<this.br.firstDisplayableIndex()||a[1]<this.br.firstDisplayableIndex()||(this.br.animating=!0,"rl"!=this.br.pageProgression?(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1])):(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])))}else alert("error: leafEdgeTmp should be null!")}},{key:"flipLeftToRight",value:function(t,e){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.br.twoPage.currentIndexL,i=this.leafEdgeWidth(this.br.twoPage.currentIndexL),o=this.leafEdgeWidth(t),a=i-o,s=this.getPageWidth(r),u=this.getPageWidth(t),c=this.getPageWidth(e),l=this.top(),h=this.br.twoPage.middle+this.gutterOffsetForIndex(t),f=this.br.refs.$brTwoPageView,d=h-s-a;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ct(this.br.leafEdgeTmp).css({width:"".concat(a,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(d,"px"),top:"".concat(l,"px"),zIndex:1e3}).appendTo(f),Ct(this.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-s-o,"px")});var p=this.pageContainers[r].$container.offset().left,v="".concat(f.prop("clientWidth")-p-this.pageContainers[r].$container.width()+f.offset().left-2,"px");this.pageContainers[r].$container.css({right:v,left:""}),Ct(this.br.leafEdgeTmp).animate({left:h},this.br.flipSpeed,"easeInSine"),this.pageContainers[r].$container.animate({width:"0px"},this.br.flipSpeed,"easeInSine",(function(){Ct(n.br.leafEdgeTmp).animate({left:"".concat(h+c,"px")},n.br.flipSpeed,"easeOutSine"),n.br.$(".BRgutter").css({left:"".concat(h-.5*n.br.twoPage.bookSpineDivWidth,"px")}),n.pageContainers[e].$container.animate({width:"".concat(c,"px")},n.br.flipSpeed,"easeOutSine",(function(){var r;n.pageContainers[t].$container.css("zIndex",2),Ct(n.leafEdgeR).css({width:"".concat(n.br.twoPage.edgeWidth-o,"px"),left:"".concat(h+c,"px")}),Ct(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(h-u-o,"px")}),Ct(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(u+c),"px"),left:"".concat(h-u-o-n.br.twoPage.coverInternalPadding,"px")}),Ct(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=t,n.br.twoPage.currentIndexR=e,n.br.twoPage.scaledWL=u,n.br.twoPage.scaledWR=c,n.br.twoPage.gutter=h,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[t,e],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(t-2),n.createPageContainer(e-2),n.createPageContainer(t-3),n.createPageContainer(e-3)}))}))}},{key:"createPageContainer",value:function(t){return this.pageContainers[t]||(this.pageContainers[t]=this.br._createPageContainer(t)),this.pageContainers[t].update({reduce:this.br.reduce/this.scale}),this.pageContainers[t]}},{key:"flipFwdToIndex",value:function(t){if(!this.br.animating)if(null==this.br.leafEdgeTmp){if(null==t){var e=this.br.twoPage,n=e.currentIndexL,r=e.currentIndexR,i=Math.max(n,r),o=this.book.getPage(i).findNext({combineConsecutiveUnviewables:!0});if(!o)return;t=o.index}if(!(t>this.br.lastDisplayableIndex())){this.br._components.navbar.updateNavIndexThrottled(t),this.br.animating=!0;var a=this.book.getSpreadIndices(t);"rl"!=this.br.pageProgression?(this.prepareFlipRightToLeft(a[0],a[1]),this.flipRightToLeft(a[0],a[1])):(this.prepareFlipLeftToRight(a[0],a[1]),this.flipLeftToRight(a[0],a[1]))}}else alert("error: leafEdgeTmp should be null!")}},{key:"flipRightToLeft",value:function(t,e){var n=this;this.br.refs.$brContainer.addClass("BRpageFlipping");var r=this.leafEdgeWidth(this.br.twoPage.currentIndexL),i=this.br.twoPage.edgeWidth-r,o=this.leafEdgeWidth(t),a=this.br.twoPage.edgeWidth-o,s=i-a,u=this.top(),c=this.getPageWidth(this.br.twoPage.currentIndexR),l=this.br.twoPage.middle+this.gutterOffsetForIndex(t),h=this.br.refs.$brTwoPageView;this.br.leafEdgeTmp=document.createElement("div"),this.br.leafEdgeTmp.className="BRleafEdgeTmp",Ct(this.br.leafEdgeTmp).css({width:"".concat(s,"px"),height:"".concat(this.br.twoPage.height,"px"),left:"".concat(l+c,"px"),top:"".concat(u,"px"),zIndex:1e3}).appendTo(h);var f=this.getPageWidth(t),d=this.getPageWidth(e);Ct(this.leafEdgeR).css({width:"".concat(a,"px"),left:"".concat(l+d,"px")});var p=this.br.flipSpeed;Ct(this.br.leafEdgeTmp).animate({left:l},p,"easeInSine"),this.pageContainers[this.br.twoPage.currentIndexR].$container.animate({width:"0px"},p,"easeInSine",(function(){n.br.$("BRgutter").css({left:"".concat(l-.5*n.br.twoPage.bookSpineDivWidth,"px")}),Ct(n.br.leafEdgeTmp).animate({left:"".concat(l-f-s,"px")},p,"easeOutSine"),n.pageContainers[t].$container.css({right:"".concat(h.prop("clientWidth")-l,"px"),left:""}),n.pageContainers[t].$container.animate({width:"".concat(f,"px")},p,"easeOutSine",(function(){var r;n.pageContainers[e].$container.css("zIndex",2),Ct(n.leafEdgeL).css({width:"".concat(o,"px"),left:"".concat(l-f-o,"px")}),Ct(n.br.twoPage.coverDiv).css({width:"".concat(n.coverWidth(f+d),"px"),left:"".concat(l-f-o-n.br.twoPage.coverInternalPadding,"px")}),Ct(n.br.leafEdgeTmp).remove(),n.br.leafEdgeTmp=null,n.br.twoPage.currentIndexL=t,n.br.twoPage.currentIndexR=e,n.br.twoPage.scaledWL=f,n.br.twoPage.scaledWR=d,n.br.twoPage.gutter=l,n.br.updateFirstIndex(n.br.twoPage.currentIndexL),n.br.displayedIndices=[t,e],n.prunePageContainers(),n.br.animating=!1,n.resizeSpread(),n.br.animationFinishedCallback&&(n.br.animationFinishedCallback(),n.br.animationFinishedCallback=null),n.br.refs.$brContainer.removeClass("BRpageFlipping"),null===(r=n.br.textSelectionPlugin)||void 0===r||r.stopPageFlip(n.br.refs.$brContainer),n.centerView(),n.br.trigger("pageChanged"),n.prunePageContainers(),n.createPageContainer(t+2),n.createPageContainer(e+2),n.createPageContainer(t+3),n.createPageContainer(e+3)}))}))}},{key:"attachMouseHandlers",value:function(){var t=this;this.br.refs.$brTwoPageView.off("mouseup").on("mouseup",(function(e){if(3==e.which)return!t.br.protected;var n=Ct(e.target).closest(".BRpagecontainer");"L"==n.data("side")?t.br.left():"R"==n.data("side")&&t.br.right()}))}},{key:"prepareFlipLeftToRight",value:function(t,e){this.createPageContainer(t,!0),this.createPageContainer(e,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(t),c={left:"".concat(u-s,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1};this.pageContainers[t].$container.css(c).appendTo(n);var l={left:"".concat(u,"px"),right:"",top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0",zIndex:2};this.pageContainers[e].$container.css(l).appendTo(n)}},{key:"prepareFlipRightToLeft",value:function(t,e){this.createPageContainer(t,!0),this.createPageContainer(e,!0);var n=this.br.refs.$brTwoPageView,r=this.book._getPageHeight(e),i=this.book._getPageWidth(e),o=this.br.twoPage.middle,a=this.top(),s=this.br.twoPage.height*i/r,u=o+this.gutterOffsetForIndex(t);Ct(this.pageContainers[e].$container).css({left:"".concat(u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"".concat(s,"px"),zIndex:1}).appendTo(n),r=this.book._getPageHeight(t),i=this.book._getPageWidth(t),s=this.br.twoPage.height*i/r,Ct(this.pageContainers[t].$container).css({right:"".concat(n.prop("clientWidth")-u,"px"),top:"".concat(a,"px"),height:this.br.twoPage.height,width:"0px",zIndex:2}).appendTo(n)}},{key:"getPageWidth",value:function(t){var e=this.book._getPageHeight(t),n=this.book._getPageWidth(t);return Math.floor(this.br.twoPage.height*n/e)}},{key:"gutter",value:function(){return this.br.twoPage.middle+this.gutterOffsetForIndex(this.br.twoPage.currentIndexL)}},{key:"top",value:function(){return this.br.twoPage.coverExternalPadding+this.br.twoPage.coverInternalPadding}},{key:"coverWidth",value:function(t){return t+this.br.twoPage.edgeWidth+2*this.br.twoPage.coverInternalPadding}},{key:"getViewCenter",value:function(){var t=this.br.refs,e=t.$brContainer,n=t.$brTwoPageView,r={},i=e.offset(),o=n.offset();return r.percentageX=(i.left-o.left+(e.prop("clientWidth")>>1))/this.br.twoPage.totalWidth,r.percentageY=(i.top-o.top+(e.prop("clientHeight")>>1))/this.br.twoPage.totalHeight,r}},{key:"centerView",value:function(t,e){void 0===t&&(t=.5),void 0===e&&(e=.5);var n=this.br.refs.$brTwoPageView.width(),r=this.br.refs.$brContainer.prop("clientWidth"),i=t*n,o=this.br.refs.$brTwoPageView.height(),a=this.br.refs.$brContainer.prop("clientHeight"),s=e*o;n<r?this.br.refs.$brTwoPageView.css("left","".concat((r>>1)-i,"px")):(this.br.refs.$brTwoPageView.css("left",0),this.br.refs.$brContainer.scrollLeft(i-(r>>1))),o<a?this.br.refs.$brTwoPageView.css("top","".concat((a>>1)-s,"px")):(this.br.refs.$brTwoPageView.css("top",0),this.br.refs.$brContainer.scrollTop(s-(a>>1)))}},{key:"flipAreaHeight",value:function(){return Math.floor(this.br.twoPage.height)}},{key:"flipAreaWidth",value:function(){var t=.15*this.br.twoPage.width;return Math.floor((0,r.clamp)(t,10,100))}},{key:"flipAreaTop",value:function(){return Math.floor(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding)}},{key:"leftFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter-this.br.twoPage.scaledWL)}},{key:"rightFlipAreaLeft",value:function(){return Math.floor(this.br.twoPage.gutter+this.br.twoPage.scaledWR-this.flipAreaWidth())}},{key:"setHilightCss",value:function(t,e,n,r,i,o){var a,s=this.book._getPageHeight(e),u=this.book._getPageWidth(e),c=this.br.twoPage.height/s,l=Math.floor(u*c),h=this.gutter();a="L"==this.book.getPageSide(e)?h-l:h;var f=this.top();Ct(t).css({width:"".concat((r-n)*c,"px"),height:"".concat((o-i)*c,"px"),left:"".concat(a+n*c,"px"),top:"".concat(f+i*c,"px")})}},{key:"gutterOffsetForIndex",value:function(t){var e=Math.floor((t/this.book.getNumLeafs()-.5)*this.br.twoPage.edgeWidth);return"rl"==this.br.pageProgression&&(e*=-1),e}},{key:"leafEdgeWidth",value:function(t){return"L"==this.book.getPageSide(t)&&"rl"!=this.br.pageProgression?Math.floor(t/this.book.getNumLeafs()*this.br.twoPage.edgeWidth+.5):Math.floor((1-t/this.book.getNumLeafs())*this.br.twoPage.edgeWidth+.5)}},{key:"jumpIndexForLeftEdgePageX",value:function(t){var e;return"rl"!=this.br.pageProgression?(e=this.br.twoPage.currentIndexL-10*(Ct(this.leafEdgeL).offset().left+Ct(this.leafEdgeL).width()-t),e=(0,r.clamp)(Math.round(e),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2)):(e=this.br.twoPage.currentIndexL+10*(Ct(this.leafEdgeL).offset().left+Ct(this.leafEdgeL).width()-t),e=(0,r.clamp)(Math.round(e),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex()))}},{key:"jumpIndexForRightEdgePageX",value:function(t){var e;return"rl"!=this.br.pageProgression?(e=this.br.twoPage.currentIndexL+10*(t-Ct(this.leafEdgeR).offset().left),e=(0,r.clamp)(Math.round(e),this.br.twoPage.currentIndexL+2,this.br.lastDisplayableIndex())):(e=this.br.twoPage.currentIndexL-10*(t-Ct(this.leafEdgeR).offset().left),e=(0,r.clamp)(Math.round(e),this.br.firstDisplayableIndex(),this.br.twoPage.currentIndexL-2))}},{key:"prefetch",value:function(){for(var t=Math.max,e=Math.min,n=this.book,r=this.br.twoPage,i=r.currentIndexL,o=r.currentIndexR,a=n.getPage(t(0,e(i,o))),s=n.getPage(t(i,o)),u=0;u<4;u++)a&&(this.createPageContainer(a.index),a=a.findPrev({combineConsecutiveUnviewables:!0})),s&&(this.createPageContainer(s.index),s=s.findNext({combineConsecutiveUnviewables:!0}))}},{key:"baseLeafCss",get:function(){return{position:"absolute",right:"",top:"".concat(this.top(),"px"),zIndex:2}}},{key:"heightCss",get:function(){return{height:"".concat(this.br.twoPage.height,"px")}}},{key:"leftLeafCss",get:function(){return Et(Et(Et({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter-this.br.twoPage.scaledWL,"px"),width:"".concat(this.br.twoPage.scaledWL,"px")})}},{key:"leafEdgeLCss",get:function(){return Et(Et({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthL,"px"),left:"".concat(this.br.twoPage.bookCoverDivLeft+this.br.twoPage.coverInternalPadding,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthL?"none":null})}},{key:"rightLeafCss",get:function(){return Et(Et(Et({},this.baseLeafCss),this.heightCss),{},{left:"".concat(this.br.twoPage.gutter,"px"),width:"".concat(this.br.twoPage.scaledWR,"px")})}},{key:"leafEdgeRCss",get:function(){return Et(Et({},this.heightCss),{},{width:"".concat(this.br.twoPage.leafEdgeWidthR,"px"),left:"".concat(this.br.twoPage.scaledWL+this.br.twoPage.scaledWR+this.br.twoPage.leafEdgeWidthL,"px"),top:"".concat(this.br.twoPage.bookCoverDivTop+this.br.twoPage.coverInternalPadding,"px"),border:0===this.br.twoPage.leafEdgeWidthR?"none":null})}},{key:"mainContainerCss",get:function(){return{height:"".concat(this.br.twoPage.totalHeight,"px"),width:"".concat(this.br.twoPage.totalWidth,"px"),position:"absolute"}}},{key:"spreadCoverCss",get:function(){return{width:"".concat(this.br.twoPage.bookCoverDivWidth,"px"),height:"".concat(this.br.twoPage.bookCoverDivHeight,"px"),visibility:"visible"}}},{key:"spineCss",get:function(){return{width:"".concat(this.br.twoPage.bookSpineDivWidth,"px"),height:"".concat(this.br.twoPage.bookSpineDivHeight,"px"),left:"".concat(this.br.twoPage.gutter-this.br.twoPage.bookSpineDivWidth/2,"px"),top:"".concat(this.br.twoPage.bookSpineDivTop,"px")}}}])&&Rt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ot=n(3609);function Mt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return At(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var jt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.br=e,this.book=n}var e,n;return e=t,(n=[{key:"drawLeafs",value:function(t){var e,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=Mt(u.pagesIterator({combineConsecutiveUnviewables:!0}));try{for(g.s();!(i=g.n()).done;){var m=i.value,b=this.br.thumbWidth;l+(b+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},(e=s(m.height*this.br.thumbWidth/m.width))>v[d].height&&(v[d].height=e),0===p&&(h+=this.br.thumbPadding+v[d].height),(l+=b+this.br.thumbPadding)>f&&(f=l),p++,m.index==t&&(n=h-this.br.thumbPadding-v[d].height)}}catch(t){g.e(t)}finally{g.f()}this.br.refs.$brPageViewEl.height(h);var y=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(),x=0,P=0,k=[],C=[],S=u.getNumLeafs()-1,E=0,T=0;T<v.length;T++)v[T]&&(P+=this.br.thumbPadding+v[T].height,(x>=w&&x<=_||P>=w&&P<=_||x<=w&&P>=_)&&(k.push(T),v[T].leafs[0].num<S&&(S=v[T].leafs[0].num),v[T].leafs[v[T].leafs.length-1].num>E&&(E=v[T].leafs[v[T].leafs.length-1].num)),x>v[T].top&&(v[T].top=x),x=P);for(var R=k[0],I=k[k.length-1],O=1;O<this.br.thumbRowBuffer+1;O++)I+O<v.length&&k.push(I+O);for(var M=1;M<this.br.thumbRowBuffer;M++)R-M>=0&&k.push(R-M);k.sort();for(var A=0,$=k;A<$.length;A++){var j=$[A];if((0,r.notInArray)(j,this.br.displayedRows)){if(!v[j])continue;var L,D=Mt(v[j].leafs);try{var N=function(){var t=L.value,e=t.num,n=t.left,r=a.br.thumbWidth,i=s(u.getPageHeight(e)*a.br.thumbWidth/u.getPageWidth(e)),l=v[j].top,h=n+y;"rl"==a.br.pageProgression&&(h=c-r-h),h+=a.br.thumbPadding,C.push(e);var f=s(u.getPageWidth(e)/a.br.thumbWidth),d=2*Math.round(f/2),p=a.br._createPageContainer(e).update({dimensions:{width:r,height:i,top:l,left:h},reduce:d});p.$container.data("leaf",e).on("mouseup",(function(t){a.br.updateFirstIndex(e,{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(Ot(".viewmode"),"twopg","Two-page view"),a.br.trigger(o.fragmentChange),t.stopPropagation()})),a.br.refs.$brPageViewEl.append(p.$container)};for(D.s();!(L=D.n()).done;)N()}catch(t){D.e(t)}finally{D.f()}}}var B,U=Mt(this.br.displayedRows);try{for(U.s();!(B=U.n()).done;){var F=B.value;if((0,r.notInArray)(F,k)){var W,z,H=Mt(null===(W=v[F])||void 0===W?void 0:W.leafs);try{for(H.s();!(z=H.n()).done;){var V,q=z.value.num;null!=C&&C.includes(q)||null===(V=this.br.$(".pagediv".concat(q)))||void 0===V||V.remove()}}catch(t){H.e(t)}finally{H.f()}}}}catch(t){U.e(t)}finally{U.f()}var X=this.br.currentIndex();X<S?this.br.updateFirstIndex(S):X>E&&this.br.updateFirstIndex(E),this.br.displayedRows=k.slice(),this.br.$(".BRpagedivthumb_highlight").removeClass("BRpagedivthumb_highlight"),this.br.$(".pagediv"+this.br.currentIndex()).addClass("BRpagedivthumb_highlight")}},{key:"lazyLoadImage",value:function(t){var e=Ot(t).data("leaf"),n=Ot(t).data("reduce"),r=this.br.imageCache.image(e,n),i=Ot(t).parent();Ot(i).append(r),Ot(t).remove()}},{key:"zoom",value:function(t){var e=this.br.thumbColumns;switch(t){case"in":this.br.thumbColumns-=1;break;case"out":this.br.thumbColumns+=1;break;default:console.error("Unsupported direction: ".concat(t))}this.br.thumbColumns=(0,r.clamp)(this.br.thumbColumns,this.br.options.thumbMinZoomColumns,this.br.options.thumbMaxZoomColumns),this.br.thumbColumns!=e&&(this.br.displayedRows=[],this.prepare())}},{key:"getThumbnailWidth",value:function(t){var e=(t+1)*this.br.thumbPadding,n=(this.br.refs.$brPageViewEl.width()-e)/(t+.5),r=Math.floor(n);return r>0?r:100}},{key:"prepare",value:function(){this.br.refs.$brContainer.empty(),this.br.refs.$brContainer.css({overflowY:"scroll",overflowX:"auto"}),this.br.refs.$brPageViewEl=Ot("<div class='BRpageview'></div>"),this.br.refs.$brContainer.append(this.br.refs.$brPageViewEl),this.dragScrollable=this.dragScrollable||new yt(this.br.refs.$brContainer[0],{preventDefault:!0}),this.br.bindGestures(this.br.refs.$brContainer),this.br.thumbWidth=this.getThumbnailWidth(this.br.thumbColumns),this.br.reduce=this.book.getPageWidth(0)/this.br.thumbWidth,this.br.displayedRows=[],this.drawLeafs(this.br.currentIndex()),this.br.updateBrClasses()}},{key:"jumpToIndex",value:function(t){for(var e=this,n=Math.floor,r=this.book,i=this.br.refs.$brContainer.prop("scrollWidth")-20,o=this.br.thumbWidth,a=0,s=0,u=0,c=0,l=0,h=0;h<=t;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(t),this.br.refs.$brContainer.prop("scrollTop")==a?this.br.drawLeafs():(this.br.animating=!0,this.br.refs.$brContainer.stop(!0).animate({scrollTop:a},"fast",(function(){e.br.animating=!1})))}}])&&$t(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Lt=(n(4914),{floor:Math.floor,decr:function(t){return t-1}}),Dt={floor:function(t){return Math.pow(2,Math.floor(Math.log2(Math.max(1,t))))},decr:function(t){return Math.pow(2,Math.log2(t)-1)}},Nt={pow2:Dt,integer:Lt},Bt=n(3609);function Ut(t){return function(t){if(Array.isArray(t))return Ft(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ht=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.useSrcSet,i=void 0!==r&&r,o=n.reduceSet,a=void 0===o?Dt:o;Wt(this,t),this.book=e,this.useSrcSet=i,this.reduceSet=a,this.cache={},this.defaultScale=8}var e,n;return e=t,(n=[{key:"image",value:function(t,e){var n=(this.cache[t]||[]).filter((function(t){return t.loaded&&t.reduce<=e}));if(n.length){var r=Math.max.apply(Math,Ut(n.map((function(t){return t.reduce}))));return this._serveImageElement(t,r)}return this._serveImageElement(t,e)}},{key:"imageLoaded",value:function(t,e){var n,r,i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce<=e}));return null!==(r=null==i?void 0:i.loaded)&&void 0!==r&&r}},{key:"getBestLoadedReduce",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=(null===(e=this.cache[t])||void 0===e?void 0:e.filter((function(t){return t.loaded})))||[];if(!r.length)return null;var i=r.filter((function(t){return t.reduce>=n}));if(i.length)return Math.min.apply(Math,Ut(i.map((function(t){return t.reduce}))));var o=r.filter((function(t){return t.reduce<n}));return Math.max.apply(Math,Ut(o.map((function(t){return t.reduce}))))}},{key:"_serveImageElement",value:function(t,e){var n,r=this.reduceSet.floor(e),i=null===(n=this.cache[t])||void 0===n?void 0:n.find((function(t){return t.reduce==r}));i||(i={reduce:r,loaded:!1},(this.cache[t]||(this.cache[t]=[])).push(i));var o=this.book.getPage(t),a=Bt("<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}}])&&zt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Vt=n(9860),qt=n(3609),Xt=n(3609);function Yt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function Gt(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Yt(o,r,i,a,s,"next",t)}function s(t){Yt(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Xt.extend(!0,{},Zt.defaultOptions,t,Zt.optionOverrides);this.setup(e)}function Jt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=function(t){return t.br},a=function(t){return t._overrideable[e]};i(t,n,o,Zt,r,a)}-1!=location.toString().indexOf("_debugShowConsole=true")&&qt((function(){return(new l.E).init()})),Zt.version="5.0.0-52",Zt.constMode1up=1,Zt.constMode2up=2,Zt.constModeThumb=3,Zt.imageCache=null,Zt.constNavAnimationDuration=300,Zt.constResizeAnimationDuration=100,Zt.eventNames=o,Zt.defaultOptions=c,Zt.optionOverrides={},Zt.prototype.setup=function(t){this.options=t,this.numLeafs=void 0,this.enableSearch=!1,this.viewModeOrder=[],this.suppressFragmentChange=!1,this.animationFinishedCallback=null,this.constMode1up=Zt.constMode1up,this.constMode2up=Zt.constMode2up,this.constModeThumb=Zt.constModeThumb,this.reduce=8,this.defaults=t.defaults,this.padding=t.padding,this.reduceSet=Nt[t.reduceSet],this.reduceSet||(console.warn("Invalid reduceSet ".concat(t.reduceSet,". Ignoring.")),this.reduceSet=Nt[c.reduceSet]),this.mode=null,this.prevReadMode=null,this.ui=t.ui,this.uiAutoHide=t.uiAutoHide,this.thumbWidth=100,this.thumbRowBuffer=t.thumbRowBuffer,this.thumbColumns=t.thumbColumns,this.thumbMaxLoading=t.thumbMaxLoading,this.thumbPadding=t.thumbPadding,this.displayedRows=[],this.displayedIndices=[],this.animating=!1,this.flipSpeed=t.flipSpeed,this.flipDelay=t.flipDelay,this.twoPagePopUp=null,this.leafEdgeTmp=null,this.firstIndex=null,this.lastDisplayableIndex2up=null,this.isFullscreenActive=t.startFullscreen||!1,this.lastScroll=null,this.showLogo=t.showLogo,this.logoURL=t.logoURL,this.imagesBaseURL=t.imagesBaseURL,this.reductionFactors=t.reductionFactors,this.onePage=t.onePage,this.twoPage=t.twoPage,this.onePageMinBreakpoint=t.onePageMinBreakpoint,this.bookTitle=t.bookTitle,this.bookUrl=t.bookUrl,this.bookUrlText=t.bookUrlText,this.bookUrlTitle=t.bookUrlTitle,this.titleLeaf=t.titleLeaf,this.metadata=t.metadata,this.thumbnail=t.thumbnail,this.bookUrlMoreInfo=t.bookUrlMoreInfo,this.enableExperimentalControls=t.enableExperimentalControls,this.el=t.el,this.pageProgression=t.pageProgression,this.protected=t.protected,this.getEmbedCode=t.getEmbedCode,this.popup=null,this.data=t.data,this.refs={},this.book=new _(this),t.getNumLeafs&&(this.book.getNumLeafs=t.getNumLeafs.bind(this)),t.getPageWidth&&(this.book.getPageWidth=t.getPageWidth.bind(this)),t.getPageHeight&&(this.book.getPageHeight=t.getPageHeight.bind(this)),t.getPageURI&&(this.book.getPageURI=t.getPageURI.bind(this)),t.getPageSide&&(this.book.getPageSide=t.getPageSide.bind(this)),t.getPageNum&&(this.book.getPageNum=t.getPageNum.bind(this)),t.getPageProp&&(this.book.getPageProp=t.getPageProp.bind(this)),t.getSpreadIndices&&(this.book.getSpreadIndices=t.getSpreadIndices.bind(this)),t.leafNumToIndex&&(this.book.leafNumToIndex=t.leafNumToIndex.bind(this)),this._components={navbar:new u(this),toolbar:new p(this)},this._modes={mode1Up:new kt(this,this.book),mode2Up:new It(this,this.book),modeThumb:new jt(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 Ht(this.book,{useSrcSet:this.options.useSrcSet,reduceSet:this.reduceSet}),this.hasKeyFocus=!0},Zt.prototype.getActivePageContainerElements=function(){var t=Object.values(this._modes.mode2Up.pageContainers).map((function(t){return t.$container[0]})).concat(Object.values(this._modes.mode1Up.mode1UpLit.pageContainerCache).map((function(t){return t.$container[0]})));return this.mode==this.constModeThumb&&(t=t.concat(this.$(".BRpagecontainer").toArray())),t},Zt.prototype.getActivePageContainerElementsForIndex=function(t){var e,n,r,i,o;return[null===(e=this._modes.mode2Up.pageContainers[t])||void 0===e||null===(n=e.$container)||void 0===n?void 0:n[0],null===(r=this._modes.mode1Up.mode1UpLit.pageContainerCache[t])||void 0===r||null===(i=r.$container)||void 0===i?void 0:i[0]].concat((o=this.mode==this.constModeThumb?this.$(".pagediv".concat(t)).toArray():[],function(t){if(Array.isArray(t))return Kt(t)}(o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).filter((function(t){return t}))},Object.defineProperty(Zt.prototype,"activeMode",{get:function(){return{1:this._modes.mode1Up,2:this._modes.mode2Up,3:this._modes.modeThumb}[this.mode]}}),Zt.util=r,Zt.prototype.extendParams=function(t,e){var n=qt.extend({},e);if(void 0!==n.page){var r=this.book.parsePageString(n.page);isNaN(r)||(n.index=r),delete n.page}qt.extend(t,n)},Zt.prototype.initParams=function(){var t={init:!0,pageFound:!1,fragmentChange:!1};if(void 0!==this.titleLeaf&&this.book.getNumLeafs()>2?t.index=this.book.leafNumToIndex(this.titleLeaf):t.index=0,this.defaults){var e=this.paramsFromFragment(this.defaults);void 0!==e.page&&(t.pageFound=!0),this.extendParams(t,e)}if(this.options.enablePageResume){var n=this.getResumeValue();null!==n&&(t.index!==n&&(t.fragmentChange=!0),t.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&&(t.pageFound=!0),this.extendParams(t,i),t.fragmentChange=!0)}if(this.options.enableSearch&&(this.options.goToFirstResult=!t.pageFound,!this.options.initialSearchTerm))if(t.search)this.options.initialSearchTerm=t.search,this.searchTerm=t.search;else{var o=new URLSearchParams(this.readQueryString()).get("q");o&&(this.options.initialSearchTerm=r.decodeURIComponentPlus(o))}return this.suppressFragmentChange=!t.fragmentChange,t},Zt.prototype.getLocationSearch=function(){return window.location.search},Zt.prototype.getLocationHash=function(){return window.location.hash},Zt.prototype.readQueryString=function(){var t=this.getLocationSearch();if(t)return t;var e=this.getLocationHash(),n=e.search(/\?\w+=/);return n>-1?e.slice(n):""},Zt.prototype.getInitialMode=function(t){var e,n;return e=void 0!==t.mode?t.mode:"full"==this.ui&&this.isFullscreenActive||(n=qt(window).width())&&n<=this.onePageMinBreakpoint?this.constMode1up:this.constMode2up,this.canSwitchToMode(e)||(e=this.constMode1up),this.options.defaults&&(e=this.overridesBookMode()),e},Zt.prototype.overridesBookMode=function(){var t=2;switch(this.options.defaults){case"mode/1up":t=this.constMode1up;break;case"mode/2up":t=this.constMode2up;break;case"mode/thumb":t=this.constModeThumb}return t},Zt.prototype.init=function(){this.init.initComplete=!1,this.pageScale=this.reduce;var t=this.initParams();this.firstIndex=t.index?t.index:0,this.isTouchDevice=!!("ontouchstart"in window)||!!("msmaxtouchpoints"in window.navigator),this.refs.$br=qt(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=qt("<div class='BRcontainer' dir='ltr'></div>"),this.refs.$br.append(this.refs.$brContainer),t.mode=this.getInitialMode(t),this.mode=t.mode,this.options.showToolbar&&this.initToolbar(this.mode,this.ui),this.options.showNavbar&&this.initNavbar(),this._components.navbar.switchNavbarControls(),this.resizeBRcontainer(),this.updateFromParams(t),this.initUIStrings(),this.bindNavigationHandlers(),this.setupKeyListeners(),this.lastScroll=(new Date).getTime(),this.refs.$brContainer.on("scroll",this,(function(t){t.data.lastScroll=(new Date).getTime(),t.data.constModeThumb==t.data.mode&&t.data.drawLeafsThrottled()})),this.options.autoResize&&(qt(window).on("resize",this,(function(t){t.data.resize()})),qt(window).on("orientationchange",this,function(t){t.data.resize()}.bind(this))),this.protected&&this.$(".BRicon.share").hide(),this.options.initialSearchTerm||(this.suppressFragmentChange=!1),this.options.startFullscreen&&this.enterFullscreen(!0),this.init.initComplete=!0,this.trigger(Zt.eventNames.PostInit)},Zt.prototype.trigger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n="BookReader:"+t;r.polyfillCustomEvent(window),window.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:{props:e}})),qt(document).trigger(n,e)},Zt.prototype.bind=function(t,e){qt(document).on("BookReader:"+t,e)},Zt.prototype.unbind=function(t,e){qt(document).off("BookReader:"+t,e)},Zt.prototype.resize=function(){if(this.init.initComplete){if(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());else if(this.constModeThumb==this.mode)this._modes.modeThumb.prepare();else if(this.twoPage.autofit)this._modes.mode2Up.prepare();else{var t=this.twoPageGetViewCenter(),e=!1;this.twoPage.totalWidth<this.refs.$brContainer.prop("clientWidth")&&(t.percentageX=.5,e=!0),this.twoPage.totalHeight<this.refs.$brContainer.prop("clientHeight")&&(t.percentageY=.5,e=!0),e&&this._modes.mode2Up.centerView(t.percentageX,t.percentageY)}this.trigger(Zt.eventNames.resize)}},Zt.prototype.setupKeyListeners=function(){var t=this;window.IntersectionObserver&&new IntersectionObserver((function(e){e.forEach((function(e){0===e.intersectionRatio?t.hasKeyFocus=!1:t.hasKeyFocus=!0}))}),{root:null,rootMargin:"0px",threshold:[0,.05,1]}).observe(this.refs.$br[0]),document.addEventListener("keydown",(function(e){if(t.hasKeyFocus&&!(e.getModifierState("Control")||e.getModifierState("Alt")||e.getModifierState("Meta")||e.getModifierState("Win")||r.isInputActive()))switch(e.key){case"Home":e.preventDefault(),t.first();break;case"End":e.preventDefault(),t.last();break;case"ArrowDown":case"PageDown":case"Down":t.constMode2up===t.mode&&(e.preventDefault(),t.next());break;case"ArrowUp":case"PageUp":case"Up":t.constMode2up===t.mode&&(e.preventDefault(),t.prev());break;case"ArrowLeft":case"Left":t.constModeThumb!=t.mode&&(e.preventDefault(),t.left());break;case"ArrowRight":case"Right":t.constModeThumb!=t.mode&&(e.preventDefault(),t.right());break;case"-":case"Subtract":e.preventDefault(),t.zoom(-1);break;case"+":case"=":case"Add":e.preventDefault(),t.zoom(1);break;case"F":case"f":e.preventDefault(),t.toggleFullscreen()}}))},Zt.prototype.drawLeafs=function(){this.constMode1up!=this.mode&&this.activeMode.drawLeafs()},Zt.prototype._createPageContainer=function(t){return new Vt._z(this.book.getPage(t,!1),{isProtected:this.protected,imageCache:this.imageCache,loadingImage:this.imagesBaseURL+"loading.gif"})},Zt.prototype.bindGestures=function(t){var e=this,n=1;t.unbind("touchmove").bind("touchmove",(function(t){t.originalEvent.cancelable&&(n=t.originalEvent.touches.length),t.stopPropagation()})),t.unbind("gesturechange").bind("gesturechange",(function(t){t.preventDefault(),2!==n||(new Date).getTime()-e.lastScroll<500||(t.originalEvent.scale>1.5?e.zoom(1):t.originalEvent.scale<.6&&e.zoom(-1))}))},Zt.prototype.drawLeafsThrottled=r.throttle(Zt.prototype.drawLeafs,250),Zt.prototype.zoom=function(t){var e;1==t?this.activeMode.zoom("in"):this.activeMode.zoom("out"),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},Zt.prototype.resizeBRcontainer=function(t){t?this.refs.$brContainer.animate({top:this.getToolBarHeight(),bottom:this.getFooterHeight()},this.constResizeAnimationDuration,"linear"):this.refs.$brContainer.css({top:this.getToolBarHeight(),bottom:this.getFooterHeight()})},Zt.prototype.centerPageView=function(){var t=this.refs.$brContainer.prop("scrollWidth"),e=this.refs.$brContainer.prop("clientWidth");t>e&&this.refs.$brContainer.prop("scrollLeft",(t-e)/2)},Zt.prototype.quantizeReduce=function(t,e){for(var n=e[0].reduce,r=Math.abs(t-n),i=1;i<e.length;i++){var o=Math.abs(t-e[i].reduce);o<r&&(r=o,n=e[i].reduce)}return n},Zt.prototype.nextReduce=function(t,e,n){if("in"===e){for(var r=0,i=1;i<n.length;i++)n[i].reduce<t&&(r=i);return n[r]}if("out"===e){for(var o=n.length-1,a=o,s=o;s>=0;s--)n[s].reduce>t&&(a=s);return n[a]}if("auto"===e){var u=n.find((function(t){return"auto"==t.autofit}));if(u)return u;for(var c=n.filter((function(t){var e=t.autofit;return"height"==e||"width"==e})),l=null,h=0;h<c.length;h++)(null===l||l.reduce<c[h].reduce)&&(l=c[h]);if(l)return l}else if("height"===e||"width"===e){var f=n.find((function(t){return t.autofit==e}));if(f)return f}return n[0]},Zt.prototype._reduceSort=function(t,e){return t.reduce-e.reduce},Zt.prototype.jumpToPage=function(t){var e=this.book.parsePageString(t);return void 0!==e&&(this.jumpToIndex(e),!0)},Zt.prototype._isIndexDisplayed=function(t){return this.displayedIndices?this.displayedIndices.includes(t):this.currentIndex()==t},Zt.prototype.jumpToIndex=function(t,e,n,r){var i=this.book.getPage(t);if(!i.isViewable&&i.unviewablesStart!=i.index){var o=this._isIndexDisplayed(i.unviewablesStart)?i.findNext({combineConsecutiveUnviewables:!0}).index:i.unviewablesStart;return this.jumpToIndex(o,e,n,r)}this.trigger(Zt.eventNames.stop),this.constMode2up==this.mode?this._modes.mode2Up.jumpToIndex(t):this.constModeThumb==this.mode?this._modes.modeThumb.jumpToIndex(t):this._modes.mode1Up.jumpToIndex(t,e,n,r)},Zt.prototype.getPrevReadMode=function(t){return t===Zt.constMode1up||t===Zt.constMode2up?t:null===this.prevReadMode?Zt.constMode1up:void 0},Zt.prototype.switchMode=function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.suppressFragmentChange,a=void 0!==o&&o,s=i.init,u=void 0!==s&&s,c=i.pageFound,l=void 0!==c&&c;if(this.init.initComplete){if(t===this.mode)return;if(!this.canSwitchToMode(t))return}this.trigger(Zt.eventNames.stop),this.prevReadMode=this.getPrevReadMode(this.mode),this.mode!=t&&(null===(n=(r=this.activeMode).unprepare)||void 0===n||n.call(r)),this.mode=t,this.pageScale!==this.reduce&&(this.reduce=this.pageScale),this.constMode1up==t?this._modes.mode1Up.prepare():this.constModeThumb==t?(this.reduce=this.quantizeReduce(this.reduce,this.reductionFactors),this._modes.modeThumb.prepare()):(!u&&l||this._modes.mode2Up.setSpreadIndices(),this._modes.mode2Up.calculateReductionFactors(),this._modes.mode2Up.prepare(),this._modes.mode2Up.centerView(.5,.5)),this.suppressFragmentChange||a||this.trigger(Zt.eventNames.fragmentChange);var h=t+"PageViewSelected";this.trigger(Zt.eventNames[h]),null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer)},Zt.prototype.updateBrClasses=function(){var t={};t[this.constMode1up]="BRmode1up",t[this.constMode2up]="BRmode2Up",t[this.constModeThumb]="BRmodeThumb",this.refs.$br.removeClass("BRmode1up BRmode2Up BRmodeThumb").addClass(t[this.mode]),this.isFullscreen()?(this.refs.$br.addClass("fullscreenActive"),qt(document.body).addClass("BRfullscreenActive")):(this.refs.$br.removeClass("fullscreenActive"),qt(document.body).removeClass("BRfullscreenActive"))},Zt.prototype.isFullscreen=function(){return this.isFullscreenActive},Zt.prototype.toggleFullscreen=Gt(regeneratorRuntime.mark((function t(){var e,n=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!(n.length>0&&void 0!==n[0])||n[0],!this.isFullscreen()){t.next=6;break}return t.next=4,this.exitFullScreen();case 4:t.next=8;break;case 6:return t.next=8,this.enterFullscreen(e);case 8:case"end":return t.stop()}}),t,this)}))),Zt.prototype.enterFullscreen=Gt(regeneratorRuntime.mark((function t(){var e,n,r,i=this,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=!(o.length>0&&void 0!==o[0])||o[0],r=this.currentIndex(),this.refs.$brContainer.css("opacity",0),n&&(this._fullscreenCloseHandler=function(t){27===t.keyCode&&i.toggleFullscreen()},qt(document).on("keyup",this._fullscreenCloseHandler)),qt(window).width()<=this.onePageMinBreakpoint&&this.switchMode(this.constMode1up),this.isFullscreenActive=!0,this.updateBrClasses(),this.animating=!0,t.next=11,new Promise((function(t){return i.refs.$brContainer.animate({opacity:1},"fast","linear",t)}));case 11:if(!(this.activeMode instanceof kt)){t.next=16;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(r)),this.activeMode.mode1UpLit.requestUpdate(),t.next=16,this.activeMode.mode1UpLit.updateComplete;case 16:this.jumpToIndex(r),this.animating=!1,null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(Zt.eventNames.fragmentChange),this.trigger(Zt.eventNames.fullscreenToggled),setTimeout((function(){i.resize()}),0);case 22:case"end":return t.stop()}}),t,this)}))),Zt.prototype.exitFullScreen=Gt(regeneratorRuntime.mark((function t(){var e,n,r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.refs.$brContainer.css("opacity",0),qt(document).off("keyup",this._fullscreenCloseHandler),n=qt(window).width(),this.options.controls.twoPage.visible&&n<=this.onePageMinBreakpoint&&this.switchMode(this.constMode2up),this.isFullscreenActive=!1,this.trigger(Zt.eventNames.fullscreenToggled),this.updateBrClasses(),this.animating=!0,t.next=11,new Promise((function(t){return r.refs.$brContainer.animate({opacity:1},"fast","linear",t)}));case 11:if(this.resize(),!(this.activeMode instanceof kt)){t.next=17;break}return this.activeMode.mode1UpLit.scale=this.activeMode.mode1UpLit.computeDefaultScale(this.book.getPage(this.currentIndex())),this.activeMode.mode1UpLit.requestUpdate(),t.next=17,this.activeMode.mode1UpLit.updateComplete;case 17:this.animating=!1,null===(e=this.textSelectionPlugin)||void 0===e||e.stopPageFlip(this.refs.$brContainer),this.trigger(Zt.eventNames.fragmentChange);case 20:case"end":return t.stop()}}),t,this)}))),Zt.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},Zt.prototype.updateFirstIndex=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.suppressFragmentChange,r=void 0!==n&&n;this.firstIndex!==t&&(this.firstIndex=t,this.suppressFragmentChange||r||this.trigger(Zt.eventNames.fragmentChange),this.options.initialSearchTerm&&!r&&(this.suppressFragmentChange=!1),this.trigger("pageChanged"),this._components.navbar.updateNavIndexThrottled(t))},Zt.prototype.right=function(){"rl"!=this.pageProgression?this.next():this.prev()},Zt.prototype.rightmost=function(){"rl"!=this.pageProgression?this.last():this.first()},Zt.prototype.left=function(){"rl"!=this.pageProgression?this.prev():this.next()},Zt.prototype.leftmost=function(){"rl"!=this.pageProgression?this.first():this.last()},Zt.prototype.next=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e;this.constMode2up==this.mode?(n&&this.trigger(Zt.eventNames.stop),this._modes.mode2Up.flipFwdToIndex(null)):this.firstIndex<this.lastDisplayableIndex()&&this.jumpToIndex(this.firstIndex+1)},Zt.prototype.prev=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggerStop,n=void 0===e||e,r=this.firstIndex<1;r||(this.constMode2up==this.mode?(n&&this.trigger(Zt.eventNames.stop),this._modes.mode2Up.flipBackToIndex(null)):this.firstIndex>=1&&this.jumpToIndex(this.firstIndex-1))},Zt.prototype.first=function(){this.jumpToIndex(this.firstDisplayableIndex())},Zt.prototype.last=function(){this.jumpToIndex(this.lastDisplayableIndex())},Zt.prototype.scrollDown=function(){return qt.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.next():(this.refs.$brContainer.stop(!0).animate({scrollTop:"+="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},Zt.prototype.scrollUp=function(){return qt.inArray(this.mode,[this.constMode1up,this.constModeThumb])>=0&&(this.mode==this.constMode1up&&this.reduce>=this.onePageGetAutofitHeight()?this.prev():(this.refs.$brContainer.stop(!0).animate({scrollTop:"-="+this._scrollAmount()+"px"},400,"easeInOutExpo"),!0))},Zt.prototype._scrollAmount=function(){return this.constMode1up==this.mode?parseInt(this.refs.$brContainer.prop("clientHeight")-this.book.getPageHeight(this.currentIndex())/this.reduce*.03):parseInt(.9*this.refs.$brContainer.prop("clientHeight"))},Zt.prototype.stopFlipAnimations=function(){this.trigger(Zt.eventNames.stop),this.leafEdgeTmp&&qt(this.leafEdgeTmp).stop(!1,!0),Xt.each(this._modes.mode2Up.pageContainers,(function(){qt(this.$container).stop(!1,!0)})),this.leafEdgeTmp&&qt(this.leafEdgeTmp).stop(!1,!0),Xt.each(this._modes.mode2Up.pageContainers,(function(){qt(this.$container).stop(!1,!0)}))},Zt.prototype.initNavbar=u.prototype.init,Jt(u,"_components.navbar","init","initNavbar"),Zt.prototype.buildToolbarElement=p.prototype.buildToolbarElement,Jt(p,"_components.toolbar","buildToolbarElement"),Zt.prototype.initToolbar=p.prototype.initToolbar,Jt(p,"_components.toolbar","initToolbar"),Zt.prototype.buildShareDiv=p.prototype.buildShareDiv,Jt(p,"_components.toolbar","buildShareDiv"),Zt.prototype.buildInfoDiv=p.prototype.buildInfoDiv,Jt(p,"_components.toolbar","buildInfoDiv"),Zt.prototype.getToolBarHeight=p.prototype.getToolBarHeight,Jt(p,"_components.toolbar","getToolBarHeight"),Zt.prototype.bindNavigationHandlers=function(){var t=this,e=this,n=this.$(".BRicon").add(".BRmobileMenu .BRicon"),r={book_left:function(){t.trigger(Zt.eventNames.stop),t.left()},book_right:function(){t.trigger(Zt.eventNames.stop),t.right()},book_up:function(){qt.inArray(t.mode,[t.constMode1up,t.constModeThumb])>=0?t.scrollUp():t.prev()},book_down:function(){qt.inArray(t.mode,[t.constMode1up,t.constModeThumb])>=0?t.scrollDown():t.next()},book_top:this.first.bind(this),book_bottom:this.last.bind(this),book_leftmost:this.leftmost.bind(this),book_rightmost:this.rightmost.bind(this),onepg:function(){t.switchMode(e.constMode1up)},thumb:function(){t.switchMode(e.constModeThumb)},twopg:function(){t.switchMode(e.constMode2up)},zoom_in:function(){t.trigger(Zt.eventNames.stop),t.zoom(1),t.trigger(Zt.eventNames.zoomIn)},zoom_out:function(){t.trigger(Zt.eventNames.stop),t.zoom(-1),t.trigger(Zt.eventNames.zoomOut)},full:function(){if("embed"==t.ui){var e=t.$(".BRembedreturn a").attr("href");window.open(e)}else t.toggleFullscreen()}};n.filter(".fit").bind("fit",(function(){}));var i=function(t){n.filter(".".concat(t)).on("click.bindNavigationHandlers",(function(){return r[t](),!1}))};for(var o in r)i(o);var a=this.$(".BRnavCntlBtm"),s=this.$(".BRnavCntlTop");this.$(".BRnavCntl").click((function(){var t=[];a.hasClass("BRdn")?(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:-1*e.getToolBarHeight()}).promise()),t.push(e.$(".BRfooter").animate({bottom:-1*e.getFooterHeight()}).promise()),a.addClass("BRup").removeClass("BRdn"),s.addClass("BRdn").removeClass("BRup"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"45px"}),e.$(".BRnavCntl").delay(1e3).animate({opacity:.75},1e3)):(e.refs.$BRtoolbar&&t.push(e.refs.$BRtoolbar.animate({top:0}).promise()),t.push(e.$(".BRfooter").animate({bottom:0}).promise()),a.addClass("BRdn").removeClass("BRup"),s.addClass("BRup").removeClass("BRdn"),e.$(".BRnavCntlBtm.BRnavCntl").animate({height:"30px"}),e.$(".BRvavCntl").animate({opacity:1})),qt.when.apply(qt,t).done((function(){e.mode==e.constMode2up&&null!=e.twoPage.autofit&&"none"!=e.twoPage.autofit||e.mode==e.constMode1up&&null!=e.onePage.autofit&&"none"!=e.onePage.autofit?e.resize():e.resizeBRcontainer()}))})),a.on("mouseover",(function(){qt(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){qt(this).hasClass("BRup")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),s.on("mouseover",(function(){qt(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:1},250)})).on("mouseleave",(function(){qt(this).hasClass("BRdn")&&e.$(".BRnavCntl").animate({opacity:.75},250)})),this.initSwipeData(),qt(document).off("mousemove.navigation",this.el),qt(document).on("mousemove.navigation",this.el,{br:this},this.navigationMousemoveHandler),qt(document).off("mousedown.swipe",".BRpageimage"),qt(document).on("mousedown.swipe",".BRpageimage",{br:this},this.swipeMousedownHandler),this.bindMozTouchHandlers()},Zt.prototype.unbindNavigationHandlers=function(){qt(document).off("mousemove.navigation",this.el)},Zt.prototype.navigationMousemoveHandler=function(t){if(t.data.br.uiAutoHide){var e=qt(document).height()-75;t.pageY<76||t.pageY>e?t.data.br.hideNavigation():t.data.br.showNavigation()}},Zt.prototype.initSwipeData=function(t,e){this._swipe={mightBeSwiping:!1,didSwipe:!1,mightBeDraggin:!1,didDrag:!1,startTime:(new Date).getTime(),startX:t,startY:e,lastX:t,lastY:e,deltaX:0,deltaY:0,deltaT:0}},Zt.prototype.swipeMousedownHandler=function(t){var e=t.data.br;return 3==t.which?!e.protected:(qt(t.target).on("mouseout.swipe",{br:e},e.swipeMouseupHandler).on("mouseup.swipe",{br:e},e.swipeMouseupHandler).on("mousemove.swipe",{br:e},e.swipeMousemoveHandler),e.initSwipeData(t.clientX,t.clientY),e._swipe.mightBeSwiping=!0,e._swipe.mightBeDragging=!0,t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1)},Zt.prototype.swipeMousemoveHandler=function(t){var e=t.data.br,n=e._swipe;if(n.mightBeSwiping){n.deltaX=t.clientX-n.startX,n.deltaY=t.clientY-n.startY,n.deltaT=(new Date).getTime()-n.startTime;var r=Math.abs(n.deltaX),i=Math.abs(n.deltaY),o=Math.min(e.refs.$br.width()/5,80);return r>i&&r>o&&n.deltaT<400&&(n.mightBeSwiping=!1,n.didSwipe=!0,e.mode==e.constMode2up&&(n.deltaX<0?e.right():e.left())),n.deltaT>400&&!n.didSwipe&&n.mightBeDragging&&(n.didDrag=!0,e.refs.$brContainer.scrollTop(e.refs.$brContainer.scrollTop()-t.clientY+n.lastY).scrollLeft(e.refs.$brContainer.scrollLeft()-t.clientX+n.lastX)),n.lastX=t.clientX,n.lastY=t.clientY,t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1}},Zt.prototype.swipeMouseupHandler=function(t){var e=t.data.br._swipe;return e.mightBeSwiping=!1,e.mightBeDragging=!1,qt(t.target).off("mouseout.swipe").off("mouseup.swipe").off("mousemove.swipe"),!e.didSwipe&&!e.didDrag||(t.preventDefault(),t.returnValue=!1,t.cancelBubble=!0,!1)},Zt.prototype.bindMozTouchHandlers=function(){var t=this;this.refs.$br.on("MozTouchDown",(function(e){this.mode==t.constMode2up&&e.preventDefault()})).on("MozTouchMove",(function(e){this.mode==t.constMode2up&&e.preventDefault()})).on("MozTouchUp",(function(e){this.mode==t.constMode2up&&e.preventDefault()}))},Zt.prototype.navigationIsVisible=function(){return 0==this.refs.$BRtoolbar.position().top},Zt.prototype.setNavigationView=function(t){var e=this.constNavAnimationDuration,n="linear",r=function(){this.constMode2up!==this.mode&&this.resizeBRcontainer(!0),this.trigger(Zt.eventNames.navToggled)}.bind(this),i=0,o=0;t?(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},e,n,r),this.refs.$BRfooter.animate({bottom:o},e,n,r)},Zt.prototype.hideNavigation=function(){this.navigationIsVisible()&&this.setNavigationView(!0)},Zt.prototype.showNavigation=function(){this.navigationIsVisible()||this.setNavigationView()},Zt.prototype.firstDisplayableIndex=function(){return this.mode!=this.constMode2up?0:"rl"!=this.pageProgression?"L"==this.book.getPageSide(0)?0:-1:"R"==this.book.getPageSide(0)?0:-1},Zt.prototype.lastDisplayableIndex=function(){var t=this.book.getNumLeafs()-1;return this.mode!=this.constMode2up?t:"rl"!=this.pageProgression?"R"==this.book.getPageSide(t)?t:t+1:"L"==this.book.getPageSide(t)?t:t+1},Zt.prototype.getPageURI=_.prototype.getPageURI,Jt(_,"book","getPageURI"),Zt.prototype.updateFromParams=function(t){var e=t.mode,n=void 0===e?0:e,r=t.init,i=void 0!==r&&r,o=t.fragmentChange,a=void 0!==o&&o;n&&this.switchMode(n,{init:i,suppressFragmentChange:!a}),void 0!==t.index?t.index!=this.currentIndex()&&this.jumpToIndex(t.index):void 0!==t.page&&t.page!=this.book.getPageNum(this.currentIndex())&&this.jumpToPage(t.page),this.enableSearch&&void 0!==t.search&&this.searchTerm!==t.search&&this.$(".BRsearchInput").val(t.search),this.enableThemesPlugin&&void 0!==t.theme&&this.updateTheme(t.theme)},Zt.prototype.canSwitchToMode=function(t){return t!=this.constMode2up&&t!=this.constModeThumb||!(this.book.getNumLeafs()<2)},Zt.prototype._getPageURI=function(t,e,n){var r=this.book.getPage(t,!1);return r?(void 0===e&&(e=r.height/this.twoPage.height),r.getURI(e,n)):this.imagesBaseURL+"transparent.png"},Zt.prototype.showProgressPopup=function(t,e){var n=this;if(!this.popup){if(this.popup=document.createElement("div"),qt(this.popup).prop("className","BRprogresspopup"),"function"==typeof e){var r=document.createElement("button");r.setAttribute("title","close"),r.setAttribute("class","close-popup");var i=document.createElement("span");i.setAttribute("class","icon icon-close-dark"),qt(r).append(i),r.addEventListener("click",(function(){e(),n.removeProgressPopup()})),qt(this.popup).append(r)}var o=document.createElement("div");if(qt(o).css({height:"20px"}).prop("className","BRprogressbar"),qt(this.popup).append(o),t){var a=document.createElement("div");a.innerHTML=t,qt(this.popup).append(a)}qt(this.popup).appendTo(this.refs.$br)}},Zt.prototype.removeProgressPopup=function(){qt(this.popup).remove(),this.$(".BRprogresspopup").remove(),this.popup=null},Zt.prototype.initUIStrings=function(){var t={".logo":"Go to Archive.org",".zoom_in":"Zoom in",".zoom_out":"Zoom out",".onepg":"One-page view",".twopg":"Two-page view",".thumb":"Thumbnail view",".print":"Print this page",".embed":"Embed BookReader",".link":"Link to this book (and page)",".bookmark":"Bookmark this page",".share":"Share this book",".info":"About this book",".full":"Toggle fullscreen",".book_left":"Flip left",".book_right":"Flip right",".book_up":"Page up",".book_down":"Page down",".play":"Play",".pause":"Pause",".BRdn":"Show/hide nav bar",".BRup":"Show/hide nav bar",".book_top":"First page",".book_bottom":"Last page",".book_leftmost":"First page",".book_rightmost":"Last page"};for(var e in"rl"==this.pageProgression&&(t[".book_leftmost"]="Last page",t[".book_rightmost"]="First page"),t)this.$(e).prop("title",t[e])},Zt.prototype.reloadImages=function(){this.refs.$brContainer.find("img").each((function(t,e){if(!e.complete||0===e.naturalHeight){var n=e.src;e.src="",setTimeout((function(){e.src=n}),1e3)}}))},Zt.prototype.getFooterHeight=function(){var t=this.mode==this.constMode2up?this.refs.$BRfooter:this.refs.$BRnav;if(t&&this.refs.$BRfooter){var e=t.outerHeight(),n=parseInt(this.refs.$BRfooter.css("bottom"));if(!isNaN(e)&&!isNaN(n))return e+n}return 0},Zt.prototype.paramsFromCurrent=function(){var t={},e=this.currentIndex(),n=this.book.getPageNum(e);return(0===n||n)&&(t.page=n),t.index=e,t.mode=this.mode,this.isFullscreenActive&&(t.view="theater"),this.enableSearch&&(t.search=this.searchTerm),t},Zt.prototype.paramsFromFragment=function(t){var e={};"#"==t.substr(0,1)&&(t=t.substr(1));var n=parseInt(/^\d+$/.exec(t));if(!isNaN(n))return e.index=n,e;for(var i=t.split("/"),o={},a=0;a<i.length;a+=2)o[i[a]]=i[a+1];return"1up"==o.mode?e.mode=this.constMode1up:"2up"==o.mode?e.mode=this.constMode2up:"thumb"==o.mode&&(e.mode=this.constModeThumb),void 0!==o.page&&(e.page=o.page),null!=o.search&&(e.search=r.decodeURIComponentPlus(o.search)),null!=o.theme&&(e.theme=o.theme),e},Zt.prototype.fragmentFromParams=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hash",n="/",i=[];if(void 0!==t.page?i.push("page",t.page):void 0!==t.index&&i.push("page","n"+t.index),void 0!==t.mode)if(t.mode==this.constMode1up)i.push("mode","1up");else if(t.mode==this.constMode2up)i.push("mode","2up");else{if(t.mode!=this.constModeThumb)throw"fragmentFromParams called with unknown mode "+t.mode;i.push("mode","thumb")}return t.search&&"hash"===e&&i.push("search",t.search),r.encodeURIComponentPlus(i.join(n)).replace(/%2F/g,"/")},Zt.prototype.queryStringFromParams=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",r=new URLSearchParams(e);t.view?r.set("view",t.view):r.delete("view"),t.search&&"history"===n&&r.set("q",t.search);var i=r.toString();return i?"?"+i:""},Zt.prototype.$=function(t){return this.refs.$br.find(t)},window.BookReader=Zt},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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var DebugConsole=function(){function DebugConsole(){_classCallCheck(this,DebugConsole),this.currentRun=0}return _createClass(DebugConsole,[{key:"init",value:function init(){var _this=this;this.$log=$('<div id="_debugLog" style="width: 100%; height: 300px; overflow: auto" />'),$(document.body).prepend(this.$log),this.$form=$('\n <form>\n <input style="width:100%; font-family: monospace;" id="_debugLogInput">\n </form>'),this.$log.append(this.$form),this.$form.on("submit",(function(ev){ev.preventDefault();var result=eval(_this.$form.find("input").val());_this.logToScreen([result])}));var _realLog=console.log.bind(console);console.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];_realLog.apply(void 0,e),_this.logToScreen(e)},window.onerror=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return _this.logToScreen(e)}}},{key:"logToScreen",value:function(t){var e=t.map(JSON.stringify).join(","),n=this.$log.children(".log-entry:last-child");n.find(".entry-code").html()==e?n.find(".count").text("(".concat(++this.currentRun,")")):(this.currentRun=1,this.$log.append($('\n <div class="log-entry">\n <code class="count"></code> <code class="entry-code">'.concat(e,"</code>\n </div>"))))}}]),DebugConsole}()},9860:function(t,e,n){"use strict";n.d(e,{_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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e,n){var i=n.isProtected,o=n.imageCache,a=n.loadingImage;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.page=e,this.imageCache=o,this.loadingImage=a,this.$container=r("<div />",{class:"BRpagecontainer ".concat(e?"pagediv".concat(e.index):"BRemptypage"),css:{position:"absolute"}}).attr("data-side",null==e?void 0:e.pageSide),i&&(this.$container.append(r('<div class="BRscreen" />')),this.$container.addClass("protected")),this.$img=null}var e,n;return e=t,(n=[{key:"update",value:function(t){var e,n,i=t.dimensions,o=void 0===i?null:i,a=t.reduce,s=void 0===a?null:a;if(o&&this.$container.css(o),null!=s&&this.page){var 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===(e=this.$img)||void 0===e?void 0:e[0].src)==h[0].src)return this;null===(n=this.$img)||void 0===n||n.remove(),this.$img=h.prependTo(this.$container);var 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 t,e=(t=regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(e.target).css({background:""}),r(e.target).parent().removeClass("BRpageloading");case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),this}}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("viewBox","0 0 ".concat(t.width," ").concat(t.height)),n.setAttribute("class","BRPageLayer ".concat(e)),n.setAttribute("preserveAspectRatio","none"),n}function f(t){var e=t.l,n=t.r,r=t.b,i=t.t,o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",i.toString()),o.setAttribute("width",(n-e).toString()),o.setAttribute("height",(r-i).toString()),o.setAttribute("rx","4"),o.setAttribute("ry","4"),o}function d(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=a.querySelector(".".concat(t)),c=u||h(n,t);if(!u){var l=a.querySelector(".BRpageimage");l?r(c).insertAfter(l):r(c).prependTo(a)}var d,p=o(e.entries());try{for(p.s();!(d=p.n()).done;){var v=i(d.value,2),g=v[0],m=v[1],b=f(m);s&&b.setAttribute("class",s[g]),c.appendChild(b)}}catch(t){p.e(t)}finally{p.f()}}},5685:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){t.bind("mousedown",(function(){return!1})),t[0].onselectstart=function(){return!1}}function s(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return t/e*100+"%"}function c(t,e){return!e.includes(t)}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.activeElement;return e&&null!=n&&n.shadowRoot?l(n.shadowRoot,!0):n}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=l(t);return"INPUT"==(null==e?void 0:e.tagName)||"TEXTAREA"==(null==e?void 0:e.tagName)}function f(t){var e=t.contentWindow||t.contentDocument;return e.document||e}function d(t){return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function p(t){return decodeURIComponent(t).replace(/\+/g," ")}function v(t){return encodeURIComponent(t).replace(/%20/g,"+")}function g(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}function m(t,e,n){var r,i;return e||(e=250),n&&(r=+new Date),function(){var n=this,o=+new Date,a=arguments;r&&o<r+e?(clearTimeout(i),i=setTimeout((function(){r=o,t.apply(n,a)}),e)):(r=o,t.apply(n,a))}}function b(t){if("function"==typeof t.CustomEvent)return!1;t.CustomEvent=y}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bubbles,r=void 0!==n&&n,i=e.cancelable,o=void 0!==i&&i,a=e.detail,s=void 0===a?null:a,u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r,o,s),u}function w(){var t=document.createElement("div");t.style.width="1in",document.body.appendChild(t);var e=t.offsetWidth;document.body.removeChild(t);var n=1.25*e;return 0==n?100:n}function _(t){return t.reduce((function(t,e){return t+e}),0)}function x(t){var e,n=[],r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function P(t,e){return t.length==e.length&&t.every((function(t,n){return t==e[n]}))}function k(t,e){return t&&e&&!P(t,e)}function C(t){return S.apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(t){return T.apply(this,arguments)}function T(){return(T=i(regeneratorRuntime.mark((function t(e){var n,r,i,o,a,s,u,c,l,h,f,d=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.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(t){return Boolean(t)}:s,c=n._sleep,l=void 0===c?C:c,h=Date.now();case 2:if(!(Date.now()-h<a)){t.next=10;break}if(f=e(),!u(f)){t.next=6;break}return t.abrupt("return",f);case 6:return t.next=8,l(i);case 8:t.next=2;break;case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n.r(e),n.d(e,{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 b},PolyfilledCustomEvent:function(){return y},calcScreenDPI:function(){return w},sum:function(){return _},genToArray:function(){return x},arrEquals:function(){return P},arrChanged:function(){return k},sleep:function(){return C},poll:function(){return E}}),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(t,e,n){var r=n(7854),i=n(614),o=n(6330),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(7854),i=n(4411),o=n(6330),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(7854),i=n(614),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,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)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7854),i=n(7976),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(7854),i=n(111),o=r.String,a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not an object")}},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1285:function(t,e,n){"use strict";var r=n(7908),i=n(1400),o=n(6244);t.exports=function(t){for(var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(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;t.exports=function(t){var e=a(t),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,b,y,w,_,x,P=d(e),k=0;if(!P||this==p&&u(P))for(m=l(e),b=n?new this(m):p(m);m>k;k++)x=g?v(e[k],k):e[k],h(b,k,x);else for(_=(w=f(e,P)).next,b=n?new this:[];!(y=o(_,w)).done;k++)x=g?s(w,v,[y.value,k],!0):y.value,h(b,k,x);return b.length=k,b}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var r=n(9974),i=n(1702),o=n(8361),a=n(7908),s=n(6244),u=n(5417),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,v,g,m){for(var b,y,w=a(p),_=o(w),x=r(v,g),P=s(_),k=0,C=m||u,S=e?C(p,P):n||f?C(p,0):void 0;P>k;k++)if((d||k in _)&&(y=x(b=_[k],k,w),t))if(e)S[k]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return k;case 2:c(S,b)}else switch(t){case 4:return!1;case 7:c(S,b)}return h?-1:i||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(t,e,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},3671:function(t,e,n){var r=n(7854),i=n(9662),o=n(7908),a=n(8361),s=n(6244),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=o(e),h=a(l),f=s(l),d=t?f-1:0,p=t?-1:1;if(r<2)for(;;){if(d in h){c=h[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in h&&(c=n(c,h[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},1589:function(t,e,n){var r=n(7854),i=n(1400),o=n(6244),a=n(6135),s=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=o(t),c=i(e,r),l=i(void 0===n?r:n,r),h=s(u(l-c,0)),f=0;c<l;c++,f++)a(h,f,t[c]);return h.length=f,h}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},4362:function(t,e,n){var r=n(1589),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,u),e),o(r(t,u),e),e)},a=function(t,e){for(var n,r,i=t.length,o=1;o<i;){for(r=o,n=t[o];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},7475:function(t,e,n){var r=n(7854),i=n(3157),o=n(4411),a=n(111),s=n(5112)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===u||i(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:function(t,e,n){var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(7854),i=n(1694),o=n(614),a=n(4326),s=n(5112)("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?a(e):"Object"==(r=a(e))&&o(e.callee)?"Arguments":r}},5631:function(t,e,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;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,d),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=l.prototype,g=v(e),m=function(t,e,n){var r,i,o=g(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=g(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(d,{clear:function(){for(var t=g(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&r(d,"size",{get:function(){return g(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);c(t,e,(function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},9320:function(t,e,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),b=0,y=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},_=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&m(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,f),d(t,{type:e,id:b++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),f=l.prototype,v=p(e),g=function(t,e,n){var r=v(t),i=o(a(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(f,{delete:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&h(n,e.id)}}),i(f,n?{get:function(t){var e=v(this);if(s(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),l}}},7710:function(t,e,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);t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=m?"set":"add",w=i[t],_=w&&w.prototype,x=w,P={},k=function(t){var e=o(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!f(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!f(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!f(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!h(w)||!(b||_.forEach&&!d((function(){(new w).entries().next()})))))x=n.getConstructor(e,t,m,y),u.enable();else if(a(t,!0)){var C=new x,S=C[y](b?{}:-0,1)!=C,E=d((function(){C.has(1)})),T=p((function(t){new w(t)})),R=!b&&d((function(){for(var t=new w,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((x=e((function(t,e){l(t,_);var n=g(new w,t,x);return null!=e&&c(e,n[y],{that:n,AS_ENTRIES:m}),n}))).prototype=_,_.constructor=x),(E||R)&&(k("delete"),k("has"),m&&k("get")),(R||S)&&k(y),b&&_.clear&&delete _.clear}return P[t]=x,r({global:!0,forced:x!=w},P),v(x,t),b||n.setStrong(x,t,m),x}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var h=s[l];r(t,h)||n&&r(n,h)||u(t,h,c(e,h))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,n){var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},8709:function(t,e,n){"use strict";var r=n(7854),i=n(9670),o=n(2140),a=r.TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw a("Incorrect hint");return o(this,t)}},654:function(t,e,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,b=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,_=p("iterator"),x="keys",P="values",k="entries",C=function(){return this};t.exports=function(t,e,n,a,p,g,S){u(n,e,a);var E,T,R,I=function(t){if(t===p&&j)return j;if(!w&&t in A)return A[t];switch(t){case x:case P:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},O=e+" Iterator",M=!1,A=t.prototype,$=A[_]||A["@@iterator"]||p&&A[p],j=!w&&$||I(p),L="Array"==e&&A.entries||$;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(o||c(E)===y||(l?l(E,y):s(E[_])||d(E,_,C)),h(E,O,!0,!0),o&&(v[O]=C)),m&&p==P&&$&&$.name!==P&&(!o&&b?f(A,"name",P):(M=!0,j=function(){return i($,this)})),p)if(T={values:I(P),keys:g?j:I(x),entries:I(k)},S)for(R in T)(w||M||!(R in A))&&d(A,R,T[R]);else r({target:e,proto:!0,forced:w||M},T);return o&&!S||A[_]===j||d(A,_,j,{name:p}),v[e]=j,T}},7235:function(t,e,n){var r=n(857),i=n(2597),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,n){var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},8886:function(t,e,n){var r=n(8113).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7871:function(t){t.exports="object"==typeof window&&"object"!=typeof Deno},256:function(t,e,n){var r=n(8113);t.exports=/MSIE|Trident/.test(r)},1528:function(t,e,n){var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},8334:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,i,o=n(7854),a=n(8113),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},8008:function(t,e,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,h,f,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in e){if(f=e[l],h=t.noTargetGet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(g?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,l,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),i=n(1320),o=n(2261),a=n(7293),s=n(5112),u=n(8880),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),d=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!p||n){var v=r(/./[f]),g=e(f,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,f,g[1])}h&&u(l[f],"sham",!0)}},6790:function(t,e,n){"use strict";var r=n(7854),i=n(3157),o=n(6244),a=n(9974),s=r.TypeError,u=function(t,e,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,e):n[g],l>0&&i(d))p=o(d),v=u(t,e,d,p,v,l-1)-1;else{if(v>=9007199254740991)throw s("Exceed the acceptable array length");t[v]=d}v++}g++}return v};t.exports=u},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},9974:function(t,e,n){var r=n(1702),i=n(9662),o=n(4374),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},7065:function(t,e,n){"use strict";var r=n(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(t,e,n){if(!s(d,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";d[e]=l("C,a","return new C("+f(r,",")+")")}return d[e](t,n)};t.exports=c?l.bind:function(t){var e=o(this),n=e.prototype,r=u(arguments,1),i=function(){var n=h(r,u(arguments));return this instanceof i?p(e,n.length,n):e.apply(t,n)};return a(n)&&(i.prototype=n),i}},6916:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:function(t,e,n){var r=n(7854),i=n(6916),o=n(9662),a=n(9670),s=n(6330),u=n(1246),c=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?u(t):e;if(o(n))return a(i(n,t));throw c(s(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:function(t,e,n){var r=n(1702),i=n(7908),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var d=n+t.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 t;case"`":return u(e,0,n);case"'":return u(e,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(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},842:function(t,e,n){var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),i=n(1702),o=n(7293),a=n(4326),s=r.Object,u=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):s(t)}:s},9587:function(t,e,n){var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},2423:function(t,e,n){var r=n(2109),i=n(1702),o=n(3501),a=n(111),s=n(2597),u=n(3070).f,c=n(8006),l=n(1156),h=n(2050),f=n(9711),d=n(6677),p=!1,v=f("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,v)){if(!h(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!h(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&h(t)&&!s(t,v)&&m(t),t}};o[v]=!0},9909:function(t,e,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 b=f.state||(f.state=new m),y=u(b.get),w=u(b.has),_=u(b.set);r=function(t,e){if(w(b,t))throw new g(v);return e.facade=t,_(b,t,e),e},i=function(t){return y(b,t)||{}},o=function(t){return w(b,t)}}else{var x=d("state");p[x]=!0,r=function(t,e){if(h(t,x))throw new g(v);return e.facade=t,l(t,x,e),e},i=function(t){return h(t,x)?t[x]:{}},o=function(t){return h(t,x)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),a=n(648),s=n(5005),u=n(2788),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(c),v=function(t){if(!o(t))return!1;try{return h(c,l,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!h||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},5032:function(t,e,n){var r=n(2597);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:function(t,e,n){var r=n(7854),i=n(5005),o=n(614),a=n(7976),s=n(3307),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,u(t))}},408:function(t,e,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(t,e){this.stopped=t,this.result=e},g=v.prototype;t.exports=function(t,e,n){var r,m,b,y,w,_,x,P=n&&n.that,k=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),E=i(e,P),T=function(t){return r&&d(r,"normal",t),new v(!0,t)},R=function(t){return k?(a(t),S?E(t[0],t[1],T):E(t[0],t[1])):S?E(t,T):E(t)};if(C)r=t;else{if(!(m=f(t)))throw p(s(t)+" is not iterable");if(u(m)){for(b=0,y=c(t);y>b;b++)if((w=R(t[b]))&&l(g,w))return w;return new v(!1)}r=h(t,m)}for(_=r.next;!(x=o(_,r)).done;){try{w=R(x.value)}catch(t){d(r,"throw",t)}if("object"==typeof w&&w&&l(g,w))return w}return new v(!1)}},9212:function(t,e,n){var r=n(6916),i=n(9670),o=n(8173);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},3383:function(t,e,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 t={};return r[d].call(t)!==t}))?r={}:f&&(r=u(r)),s(r[d])||l(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},4310:function(t){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},5948:function(t,e,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),b=n(5268),y=h.MutationObserver||h.WebKitMutationObserver,w=h.document,_=h.process,x=h.Promise,P=d(h,"queueMicrotask"),k=P&&P.value;k||(r=function(){var t,e;for(b&&(t=_.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||b||m||!y||!w?!g&&x&&x.resolve?((c=x.resolve(void 0)).constructor=x,l=f(c.then,c),a=function(){l(r)}):b?a=function(){_.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,u=w.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=k||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},735:function(t,e,n){var r=n(133);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},133:function(t,e,n){var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(t,e,n){var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,n){var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:function(t,e,n){"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:function(t,e,n){var r=n(7854),i=n(7850),o=r.TypeError;t.exports=function(t){if(i(t))throw o("The method doesn't accept regular expressions");return t}},3009:function(t,e,n){var r=n(7854),i=n(7293),o=n(1702),a=n(1340),s=n(3111).trim,u=n(1361),c=r.parseInt,l=r.Symbol,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))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(f,n)?16:10))}:c},1574:function(t,e,n){"use strict";var r=n(9781),i=n(1702),o=n(6916),a=n(7293),s=n(1956),u=n(5181),c=n(5296),l=n(7908),h=n(8361),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.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 t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=i}))?function(t,e){for(var n=l(t),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),b=m.length,y=0;b>y;)v=m[y++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:f},30:function(t,e,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),h=function(){},f=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?d(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=p(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),a=n(9670),s=n(5656),u=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(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;e.f=i?a?function(t,e,n){if(s(t),e=u(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=h(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=u(e),s(n),o)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),u=n(4948),c=n(2597),l=n(4664),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),i=n(5656),o=n(8006).f,a=n(1589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var r=n(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;t.exports=u?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?h:null}},2050:function(t,e,n){var r=n(7293),i=n(111),o=n(4326),a=n(7556),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&(!a||"ArrayBuffer"!=o(t))&&(!s||s(t))}:s},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),i=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},4699:function(t,e,n){var r=n(9781),i=n(1702),o=n(1956),a=n(5656),s=i(n(5296).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,h=0,f=[];l>h;)n=c[h++],r&&!s(i,n)||u(f,t?[n,i[n]]:i[n]);return f}};t.exports={entries:c(!0),values:c(!1)}},288:function(t,e,n){"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(t,e,n){var r=n(7854),i=n(6916),o=n(614),a=n(111),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},857:function(t,e,n){var r=n(7854);t.exports=r},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:function(t,e,n){var r=n(7854),i=n(2492),o=n(614),a=n(4705),s=n(2788),u=n(5112),c=n(7871),l=n(1913),h=n(7392),f=i&&i.prototype,d=u("species"),p=!1,v=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(l&&(!f.catch||!f.finally))return!0;if(h>=51&&/native code/.test(t))return!1;var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r)||!e&&c&&!v}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:p}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},612:function(t,e,n){var r=n(2492),i=n(7072),o=n(3702).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},2626:function(t,e,n){var r=n(3070).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:function(t,e,n){var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:function(t,e,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");(t.exports=function(t,e,n,u){var c,h=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:e;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:""))),t!==r?(h?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:a(t,e,n)):p?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||u(this)}))},7651:function(t,e,n){var r=n(7854),i=n(6916),o=n(9670),a=n(614),s=n(4326),u=n(2261),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r,i,o=n(6916),a=n(1702),s=n(1340),u=n(7066),c=n(2999),l=n(2309),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,b=a("".charAt),y=a("".indexOf),w=a("".replace),_=a("".slice),x=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),P=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(x||k||P||d||p)&&(m=function(t){var e,n,r,i,a,c,l,d=this,p=f(d),C=s(t),S=p.raw;if(S)return S.lastIndex=d.lastIndex,e=o(m,S,C),d.lastIndex=S.lastIndex,e;var E=p.groups,T=P&&d.sticky,R=o(u,d),I=d.source,O=0,M=C;if(T&&(R=w(R,"y",""),-1===y(R,"g")&&(R+="g"),M=_(C,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(C,d.lastIndex-1))&&(I="(?: "+I+")",M=" "+M,O++),n=new RegExp("^(?:"+I+")",R)),k&&(n=new RegExp("^"+I+"$(?!\\s)",R)),x&&(r=d.lastIndex),i=o(g,T?n:d,M),T?i?(i.input=_(i.input,O),i[0]=_(i[0],O),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:x&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),k&&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&&E)for(i.groups=c=h(null),a=0;a<E.length;a++)c[(l=E[a])[0]]=i[l[1]];return i}),t.exports=m},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var r=n(6916),i=n(2597),o=n(7976),a=n(7066),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},2999:function(t,e,n){var r=n(7293),i=n(7854).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},9441:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},1150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3505:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,i=n(2597),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.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(t,e,n){var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:function(t,e,n){var r=n(1702),i=n(9303),o=n(1340),a=n(4488),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,h=o(a(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=u(h,f))<55296||r>56319||f+1===d||(l=u(h,f+1))<56320||l>57343?t?s(h,f):r:t?c(h,f,f+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3111:function(t,e,n){var r=n(1702),i=n(4488),o=n(1340),a=n(1361),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},6532:function(t,e,n){var r=n(6916),i=n(5005),o=n(5112),a=n(1320);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}))}},261:function(t,e,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),b=n(5268),y=s.setImmediate,w=s.clearImmediate,_=s.process,x=s.Dispatch,P=s.Function,k=s.MessageChannel,C=s.String,S=0,E={};try{r=s.location}catch(t){}var T=function(t){if(h(E,t)){var e=E[t];delete E[t],e()}},R=function(t){return function(){T(t)}},I=function(t){T(t.data)},O=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};y&&w||(y=function(t){g(arguments.length,1);var e=l(t)?t:P(t),n=p(arguments,1);return E[++S]=function(){u(e,void 0,n)},i(S),S},w=function(t){delete E[t]},b?i=function(t){_.nextTick(R(t))}:x&&x.now?i=function(t){x.now(R(t))}:k&&!m?(a=(o=new k).port2,o.port1.onmessage=I,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(i=O,s.addEventListener("message",I,!1)):i="onreadystatechange"in v("script")?function(t){d.appendChild(v("script")).onreadystatechange=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:y,clear:w}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),i=n(4488),o=r.Object;t.exports=function(t){return o(i(t))}},7593:function(t,e,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");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,h);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(7854),i=n(648),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,n){var r=n(7854).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},6061:function(t,e,n){var r=n(5112);e.f=r},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(133),u=n(3307),c=i("wks"),l=r.Symbol,h=l&&l.for,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&o(l,t)?c[t]=l[t]:c[t]=u&&h?h(e):f(e)}return c[t]}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),i=n(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",b=i.TypeError,y=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),w=f("concat"),_=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,forced:!y||!w},{concat:function(t){var e,n,r,i,o,a=u(this),s=h(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(_(o=-1===e?a:arguments[e])){if(f+(i=c(o))>g)throw b(m);for(n=0;n<i;n++,f++)n in o&&l(s,f,o[n])}else{if(f>=g)throw b(m);l(s,f++,o)}return s.length=f,s}})},3290:function(t,e,n){var r=n(2109),i=n(1285),o=n(1223);r({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(t,e,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},4553:function(t,e,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},9826:function(t,e,n){"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},6535:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=n(9662),a=n(7908),s=n(6244),u=n(5417);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=a(this),r=s(n);return o(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},4944:function(t,e,n){"use strict";var r=n(2109),i=n(6790),o=n(7908),a=n(6244),s=n(9303),u=n(5417);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},1038:function(t,e,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:function(t,e,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(7293),a=n(1223);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(t,e,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(3070).f,u=n(654),c=n(1913),l=n(9781),h="Array Iterator",f=a.set,d=a.getterFor(h);t.exports=u(Array,"Array",(function(t,e){f(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[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(t){}},9600:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(8361),a=n(5656),s=n(9341),u=i([].join),c=o!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(a(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var r=n(2109),i=n(3671).left,o=n(9341),a=n(7392),s=n(5268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},5069:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3157),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},7042:function(t,e,n){"use strict";var r=n(2109),i=n(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,b=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(t,e){var n,r,i,f=l(this),d=c(f),v=u(t,d),y=u(void 0===e?d:e,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,y);for(r=new(void 0===n?m:n)(b(y-v,0)),i=0;v<y;v++,i++)v in f&&h(r,i,f[v]);return r.length=i,r}})},2707:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(9662),a=n(7908),s=n(6244),u=n(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),b=i(g.push),y=c((function(){g.sort(void 0)})),w=c((function(){g.sort(null)})),_=h("sort"),x=!c((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:y||!w||!_||!x},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(x)return void 0===t?m(e):m(e,t);var n,r,i=[],c=s(e);for(r=0;r<c;r++)r in e&&b(i,e[r]);for(l(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}}(t)),n=i.length,r=0;r<n;)e[r]=i[r++];for(;r<c;)delete e[r++];return e}})},561:function(t,e,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(t,e){var n,r,i,h,m,b,y=u(this),w=s(y),_=o(t,w),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=w-_):(n=x-2,r=p(d(a(e),0),w-_)),w+n-r>v)throw f(g);for(i=c(y,r),h=0;h<r;h++)(m=_+h)in y&&l(i,h,y[m]);if(i.length=r,n<r){for(h=_;h<w-r;h++)b=h+n,(m=h+r)in y?y[b]=y[m]:delete y[b];for(h=w;h>w-r+n;h--)delete y[h-1]}else if(n>r)for(h=w-r;h>_;h--)b=h+n-1,(m=h+r-1)in y?y[b]=y[m]:delete y[b];for(h=0;h<n;h++)y[h+_]=arguments[h+2];return y.length=w-r+n,i}})},9244:function(t,e,n){n(1223)("flatMap")},3792:function(t,e,n){n(1223)("flat")},6078:function(t,e,n){var r=n(2597),i=n(1320),o=n(8709),a=n(5112)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},8309:function(t,e,n){var r=n(9781),i=n(6530).EXISTS,o=n(1702),a=n(3070).f,s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},5837:function(t,e,n){n(2109)({global:!0},{globalThis:n(7854)})},8862:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(6916),s=n(1702),u=n(7293),c=n(3157),l=n(614),h=n(111),f=n(2190),d=n(206),p=n(133),v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),b=s("".charCodeAt),y=s("".replace),w=s(1..toString),_=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,P=/^[\uDC00-\uDFFF]$/,k=!p||u((function(){var t=i("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),S=function(t,e){var n=d(arguments),r=e;if((h(e)||void 0!==t)&&!f(t))return c(e)||(e=function(t,e){if(l(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,o(v,null,n)},E=function(t,e,n){var r=m(n,e-1),i=m(n,e+1);return g(x,t)&&!g(P,i)||g(P,t)&&!g(x,r)?"\\u"+w(b(t,0),16):t};v&&r({target:"JSON",stat:!0,forced:k||C},{stringify:function(t,e,n){var r=d(arguments),i=o(k?S:v,null,r);return C&&"string"==typeof i?y(i,_,E):i}})},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},9098:function(t,e,n){"use strict";n(7710)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},1532:function(t,e,n){n(9098)},4914:function(t,e,n){var r=n(2109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},2420:function(t,e,n){n(2109)({target:"Math",stat:!0},{sign:n(4310)})},2703:function(t,e,n){n(8003)(Math,"Math",!0)},9653:function(t,e,n){"use strict";var r=n(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),b=n(3111).trim,y="Number",w=i.Number,_=w.prototype,x=i.TypeError,P=o("".slice),k=o("".charCodeAt),C=function(t){var e=f(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,r,i,o,a,s,u,c=f(t,"number");if(h(c))throw x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),43===(e=k(c,0))||45===e){if(88===(n=k(c,2))||120===n)return NaN}else if(48===e){switch(k(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=P(c,2)).length,s=0;s<a;s++)if((u=k(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(a(y,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var E,T=function(t){var e=arguments.length<1?0:w(C(t)),n=this;return l(_,n)&&d((function(){m(n)}))?c(Object(e),n,T):e},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(","),I=0;R.length>I;I++)u(w,E=R[I])&&!u(T,E)&&g(T,E,v(w,E));T.prototype=_,_.constructor=T,s(i,y,T)}},9601:function(t,e,n){var r=n(2109),i=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(t,e,n){var r=n(2109),i=n(6677),o=n(7293),a=n(111),s=n(2423).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},5003:function(t,e,n){var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:function(t,e,n){var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},h=0;c.length>h;)void 0!==(n=i(r,e=c[h++]))&&u(l,e,n);return l}})},6210:function(t,e,n){var r=n(2109),i=n(7293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},9660:function(t,e,n){var r=n(2109),i=n(133),o=n(7293),a=n(5181),s=n(7908);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},489:function(t,e,n){var r=n(2109),i=n(7293),o=n(7908),a=n(9518),s=n(8544);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},7941:function(t,e,n){var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:function(t,e,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},6833:function(t,e,n){var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},1058:function(t,e,n){var r=n(2109),i=n(3009);r({global:!0,forced:parseInt!=i},{parseInt:i})},821:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1;u(t,(function(t){var o=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,a[o]=t,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),i=n(1913),o=n(3702).CONSTRUCTOR,a=n(2492),s=n(5005),u=n(614),c=n(1320),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(a)){var h=s("Promise").prototype.catch;l.catch!==h&&c(l,"catch",h,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,i,o,a=n(2109),s=n(1913),u=n(5268),c=n(7854),l=n(6916),h=n(1320),f=n(2248),d=n(7674),p=n(8003),v=n(6340),g=n(9662),m=n(614),b=n(111),y=n(5787),w=n(6707),_=n(261).set,x=n(5948),P=n(842),k=n(2534),C=n(8572),S=n(9909),E=n(2492),T=n(3702),R=n(8523),I="Promise",O=T.CONSTRUCTOR,M=T.REJECTION_EVENT,A=T.SUBCLASSING,$=S.getterFor(I),j=S.set,L=E&&E.prototype,D=E,N=L,B=c.TypeError,U=c.document,F=c.process,W=R.f,z=W,H=!!(U&&U.createEvent&&c.dispatchEvent),V="unhandledrejection",q=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},X=function(t,e){var n,r,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(a||(2===e.rejection&&J(e),e.rejection=1),!0===s?n=o:(h&&h.enter(),n=s(o),h&&(h.exit(),i=!0)),n===t.promise?c(B("Promise-chain cycle")):(r=q(n))?l(r,n,u,c):u(n)):c(o)}catch(t){h&&!i&&h.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,x((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},G=function(t,e,n){var r,i;H?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!M&&(i=c["on"+t])?i(r):t===V&&P("Unhandled promise rejection",n)},K=function(t){l(_,c,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=k((function(){u?F.emit("unhandledRejection",r,n):G(V,n,r)})),t.rejection=u||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(_,c,(function(){var e=t.facade;u?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Q=function(t,e,n){return function(r){t(e,r,n)}},tt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},et=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw B("Promise can't be resolved itself");var r=q(e);r?x((function(){var n={done:!1};try{l(r,e,Q(et,n,t),Q(tt,n,t))}catch(e){tt(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){tt({done:!1},e,t)}}};if(O&&(N=(D=function(t){y(this,N),g(t),l(r,this);var e=$(this);try{t(Q(et,e),Q(tt,e))}catch(t){tt(e,t)}}).prototype,(r=function(t){j(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=f(N,{then:function(t,e){var n=$(this),r=W(w(this,D));return n.parent=!0,r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=u?F.domain:void 0,0==n.state?n.reactions.add(r):x((function(){X(r,n)})),r.promise}}),i=function(){var t=new r,e=$(t);this.promise=t,this.resolve=Q(et,e),this.reject=Q(tt,e)},R.f=W=function(t){return t===D||void 0===t?new i(t):z(t)},!s&&m(E)&&L!==Object.prototype)){o=L.then,A||h(L,"then",(function(t,e){var n=this;return new D((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(t){}d&&d(L,N)}a({global:!0,wrap:!0,forced:O},{Promise:D}),p(D,I,!1,!0),v(I)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(9662),a=n(8523),s=n(2534),u=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=o(e.resolve);u(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),i=n(6916),o=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),i=n(5005),o=n(1913),a=n(2492),s=n(3702).CONSTRUCTOR,u=n(9478),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return u(l&&this===c?a:this,t)}})},2419:function(t,e,n){var r=n(2109),i=n(5005),o=n(2104),a=n(7065),s=n(9483),u=n(9670),c=n(111),l=n(30),h=n(7293),f=i("Reflect","construct"),d=Object.prototype,p=[].push,v=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!h((function(){f((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!v)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,h=l(c(i)?i:d),m=o(t,h,e);return c(m)?m:h}})},4819:function(t,e,n){var r=n(2109),i=n(6916),o=n(111),a=n(9670),s=n(5032),u=n(1236),c=n(9518);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,h=arguments.length<3?e:arguments[2];return a(e)===h?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,h):o(l=c(e))?t(l,n,h):void 0}})},4603:function(t,e,n){var r=n(9781),i=n(7854),o=n(1702),a=n(4705),s=n(9587),u=n(8880),c=n(8006).f,l=n(7976),h=n(7850),f=n(1340),d=n(4706),p=n(2999),v=n(2626),g=n(1320),m=n(7293),b=n(2597),y=n(9909).enforce,w=n(6340),_=n(5112),x=n(9441),P=n(7168),k=_("match"),C=i.RegExp,S=C.prototype,E=i.SyntaxError,T=o(S.exec),R=o("".charAt),I=o("".replace),O=o("".indexOf),M=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,j=/a/g,L=new C($)!==$,D=p.MISSED_STICKY,N=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||D||x||P||m((function(){return j[k]=!1,C($)!=$||C(j)==j||"/a/i"!=C($,"i")}))))){for(var B=function(t,e){var n,r,i,o,a,c,p=l(S,this),v=h(t),g=void 0===e,m=[],w=t;if(!p&&v&&g&&t.constructor===B)return t;if((v||l(S,t))&&(t=t.source,g&&(e=d(w))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),w=t,x&&"dotAll"in $&&(r=!!e&&O(e,"s")>-1)&&(e=I(e,/s/g,"")),n=e,D&&"sticky"in $&&(i=!!e&&O(e,"y")>-1)&&N&&(e=I(e,/y/g,"")),P&&(t=(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:T(A,M(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||b(a,l))throw new E("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t))[0],m=o[1]),a=s(C(t,e),p?this:S,B),(r||i||m.length)&&(c=y(a),r&&(c.dotAll=!0,c.raw=B(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=R(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+R(t,++r);return i}(t),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),t!==w)try{u(a,"source",""===w?"(?:)":w)}catch(t){}return a},U=c(C),F=0;U.length>F;)v(B,C,U[F++]);S.constructor=B,B.prototype=S,g(i,"RegExp",B)}w("RegExp")},4916:function(t,e,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(t,e,n){"use strict";var r=n(6530).PROPER,i=n(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 t=o(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},7227:function(t,e,n){"use strict";n(7710)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(5631))},189:function(t,e,n){n(7227)},7852:function(t,e,n){"use strict";var r,i=n(2109),o=n(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(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:v(s(n),r),o=u(t);return d?d(e,o,i):p(e,i-o.length,i)===o}})},2023:function(t,e,n){"use strict";var r=n(2109),i=n(1702),o=n(3929),a=n(4488),s=n(1340),u=n(4964),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},5306:function(t,e,n){"use strict";var r=n(2104),i=n(6916),o=n(1702),a=n(7007),s=n(7293),u=n(9670),c=n(614),l=n(9303),h=n(7466),f=n(1340),d=n(4488),p=n(1530),v=n(8173),g=n(647),m=n(7651),b=n(5112)("replace"),y=Math.max,w=Math.min,_=o([].concat),x=o([].push),P=o("".indexOf),k=o("".slice),C="$0"==="a".replace(/./,"$0"),S=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var o=S?"$":"$0";return[function(t,n){var r=d(this),o=null==t?void 0:v(t,b);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=u(this),s=f(t);if("string"==typeof i&&-1===P(i,o)&&-1===P(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var v=c(i);v||(i=f(i));var b=a.global;if(b){var C=a.unicode;a.lastIndex=0}for(var S=[];;){var E=m(a,s);if(null===E)break;if(x(S,E),!b)break;""===f(E[0])&&(a.lastIndex=p(s,h(a.lastIndex),C))}for(var T,R="",I=0,O=0;O<S.length;O++){for(var M=f((E=S[O])[0]),A=y(w(l(E.index),s.length),0),$=[],j=1;j<E.length;j++)x($,void 0===(T=E[j])?T:String(T));var L=E.groups;if(v){var D=_([M],$,A,s);void 0!==L&&x(D,L);var N=f(r(i,void 0,D))}else N=g(M,s,A,$,L,i);A>=I&&(R+=k(s,I,A)+N,I=A+M.length)}return R+k(s,I)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!C||S)},4765:function(t,e,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(t,e,n){return[function(e){var n=a(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;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(t,e,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),b=n(2999),y=n(7293),w=b.UNSUPPORTED_Y,_=4294967295,x=Math.min,P=[].push,k=o(/./.exec),C=o(P),S=o("".slice);a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=d(c(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);for(var u,l,h,f=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,b=new RegExp(t.source,p+"g");(u=i(m,b,o))&&!((l=b.lastIndex)>g&&(C(f,S(o,g,u.index)),u.length>1&&u.index<o.length&&r(P,f,v(u,1)),h=u[0].length,g=l,f.length>=a));)b.lastIndex===u.index&&b.lastIndex++;return g===o.length?!h&&k(b,"")||C(f,""):C(f,S(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),a=null==e?void 0:p(e,t);return a?i(a,e,r,n):i(o,d(r),e,n)},function(t,r){var i=u(this),a=d(t),s=n(o,i,a,r,o!==e);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),b=void 0===r?_:r>>>0;if(0===b)return[];if(0===a.length)return null===g(m,a)?[a]:[];for(var y=0,P=0,k=[];P<a.length;){m.lastIndex=w?0:P;var E,T=g(m,w?S(a,P):a);if(null===T||(E=x(f(m.lastIndex+(w?P:0)),a.length))===y)P=h(a,P,p);else{if(C(k,S(a,y,P)),k.length===b)return k;for(var R=1;R<=T.length-1;R++)if(C(k,T[R]),k.length===b)return k;P=y=E}}return C(k,S(a,y)),k}]}),!!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},6755:function(t,e,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(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):p(e,n,n+r.length)===r}})},4032:function(t,e,n){"use strict";var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(1913),u=n(9781),c=n(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),b=n(30),y=n(1956),w=n(8006),_=n(1156),x=n(5181),P=n(1236),k=n(3070),C=n(6048),S=n(5296),E=n(1320),T=n(2309),R=n(6200),I=n(3501),O=n(9711),M=n(5112),A=n(6061),$=n(7235),j=n(6532),L=n(8003),D=n(9909),N=n(2092).forEach,B=R("hidden"),U="Symbol",F=D.set,W=D.getterFor(U),z=Object.prototype,H=i.Symbol,V=H&&H.prototype,q=i.TypeError,X=i.QObject,Y=P.f,G=k.f,K=_.f,Z=S.f,J=a([].push),Q=T("symbols"),tt=T("op-symbols"),et=T("wks"),nt=!X||!X.prototype||!X.prototype.findChild,rt=u&&l((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(z,e);r&&delete z[e],G(t,e,n),r&&t!==z&&G(z,e,r)}:G,it=function(t,e){var n=Q[t]=b(V);return F(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ot=function(t,e,n){t===z&&ot(tt,e,n),d(t);var r=v(e);return d(n),h(Q,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=b(n,{enumerable:m(0,!1)})):(h(t,B)||G(t,B,m(1,{})),t[B][r]=!0),rt(t,r,n)):G(t,r,n)},at=function(t,e){d(t);var n=p(e),r=y(n).concat(lt(n));return N(r,(function(e){u&&!o(st,n,e)||ot(t,e,n[e])})),t},st=function(t){var e=v(t),n=o(Z,this,e);return!(this===z&&h(Q,e)&&!h(tt,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,B)&&this[B][e])||n)},ut=function(t,e){var n=p(t),r=v(e);if(n!==z||!h(Q,r)||h(tt,r)){var i=Y(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ct=function(t){var e=K(p(t)),n=[];return N(e,(function(t){h(Q,t)||h(I,t)||J(n,t)})),n},lt=function(t){var e=t===z,n=K(e?tt:p(t)),r=[];return N(n,(function(t){!h(Q,t)||e&&!h(z,t)||J(r,Q[t])})),r};c||(E(V=(H=function(){if(f(V,this))throw q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=O(t),n=function(t){this===z&&o(n,tt,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),rt(this,e,m(1,t))};return u&&nt&&rt(z,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return W(this).tag})),E(H,"withoutSetter",(function(t){return it(O(t),t)})),S.f=st,k.f=ot,C.f=at,P.f=ut,w.f=_.f=ct,x.f=lt,A.f=function(t){return it(M(t),t)},u&&(G(V,"description",{configurable:!0,get:function(){return W(this).description}}),s||E(z,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),N(y(et),(function(t){$(t)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):at(b(t),e)},defineProperty:ot,defineProperties:at,getOwnPropertyDescriptor:ut}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ct}),j(),L(H,U),I[B]=!0},1817:function(t,e,n){"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(1702),s=n(2597),u=n(614),c=n(7976),l=n(1340),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 t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(v[e]=!0),e};f(g,d),g.prototype=p,p.constructor=g;var m="Symbol(test)"==String(d("test")),b=a(p.toString),y=a(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),x=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=y(this),e=b(t);if(s(v,t))return"";var n=m?x(e,7,-1):_(e,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:g})}},763:function(t,e,n){var r=n(2109),i=n(5005),o=n(2597),a=n(1340),s=n(2309),u=n(735),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var r=n(2109),i=n(2597),o=n(2190),a=n(6330),s=n(2309),u=n(735),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},6649:function(t,e,n){var r=n(7235),i=n(6532);r("toPrimitive"),i()},3680:function(t,e,n){var r=n(5005),i=n(7235),o=n(8003);i("toStringTag"),o(r("Symbol"),"Symbol")},1202:function(t,e,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(t){return function(){return t(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,b=o(m.delete),y=o(m.has),w=o(m.get),_=o(m.set);a(m,{delete:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.delete(t)}return b(this,t)},has:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(l(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y(this,t)?w(this,t):e.frozen.get(t)}return w(this,t)},set:function(t,e){if(l(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),y(this,t)?_(this,t,e):n.frozen.set(t,e)}else _(this,t,e);return this}})}},4129:function(t,e,n){n(1202)},5743:function(t,e,n){n(5837)},4747:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},3948:function(t,e,n){var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),u=n(5112),c=u("iterator"),l=u("toStringTag"),h=a.values,f=function(t,e){if(t){if(t[c]!==h)try{s(t,c,h)}catch(e){t[c]=h}if(t[l]||s(t,l,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},5556:function(t,e,n){"use strict";n(6992);var r=n(2109),i=n(7854),o=n(6916),a=n(1702),s=n(9781),u=n(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),b=n(648),y=n(9670),w=n(111),_=n(1340),x=n(30),P=n(9114),k=n(8554),C=n(1246),S=n(8053),E=n(5112),T=n(4362),R=E("iterator"),I="URLSearchParams",O="URLSearchParamsIterator",M=d.set,A=d.getterFor(I),$=d.getterFor(O),j=Object.getOwnPropertyDescriptor,L=function(t){if(!s)return i[t];var e=j(i,t);return e&&e.value},D=L("fetch"),N=L("Request"),B=L("Headers"),U=N&&N.prototype,F=B&&B.prototype,W=i.RegExp,z=i.TypeError,H=i.decodeURIComponent,V=i.encodeURIComponent,q=a("".charAt),X=a([].join),Y=a([].push),G=a("".replace),K=a([].shift),Z=a([].splice),J=a("".split),Q=a("".slice),tt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=W("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return H(t)}catch(e){return t}},it=function(t){var e=G(t,tt," "),n=4;try{return H(e)}catch(t){for(;n;)e=G(e,nt(n--),rt);return e}},ot=/[!'()~]|%20/g,at={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return at[t]},ut=function(t){return G(V(t),ot,st)},ct=f((function(t,e){M(this,{type:O,iterator:k(A(t).entries),kind:e})}),"Iterator",(function(){var t=$(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===q(t,0)?Q(t,1):t:_(t)))};lt.prototype={type:I,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,s,u,c=C(t);if(c)for(n=(e=k(t,c)).next;!(r=o(n,e)).done;){if(a=(i=k(y(r.value))).next,(s=o(a,i)).done||(u=o(a,i)).done||!o(a,i).done)throw z("Expected sequence with length 2");Y(this.entries,{key:_(s.value),value:_(u.value)})}else for(var l in t)g(t,l)&&Y(this.entries,{key:l,value:_(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=J(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=J(e,"="),Y(this.entries,{key:it(K(n)),value:it(X(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],Y(n,ut(t.key)+"="+ut(t.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){p(this,ft);var t=arguments.length>0?arguments[0]:void 0;M(this,new lt(t))},ft=ht.prototype;if(l(ft,{append:function(t,e){S(arguments.length,2);var n=A(this);Y(n.entries,{key:_(t),value:_(e)}),n.updateURL()},delete:function(t){S(arguments.length,1);for(var e=A(this),n=e.entries,r=_(t),i=0;i<n.length;)n[i].key===r?Z(n,i,1):i++;e.updateURL()},get:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=[],i=0;i<e.length;i++)e[i].key===n&&Y(r,e[i].value);return r},has:function(t){S(arguments.length,1);for(var e=A(this).entries,n=_(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){S(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=_(t),s=_(e),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?Z(i,u--,1):(o=!0,n.value=s));o||Y(i,{key:a,value:s}),r.updateURL()},sort:function(){var t=A(this);T(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=A(this).entries,r=m(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ft,R,ft.entries,{name:"entries"}),c(ft,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),h(ht,I),r({global:!0,forced:!u},{URLSearchParams:ht}),!u&&v(B)){var dt=a(F.has),pt=a(F.set),vt=function(t){if(w(t)){var e,n=t.body;if(b(n)===I)return e=t.headers?new B(t.headers):new B,dt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),x(t,{body:P(0,_(n)),headers:P(0,e)})}return t};if(v(D)&&r({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(t){return D(t,arguments.length>1?vt(arguments[1]):{})}}),v(N)){var gt=function(t){return p(this,U),new N(t,arguments.length>1?vt(arguments[1]):{})};U.constructor=gt,gt.prototype=U,r({global:!0,forced:!0,noTargetGet:!0},{Request:gt})}}t.exports={URLSearchParams:ht,getState:A}},1637:function(t,e,n){n(5556)},840:function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(t,e,n){return setTimeout(_(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(g(t,n[e],n),!0)}function g(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function m(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var b=m((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),y=m((function(t,e){return b(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function _(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||s,e):t}function P(t,e){return t===s?e:t}function k(t,e,n){g(T(e),(function(e){t.addEventListener(e,n,!1)}))}function C(t,e,n){g(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function R(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];R(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function M(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return s}var A=1;function $(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var j="ontouchstart"in i,L=M(i,"PointerEvent")!==s,D=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",B="mouse",U=["x","y"],F=["clientX","clientY"];function W(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function z(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=H(e)),i>1&&!n.firstMultiple?n.firstMultiple=H(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,u=a?a.center:o.center,c=e.center=V(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=G(u,c),e.distance=Y(u,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=X(e.deltaX,e.deltaY);var l,h,p=q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,e.scale=a?(l=a.pointers,Y((h=r)[0],h[1],F)/Y(l[0],l[1],F)):1,e.rotation=a?function(t,e){return G(e[1],e[0],F)+G(t[1],t[0],F)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(u>25||a.velocity===s)){var c=e.deltaX-a.deltaX,l=e.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=X(c,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var v=t.element;S(e.srcEvent.target,v)&&(v=e.srcEvent.target),e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:V(e),deltaX:t.deltaX,deltaY:t.deltaY}}function V(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function q(t,e,n){return{x:e/t||0,y:n/t||0}}function X(t,e){return t===e?1:f(t)>=f(e)?t<0?2:4:e<0?8:16}function Y(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function G(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C($(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,W.apply(this,arguments)}w(Q,W,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:B,srcEvent:t}))}});var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:N,3:"pen",4:B,5:"kinect"},nt="pointerdown",rt="pointermove pointerup pointercancel";function it(){this.evEl=nt,this.evWin=rt,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(nt="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),w(it,W,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=tt[r],o=et[t.pointerType]||t.pointerType,a=o==N,s=R(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",st="touchstart touchmove touchend touchcancel";function ut(){this.evTarget=at,this.evWin=st,this.started=!1,W.apply(this,arguments)}function ct(t,e){var n=I(t.touches),r=I(t.changedTouches);return 12&e&&(n=O(n.concat(r),"identifier",!0)),[n,r]}w(ut,W,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var n=ct.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var lt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ht="touchstart touchmove touchend touchcancel";function ft(){this.evTarget=ht,this.targetIds={},W.apply(this,arguments)}function dt(t,e){var n=I(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=I(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return S(t.target,u)})),1===e)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&e&&delete r[a[i].identifier],i++;return s.length?[O(o.concat(s),"identifier",!0),s]:void 0}function pt(){W.apply(this,arguments);var t=_(this.handler,this);this.touch=new ft(this.manager,t),this.mouse=new Q(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&&gt.call(this,e)}function gt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function mt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(ft,W,{handler:function(t){var e=lt[t.type],n=dt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),w(pt,W,{handler:function(t,e,n){var r=n.pointerType==N,i=n.pointerType==B;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)vt.call(this,e,n);else if(i&&mt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=M(l.style,"touchAction"),yt=bt!==s,wt="compute",_t="auto",xt="manipulation",Pt="none",kt="pan-x",Ct="pan-y",St=function(){if(!yt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function Et(t,e){this.manager=t,this.set(e)}Et.prototype={set:function(t){t==wt&&(t=this.compute()),yt&&this.manager.element.style&&St[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return g(this.manager.recognizers,(function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,Pt))return Pt;var e=E(t,kt),n=E(t,Ct);return e&&n?Pt:e||n?e?kt:Ct:E(t,xt)?xt:_t}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=E(r,Pt)&&!St.none,o=E(r,Ct)&&!St["pan-y"],a=E(r,kt)&&!St["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Tt=32;function Rt(t){this.options=u({},this.defaults,t||{}),this.id=A++,this.manager=null,this.options.enable=P(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function It(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ot(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Mt(t,e){var n=e.manager;return n?n.get(t):t}function At(){Rt.apply(this,arguments)}function $t(){At.apply(this,arguments),this.pX=null,this.pY=null}function jt(){At.apply(this,arguments)}function Lt(){Rt.apply(this,arguments),this._timer=null,this._input=null}function Dt(){At.apply(this,arguments)}function Nt(){At.apply(this,arguments)}function Bt(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ut(t,e){return(e=e||{}).recognizers=P(e.recognizers,Ut.defaults.preset),new Ft(t,e)}function Ft(t,e){this.options=u({},Ut.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(L?it:D?ft:j?pt:Q))(this,z),this.touchAction=new Et(this,this.options.touchAction),Wt(this,!0),g(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Wt(t,e){var n,r=t.element;r.style&&(g(t.options.cssProps,(function(i,o){n=M(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Rt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Mt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===R(e,t=Mt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Mt(t,this);var e=R(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+It(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+It(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Tt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=Tt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(At,Rt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Tt}}),w($t,At,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Ct),24&t&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return At.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ot(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(jt,At,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),w(Lt,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_t]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(Dt,At,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(Nt,At,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return $t.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Ot(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Bt,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||Y(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Tt},failTimeout:function(){return this._timer=p((function(){this.state=Tt}),this.options.interval,this),Tt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ut.VERSION="2.0.7",Ut.defaults={domEvents:!1,touchAction:wt,enable:!0,inputTarget:null,inputClass:null,preset:[[Dt,{enable:!1}],[jt,{enable:!1},["rotate"]],[Nt,{direction:6}],[$t,{direction:6},["swipe"]],[Bt],[Bt,{event:"doubletap",taps:2},["tap"]],[Lt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ft.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Rt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=R(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return g(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return g(T(t),(function(t){e?n[t]&&n[t].splice(R(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Wt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Ut,{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:Tt,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:Ft,Input:W,TouchAction:Et,TouchInput:ft,MouseInput:Q,PointerEventInput:it,TouchMouseInput:pt,SingleTouchInput:ut,Recognizer:Rt,AttrRecognizer:At,Tap:Bt,Pan:$t,Swipe:Nt,Pinch:jt,Rotate:Dt,Press:Lt,on:k,off:C,each:g,merge:y,extend:b,assign:u,inherit:w,bindFn:_,prefixed:M}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ut,(r=function(){return Ut}.call(e,n,e,t))===s||(t.exports=r)}(window,document)},4581:function(t,e,n){!function(t,e,n){var r,i,o,a,s,u,c,l,h,f,d,p,v,g,m,b,y,w,_,x,P,k,C,S,E,T,R,I,O,M,A,$,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 t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,(function(t,n){e[t]=n})),e},createIframe:function(){var n=e.createElement("iframe"),r=t(this).data("cbox-iframe-attrs");return"object"==typeof r&&t.each(r,(function(t,e){n[t]=e})),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},D="colorbox",N="cboxElement",B="cbox_load",U="cbox_complete",F="cbox_cleanup",W="cbox_closed",z="cbox_purge",H=t("<a/>"),V="div",q=0,X={};function Y(n,r,i){var o=e.createElement(n);return r&&(o.id="cbox"+r),i&&(o.style.cssText=i),t(o)}function G(){return n.innerHeight?n.innerHeight:t(n).height()}function K(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var r;return void 0===this.cache[e]&&(void 0!==(r=t(this.el).attr("data-cbox-"+e))?this.cache[e]=r:void 0!==n[e]?this.cache[e]=n[e]:void 0!==L[e]&&(this.cache[e]=L[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function Z(t){var e=h.length,n=(T+t)%e;return n<0?e+n:n}function J(t,e){return Math.round((/%/.test(t)?("x"===e?f.width():G())/100:1)*parseInt(t,10))}function Q(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function tt(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function et(t){"contains"in i[0]&&!i[0].contains(t.target)&&t.target!==r[0]&&(t.stopPropagation(),i.focus())}function nt(t){nt.str!==t&&(i.add(r).removeClass(nt.str).addClass(t),nt.str=t)}function rt(n){t(e).trigger(n),H.triggerHandler(n)}var it=function(){var t,e,n="cboxSlideshow_",r="click.cbox";function o(){clearTimeout(e)}function a(){(P.get("loop")||h[T+1])&&(o(),e=setTimeout($.next,P.get("slideshowSpeed")))}function s(){b.html(P.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),b.html(P.get("slideshowStart")).unbind(r).one(r,(function(){$.next(),s()})),i.removeClass(n+"on").addClass(n+"off")}function c(){t=!1,b.hide(),o(),H.unbind(U,a).unbind(B,o),i.removeClass(n+"off "+n+"on")}return function(){t?P.get("slideshow")||(H.unbind(F,c),c()):P.get("slideshow")&&h[1]&&(t=!0,H.one(F,c),P.get("slideshowAuto")?s():u(),b.show())}}();function ot(o){var f,m;if(!M){if(f=t(o).data(D),P=new K(o,f),m=P.get("rel"),T=0,m&&!1!==m&&"nofollow"!==m?(h=t(".cboxElement").filter((function(){return new K(this,t.data(this,D)).get("rel")===m})),-1===(T=h.index(P.el))&&(h=h.add(P.el),T=h.length-1)):h=t(P.el),!I){I=O=!0,nt(P.get("className")),i.css({visibility:"hidden",display:"block",opacity:""}),d=Y(V,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),a.css({width:"",height:""}).append(d),k=s.height()+l.height()+a.outerHeight(!0)-a.height(),C=u.width()+c.width()+a.outerWidth(!0)-a.width(),S=d.outerHeight(!0),E=d.outerWidth(!0);var b=J(P.get("initialWidth"),"x"),y=J(P.get("initialHeight"),"y"),w=P.get("maxWidth"),j=P.get("maxHeight");P.w=Math.max((!1!==w?Math.min(b,J(w,"x")):b)-E-C,0),P.h=Math.max((!1!==j?Math.min(y,J(j,"y")):y)-S-k,0),d.css({width:"",height:P.h}),$.position(),rt("cbox_open"),P.get("onOpen"),x.add(g).hide(),i.focus(),P.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",et,!0),H.one(W,(function(){e.removeEventListener("focus",et,!0)}))),P.get("returnFocus")&&H.one(W,(function(){t(P.el).focus()}))}var L=parseFloat(P.get("opacity"));r.css({opacity:L==L?L:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?_.html(P.get("close")).appendTo(a):_.appendTo("<div/>"),function(){var e,r,i,o=$.prep,a=++q;if(O=!0,R=!1,rt(z),rt(B),P.get("onLoad"),P.h=P.get("height")?J(P.get("height"),"y")-S-k:P.get("innerHeight")&&J(P.get("innerHeight"),"y"),P.w=P.get("width")?J(P.get("width"),"x")-E-C:P.get("innerWidth")&&J(P.get("innerWidth"),"x"),P.mw=P.w,P.mh=P.h,P.get("maxWidth")&&(P.mw=J(P.get("maxWidth"),"x")-E-C,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.get("maxHeight")&&(P.mh=J(P.get("maxHeight"),"y")-S-k,P.mh=P.h&&P.h<P.mh?P.h:P.mh),e=P.get("href"),A=setTimeout((function(){v.show()}),100),P.get("inline")){var s=t(e).eq(0);i=t("<div>").hide().insertBefore(s),H.one(z,(function(){i.replaceWith(s)})),o(s)}else P.get("iframe")?o(" "):P.get("html")?o(P.get("html")):Q(P,e)?(e=tt(P,e),R=P.get("createImg"),t(R).addClass("cboxPhoto").bind("error.cbox",(function(){o(Y(V,"Error").html(P.get("imgError")))})).one("load",(function(){a===q&&setTimeout((function(){var e;P.get("retinaImage")&&n.devicePixelRatio>1&&(R.height=R.height/n.devicePixelRatio,R.width=R.width/n.devicePixelRatio),P.get("scalePhotos")&&(r=function(){R.height-=R.height*e,R.width-=R.width*e},P.mw&&R.width>P.mw&&(e=(R.width-P.mw)/R.width,r()),P.mh&&R.height>P.mh&&(e=(R.height-P.mh)/R.height,r())),P.h&&(R.style.marginTop=Math.max(P.mh-R.height,0)/2+"px"),h[1]&&(P.get("loop")||h[T+1])&&(R.style.cursor="pointer",t(R).bind("click.cbox",(function(){$.next()}))),R.style.width=R.width+"px",R.style.height=R.height+"px",o(R)}),1)})),R.src=e):e&&p.load(e,P.get("data"),(function(e,n){a===q&&o("error"===n?Y(V,"Error").html(P.get("xhrError")):t(this).contents())}))}()}}function at(){i||(j=!1,f=t(n),i=Y(V).attr({id:D,class:!1===t.support.opacity?"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),r=Y(V,"Overlay").hide(),v=t([Y(V,"LoadingOverlay")[0],Y(V,"LoadingGraphic")[0]]),o=Y(V,"Wrapper"),a=Y(V,"Content").append(g=Y(V,"Title"),m=Y(V,"Current"),w=t('<button type="button"/>').attr({id:"cboxPrevious"}),y=t('<button type="button"/>').attr({id:"cboxNext"}),b=t('<button type="button"/>').attr({id:"cboxSlideshow"}),v),_=t('<button type="button"/>').attr({id:"cboxClose"}),o.append(Y(V).append(Y(V,"TopLeft"),s=Y(V,"TopCenter"),Y(V,"TopRight")),Y(V,!1,"clear:left").append(u=Y(V,"MiddleLeft"),a,c=Y(V,"MiddleRight")),Y(V,!1,"clear:left").append(Y(V,"BottomLeft"),l=Y(V,"BottomCenter"),Y(V,"BottomRight"))).find("div div").css({float:"left"}),p=Y(V,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),x=y.add(w).add(m).add(b)),e.body&&!i.parent().length&&t(e.body).append(r,i.append(o,p))}t.colorbox||(t(at),($=t.fn.colorbox=t.colorbox=function(n,o){var a=this;return n=n||{},t.isFunction(a)&&(a=t("<a/>"),n.open=!0),a[0]?(at(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),ot(this))}return!!i&&(j||(j=!0,y.click((function(){$.next()})),w.click((function(){$.prev()})),_.click((function(){$.close()})),r.click((function(){P.get("overlayClose")&&$.close()})),t(e).bind("keydown.cbox",(function(t){var e=t.keyCode;I&&P.get("escKey")&&27===e&&(t.preventDefault(),$.close()),I&&P.get("arrowKey")&&h[1]&&!t.altKey&&(37===e?(t.preventDefault(),w.click()):39===e&&(t.preventDefault(),y.click()))})),t.isFunction(t.fn.on)?t(e).on("click.cbox",".cboxElement",n):t(".cboxElement").live("click.cbox",n)),!0)}()&&(o&&(n.onComplete=o),a.each((function(){var e=t.data(this,D)||{};t.data(this,D,t.extend(e,n))})).addClass(N),new K(a[0],n).get("open")&&ot(a[0])),a):a}).position=function(e,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)-C+"px",a[0].style.height=u[0].style.height=c[0].style.height=parseInt(i[0].style.height,10)-k+"px"}if(f.unbind("resize.cbox"),i.css({top:-9e4,left:-9e4}),h=f.scrollTop(),d=f.scrollLeft(),P.get("fixed")?(g.top-=h,g.left-=d,i.css({position:"fixed"})):(p=h,v=d,i.css({position:"absolute"})),!1!==P.get("right")?v+=Math.max(f.width()-P.w-E-C-J(P.get("right"),"x"),0):!1!==P.get("left")?v+=J(P.get("left"),"x"):v+=Math.round(Math.max(f.width()-P.w-E-C,0)/2),!1!==P.get("bottom")?p+=Math.max(G()-P.h-S-k-J(P.get("bottom"),"y"),0):!1!==P.get("top")?p+=J(P.get("top"),"y"):p+=Math.round(Math.max(G()-P.h-S-k,0)/2),i.css({top:g.top,left:g.left,visibility:"visible"}),o[0].style.width=o[0].style.height="9999px",r={width:P.w+E+C,height:P.h+S+k,top:p,left:v},e){var b=0;t.each(r,(function(t){r[t]===X[t]||(b=e)})),e=b}X=r,e||i.css(r),i.dequeue().animate(r,{duration:e||0,complete:function(){m(),O=!1,o[0].style.width=P.w+E+C+"px",o[0].style.height=P.h+S+k+"px",P.get("reposition")&&setTimeout((function(){f.bind("resize.cbox",$.position)}),1),t.isFunction(n)&&n()},step:m})},$.resize=function(t){var e;I&&((t=t||{}).width&&(P.w=J(t.width,"x")-E-C),t.innerWidth&&(P.w=J(t.innerWidth,"x")),d.css({width:P.w}),t.height&&(P.h=J(t.height,"y")-S-k),t.innerHeight&&(P.h=J(t.innerHeight,"y")),t.innerHeight||t.height||(e=d.scrollTop(),d.css({height:"auto"}),P.h=d.height()),d.css({height:P.h}),e&&d.scrollTop(e),$.position("none"===P.get("transition")?0:P.get("speed")))},$.prep=function(n){if(I){var r,o="none"===P.get("transition")?0:P.get("speed");d.remove(),(d=Y(V,"LoadedContent").append(n)).hide().appendTo(p.show()).css({width:(P.w=P.w||d.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w),overflow:P.get("scrolling")?"auto":"hidden"}).css({height:(P.h=P.h||d.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h)}).prependTo(a),p.hide(),t(R).css({float:"none"}),nt(P.get("className")),r=function(){var n,r,a=h.length;function s(){!1===t.support.opacity&&i[0].style.removeAttribute("filter")}I&&(r=function(){clearTimeout(A),v.hide(),rt(U),P.get("onComplete")},g.html(P.get("title")).show(),d.show(),a>1?("string"==typeof P.get("current")&&m.html(P.get("current").replace("{current}",T+1).replace("{total}",a)).show(),y[P.get("loop")||T<a-1?"show":"hide"]().html(P.get("next")),w[P.get("loop")||T?"show":"hide"]().html(P.get("previous")),it(),P.get("preloading")&&t.each([Z(-1),Z(1)],(function(){var n=h[this],r=new K(n,t.data(n,D)),i=r.get("href");i&&Q(r,i)&&(i=tt(r,i),e.createElement("img").src=i)}))):x.hide(),P.get("iframe")?(n=P.get("createIframe"),P.get("scrolling")||(n.scrolling="no"),t(n).attr({src:P.get("href"),class:"cboxIframe"}).one("load",r).appendTo(d),H.one(z,(function(){n.src="//about:blank"})),P.get("fastIframe")&&t(n).trigger("load")):r(),"fade"===P.get("transition")?i.fadeTo(o,1,s):s())},"fade"===P.get("transition")?i.fadeTo(o,0,(function(){$.position(0,r)})):$.position(o,r)}},$.next=function(){!O&&h[1]&&(P.get("loop")||h[T+1])&&(T=Z(1),ot(h[T]))},$.prev=function(){!O&&h[1]&&(P.get("loop")||T)&&(T=Z(-1),ot(h[T]))},$.close=function(){I&&!M&&(M=!0,I=!1,rt(F),P.get("onCleanup"),f.unbind(".cbox"),r.fadeTo(P.get("fadeOut")||0,0),i.stop().fadeTo(P.get("fadeOut")||0,0,(function(){i.hide(),r.hide(),rt(z),d.remove(),setTimeout((function(){M=!1,rt(W),P.get("onClosed")}),1)})))},$.remove=function(){i&&(i.stop(),t.colorbox.close(),i.stop(!1,!0).remove(),r.remove(),M=!1,i=null,t(".cboxElement").removeData(D).removeClass(N),t(e).unbind("click.cbox").unbind("keydown.cbox"))},$.element=function(){return t(P.el)},$.settings=L)}(n(3609),document,window)},5557:function(t,e,n){!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(n(3609))},3762:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){var e,n="ui-effects-",r="ui-effects-style",i="ui-effects-animated",o=t;return t.effects={effect:{}},function(t,e){var n,r=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],o=t.Color=function(e,n,r,i){return new t.Color.fn.parse(e,n,r,i)},a={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=o.support={},c=t("<p>")[0],l=t.each;function h(t,e,n){var r=s[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:0>t?0:r.max<t?r.max:t)}function f(e){var r=o(),s=r._rgba=[];return e=e.toLowerCase(),l(i,(function(t,n){var i,o=n.re.exec(e),u=o&&n.parse(o),c=n.space||"rgba";if(u)return i=r[c](u),r[a[c].cache]=i[a[c].cache],s=r._rgba=i._rgba,!1})),s.length?("0,0,0,0"===s.join()&&t.extend(s,n.transparent),r):n[e]}function d(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}c.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=c.style.backgroundColor.indexOf("rgba")>-1,l(a,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),o.fn=t.extend(o.prototype,{parse:function(r,i,s,u){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(i),i=e);var c=this,d=t.type(r),p=this._rgba=[];return i!==e&&(r=[r,i,s,u],d="array"),"string"===d?this.parse(f(r)||n._default):"array"===d?(l(a.rgba.props,(function(t,e){p[e.idx]=h(r[e.idx],e)})),this):"object"===d?(l(a,r instanceof o?function(t,e){r[e.cache]&&(c[e.cache]=r[e.cache].slice())}:function(e,n){var i=n.cache;l(n.props,(function(t,e){if(!c[i]&&n.to){if("alpha"===t||null==r[t])return;c[i]=n.to(c._rgba)}c[i][e.idx]=h(r[t],e,!0)})),c[i]&&t.inArray(null,c[i].slice(0,3))<0&&(c[i][3]=1,n.from&&(c._rgba=n.from(c[i])))}),this):void 0},is:function(t){var e=o(t),n=!0,r=this;return l(a,(function(t,i){var o,a=e[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],l(i.props,(function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]}))),n})),n},_space:function(){var t=[],e=this;return l(a,(function(n,r){e[r.cache]&&t.push(n)})),t.pop()},transition:function(t,e){var n=o(t),r=n._space(),i=a[r],u=0===this.alpha()?o("transparent"):this,c=u[i.cache]||i.to(u._rgba),f=c.slice();return n=n[i.cache],l(i.props,(function(t,r){var i=r.idx,o=c[i],a=n[i],u=s[r.type]||{};null!==a&&(null===o?f[i]=a:(u.mod&&(a-o>u.mod/2?o+=u.mod:o-a>u.mod/2&&(o-=u.mod)),f[i]=h((a-o)*e+o,r)))})),this[r](f)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=o(e)._rgba;return o(t.map(n,(function(t,e){return(1-r)*i[e]+r*t})))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t}));return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(255*r)),"#"+t.map(n,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,a.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(r,i,o),u=Math.min(r,i,o),c=s-u,l=s+u,h=.5*l;return e=u===s?0:r===s?60*(i-o)/c+360:i===s?60*(o-r)/c+120:60*(r-i)/c+240,n=0===c?0:h<=.5?c/l:c/(2-l),[Math.round(e)%360,n,h,null==a?1:a]},a.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],r=t[2],i=t[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*d(a,o,e+1/3)),Math.round(255*d(a,o,e)),Math.round(255*d(a,o,e-1/3)),i]},l(a,(function(n,i){var a=i.props,s=i.cache,u=i.to,c=i.from;o.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===e)return this[s].slice();var r,i=t.type(n),f="array"===i||"object"===i?n:arguments,d=this[s].slice();return l(a,(function(t,e){var n=f["object"===i?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=h(n,e)})),c?((r=o(c(d)))[s]=d,r):o(d)},l(a,(function(e,i){o.fn[e]||(o.fn[e]=function(o){var a,s=t.type(o),u="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[u](),l=c[i.idx];return"undefined"===s?l:("function"===s&&(o=o.call(this,l),s=t.type(o)),null==o&&i.empty?this:("string"===s&&(a=r.exec(o))&&(o=l+parseFloat(a[2])*("+"===a[1]?1:-1)),c[i.idx]=o,this[u](c)))})}))})),o.hook=function(e){var n=e.split(" ");l(n,(function(e,n){t.cssHooks[n]={set:function(e,r){var i,a,s="";if("transparent"!==r&&("string"!==t.type(r)||(i=f(r)))){if(r=o(i||r),!u.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?e.parentNode:e;(""===s||"transparent"===s)&&a&&a.style;)try{s=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(t){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=o(e.elem,n),e.end=o(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}))},o.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return l(["Top","Right","Bottom","Left"],(function(n,r){e["border"+r+"Color"]=t})),e}},n=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(o),function(){var e,n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(e){var n,r,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"==typeof i[n=i[r]]&&(o[t.camelCase(n)]=i[n]);else for(n in i)"string"==typeof i[n]&&(o[n]=i[n]);return o}t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(o.style(t.elem,n,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,o,a,s){var u=t.speed(o,a,s);return this.queue((function(){var o,a=t(this),s=a.attr("class")||"",c=u.children?a.find("*").addBack():a;c=c.map((function(){return{el:t(this),start:i(this)}})),(o=function(){t.each(n,(function(t,n){e[n]&&a[n+"Class"](e[n])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=function(e,n){var i,o,a={};for(i in n)o=n[i],e[i]!==o&&(r[i]||!t.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}(this.start,this.end),this})),a.attr("class",s),c=c.map((function(){var e=this,n=t.Deferred(),r=t.extend({},u,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,r),n.promise()})),t.when.apply(t,c.get()).done((function(){o(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),u.complete.call(a[0])}))}))},t.fn.extend({addClass:(e=t.fn.addClass,function(n,r,i,o){return r?t.effects.animateClass.call(this,{add:n},r,i,o):e.apply(this,arguments)}),removeClass:function(e){return function(n,r,i,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},r,i,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,r,i,o,a){return"boolean"==typeof r||void 0===r?i?t.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,i,o)}}(t.fn.toggleClass),switchClass:function(e,n,r,i,o){return t.effects.animateClass.call(this,{add:n,remove:e},r,i,o)}})}(),function(){var e;function o(e,n,r,i){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(i=n,r=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(i=r,r=n,n={}),t.isFunction(r)&&(i=r,r=null),n&&t.extend(e,n),r=r||n.duration,e.duration=t.fx.off?0:"number"==typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=i||n.complete,e}function a(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}function s(t,e){var n=e.outerWidth(),r=e.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=(e=t.expr.filters.animated,function(n){return!!t(n).data(i)||e(n)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var r=0,i=e.length;r<i;r++)null!==e[r]&&t.data(n+e[r],t[0].style[e[r]])},restore:function(t,e){for(var r,i=0,o=e.length;i<o;i++)null!==e[i]&&(r=t.data(n+e[i]),t.css(e[i],r))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},r=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(r),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,r){n[r]=e.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(i),r.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,n,r){return r||(r=n,n="effect"),t.effects.effect[e]=r,t.effects.effect[e].mode=n,r},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(e||100)/100:1,i="vertical"!==n?(e||100)/100:1;return{height:t.height()*i,width:t.width()*r,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();e>1&&r.splice.apply(r,[1,0].concat(r.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(r,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(r)||"",t.removeData(r)},mode:function(t,e){var n=t.is(":hidden");return"toggle"===e&&(e=n?"show":"hide"),(n?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var n,r;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:n}},createPlaceholder:function(e){var r,i=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(n+"placeholder",r)),e.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(t){var e=n+"placeholder",r=t.data(e);r&&(r.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,n,r,i){return i=i||{},t.each(n,(function(t,n){var o=e.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),t.fn.extend({effect:function(){var e=o.apply(this,arguments),n=t.effects.effect[e.effect],r=n.mode,a=e.queue,s=a||"fx",u=e.complete,c=e.mode,l=[],h=function(e){var n=t(this),o=t.effects.mode(n,c)||r;n.data(i,!0),l.push(o),r&&("show"===o||o===r&&"hide"===o)&&n.show(),r&&"none"===o||t.effects.saveStyle(n),t.isFunction(e)&&e()};if(t.fx.off||!n)return c?this[c](e.duration,u):this.each((function(){u&&u.call(this)}));function f(o){var a=t(this);function s(){t.isFunction(u)&&u.call(a[0]),t.isFunction(o)&&o()}e.mode=l.shift(),!1===t.uiBackCompat||r?"none"===e.mode?(a[c](),s()):n.call(a[0],e,(function(){a.removeData(i),t.effects.cleanUp(a),"hide"===e.mode&&a.hide(),s()})):(a.is(":hidden")?"hide"===c:"show"===c)?(a[c](),s()):n.call(a[0],e,s)}return!1===a?this.each(h).each(f):this.queue(s,h).queue(s,f)},show:function(t){return function(e){if(a(e))return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(e){if(a(e))return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(e){if(a(e)||"boolean"==typeof e)return t.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var n=this.css(e),r=[];return t.each(["em","px","%","pt"],(function(t,e){n.indexOf(e)>0&&(r=[parseFloat(n),e])})),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,n){var r=t(this),i=t(e.to),o="fixed"===i.css("position"),a=t("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,c=i.offset(),l={top:c.top-s,left:c.left-u,height:i.innerHeight(),width:i.innerWidth()},h=r.offset(),f=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:h.top-s,left:h.left-u,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(l,e.duration,e.easing,(function(){f.remove(),t.isFunction(n)&&n()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),e={},t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,n){e[n]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}})),t.effects})?r.apply(e,i):r)||(t.exports=o)},1870:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(e,i):r)||(t.exports=o)},7053:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,i):r)||(t.exports=o)},5592:function(t,e,n){var r,i,o;i=[n(3609)],void 0===(o="function"==typeof(r=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?r.apply(e,i):r)||(t.exports=o)},6891:function(t,e,n){var r,i,o;i=[n(3609),n(5592)],void 0===(o="function"==typeof(r=function(t){var e,n=0,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],c=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:c}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,o=r.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])i=o[a][n],o[a].hasOwnProperty(n)&&void 0!==i&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(u=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(n=r[o].apply(r,s))!==r&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!=typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,(function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),c=u[1]+o.eventNamespace,l=u[2];l?i.on(c,l,s):n.on(c,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"==typeof i&&(i={effect:i});var s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){t(this)[e](),o&&o.call(r[0]),n()}))}})),t.widget})?r.apply(e,i):r)||(t.exports=o)},6177:function(t,e,n){var r,i,o;i=[n(3609),n(1870),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,i=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&t(n.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(n)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(e,i):r)||(t.exports=o)},6227:function(t,e,n){var r,i,o;i=[n(3609),n(6177),n(7053),n(5592),n(6891)],void 0===(o="function"==typeof(r=function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=i.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,c=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(r-c.values(e));(i>n||i===n&&(e===c._lastChangedValue||c.values(e)===l.min))&&(i=n,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,c=!this._animateOff&&s.animate,l={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,l["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](l,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](l,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}})})?r.apply(e,i):r)||(t.exports=o)},5666:function(t){var e=function(t){"use strict";var e,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(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,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 I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(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(t,e,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)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function m(){}function b(){}var y={};u(y,o,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&r.call(_,o)&&(y=_);var x=b.prototype=g.prototype=Object.create(y);function P(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,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,t.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[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:e,done:!0}}return m.prototype=b,u(x,"constructor",b),u(b,"constructor",m),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},P(k.prototype),u(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(x),u(x,s,"Generator"),u(x,o,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=R,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3609:function(t){"use strict";t.exports=jQuery},5756:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,{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(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{_$litDirective$:t,values:n}}},s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}},{key:"_$AS",value:function(t,e){return this.update(t,e)}},{key:"update",value:function(t,e){return this.render.apply(this,function(t){if(Array.isArray(t))return r(t)}(n=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4817:function(t,e,n){"use strict";var r;function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{Al:function(){return J},dy:function(){return $},Jb:function(){return L},Ld:function(){return D},sY:function(){return B},YP:function(){return j}}),n(5743),n(7042),n(2165),n(6992),n(1539),n(8783),n(3948),n(2526),n(1817),n(4129),n(4916),n(4603),n(9714),n(6755),n(7852),n(3123),n(8309),n(3290),n(1038),n(489),n(2419);var g=globalThis.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,b="lit$".concat((Math.random()+"").slice(9),"$"),y="?"+b,w="<".concat(y,">"),_=document,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.createComment(t)},P=function(t){return null===t||"object"!=v(t)&&"function"!=typeof t},k=Array.isArray,C=function(t){var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,T=/>/g,R=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,O=/"/g,M=/^(?:script|style|textarea|title)$/i,A=function(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:t,strings:e,values:r}}},$=A(1),j=A(2),L=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),N=new WeakMap,B=function(t,e,n){var r,i,o=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new V(e.insertBefore(x(),s),s,void 0,null!=n?n:{})}return a._$AI(t),a},U=_.createTreeWalker(_,129,null,!1),F=function(t,e){for(var n,r=t.length-1,i=[],o=2===e?"<svg>":"",a=S,s=0;s<r;s++){for(var u=t[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===S?"!--"===l[1]?a=E:void 0!==l[1]?a=T:void 0!==l[2]?(M.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=R):void 0!==l[3]&&(a=R):a===R?">"===l[0]?(a=null!=n?n:S,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,c=l[1],a=void 0===l[3]?R:'"'===l[3]?O:I):a===O||a===I?a=R:a===E||a===T?a=S:(a=R,n=void 0);var d=a===R&&t[s+1].startsWith("/>")?" ":"";o+=a===S?u+w: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+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,i]},W=function(){function t(e,n){var r,i=e.strings,o=e._$litType$;f(this,t),this.parts=[];var a,s=0,u=0,d=i.length-1,p=this.parts,v=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(F(i,o),2),m=v[0],w=v[1];if(this.el=t.createElement(m,n),U.currentNode=this.el.content,2===o){var _=this.el.content,P=_.firstChild;P.remove(),_.append.apply(_,function(t){if(Array.isArray(t))return h(t)}(a=P.childNodes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(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 k,C=[],S=c(r.getAttributeNames());try{for(S.s();!(k=S.n()).done;){var E=k.value;if(E.endsWith("$lit$")||E.startsWith(b)){var T=w[u++];if(C.push(E),void 0!==T){var R=r.getAttribute(T.toLowerCase()+"$lit$").split(b),I=/([.?@])?(.*)/.exec(T);p.push({type:1,index:s,name:I[2],strings:R,ctor:"."===I[1]?X:"?"===I[1]?G:"@"===I[1]?K:q})}else p.push({type:6,index:s})}}}catch(t){S.e(t)}finally{S.f()}for(var O=0,A=C;O<A.length;O++){var $=A[O];r.removeAttribute($)}}if(M.test(r.tagName)){var j=r.textContent.split(b),L=j.length-1;if(L>0){r.textContent=g?g.emptyScript:"";for(var D=0;D<L;D++)r.append(j[D],x()),U.nextNode(),p.push({type:2,index:++s});r.append(j[L],x())}}}else if(8===r.nodeType)if(r.data===y)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(t,null,[{key:"createElement",value:function(t,e){var n=_.createElement("template");return n.innerHTML=t,n}}]),t}();function z(t,e){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===L)return e;var u=void 0!==s?null===(n=a._$Cl)||void 0===n?void 0:n[s]:a._$Cu,c=P(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==c&&(null===(r=null==u?void 0:u._$AO)||void 0===r||r.call(u,!1),void 0===c?u=void 0:(u=new c(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Cl)&&void 0!==i?i:o._$Cl=[])[s]=u:a._$Cu=u),void 0!==u&&(e=z(t,u._$AS(t,e.values),u,s)),e}var H=function(){function t(e,n){f(this,t),this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=n}return p(t,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"p",value:function(t){var e,n=this._$AD,r=n.el.content,i=n.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).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,t):1===c.type?l=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(l=new Z(a,this,t)),this.v.push(l),c=i[++u]}s!==(null==c?void 0:c.index)&&(a=U.nextNode(),s++)}return o}},{key:"m",value:function(t){var e,n=0,r=c(this.v);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}catch(t){r.e(t)}finally{r.f()}}}]),t}(),V=function(){function t(e,n,r,i){var o;f(this,t),this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this._$Cg=null===(o=null==i?void 0:i.isConnected)||void 0===o||o}return p(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;t=z(this,t,e),P(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):C(t)?this.S(t):this.$(t)}},{key:"M",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}},{key:"k",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}},{key:"$",value:function(t){this._$AH!==D&&P(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}},{key:"T",value:function(t){var e,n=t.values,r=t._$litType$,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=W.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.m(n);else{var o=new H(i,this),a=o.p(this.options);o.m(n),this.k(a),this._$AH=o}}},{key:"_$AC",value:function(t){var e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new W(t)),e}},{key:"S",value:function(e){k(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,o=0,a=c(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;o===i.length?i.push(n=new t(this.M(x()),this.M(x()),this,this.options)):n=i[o],n._$AI(s),o++}}catch(t){a.e(t)}finally{a.f()}o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}},{key:"_$AR",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,n);e&&e!==this._$AB;){var r=e.nextSibling;e.remove(),e=r}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}]),t}(),q=function(){function t(e,n,r,i,o){f(this,t),this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}return p(t,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=z(this,t,e,0),(o=!P(t)||t!==this._$AH&&t!==L)&&(this._$AH=t);else{var a,s,u=t;for(t=i[0],a=0;a<i.length-1;a++)(s=z(this,u[n+a],e,a))===L&&(s=this._$AH[a]),o||(o=!P(s)||s!==this._$AH[a]),s===D?t=D:t!==D&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!r&&this.C(t)}},{key:"C",value:function(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}]),t}(),X=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=3,t}return p(n,[{key:"C",value:function(t){this.element[this.name]=t===D?void 0:t}}]),n}(q),Y=g?g.emptyScript:"",G=function(t){i(n,t);var e=a(n);function n(){var t;return f(this,n),(t=e.apply(this,arguments)).type=4,t}return p(n,[{key:"C",value:function(t){t&&t!==D?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}]),n}(q),K=function(t){i(n,t);var e=a(n);function n(t,r,i,o,a){var s;return f(this,n),(s=e.call(this,t,r,i,o,a)).type=5,s}return p(n,[{key:"_$AI",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((t=null!==(e=z(this,t,n,0))&&void 0!==e?e:D)!==L){var r=this._$AH,i=t===D&&r!==D||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==D&&(r===D||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}]),n}(q),Z=function(){function t(e,n,r){f(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return p(t,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){z(this,t)}}]),t}(),J={L:"$lit$",P:b,V:y,I:1,N:F,R:H,j:C,D:z,H:V,F:q,O:G,W:K,B:X,Z:Z},Q=window.litHtmlPolyfillSupport;null==Q||Q(W,V),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.3")},9089:function(t,e,n){"use strict";n.d(e,{Mo:function(){return i},Cb:function(){return u},IO:function(){return m},SB:function(){return f}});var r,i=function(t){return function(e){return"function"==typeof e?function(t,e){return window.customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){window.customElements.define(t,e)}}}(t,e)}};function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?a(a({},e),{},{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}}(t,e)}}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return u(l(l({},t),{},{state:!0}))}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){return r=(n={descriptor:function(n){var r={get:function(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==g(n)?Symbol():"__"+n;r.get=function(){var e,n;return void 0===this[i]&&(this[i]=null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null),this[i]}}return r}}).finisher,i=n.descriptor,function(t,e){var n;if(void 0===e){var o=null!==(n=t.originalKey)&&void 0!==n?n:t.key,a=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(t.key)}:p(p({},t),{},{key:o});return null!=r&&(a.finisher=function(t){r(t,o)}),a}var s=t.constructor;void 0!==i&&Object.defineProperty(t,e,i(e)),null==r||r(s,e)};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(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.d(e,{oi:function(){return q},iv:function(){return h},dy:function(){return L.dy},Ld:function(){return L.Ld},sY:function(){return L.sY},YP:function(){return L.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(5743),n(9714),n(2419),n(2165),n(1038),n(7042),n(8309),n(4916),n(5827),n(1249);var o,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),u=new Map,c=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}var e,n;return e=t,(n=[{key:"styleSheet",get:function(){var t=u.get(this.cssText);return a&&void 0===t&&(u.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}},{key:"toString",value:function(){return this.cssText}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),l=function(t){return new c("string"==typeof t?t:t+"",s)},h=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=1===t.length?t[0]:n.reduce((function(e,n,r){return e+function(t){if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]}),t[0]);return new c(i,s)},f=function(t,e){a?t.adoptedStyleSheets=e.map((function(t){return t instanceof CSSStyleSheet?t:t.styleSheet})):e.forEach((function(e){var n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))},d=a?function(t){return t}:function(t){return t instanceof CSSStyleSheet?function(t){var e,n="",i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.cssRules);try{for(i.s();!(e=i.n()).done;)n+=e.value.cssText}catch(t){i.e(t)}finally{i.f()}return l(n)}(t):t};function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){var e="function"==typeof Map?new Map:void 0;return(x=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return P(t,arguments,S(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,t)})(t)}function P(t,e,n){return(P=k()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=window.trustedTypes,T=E?E.emptyScript:"",R=window.reactiveElementPolyfillSupport,I={toAttribute:function(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){var n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},O=function(t,e){return e!==t&&(e==e||t==t)},M={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:O},A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(c,t);var e,n,r,i,o,a,s,u=(e=c,n=k(),function(){var t,r=S(e);if(n){var i=S(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return _(this,t)});function c(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this))._$Et=new Map,t.isUpdatePending=!1,t.hasUpdated=!1,t._$Ei=null,t.o(),t}return r=c,o=[{key:"addInitializer",value:function(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this.elementProperties.forEach((function(n,r){var i=t._$Eh(r,n);void 0!==i&&(t._$Eu.set(i,r),e.push(i))})),e}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"==b(t)?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(r){var i=this[t];this[e]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this.elementProperties.get(t)||M}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var e,n=this.properties,r=p([].concat(v(Object.getOwnPropertyNames(n)),v(Object.getOwnPropertySymbols(n))));try{for(r.s();!(e=r.n()).done;){var i=e.value;this.createProperty(i,n[i])}}catch(t){r.e(t)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(t){var e=[];if(Array.isArray(t)){var n,r=p(new Set(t.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.unshift(d(i))}}catch(t){r.e(t)}finally{r.f()}}else void 0!==t&&e.push(d(t));return e}},{key:"_$Eh",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}}],(i=[{key:"o",value:function(){var t,e=this;this._$Ep=new Promise((function(t){return e.enableUpdating=t})),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((function(t){return t(e)}))}},{key:"addController",value:function(t){var e,n;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}},{key:"removeController",value:function(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}},{key:"_$Em",value:function(){var t=this;this.constructor.elementProperties.forEach((function(e,n){t.hasOwnProperty(n)&&(t._$Et.set(n,t[n]),delete t[n])}))}},{key:"createRenderRoot",value:function(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}},{key:"enableUpdating",value:function(t){}},{key:"disconnectedCallback",value:function(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}},{key:"attributeChangedCallback",value:function(t,e,n){this._$AK(t,n)}},{key:"_$ES",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,o=this.constructor._$Eh(t,i);if(void 0!==o&&!0===i.reflect){var a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:I.toAttribute)(e,i.type);this._$Ei=t,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}},{key:"_$AK",value:function(t,e){var n,r,i,o=this.constructor,a=o._$Eu.get(t);if(void 0!==a&&this._$Ei!==a){var s=o.getPropertyOptions(a),u=s.converter,c=null!==(i=null!==(r=null===(n=u)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof u?u:null)&&void 0!==i?i:I.fromAttribute;this._$Ei=a,this[a]=c(e,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(t,e,n){var r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}},{key:"_$E_",value:(a=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isUpdatePending=!0,t.prev=1,t.next=4,this._$Ep;case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),Promise.reject(t.t0);case 9:if(e=this.scheduleUpdate(),t.t1=null!=e,!t.t1){t.next=14;break}return t.next=14,e;case 14:return t.abrupt("return",!this.isUpdatePending);case 15:case"end":return t.stop()}}),t,this,[[1,6]])})),s=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=a.apply(t,e);function o(t){y(i,n,r,o,s,"next",t)}function s(t){y(i,n,r,o,s,"throw",t)}o(void 0)}))},function(){return s.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var t,e=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(t,n){return e[n]=t})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$Eg)||void 0===t||t.forEach((function(t){var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$EU()}catch(t){throw n=!1,this._$EU(),t}n&&this._$AE(r)}}},{key:"willUpdate",value:function(t){}},{key:"_$AE",value:function(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((function(t){var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ep}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._$EC&&(this._$EC.forEach((function(t,n){return e._$ES(n,e[n],t)})),this._$EC=void 0),this._$EU()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}}])&&w(r.prototype,i),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(x(HTMLElement));A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==R||R({ReactiveElement:A}),(null!==(o=globalThis.reactiveElementVersions)&&void 0!==o?o:globalThis.reactiveElementVersions=[]).push("1.3.0");var $,j,L=n(4817);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=F(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function F(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=V(t)););return t}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return H(t)}function H(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(4819),n(5003);var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=V(r);if(i){var n=V(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return z(this,t)});function a(){var t;return N(this,a),(t=o.apply(this,arguments)).renderOptions={host:H(t)},t._$Dt=void 0,t}return e=a,(n=[{key:"createRenderRoot",value:function(){var t,e,n=U(V(a.prototype),"createRenderRoot",this).call(this);return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}},{key:"update",value:function(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),U(V(a.prototype),"update",this).call(this,t),this._$Dt=(0,L.sY)(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;U(V(a.prototype),"connectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;U(V(a.prototype),"disconnectedCallback",this).call(this),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}},{key:"render",value:function(){return L.Jb}}])&&B(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A);q.finalized=!0,q._$litElement$=!0,null===($=globalThis.litElementHydrateSupport)||void 0===$||$.call(globalThis,{LitElement:q});var X=globalThis.litElementPolyfillSupport;null==X||X({LitElement:q}),(null!==(j=globalThis.litElementVersions)&&void 0!==j?j:globalThis.litElementVersions=[]).push("3.2.0")}},__webpack_module_cache__={},deferred;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=function(t,e,n,r){if(!e){var i=1/0;for(u=0;u<deferred.length;u++){e=deferred[u][0],n=deferred[u][1],r=deferred[u][2];for(var o=!0,a=0;a<e.length;a++)(!1&r||i>=r)&&Object.keys(__webpack_require__.O).every((function(t){return __webpack_require__.O[t](e[a])}))?e.splice(a--,1):(o=!1,r<i&&(i=r));if(o){deferred.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}r=r||0;for(var u=deferred.length;u>0&&deferred[u-1][2]>r;u--)deferred[u]=deferred[u-1];deferred[u]=[e,n,r]},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t={898:0};__webpack_require__.O.j=function(e){return 0===t[e]};var e=function(e,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some((function(e){return 0!==t[e]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)var c=s(__webpack_require__)}for(e&&e(n);u<o.length;u++)i=o[u],__webpack_require__.o(t,i)&&t[i]&&t[i][0](),t[o[u]]=0;return __webpack_require__.O(c)},n=self.webpackChunk_internetarchive_bookreader=self.webpackChunk_internetarchive_bookreader||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var __webpack_exports__=__webpack_require__(812);__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
3
3
  //# sourceMappingURL=BookReader.js.map