1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5257],{6:(t,e)=>{"use strict";function i(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(t):t}var r=i({HTML:"text/html",isHTML:function(t){return t===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.find=function(t,e,i){if(void 0===i&&(i=Array.prototype),t&&"function"==typeof i.find)return i.find.call(t,e);for(var r=0;r<t.length;r++)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];if(e.call(void 0,n,r,t))return n}},e.freeze=i,e.MIME_TYPE=r,e.NAMESPACE=n},138:(t,e,i)=>{"use strict";t.exports=i(2195)()?String.prototype.contains:i(1915)},187:(t,e,i)=>{var r=i(1723),n=i(6784),s=i(8015),o=Math.max,a=Math.min;t.exports=function(t,e,i){var l,h,c,u,d,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var i=l,r=h;return l=h=void 0,p=e,u=t.apply(r,i)}function b(t){var i=t-f,r=t-p;return void 0===f||i>=e||i<0||m&&r>=c}function w(){var t,i,r,s=n();if(b(s))return x(s);d=setTimeout(w,(t=s-f,i=s-p,r=e-t,m?a(r,c-i):r))}function x(t){return(d=void 0,v&&l)?y(t):(l=h=void 0,u)}function E(){var t,i=n(),r=b(i);if(l=arguments,h=this,f=i,r){if(void 0===d)return p=t=f,d=setTimeout(w,e),g?y(t):u;if(m)return clearTimeout(d),d=setTimeout(w,e),y(f)}return void 0===d&&(d=setTimeout(w,e)),u}return e=s(e)||0,r(i)&&(g=!!i.leading,c=(m="maxWait"in i)?o(s(i.maxWait)||0,e):c,v="trailing"in i?!!i.trailing:v),E.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=h=d=void 0},E.flush=function(){return void 0===d?u:x(n())},E}},416:(t,e,i)=>{"use strict";var r=i(1428),n=Object.keys;t.exports=function(t){return n(r(t)?Object(t):t)}},558:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var r=i(2115);function n(t,e){switch(e.type){case"RESOLVE":return{value:e.value,error:void 0};case"REJECT":return{value:!1,error:e.error};case"RESET":return{value:void 0,error:void 0};default:return t}}function s(){return(0,r.useReducer)(n,{value:void 0,error:void 0})}},751:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});let r=i(6406)._(i(2115)).default.createContext(null)},832:(t,e,i)=>{"use strict";var r=i(1428),n=Array.prototype.forEach,s=Object.create,o=function(t,e){var i;for(i in t)e[i]=t[i]};t.exports=function(t){var e=s(null);return n.call(arguments,function(t){r(t)&&o(Object(t),e)}),e}},904:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),i=e[0],r=e[1];return(i+r)*3/4-r},e.toByteArray=function(t){var e,i,s=l(t),o=s[0],a=s[1],h=new n((o+a)*3/4-a),c=0,u=a>0?o-4:o;for(i=0;i<u;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],h[c++]=e>>16&255,h[c++]=e>>8&255,h[c++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,h[c++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,h[c++]=e>>8&255,h[c++]=255&e),h},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,s=[],o=0,a=r-n;o<a;o+=16383)s.push(function(t,e,r){for(var n,s=[],o=e;o<r;o+=3)n=(t[o]<<16&0xff0000)+(t[o+1]<<8&65280)+(255&t[o+2]),s.push(i[n>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}(t,o,o+16383>a?a:o+16383));return 1===n?s.push(i[(e=t[r-1])>>2]+i[e<<4&63]+"=="):2===n&&s.push(i[(e=(t[r-2]<<8)+t[r-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],r=[],n="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)i[o]=s[o],r[s.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var r=i===e?0:4-i%4;return[i,r]}r[45]=62,r[95]=63},937:(t,e,i)=>{"use strict";function r(t){var e=!1;return{promise:new Promise(function(i,r){t.then(function(t){return!e&&i(t)}
1).catch(function(t){return!e&&r(t)})}),cancel:function(){e=!0}}}i.d(e,{A:()=>r})},946:(t,e,i)=>{t.exports=(function t(e,i,r){function n(o,a){if(!i[o]){if(!e[o]){if(s)return s(o,!0);var l=Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var h=i[o]={exports:{}};e[o][0].call(h.exports,function(t){return n(e[o][1][t]||t)},h,h.exports,t,e,i,r)}return i[o].exports}for(var s=void 0,o=0;o<r.length;o++)n(r[o]);return n})({1:[function(t,e,r){(function(t){"use strict";var i,r,n=t.MutationObserver||t.WebKitMutationObserver;if(n){var s=0,o=new n(c),a=t.document.createTextNode("");o.observe(a,{characterData:!0}),i=function(){a.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new t.MessageChannel;l.port1.onmessage=c,i=function(){l.port2.postMessage(0)}}var h=[];function c(){r=!0;for(var t,e,i=h.length;i;){for(e=h,h=[],t=-1;++t<i;)e[t]();i=h.length}r=!1}e.exports=function(t){1!==h.push(t)||r||i()}}).call(this,void 0!==i.g?i.g:"u">typeof self?self:"u">typeof window?window:{})},{}],2:[function(t,e,i){"use strict";var r=t(1);function n(){}var s={},o=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function h(t){if("function"!=typeof t)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==n&&f(this,t)}function c(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function u(t,e,i){r(function(){var r;try{r=e(i)}catch(e){return s.reject(t,e)}r===t?s.reject(t,TypeError("Cannot resolve promise with itself")):s.resolve(t,r)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var i=!1;function r(e){i||(i=!0,s.reject(t,e))}function n(e){i||(i=!0,s.resolve(t,e))}var o=p(function(){e(n,r)});"error"===o.status&&r(o.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}e.exports=h,h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===o)return this;var i=new this.constructor(n);return this.state!==l?u(i,this.state===a?t:e,this.outcome):this.queue.push(new c(i,t,e)),i},c.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){s.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},s.resolve=function(t,e){var i=p(d,e);if("error"===i.status)return s.reject(t,i.value);var r=i.value;if(r)f(t,r);else{t.state=a,t.outcome=e;for(var n=-1,o=t.queue.length;++n<o;)t.queue[n].callFulfilled(e)}return t},s.reject=function(t,e){t.state=o,t.outcome=e;for(var i=-1,r=t.queue.length;++i<r;)t.queue[i].callRejected(e);return t},h.resolve=function(t){return t instanceof this?t:s.resolve(new this(n),t)},h.reject=function(t){var e=new this(n);return s.reject(e,t)},h.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var i=t.length,r=!1;if(!i)return this.resolve([]);for(var o=Array(i),a=0,l=-1,h=new this(n);++l<i;)!function(t,n){e.resolve(t).then(function(t){o[n]=t,++a!==i||r||(r=!0,s.resolve(h,o))},function(t){r||(r=!0,s.reject(h,t))})}(t[l],l);return h},h.race=function(t){var e,i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var r=t.length,o=!1;if(!r)return this.resolve([]);for(var a=-1,l=new this(n);++a<r;){e=t[a],i.resolve(e).then(function(t){o||(o=!0,s.resolve(l,t))},function(t){o||(o=!0,s.reject(l,t))})}return l}},{1:1}],3:[function(t,e,r){(function(e){"use strict";"function"!=typeof e.Promise&&(e.Promise=t(2))}).call(this,void 0!==i.g?i.g:"u">typeof self?self:"u">typeof window?window:{})},{2:2}
1],4:[function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){try{if("u">typeof indexedDB)return indexedDB;if("u">typeof webkitIndexedDB)return webkitIndexedDB;if("u">typeof mozIndexedDB)return mozIndexedDB;if("u">typeof OIndexedDB)return OIndexedDB;if("u">typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function s(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(n){if("TypeError"!==n.name)throw n;for(var i=new("u">typeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<t.length;r+=1)i.append(t[r]);return i.getBlob(e.type)}}"u"<typeof Promise&&t(3);var o=Promise;function a(t,e){e&&t.then(function(t){e(null,t)},function(t){e(t)})}function l(t,e,i){"function"==typeof e&&t.then(e),"function"==typeof i&&t.catch(i)}function h(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var u="local-forage-detect-blob-support",d=void 0,f={},p=Object.prototype.toString,g="readonly",m="readwrite";function v(t){var e=f[t.name],i={};i.promise=new o(function(t,e){i.resolve=t,i.reject=e}),e.deferredOperations.push(i),e.dbReady?e.dbReady=e.dbReady.then(function(){return i.promise}):e.dbReady=i.promise}function y(t){var e=f[t.name].deferredOperations.pop();if(e)return e.resolve(),e.promise}function b(t,e){var i=f[t.name].deferredOperations.pop();if(i)return i.reject(e),i.promise}function w(t,e){return new o(function(i,r){if(f[t.name]=f[t.name]||_(),t.db)if(!e)return i(t.db);else v(t),t.db.close();var s=[t.name];e&&s.push(t.version);var o=n.open.apply(n,s);e&&(o.onupgradeneeded=function(e){var i=o.result;try{i.createObjectStore(t.storeName),e.oldVersion<=1&&i.createObjectStore(u)}catch(i){if("ConstraintError"===i.name)console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.');else throw i}}),o.onerror=function(t){t.preventDefault(),r(o.error)},o.onsuccess=function(){var e=o.result;e.onversionchange=function(t){t.target.close()},i(e),y(t)}})}function x(t,e){if(!t.db)return!0;var i=!t.db.objectStoreNames.contains(t.storeName),r=t.version<t.db.version,n=t.version>t.db.version;if(r&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),n||i){if(i){var s=t.db.version+1;s>t.version&&(t.version=s)}return!0}return!1}function E(t){return s([function(t){for(var e=t.length,i=new ArrayBuffer(e),r=new Uint8Array(i),n=0;n<e;n++)r[n]=t.charCodeAt(n);return i}(atob(t.data))],{type:t.type})}function S(t){return t&&t.__local_forage_encoded_blob}function T(t){var e=this,i=e._initReady().then(function(){var t=f[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return l(i,t,t),i}function C(t,e,i,r){void 0===r&&(r=1);try{var n=t.db.transaction(t.storeName,e);i(null,n)}catch(n){if(r>0&&(!t.db||"InvalidStateError"===n.name||"NotFoundError"===n.name))return o.resolve().then(function(){if(!t.db||"NotFoundError"===n.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),w(t,!0)}).then(function(){return(function(t){v(t);for(var e=f[t.name],i=e.forages,r=0;r<i.length;r++){var n=i[r];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return t.db=null,w(t,!1).then(function(e){return(t.db=e,x(t))?w(t,!0):e}).then(function(r){t.db=e.db=r;for(var n=0;n<i.length;n++)i[n]._dbInfo.db=r}).catch(function(e){throw b(t,e),e})})(t).then(function(){C(t,e,i,r-1)})}).catch(i);i(n)}}function _(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}var N={_driver:"asyncStorage",_initStorage:function(t){var e=this,i={db:null};if(t)for(var r in t)i[r]=t[r];var n=f[i.name];n||(n=_(),f[i.name]=n),n.forages.push(e),e._initReady||(e._initReady=e.ready,e.ready=T);var s=[];function a(){return o.resolve()}for(var l=0;l<n.forages.length;l++){var h=n.forages[l];h!==e&&s.push(h._initReady().catch(a))}var c=n.forages.slice(0);return o.all(s).then(function(){return i.db=n.db,w(i,!1)}).then(function(t){return(i.db=t,x(i,e._defaultConfig.version))?w(i,
1!0):t}).then(function(t){i.db=n.db=t,e._dbInfo=i;for(var r=0;r<c.length;r++){var s=c[r];s!==e&&(s._dbInfo.db=i.db,s._dbInfo.version=i.version)}})},_support:function(){try{if(!n||!n.open)return!1;var t="u">typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||e)&&"u">typeof indexedDB&&"u">typeof IDBKeyRange}catch(t){return!1}}(),iterate:function(t,e){var i=this,r=new o(function(e,r){i.ready().then(function(){C(i._dbInfo,g,function(n,s){if(n)return r(n);try{var o=s.objectStore(i._dbInfo.storeName).openCursor(),a=1;o.onsuccess=function(){var i=o.result;if(i){var r=i.value;S(r)&&(r=E(r));var n=t(r,i.key,a++);void 0!==n?e(n):i.continue()}else e()},o.onerror=function(){r(o.error)}}catch(t){r(t)}})}).catch(r)});return a(r,e),r},getItem:function(t,e){var i=this;t=h(t);var r=new o(function(e,r){i.ready().then(function(){C(i._dbInfo,g,function(n,s){if(n)return r(n);try{var o=s.objectStore(i._dbInfo.storeName).get(t);o.onsuccess=function(){var t=o.result;void 0===t&&(t=null),S(t)&&(t=E(t)),e(t)},o.onerror=function(){r(o.error)}}catch(t){r(t)}})}).catch(r)});return a(r,e),r},setItem:function(t,e,i){var r=this;t=h(t);var n=new o(function(i,n){var a;r.ready().then(function(){return(a=r._dbInfo,"[object Blob]"===p.call(e))?(function(t){return"boolean"==typeof d?o.resolve(d):new o(function(e){var i=t.transaction(u,m),r=s([""]);i.objectStore(u).put(r,"key"),i.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},i.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/);e(navigator.userAgent.match(/Edge\//)||!t||parseInt(t[1],10)>=43)}}).catch(function(){return!1}).then(function(t){return d=t})})(a.db).then(function(t){return t?e:new o(function(t,i){var r=new FileReader;r.onerror=i,r.onloadend=function(i){t({__local_forage_encoded_blob:!0,data:btoa(i.target.result||""),type:e.type})},r.readAsBinaryString(e)})}):e}).then(function(e){C(r._dbInfo,m,function(s,o){if(s)return n(s);try{var a=o.objectStore(r._dbInfo.storeName);null===e&&(e=void 0);var l=a.put(e,t);o.oncomplete=function(){void 0===e&&(e=null),i(e)},o.onabort=o.onerror=function(){var t=l.error?l.error:l.transaction.error;n(t)}}catch(t){n(t)}})}).catch(n)});return a(n,i),n},removeItem:function(t,e){var i=this;t=h(t);var r=new o(function(e,r){i.ready().then(function(){C(i._dbInfo,m,function(n,s){if(n)return r(n);try{var o=s.objectStore(i._dbInfo.storeName).delete(t);s.oncomplete=function(){e()},s.onerror=function(){r(o.error)},s.onabort=function(){var t=o.error?o.error:o.transaction.error;r(t)}}catch(t){r(t)}})}).catch(r)});return a(r,e),r},clear:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){C(e._dbInfo,m,function(r,n){if(r)return i(r);try{var s=n.objectStore(e._dbInfo.storeName).clear();n.oncomplete=function(){t()},n.onabort=n.onerror=function(){var t=s.error?s.error:s.transaction.error;i(t)}}catch(t){i(t)}})}).catch(i)});return a(i,t),i},length:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){C(e._dbInfo,g,function(r,n){if(r)return i(r);try{var s=n.objectStore(e._dbInfo.storeName).count();s.onsuccess=function(){t(s.result)},s.onerror=function(){i(s.error)}}catch(t){i(t)}})}).catch(i)});return a(i,t),i},key:function(t,e){var i=this,r=new o(function(e,r){t<0?e(null):i.ready().then(function(){C(i._dbInfo,g,function(n,s){if(n)return r(n);try{var o=s.objectStore(i._dbInfo.storeName),a=!1,l=o.openKeyCursor();l.onsuccess=function(){var i=l.result;i?0===t||a?e(i.key):(a=!0,i.advance(t)):e(null)},l.onerror=function(){r(l.error)}}catch(t){r(t)}})}).catch(r)});return a(r,e),r},keys:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){C(e._dbInfo,g,function(r,n){if(r)return i(r);try{var s=n.objectStore(e._dbInfo.storeName).openKeyCursor(),o=[];s.onsuccess=function(){var e=s.result;e?(o.push(e.key),e.continue()):t(o)},s.onerror=function(){i(s.error)}}catch(t){i(t)}})}).catch(i)});return a(i,t),i},dropInstance:function(t,e){e=c.apply(this,arguments);var i,r=this.config();if((t="function"!=typeof t&&t||{}).name||(t.name=t.name||r.name,t.storeName=t.storeName||r.storeName),t.name){var s=t.name===r.name&&this._dbInfo.db?o.resolve(this._dbInfo.db):w(t,!1).then(function(e){var i=f[t.name],r=i.forages;i.db=e;for(var n=0;n<r.length;n++)r[n]._dbInfo.db=e;return e});i=t.storeName?s.then(function(e){if(e.objectStoreNames.contains(t.storeName)){var i=e.version+1;v(t);var r=f[t.name],s=r.forages;e.close();for(var a=0;a<s.length;a++){var l=s[a];l._dbInfo.db=null,l._dbInfo.version=i}return new o(function(e,r){var s=n.open(t.name,i);s.onerror=function(t){s.result.close(),r(t)},s.onupgradeneeded=function(){s.result.deleteObjectStore(t.storeName)},s.onsuccess=function(){var t=s.result;t.close(),e(t)}
1}).then(function(t){r.db=t;for(var e=0;e<s.length;e++){var i=s[e];i._dbInfo.db=t,y(i._dbInfo)}}).catch(function(e){throw(b(t,e)||o.resolve()).catch(function(){}),e})}}):s.then(function(e){v(t);var i=f[t.name],r=i.forages;e.close();for(var s=0;s<r.length;s++)r[s]._dbInfo.db=null;return new o(function(e,i){var r=n.deleteDatabase(t.name);r.onerror=function(){var t=r.result;t&&t.close(),i(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+t.name+'" until all open connections are closed')},r.onsuccess=function(){var t=r.result;t&&t.close(),e(t)}}).then(function(t){i.db=t;for(var e=0;e<r.length;e++)y(r[e]._dbInfo)}).catch(function(e){throw(b(t,e)||o.resolve()).catch(function(){}),e})})}else i=o.reject("Invalid arguments");return a(i,e),i}},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=/^~~local_forage_type~([^~]+)~/,R="__lfsc__:",k=R.length,O="arbf",I="blob",P="si08",D="ui08",M="uic8",B="si16",q="si32",j="ur16",z="ui32",U="fl32",F="fl64",V=k+O.length,W=Object.prototype.toString;function H(t){var e,i,r,n,s,o=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var h=new ArrayBuffer(o),c=new Uint8Array(h);for(e=0;e<a;e+=4)i=A.indexOf(t[e]),r=A.indexOf(t[e+1]),n=A.indexOf(t[e+2]),s=A.indexOf(t[e+3]),c[l++]=i<<2|r>>4,c[l++]=(15&r)<<4|n>>2,c[l++]=(3&n)<<6|63&s;return h}function G(t){var e,i=new Uint8Array(t),r="";for(e=0;e<i.length;e+=3)r+=A[i[e]>>2],r+=A[(3&i[e])<<4|i[e+1]>>4],r+=A[(15&i[e+1])<<2|i[e+2]>>6],r+=A[63&i[e+2]];return i.length%3==2?r=r.substring(0,r.length-1)+"=":i.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(t,e){var i="";if(t&&(i=W.call(t)),t&&("[object ArrayBuffer]"===i||t.buffer&&"[object ArrayBuffer]"===W.call(t.buffer))){var r,n=R;t instanceof ArrayBuffer?(r=t,n+=O):(r=t.buffer,"[object Int8Array]"===i?n+=P:"[object Uint8Array]"===i?n+=D:"[object Uint8ClampedArray]"===i?n+=M:"[object Int16Array]"===i?n+=B:"[object Uint16Array]"===i?n+=j:"[object Int32Array]"===i?n+=q:"[object Uint32Array]"===i?n+=z:"[object Float32Array]"===i?n+=U:"[object Float64Array]"===i?n+=F:e(Error("Failed to get type for BinaryArray"))),e(n+G(r))}else if("[object Blob]"===i){var s=new FileReader;s.onload=function(){e(R+I+("~~local_forage_type~"+t.type+"~")+G(this.result))},s.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(i){console.error("Couldn't convert value into a JSON string: ",t),e(null,i)}},deserialize:function(t){if(t.substring(0,k)!==R)return JSON.parse(t);var e,i=t.substring(V),r=t.substring(k,V);if(r===I&&L.test(i)){var n=i.match(L);e=n[1],i=i.substring(n[0].length)}var o=H(i);switch(r){case O:return o;case I:return s([o],{type:e});case P:return new Int8Array(o);case D:return new Uint8Array(o);case M:return new Uint8ClampedArray(o);case B:return new Int16Array(o);case j:return new Uint16Array(o);case q:return new Int32Array(o);case z:return new Uint32Array(o);case U:return new Float32Array(o);case F:return new Float64Array(o);default:throw Error("Unkown type: "+r)}},stringToBuffer:H,bufferToString:G};function $(t,e,i,r){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,r)}function Y(t,e,i,r,n,s){t.executeSql(i,r,n,function(t,o){o.code===o.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[e.storeName],function(t,a){a.rows.length?s(t,o):$(t,e,function(){t.executeSql(i,r,n,s)},s)},s):s(t,o)},s)}function K(t,e,i,r){var n=this;t=h(t);var s=new o(function(s,o){n.ready().then(function(){void 0===e&&(e=null);var a=e,l=n._dbInfo;l.serializer.serialize(e,function(e,h){h?o(h):l.db.transaction(function(i){Y(i,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[t,e],function(){s(a)},function(t,e){o(e)})},function(e){if(e.code===e.QUOTA_ERR){if(r>0)return void s(K.apply(n,[t,a,i,r-1]));o(e)}})})}).catch(o)});return a(s,i),s}var J={_driver:"webSQLStorage",_initStorage:function(t){var e=this,i={db:null};if(t)for(var r in t)i[r]="string"!=typeof t[r]?t[r].toString():t[r];var n=new o(function(t,r){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(t){return r(t)}i.db.transaction(function(n){$(n,i,function(){e._dbInfo=i,t()},function(t,e){r(e)})},r)});
1return i.serializer=X,n},_support:"function"==typeof openDatabase,iterate:function(t,e){var i=this,r=new o(function(e,r){i.ready().then(function(){var n=i._dbInfo;n.db.transaction(function(i){Y(i,n,"SELECT * FROM "+n.storeName,[],function(i,r){for(var s=r.rows,o=s.length,a=0;a<o;a++){var l=s.item(a),h=l.value;if(h&&(h=n.serializer.deserialize(h)),void 0!==(h=t(h,l.key,a+1)))return void e(h)}e()},function(t,e){r(e)})})}).catch(r)});return a(r,e),r},getItem:function(t,e){var i=this;t=h(t);var r=new o(function(e,r){i.ready().then(function(){var n=i._dbInfo;n.db.transaction(function(i){Y(i,n,"SELECT * FROM "+n.storeName+" WHERE key = ? LIMIT 1",[t],function(t,i){var r=i.rows.length?i.rows.item(0).value:null;r&&(r=n.serializer.deserialize(r)),e(r)},function(t,e){r(e)})})}).catch(r)});return a(r,e),r},setItem:function(t,e,i){return K.apply(this,[t,e,i,1])},removeItem:function(t,e){var i=this;t=h(t);var r=new o(function(e,r){i.ready().then(function(){var n=i._dbInfo;n.db.transaction(function(i){Y(i,n,"DELETE FROM "+n.storeName+" WHERE key = ?",[t],function(){e()},function(t,e){r(e)})})}).catch(r)});return a(r,e),r},clear:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){Y(e,r,"DELETE FROM "+r.storeName,[],function(){t()},function(t,e){i(e)})})}).catch(i)});return a(i,t),i},length:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){Y(e,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(e,i){t(i.rows.item(0).c)},function(t,e){i(e)})})}).catch(i)});return a(i,t),i},key:function(t,e){var i=this,r=new o(function(e,r){i.ready().then(function(){var n=i._dbInfo;n.db.transaction(function(i){Y(i,n,"SELECT key FROM "+n.storeName+" WHERE id = ? LIMIT 1",[t+1],function(t,i){e(i.rows.length?i.rows.item(0).key:null)},function(t,e){r(e)})})}).catch(r)});return a(r,e),r},keys:function(t){var e=this,i=new o(function(t,i){e.ready().then(function(){var r=e._dbInfo;r.db.transaction(function(e){Y(e,r,"SELECT key FROM "+r.storeName,[],function(e,i){for(var r=[],n=0;n<i.rows.length;n++)r.push(i.rows.item(n).key);t(r)},function(t,e){i(e)})})}).catch(i)});return a(i,t),i},dropInstance:function(t,e){e=c.apply(this,arguments);var i,r=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||r.name,t.storeName=t.storeName||r.storeName);var n=this;return a(i=t.name?new o(function(e){var i;(i=t.name===r.name?n._dbInfo.db:openDatabase(t.name,"","",0),t.storeName)?e({db:i,storeNames:[t.storeName]}):e(new o(function(t,e){i.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(e,r){for(var n=[],s=0;s<r.rows.length;s++)n.push(r.rows.item(s).name);t({db:i,storeNames:n})},function(t,i){e(i)})},function(t){e(t)})}))}).then(function(t){return new o(function(e,i){t.db.transaction(function(r){for(var n=[],s=0,a=t.storeNames.length;s<a;s++)n.push(function(t){return new o(function(e,i){r.executeSql("DROP TABLE IF EXISTS "+t,[],function(){e()},function(t,e){i(e)})})}(t.storeNames[s]));o.all(n).then(function(){e()}).catch(function(t){i(t)})},function(t){i(t)})})}):o.reject("Invalid arguments"),e),i}};function Z(t,e){var i=t.name+"/";return t.storeName!==e.storeName&&(i+=t.storeName+"/"),i}var Q={_driver:"localStorageWrapper",_initStorage:function(t){var e={};if(t)for(var i in t)e[i]=t[i];return(e.keyPrefix=Z(t,this._defaultConfig),!function(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||localStorage.length>0)?(this._dbInfo=e,e.serializer=X,o.resolve()):o.reject()},_support:function(){try{return"u">typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,e){var i=this,r=i.ready().then(function(){for(var e=i._dbInfo,r=e.keyPrefix,n=r.length,s=localStorage.length,o=1,a=0;a<s;a++){var l=localStorage.key(a);if(0===l.indexOf(r)){var h=localStorage.getItem(l);if(h&&(h=e.serializer.deserialize(h)),void 0!==(h=t(h,l.substring(n),o++)))return h}}});return a(r,e),r},getItem:function(t,e){var i=this;t=h(t);var r=i.ready().then(function(){var e=i._dbInfo,r=localStorage.getItem(e.keyPrefix+t);return r&&(r=e.serializer.deserialize(r)),r});return a(r,e),r}
1,setItem:function(t,e,i){var r=this;t=h(t);var n=r.ready().then(function(){void 0===e&&(e=null);var i=e;return new o(function(n,s){var o=r._dbInfo;o.serializer.serialize(e,function(e,r){if(r)s(r);else try{localStorage.setItem(o.keyPrefix+t,e),n(i)}catch(t){("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&s(t),s(t)}})})});return a(n,i),n},removeItem:function(t,e){var i=this;t=h(t);var r=i.ready().then(function(){var e=i._dbInfo;localStorage.removeItem(e.keyPrefix+t)});return a(r,e),r},clear:function(t){var e=this,i=e.ready().then(function(){for(var t=e._dbInfo.keyPrefix,i=localStorage.length-1;i>=0;i--){var r=localStorage.key(i);0===r.indexOf(t)&&localStorage.removeItem(r)}});return a(i,t),i},length:function(t){var e=this.keys().then(function(t){return t.length});return a(e,t),e},key:function(t,e){var i=this,r=i.ready().then(function(){var e,r=i._dbInfo;try{e=localStorage.key(t)}catch(t){e=null}return e&&(e=e.substring(r.keyPrefix.length)),e});return a(r,e),r},keys:function(t){var e=this,i=e.ready().then(function(){for(var t=e._dbInfo,i=localStorage.length,r=[],n=0;n<i;n++){var s=localStorage.key(n);0===s.indexOf(t.keyPrefix)&&r.push(s.substring(t.keyPrefix.length))}return r});return a(i,t),i},dropInstance:function(t,e){if(e=c.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var i,r=this.config();t.name=t.name||r.name,t.storeName=t.storeName||r.storeName}var n=this;return a(i=t.name?new o(function(e){e(t.storeName?Z(t,n._defaultConfig):t.name+"/")}).then(function(t){for(var e=localStorage.length-1;e>=0;e--){var i=localStorage.key(e);0===i.indexOf(t)&&localStorage.removeItem(i)}}):o.reject("Invalid arguments"),e),i}},tt=function(t,e){for(var i,r=t.length,n=0;n<r;){if((i=t[n])===e||"number"==typeof i&&"number"==typeof e&&isNaN(i)&&isNaN(e))return!0;n++}return!1},te=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},ti={},tr={},tn={INDEXEDDB:N,WEBSQL:J,LOCALSTORAGE:Q},ts=[tn.INDEXEDDB._driver,tn.WEBSQL._driver,tn.LOCALSTORAGE._driver],to=["dropInstance"],ta=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(to),tl={description:"",driver:ts.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function th(){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(e)for(var i in e)e.hasOwnProperty(i)&&(te(e[i])?arguments[0][i]=e[i].slice():arguments[0][i]=e[i])}return arguments[0]}e.exports=new(function(){function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var i in tn)if(tn.hasOwnProperty(i)){var r=tn[i],n=r._driver;this[i]=n,ti[n]||this.defineDriver(r)}this._defaultConfig=th({},tl),this._config=th({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return t.prototype.config=function(t){if((void 0===t?"undefined":r(t))==="object"){if(this._ready)return Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!=typeof t[e])return Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t)||!t.driver||this.setDriver(this._config.driver)}return"string"==typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,e,i){var r=new o(function(e,i){try{var r=t._driver,n=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void i(n);for(var s=ta.concat("_initStorage"),l=0,h=s.length;l<h;l++){var c=s[l];if((!tt(to,c)||t[c])&&"function"!=typeof t[c])return void i(n)}for(var u=function(t){return function(){var e=Error("Method "+t+" is not implemented by the current driver"),i=o.reject(e);return a(i,arguments[arguments.length-1]),i}},d=0,f=to.length;d<f;d++){var p=to[d];t[p]||(t[p]=u(p))}var g=function(i){ti[r]&&console.info("Redefining LocalForage driver: "+r),ti[r]=t,tr[r]=i,e()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(g,i):g(!!t._support):g(!0)}catch(t){i(t)}});return l(r,e,i),r},t.prototype.driver=function(){return this._driver||null}
1,t.prototype.getDriver=function(t,e,i){var r=ti[t]?o.resolve(ti[t]):o.reject(Error("Driver not found."));return l(r,e,i),r},t.prototype.getSerializer=function(t){var e=o.resolve(X);return l(e,t),e},t.prototype.ready=function(t){var e=this,i=e._driverSet.then(function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready});return l(i,t,t),i},t.prototype.setDriver=function(t,e,i){var r=this;te(t)||(t=[t]);var n=this._getSupportedDrivers(t);function s(){r._config.driver=r.driver()}function a(t){return r._extend(t),s(),r._ready=r._initStorage(r._config),r._ready}var h=null!==this._driverSet?this._driverSet.catch(function(){return o.resolve()}):o.resolve();return this._driverSet=h.then(function(){var t=n[0];return r._dbInfo=null,r._ready=null,r.getDriver(t).then(function(t){r._driver=t._driver,s(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(){var t=0;return function e(){for(;t<n.length;){var i=n[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(e)}s();var l=Error("No available storage method found.");return r._driverSet=o.reject(l),r._driverSet}()}})}).catch(function(){s();var t=Error("No available storage method found.");return r._driverSet=o.reject(t),r._driverSet}),l(this._driverSet,e,i),this._driverSet},t.prototype.supports=function(t){return!!tr[t]},t.prototype._extend=function(t){th(this,t)},t.prototype._getSupportedDrivers=function(t){for(var e=[],i=0,r=t.length;i<r;i++){var n=t[i];this.supports(n)&&e.push(n)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=ta.length;t<e;t++)!function(t,e){t[e]=function(){var i=arguments;return t.ready().then(function(){return t[e].apply(t,i)})}}(this,ta[t])},t.prototype.createInstance=function(e){return new t(e)},t}())},{3:3}]},{},[4])(4)},1026:(t,e,i)=>{"use strict";var r=i(1428);t.exports=function(t){if(!r(t))throw TypeError("Cannot use null or undefined");return t}},1300:t=>{"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},1391:(t,e)=>{"use strict";function i(t,e){if("iframe"===t.nodeName||"IFRAME"===t.nodeName)try{this.target=t.contentDocument}catch(e){this.target=t}else this.target=t;for(var i=["mouseup","mousedown","click","touchstart"],n=0;n<i.length;n++){var s=i[n];this.target.addEventListener(s,function(i){for(var n=e.length-1;n>=0;n--){var s=e[n],o=i.clientX,a=i.clientY;if(i.touches&&i.touches.length&&(o=i.touches[0].clientX,a=i.touches[0].clientY),function(t,e,i,r){var n=e.getBoundingClientRect();function s(t,e,i){var r=t.top-n.top,s=t.left-n.left,o=r+t.height,a=s+t.width;return r<=i&&s<=e&&o>i&&a>e}if(!s(t.getBoundingClientRect(),i,r))return!1;for(var o=t.getClientRects(),a=0,l=o.length;a<l;a++)if(s(o[a],i,r))return!0;return!1}(s,t,o,a)){s.dispatchEvent(r(i));break}}},!1)}}function r(t){var e=Object.assign({},t,{bubbles:!1});try{return new MouseEvent(t.type,e)}catch(r){var i=document.createEvent("MouseEvents");return i.initMouseEvent(t.type,!1,e.cancelable,e.view,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),i}}Object.defineProperty(e,"__esModule",{value:!0}),e.proxyMouse=i,e.clone=r,e.default={proxyMouse:i}},1428:(t,e,i)=>{"use strict";var r=i(5545)();t.exports=function(t){return t!==r&&null!==t}},1461:t=>{"use strict";t.exports=function(){}},1556:(t,e,i)=>{"use strict";var r=i(3461);t.exports=function(t){if(!r(t))return!1;try{if(!t.constructor)return!1;return t.constructor.prototype===t}catch(t){return!1}}},1664:(t,e,i)=>{var r=i(6890),n=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(n,""):t}},1723:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},1810:(t,e,i)=>{var r=i(6).NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=RegExp("^"+n.source+s.source+"*(?::"+n.source+s.source+"*)?$");function a(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function l(){}function h(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function c(t,e,i){for(var n=t.tagName,s=null,o=t.length;o--;){var a=t[o],l=a.qName,h=a.value,c=l.indexOf(":");if(c>0)var d=a.prefix=l.slice(0,c),f=l.slice(c+1),p="xmlns"===d&&f;else f=l,d=null,p="xmlns"===l&&"";a.localName=f,!1!==p&&(null==s&&(s={},u(i,i={})),i[p]=s[p]=h,a.uri=r.XMLNS,e.startPrefixMapping(p,h))}for(var o=t.length;o--;){var d=(a=t[o]).prefix;d&&("xml"===d&&(a.uri=r.XML),"xmlns"!==d&&(a.uri=i[d||""]))}var c=n.indexOf(":");c>0?(d=t.prefix=n.slice(0,c),f=t.localName=n.slice(c+1)):(d=null,f=t.localName=n);var g=t.uri=i[d||""];if(e.startElement(g,f,n,t),!t.closed)return t.currentNSMap=i,t.localNSMap=s,!0;if(e.endElement(g,f,n),s)for(d in s)Object.prototype.hasOwnProperty.call(s,d)&&e.endPrefixMapping(d)}function u(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function d(){this.attributeNames={}}a.prototype=Error(),a.prototype.name=a.name,l.prototype={parse:function(t,e,
1i){var n=this.domBuilder;n.startDocument(),u(e,e={}),function(t,e,i,n,s){function o(t){var e,r=t.slice(1,-1);return r in i?i[r]:"#"===r.charAt(0)?(e=parseInt(r.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e):(s.error("entity not found:"+t),t)}function l(e){if(e>b){var i=t.substring(b,e).replace(/&#?\w+;/g,o);m&&u(b),n.characters(i,0,e-b),b=e}}function u(e,i){for(;e>=p&&(i=g.exec(t));)p=(f=i.index)+i[0].length,m.lineNumber++;m.columnNumber=e-f+1}for(var f=0,p=0,g=/.*(?:\r\n?|\n)|.*$/g,m=n.locator,v=[{currentNSMap:e}],y={},b=0;;){try{var w=t.indexOf("<",b);if(w<0){if(!t.substr(b).match(/^\s*$/)){var x=n.doc,E=x.createTextNode(t.substr(b));x.appendChild(E),n.currentElement=E}return}switch(w>b&&l(w),t.charAt(w+1)){case"/":var S=t.indexOf(">",w+3),T=t.substring(w+2,S).replace(/[ \t\n\r]+$/g,""),C=v.pop();S<0?(T=t.substring(w+2).replace(/[\s<].*/,""),s.error("end tag name: "+T+" is not complete:"+C.tagName),S=w+1+T.length):T.match(/\s</)&&(T=T.replace(/[\s<].*/,""),s.error("end tag name: "+T+" maybe not complete"),S=w+1+T.length);var _=C.localNSMap,N=C.tagName==T;if(N||C.tagName&&C.tagName.toLowerCase()==T.toLowerCase()){if(n.endElement(C.uri,C.localName,T),_)for(var A in _)Object.prototype.hasOwnProperty.call(_,A)&&n.endPrefixMapping(A);N||s.fatalError("end tag name: "+T+" is not match the current start tagName:"+C.tagName)}else v.push(C);S++;break;case"?":m&&u(w),S=function(t,e,i){var r=t.indexOf("?>",e);if(r){var n=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(n)return n[0].length,i.processingInstruction(n[1],n[2]),r+2}return -1}(t,w,n);break;case"!":m&&u(w),S=function(t,e,i,r){if("-"===t.charAt(e+2)){if("-"===t.charAt(e+3)){var n=t.indexOf("--\x3e",e+4);if(n>e)return i.comment(t,e+4,n-e-4),n+3;r.error("Unclosed comment")}}else{if("CDATA["==t.substr(e+3,6)){var n=t.indexOf("]]>",e+9);return i.startCDATA(),i.characters(t,e+9,n-e-9),i.endCDATA(),n+3}var s=function(t,e){var i,r=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=e,n.exec(t);i=n.exec(t);)if(r.push(i),i[1])return r}(t,e),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var a=s[1][0],l=!1,h=!1;o>3&&(/^public$/i.test(s[2][0])?(l=s[3][0],h=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(h=s[3][0]));var c=s[o-1];return i.startDTD(a,l,h),i.endDTD(),c.index+c[0].length}}return -1}(t,w,n,s);break;default:m&&u(w);var L=new d,R=v[v.length-1].currentNSMap,S=function(t,e,i,n,s,o){function a(t,e,r){i.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),i.addValue(t,e,r)}for(var l,h,c=++e,u=0;;){var d=t.charAt(c);switch(d){case"=":if(1===u)l=t.slice(e,c),u=3;else if(2===u)u=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===u||1===u)if(1===u&&(o.warning('attribute value must after "="'),l=t.slice(e,c)),e=c+1,(c=t.indexOf(d,e))>0)a(l,h=t.slice(e,c).replace(/&#?\w+;/g,s),e-1),u=5;else throw Error("attribute value no end '"+d+"' match");else if(4==u)a(l,h=t.slice(e,c).replace(/&#?\w+;/g,s),e),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),e=c+1,u=5;else throw Error('attribute value must after "="');break;case"/":switch(u){case 0:i.setTagName(t.slice(e,c));case 5:case 6:case 7:u=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&i.setTagName(t.slice(e,c)),c;case">":switch(u){case 0:i.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(i.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(o.warning('attribute "'+h+'" missed quot(")!'),a(l,h.replace(/&#?\w+;/g,s),e)):(r.isHTML(n[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,e));break;case 3:throw Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(u){case 0:i.setTagName(t.slice(e,c)),u=6;break;case 1:l=t.slice(e,c),u=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,s);o.warning('attribute "'+h+'" missed quot(")!!'),a(l,h,e);case 5:u=6}else switch(u){case 2:i.tagName,r.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),a(l,l,e),e=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,e=c;break;case 3:u=4,e=c;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}c++}}(t,w,L,R,o,s),k=L.length;
1if(!L.closed&&function(t,e,i,r){var n=r[i];return null==n&&((n=t.lastIndexOf("</"+i+">"))<e&&(n=t.lastIndexOf("</"+i)),r[i]=n),n<e}(t,S,L.tagName,y)&&(L.closed=!0,i.nbsp||s.warning("unclosed xml attribute")),m&&k){for(var O=h(m,{}),I=0;I<k;I++){var P=L[I];u(P.offset),P.locator=h(m,{})}n.locator=O,c(L,n,R)&&v.push(L),n.locator=m}else c(L,n,R)&&v.push(L);r.isHTML(L.uri)&&!L.closed?S=function(t,e,i,r,n){if(/^(?:script|textarea)$/i.test(i)){var s=t.indexOf("</"+i+">",e),o=t.substring(e+1,s);if(/[&<]/.test(o))return/^script$/i.test(i)||(o=o.replace(/&#?\w+;/g,r)),n.characters(o,0,o.length),s}return e+1}(t,S,L.tagName,o,n):S++}}catch(t){if(t instanceof a)throw t;s.error("element parse error: "+t),S=-1}S>b?b=S:l(Math.max(w,b)+1)}}(t,e,i,n,this.errorHandler),n.endDocument()}},d.prototype={setTagName:function(t){if(!o.test(t))throw Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,i){if(!o.test(t))throw Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:i}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=l,e.ParseError=a},1915:t=>{"use strict";var e=String.prototype.indexOf;t.exports=function(t){return e.call(this,t,arguments[1])>-1}},1997:(t,e,i)=>{"use strict";var r=i(4788),n=/^\s*class[\s{/}]/,s=Function.prototype.toString;t.exports=function(t){return!(!r(t)||n.test(s.call(t)))}},2195:t=>{"use strict";var e="razdwatrzy";t.exports=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}},2377:t=>{"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function");return t}},2513:(t,e,i)=>{"use strict";i.d(e,{Bd:()=>s,UT:()=>m,ci:()=>a,h1:()=>v,jA:()=>u,mZ:()=>d,mw:()=>l,qC:()=>f,qf:()=>h,vS:()=>g,xL:()=>p,zL:()=>c});var r=i(6978),n=i(1461);let s="u">typeof window,o=s&&"file:"===window.location.protocol;function a(t){return null!=t}function l(t){return t instanceof ArrayBuffer}function h(t){return(0,r.A)(s,"isBlob can only be used in a browser environment"),t instanceof Blob}function c(t){return"string"==typeof t&&/^data:/.test(t)}function u(t){(0,r.A)(c(t),"Invalid data URI.");let[e="",i=""]=t.split(",");return -1!==e.split(";").indexOf("base64")?atob(i):unescape(i)}function d(){return s&&window.devicePixelRatio||1}function f(){n(!o,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.")}function p(t){(null==t?void 0:t.cancel)&&t.cancel()}function g(t,e){return Object.defineProperty(t,"width",{get(){return this.view[2]*e},configurable:!0}),Object.defineProperty(t,"height",{get(){return this.view[3]*e},configurable:!0}),Object.defineProperty(t,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(t,"originalHeight",{get(){return this.view[3]},configurable:!0}),t}
1function m(t){return"RenderingCancelledException"===t.name}function v(t){return new Promise((e,i)=>{let r=new FileReader;r.onload=()=>{if(!r.result)return i(Error("Error while reading a file."));e(r.result)},r.onerror=t=>{if(!t.target)return i(Error("Error while reading a file."));let{error:e}=t.target;if(!e)return i(Error("Error while reading a file."));switch(e.code){case e.NOT_FOUND_ERR:return i(Error("Error while reading a file: File not found."));case e.SECURITY_ERR:return i(Error("Error while reading a file: Security error."));case e.ABORT_ERR:return i(Error("Error while reading a file: Aborted."));default:return i(Error("Error while reading a file."))}},r.readAsArrayBuffer(t)})}},2590:(t,e)=>{"use strict";function i({widthInt:t,heightInt:e,blurWidth:i,blurHeight:r,blurDataURL:n,objectFit:s}){let o=i?40*i:t,a=r?40*r:e,l=o&&a?`viewBox='0 0 ${o} ${a}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},2690:(t,e,i)=>{"use strict";i.d(e,{A:()=>S});var r=i(5155),n=i(2115),s=i(3794),o=i(937),a=i(7227),l=i(6978),h=i(1461),c=Object.prototype.hasOwnProperty;function u(t,e,i){for(i of t.keys())if(d(i,e))return i}function d(t,e){var i,r,n;if(t===e)return!0;if(t&&e&&(i=t.constructor)===e.constructor){if(i===Date)return t.getTime()===e.getTime();if(i===RegExp)return t.toString()===e.toString();if(i===Array){if((r=t.length)===e.length)for(;r--&&d(t[r],e[r]););return -1===r}if(i===Set){if(t.size!==e.size)return!1;for(r of t)if((n=r)&&"object"==typeof n&&!(n=u(e,n))||!e.has(n))return!1;return!0}if(i===Map){if(t.size!==e.size)return!1;for(r of t)if((n=r[0])&&"object"==typeof n&&!(n=u(e,n))||!d(r[1],e.get(n)))return!1;return!0}if(i===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(i===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return -1===r}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return -1===r}if(!i||"object"==typeof t){for(i in r=0,t)if(c.call(t,i)&&++r&&!c.call(e,i)||!(i in e)||!d(t[i],e[i]))return!1;return Object.keys(e).length===r}}return t!=t&&e!=e}var f=i(5123),p=i(9766),g=i(3949);class m{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(t){this.pdfDocument=t}setViewer(t){this.pdfViewer=t}setExternalLinkRel(t){this.externalLinkRel=t}setExternalLinkTarget(t){this.externalLinkTarget=t}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,l.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(t){(0,l.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=t}get rotation(){return 0}set rotation(t){}goToDestination(t){return new Promise(e=>{(0,l.A)(this.pdfDocument,"PDF document not loaded."),(0,l.A)(t,"Destination is not specified."),"string"==typeof t?this.pdfDocument.getDestination(t).then(e):Array.isArray(t)?e(t):t.then(e)}).then(t=>{(0,l.A)(Array.isArray(t),`"${t}" is not a valid destination array.`);let e=t[0];new Promise(t=>{(0,l.A)(this.pdfDocument,"PDF document not loaded."),e instanceof Object?this.pdfDocument.getPageIndex(e).then(e=>{t(e)}).catch(()=>{(0,l.A)(!1,`"${e}" is not a valid page reference.`)}):"number"==typeof e?t(e):(0,l.A)(!1,`"${e}" is not a valid destination reference.`)}).then(e=>{let i=e+1;(0,l.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,l.A)(i>=1&&i<=this.pagesCount,`"${i}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:t,pageIndex:e,pageNumber:i})})})}navigateTo(t){this.goToDestination(t)}goToPage(t){(0,l.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,l.A)(t>=1&&t<=this.pagesCount,`"${t}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:t-1,pageNumber:t})}addLinkAttributes(t,e,i){t.href=e,t.rel=this.externalLinkRel||"noopener noreferrer nofollow",t.target=i?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}var v=i(2513),y=i(558),b=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)0>e.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]]);return i};let{Tm:w}=f,x=(t,e)=>{switch(e){case 1:t(prompt("Enter the password to open this PDF file."));break;case 2:t(prompt("Invalid password. Please try again."))}};function E(t){return"object"==typeof t&&null!==t&&("data"in t||"range"in t||"url"in t)}let S=(0,n.forwardRef)(function(t,e){var{children:i,className:c,error:u="Failed to load PDF file.",externalLinkRel:S,externalLinkTarget:T,file:C,inputRef:_,imageResourcesPath:N,loading:A="Loading PDFâ¦",noData:L="No PDF file specified.",onItemClick:R,onLoadError:k,onLoadProgress:O,onLoadSuccess:I,onPassword:P=x,onSourceError:D,onSourceSuccess:M,options:B,renderMode:q,rotate:j}=t,z=b(t,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);let[U,F]=(0,y.A)(),{value:V,error:W}=U,[H,G]=(0,y.A)(),{value:X,error:$}=H,Y=(0,n.useRef)(new m),K=(0,n.useRef)([]),J=(0,n.useRef)(void 0),Z=(0,n.useRef)(void 0);C&&C!==J.current&&E(C)&&(h(!d(C,J.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),J.current=C),B&&B!==Z.current&&(h(!d(B,Z.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),Z.current=B);let Q=(0,n.useRef)({scrollPageIntoView:t=>{let{dest:e,pageNumber:i,pageIndex:r=i-1}=t;if(R)return void R({dest:e,pageIndex:r,pageNumber:i});let n=K.current[r];n?n.scrollIntoView():h(!1,`An internal link leading to page ${i} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document>
1 and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});(0,n.useImperativeHandle)(e,()=>({linkService:Y,pages:K,viewer:Q}),[]),(0,n.useEffect)(function(){F({type:"RESET"})},[C,F]);let tt=(0,n.useCallback)(()=>{var t,e,i,r;return t=this,e=void 0,i=void 0,r=function*(){if(!C)return null;if("string"==typeof C)return(0,v.zL)(C)?{data:(0,v.jA)(C)}:((0,v.qC)(),{url:C});if(C instanceof w)return{range:C};if((0,v.mw)(C))return{data:C};if(v.Bd&&(0,v.qf)(C))return{data:yield(0,v.h1)(C)};if((0,l.A)("object"==typeof C,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,l.A)(E(C),"Invalid parameter object: need either .data, .range or .url"),"url"in C&&"string"==typeof C.url){if((0,v.zL)(C.url)){let{url:t}=C,e=b(C,["url"]);return Object.assign({data:(0,v.jA)(t)},e)}(0,v.qC)()}return C},new(i||(i=Promise))(function(n,s){function o(t){try{l(r.next(t))}catch(t){s(t)}}function a(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):((e=t.value)instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})},[C]);(0,n.useEffect)(()=>{let t=(0,o.A)(tt());return t.promise.then(t=>{F({type:"RESOLVE",value:t})}).catch(t=>{F({type:"REJECT",error:t})}),()=>{(0,v.xL)(t)}},[tt,F]),(0,n.useEffect)(()=>{if(void 0!==V){if(!1===V)return void(W&&(h(!1,W.toString()),D&&D(W)));M&&M()}},[V]),(0,n.useEffect)(function(){G({type:"RESET"})},[G,V]),(0,n.useEffect)(function(){if(!V)return;let t=B?Object.assign(Object.assign({},V),B):V,e=f.YE(t);O&&(e.onProgress=O),P&&(e.onPassword=P);let i=e.promise.then(t=>{G({type:"RESOLVE",value:t})}).catch(t=>{e.destroyed||G({type:"REJECT",error:t})});return()=>{i.finally(()=>e.destroy())}},[B,G,V]),(0,n.useEffect)(()=>{if(void 0!==X){if(!1===X)return void($&&(h(!1,$.toString()),k&&k($)));X&&(I&&I(X),K.current=Array(X.numPages),Y.current.setDocument(X))}},[X]),(0,n.useEffect)(function(){Y.current.setViewer(Q.current),Y.current.setExternalLinkRel(S),Y.current.setExternalLinkTarget(T)},[S,T]);let te=(0,n.useCallback)((t,e)=>{K.current[t]=e},[]),ti=(0,n.useCallback)(t=>{delete K.current[t]},[]),tr=(0,n.useMemo)(()=>({imageResourcesPath:N,linkService:Y.current,onItemClick:R,pdf:X,registerPage:te,renderMode:q,rotate:j,unregisterPage:ti}),[N,R,X,te,q,j,ti]),tn=(0,n.useMemo)(()=>(0,s.Ay)(z,()=>X),[z,X]);return(0,r.jsx)("div",Object.assign({className:(0,a.A)("react-pdf__Document",c),ref:_,style:{"--scale-factor":"1"}},tn,{children:C?null==X?(0,r.jsx)(g.A,{type:"loading",children:"function"==typeof A?A():A}):!1===X?(0,r.jsx)(g.A,{type:"error",children:"function"==typeof u?u():u}):(0,r.jsx)(p.A.Provider,{value:tr,children:i}):(0,r.jsx)(g.A,{type:"no-data",children:"function"==typeof L?L():L})}))})},2700:(t,e)=>{"use strict";function i(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=i,e.default={createElement:i}},2939:(t,e,i)=>{"use strict";var r=i(3119),n=i(1026),s=Math.max;t.exports=function(t,e){var i,o,a,l=s(arguments.length,2);for(o=1,t=Object(n(t)),a=function(r){try{t[r]=e[r]}catch(t){i||(i=t)}};o<l;++o)e=arguments[o],r(e).forEach(a);if(void 0!==i)throw i;return t}},3102:(t,e,i)=>{var r=i(6),n=r.find,s=r.NAMESPACE;function o(t){return""!==t}function a(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function l(t){return t?Object.keys((t?t.split(/[\t\n\f\r ]+/).filter(o):[]).reduce(a,{})):[]}function h(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function c(t,e){var i=t.prototype;if(!(i instanceof e)){function r(){}r.prototype=e.prototype,h(i,r=new r),t.prototype=i=r}i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}var u={},d=u.ELEMENT_NODE=1,f=u.ATTRIBUTE_NODE=2,p=u.TEXT_NODE=3,g=u.CDATA_SECTION_NODE=4,m=u.ENTITY_REFERENCE_NODE=5,v=u.ENTITY_NODE=6,y=u.PROCESSING_INSTRUCTION_NODE=7,b=u.COMMENT_NODE=8,w=u.DOCUMENT_NODE=9,x=u.DOCUMENT_TYPE_NODE=10,E=u.DOCUMENT_FRAGMENT_NODE=11,S=u.NOTATION_NODE=12,T={},C={};C[1]="Index size error",T.INDEX_SIZE_ERR=1,C[2]="DOMString size error",T.DOMSTRING_SIZE_ERR=2;var _=(C[3]="Hierarchy request error",T.HIERARCHY_REQUEST_ERR=3);C[4]="Wrong document",T.WRONG_DOCUMENT_ERR=4,C[5]="Invalid character",T.INVALID_CHARACTER_ERR=5,
1C[6]="No data allowed",T.NO_DATA_ALLOWED_ERR=6,C[7]="No modification allowed",T.NO_MODIFICATION_ALLOWED_ERR=7;var N=(C[8]="Not found",T.NOT_FOUND_ERR=8);C[9]="Not supported",T.NOT_SUPPORTED_ERR=9;var A=(C[10]="Attribute in use",T.INUSE_ATTRIBUTE_ERR=10);function L(t,e){if(e instanceof Error)var i=e;else i=this,Error.call(this,C[t]),this.message=C[t],Error.captureStackTrace&&Error.captureStackTrace(this,L);return i.code=t,e&&(this.message=this.message+": "+e),i}function R(){}function k(t,e){this._node=t,this._refresh=e,O(this)}function O(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var i=t._refresh(t._node);if(tg(t,"length",i.length),!t.$$length||i.length<t.$$length)for(var r=i.length;r in t;r++)Object.prototype.hasOwnProperty.call(t,r)&&delete t[r];h(i,t),t._inc=e}}function I(){}function P(t,e){for(var i=t.length;i--;)if(t[i]===e)return i}function D(t,e,i,r){if(r?e[P(e,r)]=i:e[e.length++]=i,t){i.ownerElement=t;var n,o,a,l=t.ownerDocument;l&&(r&&F(l,t,r),n=l,o=t,a=i,n&&n._inc++,a.namespaceURI===s.XMLNS&&(o._nsMap[a.prefix?a.localName:""]=a.value))}}function M(t,e,i){var r=P(e,i);if(r>=0){for(var n=e.length-1;r<n;)e[r]=e[++r];if(e.length=n,t){var s=t.ownerDocument;s&&(F(s,t,i),i.ownerElement=null)}}else throw new L(N,Error(t.tagName+"@"+i))}function B(){}function q(){}function j(t){return"<"==t&&"<"||">"==t&&">"||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function z(t,e){if(e(t))return!0;if(t=t.firstChild)do if(z(t,e))return!0;while(t=t.nextSibling)}function U(){this.ownerDocument=this}function F(t,e,i,r){t&&t._inc++,i.namespaceURI===s.XMLNS&&delete e._nsMap[i.prefix?i.localName:""]}function V(t,e,i){if(t&&t._inc){t._inc++;var r=e.childNodes;if(i)r[r.length++]=i;else{for(var n=e.firstChild,s=0;n;)r[s++]=n,n=n.nextSibling;r.length=s,delete r[r.length]}}}function W(t,e){var i=e.previousSibling,r=e.nextSibling;return i?i.nextSibling=r:t.firstChild=r,r?r.previousSibling=i:t.lastChild=i,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,V(t.ownerDocument,t),e}function H(t){return t&&t.nodeType===q.DOCUMENT_TYPE_NODE}function G(t){return t&&t.nodeType===q.ELEMENT_NODE}function X(t){return t&&t.nodeType===q.TEXT_NODE}function $(t,e){var i=t.childNodes||[];if(n(i,G)||H(e))return!1;var r=n(i,H);return!(e&&r&&i.indexOf(r)>i.indexOf(e))}function Y(t,e){var i=t.childNodes||[];if(n(i,function(t){return G(t)&&t!==e}))return!1;var r=n(i,H);return!(e&&r&&i.indexOf(r)>i.indexOf(e))}function K(t,e,i){var r=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===q.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||n(s,X))throw new L(_,"More than one element or text in fragment");if(1===o.length&&!Y(t,i))throw new L(_,"Element in fragment can not be inserted before doctype")}if(G(e)&&!Y(t,i))throw new L(_,"Only one element can be added and only after doctype");if(H(e)){if(n(r,function(t){return H(t)&&t!==i}))throw new L(_,"Only one doctype is allowed");var a=n(r,G);if(i&&r.indexOf(a)<r.indexOf(i))throw new L(_,"Doctype can only be inserted before an element")}}function J(t,e,i,r){if(!(t&&(t.nodeType===q.DOCUMENT_NODE||t.nodeType===q.DOCUMENT_FRAGMENT_NODE||t.nodeType===q.ELEMENT_NODE)))throw new L(_,"Unexpected parent node type "+t.nodeType);if(i&&i.parentNode!==t)throw new L(N,"child not in parent");if(!(e&&(G(e)||X(e)||H(e)||e.nodeType===q.DOCUMENT_FRAGMENT_NODE||e.nodeType===q.COMMENT_NODE||e.nodeType===q.PROCESSING_INSTRUCTION_NODE))||H(e)&&t.nodeType!==q.DOCUMENT_NODE)throw new L(_,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType);t.nodeType===q.DOCUMENT_NODE&&(r||function(t,e,i){var r=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===q.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||n(s,X))throw new L(_,"More than one element or text in fragment");if(1===o.length&&!$(t,i))throw new L(_,"Element in fragment can not be inserted before doctype")}if(G(e)&&!$(t,i))throw new L(_,"Only one element can be added and only after doctype");if(H(e)){if(n(r,H))throw new L(_,"Only one doctype is allowed");var a=n(r,G);if(i&&r.indexOf(a)<r.indexOf(i))throw new L(_,"Doctype can only be inserted before an element");
1if(!i&&a)throw new L(_,"Doctype can not be appended since element is present")}})(t,e,i);var s=e.parentNode;if(s&&s.removeChild(e),e.nodeType===E){var o=e.firstChild;if(null==o)return e;var a=e.lastChild}else o=a=e;var l=i?i.previousSibling:t.lastChild;o.previousSibling=l,a.nextSibling=i,l?l.nextSibling=o:t.firstChild=o,null==i?t.lastChild=a:i.previousSibling=a;do o.parentNode=t;while(o!==a&&(o=o.nextSibling));return V(t.ownerDocument||t,t),e.nodeType==E&&(e.firstChild=e.lastChild=null),e}function Z(){this._nsMap={}}function Q(){}function tt(){}function te(){}function ti(){}function tr(){}function tn(){}function ts(){}function to(){}function ta(){}function tl(){}function th(){}function tc(){}function tu(t,e){var i=[],r=9==this.nodeType&&this.documentElement||this,n=r.prefix,s=r.namespaceURI;if(s&&null==n){var n=r.lookupPrefix(s);if(null==n)var o=[{namespace:s,prefix:null}]}return tp(this,i,t,e,o),i.join("")}function td(t,e,i){var r=t.prefix||"",n=t.namespaceURI;if(!n||"xml"===r&&n===s.XML||n===s.XMLNS)return!1;for(var o=i.length;o--;){var a=i[o];if(a.prefix===r)return a.namespace!==n}return!0}function tf(t,e,i){t.push(" ",e,'="',i.replace(/[<&"]/g,j),'"')}function tp(t,e,i,r,n){if(n||(n=[]),r){if(!(t=r(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case d:var o,a=t.attributes,l=a.length,h=t.firstChild,c=t.tagName;i=s.isHTML(t.namespaceURI)||i;var u=c;if(!i&&!t.prefix&&t.namespaceURI){for(var v=0;v<a.length;v++)if("xmlns"===a.item(v).name){o=a.item(v).value;break}if(!o)for(var S=n.length-1;S>=0;S--){var T=n[S];if(""===T.prefix&&T.namespace===t.namespaceURI){o=T.namespace;break}}if(o!==t.namespaceURI)for(var S=n.length-1;S>=0;S--){var T=n[S];if(T.namespace===t.namespaceURI){T.prefix&&(u=T.prefix+":"+c);break}}}e.push("<",u);for(var C=0;C<l;C++){var _=a.item(C);"xmlns"==_.prefix?n.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&n.push({prefix:"",namespace:_.value})}for(var C=0;C<l;C++){var _=a.item(C);if(td(_,i,n)){var N=_.prefix||"",A=_.namespaceURI;tf(e,N?"xmlns:"+N:"xmlns",A),n.push({prefix:N,namespace:A})}tp(_,e,i,r,n)}if(c===u&&td(t,i,n)){var N=t.prefix||"",A=t.namespaceURI;tf(e,N?"xmlns:"+N:"xmlns",A),n.push({prefix:N,namespace:A})}if(h||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(e.push(">"),i&&/^script$/i.test(c))for(;h;)h.data?e.push(h.data):tp(h,e,i,r,n.slice()),h=h.nextSibling;else for(;h;)tp(h,e,i,r,n.slice()),h=h.nextSibling;e.push("</",u,">")}else e.push("/>");return;case w:case E:for(var h=t.firstChild;h;)tp(h,e,i,r,n.slice()),h=h.nextSibling;return;case f:return tf(e,t.name,t.value);case p:return e.push(t.data.replace(/[<&]/g,j).replace(/]]>/g,"]]>"));case g:return e.push("<![CDATA[",t.data,"]]>");case b:return e.push("\x3c!--",t.data,"--\x3e");case x:var L=t.publicId,R=t.systemId;if(e.push("<!DOCTYPE ",t.name),L)e.push(" PUBLIC ",L),R&&"."!=R&&e.push(" ",R),e.push(">");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var k=t.internalSubset;k&&e.push(" [",k,"]"),e.push(">")}return;case y:return e.push("<?",t.target," ",t.data,"?>");case m:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function tg(t,e,i){t[e]=i}C[11]="Invalid state",T.INVALID_STATE_ERR=11,C[12]="Syntax error",T.SYNTAX_ERR=12,C[13]="Invalid modification",T.INVALID_MODIFICATION_ERR=13,C[14]="Invalid namespace",T.NAMESPACE_ERR=14,C[15]="Invalid access",T.INVALID_ACCESS_ERR=15,L.prototype=Error.prototype,h(T,L),R.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var i=[],r=0;r<this.length;r++)tp(this[r],i,t,e);return i.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},k.prototype.item=function(t){return O(this),this[t]||null},c(k,R),I.prototype={length:0,item:R.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var i=this[e];if(i.nodeName==t)return i}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new L(A);var i=this.getNamedItem(t.nodeName);return D(this._ownerElement,this,t,i),i},setNamedItemNS:function(t){var e,i=t.ownerElement;if(i&&i!=this._ownerElement)throw new L(A);return e=this.getNamedItemNS(t.namespaceURI,t.localName),D(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return M(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var i=this.getNamedItemNS(t,e);return M(this._ownerElement,this,i),i},getNamedItemNS:function(t,e){for(var i=this.length;i--;){var r=this[i];if(r.localName==e&&r.namespaceURI==t)return r}return null}},B.prototype={hasFeature:function(t,e){return!0}
1,createDocument:function(t,e,i){var r=new U;if(r.implementation=this,r.childNodes=new R,r.doctype=i||null,i&&r.appendChild(i),e){var n=r.createElementNS(t,e);r.appendChild(n)}return r},createDocumentType:function(t,e,i){var r=new tn;return r.name=t,r.nodeName=t,r.publicId=e||"",r.systemId=i||"",r}},q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return J(this,t,e)},replaceChild:function(t,e){J(this,t,e,K),e&&this.removeChild(e)},removeChild:function(t){return W(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,i,r){var n=new i.constructor;for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var o=i[s];"object"!=typeof o&&o!=n[s]&&(n[s]=o)}switch(i.childNodes&&(n.childNodes=new R),n.ownerDocument=e,n.nodeType){case d:var a=i.attributes,l=n.attributes=new I,h=a.length;l._ownerElement=n;for(var c=0;c<h;c++)n.setAttributeNode(t(e,a.item(c),!0));break;case f:r=!0}if(r)for(var u=i.firstChild;u;)n.appendChild(t(e,u,r)),u=u.nextSibling;return n}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==p&&t.nodeType==p?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var i=e._nsMap;if(i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&i[r]===t)return r}e=e.nodeType==f?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var i=e._nsMap;if(i&&t in i&&Object.prototype.hasOwnProperty.call(i,t))return i[t];e=e.nodeType==f?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},h(u,q),h(u,q.prototype),U.prototype={nodeName:"#document",nodeType:w,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==E){for(var i=t.firstChild;i;){var r=i.nextSibling;this.insertBefore(i,e),i=r}return t}return J(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===d&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),W(this,t)},replaceChild:function(t,e){J(this,t,e,K),t.ownerDocument=this,e&&this.removeChild(e),G(t)&&(this.documentElement=t)},importNode:function(t,e){return function t(e,i,r){var n;switch(i.nodeType){case d:(n=i.cloneNode(!1)).ownerDocument=e;case E:break;case f:r=!0}if(n||(n=i.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var s=i.firstChild;s;)n.appendChild(t(e,s,r)),s=s.nextSibling;return n}(this,t,e)},getElementById:function(t){var e=null;return z(this.documentElement,function(i){if(i.nodeType==d&&i.getAttribute("id")==t)return e=i,!0}),e},getElementsByClassName:function(t){var e=l(t);return new k(this,function(i){var r=[];return e.length>0&&z(i.documentElement,function(n){if(n!==i&&n.nodeType===d){var s=n.getAttribute("class");if(s){var o=t===s;if(!o){var a=l(s);o=e.every(function(t){return a&&-1!==a.indexOf(t)})}o&&r.push(n)}}}),r})},createElement:function(t){var e=new Z;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new R,(e.attributes=new I)._ownerElement=e,e},createDocumentFragment:function(){var t=new tl;return t.ownerDocument=this,t.childNodes=new R,t},createTextNode:function(t){var e=new te;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new ti;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new tr;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var i=new th;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=t,i.nodeValue=i.data=e,i},createAttribute:function(t){var e=new Q;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.
1specified=!0,e},createEntityReference:function(t){var e=new ta;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var i=new Z,r=e.split(":"),n=i.attributes=new I;return i.childNodes=new R,i.ownerDocument=this,i.nodeName=e,i.tagName=e,i.namespaceURI=t,2==r.length?(i.prefix=r[0],i.localName=r[1]):i.localName=e,n._ownerElement=i,i},createAttributeNS:function(t,e){var i=new Q,r=e.split(":");return i.ownerDocument=this,i.nodeName=e,i.name=e,i.namespaceURI=t,i.specified=!0,2==r.length?(i.prefix=r[0],i.localName=r[1]):i.localName=e,i}},c(U,q),Z.prototype={nodeType:d,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+e,this.setAttributeNode(i)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===E?this.insertBefore(t,null):(t.parentNode&&t.parentNode.removeChild(t),t.parentNode=this,t.previousSibling=this.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:this.firstChild=t,this.lastChild=t,V(this.ownerDocument,this,t),t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);i&&this.removeAttributeNode(i)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);return i&&i.value||""},setAttributeNS:function(t,e,i){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+i,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new k(this,function(e){var i=[];return z(e,function(r){r!==e&&r.nodeType==d&&("*"===t||r.tagName==t)&&i.push(r)}),i})},getElementsByTagNameNS:function(t,e){return new k(this,function(i){var r=[];return z(i,function(n){n!==i&&n.nodeType===d&&("*"===t||n.namespaceURI===t)&&("*"===e||n.localName==e)&&r.push(n)}),r})}},U.prototype.getElementsByTagName=Z.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=Z.prototype.getElementsByTagNameNS,c(Z,q),Q.prototype.nodeType=f,c(Q,q),tt.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw Error(C[_])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,i){i=this.data.substring(0,t)+i+this.data.substring(t+e),this.nodeValue=this.data=i,this.length=i.length}},c(tt,q),te.prototype={nodeName:"#text",nodeType:p,splitText:function(t){var e=this.data,i=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},c(te,tt),ti.prototype={nodeName:"#comment",nodeType:b},c(ti,tt),tr.prototype={nodeName:"#cdata-section",nodeType:g},c(tr,tt),tn.prototype.nodeType=x,c(tn,q),ts.prototype.nodeType=S,c(ts,q),to.prototype.nodeType=v,c(to,q),ta.prototype.nodeType=m,c(ta,q),tl.prototype.nodeName="#document-fragment",tl.prototype.nodeType=E,c(tl,q),th.prototype.nodeType=y,c(th,q),tc.prototype.serializeToString=function(t,e,i){return tu.call(t,e,i)},q.prototype.toString=tu;try{Object.defineProperty&&(Object.defineProperty(k.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(q.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case d:case E:var i=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&i.push(t(e)),e=e.nextSibling;return i.join("");
1default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case d:case E:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),tg=function(t,e,i){t["$$"+e]=i})}catch(t){}e.DocumentType=tn,e.DOMException=L,e.DOMImplementation=B,e.Element=Z,e.Node=q,e.NodeList=R,e.XMLSerializer=tc},3119:(t,e,i)=>{"use strict";t.exports=i(1300)()?Object.keys:i(416)},3324:(t,e,i)=>{var r=i(187),n=i(1723);t.exports=function(t,e,i){var s=!0,o=!0;if("function"!=typeof t)throw TypeError("Expected a function");return n(i)&&(s="leading"in i?!!i.leading:s,o="trailing"in i?!!i.trailing:o),r(t,e,{leading:s,maxWait:e,trailing:o})}},3358:(t,e,i)=>{var r=i(3102);r.DOMImplementation,r.XMLSerializer,e.DOMParser=i(7670).DOMParser},3447:t=>{"use strict";if(!e)var e={cwd:function(){return"/"}};function i(t){if("string"!=typeof t)throw TypeError("Path must be a string. Received "+t)}function r(t,e){for(var i,r="",n=-1,s=0,o=0;o<=t.length;++o){if(o<t.length)i=t.charCodeAt(o);else if(47===i)break;else i=47;if(47===i){if(n===o-1||1===s);else if(n!==o-1&&2===s){if(r.length<2||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){for(var a=r.length-1,l=a;l>=0&&47!==r.charCodeAt(l);--l);if(l!==a){r=-1===l?"":r.slice(0,l),n=o,s=0;continue}}else if(2===r.length||1===r.length){r="",n=o,s=0;continue}}e&&(r.length>0?r+="/..":r="..")}else r.length>0?r+="/"+t.slice(n+1,o):r=t.slice(n+1,o);n=o,s=0}else 46===i&&-1!==s?++s:s=-1}return r}var n={resolve:function(){for(var t,n,s="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?n=arguments[a]:(void 0===t&&(t=e.cwd()),n=t),i(n),0!==n.length&&(s=n+"/"+s,o=47===n.charCodeAt(0));if(s=r(s,!o),o)if(s.length>0)return"/"+s;else return"/";return s.length>0?s:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return(0!==(t=r(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e)?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var r=arguments[e];i(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":n.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e||(t=n.resolve(t))===(e=n.resolve(e)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var s=t.length,o=s-r,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var l=e.length-a,h=o<l?o:l,c=-1,u=0;u<=h;++u){if(u===h){if(l>h){if(47===e.charCodeAt(a+u))return e.slice(a+u+1);else if(0===u)return e.slice(a+u)}else o>h&&(47===t.charCodeAt(r+u)?c=u:0===u&&(c=0));break}var d=t.charCodeAt(r+u);if(d!==e.charCodeAt(a+u))break;47===d&&(c=u)}var f="";for(u=r+c+1;u<=s;++u)(u===s||47===t.charCodeAt(u))&&(0===f.length?f+="..":f+="/..");return f.length>0?f+e.slice(a+c):(a+=c,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,s=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!s){n=o;break}}else s=!1;return -1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw TypeError('"ext" argument must be a string');i(t);var r,n=0,s=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(r=t.length-1;r>=0;--r){var h=t.charCodeAt(r);if(47===h){if(!o){n=r+1;break}}else -1===l&&(o=!1,l=r+1),a>=0&&(h===e.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return n===s?s=l:-1===s&&(s=t.length),t.slice(n,s)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){n=r+1;break}}else -1===s&&(o=!1,s=r+1);return -1===s?"":t.slice(n,s)},extname:function(t){i(t);for(var e=-1,r=0,n=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(47===l){if(!s){r=a+1;break}continue}-1===n&&(s=!1,n=a+1),46===l?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1)}return -1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){var e,i;if(null===t||"object"!=typeof t)throw TypeError('Parameter "pathObject" must be an object, not '+typeof t);return e=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||""),e?e===t.root?e+i:e+"/"+i:i},parse:function(t){i(t);var e,r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n=t.charCodeAt(0),s=47===n;s?(r.root="/",e=1):e=0;for(var o=-1,a=0,l=-1,h=!0,c=t.length-1,u=0;c>=e;
1--c){if(47===(n=t.charCodeAt(c))){if(!h){a=c+1;break}continue}-1===l&&(h=!1,l=c+1),46===n?-1===o?o=c:1!==u&&(u=1):-1!==o&&(u=-1)}return -1===o||-1===l||0===u||1===u&&o===l-1&&o===a+1?-1!==l&&(0===a&&s?r.base=r.name=t.slice(1,l):r.base=r.name=t.slice(a,l)):(0===a&&s?(r.name=t.slice(1,o),r.base=t.slice(1,l)):(r.name=t.slice(a,o),r.base=t.slice(a,l)),r.ext=t.slice(o,l)),a>0?r.dir=t.slice(0,a-1):s&&(r.dir="/"),r},sep:"/",delimiter:":",posix:null};t.exports=n},3461:(t,e,i)=>{"use strict";var r=i(6853),n={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!r(t)&&hasOwnProperty.call(n,typeof t)}},3516:(t,e,i)=>{var r=i(3873),n=i(4709),s=i(7178),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?n(t):s(t)}},3542:(t,e,i)=>{"use strict";var r={};i.r(r),i.d(r,{RangeObject:()=>X,blob2base64:()=>z,borders:()=>x,bounds:()=>w,createBase64Url:()=>k,createBlob:()=>A,createBlobUrl:()=>L,defaults:()=>g,defer:()=>U,documentHeight:()=>c,extend:()=>m,filterChildren:()=>H,findChildren:()=>V,getParentByTagName:()=>G,indexOfElementNode:()=>_,indexOfNode:()=>T,indexOfSorted:()=>b,indexOfTextNode:()=>C,insert:()=>v,isElement:()=>u,isFloat:()=>f,isNumber:()=>d,isXml:()=>N,locationOf:()=>y,nodeBounds:()=>E,parents:()=>W,parse:()=>I,prefixed:()=>p,qs:()=>P,qsa:()=>D,qsp:()=>M,querySelectorByType:()=>F,requestAnimationFrame:()=>a,revokeBlobUrl:()=>R,sprint:()=>B,treeWalker:()=>q,type:()=>O,uuid:()=>h,walk:()=>j,windowBounds:()=>S});var n=i(6518),s=i.n(n),o=i(3358);let a="u">typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),l="u">typeof URL?URL:"u">typeof window?window.URL||window.webkitURL||window.mozURL:void 0;function h(){var t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?i:7&i|8).toString(16)})}function c(){return Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}function u(t){return!!(t&&1==t.nodeType)}function d(t){return!isNaN(parseFloat(t))&&isFinite(t)}function f(t){let e=parseFloat(t);return!1!==d(t)&&(!!("string"==typeof t&&t.indexOf(".")>-1)||Math.floor(e)!==e)}function p(t){var e=["-webkit-","-webkit-","-moz-","-o-","-ms-"],i=t.toLowerCase();if("u"<typeof document||void 0!==document.body.style[i])return t;for(var r=0;r<5;r++)if(void 0!==document.body.style[e[r]+i])return e[r]+i;return t}function g(t){for(var e=1,i=arguments.length;e<i;e++){var r=arguments[e];for(var n in r)void 0===t[n]&&(t[n]=r[n])}return t}function m(t){var e=[].slice.call(arguments,1);return e.forEach(function(e){e&&Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}),t}function v(t,e,i){var r=y(t,e,i);return e.splice(r,0,t),r}function y(t,e,i,r,n){var s,o=r||0,a=n||e.length,l=parseInt(o+(a-o)/2);return(i||(i=function(t,e){return t>e?1:t<e?-1:t==e?0:void 0}),a-o<=0)?l:(s=i(e[l],t),a-o==1)?s>=0?l:l+1:0===s?l:-1===s?y(t,e,i,l,a):y(t,e,i,o,l)}function b(t,e,i,r,n){var s,o=r||0,a=n||e.length,l=parseInt(o+(a-o)/2);return(i||(i=function(t,e){return t>e?1:t<e?-1:t==e?0:void 0}),a-o<=0)?-1:(s=i(e[l],t),a-o==1)?0===s?l:-1:0===s?l:-1===s?b(t,e,i,l,a):b(t,e,i,o,l)}function w(t){var e=window.getComputedStyle(t),i=0,r=0;return["width","paddingRight","paddingLeft","marginRight","marginLeft","borderRightWidth","borderLeftWidth"].forEach(function(t){i+=parseFloat(e[t])||0}),["height","paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"].forEach(function(t){r+=parseFloat(e[t])||0}),{height:r,width:i}}function x(t){var e=window.getComputedStyle(t),i=0,r=0;return["paddingRight","paddingLeft","marginRight","marginLeft","borderRightWidth","borderLeftWidth"].forEach(function(t){i+=parseFloat(e[t])||0}),["paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"].forEach(function(t){r+=parseFloat(e[t])||0}),{height:r,width:i}}function E(t){let e,i=t.ownerDocument;if(t.nodeType==Node.TEXT_NODE){let r=i.createRange();r.selectNodeContents(t),e=r.getBoundingClientRect()}else e=t.getBoundingClientRect();return e}function S(){var t=window.innerWidth,e=window.innerHeight;return{top:0,left:0,right:t,bottom:e,width:t,height:e}}function T(t,e){for(var i,r=t.parentNode.childNodes,n=-1,s=0;s<r.length&&((i=r[s]).nodeType===e&&n++,i!=t);s++);return n}function C(t){return T(t,3)}function _(t){return T(t,1)}function N(t){return["xml","opf","ncx"].indexOf(t)>-1}function A(t,e){return new Blob([t],{type:e})}function L(t,e){var i=A(t,e);return l.createObjectURL(i)}function R(t){return l.revokeObjectURL(t)}function k(t,e){if("string"==typeof t)return"data:"+e+";base64,"+btoa(t)}function O(t){return Object.prototype.toString.call(t).slice(8,-1)}function I(t,e,i){var r;return r="u"<typeof DOMParser||i?o.DOMParser:DOMParser,65279===t.charCodeAt(0)&&(t=t.slice(1)),new r().parseFromString(t,e)}function P(t,e){var i;if(!t)throw Error("No Element Provided");return void 0!==t.querySelector?t.querySelector(e):(i=t.getElementsByTagName(e)).length?i[0]:void 0}function D(t,e){return void 0!==t.querySelector?t.querySelectorAll(e):t.getElementsByTagName(e)}function M(t,e,i){var r,n;if(void 0!==t.querySelector){for(var s in e+="[",i)e+=s+"~='"+i[s]+"'";return e+="]",t.querySelector(e)}if(r=t.getElementsByTagName(e),n=Array.prototype.slice.call(r,0).filter(function(t){for(var e in i)if(t.getAttribute(e)===i[e])return!0;return!1}))return n[0]}function B(t,e){void 0!==(t.ownerDocument||t).createTreeWalker?q(t,e,NodeFilter.SHOW_TEXT):j(t,function(t){t&&3===t.nodeType&&e(t)},!0)}function q(t,e,i){let r;for(var n=document.createTreeWalker(t,i,null,!1);r=n.nextNode();)e(r)}function j(t,e){if(e(t))return!0;
1if(t=t.firstChild)do{if(j(t,e))return!0;t=t.nextSibling}while(t)}function z(t){return new Promise(function(e,i){var r=new FileReader;r.readAsDataURL(t),r.onloadend=function(){e(r.result)}})}function U(){this.resolve=null,this.reject=null,this.id=h(),this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e}),Object.freeze(this)}function F(t,e,i){var r;if(void 0!==t.querySelector&&(r=t.querySelector(`${e}[*|type="${i}"]`)),r&&0!==r.length)return r;r=D(t,e);for(var n=0;n<r.length;n++)if(r[n].getAttributeNS("http://www.idpf.org/2007/ops","type")===i||r[n].getAttribute("epub:type")===i)return r[n]}function V(t){for(var e=[],i=t.childNodes,r=0;r<i.length;r++){let t=i[r];1===t.nodeType&&e.push(t)}return e}function W(t){for(var e=[t];t;t=t.parentNode)e.unshift(t);return e}function H(t,e,i){for(var r=[],n=t.childNodes,s=0;s<n.length;s++){let t=n[s];if(1===t.nodeType&&t.nodeName.toLowerCase()===e)if(i)return t;else r.push(t)}if(!i)return r}function G(t,e){let i;if(null!==t&&""!==e)for(i=t.parentNode;1===i.nodeType;){if(i.tagName.toLowerCase()===e)return i;i=i.parentNode}}class X{constructor(){this.collapsed=!1,this.commonAncestorContainer=void 0,this.endContainer=void 0,this.endOffset=void 0,this.startContainer=void 0,this.startOffset=void 0}setStart(t,e){this.startContainer=t,this.startOffset=e,this.endContainer?this.commonAncestorContainer=this._commonAncestorContainer():this.collapse(!0),this._checkCollapsed()}setEnd(t,e){this.endContainer=t,this.endOffset=e,this.startContainer?(this.collapsed=!1,this.commonAncestorContainer=this._commonAncestorContainer()):this.collapse(!1),this._checkCollapsed()}collapse(t){this.collapsed=!0,t?(this.endContainer=this.startContainer,this.endOffset=this.startOffset,this.commonAncestorContainer=this.startContainer.parentNode):(this.startContainer=this.endContainer,this.startOffset=this.endOffset,this.commonAncestorContainer=this.endOffset.parentNode)}selectNode(t){let e=t.parentNode,i=Array.prototype.indexOf.call(e.childNodes,t);this.setStart(e,i),this.setEnd(e,i+1)}selectNodeContents(t){t.childNodes[t.childNodes-1];let e=3===t.nodeType?t.textContent.length:parent.childNodes.length;this.setStart(t,0),this.setEnd(t,e)}_commonAncestorContainer(t,e){var i=W(t||this.startContainer),r=W(e||this.endContainer);if(i[0]==r[0]){for(var n=0;n<i.length;n++)if(i[n]!=r[n])return i[n-1]}}_checkCollapsed(){this.startContainer===this.endContainer&&this.startOffset===this.endOffset?this.collapsed=!0:this.collapsed=!1}toString(){}}var $=i(3447),Y=i.n($);class K{constructor(t){var e;t.indexOf("://")>-1&&(t=new URL(t).pathname),e=this.parse(t),this.path=t,this.isDirectory(t)?this.directory=t:this.directory=e.dir+"/",this.filename=e.base,this.extension=e.ext.slice(1)}parse(t){return Y().parse(t)}isAbsolute(t){return Y().isAbsolute(t||this.path)}isDirectory(t){return"/"===t.charAt(t.length-1)}resolve(t){return Y().resolve(this.directory,t)}relative(t){return t&&t.indexOf("://")>-1?t:Y().relative(this.directory,t)}splitPath(t){return this.splitPathRe.exec(t).slice(1)}toString(){return this.path}}class J{constructor(t,e){var i=t.indexOf("://")>-1,r=t;if(this.Url=void 0,this.href=t,this.protocol="",this.origin="",this.hash="",this.hash="",this.search="",this.base=e,!i&&!1!==e&&"string"!=typeof e&&window&&window.location&&(this.base=window.location.href),i||this.base)try{this.base?this.Url=new URL(t,this.base):this.Url=new URL(t),this.href=this.Url.href,this.protocol=this.Url.protocol,this.origin=this.Url.origin,this.hash=this.Url.hash,this.search=this.Url.search,r=this.Url.pathname+(this.Url.search?this.Url.search:"")}catch(t){this.Url=void 0,this.base&&(r=new K(this.base).resolve(r))}this.Path=new K(r),this.directory=this.Path.directory,this.filename=this.Path.filename,this.extension=this.Path.extension}path(){return this.Path}resolve(t){var e;return t.indexOf("://")>-1?t:(e=Y().resolve(this.directory,t),this.origin+e)}relative(t){return Y().relative(t,this.directory)}toString(){return this.href}}class Z{constructor(t,e,i){var r;if(this.str="",this.base={},this.spinePos=0,this.range=!1,this.path={},this.start=null,this.end=null,!(this instanceof Z))return new Z(t,e,i);if("string"==typeof e?this.base=this.parseComponent(e):"object"==typeof e&&e.steps&&(this.base=e),"string"===(r=this.checkType(t)))return this.str=t,m(this,this.parse(t));if("range"===r)return m(this,this.fromRange(t,this.base,i));if("node"===r)return m(this,this.fromNode(t,this.base,i));else if("EpubCFI"===r&&t.path)return t;else if(!t)return this;else throw TypeError("not a valid argument for EpubCFI")}checkType(t){return this.isCfiString(t)?"string":t&&"object"==typeof t&&("Range"===O(t)||void 0!==t.startContainer)?"range":t&&"object"==typeof t&&void 0!==t.nodeType?"node":!!t&&"object"==typeof t&&t instanceof Z&&"EpubCFI"}parse(t){var e,i,r,n={spinePos:-1,range:!1,base:{},path:{},start:null,end:null};return"string"!=typeof t?{spinePos:-1}:(0===t.indexOf("epubcfi(")&&")"===t[t.length-1]&&(t=t.slice(8,t.length-1)),e=this.getChapterComponent(t))?(n.base=this.parseComponent(e),i=this.getPathComponent(t),n.path=this.parseComponent(i),(r=this.getRange(t))&&(n.range=!0,n.start=this.parseComponent(r[0]),n.end=this.parseComponent(r[1])),n.spinePos=n.base.steps[1].index,n):{spinePos:-1}}parseComponent(t){var e,i={steps:[],terminal:{offset:null,assertion:null}},r=t.split(":"),n=r[0].split("/");return r.length>1&&(e=r[1],i.terminal=this.parseTerminal(e)),""===n[0]&&n.shift(),i.steps=n.map((function(t){return this.parseStep(t)}).bind(this)),i}parseStep(t){var e,i,r,n,s;if((n=t.match(/\[(.*)\]/))&&n[1]&&(s=n[1]),!isNaN(i=parseInt(t)))return i%2==0?(e="element",r=i/2-1):(e="text",r=(i-1)/2),{type:e,index:r,id:s||null}}parseTerminal(t){var e,i,r=t.match(/\[(.*)\]/);return r&&r[1]?(e=parseInt(t.split("[")[0]),i=r[1]):e=parseInt(t),d(e)||(e=null),{offset:e,assertion:i}}getChapterComponent(t){return t.split("!")[0]}getPathComponent(t){var e=t.split("!");if(e[1])return e[1].split(",")[0]}getRange(t){var e=t.split(",");return 3===e.length&&[e[1],e[2]]}getCharecterOffsetComponent(t){return t.split(":")[1]||""}joinSteps(t){return t?t.map(function(t){var e="";return"element"===t.type&&(e+=(t.index+1)*2),"text"===t.type&&(e+=1+2*t.index),t.id&&(e+="["+t.id+"]"),e}).join("/"):""}segmentString(t){var e="/";return e+=this.joinSteps(t.steps),t.terminal&&null!=t.terminal.offset&&(e+=":"+t.terminal.offset),t.terminal&&null!=t.terminal.assertion&&(e+="["+t.terminal.assertion+"]"),e}toString(){var t="epubcfi(";return t+=this.segmentString(this.base),t+="!",t+=this.segmentString(this.path),this.range&&this.start&&(t+=",",t+=this.segmentString(this.start)),this.range&&this.end&&(t+=",",t+=this.segmentString(this.end)),t+=")"}compare(t,e){if("string"==typeof t&&(t=new Z(t)),"string"==typeof e&&(e=new Z(e)),t.spinePos>e.spinePos)return 1;if(t.spinePos<e.spinePos)return -1;t.range?(i=t.path.steps.concat(t.start.steps),n=t.start.terminal):(i=t.path.steps,n=t.path.terminal),e.range?(r=e.path.steps.concat(e.start.steps),s=e.start.terminal):(r=e.path.steps,s=e.path.terminal);for(var i,r,n,s,o=0;o<i.length;o++){if(!i[o])return -1;if(!r[o]||i[o].index>r[o].index)return 1;if(i[o].index<r[o].index)return -1}return i.length<r.length?-1:n.offset>s.offset?1:n.offset<s.offset?-1:0}step(t){var e=3===t.nodeType?"text":"element";return{id:t.id,tagName:t.tagName,type:e,index:this.position(t)}}filteredStep(t,e){var i,r=this.filter(t,e);if(r)return i=3===r.nodeType?"text":"element",{id:r.id,tagName:r.tagName,type:i,index:this.filteredPosition(r,e)}}pathTo(t,e,i){for(var r,n={steps:[],terminal:{offset:null,assertion:null}},s=t;s&&s.parentNode&&9!=s.parentNode.nodeType;)(r=i?this.filteredStep(s,i):this.step(s))&&n.steps.unshift(r),s=s.parentNode;return null!=e&&e>=0&&(n.terminal.offset=e,"text"!=n.steps[n.steps.length-1].type&&n.steps.push({type:"text",index:0})),n}equalStep(t,e){return!!t&&!!e&&t.index===e.index&&t.id===e.id&&t.type===e.type}fromRange(t,e,i){var r={range:!1,base:{},path:{},start:null,end:null},n=t.startContainer,s=t.endContainer,o=t.startOffset,a=t.endOffset,l=!1;if(i&&(l=null!=n.ownerDocument.querySelector("."+i)),"string"==typeof e?(r.base=this.parseComponent(e),r.spinePos=r.base.steps[1].index):"object"==typeof e&&(r.base=e),t.collapsed)l&&(o=this.patchOffset(n,o,i)),r.path=this.pathTo(n,o,i);else{r.range=!0,l&&(o=this.patchOffset(n,o,i)),r.start=this.pathTo(n,o,i),l&&(a=this.patchOffset(s,a,i)),r.end=this.pathTo(s,a,i),r.path={steps:[],terminal:null};var h,c=r.start.steps.length;for(h=0;h<c;h++)if(this.equalStep(r.start.steps[h],r.end.steps[h]))h===c-1?r.start.terminal===r.end.terminal&&(r.path.steps.push(r.start.steps[h]),r.range=!1):r.path.steps.push(r.start.steps[h]);else break;r.start.steps=r.start.steps.slice(r.path.steps.length),r.end.steps=r.end.steps.slice(r.path.steps.length)}return r}fromNode(t,e,i){var r={range:!1,base:{},path:{},start:null,end:null};return"string"==typeof e?(r.base=this.parseComponent(e),r.spinePos=r.base.steps[1].index):"object"==typeof e&&(r.base=e),r.path=this.pathTo(t,null,i),r}filter(t,e){var i,r,n,s,o,a=!1;return(3===t.nodeType?(a=!0,n=t.parentNode,i=t.parentNode.classList.contains(e)):(a=!1,i=t.classList.contains(e)),i&&a)?(s=n.previousSibling,o=n.nextSibling,s&&3===s.nodeType?r=s:o&&3===o.nodeType&&(r=o),r)?r:t:(!i||!!a)&&t}patchOffset(t,e,i){if(3!=t.nodeType)throw Error("Anchor must be a text node");var r=t,n=e;for(t.parentNode.classList.contains(i)&&(r=t.parentNode);r.previousSibling;){if(1===r.previousSibling.nodeType)if(r.previousSibling.classList.contains(i))n+=r.previousSibling.textContent.length;else break;else n+=r.previousSibling.textContent.length;r=r.previousSibling}return n}normalizedMap(t,e,i){var r,n,s,o={},a=-1,l=t.length;for(s=0;s<l;s++)1===(r=t[s].nodeType)&&t[s].classList.contains(i)&&(r=3),s>0&&3===r&&3===n?o[s]=a:e===r&&(a+=1,o[s]=a),n=r;return o}position(t){var e,i;return 1===t.nodeType?((e=t.parentNode.children)||(e=V(t.parentNode)),i=Array.prototype.indexOf.call(e,t)):i=(e=this.textNodes(t.parentNode)).indexOf(t),i}filteredPosition(t,e){var i,r;return 1===t.nodeType?(i=t.parentNode.children,r=this.normalizedMap(i,1,e)):(i=t.parentNode.childNodes,t.parentNode.classList.contains(e)&&(i=(t=t.parentNode).parentNode.childNodes),r=this.normalizedMap(i,3,e)),r[Array.prototype.indexOf.call(i,t)]}stepsToXpath(t){var e=[".","*"];return t.forEach(function(t){var i=t.index+1;t.id?e.push("*[position()="+i+" and @id='"+t.id+"']"):"text"===t.type?e.push("text()["+i+"]"):e.push("*["+i+"]")}),e.join("/")}stepsToQuerySelector(t){var e=["html"];return t.forEach(function(t){var i=t.index+1;t.id?e.push("#"+t.id):"text"===t.type||e.push("*:nth-child("+i+")")}),e.join(">")}textNodes(t,e){return Array.prototype.slice.call(t.childNodes).filter(function(t){return 3===t.nodeType||!!(e&&t.classList.contains(e))})}walkToNode(t,e,i){var r,n,s=e||document,o=s.documentElement,a=t.length;for(n=0;
1n<a&&("element"===(r=t[n]).type?o=r.id?s.getElementById(r.id):(o.children||V(o))[r.index]:"text"===r.type&&(o=this.textNodes(o,i)[r.index]),o);n++);return o}findNode(t,e,i){var r,n,s=e||document;return i||void 0===s.evaluate?r=i?this.walkToNode(t,s,i):this.walkToNode(t,s):(n=this.stepsToXpath(t),r=s.evaluate(n,s,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue),r}fixMiss(t,e,i,r){var n,s,o=this.findNode(t.slice(0,-1),i,r),a=o.childNodes,l=this.normalizedMap(a,3,r),h=t[t.length-1].index;for(let t in l){if(!l.hasOwnProperty(t))return;if(l[t]===h)if(s=(n=a[t]).textContent.length,e>s)e-=s;else{o=1===n.nodeType?n.childNodes[0]:n;break}}return{container:o,offset:e}}toRange(t,e){var i,r,n,s,o,a,l,h,c=t||document,u=!!e&&null!=c.querySelector("."+e);if(i=void 0!==c.createRange?c.createRange():new X,this.range?(r=this.start,a=this.path.steps.concat(r.steps),s=this.findNode(a,c,u?e:null),n=this.end,l=this.path.steps.concat(n.steps),o=this.findNode(l,c,u?e:null)):(r=this.path,a=this.path.steps,s=this.findNode(this.path.steps,c,u?e:null)),!s)return console.log("No startContainer found for",this.toString()),null;try{null!=r.terminal.offset?i.setStart(s,r.terminal.offset):i.setStart(s,0)}catch(t){h=this.fixMiss(a,r.terminal.offset,c,u?e:null),i.setStart(h.container,h.offset)}if(o)try{null!=n.terminal.offset?i.setEnd(o,n.terminal.offset):i.setEnd(o,0)}catch(t){h=this.fixMiss(l,this.end.terminal.offset,c,u?e:null),i.setEnd(h.container,h.offset)}return i}isCfiString(t){return"string"==typeof t&&0===t.indexOf("epubcfi(")&&")"===t[t.length-1]}generateChapterComponent(t,e,i){var r=parseInt(e),n="/"+(t+1)*2+"/";return n+=(r+1)*2,i&&(n+="["+i+"]"),n}collapse(t){this.range&&(this.range=!1,t?(this.path.steps=this.path.steps.concat(this.start.steps),this.path.terminal=this.start.terminal):(this.path.steps=this.path.steps.concat(this.end.steps),this.path.terminal=this.end.terminal))}}class Q{constructor(t){this.context=t||this,this.hooks=[]}register(){for(var t=0;t<arguments.length;++t)if("function"==typeof arguments[t])this.hooks.push(arguments[t]);else for(var e=0;e<arguments[t].length;++e)this.hooks.push(arguments[t][e])}deregister(t){for(let e=0;e<this.hooks.length;e++)if(this.hooks[e]===t){this.hooks.splice(e,1);break}}trigger(){var t=arguments,e=this.context,i=[];return this.hooks.forEach(function(r){try{var n=r.apply(e,t)}catch(t){console.log(t)}n&&"function"==typeof n.then&&i.push(n)}),Promise.all(i)}list(){return this.hooks}clear(){return this.hooks=[]}}function tt(t,e){var i,r,n=e.url,s=n.indexOf("://")>-1;t&&(r=P(t,"head"),(i=P(r,"base"))||(i=t.createElement("base"),r.insertBefore(i,r.firstChild)),!s&&window&&window.location&&(n=window.location.origin+n),i.setAttribute("href",n))}function te(t,e){var i,r,n=e.canonical;t&&(i=P(t,"head"),(r=P(i,"link[rel='canonical']"))?r.setAttribute("href",n):((r=t.createElement("link")).setAttribute("rel","canonical"),r.setAttribute("href",n),i.appendChild(r)))}function ti(t,e){var i,r,n=e.idref;t&&(i=P(t,"head"),(r=P(i,"link[property='dc.identifier']"))?r.setAttribute("content",n):((r=t.createElement("meta")).setAttribute("name","dc.identifier"),r.setAttribute("content",n),i.appendChild(r)))}function tr(t,e,i){return e.forEach(function(e,r){e&&i[r]&&(e=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t=t.replace(RegExp(e,"g"),i[r]))}),t}let tn=function(t,e,i,r){var n,s="u">typeof window&&window.URL,o=new U,a=new XMLHttpRequest,l=XMLHttpRequest.prototype;for(n in"overrideMimeType"in l||Object.defineProperty(l,"overrideMimeType",{value:function(){}}),i&&(a.withCredentials=!0),a.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var t,i=!1;if((""===this.responseType||"document"===this.responseType)&&(i=this.responseXML),200===this.status||0===this.status||i){if(!this.response&&!i)return o.reject({status:this.status,message:"Empty Response",stack:Error().stack}),o.promise;if(403===this.status)return o.reject({status:this.status,response:this.response,message:"Forbidden",stack:Error().stack}),o.promise;t=i?this.responseXML:N(e)?I(this.response,"text/xml"):"xhtml"==e?I(this.response,"application/xhtml+xml"):"html"==e||"htm"==e?I(this.response,"text/html"):"json"==e?JSON.parse(this.response):"blob"==e?s?this.response:new Blob([this.response]):this.response,o.resolve(t)}else o.reject({status:this.status,message:this.response,stack:Error().stack})}},a.onerror=function(t){o.reject(t)},a.open("GET",t,!0),r)a.setRequestHeader(n,r[n]);return"json"==e&&a.setRequestHeader("Accept","application/json"),e||(e=new K(t).extension),"blob"==e&&(a.responseType=s?"blob":"arraybuffer"),N(e)&&a.overrideMimeType("text/xml"),"binary"==e&&(a.responseType="arraybuffer"),a.send(),o.promise};class ts{constructor(t,e){this.idref=t.idref,this.linear="yes"===t.linear,this.properties=t.properties,this.index=t.index,this.href=t.href,this.url=t.url,this.canonical=t.canonical,this.next=t.
1next,this.prev=t.prev,this.cfiBase=t.cfiBase,e?this.hooks=e:(this.hooks={},this.hooks.serialize=new Q(this),this.hooks.content=new Q(this)),this.document=void 0,this.contents=void 0,this.output=void 0}load(t){var e=t||this.request||tn,i=new U,r=i.promise;return this.contents?i.resolve(this.contents):e(this.url).then((function(t){return this.document=t,this.contents=t.documentElement,this.hooks.content.trigger(this.document,this)}).bind(this)).then((function(){i.resolve(this.contents)}).bind(this)).catch(function(t){i.reject(t)}),r}base(){return tt(this.document,this)}render(t){var e=new U,i=e.promise;return this.output,this.load(t).then((function(t){var e=("u">typeof navigator&&navigator.userAgent||"").indexOf("Trident")>=0,i=new("u"<typeof XMLSerializer||e?o.DOMParser:XMLSerializer);return this.output=i.serializeToString(t),this.output}).bind(this)).then((function(){return this.hooks.serialize.trigger(this.output,this)}).bind(this)).then((function(){e.resolve(this.output)}).bind(this)).catch(function(t){e.reject(t)}),i}find(t){var e=this,i=[],r=t.toLowerCase(),n=function(t){for(var n,s,o,a=t.textContent.toLowerCase(),l=e.document.createRange(),h=-1;-1!=s;)-1!=(s=a.indexOf(r,h+1))&&((l=e.document.createRange()).setStart(t,s),l.setEnd(t,s+r.length),n=e.cfiFromRange(l),o=t.textContent.length<150?t.textContent:"..."+(o=t.textContent.substring(s-75,s+75))+"...",i.push({cfi:n,excerpt:o})),h=s};return B(e.document,function(t){n(t)}),i}search(t,e=5){if(void 0===document.createTreeWalker)return this.find(t);let i=[],r=this,n=t.toLowerCase(),s=function(t){let e=t.reduce((t,e)=>t+e.textContent,"").toLowerCase().indexOf(n);if(-1!=e){let s=e+n.length,o=0,a=0;if(e<t[0].length){let n;for(;o<t.length-1&&!(s<=(a+=t[o].length));)o+=1;let l=t[0],h=t[o],c=r.document.createRange();c.setStart(l,e);let u=t.slice(0,o).reduce((t,e)=>t+e.textContent.length,0);c.setEnd(h,u>s?s:s-u),n=r.cfiFromRange(c);let d=t.slice(0,o+1).reduce((t,e)=>t+e.textContent,"");d.length>
1150&&(d="..."+(d=d.substring(e-75,e+75))+"..."),i.push({cfi:n,excerpt:d})}}},o=document.createTreeWalker(r.document,NodeFilter.SHOW_TEXT,null,!1),a,l=[];for(;a=o.nextNode();)l.push(a),l.length==e&&(s(l.slice(0,e)),l=l.slice(1,e));return l.length>0&&s(l),i}reconcileLayoutSettings(t){var e={layout:t.layout,spread:t.spread,orientation:t.orientation};return this.properties.forEach(function(t){var i,r,n=t.replace("rendition:",""),s=n.indexOf("-");-1!=s&&(i=n.slice(0,s),r=n.slice(s+1),e[i]=r)}),e}cfiFromRange(t){return new Z(t,this.cfiBase).toString()}cfiFromElement(t){return new Z(t,this.cfiBase).toString()}unload(){this.document=void 0,this.contents=void 0,this.output=void 0}destroy(){this.unload(),this.hooks.serialize.clear(),this.hooks.content.clear(),this.hooks=void 0,this.idref=void 0,this.linear=void 0,this.properties=void 0,this.index=void 0,this.href=void 0,this.url=void 0,this.next=void 0,this.prev=void 0,this.cfiBase=void 0}}class to{constructor(){this.spineItems=[],this.spineByHref={},this.spineById={},this.hooks={},this.hooks.serialize=new Q,this.hooks.content=new Q,this.hooks.content.register(tt),this.hooks.content.register(te),this.hooks.content.register(ti),this.epubcfi=new Z,this.loaded=!1,this.items=void 0,this.manifest=void 0,this.spineNodeIndex=void 0,this.baseUrl=void 0,this.length=void 0}
1unpack(t,e,i){this.items=t.spine,this.manifest=t.manifest,this.spineNodeIndex=t.spineNodeIndex,this.baseUrl=t.baseUrl||t.basePath||"",this.length=this.items.length,this.items.forEach((t,r)=>{var n,s=this.manifest[t.idref];t.index=r,t.cfiBase=this.epubcfi.generateChapterComponent(this.spineNodeIndex,t.index,t.id),t.href&&(t.url=e(t.href,!0),t.canonical=i(t.href)),s&&(t.href=s.href,t.url=e(t.href,!0),t.canonical=i(t.href),s.properties.length&&t.properties.push.apply(t.properties,s.properties)),"yes"===t.linear?(t.prev=(function(){let e=t.index;for(;e>0;){let t=this.get(e-1);if(t&&t.linear)return t;e-=1}}).bind(this),t.next=(function(){let e=t.index;for(;e<this.spineItems.length-1;){let t=this.get(e+1);if(t&&t.linear)return t;e+=1}}).bind(this)):(t.prev=function(){},t.next=function(){}),n=new ts(t,this.hooks),this.append(n)}),this.loaded=!0}get(t){var e=0;if(void 0===t)for(;e<this.spineItems.length;){let t=this.spineItems[e];if(t&&t.linear)break;e+=1}else this.epubcfi.isCfiString(t)?e=new Z(t).spinePos:"number"==typeof t||!1===isNaN(t)?e=t:"string"==typeof t&&0===t.indexOf("#")?e=this.spineById[t.substring(1)]:"string"==typeof t&&(t=t.split("#")[0],e=this.spineByHref[t]||this.spineByHref[encodeURI(t)]);return this.spineItems[e]||null}append(t){var e=this.spineItems.length;return t.index=e,this.spineItems.push(t),this.spineByHref[decodeURI(t.href)]=e,this.spineByHref[encodeURI(t.href)]=e,this.spineByHref[t.href]=e,this.spineById[t.idref]=e,e}prepend(t){return this.spineByHref[t.href]=0,this.spineById[t.idref]=0,this.spineItems.forEach(function(t,e){t.index=e}),0}remove(t){var e=this.spineItems.indexOf(t);if(e>-1)return delete this.spineByHref[t.href],delete this.spineById[t.idref],this.spineItems.splice(e,1)}each(){return this.spineItems.forEach.apply(this.spineItems,arguments)}first(){let t=0;do{let e=this.get(t);if(e&&e.linear)return e;t+=1}while(t<this.spineItems.length)}last(){let t=this.spineItems.length-1;do{let e=this.get(t);if(e&&e.linear)return e;t-=1}while(t>=0)}destroy(){this.each(t=>t.destroy()),this.spineItems=void 0,this.spineByHref=void 0,this.spineById=void 0,this.hooks.serialize.clear(),this.hooks.content.clear(),this.hooks=void 0,this.epubcfi=void 0,this.loaded=!1,this.items=void 0,this.manifest=void 0,this.spineNodeIndex=void 0,this.baseUrl=void 0,this.length=void 0}}class ta{constructor(t){this._q=[],this.context=t,this.tick=a,this.running=!1,this.paused=!1}enqueue(){var t,e,i,r=[].shift.call(arguments),n=arguments;if(!r)throw Error("No Task Provided");return"function"==typeof r?(e=(t=new U).promise,i={task:r,args:n,deferred:t,promise:e}):i={promise:r},this._q.push(i),!1!=this.paused||this.running||this.run(),i.promise}dequeue(){var t,e,i;return!this._q.length||this.paused?((t=new U).deferred.resolve(),t.promise):(e=(t=this._q.shift()).task)?(i=e.apply(this.context,t.args))&&"function"==typeof i.then?i.then((function(){t.deferred.resolve.apply(this.context,arguments)}).bind(this),(function(){t.deferred.reject.apply(this.context,arguments)}).bind(this)):(t.deferred.resolve.apply(this.context,i),t.promise):t.promise?t.promise:void 0}dump(){for(;this._q.length;)this.dequeue()}run(){return this.running||(this.running=!0,this.defered=new U),this.tick.call(window,()=>{this._q.length?this.dequeue().then((function(){this.run()}).bind(this)):(this.defered.resolve(),this.running=void 0)}),!0==this.paused&&(this.paused=!1),this.defered.promise}flush(){return this.running?this.running:this._q.length?(this.running=this.dequeue().then((function(){return this.running=void 0,this.flush()}).bind(this)),this.running):void 0}clear(){this._q=[]}length(){return this._q.length}pause(){this.paused=!0}stop(){this._q=[],this.running=!1,this.paused=!0}}let tl=["keydown","keyup","keypressed","mouseup","mousedown","mousemove","click","touchend","touchstart","touchmove"],th="openFailed",tc="expand",tu="resize",td="selected",tf="selectedRange",tp="linkClicked",tg="changed",tm="resize",tv="resized",ty="orientationchange",tb="added",tw="scroll",tx="scrolled",tE="removed",tS="axis",tT="writingMode",tC="loaderror",t_="rendered",tN="resized",tA="displayed",tL="shown",tR="hidden",tk="markClicked",tO="started",tI="attached",tP="displayed",tD="displayerror",tM="rendered",tB="removed",tq="resized",tj="orientationchange",tz="locationChanged",tU="relocated",tF="markClicked",tV="selected",tW="layout",tH="updated",tG="attach",tX="detach";class t${constructor(t,e,i){this.spine=t,this.request=e,this.pause=i||100,this.q=ne
1w ta(this),this.epubcfi=new Z,this._locations=[],this._locationsWords=[],this.total=0,this.break=150,this._current=0,this._wordCounter=0,this.currentLocation="",this._currentCfi="",this.processingTimeout=void 0}generate(t){return t&&(this.break=t),this.q.pause(),this.spine.each((function(t){t.linear&&this.q.enqueue(this.process.bind(this),t)}).bind(this)),this.q.run().then((function(){return this.total=this._locations.length-1,this._currentCfi&&(this.currentLocation=this._currentCfi),this._locations}).bind(this))}createRange(){return{startContainer:void 0,startOffset:void 0,endContainer:void 0,endOffset:void 0}}process(t){return t.load(this.request).then((function(e){var i=new U,r=this.parse(e,t.cfiBase);return this._locations=this._locations.concat(r),t.unload(),this.processingTimeout=setTimeout(()=>i.resolve(r),this.pause),i.promise}).bind(this))}parse(t,e,i){var r,n,s=[],o=P(t.ownerDocument,"body"),a=0,l=i||this.break;if(B(o,(function(t){var i,o=t.length,h=0;if(0===t.textContent.trim().length)return!1;for(0==a&&((r=this.createRange()).startContainer=t,r.startOffset=0),(i=l-a)>o&&(a+=o,h=o);h<o;)if(i=l-a,0===a&&(h+=1,(r=this.createRange()).startContainer=t,r.startOffset=h),h+i>=o)a+=o-h,h=o;else{h+=i,r.endContainer=t,r.endOffset=h;let n=new Z(r,e).toString();s.push(n),a=0}n=t}).bind(this)),r&&r.startContainer&&n){r.endContainer=n,r.endOffset=n.length;let t=new Z(r,e).toString();s.push(t),a=0}return s}generateFromWords(t,e,i){var r=t?new Z(t):void 0;return this.q.pause(),this._locationsWords=[],this._wordCounter=0,this.spine.each((function(t){t.linear&&(r?t.index>=r.spinePos&&this.q.enqueue(this.processWords.bind(this),t,e,r,i):this.q.enqueue(this.processWords.bind(this),t,e,r,i))}).bind(this)),this.q.run().then((function(){return this._currentCfi&&(this.currentLocation=this._currentCfi),this._locationsWords}).bind(this))}processWords(t,e,i,r){return r&&this._locationsWords.length>=r?Promise.resolve():t.load(this.request).then((function(n){var s=new U,o=this.parseWords(n,t,e,i),a=r-this._locationsWords.length;return this._locationsWords=this._locationsWords.concat(o.length>=r?o.slice(0,a):o),t.unload(),this.processingTimeout=setTimeout(()=>s.resolve(o),this.pause),s.promise}).bind(this))}countWords(t){return(t=(t=(t=t.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[ ]{2,}/gi," ")).replace(/\n /,"\n")).split(" ").length}parseWords(t,e,i,r){var n,s=e.cfiBase,o=[],a=P(t.ownerDocument,"body"),l=!r||r.spinePos!==e.index;
1return r&&e.index===r.spinePos&&(n=r.findNode(r.range?r.path.steps.concat(r.start.steps):r.path.steps,t.ownerDocument)),B(a,(function(t){if(!l)if(t!==n)return!1;else l=!0;if(t.textContent.length<10&&0===t.textContent.trim().length)return!1;var e,r=this.countWords(t.textContent),a=0;if(0===r)return!1;for((e=i-this._wordCounter)>r&&(this._wordCounter+=r,a=r);a<r;)if(a+(e=i-this._wordCounter)>=r)this._wordCounter+=r-a,a=r;else{a+=e;let i=new Z(t,s);o.push({cfi:i.toString(),wordCount:this._wordCounter}),this._wordCounter=0}}).bind(this)),o}locationFromCfi(t){let e;return(Z.prototype.isCfiString(t)&&(t=new Z(t)),0===this._locations.length)?-1:(e=y(t,this._locations,this.epubcfi.compare))>this.total?this.total:e}percentageFromCfi(t){if(0===this._locations.length)return null;var e=this.locationFromCfi(t);return this.percentageFromLocation(e)}percentageFromLocation(t){return t&&this.total?t/this.total:0}cfiFromLocation(t){var e=-1;return"number"!=typeof t&&(t=parseInt(t)),t>=0&&t<this._locations.length&&(e=this._locations[t]),e}cfiFromPercentage(t){let e;if(t>1&&console.warn("Normalize cfiFromPercentage value to between 0 - 1"),t>=1){let t=new Z(this._locations[this.total]);return t.collapse(),t.toString()}return e=Math.ceil(this.total*t),this.cfiFromLocation(e)}load(t){return"string"==typeof t?this._locations=JSON.parse(t):this._locations=t,this.total=this._locations.length-1,this._locations}save(){return JSON.stringify(this._locations)}getCurrent(){return this._current}setCurrent(t){var e;if("string"==typeof t)this._currentCfi=t;else{if("number"!=typeof t)return;this._current=t}0!==this._locations.length&&("string"==typeof t?(e=this.locationFromCfi(t),this._current=e):e=t,this.emit(tg,{percentage:this.percentageFromLocation(e)}))}get currentLocation(){return this._current}set currentLocation(t){this.setCurrent(t)}length(){return this._locations.length}destroy(){this.spine=void 0,this.request=void 0,this.pause=void 0,this.q.stop(),this.q=void 0,this.epubcfi=void 0,this._locations=void 0,this.total=void 0,this.break=void 0,this._current=void 0,this.currentLocation=void 0,this._currentCfi=void 0,clearTimeout(this.processingTimeout)}}s()(t$.prototype);class tY{constructor(t){this.packagePath="",this.directory="",this.encoding="",t&&this.parse(t)}parse(t){var e;if(!t)throw Error("Container File Not Found");if(!(e=P(t,"rootfile")))throw Error("No RootFile Found");this.packagePath=e.getAttribute("full-path"),this.directory=Y().dirname(this.packagePath),this.encoding=t.xmlEncoding}destroy(){this.packagePath=void 0,this.directory=void 0,this.encoding=void 0}}class tK{constructor(t){this.manifest={},this.navPath="",this.ncxPath="",this.coverPath="",this.spineNodeIndex=0,this.spine=[],this.metadata={},t&&this.parse(t)}parse(t){var e,i,r;if(!t)throw Error("Package File Not Found");if(!(e=P(t,"metadata")))throw Error("No Metadata Found");if(!(i=P(t,"manifest")))throw Error("No Manifest Found");if(!(r=P(t,"spine")))throw Error("No Spine Found");return this.manifest=this.parseManifest(i),this.navPath=this.findNavPath(i),this.ncxPath=this.findNcxPath(i,r),this.coverPath=this.findCoverPath(t),this.spineNodeIndex=_(r),this.spine=this.parseSpine(r,this.manifest),this.uniqueIdentifier=this.findUniqueIdentifier(t),this.metadata=this.parseMetadata(e),this.metadata.direction=r.getAttribute("page-progression-direction"),{metadata:this.metadata,spine:this.spine,manifest:this.manifest,navPath:this.navPath,ncxPath:this.ncxPath,coverPath:this.coverPath,spineNodeIndex:this.spineNodeIndex}}parseMetadata(t){var e={};return e.title=this.getElementText(t,"title"),e.creator=this.getElementText(t,"creator"),e.description=this.getElementText(t,"description"),e.pubdate=this.getElementText(t,"date"),e.publisher=this.getElementText(t,"publisher"),e.identifier=this.getElementText(t,"identifier"),e.language=this.getElementText(t,"language"),e.rights=this.getElementText(t,"rights"),e.modified_date=this.getPropertyText(t,"dcterms:modified"),e.layout=this.getPropertyText(t,"rendition:layout"),e.orientation=this.getPropertyText(t,"rendition:orientation"),e.flow=this.getPropertyText(t,"rendition:flow"),e.viewport=this.getPropertyText(t,"rendition:viewport"),e.media_active_class=this.getPropertyText(t,"media:active-class"),e.spread=this.getPropertyText(t,"rendition:spread"),e}parseManifest(t){var e={},i=D(t,"item");
1return Array.prototype.slice.call(i).forEach(function(t){var i=t.getAttribute("id"),r=t.getAttribute("href")||"",n=t.getAttribute("media-type")||"",s=t.getAttribute("media-overlay")||"",o=t.getAttribute("properties")||"";e[i]={href:r,type:n,overlay:s,properties:o.length?o.split(" "):[]}}),e}parseSpine(t,e){var i=[],r=D(t,"itemref");return Array.prototype.slice.call(r).forEach(function(t,e){var r=t.getAttribute("idref"),n=t.getAttribute("properties")||"",s=n.length?n.split(" "):[],o={id:t.getAttribute("id"),idref:r,linear:t.getAttribute("linear")||"yes",properties:s,index:e};i.push(o)}),i}findUniqueIdentifier(t){var e=t.documentElement.getAttribute("unique-identifier");if(!e)return"";var i=t.getElementById(e);return i&&"identifier"===i.localName&&"http://purl.org/dc/elements/1.1/"===i.namespaceURI&&i.childNodes.length>0?i.childNodes[0].nodeValue.trim():""}findNavPath(t){var e=M(t,"item",{properties:"nav"});return!!e&&e.getAttribute("href")}findNcxPath(t,e){var i,r=M(t,"item",{"media-type":"application/x-dtbncx+xml"});return!r&&(i=e.getAttribute("toc"))&&(r=t.querySelector(`#${i}`)),!!r&&r.getAttribute("href")}findCoverPath(t){P(t,"package").getAttribute("version");var e=M(t,"item",{properties:"cover-image"});if(e)return e.getAttribute("href");var i=M(t,"meta",{name:"cover"});if(!i)return!1;var r=i.getAttribute("content"),n=t.getElementById(r);return n?n.getAttribute("href"):""}getElementText(t,e){var i,r=t.getElementsByTagNameNS("http://purl.org/dc/elements/1.1/",e);return r&&0!==r.length&&(i=r[0]).childNodes.length?i.childNodes[0].nodeValue:""}getPropertyText(t,e){var i=M(t,"meta",{property:e});return i&&i.childNodes.length?i.childNodes[0].nodeValue:""}load(t){this.metadata=t.metadata;let e=t.readingOrder||t.spine;return this.spine=e.map((t,e)=>(t.index=e,t.linear=t.linear||"yes",t)),t.resources.forEach((t,e)=>{this.manifest[e]=t,t.rel&&"cover"===t.rel[0]&&(this.coverPath=t.href)}),this.spineNodeIndex=0,this.toc=t.toc.map((t,e)=>(t.label=t.title,t)),{metadata:this.metadata,spine:this.spine,manifest:this.manifest,navPath:this.navPath,ncxPath:this.ncxPath,coverPath:this.coverPath,spineNodeIndex:this.spineNodeIndex,toc:this.toc}}destroy(){this.manifest=void 0,this.navPath=void 0,this.ncxPath=void 0,this.coverPath=void 0,this.spineNodeIndex=void 0,this.spine=void 0,this.metadata=void 0}}class tJ{constructor(t){this.toc=[],this.tocByHref={},this.tocById={},this.landmarks=[],this.landmarksByType={},this.length=0,t&&this.parse(t)}parse(t){let e,i,r=t.nodeType;r&&(e=P(t,"html"),i=P(t,"ncx")),r?e?(this.toc=this.parseNav(t),this.landmarks=this.parseLandmarks(t)):i&&(this.toc=this.parseNcx(t)):this.toc=this.load(t),this.length=0,this.unpack(this.toc)}unpack(t){for(var e,i=0;i<t.length;i++)(e=t[i]).href&&(this.tocByHref[e.href]=i),e.id&&(this.tocById[e.id]=i),this.length++,e.subitems.length&&this.unpack(e.subitems)}get(t){var e;return t?(0===t.indexOf("#")?e=this.tocById[t.substring(1)]:t in this.tocByHref&&(e=this.tocByHref[t]),this.getByIndex(t,e,this.toc)):this.toc}getByIndex(t,e,i){if(0===i.length)return;let r=i[e];if(r&&(t===r.id||t===r.href))return r;{let r;for(let n=0;n<i.length&&!(r=this.getByIndex(t,e,i[n].subitems));++n);return r}}landmark(t){var e;return t?(e=this.landmarksByType[t],this.landmarks[e]):this.landmarks}parseNav(t){var e=F(t,"nav","toc"),i=[];if(!e)return i;let r=H(e,"ol",!0);return r?i=this.parseNavList(r):i}parseNavList(t,e){let i=[];if(!t||!t.children)return i;for(let r=0;r<t.children.length;r++){let n=this.navItem(t.children[r],e);n&&i.push(n)}return i}navItem(t,e){let i=t.getAttribute("id")||void 0,r=H(t,"a",!0)||H(t,"span",!0);if(!r)return;let n=r.getAttribute("href")||"";i||(i=n);let s=r.textContent||"",o=[],a=H(t,"ol",!0);return a&&(o=this.parseNavList(a,i)),{id:i,href:n,label:s,subitems:o,parent:e}}parseLandmarks(t){var e,i,r=F(t,"nav","landmarks"),n=r?D(r,"li"):[],s=n.length,o=[];if(!n||0===s)return o;for(e=0;e<s;++e)(i=this.landmarkItem(n[e]))&&(o.push(i),this.landmarksByType[i.type]=e);return o}landmarkItem(t){let e=H(t,"a",!0);if(!e)return;let i=e.getAttributeNS("http://www.idpf.org/2007/ops","type")||void 0;return{href:e.getAttribute("href")||"",label:e.textContent||"",type:i}}parseNcx(t){var e,i,r=D(t,"navPoint"),n=r.length,s={},o=[];if(!r||0===n)return o;for(e=0;e<n;++e)s[(i=this.ncxItem(r[e])).id]=i,i.parent?s[i.parent].subitems.push(i):o.push(i);return o}ncxItem(t){var e,i=t.getAttribute("id")||!1,r=P(t,"content").getAttribute("src"),n=P(t,"navLabel"),s=n.textContent?n.textContent:"",o=t.parentNode;return o&&("navPoint"===o.nodeName||"navPoint"===o.nodeName.split(":").slice(-1)[0])&&(e=o.getAttribute("id")),{id:i,href:r,label:s,subitems:[],parent:e}}load(t){return t.map(t=>(t.label=t.title,t.subitems=t.children?this.load(t.children):[],t))}forEach(t){return this.toc.forEach(t)}}var tZ={application:{ecmascript:["es","ecma"],javascript:"js",ogg:"ogx",pdf:"pdf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],"rdf+xml":"rdf",smil:["smi","smil"],"xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","opf","ncx"],zip:"zip","x-httpd-eruby":"rhtml","x-latex":"latex","x-maker":["frm","maker","frame","fm","fb","book","fbdoc"],"x-object":"o","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","epub+zip":"epub","font-tdpfr":"pfr","inkml+xml":["ink","inkml"],json:"json","jsonml+json":"jsonml","mathml+xml":"mathml","metalink+xml":"metalink",mp4:"mp4s","omdoc+xml":"omdoc",oxps:"oxps","vnd.amazon.ebook":"azw",widget:"wgt","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-otf":"otf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-font-woff":"woff","x-mobipocket-ebook":["prc","mobi"],"x-mspublisher":"pub","x-nzb":"nzb","x-tgif":"obj","xaml+xml":"xaml","xml-dtd":"dtd","xproc+xml":"xpl","xslt+xml":"xslt","internet-property-stream":"acx","x-compress":"z","x-compressed":"tgz","x-gzip":"gz"},audio:{flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp2","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"x-aiff":["aif","aiff","aifc"],"x-ms-wma":"wma","x-wav":"wav",adpcm:"adp",mp4:"mp4a",webm:"weba","x-aac":"aac","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",mid:["mid","rmi"]},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"x-icon":"ico",bmp:"bmp",webp:"webp","x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod"},text:{"cache-manifest":["manifest","appcache"],css:"css",csv:"csv",html:["html","htm","shtml","stm"],mathml:"mml",plain:["txt","text","brf","conf","def","list","log","in","bas"],richtext:"rtx","tab-separated-values":"tsv","x-bibtex":"bib"},video:{mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv"}},tQ=function(){var t,e,i,r,n={};for(t in tZ)if(tZ.hasOwnProperty(t)){for(e in tZ[t])if(tZ[t].hasOwnProperty(e))if("string"==typeof(i=tZ[t][e]))n[i]=t+"/"+e;else for(r=0;r<i.length;r++)n[i[r]]=t+"/"+e}return n}();let t0=function(t){return t&&tQ[t.split(".").pop().toLowerCase()]||"text/plain"};class t1{constructor(t,e){this.settings={replacements:e&&e.replacements||"base64",archive:e&&e.archive,resolver:e&&e.resolver,request:e&&e.request},this.process(t)}process(t){this.manifest=t,this.resources=Object.keys(t).map(function(e){return t[e]}),this.replacementUrls=[],this.html=[],this.assets=[],this.css=[],this.urls=[],this.cssUrls=[],this.split(),this.splitUrls()}split(){this.html=this.resources.filter(function(t){if("application/xhtml+xml"===t.type||"text/html"===t.type)return!0}),this.assets=this.resources.filter(function(t){if("application/xhtml+xml"!==t.type&&"text/html"!==t.type)return!0}),this.css=this.resources.filter(function(t){if("text/css"===t.type)return!0})}splitUrls(){this.urls=this.assets.map((function(t){return t.href}).bind(this)),this.cssUrls=this.css.map(function(t){return t.href})}createUrl(t){var e=t0(new J(t).filename);return this.settings.archive?this.settings.archive.createUrl(t,{base64:"base64"===this.settings.replacements}):"base64"===this.settings.replacements?this.settings.request(t,"blob").then(t=>z(t)).then(t=>k(t,e)):this.settings.request(t,"blob").then(t=>L(t,e))}replacements(){return"none"===this.settings.replacements?new Promise((function(t){t(this.urls)}).bind(this)):Promise.all(this.urls.map(t=>{var e=this.settings.resolver(t);return this.createUrl(e).catch(t=>(console.error(t),null))})).then(t=>(this.replacementUrls=t.filter(t=>"string"==typeof t),t))}replaceCss(t,e){var i=[];return t=t||this.settings.archive,e=e||this.settings.resolver,this.cssUrls.forEac
1h((function(r){var n=this.createCssFile(r,t,e).then((function(t){var e=this.urls.indexOf(r);e>-1&&(this.replacementUrls[e]=t)}).bind(this));i.push(n)}).bind(this)),Promise.all(i)}createCssFile(t){if(Y().isAbsolute(t))return new Promise(function(t){t()});var e,i=this.settings.resolver(t);e=this.settings.archive?this.settings.archive.getText(i):this.settings.request(i,"text");var r=this.urls.map(t=>{var e=this.settings.resolver(t);return new K(i).relative(e)});return e?e.then(t=>(t=tr(t,r,this.replacementUrls),"base64"===this.settings.replacements?k(t,"text/css"):L(t,"text/css")),t=>new Promise(function(t){t()})):new Promise(function(t){t()})}relativeTo(t,e){return e=e||this.settings.resolver,this.urls.map((function(i){var r=e(i);return new K(t).relative(r)}).bind(this))}get(t){var e=this.urls.indexOf(t);if(-1!==e)if(this.replacementUrls.length)return new Promise((function(t,i){t(this.replacementUrls[e])}).bind(this));else return this.createUrl(t)}substitute(t,e){return tr(t,e?this.relativeTo(e):this.urls,this.replacementUrls)}destroy(){this.settings=void 0,this.manifest=void 0,this.resources=void 0,this.replacementUrls=void 0,this.html=void 0,this.assets=void 0,this.css=void 0,this.urls=void 0,this.cssUrls=void 0}}class t2{constructor(t){this.pages=[],this.locations=[],this.epubcfi=new Z,this.firstPage=0,this.lastPage=0,this.totalPages=0,this.toc=void 0,this.ncx=void 0,t&&(this.pageList=this.parse(t)),this.pageList&&this.pageList.length&&this.process(this.pageList)}parse(t){var e=P(t,"html"),i=P(t,"ncx");return e?this.parseNav(t):i?this.parseNcx(t):void 0}parseNav(t){var e,i=F(t,"nav","page-list"),r=i?D(i,"li"):[],n=r.length,s=[];if(!r||0===n)return s;for(e=0;e<n;++e)s.push(this.item(r[e]));return s}parseNcx(t){var e,i,r=[],n=0,s=0;if(!(e=P(t,"pageList"))||(s=(i=D(e,"pageTarget")).length,!i||0===i.length))return r;for(n=0;n<s;++n)r.push(this.ncxItem(i[n]));return r}ncxItem(t){var e=P(t,"navLabel"),i=P(e,"text").textContent;return{href:P(t,"content").getAttribute("src"),page:parseInt(i,10)}}item(t){var e,i,r=P(t,"a"),n=r.getAttribute("href")||"",s=parseInt(r.textContent||"");return -1!=n.indexOf("epubcfi")?(i=(e=n.split("#"))[0],{cfi:e.length>1&&e[1],href:n,packageUrl:i,page:s}):{href:n,page:s}}process(t){t.forEach(function(t){this.pages.push(t.page),t.cfi&&this.locations.push(t.cfi)},this),this.firstPage=parseInt(this.pages[0]),this.lastPage=parseInt(this.pages[this.pages.length-1]),this.totalPages=this.lastPage-this.firstPage}pageFromCfi(t){var e=-1;if(0===this.locations.length)return -1;var i=b(t,this.locations,this.epubcfi.compare);return -1!=i?e=this.pages[i]:void 0!==(e=(i=y(t,this.locations,this.epubcfi.compare))-1>=0?this.pages[i-1]:this.pages[0])||(e=-1),e}cfiFromPage(t){var e=-1;"number"!=typeof t&&(t=parseInt(t));var i=this.pages.indexOf(t);return -1!=i&&(e=this.locations[i]),e}pageFromPercentage(t){return Math.round(this.totalPages*t)}percentageFromPage(t){return Math.round(1e3*((t-this.firstPage)/this.totalPages))/1e3}percentageFromCfi(t){var e=this.pageFromCfi(t);return this.percentageFromPage(e)}destroy(){this.pages=void 0,this.locations=void 0,this.epubcfi=void 0,this.pageList=void 0,this.toc=void 0,this.ncx=void 0}}class t3{constructor(t){this.settings=t,this.name=t.layout||"reflowable",this._spread="none"!==t.spread,this._minSpreadWidth=t.minSpreadWidth||800,this._evenSpreads=t.evenSpreads||!1,"scrolled"===t.flow||"scrolled-continuous"===t.flow||"scrolled-doc"===t.flow?this._flow="scrolled":this._flow="paginated",this.width=0,this.height=0,this.spreadWidth=0,this.delta=0,this.columnWidth=0,this.gap=0,this.divisor=1,this.props={name:this.name,spread:this._spread,flow:this._flow,width:0,height:0,spreadWidth:0,delta:0,columnWidth:0,gap:0,divisor:1}}flow(t){return void 0!==t&&("scrolled"===t||"scrolled-continuous"===t||"scrolled-doc"===t?this._flow="scrolled":this._flow="paginated",this.update({flow:this._flow})),this._flow}spread(t,e){return t&&(this._spread="none"!==t,this.update({spread:this._spread})),e>=0&&(this._minSpreadWidth=e),this._spread}calculate(t,e,i){var r,n,s,o,a=1,l=i||0,h=t,c=Math.floor(h/12);a=this._spread&&h>=this._minSpreadWidth?2:1,"reflowable"!==this.name||"paginated"!==this._flow||i>=0||(l=c%2==0?c:c-1),"pre-paginated"===this.name&&(l=0),a>1?s=(r=h/a-l)+l:(r=h,s=h),"pre-paginated"===this.name&&a>1&&(h=r),n=r*a+l,o=h,this.width=h,this.height=e,this.spreadWidth=n,this.pageWidth=s,this.delta=o,this.columnWidth=r,this.gap=l,this.divisor=a,this.update({width:h,height:e,spreadWidth:n,pageWidth:s,delta:o,columnWidth:r,gap:l,divisor:a})}format(t,e,i){return"pre-paginated"===this.name?t.fit(this.columnWidth,this.height,e):"paginated"===this._flow?t.columns(this.width,this.height,this.columnWidth,this.gap,this.settings.direction):i&&"horizontal"===i?t.size(null,this.height):t.size(this.width,null)}count(t,e){let i,r;return"pre-paginated"===this.name?(i=1,r=1):r="paginated"===this._flow?(i=Math.ceil(t/(e=e||this.delta)))*this.divisor:i=Math.ceil(t/(e=e||this.height)),{spreads:i,pages:r}}
1update(t){if(Object.keys(t).forEach(e=>{this.props[e]===t[e]&&delete t[e]}),Object.keys(t).length>0){let e=m(this.props,t);this.emit(tH,e,t)}}}s()(t3.prototype);class t6{constructor(t){this.rendition=t,this._themes={default:{rules:{},url:"",serialized:""}},this._overrides={},this._current="default",this._injected=[],this.rendition.hooks.content.register(this.inject.bind(this)),this.rendition.hooks.content.register(this.overrides.bind(this))}register(){if(0!=arguments.length){if(1==arguments.length&&"object"==typeof arguments[0])return this.registerThemes(arguments[0]);if(1==arguments.length&&"string"==typeof arguments[0])return this.default(arguments[0]);if(2==arguments.length&&"string"==typeof arguments[1])return this.registerUrl(arguments[0],arguments[1]);if(2==arguments.length&&"object"==typeof arguments[1])return this.registerRules(arguments[0],arguments[1])}}default(t){if(t){if("string"==typeof t)return this.registerUrl("default",t);if("object"==typeof t)return this.registerRules("default",t)}}registerThemes(t){for(var e in t)t.hasOwnProperty(e)&&("string"==typeof t[e]?this.registerUrl(e,t[e]):this.registerRules(e,t[e]))}registerCss(t,e){this._themes[t]={serialized:e},(this._injected[t]||"default"==t)&&this.update(t)}registerUrl(t,e){var i=new J(e);this._themes[t]={url:i.toString()},(this._injected[t]||"default"==t)&&this.update(t)}registerRules(t,e){this._themes[t]={rules:e},(this._injected[t]||"default"==t)&&this.update(t)}select(t){var e=this._current;this._current=t,this.update(t),this.rendition.getContents().forEach(i=>{i.removeClass(e),i.addClass(t)})}update(t){this.rendition.getContents().forEach(e=>{this.add(t,e)})}inject(t){var e,i=[],r=this._themes;for(var n in r)r.hasOwnProperty(n)&&(n===this._current||"default"===n)&&(((e=r[n]).rules&&Object.keys(e.rules).length>0||e.url&&-1===i.indexOf(e.url))&&this.add(n,t),this._injected.push(n));"default"!=this._current&&t.addClass(this._current)}add(t,e){var i=this._themes[t];i&&e&&(i.url?e.addStylesheet(i.url):i.serialized?(e.addStylesheetCss(i.serialized,t),i.injected=!0):i.rules&&(e.addStylesheetRules(i.rules,t),i.injected=!0))}override(t,e,i){var r=this.rendition.getContents();this._overrides[t]={value:e,priority:!0===i},r.forEach(e=>{e.css(t,this._overrides[t].value,this._overrides[t].priority)})}removeOverride(t){var e=this.rendition.getContents();delete this._overrides[t],e.forEach(e=>{e.css(t)})}overrides(t){var e=this._overrides;for(var i in e)e.hasOwnProperty(i)&&t.css(i,e[i].value,e[i].priority)}fontSize(t){this.override("font-size",t)}font(t){this.override("font-family",t,!0)}destroy(){this.rendition=void 0,this._themes=void 0,this._overrides=void 0,this._current=void 0,this._injected=void 0}}class t5{constructor(t,e,i,r=!1){this.layout=t,this.horizontal="horizontal"===i,this.direction=e||"ltr",this._dev=r}section(t){var e=this.findRanges(t);return this.rangeListToCfiList(t.section.cfiBase,e)}page(t,e,i,r){var n,s=!!t&&!!t.document&&t.document.body;if(s){if(n=this.rangePairToCfiPair(e,{start:this.findStart(s,i,r),end:this.findEnd(s,i,r)}),!0===this._dev){let e=t.document,i=new Z(n.start).toRange(e),r=new Z(n.end).toRange(e),s=e.defaultView.getSelection(),o=e.createRange();s.removeAllRanges(),o.setStart(i.startContainer,i.startOffset),o.setEnd(r.endContainer,r.endOffset),s.addRange(o)}return n}}walk(t,e){if(!t||t.nodeType!==Node.TEXT_NODE){var i,r,n=function(t){return t.data.trim().length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT};n.acceptNode=n;for(var s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,n,!1);(i=s.nextNode())&&!(r=e(i)););return r}}findRanges(t){for(var e,i,r=[],n=Math.ceil(t.contents.scrollWidth()/this.layout.spreadWidth)*this.layout.divisor,s=this.layout.columnWidth,o=this.layout.gap,a=0;a<n.pages;a++)e=(s+o)*a,i=s*(a+1)+o*a,r.push({start:this.findStart(t.document.body,e,i),end:this.findEnd(t.document.body,e,i)});return r}findStart(t,e,i){for(var r,n,s=[t],o=t;s.length;)if(r=s.shift(),n=this.walk(r,t=>{var r,n,a,l,h;if(h=E(t),this.horizontal&&"ltr"===this.direction){if(r=this.horizontal?h.left:h.top,n=this.horizontal?h.right:h.bottom,r>=e&&r<=i||n>e)return t;o=t,s.push(t)}else if(this.horizontal&&"rtl"===this.direction){if(r=h.left,(n=h.right)<=i&&n>=e||r<i)return t;o=t,s.push(t)}else{if(a=h.top,l=h.bottom,a>=e&&a<=i||l>e)return t;o=t,s.push(t)}}))return this.findTextStartRange(n,e,i);return this.findTextStartRange(o,e,i)}findEnd(t,e,i){for(var r,n,s=[t],o=t;s.length;)if(r=s.shift(),n=this.walk(r,t=>{var r,n,a,l,h;if(h=E(t),this.horizontal&&"ltr"===this.direction){if(r=Math.round(h.left),n=Math.round(h.right),r>i&&o)return o;if(n>i)return t;o=t,s.push(t)}else if(this.horizontal&&"rtl"===this.direction){if(r=Math.round(this.horizontal?h.left:h.top),(n=Math.round(this.horizontal?h.right:h.bottom))<e&&o)return o;if(r<e)return t;o=t,s.push(t)}else{if(a=Math.round(h.top),l=Math.round(h.bottom),a>i&&o)return o;if(l>i)return t;o=t,s.push(t)}}))return this.findTextEndRange(n,e,i);return this.findTextEndRange(o,e,i)}findTextStartRange(t,e,i){for(var r,n,s=this.splitTextNodeIntoRanges(t),o=0;o<s.length;
1o++)if(n=(r=s[o]).getBoundingClientRect(),this.horizontal&&"ltr"===this.direction){if(n.left>=e)return r}else if(this.horizontal&&"rtl"===this.direction){if(n.right<=i)return r}else if(n.top>=e)return r;return s[0]}findTextEndRange(t,e,i){for(var r,n,s,o,a,l,h,c=this.splitTextNodeIntoRanges(t),u=0;u<c.length;u++){if(s=(n=c[u]).getBoundingClientRect(),this.horizontal&&"ltr"===this.direction){if(o=s.left,a=s.right,o>i&&r)return r;if(a>i)return n}else if(this.horizontal&&"rtl"===this.direction){if(o=s.left,(a=s.right)<e&&r)return r;if(o<e)return n}else{if(l=s.top,h=s.bottom,l>i&&r)return r;if(h>i)return n}r=n}return c[c.length-1]}splitTextNodeIntoRanges(t,e){var i,r=[],n=(t.textContent||"").trim(),s=t.ownerDocument,o=e||" ",a=n.indexOf(o);if(-1===a||t.nodeType!=Node.TEXT_NODE)return(i=s.createRange()).selectNodeContents(t),[i];for((i=s.createRange()).setStart(t,0),i.setEnd(t,a),r.push(i),i=!1;-1!=a;)(a=n.indexOf(o,a+1))>0&&(i&&(i.setEnd(t,a),r.push(i)),(i=s.createRange()).setStart(t,a+1));return i&&(i.setEnd(t,n.length),r.push(i)),r}rangePairToCfiPair(t,e){var i=e.start,r=e.end;return i.collapse(!0),r.collapse(!1),{start:new Z(i,t).toString(),end:new Z(r,t).toString()}}rangeListToCfiList(t,e){for(var i=[],r=0;r<e.length;r++)i.push(this.rangePairToCfiPair(t,e[r]));return i}axis(t){return t&&(this.horizontal="horizontal"===t),this.horizontal}}let t8="u">typeof navigator,t4=t8&&/Chrome/.test(navigator.userAgent),t7=t8&&!t4&&/AppleWebKit/.test(navigator.userAgent);class t9{constructor(t,e,i,r){this.epubcfi=new Z,this.document=t,this.documentElement=this.document.documentElement,this.content=e||this.document.body,this.window=this.document.defaultView,this._size={width:0,height:0},this.sectionIndex=r||0,this.cfiBase=i||"",this.epubReadingSystem("epub.js","0.3"),this.called=0,this.active=!0,this.listeners()}static get listenedEvents(){return tl}width(t){var e=this.content;return t&&d(t)&&(t+="px"),t&&(e.style.width=t),parseInt(this.window.getComputedStyle(e).width)}height(t){var e=this.content;return t&&d(t)&&(t+="px"),t&&(e.style.height=t),parseInt(this.window.getComputedStyle(e).height)}contentWidth(t){var e=this.content||this.document.body;return t&&d(t)&&(t+="px"),t&&(e.style.width=t),parseInt(this.window.getComputedStyle(e).width)}contentHeight(t){var e=this.content||this.document.body;return t&&d(t)&&(t+="px"),t&&(e.style.height=t),parseInt(this.window.getComputedStyle(e).height)}textWidth(){let t,e=this.document.createRange(),i=this.content||this.document.body,r=x(i);return e.selectNodeContents(i),t=e.getBoundingClientRect().width,r&&r.width&&(t+=r.width),Math.round(t)}textHeight(){let t=this.document.createRange(),e=this.content||this.document.body;return t.selectNodeContents(e),Math.round(t.getBoundingClientRect().bottom)}scrollWidth(){return this.documentElement.scrollWidth}scrollHeight(){return this.documentElement.scrollHeight}overflow(t){return t&&(this.documentElement.style.overflow=t),this.window.getComputedStyle(this.documentElement).overflow}overflowX(t){return t&&(this.documentElement.style.overflowX=t),this.window.getComputedStyle(this.documentElement).overflowX}overflowY(t){return t&&(this.documentElement.style.overflowY=t),this.window.getComputedStyle(this.documentElement).overflowY}css(t,e,i){var r=this.content||this.document.body;return e?r.style.setProperty(t,e,i?"important":""):r.style.removeProperty(t),this.window.getComputedStyle(r)[t]}viewport(t){var e=this.document.querySelector("meta[name='viewport']"),i={width:void 0,height:void 0,scale:void 0,minimum:void 0,maximum:void 0,scalable:void 0},r=[],n={};if(e&&e.hasAttribute("content")){let t=e.getAttribute("content"),r=t.match(/width\s*=\s*([^,]*)/),n=t.match(/height\s*=\s*([^,]*)/),s=t.match(/initial-scale\s*=\s*([^,]*)/),o=t.match(/minimum-scale\s*=\s*([^,]*)/),a=t.match(/maximum-scale\s*=\s*([^,]*)/),l=t.match(/user-scalable\s*=\s*([^,]*)/);r&&r.length&&void 0!==r[1]&&(i.width=r[1]),n&&n.length&&void 0!==n[1]&&(i.height=n[1]),s&&s.length&&void 0!==s[1]&&(i.scale=s[1]),o&&o.length&&void 0!==o[1]&&(i.minimum=o[1]),a&&a.length&&void 0!==a[1]&&(i.maximum=a[1]),l&&l.length&&void 0!==l[1]&&(i.scalable=l[1])}return n=g(t||{},i),t&&(n.width&&r.push("width="+n.width),n.height&&r.push("height="+n.height),n.scale&&r.push("initial-scale="+n.scale),"no"===n.scalable?(r.push("minimum-scale="+n.scale),r.push("maximum-scale="+n.scale),r.push("user-scalable="+n.scalable)):(n.scalable&&r.push("user-scalable="+n.scalable),n.minimum&&r.push("minimum-scale="+n.minimum),n.maximum&&r.push("minimum-scale="+n.maximum)),e||((e=this.document.createElement("meta")).setAttribute("name","viewport"),this.document.querySelector("head").appendChild(e)),e.setAttribute("content",r.join(", ")),this.window.scrollTo(0,0)),n}
1expand(){this.emit(tc)}listeners(){this.imageLoadListeners(),this.mediaQueryListeners(),this.addEventListeners(),this.addSelectionListeners(),"u"<typeof ResizeObserver?(this.resizeListeners(),this.visibilityListeners()):this.resizeObservers(),this.linksHandler()}removeListeners(){this.removeEventListeners(),this.removeSelectionListeners(),this.observer&&this.observer.disconnect(),clearTimeout(this.expanding)}resizeCheck(){let t=this.textWidth(),e=this.textHeight();(t!=this._size.width||e!=this._size.height)&&(this._size={width:t,height:e},this.onResize&&this.onResize(this._size),this.emit(tu,this._size))}resizeListeners(){clearTimeout(this.expanding),requestAnimationFrame(this.resizeCheck.bind(this)),this.expanding=setTimeout(this.resizeListeners.bind(this),350)}visibilityListeners(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&!1===this.active?(this.active=!0,this.resizeListeners()):(this.active=!1,clearTimeout(this.expanding))})}transitionListeners(){let t=this.content;t.style.transitionProperty="font, font-size, font-size-adjust, font-stretch, font-variation-settings, font-weight, width, height",t.style.transitionDuration="0.001ms",t.style.transitionTimingFunction="linear",t.style.transitionDelay="0",this._resizeCheck=this.resizeCheck.bind(this),this.document.addEventListener("transitionend",this._resizeCheck)}mediaQueryListeners(){for(var t,e=this.document.styleSheets,i=(function(t){t.matches&&!this._expanding&&setTimeout(this.expand.bind(this),1)}).bind(this),r=0;r<e.length;r+=1){try{t=e[r].cssRules}catch(t){return}if(!t)return;for(var n=0;n<t.length;n+=1)t[n].media&&this.window.matchMedia(t[n].media.mediaText).addListener(i)}}resizeObservers(){this.observer=new ResizeObserver(t=>{requestAnimationFrame(this.resizeCheck.bind(this))}),this.observer.observe(this.document.documentElement)}mutationObservers(){this.observer=new MutationObserver(t=>{this.resizeCheck()}),this.observer.observe(this.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}imageLoadListeners(){for(var t,e=this.document.querySelectorAll("img"),i=0;i<e.length;i++)void 0!==(t=e[i]).naturalWidth&&0===t.naturalWidth&&(t.onload=this.expand.bind(this))}fontLoadListeners(){this.document&&this.document.fonts&&this.document.fonts.ready.then((function(){this.resizeCheck()}).bind(this))}root(){return this.document?this.document.documentElement:null}locationOf(t,e){var i,r={left:0,top:0};if(!this.document)return r;if(this.epubcfi.isCfiString(t)){let n=new Z(t).toRange(this.document,e);if(n){try{if(!n.endContainer||n.startContainer==n.endContainer&&n.startOffset==n.endOffset){let t=n.startContainer.textContent.indexOf(" ",n.startOffset);-1==t&&(t=n.startContainer.textContent.length),n.setEnd(n.startContainer,t)}}catch(t){console.error("setting end offset to start container length failed",t)}if(n.startContainer.nodeType===Node.ELEMENT_NODE)r.left=(i=n.startContainer.getBoundingClientRect()).left,r.top=i.top;else if(t7){let t=n.startContainer,e=new Range;try{1===t.nodeType?i=t.getBoundingClientRect():n.startOffset+2<t.length?(e.setStart(t,n.startOffset),e.setEnd(t,n.startOffset+2),i=e.getBoundingClientRect()):n.startOffset-2>0?(e.setStart(t,n.startOffset-2),e.setEnd(t,n.startOffset),i=e.getBoundingClientRect()):i=t.parentNode.getBoundingClientRect()}catch(t){console.error(t,t.stack)}}else i=n.getBoundingClientRect()}}else if("string"==typeof t&&t.indexOf("#")>-1){let e=t.substring(t.indexOf("#")+1),r=this.document.getElementById(e);if(r)if(t7){let t=new Range;t.selectNode(r),i=t.getBoundingClientRect()}else i=r.getBoundingClientRect()}return i&&(r.left=i.left,r.top=i.top),r}addStylesheet(t){return new Promise((function(e,i){var r,n=!1;this.document?(r=this.document.querySelector("link[href='"+t+"']"))?e(!0):((r=this.document.createElement("link")).type="text/css",r.rel="stylesheet",r.href=t,r.onload=r.onreadystatechange=function(){n||this.readyState&&"complete"!=this.readyState||(n=!0,setTimeout(()=>{e(!0)},1))},this.document.head.appendChild(r)):e(!1)}).bind(this))}_getStylesheetNode(t){var e;return t="epubjs-inserted-css-"+(t||""),!!this.document&&((e=this.document.getElementById(t))||((e=this.document.createElement("style")).id=t,this.document.head.appendChild(e)),e)}
1addStylesheetCss(t,e){return!!this.document&&!!t&&(this._getStylesheetNode(e).innerHTML=t,!0)}addStylesheetRules(t,e){var i;if(this.document&&t&&0!==t.length)if(i=this._getStylesheetNode(e).sheet,"[object Array]"===Object.prototype.toString.call(t))for(var r=0,n=t.length;r<n;r++){var s=1,o=t[r],a=t[r][0],l="";"[object Array]"===Object.prototype.toString.call(o[1][0])&&(o=o[1],s=0);for(var h=o.length;s<h;s++){var c=o[s];l+=c[0]+":"+c[1]+(c[2]?" !important":"")+";\n"}i.insertRule(a+"{"+l+"}",i.cssRules.length)}else Object.keys(t).forEach(e=>{let r=t[e];if(Array.isArray(r))r.forEach(t=>{let r=Object.keys(t).map(e=>`${e}:${t[e]}`).join(";");i.insertRule(`${e}{${r}}`,i.cssRules.length)});else{let t=Object.keys(r).map(t=>`${t}:${r[t]}`).join(";");i.insertRule(`${e}{${t}}`,i.cssRules.length)}})}addScript(t){return new Promise((function(e,i){var r,n=!1;this.document?((r=this.document.createElement("script")).type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){n||this.readyState&&"complete"!=this.readyState||(n=!0,setTimeout(function(){e(!0)},1))},this.document.head.appendChild(r)):e(!1)}).bind(this))}addClass(t){var e;this.document&&(e=this.content||this.document.body)&&e.classList.add(t)}removeClass(t){var e;this.document&&(e=this.content||this.document.body)&&e.classList.remove(t)}addEventListeners(){this.document&&(this._triggerEvent=this.triggerEvent.bind(this),tl.forEach(function(t){this.document.addEventListener(t,this._triggerEvent,{passive:!0})},this))}removeEventListeners(){this.document&&(tl.forEach(function(t){this.document.removeEventListener(t,this._triggerEvent,{passive:!0})},this),this._triggerEvent=void 0)}triggerEvent(t){this.emit(t.type,t)}addSelectionListeners(){this.document&&(this._onSelectionChange=this.onSelectionChange.bind(this),this.document.addEventListener("selectionchange",this._onSelectionChange,{passive:!0}))}removeSelectionListeners(){this.document&&(this.document.removeEventListener("selectionchange",this._onSelectionChange,{passive:!0}),this._onSelectionChange=void 0)}onSelectionChange(t){this.selectionEndTimeout&&clearTimeout(this.selectionEndTimeout),this.selectionEndTimeout=setTimeout((function(){var t=this.window.getSelection();this.triggerSelectedEvent(t)}).bind(this),250)}triggerSelectedEvent(t){var e,i;t&&t.rangeCount>0&&((e=t.getRangeAt(0)).collapsed||(i=new Z(e,this.cfiBase).toString(),this.emit(td,i),this.emit(tf,e)))}range(t,e){return new Z(t).toRange(this.document,e)}cfiFromRange(t,e){return new Z(t,this.cfiBase,e).toString()}cfiFromNode(t,e){return new Z(t,this.cfiBase,e).toString()}map(t){return new t5(t).section()}size(t,e){var i={scale:1,scalable:"no"};this.layoutStyle("scrolling"),t>=0&&(this.width(t),i.width=t,this.css("padding","0 "+t/12+"px")),e>=0&&(this.height(e),i.height=e),this.css("margin","0"),this.css("box-sizing","border-box"),this.viewport(i)}columns(t,e,i,r,n){let s=p("column-axis"),o=p("column-gap"),a=p("column-width"),l=p("column-fill"),h=0===this.writingMode().indexOf("vertical")?"vertical":"horizontal";this.layoutStyle("paginated"),"rtl"===n&&"horizontal"===h&&this.direction(n),this.width(t),this.height(e),this.viewport({width:t,height:e,scale:1,scalable:"no"}),this.css("overflow-y","hidden"),this.css("margin","0",!0),"vertical"===h?(this.css("padding-top",r/2+"px",!0),this.css("padding-bottom",r/2+"px",!0),this.css("padding-left","20px"),this.css("padding-right","20px"),this.css(s,"vertical")):(this.css("padding-top","20px"),this.css("padding-bottom","20px"),this.css("padding-left",r/2+"px",!0),this.css("padding-right",r/2+"px",!0),this.css(s,"horizontal")),this.css("box-sizing","border-box"),this.css("max-width","inherit"),this.css(l,"auto"),this.css(o,r+"px"),this.css(a,i+"px"),this.css("-webkit-line-box-contain","block glyphs replaced")}scaler(t,e,i){var r="";this.css("transform-origin","top left"),(e>=0||i>=0)&&(r=" translate("+(e||0)+"px, "+(i||0)+"px )"),this.css("transform","scale("+t+")"+r)}fit(t,e,i){var r=this.viewport(),n=parseInt(r.width),s=parseInt(r.height),o=t/n,a=e/s,l=o<a?o:a;if(this.layoutStyle("paginated"),this.width(n),this.height(s),this.overflow("hidden"),this.scaler(l,0,0),this.css("background-size",n*l+"px "+s*l+"px"),this.css("background-color","transparent"),i&&i.properties.includes("page-spread-left")){var h=t-n*l;this.css("margin-left",h+"px")}}direction(t){this.documentElement&&(this.documentElement.style.direction=t)}mapPage(t,e,i,r,n){return new t5(e,n).page(this,t,i,r)}linksHandler(){!function(t,e){var i=t.querySelectorAll("a[href]");if(i.length)for(var r=P(t.ownerDocument,"base"),n=r?r.getAttribute("href"):void 0,s=(function(t){var i,r=t.getAttribute("href");if(0!==r.indexOf("mailto:"))if(r.indexOf("://")>-1)t.setAttribute("target","_blank");else{try{i=new J(r,n)}catch(t){}t.onclick=function(){return i&&i.hash?e(i.Path.path+i.hash):i?e(i.Path.path):e(r),!1}}}).bind(this),o=0;o<i.length;o++)s(i[o])}(this.content,t=>
1{this.emit(tp,t)})}writingMode(t){let e=p("writing-mode");return t&&this.documentElement&&(this.documentElement.style[e]=t),this.window.getComputedStyle(this.documentElement)[e]||""}layoutStyle(t){return t&&(this._layoutStyle=t,navigator.epubReadingSystem.layoutStyle=this._layoutStyle),this._layoutStyle||"paginated"}epubReadingSystem(t,e){return navigator.epubReadingSystem={name:t,version:e,layoutStyle:this.layoutStyle(),hasFeature:function(t){switch(t){case"dom-manipulation":case"layout-changes":case"touch-events":case"mouse-events":case"keyboard-events":return!0;default:return!1}}},navigator.epubReadingSystem}destroy(){this.removeListeners()}}s()(t9.prototype);class et{constructor(t){this.rendition=t,this.highlights=[],this.underlines=[],this.marks=[],this._annotations={},this._annotationsBySectionIndex={},this.rendition.hooks.render.register(this.inject.bind(this)),this.rendition.hooks.unloaded.register(this.clear.bind(this))}add(t,e,i,r,n,s){let o=encodeURI(e+t),a=new Z(e).spinePos,l=new ee({type:t,cfiRange:e,data:i,sectionIndex:a,cb:r,className:n,styles:s});return this._annotations[o]=l,a in this._annotationsBySectionIndex?this._annotationsBySectionIndex[a].push(o):this._annotationsBySectionIndex[a]=[o],this.rendition.views().forEach(t=>{l.sectionIndex===t.index&&l.attach(t)}),l}remove(t,e){let i=encodeURI(t+e);if(i in this._annotations){let t=this._annotations[i];if(e&&t.type!==e)return;this.rendition.views().forEach(e=>{this._removeFromAnnotationBySectionIndex(t.sectionIndex,i),t.sectionIndex===e.index&&t.detach(e)}),delete this._annotations[i]}}_removeFromAnnotationBySectionIndex(t,e){this._annotationsBySectionIndex[t]=this._annotationsAt(t).filter(t=>t!==e)}_annotationsAt(t){return this._annotationsBySectionIndex[t]}highlight(t,e,i,r,n){return this.add("highlight",t,e,i,r,n)}underline(t,e,i,r,n){return this.add("underline",t,e,i,r,n)}mark(t,e,i){return this.add("mark",t,e,i)}each(){return this._annotations.forEach.apply(this._annotations,arguments)}inject(t){let e=t.index;e in this._annotationsBySectionIndex&&this._annotationsBySectionIndex[e].forEach(e=>{this._annotations[e].attach(t)})}clear(t){let e=t.index;e in this._annotationsBySectionIndex&&this._annotationsBySectionIndex[e].forEach(e=>{this._annotations[e].detach(t)})}show(){}hide(){}}class ee{constructor({type:t,cfiRange:e,data:i,sectionIndex:r,cb:n,className:s,styles:o}){this.type=t,this.cfiRange=e,this.data=i,this.sectionIndex=r,this.mark=void 0,this.cb=n,this.className=s,this.styles=o}update(t){this.data=t}attach(t){let e,{cfiRange:i,data:r,type:n,mark:s,cb:o,className:a,styles:l}=this;return"highlight"===n?e=t.highlight(i,r,o,a,l):"underline"===n?e=t.underline(i,r,o,a,l):"mark"===n&&(e=t.mark(i,r,o)),this.mark=e,this.emit(tG,e),e}detach(t){let e,{cfiRange:i,type:r}=this;return t&&("highlight"===r?e=t.unhighlight(i):"underline"===r?e=t.ununderline(i):"mark"===r&&(e=t.unmark(i))),this.mark=void 0,this.emit(tX,e),e}text(){}}s()(ee.prototype);var ei=i(3612);class er{constructor(t,e){this.settings=m({ignoreClass:"",axis:void 0,direction:void 0,width:0,height:0,layout:void 0,globalLayoutProperties:{},method:void 0,forceRight:!1,allowScriptedContent:!1,allowPopups:!1},e||{}),this.id="epubjs-view-"+h(),this.section=t,this.index=t.index,this.element=this.container(this.settings.axis),this.added=!1,this.displayed=!1,this.rendered=!1,this.fixedWidth=0,this.fixedHeight=0,this.epubcfi=new Z,this.layout=this.settings.layout,this.pane=void 0,this.highlights={},this.underlines={},this.marks={}}container(t){var e=document.createElement("div");return e.classList.add("epub-view"),e.style.height="0px",e.style.width="0px",e.style.overflow="hidden",e.style.position="relative",e.style.display="block",t&&"horizontal"==t?e.style.flex="none":e.style.flex="initial",e}create(){return this.iframe||(this.element||(this.element=this.createContainer()),this.iframe=document.createElement("iframe"),this.iframe.id=this.id,this.iframe.scrolling="no",this.iframe.style.overflow="hidden",this.iframe.seamless="seamless",this.iframe.style.border="none",this.iframe.sandbox="allow-same-origin",this.settings.allowScriptedContent&&(this.iframe.sandbox+=" allow-scripts"),this.settings.allowPopups&&(this.iframe.sandbox+=" allow-popups"),this.iframe.setAttribute("enable-annotation","true"),this.resizing=!0,this.element.style.visibility="hidden",this.iframe.style.visibility="hidden",this.iframe.style.width="0",this.iframe.style.height="0",this._width=0,this._height=0,this.element.setAttribute("ref",this.index),this.added=!0,this.elementBounds=w(this.element),"srcdoc"in this.iframe?this.supportsSrcdoc=!0:this.supportsSrcdoc=!1,this.settings.method||(this.settings.method=this.supportsSrcdoc?"srcdoc":"write")),this.iframe}render(t,e){return this.create(),this.size(),this.sectionRender||(this.sectionRender=this.section.render(t)),this.sectionRender.then((function(t){return this.load(t)}).bind(this)).then((function(){let t,e=this.contents.writingMode();return t="scrolled"===this.settings.flow?0===e.indexOf("vertical")?"horizontal":"vertical":0===e.indexOf("vertical")?"vertical":"horizontal",0===e.indexOf("vertical")&&"paginated"===this.settings.flow&&(this.layout.delta=this.layout.height),this.setAxis(t),this.emit
1(tS,t),this.setWritingMode(e),this.emit(tT,e),this.layout.format(this.contents,this.section,this.axis),this.addListeners(),new Promise((t,e)=>{this.expand(),this.settings.forceRight&&(this.element.style.marginLeft=this.width()+"px"),t()})}).bind(this),(function(t){return this.emit(tC,t),new Promise((e,i)=>{i(t)})}).bind(this)).then((function(){this.emit(t_,this.section)}).bind(this))}reset(){this.iframe&&(this.iframe.style.width="0",this.iframe.style.height="0",this._width=0,this._height=0,this._textWidth=void 0,this._contentWidth=void 0,this._textHeight=void 0,this._contentHeight=void 0),this._needsReframe=!0}size(t,e){var i=t||this.settings.width,r=e||this.settings.height;"pre-paginated"===this.layout.name?this.lock("both",i,r):"horizontal"===this.settings.axis?this.lock("height",i,r):this.lock("width",i,r),this.settings.width=i,this.settings.height=r}lock(t,e,i){var r,n=x(this.element);r=this.iframe?x(this.iframe):{width:0,height:0},"width"==t&&d(e)&&(this.lockedWidth=e-n.width-r.width),"height"==t&&d(i)&&(this.lockedHeight=i-n.height-r.height),"both"===t&&d(e)&&d(i)&&(this.lockedWidth=e-n.width-r.width,this.lockedHeight=i-n.height-r.height),this.displayed&&this.iframe&&this.expand()}expand(t){var e,i=this.lockedWidth,r=this.lockedHeight;this.iframe&&!this._expanding&&(this._expanding=!0,"pre-paginated"===this.layout.name?(i=this.layout.columnWidth,r=this.layout.height):"horizontal"===this.settings.axis?((i=this.contents.textWidth())%this.layout.pageWidth>0&&(i=Math.ceil(i/this.layout.pageWidth)*this.layout.pageWidth),this.settings.forceEvenPages&&(e=i/this.layout.pageWidth,this.layout.divisor>1&&"reflowable"===this.layout.name&&e%2>0&&(i+=this.layout.pageWidth))):"vertical"===this.settings.axis&&(r=this.contents.textHeight(),"paginated"===this.settings.flow&&r%this.layout.height>0&&(r=Math.ceil(r/this.layout.height)*this.layout.height)),(this._needsReframe||i!=this._width||r!=this._height)&&this.reframe(i,r),this._expanding=!1)}reframe(t,e){var i;d(t)&&(this.element.style.width=t+"px",this.iframe.style.width=t+"px",this._width=t),d(e)&&(this.element.style.height=e+"px",this.iframe.style.height=e+"px",this._height=e);let r=this.prevBounds?t-this.prevBounds.width:t,n=this.prevBounds?e-this.prevBounds.height:e;i={width:t,height:e,widthDelta:r,heightDelta:n},this.pane&&this.pane.render(),requestAnimationFrame(()=>{let t;for(let e in this.marks)this.marks.hasOwnProperty(e)&&(t=this.marks[e],this.placeMark(t.element,t.range))}),this.onResize(this,i),this.emit(tN,i),this.prevBounds=i,this.elementBounds=w(this.element)}load(t){var e=new U,i=e.promise;if(!this.iframe)return e.reject(Error("No Iframe Available")),i;if(this.iframe.onload=(function(t){this.onLoad(t,e)}).bind(this),"blobUrl"===this.settings.method)this.blobUrl=L(t,"application/xhtml+xml"),this.iframe.src=this.blobUrl,this.element.appendChild(this.iframe);else if("srcdoc"===this.settings.method)this.iframe.srcdoc=t,this.element.appendChild(this.iframe);else{if(this.element.appendChild(this.iframe),this.document=this.iframe.contentDocument,!this.document)return e.reject(Error("No Document Available")),i;if(this.iframe.contentDocument.open(),window.MSApp&&MSApp.execUnsafeLocalFunction){var r=this;MSApp.execUnsafeLocalFunction(function(){r.iframe.contentDocument.write(t)})}else this.iframe.contentDocument.write(t);this.iframe.contentDocument.close()}return i}onLoad(t,e){this.window=this.iframe.contentWindow,this.document=this.iframe.contentDocument,this.contents=new t9(this.document,this.document.body,this.section.cfiBase,this.section.index),this.rendering=!1;var i=this.document.querySelector("link[rel='canonical']");i?i.setAttribute("href",this.section.canonical):((i=this.document.createElement("link")).setAttribute("rel","canonical"),i.setAttribute("href",this.section.canonical),this.document.querySelector("head").appendChild(i)),this.contents.on(tc,()=>{this.displayed&&this.iframe&&(this.expand(),this.contents&&this.layout.format(this.contents))}),this.contents.on(tu,t=>{this.displayed&&this.iframe&&(this.expand(),this.contents&&this.layout.format(this.contents))}),e.resolve(this.contents)}setLayout(t){this.layout=t,this.contents&&(this.layout.format(this.contents),this.expand())}setAxis(t){this.settings.axis=t,"horizontal"==t?this.element.style.flex="none":this.element.style.flex="initial",this.size()}setWritingMode(t){this.writingMode=t}addListeners(){}removeListeners(t){}display(t){var e=new U;return this.displayed?e.resolve(this):this.render(t).then((function(){this.emit
1(tA,this),this.onDisplayed(this),this.displayed=!0,e.resolve(this)}).bind(this),function(t){e.reject(t,this)}),e.promise}show(){this.element.style.visibility="visible",this.iframe&&(this.iframe.style.visibility="visible",this.iframe.style.transform="translateZ(0)",this.iframe.offsetWidth,this.iframe.style.transform=null),this.emit(tL,this)}hide(){this.element.style.visibility="hidden",this.iframe.style.visibility="hidden",this.stopExpanding=!0,this.emit(tR,this)}offset(){return{top:this.element.offsetTop,left:this.element.offsetLeft}}width(){return this._width}height(){return this._height}position(){return this.element.getBoundingClientRect()}locationOf(t){this.iframe.getBoundingClientRect();var e=this.contents.locationOf(t,this.settings.ignoreClass);return{left:e.left,top:e.top}}onDisplayed(t){}onResize(t,e){}bounds(t){return(t||!this.elementBounds)&&(this.elementBounds=w(this.element)),this.elementBounds}highlight(t,e={},i,r="epubjs-hl",n={}){if(!this.contents)return;let s=Object.assign({fill:"yellow","fill-opacity":"0.3","mix-blend-mode":"multiply"},n),o=this.contents.range(t),a=()=>{this.emit(tk,t,e)};e.epubcfi=t,this.pane||(this.pane=new ei.Zv(this.iframe,this.element));let l=new ei.f4(o,r,e,s),h=this.pane.addMark(l);return this.highlights[t]={mark:h,element:h.element,listeners:[a,i]},h.element.setAttribute("ref",r),h.element.addEventListener("click",a),h.element.addEventListener("touchstart",a),i&&(h.element.addEventListener("click",i),h.element.addEventListener("touchstart",i)),h}underline(t,e={},i,r="epubjs-ul",n={}){if(!this.contents)return;let s=Object.assign({stroke:"black","stroke-opacity":"0.3","mix-blend-mode":"multiply"},n),o=this.contents.range(t),a=()=>{this.emit(tk,t,e)};e.epubcfi=t,this.pane||(this.pane=new ei.Zv(this.iframe,this.element));let l=new ei.z2(o,r,e,s),h=this.pane.addMark(l);return this.underlines[t]={mark:h,element:h.element,listeners:[a,i]},h.element.setAttribute("ref",r),h.element.addEventListener("click",a),h.element.addEventListener("touchstart",a),i&&(h.element.addEventListener("click",i),h.element.addEventListener("touchstart",i)),h}mark(t,e={},i){if(!this.contents)return;if(t in this.marks)return this.marks[t];let r=this.contents.range(t);if(!r)return;let n=r.commonAncestorContainer,s=1===n.nodeType?n:n.parentNode,o=i=>{this.emit(tk,t,e)};r.collapsed&&1===n.nodeType?(r=new Range).selectNodeContents(n):r.collapsed&&(r=new Range).selectNodeContents(s);let a=this.document.createElement("a");return a.setAttribute("ref","epubjs-mk"),a.style.position="absolute",a.dataset.epubcfi=t,e&&Object.keys(e).forEach(t=>{a.dataset[t]=e[t]}),i&&(a.addEventListener("click",i),a.addEventListener("touchstart",i)),a.addEventListener("click",o),a.addEventListener("touchstart",o),this.placeMark(a,r),this.element.appendChild(a),this.marks[t]={element:a,range:r,listeners:[o,i]},s}placeMark(t,e){let i,r,n;if("pre-paginated"===this.layout.name||"horizontal"!==this.settings.axis){let t=e.getBoundingClientRect();i=t.top,r=t.right}else{let t,o=e.getClientRects();for(var s=0;s!=o.length;s++)t=o[s],(!n||t.left<n)&&(r=Math.ceil((n=t.left)/this.layout.props.pageWidth)*this.layout.props.pageWidth-this.layout.gap/2,i=t.top)}t.style.top=`${i}px`,t.style.left=`${r}px`}unhighlight(t){let e;t in this.highlights&&(e=this.highlights[t],this.pane.removeMark(e.mark),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.highlights[t])}ununderline(t){let e;t in this.underlines&&(e=this.underlines[t],this.pane.removeMark(e.mark),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.underlines[t])}unmark(t){let e;t in this.marks&&(e=this.marks[t],this.element.removeChild(e.element),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.marks[t])}destroy(){for(let t in this.highlights)this.unhighlight(t);for(let t in this.underlines)this.ununderline(t);for(let t in this.marks)this.unmark(t);this.blobUrl&&R(this.blobUrl),this.displayed&&(this.displayed=!1,this.removeListeners(),this.contents.destroy(),this.stopExpanding=!0,this.element.removeChild(this.iframe),this.pane&&(this.pane.element.remove(),this.pane=void 0),this.iframe=void 0,this.contents=void 0,this._textWidth=null,this._textHeight=null,this._width=null,this._height=null)}}s()(er.prototype);var en=i(3324),es=i.n(en);class eo{constructor(t){this.settings=t||{},this.id="epubjs-container-"+h(),this.container=this.create(this.settings),this.settings.hidden&&(this.wrapper=this.wrap(this.container))}create(t){let e=t.height,i=t.width,r=t.overflow||!1,n=t.axis||"vertical",s=t.direction;m(this.settings,t),t.height&&d(t.height)&&(e=t.height+"px"),t.width&&d(t.width)&&(i=t.width+"px");let o=document.createElement("div");return o.id=this.id,o.classList.add("epub-container"),o.style.wordSpacing="0",o.style.lineHeight="0",o.style.verticalAlign="top",o.style.position="relative","horizontal"===n&&(o.style.display="flex",o.style.flexDirection="row",o.style.flexWrap="nowrap"),i&&(o.style.width=i),e&&(o.style.height=e),r&&("scroll"===r&&"vertical"===n?(o.style["overflow-y"]=r,o.style["overflow-x"]="hidden"):"scroll"===r&&"horizontal"===n?(o.style["overflow-y"]="hidden",o.style["overflow-x"]=r):o.style.overflow=r),s&&(o.dir=s,o.style.direction=s),s&&this.settings.fullsize&&(document.body.style.direction=s),o}wrap(t){var e=document.createElement("div");return e.style.visibility="hidden",e.style.overflow="hidden",e.style.width="0",e.style.height="0",e.appendChild(t),e}getElement(t){var e;if(u(t)?e=t:"string"==typeof t&&(e=document.getElementById(t)),!e)throw Error("Not an Element");return e}attachTo(t){var e,i=this.getElement(t);if(i)return e=this.settings.hidden?this.wrapper:this.container,i.appendChild(e),this.element=i,i}getContainer(){return this.container}onResize(t){d(this.settings.width)&&d(this.settings.height)||(this.resizeFunc=es()(t,50),window.addEventListener("resize",this.resizeFunc,!1))}onOrientationChange(t){this.orientationChangeFunc=t,window.addEventListener("orientationchange",this.orientationChangeFunc,!1)}size(t,e){var i;let r=t||this.settings.width,n=e||this.settings.height;null===t?(i=this.element.getBoundingClientRect()).width&&(t=Math.floor(i.width),this.container.style.width=t+"px"):d(t)?this.container.style.width=t+"px":this.container.style.width=t,null===e?(i=i||this.element.getBoundingClientRect()).height&&(e=i.height,this.container.style.height=e+"px"):d(e)?this.container.style.height=e+"px":this.container.style.height=e,d(t)||(t=this.container.clientWidth),d(e)||(e=this.container.clientHeight),this.containerStyles=window.getComputedStyle(this.container),this.containerPadding={left:parseFloat(this.containerStyles["padding-left"])||0,right:parseFloat(this.containerStyles["padding-right"])||0,top:parseFloat(this.containerStyles["padding-top"])||0,bottom:parseFloat(this.containerStyles["padding-bottom"])||0};let s=S(),o=window.getComputedStyle(document.body),a={left:parseFloat(o["padding-left"])||0,right:parseFloat(o["padding-right"])||0,top:parseFloat(o["padding-top"])||0,bottom:parseFloat(o["padding-bottom"])||0};return r||(t=s.width-a.left-a.right),(!this.settings.fullsize||n)&&n||(e=s.height-a.top-a.bottom),{width:t-this.containerPadding.left-this.containerPadding.right,height:e-this.containerPadding.top-this.containerPadding.bottom}}bounds(){let t;return("visible"!==this.container.style.overflow&&(t=this.container&&this.container.getBoundingClientRect()),t&&t.width&&t.height)?t:S()}getSheet(){var t=document.createElement("style");return t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet}addStyleRules(t,e){var i="#"+this.id+" ",r="";this.sheet||(this.sheet=this.getSheet()),e.forEach(function(t){for(var e in t)t.hasOwnProperty(e)&&(r+=e+":"+t[e]+";")}),this.sheet.insertRule(i+t+" {"+r+"}",0)}axis(t){"horizontal"===t?(this.container.style.display="flex",this.container.style.flexDirection="row",this.container.style.flexWrap="nowrap"):this.container.style.display="block",this.settings.axis=t}direction(t){this.container&&(this.container.dir=t,this.container.style.direction=t),this.settings.fullsize&&(document.body.style.direction=t),this.settings.dir=t}overflow(t){this.container&&("scroll"===t&&"vertical"===this.settings.axis?(this.container.style["overflow-y"]=t,this.container.style["overflow-x"]="hidden"):"scroll"===t&&"horizontal"===this.settings.axis?(this.container.style["overflow-y"]="hidden",this.container.style["overflow-x"]=t):this.container.style.overflow=t),this.settings.overflow=t}destroy(){this.element&&(this.settings.hidden?this.wrapper:this.container,this.element.contains(this.container)&&this.element.removeChild(this.container),window.removeEventListener("resize",this.resizeFunc),window.removeEventListener("orientationChange",this.orientationChangeFunc))}}class ea{constructor(t){this.container=t,this._views=[],this.length=0,this.hidden=!1}all(){return this._views}first(){return this._views[0]}last(){return this._views[this._views.length-1]}indexOf(t){return this._views.indexOf(t)}slice(){return this._views.slice.apply(this._views,arguments)}get(t){return this._views[t]}append(t){return this._views.push(t),this.container&&this.container.appendChild(t.element),this.length++,t}prepend(t){return this._views.unshift(t),this.container&&this.container.insertBefore(t.element,this.container.firstChild),this.length++,t}insert(t,e){return this._views.splice(e,0,t),this.container&&(e<this.container.children.length?this.container.insertBefore(t.element,this.container.children[e]):this.container.appendChild(t.element)),this.length++,t}remove(t){var e=this._views.indexOf(t);e>-1&&this._views.splice(e,1),this.destroy(t),this.length--}destroy(t){t.displayed&&t.destroy(),this.container&&this.container.removeChild(t.element),t=null}forEach(){return this._views.forEach.apply(this._views,arguments)}clear(){var t,e=this.length;if(this.length){for(var i=0;i<e;i++)t=this._views[i],this.destroy(t);this._views=[],this.length=0}}find(t){for(var e,i=this.length,r=0;r<i;r++)if((e=this._views[r]).displayed&&e.section.index==t.index)return e}displayed(){for(var t,e=[],i=this.length,r=0;r<i;r++)(t=this._views[r]).displayed&&e.push(t);return e}show(){for(var t,e=this.length,i=0;i<e;i++)(t=this._views[i]).displayed&&t.show();this.hidden=!1}hide(){for(var t,e=this.length,i=0;i<e;i++)(t=this._views[i]).displayed&&t.hide();this.hidden=!0}}
1class el{constructor(t){this.name="default",this.optsSettings=t.settings,this.View=t.view,this.request=t.request,this.renditionQueue=t.queue,this.q=new ta(this),this.settings=m(this.settings||{},{infinite:!0,hidden:!1,width:void 0,height:void 0,axis:void 0,writingMode:void 0,flow:"scrolled",ignoreClass:"",fullsize:void 0,allowScriptedContent:!1,allowPopups:!1}),m(this.settings,t.settings||{}),this.viewSettings={ignoreClass:this.settings.ignoreClass,axis:this.settings.axis,flow:this.settings.flow,layout:this.layout,method:this.settings.method,width:0,height:0,forceEvenPages:!0,allowScriptedContent:this.settings.allowScriptedContent,allowPopups:this.settings.allowPopups},this.rendered=!1}render(t,e){var i,r,n,s,o,a;let l=t.tagName;void 0===this.settings.fullsize&&l&&("body"==l.toLowerCase()||"html"==l.toLowerCase())&&(this.settings.fullsize=!0),this.settings.fullsize&&(this.settings.overflow="visible",this.overflow=this.settings.overflow),this.settings.size=e,this.settings.rtlScrollType=(i="reverse",(n=document.createElement("div")).dir="rtl",n.style.position="fixed",n.style.width="1px",n.style.height="1px",n.style.top="0px",n.style.left="0px",n.style.overflow="hidden",(s=document.createElement("div")).style.width="2px",(o=document.createElement("span")).style.width="1px",o.style.display="inline-block",(a=document.createElement("span")).style.width="1px",a.style.display="inline-block",s.appendChild(o),s.appendChild(a),n.appendChild(s),r=n,document.body.appendChild(r),r.scrollLeft>0?i="default":"u">typeof Element&&Element.prototype.scrollIntoView?(r.children[0].children[1].scrollIntoView(),r.scrollLeft<0&&(i="negative")):(r.scrollLeft=1,0===r.scrollLeft&&(i="negative")),document.body.removeChild(r),i),this.stage=new eo({width:e.width,height:e.height,overflow:this.overflow,hidden:this.settings.hidden,axis:this.settings.axis,fullsize:this.settings.fullsize,direction:this.settings.direction}),this.stage.attachTo(t),this.container=this.stage.getContainer(),this.views=new ea(this.container),this._bounds=this.bounds(),this._stageSize=this.stage.size(),this.viewSettings.width=this._stageSize.width,this.viewSettings.height=this._stageSize.height,this.stage.onResize(this.onResized.bind(this)),this.stage.onOrientationChange(this.onOrientationChange.bind(this)),this.addEventListeners(),this.layout&&this.updateLayout(),this.rendered=!0}addEventListeners(){var t;window.addEventListener("unload",(function(t){this.destroy()}).bind(this)),t=this.settings.fullsize?window:this.container,this._onScroll=this.onScroll.bind(this),t.addEventListener("scroll",this._onScroll)}removeEventListeners(){(this.settings.fullsize?window:this.container).removeEventListener("scroll",this._onScroll),this._onScroll=void 0}destroy(){clearTimeout(this.orientationTimeout),clearTimeout(this.resizeTimeout),clearTimeout(this.afterScrolled),this.clear(),this.removeEventListeners(),this.stage.destroy(),this.rendered=!1}onOrientationChange(t){let{orientation:e}=window;
1this.optsSettings.resizeOnOrientationChange&&this.resize(),clearTimeout(this.orientationTimeout),this.orientationTimeout=setTimeout((function(){this.orientationTimeout=void 0,this.optsSettings.resizeOnOrientationChange&&this.resize(),this.emit(ty,e)}).bind(this),500)}onResized(t){this.resize()}resize(t,e,i){let r=this.stage.size(t,e);if(this.winBounds=S(),this.orientationTimeout&&this.winBounds.width===this.winBounds.height){this._stageSize=void 0;return}this._stageSize&&this._stageSize.width===r.width&&this._stageSize.height===r.height||(this._stageSize=r,this._bounds=this.bounds(),this.clear(),this.viewSettings.width=this._stageSize.width,this.viewSettings.height=this._stageSize.height,this.updateLayout(),this.emit(tv,{width:this._stageSize.width,height:this._stageSize.height},i))}createView(t,e){return new this.View(t,m(this.viewSettings,{forceRight:e}))}handleNextPrePaginated(t,e,i){let r;if("pre-paginated"===this.layout.name&&this.layout.divisor>1){if(t||0===e.index)return;if((r=e.next())&&!r.properties.includes("page-spread-left"))return i.call(this,r)}}display(t,e){var i=new U,r=i.promise;(e===t.href||d(e))&&(e=void 0);var n=this.views.find(t);if(n&&t&&"pre-paginated"!==this.layout.name){let t=n.offset();if("ltr"===this.settings.direction)this.scrollTo(t.left,t.top,!0);else{let e=n.width();this.scrollTo(t.left+e,t.top,!0)}if(e){let t=n.locationOf(e),i=n.width();this.moveTo(t,i)}return i.resolve(),r}this.clear();let s=!1;return"pre-paginated"===this.layout.name&&2===this.layout.divisor&&t.properties.includes("page-spread-right")&&(s=!0),this.add(t,s).then((function(t){if(e){let i=t.locationOf(e),r=t.width();this.moveTo(i,r)}}).bind(this),t=>{i.reject(t)}).then((function(){return this.handleNextPrePaginated(s,t,this.add)}).bind(this)).then((function(){this.views.show(),i.resolve()}).bind(this)),r}afterDisplayed(t){this.emit(tb,t)}afterResized(t){this.emit(tm,t.section)}moveTo(t,e){var i=0,r=0;this.isPaginated?((i=Math.floor(t.left/this.layout.delta)*this.layout.delta)+this.layout.delta>this.container.scrollWidth&&(i=this.container.scrollWidth-this.layout.delta),(r=Math.floor(t.top/this.layout.delta)*this.layout.delta)+this.layout.delta>this.container.scrollHeight&&(r=this.container.scrollHeight-this.layout.delta)):r=t.top,"rtl"===this.settings.direction&&(i+=this.layout.delta,i-=e),this.scrollTo(i,r,!0)}add(t,e){var i=this.createView(t,e);return this.views.append(i),i.onDisplayed=this.afterDisplayed.bind(this),i.onResize=this.afterResized.bind(this),i.on(tS,t=>{this.updateAxis(t)}),i.on(tT,t=>{this.updateWritingMode(t)}),i.display(this.request)}append(t,e){var i=this.createView(t,e);return this.views.append(i),i.onDisplayed=this.afterDisplayed.bind(this),i.onResize=this.afterResized.bind(this),i.on(tS,t=>{this.updateAxis(t)}),i.on(tT,t=>{this.updateWritingMode(t)}),i.display(this.request)}prepend(t,e){var i=this.createView(t,e);return i.on(tN,t=>{this.counter(t)}),this.views.prepend(i),i.onDisplayed=this.afterDisplayed.bind(this),i.onResize=this.afterResized.bind(this),i.on(tS,t=>{this.updateAxis(t)}),i.on(tT,t=>{this.updateWritingMode(t)}),i.display(this.request)}counter(t){"vertical"===this.settings.axis?this.scrollBy(0,t.heightDelta,!0):this.scrollBy(t.widthDelta,0,!0)}next(){var t;let e=this.settings.direction;if(this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis&&(!e||"ltr"===e)?(this.scrollLeft=this.container.scrollLeft,this.container.scrollLeft+this.container.offsetWidth+this.layout.delta<=this.container.scrollWidth?this.scrollBy(this.layout.delta,0,!0):t=this.views.last().section.next()):this.isPaginated&&"horizontal"===this.settings.axis&&"rtl"===e?(this.scrollLeft=this.container.scrollLeft,"default"===this.settings.rtlScrollType?this.container.scrollLeft>0?this.scrollBy(this.layout.delta,0,!0):t=this.views.last().section.next():this.container.scrollLeft+-1*this.layout.delta>-1*this.container.scrollWidth?this.scrollBy(this.layout.delta,0,!0):t=this.views.last().section.next()):this.isPaginated&&"vertical"===this.settings.axis?(this.scrollTop=this.container.scrollTop,this.container.scrollTop+this.container.offsetHeight<this.container.scrollHeight?this.scrollBy(0,this.layout.height,!0):t=this.views.last().section.next()):t=this.views.last().section.next(),t)){this.clear(),this.updateLayout();let e=!1;return"pre-paginated"===this.layout.name&&2===this.layout.divisor&&t.properties.includes("page-spread-right")&&(e=!0),this.append(t,e).then((function(){return this.handleNextPrePaginated(e,t,this.append)}).bind(this),t=>t).then((function(){this.isPaginated||"horizontal"!==this.settings.axis||"rtl"!==this.settings.direction||"default"!==this.settings.rtlScrollType||this.scrollTo(this.container.scrollWidth,0,!0),this.views.show()}).bind(this))}}prev(){var t;let e=this.settings.direction;if(this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis&&(!e||"ltr"===e)?(this.scrollLeft=this.container.scrollLeft,this.container.scrollLeft>0?this.scrollBy(-this.layout.delta,0,!0):t=this.views.first().section.prev()):this.isPaginated&&"horizontal"===this.settings.axis&&"rtl"===e?(this.scrollLeft=this.container.scrollLeft,"default"===this.settings.rtlScrollType?this.container.scrollLeft+this.container.offsetWidth<this.container.scrollWidth?this.scrollBy(-this.layout.delta,0,!0):t=this.views.first().section.prev():this.container.scrollLeft<0?this.scrollBy(-this.layout.delta,0,!0):t=this.views.first().section.prev()):this.isPaginated&&"vertical"===this.settings.axis?(this.scrollTop=this.container.scrollTop,this.container.scrollTop>0?this.scrollBy(0,-this.layout.height,!0):t=this.views.first().section.prev()):t=this.views.first().section.prev(),t)){this.clear(),this.updateLayout();let e=!1;return"pre-paginated"===this.layout.name&&2===this.layout.divisor&&"object"!=typeof t.prev()&&(e=!0),this.prepend(t,e).then((function(){var e;if("pre-paginated"===this.layout.name&&this.layout.divisor>1&&(e=t.prev()))return this.prepend(e)}).bind(this),t=>t).then((function(){this.isPaginated&&"horizontal"===this.settings.axis&&("rtl"===this.settings.direction?"default"===this.settings.rtlScrollType?this.scrollTo(0,0,!0):this.scrollTo(-1*this.container.scrollWidth+this.layout.delta,0,!0):this.scrollTo(this.container.scrollWidth-this.layout.delta,0,!0)),this.views.show()}).bind(this))}}current(){var t=this.visible();return t.length?t[t.length-1]:null}clear(){this.views&&(this.views.hide(),this.scrollTo(0,0,!0),this.views.clear())}currentLocation(){return this.updateLayout(),this.isPaginated&&"horizontal"===this.settings.axis?this.location=this.paginatedLocation():this.location=this.scrolledLocation(),this.location}scrolledLocation(){let t=this.visible(),e=this.container.getBoundingClientRect(),i=e.height<window.innerHeight?e.height:window.innerHeight,r=e.width<window.innerWidth?e.width:window.innerWidth,n="vertical"===this.settings.axis;this.settings.direction;let s=0;return this.settings.fullsize&&(s=n?window.scrollY:window.scrollX),t.map(t=>{let o,a,l,h,{index:c,href:u}=t.section,d=t.position(),f=t.width(),p=t.height();n?(a=(o=s+e.top-d.top+0)+i-0,h=this.layout.count(p,i).pages,l=i):(a=(o=s+e.left-d.left+0)+r-0,h=this.layout.count(f,r).pages,l=r);let g=Math.ceil(o/l),m=[],v=Math.ceil(a/l);
1if("rtl"===this.settings.direction&&!n){let t=g;g=h-v,v=h-t}m=[];for(var y=g;y<=v;y++){let t=y+1;m.push(t)}return{index:c,href:u,pages:m,totalPages:h,mapping:this.mapping.page(t.contents,t.section.cfiBase,o,a)}})}paginatedLocation(){let t=this.visible(),e=this.container.getBoundingClientRect(),i=0,r=0;return this.settings.fullsize&&(i=window.scrollX),t.map(t=>{let n,s,o,a,{index:l,href:h}=t.section,c=t.position(),u=t.width();"rtl"===this.settings.direction?(a=Math.min(Math.abs((n=e.right-i)-c.left),this.layout.width)-r,s=(o=c.width-(c.right-n)-r)-a):(n=e.left+i,a=Math.min(c.right-n,this.layout.width)-r,o=(s=n-c.left+r)+a),r+=a;let d=this.mapping.page(t.contents,t.section.cfiBase,s,o),f=this.layout.count(u).pages,p=Math.floor(s/this.layout.pageWidth),g=[],m=Math.floor(o/this.layout.pageWidth);if(p<0&&(p=0,m+=1),"rtl"===this.settings.direction){let t=p;p=f-m,m=f-t}for(var v=p+1;v<=m;v++){let t=v;g.push(t)}return{index:l,href:h,pages:g,totalPages:f,mapping:d}})}isVisible(t,e,i,r){var n=t.position(),s=r||this.bounds();return"horizontal"===this.settings.axis&&n.right>s.left-e&&n.left<s.right+i||"vertical"===this.settings.axis&&!!(n.bottom>s.top-e)&&!!(n.top<s.bottom+i)}visible(){for(var t,e=this.bounds(),i=this.views.displayed(),r=i.length,n=[],s=0;s<r;s++)t=i[s],!0===this.isVisible(t,0,0,e)&&n.push(t);return n}scrollBy(t,e,i){let r="rtl"===this.settings.direction?-1:1;i&&(this.ignore=!0),this.settings.fullsize?window.scrollBy(t*r,e*r):(t&&(this.container.scrollLeft+=t*r),e&&(this.container.scrollTop+=e)),this.scrolled=!0}scrollTo(t,e,i){i&&(this.ignore=!0),this.settings.fullsize?window.scrollTo(t,e):(this.container.scrollLeft=t,this.container.scrollTop=e),this.scrolled=!0}onScroll(){let t,e;this.settings.fullsize?(t=window.scrollY,e=window.scrollX):(t=this.container.scrollTop,e=this.container.scrollLeft),this.scrollTop=t,this.scrollLeft=e,this.ignore?this.ignore=!1:(this.emit(tw,{top:t,left:e}),clearTimeout(this.afterScrolled),this.afterScrolled=setTimeout((function(){this.emit(tx,{top:this.scrollTop,left:this.scrollLeft})}).bind(this),20))}bounds(){return this.stage.bounds()}applyLayout(t){this.layout=t,this.updateLayout(),this.views&&this.views.length>0&&"pre-paginated"===this.layout.name&&this.display(this.views.first().section)}updateLayout(){this.stage&&(this._stageSize=this.stage.size(),this.isPaginated?(this.layout.calculate(this._stageSize.width,this._stageSize.height,this.settings.gap),this.settings.offset=this.layout.delta/this.layout.divisor):this.layout.calculate(this._stageSize.width,this._stageSize.height),this.viewSettings.width=this.layout.width,this.viewSettings.height=this.layout.height,this.setLayout(this.layout))}setLayout(t){this.viewSettings.layout=t,this.mapping=new t5(t.props,this.settings.direction,this.settings.axis),this.views&&this.views.forEach(function(e){e&&e.setLayout(t)})}updateWritingMode(t){this.writingMode=t}updateAxis(t,e){(e||t!==this.settings.axis)&&(this.settings.axis=t,this.stage&&this.stage.axis(t),this.viewSettings.axis=t,this.mapping&&(this.mapping=new t5(this.layout.props,this.settings.direction,this.settings.axis)),this.layout&&("vertical"===t?this.layout.spread("none"):this.layout.spread(this.layout.settings.spread)))}updateFlow(t,e="auto"){let i="paginated"===t||"auto"===t;this.isPaginated=i,"scrolled-doc"===t||"scrolled-continuous"===t||"scrolled"===t?this.updateAxis("vertical"):this.updateAxis("horizontal"),this.viewSettings.flow=t,this.settings.overflow?this.overflow=this.settings.overflow:this.overflow=i?"hidden":e,this.stage&&this.stage.overflow(this.overflow),this.updateLayout()}getContents(){var t=[];return this.views&&this.views.forEach(function(e){let i=e&&e.contents;i&&t.push(i)}),t}direction(t="ltr"){this.settings.direction=t,this.stage&&this.stage.direction(t),this.viewSettings.direction=t,this.updateLayout()}isRendered(){return this.rendered}}s()(el.prototype);let eh=el,ec=function(t){return Math.pow(t,3)};class eu{constructor(t,e){this.settings=m({duration:80,minVelocity:.2,minDistance:10,easing:ec},e||{}),this.supportsTouch=this.supportsTouch(),this.supportsTouch&&this.setup(t)}setup(t){this.manager=t,this.layout=this.manager.layout,this.fullsize=this.manager.settings.fullsize,this.fullsize?(this.element=this.manager.stage.element,this.scroller=window,this.disableScroll()):(this.element=this.manager.stage.container,this.scroller=this.element,this.element.style.WebkitOverflowScrolling="touch"),this.manager.settings.offset=this.layout.width,this.manager.settings.afterScrolledTimeout=2*this.settings.duration,this.isVertical="vertical"===this.manager.settings.axis,this.manager.isPaginated&&!this.isVertical&&(this.touchCanceler=!1,this.resizeCanceler=!1,this.snapping=!1,this.scrollLeft,this.scrollTop,this.startTouchX=void 0,this.startTouchY=void 0,this.startTime=void 0,this.endTouchX=void 0,this.endTouchY=void 0,this.endTime=void 0,this.addListeners())}supportsTouch(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}disableScroll(){this.element.style.overflow="hidden"}enableScroll(){this.element.style.overflow=""}addListeners(){this._onResize=this.onResize.bind(this),window.addEventListener("resize",this._onResize),this._onScroll=this.onScroll.bind(this),this.scroller.addEventListener("scroll",this._onScroll),this._onTouchStart=this.onTouchStart.bind(this),this.scroller.addEventListener("touchstart",this._onTouchStart,{passive:!0}),this.on("touchstart",this._onTouchStart),this._onTouchMove=this.onTouchMove.bind(this),this.scroller.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.on("touchmove",this._onTouchMove),this._onTouchEnd=this.onTouchEnd.bind(this),this.scroller.addEventListener("touchend",this._onTouchEnd,{passive:!0}
1),this.on("touchend",this._onTouchEnd),this._afterDisplayed=this.afterDisplayed.bind(this),this.manager.on(tb,this._afterDisplayed)}removeListeners(){window.removeEventListener("resize",this._onResize),this._onResize=void 0,this.scroller.removeEventListener("scroll",this._onScroll),this._onScroll=void 0,this.scroller.removeEventListener("touchstart",this._onTouchStart,{passive:!0}),this.off("touchstart",this._onTouchStart),this._onTouchStart=void 0,this.scroller.removeEventListener("touchmove",this._onTouchMove,{passive:!0}),this.off("touchmove",this._onTouchMove),this._onTouchMove=void 0,this.scroller.removeEventListener("touchend",this._onTouchEnd,{passive:!0}),this.off("touchend",this._onTouchEnd),this._onTouchEnd=void 0,this.manager.off(tb,this._afterDisplayed),this._afterDisplayed=void 0}afterDisplayed(t){let e=t.contents;["touchstart","touchmove","touchend"].forEach(t=>{e.on(t,t=>this.triggerViewEvent(t,e))})}triggerViewEvent(t,e){this.emit(t.type,t,e)}onScroll(t){this.scrollLeft=this.fullsize?window.scrollX:this.scroller.scrollLeft,this.scrollTop=this.fullsize?window.scrollY:this.scroller.scrollTop}onResize(t){this.resizeCanceler=!0}onTouchStart(t){let{screenX:e,screenY:i}=t.touches[0];this.fullsize&&this.enableScroll(),this.touchCanceler=!0,this.startTouchX||(this.startTouchX=e,this.startTouchY=i,this.startTime=this.now()),this.endTouchX=e,this.endTouchY=i,this.endTime=this.now()}onTouchMove(t){let{screenX:e,screenY:i}=t.touches[0],r=Math.abs(i-this.endTouchY);this.touchCanceler=!0,!this.fullsize&&r<10&&(this.element.scrollLeft-=e-this.endTouchX),this.endTouchX=e,this.endTouchY=i,this.endTime=this.now()}onTouchEnd(t){this.fullsize&&this.disableScroll(),this.touchCanceler=!1;let e=this.wasSwiped();0!==e?this.snap(e):this.snap(),this.startTouchX=void 0,this.startTouchY=void 0,this.startTime=void 0,this.endTouchX=void 0,this.endTouchY=void 0,this.endTime=void 0}wasSwiped(){let t=this.layout.pageWidth*this.layout.divisor,e=this.endTouchX-this.startTouchX,i=Math.abs(e),r=e/(this.endTime-this.startTime),n=this.settings.minVelocity;return i<=this.settings.minDistance||i>=t?0:r>n?-1:r<-n?1:void 0}needsSnap(){return this.scrollLeft%(this.layout.pageWidth*this.layout.divisor)!=0}snap(t=0){let e=this.scrollLeft,i=this.layout.pageWidth*this.layout.divisor,r=Math.round(e/i)*i;return t&&(r+=t*i),this.smoothScrollTo(r)}smoothScrollTo(t){let e=new U,i=this.scrollLeft,r=this.now(),n=this.settings.duration,s=this.settings.easing;return this.snapping=!0,(function o(){let a=Math.min(1,(this.now()-r)/n);if(s(a),this.touchCanceler||this.resizeCanceler){this.resizeCanceler=!1,this.snapping=!1,e.resolve();return}a<1?(window.requestAnimationFrame(o.bind(this)),this.scrollTo(i+(t-i)*a,0)):(this.scrollTo(t,0),this.snapping=!1,e.resolve())}).call(this),e.promise}scrollTo(t=0,e=0){this.fullsize?window.scroll(t,e):(this.scroller.scrollLeft=t,this.scroller.scrollTop=e)}now(){return"now"in window.performance?performance.now():new Date().getTime()}destroy(){this.scroller&&(this.fullsize&&this.enableScroll(),this.removeListeners(),this.scroller=void 0)}}s()(eu.prototype);var ed=i(187),ef=i.n(ed);class ep extends eh{constructor(t){super(t),this.name="continuous",this.settings=m(this.settings||{},{infinite:!0,overflow:void 0,axis:void 0,writingMode:void 0,flow:"scrolled",offset:500,offsetDelta:250,width:void 0,height:void 0,snap:!1,afterScrolledTimeout:10,allowScriptedContent:!1,allowPopups:!1}),m(this.settings,t.settings||{}),"undefined"!=t.settings.gap&&0===t.settings.gap&&(this.settings.gap=t.settings.gap),this.viewSettings={ignoreClass:this.settings.ignoreClass,axis:this.settings.axis,flow:this.settings.flow,layout:this.layout,width:0,height:0,forceEvenPages:!1,allowScriptedContent:this.settings.allowScriptedContent,allowPopups:this.settings.allowPopups},this.scrollTop=0,this.scrollLeft=0}display(t,e){return eh.prototype.display.call(this,t,e).then((function(){return this.fill()}).bind(this))}fill(t){var e=t||new U;return this.q.enqueue(()=>this.check()).then(t=>{t?this.fill(e):e.resolve()}),e.promise}moveTo(t){var e=0,i=0;this.isPaginated?e=Math.floor(t.left/this.layout.delta)*this.layout.delta:(i=t.top,t.top),this.settings.offsetDelta,(e>0||i>0)&&this.scrollBy(e,i,!0)}
1afterResized(t){this.emit(tm,t.section)}removeShownListeners(t){t.onDisplayed=function(){}}add(t){var e=this.createView(t);return this.views.append(e),e.on(tN,t=>{e.expanded=!0}),e.on(tS,t=>{this.updateAxis(t)}),e.on(tT,t=>{this.updateWritingMode(t)}),e.onDisplayed=this.afterDisplayed.bind(this),e.onResize=this.afterResized.bind(this),e.display(this.request)}append(t){var e=this.createView(t);return e.on(tN,t=>{e.expanded=!0}),e.on(tS,t=>{this.updateAxis(t)}),e.on(tT,t=>{this.updateWritingMode(t)}),this.views.append(e),e.onDisplayed=this.afterDisplayed.bind(this),e}prepend(t){var e=this.createView(t);return e.on(tN,t=>{this.counter(t),e.expanded=!0}),e.on(tS,t=>{this.updateAxis(t)}),e.on(tT,t=>{this.updateWritingMode(t)}),this.views.prepend(e),e.onDisplayed=this.afterDisplayed.bind(this),e}counter(t){"vertical"===this.settings.axis?this.scrollBy(0,t.heightDelta,!0):this.scrollBy(t.widthDelta,0,!0)}update(t){for(var e,i=this.bounds(),r=this.views.all(),n=r.length,s=[],o=void 0!==t?t:this.settings.offset||0,a=new U,l=[],h=0;h<n;h++)if(e=r[h],!0===this.isVisible(e,o,o,i)){if(e.displayed)e.show();else{let t=e.display(this.request).then(function(t){t.show()},t=>{e.hide()});l.push(t)}s.push(e)}else this.q.enqueue(e.destroy.bind(e)),clearTimeout(this.trimTimeout),this.trimTimeout=setTimeout((function(){this.q.enqueue(this.trim.bind(this))}).bind(this),250);return l.length?Promise.all(l).catch(t=>{a.reject(t)}):(a.resolve(),a.promise)}check(t,e){var i=new U,r=[],n="horizontal"===this.settings.axis,s=this.settings.offset||0;t&&n&&(s=t),e&&!n&&(s=e);var o=this._bounds;let a=n?this.scrollLeft:this.scrollTop,l=n?Math.floor(o.width):o.height,h=n?this.container.scrollWidth:this.container.scrollHeight,c=this.writingMode&&0===this.writingMode.indexOf("vertical")?"vertical":"horizontal",u=this.settings.rtlScrollType,d="rtl"===this.settings.direction;this.settings.fullsize?(n&&d&&"negative"===u||!n&&d&&"default"===u)&&(a*=-1):(d&&"default"===u&&"horizontal"===c&&(a=h-l-a),d&&"negative"===u&&"horizontal"===c&&(a*=-1));let f=()=>{let t=this.views.first(),e=t&&t.section.prev();e&&r.push(this.prepend(e))},p=()=>{let t=this.views.last(),e=t&&t.section.next();e&&r.push(this.append(e))},g=a+l+s,m=a-s;g>=h&&p(),m<0&&f();let v=r.map(t=>t.display(this.request));return r.length?Promise.all(v).then(()=>this.check()).then(()=>this.update(s),t=>t):(this.q.enqueue((function(){this.update()}).bind(this)),i.resolve(!1),i.promise)}trim(){for(var t=new U,e=this.views.displayed(),i=e[0],r=e[e.length-1],n=this.views.indexOf(i),s=this.views.indexOf(r),o=this.views.slice(0,n),a=this.views.slice(s+1),l=0;l<o.length-1;l++)this.erase(o[l],o);for(var h=1;h<a.length;h++)this.erase(a[h]);return t.resolve(),t.promise}erase(t,e){this.settings.fullsize?(i=window.scrollY,r=window.scrollX):(i=this.container.scrollTop,r=this.container.scrollLeft);var i,r,n=t.bounds();this.views.remove(t),e&&("vertical"===this.settings.axis?this.scrollTo(0,i-n.height,!0):"rtl"===this.settings.direction?this.settings.fullsize?this.scrollTo(r+Math.floor(n.width),0,!0):this.scrollTo(r,0,!0):this.scrollTo(r-Math.floor(n.width),0,!0))}addEventListeners(t){window.addEventListener("unload",(function(t){this.ignore=!0,this.destroy()}).bind(this)),this.addScrollListeners(),this.isPaginated&&this.settings.snap&&(this.snapper=new eu(this,this.settings.snap&&"object"==typeof this.settings.snap&&this.settings.snap))}addScrollListeners(){var t;this.tick=a;let e="rtl"===this.settings.direction&&"default"===this.settings.rtlScrollType?-1:1;this.scrollDeltaVert=0,this.scrollDeltaHorz=0,this.settings.fullsize?(t=window,this.scrollTop=window.scrollY*e,this.scrollLeft=window.scrollX*e):(t=this.container,this.scrollTop=this.container.scrollTop,this.scrollLeft=this.container.scrollLeft),this._onScroll=this.onScroll.bind(this),t.addEventListener("scroll",this._onScroll),this._scrolled=ef()(this.scrolled.bind(this),30),this.didScroll=!1}removeEventListeners(){(this.settings.fullsize?window:this.container).removeEventListener("scroll",this._onScroll),this._onScroll=void 0}onScroll(){let t,e,i="rtl"===this.settings.direction&&"default"===this.settings.rtlScrollType?-1:1;this.settings.fullsize?(t=window.scrollY*i,e=window.scrollX*i):(t=this.container.scrollTop,e=this.container.scrollLeft),this.scrollTop=t,this.scrollLeft=e,this.ignore?this.ignore=!1:this._scrolled(),this.scrollDeltaVert+=Math.abs(t-this.prevScrollTop),this.scrollDeltaHorz+=Math.abs(e-this.prevScrollLeft),this.prevScrollTop=t,this.prevScrollLeft=e,clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout((function(){this.scrollDeltaVert=0,this.scrollDeltaHorz=0}).bind(this),150),clearTimeout(this.afterScrolled),this.didScroll=!1}scrolled(){this.q.enqueue((function(){return this.check()}
1).bind(this)),this.emit(tw,{top:this.scrollTop,left:this.scrollLeft}),clearTimeout(this.afterScrolled),this.afterScrolled=setTimeout((function(){this.snapper&&this.snapper.supportsTouch&&this.snapper.needsSnap()||this.emit(tx,{top:this.scrollTop,left:this.scrollLeft})}).bind(this),this.settings.afterScrolledTimeout)}next(){let t="pre-paginated"===this.layout.props.name&&this.layout.props.spread?2*this.layout.props.delta:this.layout.props.delta;this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis?this.scrollBy(t,0,!0):this.scrollBy(0,this.layout.height,!0),this.q.enqueue((function(){return this.check()}).bind(this)))}prev(){let t="pre-paginated"===this.layout.props.name&&this.layout.props.spread?2*this.layout.props.delta:this.layout.props.delta;this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis?this.scrollBy(-t,0,!0):this.scrollBy(0,-this.layout.height,!0),this.q.enqueue((function(){return this.check()}).bind(this)))}updateFlow(t){this.rendered&&this.snapper&&(this.snapper.destroy(),this.snapper=void 0),super.updateFlow(t,"scroll"),this.rendered&&this.isPaginated&&this.settings.snap&&(this.snapper=new eu(this,this.settings.snap&&"object"==typeof this.settings.snap&&this.settings.snap))}destroy(){super.destroy(),this.snapper&&this.snapper.destroy()}}class eg{constructor(t,e){this.settings=m(this.settings||{},{width:null,height:null,ignoreClass:"",manager:"default",view:"iframe",flow:null,layout:null,spread:null,minSpreadWidth:800,stylesheet:null,resizeOnOrientationChange:!0,script:null,snap:!1,defaultDirection:"ltr",allowScriptedContent:!1,allowPopups:!1}),m(this.settings,e),"object"==typeof this.settings.manager&&(this.manager=this.settings.manager),this.book=t,this.hooks={},this.hooks.display=new Q(this),this.hooks.serialize=new Q(this),this.hooks.content=new Q(this),this.hooks.unloaded=new Q(this),this.hooks.layout=new Q(this),this.hooks.render=new Q(this),this.hooks.show=new Q(this),this.hooks.content.register(this.handleLinks.bind(this)),this.hooks.content.register(this.passEvents.bind(this)),this.hooks.content.register(this.adjustImages.bind(this)),this.book.spine.hooks.content.register(this.injectIdentifier.bind(this)),this.settings.stylesheet&&this.book.spine.hooks.content.register(this.injectStylesheet.bind(this)),this.settings.script&&this.book.spine.hooks.content.register(this.injectScript.bind(this)),this.themes=new t6(this),this.annotations=new et(this),this.epubcfi=new Z,this.q=new ta(this),this.location=void 0,this.q.enqueue(this.book.opened),this.starting=new U,this.started=this.starting.promise,this.q.enqueue(this.start)}setManager(t){this.manager=t}requireManager(t){return"string"==typeof t&&"default"===t?eh:"string"==typeof t&&"continuous"===t?ep:t}requireView(t){return"string"==typeof t&&"iframe"===t?er:t}start(){switch(!this.settings.layout&&("pre-paginated"===this.book.package.metadata.layout||"true"===this.book.displayOptions.fixedLayout)&&(this.settings.layout="pre-paginated"),this.book.package.metadata.spread){case"none":this.settings.spread="none";break;case"both":this.settings.spread=!0}this.manager||(this.ViewManager=this.requireManager(this.settings.manager),this.View=this.requireView(this.settings.view),this.manager=new this.ViewManager({view:this.View,queue:this.q,request:this.book.load.bind(this.book),settings:this.settings})),this.direction(this.book.package.metadata.direction||this.settings.defaultDirection),this.settings.globalLayoutProperties=this.determineLayoutProperties(this.book.package.metadata),this.flow(this.settings.globalLayoutProperties.flow),this.layout(this.settings.globalLayoutProperties),this.manager.on(tb,this.afterDisplayed.bind(this)),this.manager.on(tE,this.afterRemoved.bind(this)),this.manager.on(tv,this.onResized.bind(this)),this.manager.on(ty,this.onOrientationChange.bind(this)),this.manager.on(tx,this.reportLocation.bind(this)),this.emit(tO),this.starting.resolve()}attachTo(t){return this.q.enqueue((function(){this.manager.render(t,{width:this.settings.width,height:this.settings.height}),this.emit(tI)}).bind(this))}display(t){return this.displaying&&this.displaying.resolve(),this.q.enqueue(this._display,t)}_display(t){if(this.book){this.epubcfi.isCfiString(t);var e,i=new U,r=i.promise;return(this.displaying=i,this.book.locations.length()&&f(t)&&(t=this.book.locations.cfiFromPercentage(parseFloat(t))),e=this.book.spine.get(t))?this.manager.display(e,t).then(()=>
1{i.resolve(e),this.displaying=void 0,this.emit(tP,e),this.reportLocation()},t=>{this.emit(tD,t)}):i.reject(Error("No Section Found")),r}}afterDisplayed(t){t.on(tk,(e,i)=>this.triggerMarkEvent(e,i,t.contents)),this.hooks.render.trigger(t,this).then(()=>{t.contents?this.hooks.content.trigger(t.contents,this).then(()=>{this.emit(tM,t.section,t)}):this.emit(tM,t.section,t)})}afterRemoved(t){this.hooks.unloaded.trigger(t,this).then(()=>{this.emit(tB,t.section,t)})}onResized(t,e){this.emit(tq,{width:t.width,height:t.height},e),this.location&&this.location.start&&this.display(e||this.location.start.cfi)}onOrientationChange(t){this.emit(tj,t)}moveTo(t){this.manager.moveTo(t)}resize(t,e,i){t&&(this.settings.width=t),e&&(this.settings.height=e),this.manager.resize(t,e,i)}clear(){this.manager.clear()}next(){return this.q.enqueue(this.manager.next.bind(this.manager)).then(this.reportLocation.bind(this))}prev(){return this.q.enqueue(this.manager.prev.bind(this.manager)).then(this.reportLocation.bind(this))}determineLayoutProperties(t){var e=this.settings.layout||t.layout||"reflowable",i=this.settings.spread||t.spread||"auto",r=this.settings.orientation||t.orientation||"auto",n=this.settings.flow||t.flow||"auto",s=t.viewport||"",o=this.settings.minSpreadWidth||t.minSpreadWidth||800,a=this.settings.direction||t.direction||"ltr";return(0===this.settings.width||this.settings.width>0)&&(0===this.settings.height||this.settings.height),{layout:e,spread:i,orientation:r,flow:n,viewport:s,minSpreadWidth:o,direction:a}}flow(t){var e=t;("scrolled"===t||"scrolled-doc"===t||"scrolled-continuous"===t)&&(e="scrolled"),("auto"===t||"paginated"===t)&&(e="paginated"),this.settings.flow=t,this._layout&&this._layout.flow(e),this.manager&&this._layout&&this.manager.applyLayout(this._layout),this.manager&&this.manager.updateFlow(e),this.manager&&this.manager.isRendered()&&this.location&&(this.manager.clear(),this.display(this.location.start.cfi))}layout(t){return t&&(this._layout=new t3(t),this._layout.spread(t.spread,this.settings.minSpreadWidth),this._layout.on(tH,(t,e)=>{this.emit(tW,t,e)})),this.manager&&this._layout&&this.manager.applyLayout(this._layout),this._layout}spread(t,e){this.settings.spread=t,e&&(this.settings.minSpreadWidth=e),this._layout&&this._layout.spread(t,e),this.manager&&this.manager.isRendered()&&this.manager.updateLayout()}direction(t){this.settings.direction=t||"ltr",this.manager&&this.manager.direction(this.settings.direction),this.manager&&this.manager.isRendered()&&this.location&&(this.manager.clear(),this.display(this.location.start.cfi))}reportLocation(){return this.q.enqueue((function(){requestAnimationFrame((function(){var t=this.manager.currentLocation();if(t&&t.then&&"function"==typeof t.then)t.then((function(t){let e=this.located(t);e&&e.start&&e.end&&(this.location=e,this.emit(tz,{index:this.location.start.index,href:this.location.start.href,start:this.location.start.cfi,end:this.location.end.cfi,percentage:this.location.start.percentage}),this.emit(tU,this.location))}).bind(this));else if(t){let e=this.located(t);if(!e||!e.start||!e.end)return;this.location=e,this.emit(tz,{index:this.location.start.index,href:this.location.start.href,start:this.location.start.cfi,end:this.location.end.cfi,percentage:this.location.start.percentage}),this.emit(tU,this.location)}}).bind(this))}).bind(this))}currentLocation(){var t=this.manager.currentLocation();if(t&&t.then&&"function"==typeof t.then)t.then((function(t){return this.located(t)}).bind(this));else if(t)return this.located(t)}located(t){if(!t.length)return{};let e=t[0],i=t[t.length-1],r={start:{index:e.index,href:e.href,cfi:e.mapping.start,displayed:{page:e.pages[0]||1,total:e.totalPages}},end:{index:i.index,href:i.href,cfi:i.mapping.end,displayed:{page:i.pages[i.pages.length-1]||1,total:i.totalPages}}},n=this.book.locations.locationFromCfi(e.mapping.start),s=this.book.locations.locationFromCfi(i.mapping.end);null!=n&&(r.start.location=n,r.start.percentage=this.book.locations.percentageFromLocation(n)),null!=s&&(r.end.location=s,r.end.percentage=this.book.locations.percentageFromLocation(s));let o=this.book.pageList.pageFromCfi(e.mapping.start),a=this.book.pageList.pageFromCfi(i.mapping.end);
1return -1!=o&&(r.start.page=o),-1!=a&&(r.end.page=a),i.index===this.book.spine.last().index&&r.end.displayed.page>=r.end.displayed.total&&(r.atEnd=!0),e.index===this.book.spine.first().index&&1===r.start.displayed.page&&(r.atStart=!0),r}destroy(){this.manager&&this.manager.destroy(),this.book=void 0}passEvents(t){tl.forEach(e=>{t.on(e,e=>this.triggerViewEvent(e,t))}),t.on(td,e=>this.triggerSelectedEvent(e,t))}triggerViewEvent(t,e){this.emit(t.type,t,e)}triggerSelectedEvent(t,e){this.emit(tV,t,e)}triggerMarkEvent(t,e,i){this.emit(tF,t,e,i)}getRange(t,e){var i=new Z(t),r=this.manager.visible().filter(function(t){if(i.spinePos===t.index)return!0});if(r.length)return r[0].contents.range(i,e)}adjustImages(t){if("pre-paginated"===this._layout.name)return new Promise(function(t){t()});let e=t.window.getComputedStyle(t.content,null),i=(t.content.offsetHeight-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)))*.95,r=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight);return t.addStylesheetRules({img:{"max-width":(this._layout.columnWidth?this._layout.columnWidth-r+"px":"100%")+"!important","max-height":i+"px!important","object-fit":"contain","page-break-inside":"avoid","break-inside":"avoid","box-sizing":"border-box"},svg:{"max-width":(this._layout.columnWidth?this._layout.columnWidth-r+"px":"100%")+"!important","max-height":i+"px!important","page-break-inside":"avoid","break-inside":"avoid"}}),new Promise(function(t,e){setTimeout(function(){t()},1)})}getContents(){return this.manager?this.manager.getContents():[]}views(){return(this.manager?this.manager.views:void 0)||[]}handleLinks(t){t&&t.on(tp,t=>{let e=this.book.path.relative(t);this.display(e)})}injectStylesheet(t,e){let i=t.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",this.settings.stylesheet),t.getElementsByTagName("head")[0].appendChild(i)}injectScript(t,e){let i=t.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",this.settings.script),i.textContent=" ",t.getElementsByTagName("head")[0].appendChild(i)}injectIdentifier(t,e){let i=this.book.packaging.metadata.identifier,r=t.createElement("meta");r.setAttribute("name","dc.relation.ispartof"),i&&r.setAttribute("content",i),t.getElementsByTagName("head")[0].appendChild(r)}}s()(eg.prototype);var em=i(8880),ev=i.n(em);class ey{constructor(){this.zip=void 0,this.urlCache={},this.checkRequirements()}checkRequirements(){try{this.zip=new(ev())}catch(t){throw Error("JSZip lib not loaded")}}open(t,e){return this.zip.loadAsync(t,{base64:e})}openUrl(t,e){return tn(t,"binary").then((function(t){return this.zip.loadAsync(t,{base64:e})}).bind(this))}request(t,e){var i,r=new U,n=new K(t);return e||(e=n.extension),(i="blob"==e?this.getBlob(t):this.getText(t))?i.then((function(t){let i=this.handleResponse(t,e);r.resolve(i)}).bind(this)):r.reject({message:"File not found in the epub: "+t,stack:Error().stack}),r.promise}handleResponse(t,e){return"json"==e?JSON.parse(t):N(e)?I(t,"text/xml"):"xhtml"==e?I(t,"application/xhtml+xml"):"html"==e||"htm"==e?I(t,"text/html"):t}getBlob(t,e){var i=window.decodeURIComponent(t.substr(1)),r=this.zip.file(i);if(r)return e=e||t0(r.name),r.async("uint8array").then(function(t){return new Blob([t],{type:e})})}getText(t,e){var i=window.decodeURIComponent(t.substr(1)),r=this.zip.file(i);if(r)return r.async("string").then(function(t){return t})}getBase64(t,e){var i=window.decodeURIComponent(t.substr(1)),r=this.zip.file(i);if(r)return e=e||t0(r.name),r.async("base64").then(function(t){return"data:"+e+";base64,"+t})}createUrl(t,e){var i,r,n=new U,s=window.URL||window.webkitURL||window.mozURL,o=e&&e.base64;return t in this.urlCache?n.resolve(this.urlCache[t]):(o?(r=this.getBase64(t))&&r.then((function(e){this.urlCache[t]=e,n.resolve(e)}).bind(this)):(r=this.getBlob(t))&&r.then((function(e){i=s.createObjectURL(e),this.urlCache[t]=i,n.resolve(i)}).bind(this)),r||n.reject({message:"File not found in the epub: "+t,stack:Error().stack})),n.promise}revokeUrl(t){var e=window.URL||window.webkitURL||window.mozURL,i=this.urlCache[t];i&&e.revokeObjectURL(i)}destroy(){var t=window.URL||window.webkitURL||window.mozURL;for(let e in this.urlCache)t.revokeObjectURL(e);this.zip=void 0,this.urlCache={}}}var eb=i(946),ew=i.n(eb);class ex{constructor(t,e,i){this.urlCache={},this.storage=void 0,this.name=t,this.requester=e||tn,this.resolver=i,this.online=!0,this.checkRequirements(),this.addListeners()}checkRequirements(){try{let t;void 0===ew()&&(t=ew()),this.storage=t.createInstance({name:this.name})}catch(t){throw Error("localForage lib not loaded")}}addListeners(){this._status=this.status.bind(this),window.addEventListener("online",this._status),window.addEventListener("offline",this._status)}removeListeners(){window.removeEventListener("online",this._status),window.removeEventListener("offline",this._status),this._status=void 0}status(t){let e=navigator.onLine;
1this.online=e,e?this.emit("online",this):this.emit("offline",this)}add(t,e){return Promise.all(t.resources.map(t=>{let{href:i}=t,r=this.resolver(i),n=window.encodeURIComponent(r);return this.storage.getItem(n).then(t=>!t||e?this.requester(r,"binary").then(t=>this.storage.setItem(n,t)):t)}))}put(t,e,i){let r=window.encodeURIComponent(t);return this.storage.getItem(r).then(n=>n||this.requester(t,"binary",e,i).then(t=>this.storage.setItem(r,t)))}request(t,e,i,r){return this.online?this.requester(t,e,i,r).then(e=>(this.put(t),e)):this.retrieve(t,e)}retrieve(t,e){new U;var i=new K(t);return e||(e=i.extension),("blob"==e?this.getBlob(t):this.getText(t)).then(i=>{var r,n=new U;return i?(r=this.handleResponse(i,e),n.resolve(r)):n.reject({message:"File not found in storage: "+t,stack:Error().stack}),n.promise})}handleResponse(t,e){return"json"==e?JSON.parse(t):N(e)?I(t,"text/xml"):"xhtml"==e?I(t,"application/xhtml+xml"):"html"==e||"htm"==e?I(t,"text/html"):t}getBlob(t,e){let i=window.encodeURIComponent(t);return this.storage.getItem(i).then(function(i){if(i)return new Blob([i],{type:e=e||t0(t)})})}getText(t,e){let i=window.encodeURIComponent(t);return e=e||t0(t),this.storage.getItem(i).then(function(t){var i,r=new U,n=new FileReader;if(t)return i=new Blob([t],{type:e}),n.addEventListener("loadend",()=>{r.resolve(n.result)}),n.readAsText(i,e),r.promise})}getBase64(t,e){let i=window.encodeURIComponent(t);return e=e||t0(t),this.storage.getItem(i).then(t=>{var i,r=new U,n=new FileReader;if(t)return i=new Blob([t],{type:e}),n.addEventListener("loadend",()=>{r.resolve(n.result)}),n.readAsDataURL(i,e),r.promise})}createUrl(t,e){var i,r,n=new U,s=window.URL||window.webkitURL||window.mozURL,o=e&&e.base64;return t in this.urlCache?n.resolve(this.urlCache[t]):(o?(r=this.getBase64(t))&&r.then((function(e){this.urlCache[t]=e,n.resolve(e)}).bind(this)):(r=this.getBlob(t))&&r.then((function(e){i=s.createObjectURL(e),this.urlCache[t]=i,n.resolve(i)}).bind(this)),r||n.reject({message:"File not found in storage: "+t,stack:Error().stack})),n.promise}revokeUrl(t){var e=window.URL||window.webkitURL||window.mozURL,i=this.urlCache[t];i&&e.revokeObjectURL(i)}destroy(){var t=window.URL||window.webkitURL||window.mozURL;for(let e in this.urlCache)t.revokeObjectURL(e);this.urlCache={},this.removeListeners()}}s()(ex.prototype);class eE{constructor(t){this.interactive="",this.fixedLayout="",this.openToSpread="",this.orientationLock="",t&&this.parse(t)}parse(t){if(!t)return this;let e=P(t,"display_options");return e&&D(e,"option").forEach(t=>{let e="";switch(t.childNodes.length&&(e=t.childNodes[0].nodeValue),t.attributes.name.value){case"interactive":this.interactive=e;break;case"fixed-layout":this.fixedLayout=e;break;case"open-to-spread":this.openToSpread=e;break;case"orientation-lock":this.orientationLock=e}}),this}destroy(){this.interactive=void 0,this.fixedLayout=void 0,this.openToSpread=void 0,this.orientationLock=void 0}}let eS="META-INF/container.xml",eT="binary",eC="base64",e_="epub",eN="json";class eA{constructor(t,e){void 0===e&&"string"!=typeof t&&t instanceof Blob==!1&&t instanceof ArrayBuffer==!1&&(e=t,t=void 0),this.settings=m(this.settings||{},{requestMethod:void 0,requestCredentials:void 0,requestHeaders:void 0,encoding:void 0,replacements:void 0,canonical:void 0,openAs:void 0,store:void 0}),m(this.settings,e),this.opening=new U,this.opened=this.opening.promise,this.isOpen=!1,this.loading={manifest:new U,spine:new U,metadata:new U,cover:new U,navigation:new U,pageList:new U,resources:new U,displayOptions:new U},this.loaded={manifest:this.loading.manifest.promise,spine:this.loading.spine.promise,metadata:this.loading.metadata.promise,cover:this.loading.cover.promise,navigation:this.loading.navigation.promise,pageList:this.loading.pageList.promise,resources:this.loading.resources.promise,displayOptions:this.loading.displayOptions.promise},this.ready=Promise.all([this.loaded.manifest,this.loaded.spine,this.loaded.metadata,this.loaded.cover,this.loaded.navigation,this.loaded.resources,this.loaded.displayOptions]),this.isRendered=!1,this.request=this.settings.requestMethod||tn,this.spine=new to,this.locations=new t$(this.spine,this.load.bind(this)),this.navigation=void 0,this.pageList=void 0,this.url=void 0,this.path=void 0,this.archived=!1,this.archive=void 0,this.storage=void 0,this.resources=void 0,this.rendition=void 0,this.container=void 0,this.packaging=void 0,this.displayOptions=void 0,this.settings.store&&this.store(this.settings.store),t&&this.open(t,this.settings.openAs).catch(e=>{var i=Error("Cannot load book at "+t);
1this.emit(th,i)})}open(t,e){var i,r=e||this.determineType(t);return r===eT?(this.archived=!0,this.url=new J("/",""),i=this.openEpub(t)):r===eC?(this.archived=!0,this.url=new J("/",""),i=this.openEpub(t,r)):r===e_?(this.archived=!0,this.url=new J("/",""),i=this.request(t,"binary",this.settings.requestCredentials,this.settings.requestHeaders).then(this.openEpub.bind(this))):"opf"==r?(this.url=new J(t),i=this.openPackaging(this.url.Path.toString())):r==eN?(this.url=new J(t),i=this.openManifest(this.url.Path.toString())):(this.url=new J(t),i=this.openContainer(eS).then(this.openPackaging.bind(this))),i}openEpub(t,e){return this.unarchive(t,e||this.settings.encoding).then(()=>this.openContainer(eS)).then(t=>this.openPackaging(t))}openContainer(t){return this.load(t).then(t=>(this.container=new tY(t),this.resolve(this.container.packagePath)))}openPackaging(t){return this.path=new K(t),this.load(t).then(t=>(this.packaging=new tK(t),this.unpack(this.packaging)))}openManifest(t){return this.path=new K(t),this.load(t).then(t=>(this.packaging=new tK,this.packaging.load(t),this.unpack(this.packaging)))}load(t){var e=this.resolve(t);return this.archived?this.archive.request(e):this.request(e,null,this.settings.requestCredentials,this.settings.requestHeaders)}resolve(t,e){if(t){var i=t;return t.indexOf("://")>-1?t:(this.path&&(i=this.path.resolve(t)),!1!=e&&this.url&&(i=this.url.resolve(i)),i)}}canonical(t){return t?this.settings.canonical?this.settings.canonical(t):this.resolve(t,!0):""}determineType(t){var e;return"base64"===this.settings.encoding?eC:"string"!=typeof t?eT:((e=new J(t).path().extension)&&(e=e.replace(/\?.*$/,"")),e)?"epub"===e?e_:"opf"===e?"opf":"json"===e?eN:void 0:"directory"}unpack(t){this.package=t,""===this.packaging.metadata.layout?this.load(this.url.resolve("META-INF/com.apple.ibooks.display-options.xml")).then(t=>{this.displayOptions=new eE(t),this.loading.displayOptions.resolve(this.displayOptions)}).catch(t=>{this.displayOptions=new eE,this.loading.displayOptions.resolve(this.displayOptions)}):(this.displayOptions=new eE,this.loading.displayOptions.resolve(this.displayOptions)),this.spine.unpack(this.packaging,this.resolve.bind(this),this.canonical.bind(this)),this.resources=new t1(this.packaging.manifest,{archive:this.archive,resolver:this.resolve.bind(this),request:this.request.bind(this),replacements:this.settings.replacements||(this.archived?"blobUrl":"base64")}),this.loadNavigation(this.packaging).then(()=>{this.loading.navigation.resolve(this.navigation)}),this.packaging.coverPath&&(this.cover=this.resolve(this.packaging.coverPath)),this.loading.manifest.resolve(this.packaging.manifest),this.loading.metadata.resolve(this.packaging.metadata),this.loading.spine.resolve(this.spine),this.loading.cover.resolve(this.cover),this.loading.resources.resolve(this.resources),this.loading.pageList.resolve(this.pageList),this.isOpen=!0,this.archived||this.settings.replacements&&"none"!=this.settings.replacements?this.replacements().then(()=>{this.loaded.displayOptions.then(()=>{this.opening.resolve(this)})}).catch(t=>{console.error(t)}):this.loaded.displayOptions.then(()=>{this.opening.resolve(this)})}loadNavigation(t){let e=t.navPath||t.ncxPath,i=t.toc;return i?new Promise((e,r)=>{this.navigation=new tJ(i),t.pageList&&(this.pageList=new t2(t.pageList)),e(this.navigation)}):e?this.load(e,"xml").then(t=>(this.navigation=new tJ(t),this.pageList=new t2(t),this.navigation)):new Promise((t,e)=>{this.navigation=new tJ,this.pageList=new t2,t(this.navigation)})}section(t){return this.spine.get(t)}renderTo(t,e){return this.rendition=new eg(this,e),this.rendition.attachTo(t),this.rendition}setRequestCredentials(t){this.settings.requestCredentials=t}setRequestHeaders(t){this.settings.requestHeaders=t}unarchive(t,e){return this.archive=new ey,this.archive.open(t,e)}store(t){let e=this.settings.replacements&&"none"!==this.settings.replacements,i=this.url,r=this.settings.requestMethod||tn.bind(this);return this.storage=new ex(t,r,this.resolve.bind(this)),this.request=this.storage.request.bind(this.storage),this.opened.then(()=>{this.archived&&(this.storage.requester=this.archive.request.bind(this.archive));let t=(t,e)=>{e.output=this.resources.substitute(t,e.url)};this.resources.settings.replacements=e||"blobUrl",this.resources.replacements().then(()=>this.resources.replaceCss()),this.storage.on("offline",()=>{this.url=new J("/",""),this.spine.hooks.serialize.register(t)}),this.storage.on("online",()=>{this.url=i,this.spine.hooks.serialize.deregister(t)})}),this.storage}
1coverUrl(){return this.loaded.cover.then(()=>this.cover?this.archived?this.archive.createUrl(this.cover):this.cover:null)}replacements(){return this.spine.hooks.serialize.register((t,e)=>{e.output=this.resources.substitute(t,e.url)}),this.resources.replacements().then(()=>this.resources.replaceCss())}getRange(t){var e=new Z(t),i=this.spine.get(e.spinePos),r=this.load.bind(this);return i?i.load(r).then(function(t){return e.toRange(i.document)}):new Promise((t,e)=>{e("CFI could not be found")})}key(t){var e=t||this.packaging.metadata.identifier||this.url.filename;return`epubjs:0.3:${e}`}destroy(){this.opened=void 0,this.loading=void 0,this.loaded=void 0,this.ready=void 0,this.isOpen=!1,this.isRendered=!1,this.spine&&this.spine.destroy(),this.locations&&this.locations.destroy(),this.pageList&&this.pageList.destroy(),this.archive&&this.archive.destroy(),this.resources&&this.resources.destroy(),this.container&&this.container.destroy(),this.packaging&&this.packaging.destroy(),this.rendition&&this.rendition.destroy(),this.displayOptions&&this.displayOptions.destroy(),this.spine=void 0,this.locations=void 0,this.pageList=void 0,this.archive=void 0,this.resources=void 0,this.container=void 0,this.packaging=void 0,this.rendition=void 0,this.navigation=void 0,this.url=void 0,this.path=void 0,this.archived=!1}}function eL(t,e){return new eA(t,e)}s()(eA.prototype),eL.VERSION="0.3",void 0!==i.g&&(i.g.EPUBJS_VERSION="0.3"),eL.Book=eA,eL.Rendition=eg,eL.Contents=t9,eL.CFI=Z,eL.utils=r},3612:(t,e,i)=>{"use strict";e.z2=e.f4=e.Zv=void 0;var r=function t(e,i,r){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var s=Object.getPrototypeOf(e);if(null===s)return;return t(s,i,r)}if("value"in n)return n.value;var o=n.get;if(void 0!==o)return o.call(r)},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=a(i(2700)),o=a(i(1391));function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}function h(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}e.Zv=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;c(this,t),this.target=e,this.element=s.default.createElement("svg"),this.marks=[],this.element.style.position="absolute",this.element.setAttribute("pointer-events","none"),o.default.proxyMouse(this.target,this.marks),this.container=i,this.container.appendChild(this.element),this.render()}return n(t,[{key:"addMark",value:function(t){var e=s.default.createElement("g");return this.element.appendChild(e),t.bind(e,this.container),this.marks.push(t),t.render(),t}},{key:"removeMark",value:function(t){var e=this.marks.indexOf(t);if(-1!==e){var i=t.unbind();this.element.removeChild(i),this.marks.splice(e,1)}}},{key:"render",value:function(){o=this.element,a=(r=this.target,n=this.container.getBoundingClientRect(),{top:(s=r.getBoundingClientRect()).top-n.top,left:s.left-n.left,height:r.scrollHeight,width:r.scrollWidth}),o.style.setProperty("top",a.top+"px","important"),o.style.setProperty("left",a.left+"px","important"),o.style.setProperty("height",a.height+"px","important"),o.style.setProperty("width",a.width+"px","important");var t=!0,e=!1,i=void 0;try{for(var r,n,s,o,a,l,h=this.marks[Symbol.iterator]();!(t=(l=h.next()).done);t=!0)l.value.render()}catch(t){e=!0,i=t}finally{try{!t&&h.return&&h.return()}finally{if(e)throw i}}}}]),t}();var u=e.f4=function(t){function e(t,i,r,n){c(this,e);var s=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return s.range=t,s.className=i,s.data=r||{},s.attributes=n||{},s}return h(e,t),n(e,[{key:"bind",value:function(t,i){for(var n in r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"bind",this).call(this,t,i),this.data)this.data.hasOwnProperty(n)&&(this.element.dataset[n]=this.data[n]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&this.element.setAttribute(n,this.attributes[n]);this.className&&this.element.classList.add(this.className)}},{key:"render",value:function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(var t=this.element.ownerDocument.createDocumentFragment(),e=this.filteredRanges(),i=this.element.getBoundingClientRect(),r=this.container.getBoundingClientRect(),n=0,o=e.length;n<o;n++){var a=e[n],l=s.default.createElement("rect");l.setAttribute("x",a.left-i.left+r.left),l.setAttribute("y",a.top-i.top+r.top),l.setAttribute("height",a.height),l.setAttribute("width",a.width),t.appendChild(l)}this.element.appendChild(t)}}]),e}(function(){function t(){c(this,t),this.element=null}return n(t,[{key:"bind",value:function(t,e){this.element=t,this.container=e}},{key:"unbind",value:function(){var t=this.element;return this.element=null,t}},{key:"render",value:function(){}},{key:"dispatchEvent",value:function(t){this.element&&this.element.dispatchEvent(t)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"getClientRects",value:function(){for(var t=[],e=this.element.firstChild;e;)t.push(e.getBoundingClientRect()),e=e.nextSibling;return t}},{key:"filteredRanges",value:function(){var t=Array.from(this.range.getClientRects());return t.filter(function(e){for(var i,r,n=0;n<t.length&&t[n]!==e;n++){if(i=t[n],(r=e).right<=i.right&&r.left>=i.left&&r.top>=i.top&&r.bottom<=i.bottom)return!1}return!0})}}]),t}());e.z2=function(t){function e(t,i,r,n){return c(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i,r,n))}return h(e,t),n(e,[{key:"render",value:function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(var t=this.element.ownerDocument.createDocumentFragment(),e=this.filteredRanges(),i=this.element.getBoundingClientRect(),r=this.container.getBoundingClientRect(),n=0,o=e.length;n<o;n++){var a=e[n],l=s.default.createElement("rect");l.setAttribute("x",a.left-i.left+r.left),l.setAttribute("y",a.top-i.top+r.top),l.setAttribute("height",a.height),l.setAttribute("width",a.width),l.setAttribute("fill","none");var h=s.default.createElement("line");h.setAttribute("x1",a.left-i.left+r.left),h.setAttribute("x2",a.left-i.left+r.left+a.width),h.setAttribute("y1",a.top-i.top+r.top+a.height-1),h.setAttribute("y2",a.top-i.top+r.top+a.height-1),h.setAttribute("stroke-width",1),h.setAttribute("stroke","black"),h.setAttribute("stroke-linecap","square"),t.appendChild(l),t.appendChild(h)}this.element.appendChild(t)}}]),e}(u)},3794:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>s});
1var r=function(t,e,i){if(i||2==arguments.length)for(var r,n=0,s=e.length;n<s;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},n=r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r(r([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function s(t,e){var i={};return n.forEach(function(r){var n=t[r];n&&(e?i[r]=function(t){return n(t,e(r))}:i[r]=n)}),i}},3873:(t,e,i)=>{t.exports=i(8085).Symbol},3949:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(5155);function n({children:t,type:e}){return(0,r.jsx)("div",{className:`react-pdf__message react-pdf__message--${e}`,children:t})}},3989:(t,e,i)=>{"use strict";var r=i(6).freeze;e.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=r({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"Ð",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"â¡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"\xc5",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"\xa6",Bscr:"â¬",bscr:"\uD835\uDCB7",bsemi:"â",bsim:"â½",b
1sime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"â",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"\xae",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"\uD835\uDD54",coprod:"â",Coproduct:"â",COPY:"\xa9",copy:"\xa9",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"\xa4",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"\xb0",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"\xb4",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"\xa8",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"\xf7",divide:"\xf7",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"\xa8",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"\xc9",eacute:"\xe9",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"\xca",ecirc:"\xea",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"âª",Egrave:"\xc8",egrave:"\xe8",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"\xbd",frac13:"â
",frac14:"\xbc",frac15:"â
",frac16:"â
",frac18
1:"â
",frac23:"â
",frac25:"â
",frac34:"\xbe",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"\uD835\uDCA2",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"\xbd",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"\uD835\uDD25",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"\uD835\uDD59",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"\uD835\uDCBD",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"\xcd",iacute:"\xed",ic:"â£",Icirc:"\xce",icirc:"\xee",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"\xa1",iff:"â",Ifr:"â",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"â",iscr:"\uD835\uDCBE",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"\xab",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
1",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"\uD835\uDCC1",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"\xaf",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"â§",micro:"\xb5",mid:"â£",midast:"*",midcir:"â«°",middot:"\xb7",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"â",Mscr:"â³",mscr:"\uD835\uDCC2",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:"\xa0",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:"\xa0",Nopf:"â",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â
1 ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"â",ocir:"â",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"Ë",Ograve:"\xd2",ograve:"\xf2",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"\xaa",ordm:"\xba",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"\uD835\uDCAA",oscr:"â´",Oslash:"\xd8",oslash:"\xf8",osol:"â",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"\xb6",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"â¨",Qopf:"â",qopf:"\uD835\uDD62",qprime:"â",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"\xbb",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"\xae",reg:"\xae",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rf
1isht:"⥽",rfloor:"â",Rfr:"â",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"\uD835\uDCC7",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"\xa7",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"\xad",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"\xaf",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickS
1pace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"\xde",thorn:"\xfe",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"\xd7",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"\xda",uacute:"\xfa",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"\xa8",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"â",vrtri:"â³",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"â",wr:"â",wreath:"â",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ð",yicy:"Ñ",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"\uD835\uDD37",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"â",zwnj:"â"}),e.entityMap=e.HTML_ENTITIES},4625:(t,e,i)=>{"use strict";var r=i(6853),n=i(1997),s=i(7162),o=i(832),a=i(138);(t.exports=function(t,e){var i,n,l,h,c;return arguments.length<2||"string"!=typeof t?(h=e,e=t,t=null):h=arguments[2],r(t)?(i=a.call(t,"c"),n=a.call(t,"e"),l=a.call(t,"w")):(i=l
1=!0,n=!1),c={value:e,configurable:i,enumerable:n,writable:l},h?s(o(h),c):c}).gs=function(t,e,i){var l,h,c,u;return"string"!=typeof t?(c=i,i=e,e=t,t=null):c=arguments[3],r(e)?n(e)?r(i)?n(i)||(c=i,i=void 0):i=void 0:(c=e,e=i=void 0):e=void 0,r(t)?(l=a.call(t,"c"),h=a.call(t,"e")):(l=!0,h=!1),u={get:e,set:i,configurable:l,enumerable:h},c?s(o(c),u):u}},4709:(t,e,i)=>{var r=i(3873),n=Object.prototype,s=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),i=t[a];try{t[a]=void 0;var r=!0}catch(t){}var n=o.call(t);return r&&(e?t[a]=i:delete t[a]),n}},4780:(t,e,i)=>{var r=i(3516),n=i(5060);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==r(t)}},4788:(t,e,i)=>{"use strict";var r=i(1556);t.exports=function(t){if("function"!=typeof t||!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length||"function"!=typeof t.call||"function"!=typeof t.apply)return!1}catch(t){return!1}return!r(t)}},5060:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5413:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return h}}),i(7284);let r=i(3887),n=i(2590),s=i(5762),o=["-moz-initial","fill","none","scale-down",void 0];function a(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function h({src:t,sizes:e,unoptimized:i=!1,priority:h=!1,preload:c=!1,loading:u,className:d,quality:f,width:p,height:g,fill:m=!1,style:v,overrideSrc:y,onLoad:b,onLoadingComplete:w,placeholder:x="empty",blurDataURL:E,fetchPriority:S,decoding:T="async",layout:C,objectFit:_,objectPosition:N,lazyBoundary:A,lazyRoot:L,...R},k){var O;let I,P,D,{imgConf:M,showAltText:B,blurComplete:q,defaultLoader:j}=k,z=M||s.imageConfigDefault;if("allSizes"in z)I=z;else{let t=[...z.deviceSizes,...z.imageSizes].sort((t,e)=>t-e),e=z.deviceSizes.sort((t,e)=>t-e),i=z.qualities?.sort((t,e)=>t-e);I={...z,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===j)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=R.loader||j;delete R.loader,delete R.srcSet;let F="__next_img_default"in U;if(F){if("custom"===I.loader)throw Object.defineProperty(Error(`Image with src "${t}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=U;U=e=>{let{config:i,...r}=e;return t(r)}}if(C){"fill"===C&&(m=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[C];i&&!e&&(e=i)}let V="",W=l(p),H=l(g);if((O=t)&&"object"==typeof O&&(a(O)||void 0!==O.src)){let e=a(t)?t.default:t;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(P=e.blurWidth,D=e.blurHeight,E=E||e.blurDataURL,V=e.src,!m)if(W||H){if(W&&!H){let t=W/e.width;H=Math.round(e.height*t)}else if(!W&&H){let t=H/e.height;W=Math.round(e.width*t)}}else W=e.width,H=e.height}let G=!h&&!c&&("lazy"===u||void 0===u);(!(t="string"==typeof t?t:V)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,G=!1),I.unoptimized&&(i=!0),F&&!I.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let X=l(f),$=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:N}:{},B?{}:{color:"transparent"},v),Y=q||"empty"===x?null:"blur"===x?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:W,heightInt:H,blurWidth:P,blurHeight:D,blurDataURL:E||"",objectFit:$.objectFit})}")`:`url("${x}")`,K=o.includes($.objectFit)?"fill"===$.objectFit?"100% 100%":"cover":$.objectFit,J=Y?{backgroundSize:K,backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function({config:t,src:e,unoptimized:i,width:n,quality:s,sizes:o,loader:a}){if(i){let t=(0,r.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//")&&t){let i=e.includes("?")?"&":"?";e=`${e}${i}dpl=${t}`}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:h}=function({deviceSizes:t,allSizes:e},i,r){if(r){let i=/(^|\s)(1?\d?\d)vw/g,n=[];for(let t;t=i.exec(r);)n.push(parseInt(t[2]));if(n.length){let i=.01*Math.min(...n);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,n,o),c=l.length-1;return{sizes:o||"w"!==h?o:"100vw",srcSet:l.map((i,r)=>`${a({config:t,src:e,quality:s,width:i})} ${"w"===h?i:r+1}${h}`).join(", "),src:a({config:t,src:e,quality:s,width:l[c]})}}({config:I,src:t,unoptimized:i,width:W,quality:X,sizes:e,loader:U}),Q=G?"lazy":u;return{props:{...R,loading:Q,fetchPriority:S,width:W,height:H,decoding:T,className:d,style:{...$,...J},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:i,preload:c||h,placeholder:x,fill:m}}}},5544:()=>{},5545:t=>{"use strict";
2t.exports=function(){}},5683:t=>{"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},5762:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return s}};for(var r in i)Object.defineProperty(e,r,{enumerable:!0,get:i[r]});let n=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},5772:(t,e,i)=>{"use strict";i.d(e,{default:()=>n.a});var r=i(7651),n=i.n(r)},6095:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});let r=i(8857),n=i(3887);function s({config:t,src:e,width:i,quality:s}){if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,r.findClosestQuality)(s,t),a=(0,n.getDeploymentId)();return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${o}${e.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},6518:(t,e,i)=>{"use strict";var r,n,s,o,a,l,h,c=i(4625),u=i(2377),d=Function.prototype.apply,f=Function.prototype.call,p=Object.create,g=Object.defineProperty,m=Object.defineProperties,v=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var i;return u(e),v.call(this,"__ee__")?i=this.__ee__:(i=y.value=p(null),g(this,"__ee__",y),y.value=null),i[t]?"object"==typeof i[t]?i[t].push(e):i[t]=[i[t],e]:i[t]=e,this},n=function(t,e){var i,n;return u(e),n=this,r.call(this,t,i=function(){s.call(n,t,i),d.call(e,this,arguments)}),i.__eeOnceListener__=e,this},a={on:r,once:n,off:s=function(t,e){var i,r,n,s;if(u(e),!v.call(this,"__ee__")||!(i=this.__ee__)[t])return this;if("object"==typeof(r=i[t]))for(s=0;n=r[s];++s)(n===e||n.__eeOnceListener__===e)&&(2===r.length?i[t]=r[+!s]:r.splice(s,1));else(r===e||r.__eeOnceListener__===e)&&delete i[t];return this},emit:o=function(t){var e,i,r,n,s;if(v.call(this,"__ee__")&&(n=this.__ee__[t]))if("object"==typeof n){for(e=1,i=arguments.length,s=Array(i-1);e<i;++e)s[e-1]=arguments[e];for(e=0,n=n.slice();r=n[e];++e)d.call(r,this,s)}else switch(arguments.length){case 1:f.call(n,this);break;case 2:f.call(n,this,arguments[1]);break;case 3:f.call(n,this,arguments[1],arguments[2]);break;default:for(e=1,i=arguments.length,s=Array(i-1);e<i;++e)s[e-1]=arguments[e];d.call(n,this,s)}}},h=m({},l={on:c(r),once:c(n),off:c(s),emit:c(o)}),t.exports=e=function(t){return null==t?p(h):m(Object(t),l)},e.methods=a},6686:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={default:function(){return g},defaultHead:function(){return u}};for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]});let s=i(6406),o=i(927),a=i(5155),l=o._(i(2115)),h=s._(i(6899)),c=i(5368);function u(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}i(7284);let f=["name","httpEquiv","charSet","itemProp"];function p(t){let e,i,r,n;return t.reduce(d,[]).reverse().concat(u().reverse()).filter((e=new Set,i=new Set,r=new Set,n={},t=>{let s=!0,o=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){o=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?s=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?s=!1:i.add(t.type);break;case"meta":for(let e=0,i=f.length;e<i;e++){let i=f[e];if(t.props.hasOwnProperty(i))if("charSet"===i)r.has(i)?s=!1:r.add(i);else{let e=t.props[i],r=n[i]||new Set;("name"!==i||!o)&&r.has(e)?s=!1:(r.add(e),n[i]=r)}}}return s})).reverse().map((t,e)=>{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let g=function({children:t}){let e=(0,l.useContext)(c.HeadManagerContext);return(0,a.jsx)(h.default,{reduceComponentsToState:p,headManager:e,children:t})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
3dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6784:(t,e,i)=>{var r=i(8085);t.exports=function(){return r.Date.now()}},6828:(t,e,i)=>{t.exports="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g},6853:t=>{"use strict";var e=void 0;t.exports=function(t){return t!==e&&null!==t}},6890:t=>{var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},6899:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});let r=i(2115),n=r.useLayoutEffect,s=r.useEffect;function o(t){let{headManager:e,reduceComponentsToState:i}=t;function o(){if(e&&e.mountedInstances){let t=r.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(t))}}return n(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),n(()=>(e&&(e._pendingUpdate=o),()=>{e&&(e._pendingUpdate=o)})),s(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},6978:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});function r(t,e){if(!t)throw Error("Invariant failed")}},7150:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=i(6406)._(i(2115)),n=i(5762),s=r.default.createContext(n.imageConfigDefault)},7162:(t,e,i)=>{"use strict";t.exports=i(5683)()?Object.assign:i(2939)},7178:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7185:(t,e)=>{e.read=function(t,e,i,r,n){var s,o,a=8*n-r-1,l=(1<<a)-1,h=l>>1,c=-7,u=i?n-1:0,d=i?-1:1,f=t[e+u];for(u+=d,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+t[e+u],u+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+t[e+u],u+=d,c-=8);if(0===s)s=1-h;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),s-=h}return(f?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,i,r,n,s){var o,a,l,h=8*s-n-1,c=(1<<h)-1,u=c>>1,d=5960464477539062e-23*(23===n),f=r?0:s-1,p=r?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+u>=1?e+=d/l:e+=d*Math.pow(2,1-u),e*l>=2&&(o++,l/=2),o+u>=c?(a=0,o=c):o+u>=1?(a=(e*l-1)*Math.pow(2,n),o+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),o=0));n>=8;t[i+f]=255&a,f+=p,a/=256,n-=8);for(o=o<<n|a,h+=n;h>0;t[i+f]=255&o,f+=p,o/=256,h-=8);t[i+f-p]|=128*g}},7227:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}},7558:()=>{},7651:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return h}};for(var n in r)Object.defineProperty(e,n,{enumerable:!0,get:r[n]});
3let s=i(6406),o=i(5413),a=i(8437),l=s._(i(6095));function h(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let c=a.Image},7670:(t,e,i)=>{var r=i(6),n=i(3102),s=i(3989),o=i(1810),a=n.DOMImplementation,l=r.NAMESPACE,h=o.ParseError,c=o.XMLReader;function u(t){this.options=t||{locator:{}}}function d(){this.cdata=!1}function f(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function p(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function g(t,e,i){return"string"==typeof t?t.substr(e,i):t.length>=e+i||e?new java.lang.String(t,e,i)+"":t}function m(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}u.prototype.parseFromString=function(t,e){var i=this.options,r=new c,n=i.domBuilder||new d,o=i.errorHandler,a=i.locator,h=i.xmlns||{},u=/\/x?html?$/.test(e),f=u?s.HTML_ENTITIES:s.XML_ENTITIES;return a&&n.setDocumentLocator(a),r.errorHandler=function(t,e,i){if(!t){if(e instanceof d)return e;t=e}var r={},n=t instanceof Function;function s(e){var s=t[e];!s&&n&&(s=2==t.length?function(i){t(e,i)}:t),r[e]=s&&function(t){s("[xmldom "+e+"] "+t+p(i))}||function(){}}return i=i||{},s("warning"),s("error"),s("fatalError"),r}(o,n,a),r.domBuilder=i.domBuilder||n,u&&(h[""]=l.HTML),h.xml=h.xml||l.XML,t&&"string"==typeof t?r.parse(t,h,f):r.errorHandler.error("invalid doc source"),n.doc},d.prototype={startDocument:function(){this.doc=new a().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,i,r){var n=this.doc,s=n.createElementNS(t,i||e),o=r.length;m(this,s),this.currentElement=s,this.locator&&f(this.locator,s);for(var a=0;a<o;a++){var t=r.getURI(a),l=r.getValue(a),i=r.getQName(a),h=n.createAttributeNS(t,i);this.locator&&f(r.getLocator(a),h),h.value=h.nodeValue=l,s.setAttributeNode(h)}},endElement:function(t,e,i){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var i=this.doc.createProcessingInstruction(t,e);this.locator&&f(this.locator,i),m(this,i)},ignorableWhitespace:function(t,e,i){},characters:function(t,e,i){if(t=g.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(t);else var r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&f(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,i){t=g.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&f(this.locator,r),m(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,i){var r=this.doc.implementation;if(r&&r.createDocumentType){var n=r.createDocumentType(t,e,i);this.locator&&f(this.locator,n),m(this,n),this.doc.doctype=n}},warning:function(t){console.warn("[xmldom warning] "+t,p(this.locator))},error:function(t){console.error("[xmldom error] "+t,p(this.locator))},fatalError:function(t){throw new h(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){d.prototype[t]=function(){return null}}),e.DOMParser=u,n.DOMImplementation,n.XMLSerializer},7990:(t,e,i)=>{"use strict";i.d(e,{A:()=>R});var r=i(5155),n=i(2115),s=i(937),o=i(3794),a=i(7227);function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t.filter(Boolean);return i.length<=1?i[0]||null:function(t){i.forEach(function(e){"function"==typeof e?e(t):e&&(e.current=t)})}}var h=i(6978),c=i(1461);let u=(0,n.createContext)(null);var d=i(3949),f=i(5123);let p={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P
3:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},g=/^H(\d+)$/;function m(t){return"children"in t}function v(t){return!!m(t)&&1===t.children.length&&0 in t.children&&"id"in t.children[0]}function y({className:t,node:e}){let i=(0,n.useMemo)(()=>e?Object.assign(Object.assign({},function(t){let e={};if(m(t)){let{role:i}=t,r=i.match(g);if(r)e.role="heading",e["aria-level"]=Number(r[1]);else if(i in p){let t=p[i];t&&(e.role=t)}}return e}(e)),function t(e){let i={};if(m(e)){if(void 0!==e.alt&&(i["aria-label"]=e.alt),void 0!==e.lang&&(i.lang=e.lang),v(e)){let[r]=e.children;if(r){let e=t(r);return Object.assign(Object.assign({},i),e)}}}else"id"in e&&(i["aria-owns"]=e.id);return i}(e)):null,[e]),s=(0,n.useMemo)(()=>!m(e)||v(e)?null:e.children.map((t,e)=>(0,r.jsx)(y,{node:t},e)),[e]);return(0,r.jsx)("span",Object.assign({className:t},i,{children:s}))}function b(){return(0,n.useContext)(u)}var w=i(558),x=i(2513);function E(){let t=b();(0,h.A)(t,"Unable to find Page context.");let{onGetStructTreeError:e,onGetStructTreeSuccess:i}=t,[o,a]=(0,w.A)(),{value:l,error:u}=o,{customTextRenderer:d,page:f}=t;return((0,n.useEffect)(function(){a({type:"RESET"})},[a,f]),(0,n.useEffect)(function(){if(d||!f)return;let t=(0,s.A)(f.getStructTree());return t.promise.then(t=>{a({type:"RESOLVE",value:t})}).catch(t=>{a({type:"REJECT",error:t})}),()=>(0,x.xL)(t)},[d,f,a]),(0,n.useEffect)(()=>{if(void 0!==l){if(!1===l)return void(u&&(c(!1,u.toString()),e&&e(u)));l&&i&&i(l)}},[l]),l)?(0,r.jsx)(y,{className:"react-pdf__Page__structTree structTree",node:l}):null}let S=f.ng;function T(t){let e=b();(0,h.A)(e,"Unable to find Page context.");let{_className:i,canvasBackground:s,devicePixelRatio:o=(0,x.mZ)(),onRenderError:a,onRenderSuccess:u,page:d,renderForms:f,renderTextLayer:p,rotate:g,scale:m}=Object.assign(Object.assign({},e),t),{canvasRef:v}=t;(0,h.A)(d,"Attempted to render page canvas, but no page was specified.");let y=(0,n.useRef)(null);function w(t){!(0,x.UT)(t)&&(c(!1,t.toString()),a&&a(t))}let T=(0,n.useMemo)(()=>d.getViewport({scale:m*o,rotation:g}),[o,d,g,m]),C=(0,n.useMemo)(()=>d.getViewport({scale:m,rotation:g}),[d,g,m]);(0,n.useEffect)(function(){if(!d)return;d.cleanup();let{current:t}=y;if(!t)return;t.width=T.width,t.height=T.height,t.style.width=`${Math.floor(C.width)}px`,t.style.height=`${Math.floor(C.height)}px`,t.style.visibility="hidden";let e={annotationMode:f?S.ENABLE_FORMS:S.ENABLE,canvasContext:t.getContext("2d",{alpha:!1}),viewport:T};s&&(e.background=s);let i=d.render(e);return i.promise.then(()=>{t.style.visibility="",d&&u&&u((0,x.vS)(d,m))}).catch(w),()=>(0,x.xL)(i)},[s,d,f,T,C]);let _=(0,n.useCallback)(()=>{let{current:t}=y;t&&(t.width=0,t.height=0)},[]);return(0,n.useEffect)(()=>_,[_]),(0,r.jsx)("canvas",{className:`${i}__canvas`,dir:"ltr",ref:l(v,y),style:{display:"block",userSelect:"none"},children:p?(0,r.jsx)(E,{}):null})}function C(){let t=b();(0,h.A)(t,"Unable to find Page context.");let{customTextRenderer:e,onGetTextError:i,onGetTextSuccess:o,onRenderTextLayerError:l,onRenderTextLayerSuccess:u,page:d,pageIndex:p,pageNumber:g,rotate:m,scale:v}=t;(0,h.A)(d,"Attempted to load page text content, but no page was specified.");let[y,E]=(0,w.A)(),{value:S,error:T}=y,C=(0,n.useRef)(null);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,n.useEffect)(function(){E({type:"RESET"})},[d,E]),(0,n.useEffect)(function(){if(!d)return;let t=(0,s.A)(d.getTextContent());return t.promise.then(t=>{E({type:"RESOLVE",value:t})}).catch(t=>{E({type:"REJECT",error:t})}),()=>(0,x.xL)(t)},[d,E]),(0,n.useEffect)(()=>{if(void 0!==S){if(!1===S)return void(T&&(c(!1,T.toString()),i&&i(T)));S&&o&&o(S)}},[S]);let _=(0,n.useCallback)(()=>{u&&u()},[u]),N=(0,n.useCallback)(t=>{c(!1,t.toString()),l&&l(t)}
3,[l]),A=(0,n.useMemo)(()=>d.getViewport({scale:v,rotation:m}),[d,m,v]);return(0,n.useLayoutEffect)(function(){if(!d||!S)return;let{current:t}=C;if(!t)return;t.innerHTML="";let i=d.streamTextContent({includeMarkedContent:!0}),r=new f.D6({container:t,textContentSource:i,viewport:A});return r.render().then(()=>{let i=document.createElement("div");i.className="endOfContent",t.append(i);let r=t.querySelectorAll('[role="presentation"]');if(e){let t=0;S.items.forEach((i,n)=>{if(!("str"in i))return;let s=r[t];s&&(s.innerHTML=e(Object.assign({pageIndex:p,pageNumber:g,itemIndex:n},i)),t+=i.str&&i.hasEOL?2:1)})}_()}).catch(N),()=>(0,x.xL)(r)},[e,N,_,d,p,g,S,A]),(0,r.jsx)("div",{className:(0,a.A)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let t=C.current;t&&t.classList.remove("selecting")},onMouseDown:function(){let t=C.current;t&&t.classList.add("selecting")},ref:C})}var _=i(9766);function N(){return(0,n.useContext)(_.A)}function A(){let t=N(),e=b();(0,h.A)(e,"Unable to find Page context.");let{imageResourcesPath:i,linkService:o,onGetAnnotationsError:l,onGetAnnotationsSuccess:u,onRenderAnnotationLayerError:d,onRenderAnnotationLayerSuccess:p,page:g,pdf:m,renderForms:v,rotate:y,scale:E=1}=Object.assign(Object.assign({},t),e);(0,h.A)(m,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,h.A)(g,"Attempted to load page annotations, but no page was specified."),(0,h.A)(o,"Attempted to load page annotations, but no linkService was specified.");let[S,T]=(0,w.A)(),{value:C,error:_}=S,A=(0,n.useRef)(null);c(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,n.useEffect)(function(){T({type:"RESET"})},[T,g]),(0,n.useEffect)(function(){if(!g)return;let t=(0,s.A)(g.getAnnotations());return t.promise.then(t=>{T({type:"RESOLVE",value:t})}).catch(t=>{T({type:"REJECT",error:t})}),()=>{(0,x.xL)(t)}},[T,g]),(0,n.useEffect)(()=>{if(void 0!==C){if(!1===C)return void(_&&(c(!1,_.toString()),l&&l(_)));C&&u&&u(C)}},[C]);let L=(0,n.useMemo)(()=>g.getViewport({scale:E,rotation:y}),[g,y,E]);return(0,n.useEffect)(function(){if(!m||!g||!o||!C)return;let{current:t}=A;if(!t)return;let e=L.clone({dontFlip:!0}),r={annotations:C,annotationStorage:m.annotationStorage,div:t,imageResourcesPath:i,linkService:o,page:g,renderForms:v,viewport:e};t.innerHTML="";try{new f.dU({accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:t,l10n:null,page:g,structTreeLayer:null,viewport:e}).render(r),p&&p()}catch(t){c(!1,`${t}`),d&&d(t)}return()=>{}},[C,i,o,g,m,v,L]),(0,r.jsx)("div",{className:(0,a.A)("react-pdf__Page__annotations","annotationLayer"),ref:A})}var L=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)0>e.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]]);return i};function R(t){let e=Object.assign(Object.assign({},N()),t),{_className:i="react-pdf__Page",_enableRegisterUnregisterPage:f=!0,canvasBackground:p,canvasRef:g,children:m,className:v,customRenderer:y,customTextRenderer:b,devicePixelRatio:E,error:S="Failed to load the page.",height:_,inputRef:R,loading:k="Loading pageâ¦",noData:O="No page specified.",onGetAnnotationsError:I,onGetAnnotationsSuccess:P,onGetStructTreeError:D,onGetStructTreeSuccess:M,onGetTextError:B,onGetTextSuccess:q,onLoadError:j,onLoadSuccess:z,onRenderAnnotationLayerError:U,onRenderAnnotationLayerSuccess:F,onRenderError:V,onRenderSuccess:W,onRenderTextLayerError:H,onRenderTextLayerSuccess:G,pageIndex:X,pageNumber:$,pdf:Y,registerPage:K,renderAnnotationLayer:J=!0,renderForms:Z=!1,renderMode:Q="canvas",renderTextLayer:tt=!0,rotate:te,scale:ti=1,unregisterPage:tr,width:tn}=e,ts=L(e,["_className","_enableRegisterUnregisterPage","canvasBackgroun
3d","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[to,ta]=(0,w.A)(),{value:tl,error:th}=to,tc=(0,n.useRef)(null);(0,h.A)(Y,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let tu=(0,x.ci)($)?$-1:null!=X?X:null,td=null!=$?$:(0,x.ci)(X)?X+1:null,tf=null!=te?te:tl?tl.rotate:null,tp=(0,n.useMemo)(()=>{if(!tl)return null;let t=1,e=null!=ti?ti:1;if(tn||_){let e=tl.getViewport({scale:1,rotation:tf});tn?t=tn/e.width:_&&(t=_/e.height)}return e*t},[_,tl,tf,ti,tn]);(0,n.useEffect)(function(){return()=>{(0,x.ci)(tu)&&f&&tr&&tr(tu)}},[f,Y,tu,tr]),(0,n.useEffect)(function(){ta({type:"RESET"})},[ta,Y,tu]),(0,n.useEffect)(function(){if(!Y||!td)return;let t=(0,s.A)(Y.getPage(td));return t.promise.then(t=>{ta({type:"RESOLVE",value:t})}).catch(t=>{ta({type:"REJECT",error:t})}),()=>(0,x.xL)(t)},[ta,Y,td]),(0,n.useEffect)(()=>{if(void 0!==tl){if(!1===tl)return void(th&&(c(!1,th.toString()),j&&j(th)));!function(){if(z){if(!tl||!tp)return;z((0,x.vS)(tl,tp))}if(f&&K){if(!(0,x.ci)(tu)||!tc.current)return;K(tu,tc.current)}}()}},[tl,tp]);let tg=(0,n.useMemo)(()=>tl&&(0,x.ci)(tu)&&td&&(0,x.ci)(tf)&&(0,x.ci)(tp)?{_className:i,canvasBackground:p,customTextRenderer:b,devicePixelRatio:E,onGetAnnotationsError:I,onGetAnnotationsSuccess:P,onGetStructTreeError:D,onGetStructTreeSuccess:M,onGetTextError:B,onGetTextSuccess:q,onRenderAnnotationLayerError:U,onRenderAnnotationLayerSuccess:F,onRenderError:V,onRenderSuccess:W,onRenderTextLayerError:H,onRenderTextLayerSuccess:G,page:tl,pageIndex:tu,pageNumber:td,renderForms:Z,renderTextLayer:tt,rotate:tf,scale:tp}:null,[i,p,b,E,I,P,D,M,B,q,U,F,V,W,H,G,tl,tu,td,Z,tt,tf,tp]),tm=(0,n.useMemo)(()=>(0,o.Ay)(ts,()=>tl?tp?(0,x.vS)(tl,tp):void 0:tl),[ts,tl,tp]),tv=`${tu}@${tp}/${tf}`;return(0,r.jsx)("div",Object.assign({className:(0,a.A)(i,v),"data-page-number":td,ref:l(R,tc),style:{"--scale-factor":`${tp}`,backgroundColor:p||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},tm,{children:td?null===Y||null==tl?(0,r.jsx)(d.A,{type:"loading",children:"function"==typeof k?k():k}):!1===Y||!1===tl?(0,r.jsx)(d.A,{type:"error",children:"function"==typeof S?S():S}):(0,r.jsxs)(u.Provider,{value:tg,children:[function(){switch(Q){case"custom":return(0,h.A)(y,'renderMode was set to "custom", but no customRenderer was passed.'),(0,r.jsx)(y,{},`${tv}_custom`);case"none":return null;default:return(0,r.jsx)(T,{canvasRef:g},`${tv}_canvas`)}}(),tt?(0,r.jsx)(C,{},`${tv}_text`):null,J?(0,r.jsx)(A,{},`${tv}_annotations`):null,m]}):(0,r.jsx)(d.A,{type:"no-data",children:"function"==typeof O?O():O})}))}},8015:(t,e,i)=>{var r=i(1664),n=i(1723),s=i(4780),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,h=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return o;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var i=l.test(t);return i||h.test(t)?c(t.slice(2),i?2:8):a.test(t)?o:+t}},8085:(t,e,i)=>{var r=i(6828),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=r||n||Function("return this")()},8437:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return w}});let r=i(6406),n=i(927),s=i(5155),o=n._(i(2115)),a=r._(i(7650)),l=r._(i(6686)),h=i(5413),c=i(5762),u=i(7150);i(7284);let d=i(751),f=r._(i(6095)),p=i(1172),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
3ities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(t,e,i,r,n,s,o){let a=t?.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&n(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,n=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{n=!0,e.stopPropagation()}})}r?.current&&r.current(t)}}))}function v(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}let y=(0,o.forwardRef)(({src:t,srcSet:e,sizes:i,height:r,width:n,decoding:a,className:l,style:h,fetchPriority:c,placeholder:u,loading:d,unoptimized:f,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:x,sizesInput:E,onLoad:S,onError:T,...C},_)=>{let N=(0,o.useCallback)(t=>{t&&(T&&(t.src=t.src),t.complete&&m(t,u,y,b,w,f,E))},[t,u,y,b,w,T,f,E]),A=(0,p.useMergedRef)(_,N);return(0,s.jsx)("img",{...C,...v(c),loading:d,width:n,height:r,decoding:a,"data-nimg":g?"fill":"1",className:l,style:h,sizes:i,srcSet:e,src:t,ref:A,onLoad:t=>{m(t.currentTarget,u,y,b,w,f,E)},onError:t=>{x(!0),"empty"!==u&&w(!0),T&&T(t)}})});function b({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...v(e.fetchPriority)};return t&&a.default.preload?(a.default.preload(e.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let w=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(u.ImageConfigContext),n=(0,o.useMemo)(()=>{let t=g||r||c.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),n=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:n,localPatterns:t.localPatterns}},[r]),{onLoad:a,onLoadingComplete:l}=t,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(l);(0,o.useEffect)(()=>{m.current=l},[l]);let[v,w]=(0,o.useState)(!1),[x,E]=(0,o.useState)(!1),{props:S,meta:T}=(0,h.getImgProps)(t,{defaultLoader:f.default,imgConf:n,blurComplete:v,showAltText:x});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:w,setShowAltText:E,sizesInput:t.sizes,ref:e}),T.preload?(0,s.jsx)(b,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8857:(t,e)=>{"use strict";function i(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,0):i}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findClosestQuality",{enumerable:!0,get:function(){return i}})},8927:(t,e,i)=>{"use strict";i.r(e),i.d(e,{AC:()=>r.AC,AD:()=>r.AD,AE:()=>r.AE,AF:()=>r.AF,AG:()=>r.AG,AI:()=>r.AI,AL:()=>r.AL,AM:()=>r.AM,AO:()=>r.AO,AQ:()=>r.AQ,AR:()=>r.AR,AS:()=>r.AS,AT:()=>r.AT,AU:()=>r.AU,AW:()=>r.AW,AX:()=>r.AX,AZ:()=>r.AZ,BA:()=>r.BA,BB:()=>r.BB,BD:()=>r.BD,BE:()=>r.BE,BF:()=>r.BF,BG:()=>r.BG,BH:()=>r.BH,BI:()=>r.BI,BJ:()=>r.BJ,BL:()=>r.BL,BM:()=>r.BM,BN:()=>r.BN,BO:()=>r.BO,BQ:()=>r.BQ,BQ_BO:()=>r.C7,BQ_SA:()=>r.x4,BQ_SE:()=>r.v1,BR:()=>r.BR,BS:()=>r.BS,BT:()=>r.BT,BV:()=>r.BV,BW:()=>r.BW,BY:()=>r.BY,BZ:()=>r.BZ,CA:()=>r.CA,CC:()=>r.CC,CD:()=>r.CD,CF:()=>r.CF,CG:()=>r.CG,CH:()=>r.CH,CI:()=>r.CI,CK:()=>r.CK,CL:()=>r.CL,CM:()=>r.CM,CN:()=>r.CN,CO:()=>r.CO,CR:()=>r.CR,CU:()=>r.CU,CV:()=>r.CV,CW:()=>r.CW,CX:()=>r.CX,CY:()=>r.CY,CZ:()=>r.CZ,DE:()=>r.DE,DJ:()=>r.DJ,DK:()=>r.DK,DM:()=>r.DM,DO:()=>r.DO,DZ:()=>r.DZ,EC:()=>r.EC,EE:()=>r.EE,EG:()=>r.EG,EH:()=>r.EH,ER:()=>r.ER,ES:()=>r.ES,ES_CT:()=>r.nd,ET:()=>r.ET,EU:()=>r.EU,FI:()=>r.FI,FJ:()=>r.FJ,FK:()=>r.FK,FM:()=>r.FM,FO:()=>r.FO,FR:()=>r.FR,GA:()=>r.GA,GB:()=>r.GB,GB_ENG:()=>r.R5,GB_NIR:()=>r.e7,GB_SCT:()=>r.bp,GB_WLS:()=>r.FV,GD:()=>r.GD,GE:()=>r.GE,GF:()=>r.GF,GG:()=>r.GG,GH:()=>r.GH,GI:()=>r.GI,GL:()=>r.GL,GM:()=>r.GM,GN:()=>r.GN,GP:()=>r.GP,GQ:()=>r.GQ,GR:()=>r.GR,GS:()=>r.GS,GT:()=>r.GT,GU:()=>r.GU,GW:()=>r.GW,GY:()=>r.GY,HK:()=>r.HK,HM:()=>r.HM,HN:()=>r.HN,HR:()=>r.HR,HT:()=>r.HT,HU:()=>r.HU,IC:()=>r.IC,ID:()=>r.ID,IE:()=>r.IE,IL:()=>r.IL,IM:()=>r.IM,IN:()=>r.IN,IO:()=>r.IO,IQ:()=>r.IQ,IR:()=>r.IR,IS:()=>r.IS,IT:()=>r.IT,JE:()=>r.JE,JM:()=>r.JM,JO:()=>r.JO,JP:()=>r.JP,KE:()=>r.KE,KG:()=>r.KG,KH:()=>r.KH,KI:()=>r.KI,KM:()=>r.KM,KN:()=>r.KN,KP:()=>r.KP,KR:()=>r.KR,KW:()=>r.KW,KY:()=>r.KY,KZ:()=>r.KZ,LA:()=>r.LA,LB:()=>r.LB,LC:()=>r.LC,LI:()=>r.LI,LK:()=>r.LK,LR:()=>r.LR,LS:()=>r.LS,LT:()=>r.LT,LU:()=>r.LU,LV:()=>r.LV,LY:()=>r.LY,MA:()=>r.MA,MC:()=>r.MC,MD:()=>r.MD,ME:()=>r.ME,MF:()=>r.MF,MG:()=>r.MG,MH:()=>r.MH,MK:()=>r.MK,ML:()=>r.ML,MM:()=>r.MM,MN:()=>r.MN,MO:()=>r.MO,MP:()=>r.MP,MQ:()=>r.MQ,MR:()=>r.MR,MS:()=>r.MS,MT:()=>r.MT,MU:()=>r.MU,MV:()=>r.MV,MW:()=>r.MW,MX:()=>r.MX,MY:()=>r.MY,MZ:()=>r.MZ,NA:()=>r.NA,NC:()=>r.NC,NE:()=>r.NE,NF:()=>r.NF,NG:()=>r.NG,NI:()=>r.NI,NL:()=>r.NL,NO:()=>r.NO,NP:()=>r.NP,NR:()=>r.NR,NU:()=>r.NU,NZ:()=>r.NZ,OM:()=>r.OM,PA:()=>r.PA,PE:()=>r.PE,PF:()=>r.PF,PG:()=>r.PG,PH:()=>r.PH,PK:()=>r.PK,PL:()=>r.PL,PM:()=>r.PM,PN:()=>r.PN,PR:()=>r.PR,PS:()=>r.PS,PT:()=>r.PT,PW:()=>r.PW,PY:()=>r.PY,QA:()=>r.QA,RE:()=>r.RE,RO:()=>r.RO,RS:()=>r.RS,RU:()=>r.RU,RW:()=>r.RW,SA:()=>r.SA,SB:()=>r.SB,SC:()=>r.SC,SD:()=>r.SD,SE:()=>r.SE,SG:()=>r.SG,SH:()=>r.SH,SI:()=>r.SI,SJ:()=>r.SJ,SK:()=>r.SK,SL:()=>r.SL,SM:()=>r.SM,SN:()=>r.SN,SO:()=>r.SO,SR:()=>r.SR,SS:()=>r.SS,ST:()=>r.ST,SV:()=>r.SV,SX:()=>r.SX,SY:()=>r.SY,SZ:()=>r.SZ,TA:()=>r.TA,TC:()=>r.TC,TD:()=>r.TD,TF:()=>r.TF,TG:()=>r.TG,TH:()=>r.TH,TJ:()=>r.TJ,TK:()=>r.TK,TL:()=>r.TL,TM:()=>r.TM,TN:()=>r.TN,TO:()=>r.TO,TR:()=>r.TR,TT:()=>r.TT,TV:()=>r.TV,TW:()=>r.TW,TZ:()=>r.TZ,UA:()=>r.UA,UG:()=>r.UG,UM:()=>r.UM,US:()=>r.US,UY:()=>r.UY,UZ:()=>r.UZ,VA:()=>r.VA,VC:()=>r.VC,VE:()=>r.VE,VG:()=>r.VG,VI:()=>r.VI,VN:()=>r.VN,VU:()=>r.VU,WF:()=>r.WF,WS:()=>r.WS,XA:()=>r.XA,XC:()=>r.XC,XK:()=>
vendor: 19,434 bytes, line 3
3r.XK,XO:()=>r.XO,YE:()=>r.YE,YT:()=>r.YT,ZA:()=>r.ZA,ZM:()=>r.ZM,ZW:()=>r.ZW,default:()=>r.Ay});var r=i(7777)},9611:(t,e,i)=>{"use strict";var r=i(904),n=i(7185),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,i)}function l(t,e,i){if("string"==typeof t){var r=t,n=e;if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);var s=0|p(r,n),l=o(s),h=l.write(r,n);return h!==s&&(l=l.slice(0,h)),l}if(ArrayBuffer.isView(t)){var c=t;if(L(c,Uint8Array)){var g=new Uint8Array(c);return d(g.buffer,g.byteOffset,g.byteLength)}return u(c)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return d(t,e,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var m=t.valueOf&&t.valueOf();if(null!=m&&m!==t)return a.from(m,e,i);var v=function(t){if(a.isBuffer(t)){var e=0|f(t.length),i=o(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?o(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(v)return v;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function h(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return h(t),o(t<0?0:0|f(t))}function u(t){for(var e=t.length<0?0:0|f(t.length),i=o(e),r=0;r<e;r+=1)i[r]=255&t[r];return i}function d(t,e,i){var r;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),a.prototype),r}function f(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return N(t).length;default:if(n)return r?-1:_(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n,s,o,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);for(var n="",s=e;s<i;++s)n+=R[t[s]];return n}(this,e,i);case"utf8":case"utf-8":return b(this,e,i);case"ascii":return function(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}(this,e,i);case"latin1":case"binary":return function(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}(this,e,i);case"base64":return n=this,s=e,o=i,0===s&&o===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,i){for(var r=t.slice(e,i),n="",s=0;s<r.length-1;s+=2)n+=String.fromCharCode(r[s]+256*r[s+1]);return n}(this,e,i);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function m(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function v(t,e,i,r,n){var s;if(0===t.length)return -1;if("string"==typeof i?(r=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(s=i*=1)!=s&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length)if(n)return -1;else i=t.length-1;else if(i<0)if(!n)return -1;else i=0;if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:y(t,e,i,r,n);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(t,e,i);else return Uint8Array.prototype.lastIndexOf.call(t,e,i);return y(t,[e],i,r,n)}throw TypeError("val must be string, number or Buffer")}function y(t,e,i,r,n){var s,o=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;o=2,a/=2,l/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var c=-1;for(s=i;s<a;s++)if(h(t,s)===h(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===l)return c*o}else -1!==c&&(s-=s-c),c=-1}else for(i+l>a&&(i=a-l),s=i;s>=0;s--){for(var u=!0,d=0;d<l;d++)if(h(t,s+d)!==h(e,d)){u=!1;break}if(u)return s}return -1}function b(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var s,o,a,l,h=t[n],c=null,u=h>239?4:h>223?3:h>191?2:1;if(n+u<=i)switch(u){case 1:h<128&&(c=h);break;case 2:(192&(s=t[n+1]))==128&&(l=(31&h)<<6|63&s)>127&&(c=l);break;case 3:s=t[n+1],o=t[n+2],(192&s)==128&&(192&o)==128&&(l=(15&h)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=t[n+1],o=t[n+2],a=t[n+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&h)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,u=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=u}var d=r,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",g=0;g<f;)p+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return p}function w(t,e,i){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>i)throw RangeError("Trying to access beyond buffer length")}function x(t,e,i,r,n,s){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw RangeError('"value" argument is out of bounds');if(i+r>t.length)throw RangeError("Index out of range")}function E(t,e,i,r,n,s){if(i+r>t.length||i<0)throw RangeError("Index out of range")}function S(t,e,i,r,s){return e*=1,i>>>=0,s||E(t,e,i,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,i,r,23,4),i+4}function T(t,e,i,r,s){return e*=1,i>>>=0,s||E(t,e,i,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,i,r,52,8),i+8}e.hp=a,e.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,i){return l(t,e,i)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,i){return(h(t),t<=0)?o(t):void 0!==e?"string"==typeof i?o(t).fill(e,i):o(t).fill(e):o(t)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),L(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,r=e.length,n=0,s=Math.min(i,r);n<s;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:+(r<i)},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;var i,r=a.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var s=t[i];if(L(s,Uint8Array))n+s.length>r.length?a.from(s).copy(r,n):Uint8Array.prototype.set.call(r,s,n);else if(a.isBuffer(s))s.copy(r,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=s.length}return r},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",i=e.IS;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(t,e,i,r,n){if(L(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;for(var s=n-r,o=i-e,l=Math.min(s,o),h=this.slice(r,n),c=t.slice(e,i),u=0;u<l;++u)if(h[u]!==c[u]){s=h[u],o=c[u];break}return s<o?-1:+(o<s)},a.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},a.prototype.indexOf=function(t,e,i){return v(this,t,e,i,!0)},a.prototype.lastIndexOf=function(t,e,i){return v(this,t,e,i,!1)},a.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,o,a,l,h,c,u,d=this.length-e;if((void 0===i||i>d)&&(i=d),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var f=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))>n&&(r=n):r=n;var s=e.length;r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a,l=parseInt(e.substr(2*o,2),16);if((a=l)!=a)break;t[i+o]=l}return o}(this,t,e,i);case"utf8":case"utf-8":return n=e,s=i,A(_(t,this.length-n),this,n,s);case"ascii":case"latin1":case"binary":return o=e,a=i,A(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(t),this,o,a);case"base64":return l=e,h=i,A(N(t),this,l,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=e,u=i,A(function(t,e){for(var i,r,n=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(i=t.charCodeAt(s))>>8,n.push(i%256),n.push(r);return n}(t,this.length-c),this,c,u);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||w(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||w(t,e,this.length);for(var r=this[t+--e],n=1;e>0&&(n*=256);)r+=this[t+--e]*n;return r},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||w(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||w(t,e,this.length);for(var r=e,n=1,s=this[t+--r];r>0&&(n*=256);)s+=this[t+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,i,r){if(t*=1,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;x(this,t,e,i,n,0)}var s=1,o=0;for(this[e]=255&t;++o<i&&(s*=256);)this[e+o]=t/s&255;return e+i},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,i,r){if(t*=1,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;x(this,t,e,i,n,0)}var s=i-1,o=1;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=t/o&255;return e+i},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,i,r){if(t*=1,e>>>=0,!r){var n=Math.pow(2,8*i-1);x(this,t,e,i,n-1,-n)}var s=0,o=1,a=0;for(this[e]=255&t;++s<i&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o|0)-a&255;return e+i},a.prototype.writeIntBE=function(t,e,i,r){if(t*=1,e>>>=0,!r){var n=Math.pow(2,8*i-1);x(this,t,e,i,n-1,-n)}var s=i-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o|0)-a&255;return e+i},a.prototype.writeInt8=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,i){return t*=1,e>>>=0,i||x(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,i){return S(this,t,e,!0,i)},a.prototype.writeFloatBE=function(t,e,i){return S(this,t,e,!1,i)},a.prototype.writeDoubleLE=function(t,e,i){return T(this,t,e,!0,i)},a.prototype.writeDoubleBE=function(t,e,i){return T(this,t,e,!1,i)},a.prototype.copy=function(t,e,i,r){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var n=r-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,r):Uint8Array.prototype.set.call(t,this.subarray(i,r),e),n},a.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){var n,s=t.charCodeAt(0);("utf8"===r&&s<128||"latin1"===r)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n<i;++n)this[n]=t;else{var o=a.isBuffer(t)?t:a.from(t,r),l=o.length;if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<i-e;++n)this[n+e]=o[n%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function _(t,e){e=e||1/0;for(var i,r=t.length,n=null,s=[],o=0;o<r;++o){if((i=t.charCodeAt(o))>
355295&&i<57344){if(!n){if(i>56319||o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function N(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function A(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length)&&!(n>=t.length);++n)e[n+i]=t[n];return n}function L(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),i=0;i<16;++i)for(var r=16*i,n=0;n<16;++n)e[r+n]=t[i]+t[n];return e}()},9766:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=(0,i(2115).createContext)(null)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.