From 892d5f562f3ccc0bfe57f02fc49d86f9047c74a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Menu?= Date: Tue, 27 Aug 2024 16:37:59 +0200 Subject: [PATCH] Fix reporting the current locator when submitting new preferences (#474) --- CHANGELOG.md | 1 + .../EPUB/Assets/Static/scripts/readium-fixed.js | 2 +- .../Assets/Static/scripts/readium-reflowable.js | 2 +- .../Navigator/EPUB/EPUBReflowableSpreadView.swift | 15 ++++++++++----- Sources/Navigator/EPUB/Scripts/src/utils.js | 7 +++++-- TestApp/Sources/App/AppModule.swift | 2 +- 6 files changed, 19 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9478d2c3c..658b54359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ All notable changes to this project will be documented in this file. Take a look * Optimized scrolling to an EPUB text-based locator if it contains a CSS selector. * The first resource of a fixed-layout EPUB is now displayed on its own when spreads are enabled and the author has not set a `page-spread-*` property. This is the default behavior in major reading apps like Apple Books. +* [#471](https://github.com/readium/swift-toolkit/issues/471) EPUB: Fixed reporting the current location when submitting new preferences. ## [3.0.0-alpha.1] diff --git a/Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed.js b/Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed.js index 8748f4da5..ed3d5c32a 100644 --- a/Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed.js +++ b/Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed.js @@ -1,2 +1,2 @@ -(()=>{var u={9116:(u,t)=>{"use strict";function e(u){return u.split("").reverse().join("")}function r(u){return(u|-u)>>31&1}function n(u,t,e,n){var o=u.P[e],D=u.M[e],i=n>>>31,a=t[e]|i,F=a|D,c=(a&o)+o^o|a,s=D|~(c|o),l=o&c,f=r(s&u.lastRowMask[e])-r(l&u.lastRowMask[e]);return s<<=1,l<<=1,o=(l|=i)|~(F|(s|=r(n)-i)),D=s&F,u.P[e]=o,u.M[e]=D,f}function o(u,t,e){if(0===t.length)return[];e=Math.min(e,t.length);var r=[],o=32,D=Math.ceil(t.length/o)-1,i={P:new Uint32Array(D+1),M:new Uint32Array(D+1),lastRowMask:new Uint32Array(D+1)};i.lastRowMask.fill(1<<31),i.lastRowMask[D]=1<<(t.length-1)%o;for(var a=new Uint32Array(D+1),F=new Map,c=[],s=0;s<256;s++)c.push(a);for(var l=0;l=t.length||t.charCodeAt(C)===f&&(p[E]|=1<0&&d[y]>=e+o;)y-=1;y===D&&d[y]<=e&&(d[y]{"use strict";var r=e(4624),n=e(5096),o=n(r("String.prototype.indexOf"));u.exports=function(u,t){var e=r(u,!!t);return"function"==typeof e&&o(u,".prototype.")>-1?n(e):e}},5096:(u,t,e)=>{"use strict";var r=e(3520),n=e(4624),o=e(5676),D=e(2824),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),F=n("%Reflect.apply%",!0)||r.call(a,i),c=n("%Object.defineProperty%",!0),s=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(u){c=null}u.exports=function(u){if("function"!=typeof u)throw new D("a function is required");var t=F(r,a,arguments);return o(t,1+s(0,u.length-(arguments.length-1)),!0)};var l=function(){return F(r,i,arguments)};c?c(u.exports,"apply",{value:l}):u.exports.apply=l},2448:(u,t,e)=>{"use strict";var r=e(3268)(),n=e(4624),o=r&&n("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var D=e(6500),i=e(2824),a=e(6168);u.exports=function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],s=!!a&&a(u,t);if(o)o(u,t,{configurable:null===F&&s?s.configurable:!F,enumerable:null===r&&s?s.enumerable:!r,value:e,writable:null===n&&s?s.writable:!n});else{if(!c&&(r||n||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");u[t]=e}}},2732:(u,t,e)=>{"use strict";var r=e(2812),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,D=Array.prototype.concat,i=e(2448),a=e(3268)(),F=function(u,t,e,r){if(t in u)if(!0===r){if(u[t]===e)return}else if("function"!=typeof(n=r)||"[object Function]"!==o.call(n)||!r())return;var n;a?i(u,t,e,!0):i(u,t,e)},c=function(u,t){var e=arguments.length>2?arguments[2]:{},o=r(t);n&&(o=D.call(o,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";u.exports=EvalError},1152:u=>{"use strict";u.exports=Error},1932:u=>{"use strict";u.exports=RangeError},5028:u=>{"use strict";u.exports=ReferenceError},6500:u=>{"use strict";u.exports=SyntaxError},2824:u=>{"use strict";u.exports=TypeError},5488:u=>{"use strict";u.exports=URIError},9200:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=e(4712)(),o=e(4440),D=n?Symbol.toStringTag:null;u.exports=function(u,t){var e=arguments.length>2&&arguments[2]&&arguments[2].force;!D||!e&&o(u,D)||(r?r(u,D,{configurable:!0,enumerable:!1,value:t,writable:!1}):u[D]=t)}},108:(u,t,e)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,n=e(5988),o=e(648),D=e(1844),i=e(7256);u.exports=function(u){if(n(u))return u;var t,e="default";if(arguments.length>1&&(arguments[1]===String?e="string":arguments[1]===Number&&(e="number")),r&&(Symbol.toPrimitive?t=function(u,t){var e=u[t];if(null!=e){if(!o(e))throw new TypeError(e+" returned for property "+t+" of object "+u+" is not a function");return e}}(u,Symbol.toPrimitive):i(u)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(u,e);if(n(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===e&&(D(u)||i(u))&&(e="string"),function(u,t){if(null==u)throw new TypeError("Cannot call method on "+u);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var e,r,D,i="string"===t?["toString","valueOf"]:["valueOf","toString"];for(D=0;D{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},1480:u=>{"use strict";var t=Object.prototype.toString,e=Math.max,r=function(u,t){for(var e=[],r=0;r{"use strict";var r=e(1480);u.exports=Function.prototype.bind||r},2656:u=>{"use strict";var t=function(){return"string"==typeof function(){}.name},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch(u){e=null}t.functionsHaveConfigurableNames=function(){if(!t()||!e)return!1;var u=e((function(){}),"name");return!!u&&!!u.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},u.exports=t},4624:(u,t,e)=>{"use strict";var r,n=e(1152),o=e(7261),D=e(1932),i=e(5028),a=e(6500),F=e(2824),c=e(5488),s=Function,l=function(u){try{return s('"use strict"; return ('+u+").constructor;")()}catch(u){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(u){f=null}var p=function(){throw new F},E=f?function(){try{return p}catch(u){try{return f(arguments,"callee").get}catch(u){return p}}}():p,A=e(9800)(),C=e(7e3)(),y=Object.getPrototypeOf||(C?function(u){return u.__proto__}:null),d={},h="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":D,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&y?y(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":h,"%TypeError%":F,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(u){var g=y(y(u));B["%Error.prototype%"]=g}var m=function u(t){var e;if("%AsyncFunction%"===t)e=l("async function () {}");else if("%GeneratorFunction%"===t)e=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=u("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=u("%AsyncGenerator%");n&&y&&(e=y(n.prototype))}return B[t]=e,e},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=e(3520),w=e(4440),x=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,I=function(u,t){var e,r=u;if(w(b,r)&&(r="%"+(e=b[r])[0]+"%"),w(B,r)){var n=B[r];if(n===d&&(n=m(r)),void 0===n&&!t)throw new F("intrinsic "+u+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:n}}throw new a("intrinsic "+u+" does not exist!")};u.exports=function(u,t){if("string"!=typeof u||0===u.length)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new F('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,u))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(u){var t=j(u,0,1),e=j(u,-1);if("%"===t&&"%"!==e)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return O(u,T,(function(u,t,e,n){r[r.length]=e?O(n,R,"$1"):t||u})),r}(u),r=e.length>0?e[0]:"",n=I("%"+r+"%",t),o=n.name,D=n.value,i=!1,c=n.alias;c&&(r=c[0],S(e,x([0,1],c)));for(var s=1,l=!0;s=e.length){var C=f(D,p);D=(l=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:D[p]}else l=w(D,p),D=D[p];l&&!i&&(B[o]=D)}}return D}},6168:(u,t,e)=>{"use strict";var r=e(4624)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(u){r=null}u.exports=r},3268:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=function(){if(r)try{return r({},"a",{value:1}),!0}catch(u){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==r([],"length",{value:1}).length}catch(u){return!0}},u.exports=n},7e3:u=>{"use strict";var t={foo:{}},e=Object;u.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)}},9800:(u,t,e)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=e(7904);u.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},7904:u=>{"use strict";u.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var u={},t=Symbol("test"),e=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(t in u[t]=42,u)return!1;if("function"==typeof Object.keys&&0!==Object.keys(u).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(u).length)return!1;var r=Object.getOwnPropertySymbols(u);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(u,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(u,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},4712:(u,t,e)=>{"use strict";var r=e(7904);u.exports=function(){return r()&&!!Symbol.toStringTag}},4440:(u,t,e)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=e(3520);u.exports=o.call(r,n)},7284:(u,t,e)=>{"use strict";var r=e(4440),n=e(3147)(),o=e(2824),D={assert:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");if(n.assert(u),!D.has(u,t))throw new o("`"+t+"` is not present on `O`")},get:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return e&&e["$"+t]},has:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return!!e&&r(e,"$"+t)},set:function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var r=n.get(u);r||(r={},n.set(u,r)),r["$"+t]=e}};Object.freeze&&Object.freeze(D),u.exports=D},648:u=>{"use strict";var t,e,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},n((function(){throw 42}),null,t)}catch(u){u!==e&&(n=null)}else n=null;var o=/^\s*class\b/,D=function(u){try{var t=r.call(u);return o.test(t)}catch(u){return!1}},i=function(u){try{return!D(u)&&(r.call(u),!0)}catch(u){return!1}},a=Object.prototype.toString,F="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),s=function(){return!1};if("object"==typeof document){var l=document.all;a.call(l)===a.call(document.all)&&(s=function(u){if((c||!u)&&(void 0===u||"object"==typeof u))try{var t=a.call(u);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==u("")}catch(u){}return!1})}u.exports=n?function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;try{n(u,null,t)}catch(u){if(u!==e)return!1}return!D(u)&&i(u)}:function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;if(F)return i(u);if(D(u))return!1;var t=a.call(u);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&i(u)}},1844:(u,t,e)=>{"use strict";var r=Date.prototype.getDay,n=Object.prototype.toString,o=e(4712)();u.exports=function(u){return"object"==typeof u&&null!==u&&(o?function(u){try{return r.call(u),!0}catch(u){return!1}}(u):"[object Date]"===n.call(u))}},1476:(u,t,e)=>{"use strict";var r,n,o,D,i=e(668),a=e(4712)();if(a){r=i("Object.prototype.hasOwnProperty"),n=i("RegExp.prototype.exec"),o={};var F=function(){throw o};D={toString:F,valueOf:F},"symbol"==typeof Symbol.toPrimitive&&(D[Symbol.toPrimitive]=F)}var c=i("Object.prototype.toString"),s=Object.getOwnPropertyDescriptor;u.exports=a?function(u){if(!u||"object"!=typeof u)return!1;var t=s(u,"lastIndex");if(!t||!r(t,"value"))return!1;try{n(u,D)}catch(u){return u===o}}:function(u){return!(!u||"object"!=typeof u&&"function"!=typeof u)&&"[object RegExp]"===c(u)}},7256:(u,t,e)=>{"use strict";var r=Object.prototype.toString;if(e(9800)()){var n=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;u.exports=function(u){if("symbol"==typeof u)return!0;if("[object Symbol]"!==r.call(u))return!1;try{return function(u){return"symbol"==typeof u.valueOf()&&o.test(n.call(u))}(u)}catch(u){return!1}}}else u.exports=function(u){return!1}},4152:(u,t,e)=>{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,D=r&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F=i&&a&&"function"==typeof a.get?a.get:null,c=i&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,E=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,y=String.prototype.slice,d=String.prototype.replace,h=String.prototype.toUpperCase,B=String.prototype.toLowerCase,g=RegExp.prototype.test,m=Array.prototype.concat,b=Array.prototype.join,v=Array.prototype.slice,w=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function I(u,t){if(u===1/0||u===-1/0||u!=u||u&&u>-1e3&&u<1e3||g.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof u){var r=u<0?-w(-u):w(u);if(r!==u){var n=String(r),o=y.call(t,n.length+1);return d.call(n,e,"$&_")+"."+d.call(d.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(t,e,"$&_")}var N=e(1740),M=N.custom,k=U(M)?M:null;function L(u,t,e){var r="double"===(e.quoteStyle||t)?'"':"'";return r+u+r}function $(u){return d.call(String(u),/"/g,""")}function _(u){return!("[object Array]"!==V(u)||P&&"object"==typeof u&&P in u)}function W(u){return!("[object RegExp]"!==V(u)||P&&"object"==typeof u&&P in u)}function U(u){if(j)return u&&"object"==typeof u&&u instanceof Symbol;if("symbol"==typeof u)return!0;if(!u||"object"!=typeof u||!O)return!1;try{return O.call(u),!0}catch(u){}return!1}u.exports=function u(t,r,n,i){var a=r||{};if(G(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var E=!G(a,"customInspect")||a.customInspect;if("boolean"!=typeof E&&"symbol"!==E)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return q(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var g=String(t);return h?I(t,g):g}if("bigint"==typeof t){var w=String(t)+"n";return h?I(t,w):w}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return _(t)?"[Array]":"[Object]";var M,z=function(u,t){var e;if("\t"===u.indent)e="\t";else{if(!("number"==typeof u.indent&&u.indent>0))return null;e=b.call(Array(u.indent+1)," ")}return{base:e,prev:b.call(Array(t+1),e)}}(a,n);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function X(t,e,r){if(e&&(i=v.call(i)).push(e),r){var o={depth:a.depth};return G(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),u(t,o,n+1,i)}return u(t,a,n+1,i)}if("function"==typeof t&&!W(t)){var uu=function(u){if(u.name)return u.name;var t=C.call(A.call(u),/^function\s*([\w$]+)/);return t?t[1]:null}(t),tu=Q(t,X);return"[Function"+(uu?": "+uu:" (anonymous)")+"]"+(tu.length>0?" { "+b.call(tu,", ")+" }":"")}if(U(t)){var eu=j?d.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?eu:Y(eu)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ru="<"+B.call(String(t.nodeName)),nu=t.attributes||[],ou=0;ou"}if(_(t)){if(0===t.length)return"[]";var Du=Q(t,X);return z&&!function(u){for(var t=0;t=0)return!1;return!0}(Du)?"["+Z(Du,z)+"]":"[ "+b.call(Du,", ")+" ]"}if(function(u){return!("[object Error]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)){var iu=Q(t,X);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===iu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(iu,", ")+" }":"{ ["+String(t)+"] "+b.call(m.call("[cause]: "+X(t.cause),iu),", ")+" }"}if("object"==typeof t&&E){if(k&&"function"==typeof t[k]&&N)return N(t,{depth:S-n});if("symbol"!==E&&"function"==typeof t.inspect)return t.inspect()}if(function(u){if(!o||!u||"object"!=typeof u)return!1;try{o.call(u);try{F.call(u)}catch(u){return!0}return u instanceof Map}catch(u){}return!1}(t)){var au=[];return D&&D.call(t,(function(u,e){au.push(X(e,t,!0)+" => "+X(u,t))})),J("Map",o.call(t),au,z)}if(function(u){if(!F||!u||"object"!=typeof u)return!1;try{F.call(u);try{o.call(u)}catch(u){return!0}return u instanceof Set}catch(u){}return!1}(t)){var Fu=[];return c&&c.call(t,(function(u){Fu.push(X(u,t))})),J("Set",F.call(t),Fu,z)}if(function(u){if(!s||!u||"object"!=typeof u)return!1;try{s.call(u,s);try{l.call(u,l)}catch(u){return!0}return u instanceof WeakMap}catch(u){}return!1}(t))return K("WeakMap");if(function(u){if(!l||!u||"object"!=typeof u)return!1;try{l.call(u,l);try{s.call(u,s)}catch(u){return!0}return u instanceof WeakSet}catch(u){}return!1}(t))return K("WeakSet");if(function(u){if(!f||!u||"object"!=typeof u)return!1;try{return f.call(u),!0}catch(u){}return!1}(t))return K("WeakRef");if(function(u){return!("[object Number]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(Number(t)));if(function(u){if(!u||"object"!=typeof u||!x)return!1;try{return x.call(u),!0}catch(u){}return!1}(t))return Y(X(x.call(t)));if(function(u){return!("[object Boolean]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(p.call(t));if(function(u){return!("[object String]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===e.g)return"{ [object globalThis] }";if(!function(u){return!("[object Date]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)&&!W(t)){var cu=Q(t,X),su=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,lu=t instanceof Object?"":"null prototype",fu=!su&&P&&Object(t)===t&&P in t?y.call(V(t),8,-1):lu?"Object":"",pu=(su||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fu||lu?"["+b.call(m.call([],fu||[],lu||[]),": ")+"] ":"");return 0===cu.length?pu+"{}":z?pu+"{"+Z(cu,z)+"}":pu+"{ "+b.call(cu,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(u){return u in this};function G(u,t){return z.call(u,t)}function V(u){return E.call(u)}function H(u,t){if(u.indexOf)return u.indexOf(t);for(var e=0,r=u.length;et.maxStringLength){var e=u.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return q(y.call(u,0,t.maxStringLength),t)+r}return L(d.call(d.call(u,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(u){var t=u.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+h.call(t.toString(16))}function Y(u){return"Object("+u+")"}function K(u){return u+" { ? }"}function J(u,t,e,r){return u+" ("+t+") {"+(r?Z(e,r):b.call(e,", "))+"}"}function Z(u,t){if(0===u.length)return"";var e="\n"+t.prev+t.base;return e+b.call(u,","+e)+"\n"+t.prev}function Q(u,t){var e=_(u),r=[];if(e){r.length=u.length;for(var n=0;n{"use strict";var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,D=e(9096),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),F=i.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(u){var t=u.constructor;return t&&t.prototype===u},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var u in window)try{if(!l["$"+u]&&n.call(window,u)&&null!==window[u]&&"object"==typeof window[u])try{s(window[u])}catch(u){return!0}}catch(u){return!0}return!1}();r=function(u){var t=null!==u&&"object"==typeof u,e="[object Function]"===o.call(u),r=D(u),i=t&&"[object String]"===o.call(u),l=[];if(!t&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var p=F&&e;if(i&&u.length>0&&!n.call(u,0))for(var E=0;E0)for(var A=0;A{"use strict";var r=Array.prototype.slice,n=e(9096),o=Object.keys,D=o?function(u){return o(u)}:e(9560),i=Object.keys;D.shim=function(){if(Object.keys){var u=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);u||(Object.keys=function(u){return n(u)?i(r.call(u)):i(u)})}else Object.keys=D;return Object.keys||D},u.exports=D},9096:u=>{"use strict";var t=Object.prototype.toString;u.exports=function(u){var e=t.call(u),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==u&&"object"==typeof u&&"number"==typeof u.length&&u.length>=0&&"[object Function]"===t.call(u.callee)),r}},7636:(u,t,e)=>{"use strict";var r=e(6308),n=e(2824),o=Object;u.exports=r((function(){if(null==this||this!==o(this))throw new n("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u}),"get flags",!0)},2192:(u,t,e)=>{"use strict";var r=e(2732),n=e(5096),o=e(7636),D=e(9296),i=e(736),a=n(D());r(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},9296:(u,t,e)=>{"use strict";var r=e(7636),n=e(2732).supportsDescriptors,o=Object.getOwnPropertyDescriptor;u.exports=function(){if(n&&"gim"===/a/gim.flags){var u=o(RegExp.prototype,"flags");if(u&&"function"==typeof u.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",e={};if(Object.defineProperty(e,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(e,"sticky",{get:function(){t+="y"}}),"dy"===t)return u.get}}return r}},736:(u,t,e)=>{"use strict";var r=e(2732).supportsDescriptors,n=e(9296),o=Object.getOwnPropertyDescriptor,D=Object.defineProperty,i=TypeError,a=Object.getPrototypeOf,F=/a/;u.exports=function(){if(!r||!a)throw new i("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=n(),t=a(F),e=o(t,"flags");return e&&e.get===u||D(t,"flags",{configurable:!0,enumerable:!1,get:u}),u}},860:(u,t,e)=>{"use strict";var r=e(668),n=e(1476),o=r("RegExp.prototype.exec"),D=e(2824);u.exports=function(u){if(!n(u))throw new D("`regex` must be a RegExp");return function(t){return null!==o(u,t)}}},5676:(u,t,e)=>{"use strict";var r=e(4624),n=e(2448),o=e(3268)(),D=e(6168),i=e(2824),a=r("%Math.floor%");u.exports=function(u,t){if("function"!=typeof u)throw new i("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||a(t)!==t)throw new i("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],r=!0,F=!0;if("length"in u&&D){var c=D(u,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(F=!1)}return(r||F||!e)&&(o?n(u,"length",t,!0,!0):n(u,"length",t)),u}},6308:(u,t,e)=>{"use strict";var r=e(2448),n=e(3268)(),o=e(2656).functionsHaveConfigurableNames(),D=TypeError;u.exports=function(u,t){if("function"!=typeof u)throw new D("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(n?r(u,"name",t,!0,!0):r(u,"name",t)),u}},3147:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=e(4152),D=e(2824),i=r("%WeakMap%",!0),a=r("%Map%",!0),F=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),l=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),E=function(u,t){for(var e,r=u;null!==(e=r.next);r=e)if(e.key===t)return r.next=e.next,e.next=u.next,u.next=e,e};u.exports=function(){var u,t,e,r={assert:function(u){if(!r.has(u))throw new D("Side channel does not contain "+o(u))},get:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return F(u,r)}else if(a){if(t)return l(t,r)}else if(e)return function(u,t){var e=E(u,t);return e&&e.value}(e,r)},has:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return s(u,r)}else if(a){if(t)return p(t,r)}else if(e)return function(u,t){return!!E(u,t)}(e,r);return!1},set:function(r,n){i&&r&&("object"==typeof r||"function"==typeof r)?(u||(u=new i),c(u,r,n)):a?(t||(t=new a),f(t,r,n)):(e||(e={key:{},next:null}),function(u,t,e){var r=E(u,t);r?r.value=e:u.next={key:t,next:u.next,value:e}}(e,r,n))}};return r}},9508:(u,t,e)=>{"use strict";var r=e(1700),n=e(3672),o=e(5552),D=e(3816),i=e(5424),a=e(4656),F=e(668),c=e(9800)(),s=e(2192),l=F("String.prototype.indexOf"),f=e(6288),p=function(u){var t=f();if(c&&"symbol"==typeof Symbol.matchAll){var e=o(u,Symbol.matchAll);return e===RegExp.prototype[Symbol.matchAll]&&e!==t?t:e}if(D(u))return t};u.exports=function(u){var t=a(this);if(null!=u){if(D(u)){var e="flags"in u?n(u,"flags"):s(u);if(a(e),l(i(e),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var o=p(u);if(void 0!==o)return r(o,u,[t])}var F=i(t),c=new RegExp(u,"g");return r(p(c),c,[F])}},3732:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(9508),D=e(5844),i=e(4148),a=r(o);n(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},6288:(u,t,e)=>{"use strict";var r=e(9800)(),n=e(7492);u.exports=function(){return r&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:n}},5844:(u,t,e)=>{"use strict";var r=e(9508);u.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(u){return String.prototype.matchAll}return r}},7492:(u,t,e)=>{"use strict";var r=e(5211),n=e(3672),o=e(4e3),D=e(8652),i=e(4784),a=e(5424),F=e(8645),c=e(2192),s=e(6308),l=e(668)("String.prototype.indexOf"),f=RegExp,p="flags"in RegExp.prototype,E=s((function(u){var t=this;if("Object"!==F(t))throw new TypeError('"this" value must be an Object');var e=a(u),s=function(u,t){var e="flags"in t?n(t,"flags"):a(c(t));return{flags:e,matcher:new u(p&&"string"==typeof e?t:u===f?t.source:t,e)}}(D(t,f),t),E=s.flags,A=s.matcher,C=i(n(t,"lastIndex"));o(A,"lastIndex",C,!0);var y=l(E,"g")>-1,d=l(E,"u")>-1;return r(A,e,y,d)}),"[Symbol.matchAll]",!0);u.exports=E},4148:(u,t,e)=>{"use strict";var r=e(2732),n=e(9800)(),o=e(5844),D=e(6288),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor;u.exports=function(){var u=o();if(r(String.prototype,{matchAll:u},{matchAll:function(){return String.prototype.matchAll!==u}}),n){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(r(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),i&&a){var e=a(Symbol,t);e&&!e.configurable||i(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var F=D(),c={};c[t]=F;var s={};s[t]=function(){return RegExp.prototype[t]!==F},r(RegExp.prototype,c,s)}return u}},6936:(u,t,e)=>{"use strict";var r=e(4656),n=e(5424),o=e(668)("String.prototype.replace"),D=/^\s$/.test("᠎"),i=D?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=D?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;u.exports=function(){var u=n(r(this));return o(o(u,i,""),a,"")}},9292:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(4656),D=e(6936),i=e(6684),a=e(9788),F=r(i()),c=function(u){return o(u),F(u)};n(c,{getPolyfill:i,implementation:D,shim:a}),u.exports=c},6684:(u,t,e)=>{"use strict";var r=e(6936);u.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},9788:(u,t,e)=>{"use strict";var r=e(2732),n=e(6684);u.exports=function(){var u=n();return r(String.prototype,{trim:u},{trim:function(){return String.prototype.trim!==u}}),u}},1740:()=>{},1056:(u,t,e)=>{"use strict";var r=e(4624),n=e(8536),o=e(8645),D=e(7724),i=e(9132),a=r("%TypeError%");u.exports=function(u,t,e){if("String"!==o(u))throw new a("Assertion failed: `S` must be a String");if(!D(t)||t<0||t>i)throw new a("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==o(e))throw new a("Assertion failed: `unicode` must be a Boolean");return e?t+1>=u.length?t+1:t+n(u,t)["[[CodeUnitCount]]"]:t+1}},1700:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=r("%TypeError%"),D=e(1720),i=r("%Reflect.apply%",!0)||n("Function.prototype.apply");u.exports=function(u,t){var e=arguments.length>2?arguments[2]:[];if(!D(e))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(u,t,e)}},8536:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668),o=e(1712),D=e(8444),i=e(8645),a=e(2320),F=n("String.prototype.charAt"),c=n("String.prototype.charCodeAt");u.exports=function(u,t){if("String"!==i(u))throw new r("Assertion failed: `string` must be a String");var e=u.length;if(t<0||t>=e)throw new r("Assertion failed: `position` must be >= 0, and < the length of `string`");var n=c(u,t),s=F(u,t),l=o(n),f=D(n);if(!l&&!f)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(f||t+1===e)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var p=c(u,t+1);return D(p)?{"[[CodePoint]]":a(n,p),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4288:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(8645);u.exports=function(u,t){if("Boolean"!==n(t))throw new r("Assertion failed: Type(done) is not Boolean");return{value:u,done:t}}},2672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4436),o=e(8924),D=e(3880),i=e(2968),a=e(8800),F=e(8645);u.exports=function(u,t,e){if("Object"!==F(u))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");return n(D,a,o,u,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":e,"[[Writable]]":!0})}},5211:(u,t,e)=>{"use strict";var r=e(4624),n=e(9800)(),o=r("%TypeError%"),D=r("%IteratorPrototype%",!0),i=e(1056),a=e(4288),F=e(2672),c=e(3672),s=e(6216),l=e(8972),f=e(4e3),p=e(4784),E=e(5424),A=e(8645),C=e(7284),y=e(9200),d=function(u,t,e,r){if("String"!==A(t))throw new o("`S` must be a string");if("Boolean"!==A(e))throw new o("`global` must be a boolean");if("Boolean"!==A(r))throw new o("`fullUnicode` must be a boolean");C.set(this,"[[IteratingRegExp]]",u),C.set(this,"[[IteratedString]]",t),C.set(this,"[[Global]]",e),C.set(this,"[[Unicode]]",r),C.set(this,"[[Done]]",!1)};D&&(d.prototype=s(D)),F(d.prototype,"next",(function(){var u=this;if("Object"!==A(u))throw new o("receiver must be an object");if(!(u instanceof d&&C.has(u,"[[IteratingRegExp]]")&&C.has(u,"[[IteratedString]]")&&C.has(u,"[[Global]]")&&C.has(u,"[[Unicode]]")&&C.has(u,"[[Done]]")))throw new o('"this" value must be a RegExpStringIterator instance');if(C.get(u,"[[Done]]"))return a(void 0,!0);var t=C.get(u,"[[IteratingRegExp]]"),e=C.get(u,"[[IteratedString]]"),r=C.get(u,"[[Global]]"),n=C.get(u,"[[Unicode]]"),D=l(t,e);if(null===D)return C.set(u,"[[Done]]",!0),a(void 0,!0);if(r){if(""===E(c(D,"0"))){var F=p(c(t,"lastIndex")),s=i(e,F,n);f(t,"lastIndex",s,!0)}return a(D,!1)}return C.set(u,"[[Done]]",!0),a(D,!1)})),n&&(y(d.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof d.prototype[Symbol.iterator])&&F(d.prototype,Symbol.iterator,(function(){return this})),u.exports=function(u,t,e,r){return new d(u,t,e,r)}},7268:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(320),o=e(4436),D=e(8924),i=e(4936),a=e(3880),F=e(2968),c=e(8800),s=e(5696),l=e(8645);u.exports=function(u,t,e){if("Object"!==l(u))throw new r("Assertion failed: Type(O) is not Object");if(!F(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},e)?e:s(e);if(!n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},f))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(a,c,D,u,t,f)}},8924:(u,t,e)=>{"use strict";var r=e(3600),n=e(3504),o=e(8645);u.exports=function(u){return void 0!==u&&r(o,"Property Descriptor","Desc",u),n(u)}},3672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968),D=e(8645);u.exports=function(u,t){if("Object"!==D(u))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},5552:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(3396),o=e(3048),D=e(2968),i=e(4152);u.exports=function(u,t){if(!D(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var e=n(u,t);if(null!=e){if(!o(e))throw new r(i(t)+" is not a function: "+i(e));return e}}},3396:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968);u.exports=function(u,t){if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},4936:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Get]]")&&!r(u,"[[Set]]")))}},1720:(u,t,e)=>{"use strict";u.exports=e(704)},3048:(u,t,e)=>{"use strict";u.exports=e(648)},211:(u,t,e)=>{"use strict";var r=e(8600)("%Reflect.construct%",!0),n=e(7268);try{n({},"",{"[[Get]]":function(){}})}catch(u){n=null}if(n&&r){var o={},D={};n(D,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),u.exports=function(u){try{r(u,D)}catch(u){return u===o}}}else u.exports=function(u){return"function"==typeof u&&!!u.prototype}},3880:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Value]]")&&!r(u,"[[Writable]]")))}},2968:u=>{"use strict";u.exports=function(u){return"string"==typeof u||"symbol"==typeof u}},3816:(u,t,e)=>{"use strict";var r=e(4624)("%Symbol.match%",!0),n=e(1476),o=e(6848);u.exports=function(u){if(!u||"object"!=typeof u)return!1;if(r){var t=u[r];if(void 0!==t)return o(t)}return n(u)}},6216:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Object.create%",!0),o=r("%TypeError%"),D=r("%SyntaxError%"),i=e(1720),a=e(8645),F=e(4672),c=e(7284),s=e(7e3)();u.exports=function(u){if(null!==u&&"Object"!==a(u))throw new o("Assertion failed: `proto` must be null or an object");var t,e=arguments.length<2?[]:arguments[1];if(!i(e))throw new o("Assertion failed: `additionalInternalSlotsList` must be an Array");if(n)t=n(u);else if(s)t={__proto__:u};else{if(null===u)throw new D("native Object.create support is required to create null objects");var r=function(){};r.prototype=u,t=new r}return e.length>0&&F(e,(function(u){c.set(t,u,void 0)})),t}},8972:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668)("RegExp.prototype.exec"),o=e(1700),D=e(3672),i=e(3048),a=e(8645);u.exports=function(u,t){if("Object"!==a(u))throw new r("Assertion failed: `R` must be an Object");if("String"!==a(t))throw new r("Assertion failed: `S` must be a String");var e=D(u,"exec");if(i(e)){var F=o(e,u,[t]);if(null===F||"Object"===a(F))return F;throw new r('"exec" method must return `null` or an Object')}return n(u,t)}},4656:(u,t,e)=>{"use strict";u.exports=e(176)},8800:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u,t){return u===t?0!==u||1/u==1/t:r(u)&&r(t)}},4e3:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(2968),o=e(8800),D=e(8645),i=function(){try{return delete[].length,!0}catch(u){return!1}}();u.exports=function(u,t,e,a){if("Object"!==D(u))throw new r("Assertion failed: `O` must be an Object");if(!n(t))throw new r("Assertion failed: `P` must be a Property Key");if("Boolean"!==D(a))throw new r("Assertion failed: `Throw` must be a Boolean");if(a){if(u[t]=e,i&&!o(u[t],e))throw new r("Attempted to assign to readonly property.");return!0}try{return u[t]=e,!i||o(u[t],e)}catch(u){return!1}}},8652:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Symbol.species%",!0),o=r("%TypeError%"),D=e(211),i=e(8645);u.exports=function(u,t){if("Object"!==i(u))throw new o("Assertion failed: Type(O) is not Object");var e=u.constructor;if(void 0===e)return t;if("Object"!==i(e))throw new o("O.constructor is not an Object");var r=n?e[n]:void 0;if(null==r)return t;if(D(r))return r;throw new o("no constructor found")}},8772:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Number%"),o=r("%RegExp%"),D=r("%TypeError%"),i=r("%parseInt%"),a=e(668),F=e(860),c=a("String.prototype.slice"),s=F(/^0b[01]+$/i),l=F(/^0o[0-7]+$/i),f=F(/^[-+]0x[0-9a-f]+$/i),p=F(new o("["+["…","​","￾"].join("")+"]","g")),E=e(9292),A=e(8645);u.exports=function u(t){if("String"!==A(t))throw new D("Assertion failed: `argument` is not a String");if(s(t))return n(i(c(t,2),2));if(l(t))return n(i(c(t,2),8));if(p(t)||f(t))return NaN;var e=E(t);return e!==t?u(e):n(t)}},6848:u=>{"use strict";u.exports=function(u){return!!u}},9424:(u,t,e)=>{"use strict";var r=e(7220),n=e(2592),o=e(2808),D=e(2931);u.exports=function(u){var t=r(u);return o(t)||0===t?0:D(t)?n(t):t}},4784:(u,t,e)=>{"use strict";var r=e(9132),n=e(9424);u.exports=function(u){var t=n(u);return t<=0?0:t>r?r:t}},7220:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%Number%"),D=e(2336),i=e(5556),a=e(8772);u.exports=function(u){var t=D(u)?u:i(u,o);if("symbol"==typeof t)throw new n("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new n("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?a(t):o(t)}},5556:(u,t,e)=>{"use strict";var r=e(108);u.exports=function(u){return arguments.length>1?r(u,arguments[1]):r(u)}},5696:(u,t,e)=>{"use strict";var r=e(4440),n=e(4624)("%TypeError%"),o=e(8645),D=e(6848),i=e(3048);u.exports=function(u){if("Object"!==o(u))throw new n("ToPropertyDescriptor requires an object");var t={};if(r(u,"enumerable")&&(t["[[Enumerable]]"]=D(u.enumerable)),r(u,"configurable")&&(t["[[Configurable]]"]=D(u.configurable)),r(u,"value")&&(t["[[Value]]"]=u.value),r(u,"writable")&&(t["[[Writable]]"]=D(u.writable)),r(u,"get")){var e=u.get;if(void 0!==e&&!i(e))throw new n("getter must be a function");t["[[Get]]"]=e}if(r(u,"set")){var a=u.set;if(void 0!==a&&!i(a))throw new n("setter must be a function");t["[[Set]]"]=a}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new n("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},5424:(u,t,e)=>{"use strict";var r=e(4624),n=r("%String%"),o=r("%TypeError%");u.exports=function(u){if("symbol"==typeof u)throw new o("Cannot convert a Symbol value to a string");return n(u)}},8645:(u,t,e)=>{"use strict";var r=e(7936);u.exports=function(u){return"symbol"==typeof u?"Symbol":"bigint"==typeof u?"BigInt":r(u)}},2320:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%String.fromCharCode%"),D=e(1712),i=e(8444);u.exports=function(u,t){if(!D(u)||!i(t))throw new n("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(u)+o(t)}},2312:(u,t,e)=>{"use strict";var r=e(8645),n=Math.floor;u.exports=function(u){return"BigInt"===r(u)?u:n(u)}},2592:(u,t,e)=>{"use strict";var r=e(4624),n=e(2312),o=r("%TypeError%");u.exports=function(u){if("number"!=typeof u&&"bigint"!=typeof u)throw new o("argument must be a Number or a BigInt");var t=u<0?-n(-u):n(u);return 0===t?0:t}},176:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%");u.exports=function(u,t){if(null==u)throw new r(t||"Cannot call method on "+u);return u}},7936:u=>{"use strict";u.exports=function(u){return null===u?"Null":void 0===u?"Undefined":"function"==typeof u||"object"==typeof u?"Object":"number"==typeof u?"Number":"boolean"==typeof u?"Boolean":"string"==typeof u?"String":void 0}},8600:(u,t,e)=>{"use strict";u.exports=e(4624)},4436:(u,t,e)=>{"use strict";var r=e(3268),n=e(4624),o=r()&&n("%Object.defineProperty%",!0),D=r.hasArrayLengthDefineBug(),i=D&&e(704),a=e(668)("Object.prototype.propertyIsEnumerable");u.exports=function(u,t,e,r,n,F){if(!o){if(!u(F))return!1;if(!F["[[Configurable]]"]||!F["[[Writable]]"])return!1;if(n in r&&a(r,n)!==!!F["[[Enumerable]]"])return!1;var c=F["[[Value]]"];return r[n]=c,t(r[n],c)}return D&&"length"===n&&"[[Value]]"in F&&i(r)&&r.length!==F["[[Value]]"]?(r.length=F["[[Value]]"],r.length===F["[[Value]]"]):(o(r,n,e(F)),!0)}},704:(u,t,e)=>{"use strict";var r=e(4624)("%Array%"),n=!r.isArray&&e(668)("Object.prototype.toString");u.exports=r.isArray||function(u){return"[object Array]"===n(u)}},3600:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%SyntaxError%"),D=e(4440),i=e(7724),a={"Property Descriptor":function(u){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!u)return!1;for(var e in u)if(D(u,e)&&!t[e])return!1;var r=D(u,"[[Value]]"),o=D(u,"[[Get]]")||D(u,"[[Set]]");if(r&&o)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":e(5092),"Iterator Record":function(u){return D(u,"[[Iterator]]")&&D(u,"[[NextMethod]]")&&D(u,"[[Done]]")},"PromiseCapability Record":function(u){return!!u&&D(u,"[[Resolve]]")&&"function"==typeof u["[[Resolve]]"]&&D(u,"[[Reject]]")&&"function"==typeof u["[[Reject]]"]&&D(u,"[[Promise]]")&&u["[[Promise]]"]&&"function"==typeof u["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(u){return!!u&&D(u,"[[Completion]]")&&D(u,"[[Capability]]")&&a["PromiseCapability Record"](u["[[Capability]]"])},"RegExp Record":function(u){return u&&D(u,"[[IgnoreCase]]")&&"boolean"==typeof u["[[IgnoreCase]]"]&&D(u,"[[Multiline]]")&&"boolean"==typeof u["[[Multiline]]"]&&D(u,"[[DotAll]]")&&"boolean"==typeof u["[[DotAll]]"]&&D(u,"[[Unicode]]")&&"boolean"==typeof u["[[Unicode]]"]&&D(u,"[[CapturingGroupsCount]]")&&"number"==typeof u["[[CapturingGroupsCount]]"]&&i(u["[[CapturingGroupsCount]]"])&&u["[[CapturingGroupsCount]]"]>=0}};u.exports=function(u,t,e,r){var D=a[t];if("function"!=typeof D)throw new o("unknown record type: "+t);if("Object"!==u(r)||!D(r))throw new n(e+" must be a "+t)}},4672:u=>{"use strict";u.exports=function(u,t){for(var e=0;e{"use strict";u.exports=function(u){if(void 0===u)return u;var t={};return"[[Value]]"in u&&(t.value=u["[[Value]]"]),"[[Writable]]"in u&&(t.writable=!!u["[[Writable]]"]),"[[Get]]"in u&&(t.get=u["[[Get]]"]),"[[Set]]"in u&&(t.set=u["[[Set]]"]),"[[Enumerable]]"in u&&(t.enumerable=!!u["[[Enumerable]]"]),"[[Configurable]]"in u&&(t.configurable=!!u["[[Configurable]]"]),t}},2931:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u){return("number"==typeof u||"bigint"==typeof u)&&!r(u)&&u!==1/0&&u!==-1/0}},7724:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Math.abs%"),o=r("%Math.floor%"),D=e(2808),i=e(2931);u.exports=function(u){if("number"!=typeof u||D(u)||!i(u))return!1;var t=n(u);return o(t)===t}},1712:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=55296&&u<=56319}},5092:(u,t,e)=>{"use strict";var r=e(4440);u.exports=function(u){return r(u,"[[StartIndex]]")&&r(u,"[[EndIndex]]")&&u["[[StartIndex]]"]>=0&&u["[[EndIndex]]"]>=u["[[StartIndex]]"]&&String(parseInt(u["[[StartIndex]]"],10))===String(u["[[StartIndex]]"])&&String(parseInt(u["[[EndIndex]]"],10))===String(u["[[EndIndex]]"])}},2808:u=>{"use strict";u.exports=Number.isNaN||function(u){return u!=u}},2336:u=>{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},320:(u,t,e)=>{"use strict";var r=e(4624),n=e(4440),o=r("%TypeError%");u.exports=function(u,t){if("Object"!==u.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(n(t,r)&&!e[r])return!1;if(u.IsDataDescriptor(t)&&u.IsAccessorDescriptor(t))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},8444:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=56320&&u<=57343}},9132:u=>{"use strict";u.exports=Number.MAX_SAFE_INTEGER||9007199254740991}},t={};function e(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return u[r](o,o.exports,e),o.exports}e.n=u=>{var t=u&&u.__esModule?()=>u.default:()=>u;return e.d(t,{a:t}),t},e.d=(u,t)=>{for(var r in t)e.o(t,r)&&!e.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:t[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(u){if("object"==typeof window)return window}}(),e.o=(u,t)=>Object.prototype.hasOwnProperty.call(u,t),(()=>{"use strict";var u=e(9116);function t(t,e,r){let n=0,o=[];for(;-1!==n;)n=t.indexOf(e,n),-1!==n&&(o.push({start:n,end:n+e.length,errors:0}),n+=1);return o.length>0?o:(0,u.c)(t,e,r)}function r(u,e){return 0===e.length||0===u.length?0:1-t(u,e,e.length)[0].errors/e.length}function n(u){switch(u.nodeType){case Node.ELEMENT_NODE:case Node.TEXT_NODE:return u.textContent.length;default:return 0}}function o(u){let t=u.previousSibling,e=0;for(;t;)e+=n(t),t=t.previousSibling;return e}function D(u){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;rn?(D.push({node:i,offset:n-F}),n=e.shift()):(a=o.nextNode(),F+=i.data.length);for(;void 0!==n&&i&&F===n;)D.push({node:i,offset:i.data.length}),n=e.shift();if(void 0!==n)throw new RangeError("Offset exceeds text length");return D}class i{constructor(u,t){if(t<0)throw new Error("Offset is invalid");this.element=u,this.offset=t}relativeTo(u){if(!u.contains(this.element))throw new Error("Parent is not an ancestor of current element");let t=this.element,e=this.offset;for(;t!==u;)e+=o(t),t=t.parentElement;return new i(t,e)}resolve(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return D(this.element,this.offset)[0]}catch(t){if(0===this.offset&&void 0!==u.direction){const e=document.createTreeWalker(this.element.getRootNode(),NodeFilter.SHOW_TEXT);e.currentNode=this.element;const r=1===u.direction,n=r?e.nextNode():e.previousNode();if(!n)throw t;return{node:n,offset:r?0:n.data.length}}throw t}}static fromCharOffset(u,t){switch(u.nodeType){case Node.TEXT_NODE:return i.fromPoint(u,t);case Node.ELEMENT_NODE:return new i(u,t);default:throw new Error("Node is not an element or text node")}}static fromPoint(u,t){switch(u.nodeType){case Node.TEXT_NODE:{if(t<0||t>u.data.length)throw new Error("Text node offset is out of range");if(!u.parentElement)throw new Error("Text node has no parent");const e=o(u)+t;return new i(u.parentElement,e)}case Node.ELEMENT_NODE:{if(t<0||t>u.childNodes.length)throw new Error("Child node offset is out of range");let e=0;for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:{};this.root=u,this.exact=t,this.context=e}static fromRange(u,t){const e=u.textContent,r=a.fromRange(t).relativeTo(u),n=r.start.offset,o=r.end.offset;return new l(u,e.slice(n,o),{prefix:e.slice(Math.max(0,n-32),n),suffix:e.slice(o,Math.min(e.length,o+32))})}static fromSelector(u,t){const{prefix:e,suffix:r}=t;return new l(u,t.exact,{prefix:e,suffix:r})}toSelector(){return{type:"TextQuoteSelector",exact:this.exact,prefix:this.context.prefix,suffix:this.context.suffix}}toRange(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.toPositionAnchor(u).toRange()}toPositionAnchor(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=function(u,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===e.length)return null;const o=Math.min(256,e.length/2),D=t(u,e,o);if(0===D.length)return null;const i=t=>{const o=1-t.errors/e.length,D=n.prefix?r(u.slice(Math.max(0,t.start-n.prefix.length),t.start),n.prefix):1,i=n.suffix?r(u.slice(t.end,t.end+n.suffix.length),n.suffix):1;let a=1;return"number"==typeof n.hint&&(a=1-Math.abs(t.start-n.hint)/u.length),(50*o+20*D+20*i+2*a)/92},a=D.map((u=>({start:u.start,end:u.end,score:i(u)})));return a.sort(((u,t)=>t.score-u.score)),a[0]}(this.root.textContent,this.exact,c(c({},this.context),{},{hint:u.hint}));if(!e)throw new Error("Quote not found");return new s(this.root,e.start,e.end)}}var f=e(3732);e.n(f)().shim();const p=!0;function E(){if(!readium.link)return null;const u=readium.link.href;if(!u)return null;const t=function(){const u=window.getSelection();if(!u)return;if(u.isCollapsed)return;const t=u.toString();if(0===t.trim().replace(/\n/g," ").replace(/\s\s+/g," ").length)return;if(!u.anchorNode||!u.focusNode)return;const e=1===u.rangeCount?u.getRangeAt(0):function(u,t,e,r){const n=new Range;if(n.setStart(u,t),n.setEnd(e,r),!n.collapsed)return n;A(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");const o=new Range;if(o.setStart(e,r),o.setEnd(u,t),!o.collapsed)return A(">>> createOrderedRange RANGE REVERSE OK."),n;A(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!")}(u.anchorNode,u.anchorOffset,u.focusNode,u.focusOffset);if(!e||e.collapsed)return void A("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");const r=document.body.textContent,n=a.fromRange(e).relativeTo(document.body),o=n.start.offset,D=n.end.offset;let i=r.slice(Math.max(0,o-200),o),F=i.search(/(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\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4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC-\uDFFF]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5-\uDCFF\uDD44-\uDD4A\uDD4C-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\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uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/g);-1!==F&&(i=i.slice(F+1));let c=r.slice(D,Math.min(r.length,D+200)),s=Array.from(c.matchAll(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAA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E00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\u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E53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)).pop();return void 0!==s&&s.index>1&&(c=c.slice(0,s.index+1)),{highlight:t,before:i,after:c}}();return t?{href:u,text:t,rect:function(){try{let u=window.getSelection();if(!u)return;return N(u.getRangeAt(0).getBoundingClientRect())}catch(u){return R(u),null}}()}:null}function A(){p&&P.apply(null,arguments)}window.addEventListener("error",(function(u){webkit.messageHandlers.logError.postMessage({message:u.message,filename:u.filename,line:u.lineno})}),!1),window.addEventListener("load",(function(){new ResizeObserver((()=>{!function(){const u="readium-virtual-page";var t=document.getElementById(u);if(b()||2!=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("column-count"))){var e;null===(e=t)||void 0===e||e.remove()}else{var r=document.scrollingElement.scrollWidth/window.innerWidth;Math.round(2*r)/2%1>.1&&(t?t.remove():((t=document.createElement("div")).setAttribute("id",u),t.style.breakBefore="column",t.innerHTML="​",document.body.appendChild(t)))}}()})).observe(document.body),window.addEventListener("orientationchange",(function(){m(),function(){if(!b()){var u=x(window.scrollX+1);document.scrollingElement.scrollLeft=u}}()})),m()}),!1);var C,y,d=0,h=0,B=!1,g=0;function m(){g=0===window.orientation||180==window.orientation?screen.width:screen.height}function b(){return"readium-scroll-on"==document.documentElement.style.getPropertyValue("--USER__view").trim()}function v(u){return b()?document.scrollingElement.scrollTop=u.top+window.scrollY:document.scrollingElement.scrollLeft=x(u.left+window.scrollX),!0}function w(u){var t=window.scrollX,e=window.innerWidth;return document.scrollingElement.scrollLeft=u,Math.abs(t-u)/e>.01}function x(u){var t=u+1;return t-t%g}function S(u){try{let r=u.locations,n=u.text;var t;if(n&&n.highlight)return r&&r.cssSelector&&(t=document.querySelector(r.cssSelector)),t||(t=document.body),new l(t,n.highlight,{prefix:n.before,suffix:n.after}).toRange();if(r){var e=null;if(!e&&r.cssSelector&&(e=document.querySelector(r.cssSelector)),!e&&r.fragments)for(const u of r.fragments)if(e=document.getElementById(u))break;if(e){let u=document.createRange();return u.setStartBefore(e),u.setEndAfter(e),u}}}catch(u){R(u)}return null}function O(u,t){null===t?j(u):document.documentElement.style.setProperty(u,t,"important")}function j(u){document.documentElement.style.removeProperty(u)}function P(){var u=Array.prototype.slice.call(arguments).join(" ");webkit.messageHandlers.log.postMessage(u)}function T(u){R(new Error(u))}function R(u){webkit.messageHandlers.logError.postMessage({message:u.message})}window.addEventListener("scroll",(function(){h=window.scrollY/document.scrollingElement.scrollHeight,d=Math.abs(window.scrollX/document.scrollingElement.scrollWidth),0!==document.scrollingElement.scrollWidth&&0!==document.scrollingElement.scrollHeight&&(B||window.requestAnimationFrame((function(){var u;u=(b()?h:d).toString(),webkit.messageHandlers.progressionChanged.postMessage(u),B=!1})),B=!0)})),document.addEventListener("selectionchange",(50,C=function(){webkit.messageHandlers.selectionChanged.postMessage(E())},function(){var u=this,t=arguments;clearTimeout(y),y=setTimeout((function(){C.apply(u,t),y=null}),50)}));const I=!1;function N(u){let t=M({x:u.left,y:u.top});const e=u.width,r=u.height,n=t.x,o=t.y;return{width:e,height:r,left:n,top:o,right:n+e,bottom:o+r}}function M(u){if(!frameElement)return u;let t=frameElement.getBoundingClientRect();if(!t)return u;let e=window.top.document.documentElement;return{x:u.x+t.x+e.scrollLeft,y:u.y+t.y+e.scrollTop}}function k(u,t){let e=u.getClientRects();const r=[];for(const u of e)r.push({bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width});const n=U(function(u,t){const e=new Set(u);for(const t of u)if(t.width>1&&t.height>1){for(const r of u)if(t!==r&&e.has(r)&&_(r,t,1)){H("CLIENT RECT: remove contained"),e.delete(t);break}}else H("CLIENT RECT: remove tiny"),e.delete(t);return Array.from(e)}(L(r,1,t)));for(let u=n.length-1;u>=0;u--){const t=n[u];if(!(t.width*t.height>4)){if(!(n.length>1)){H("CLIENT RECT: remove small, but keep otherwise empty!");break}H("CLIENT RECT: remove small"),n.splice(u,1)}}return H("CLIENT RECT: reduced ".concat(r.length," --\x3e ").concat(n.length)),n}function L(u,t,e){for(let r=0;ru!==o&&u!==D)),n=$(o,D);return r.push(n),L(r,t,e)}}return u}function $(u,t){const e=Math.min(u.left,t.left),r=Math.max(u.right,t.right),n=Math.min(u.top,t.top),o=Math.max(u.bottom,t.bottom);return{bottom:o,height:o-n,left:e,right:r,top:n,width:r-e}}function _(u,t,e){return W(u,t.left,t.top,e)&&W(u,t.right,t.top,e)&&W(u,t.left,t.bottom,e)&&W(u,t.right,t.bottom,e)}function W(u,t,e,r){return(u.leftt||V(u.right,t,r))&&(u.tope||V(u.bottom,e,r))}function U(u){for(let t=0;tu!==t));return Array.prototype.push.apply(D,e),U(D)}}else H("replaceOverlapingRects rect1 === rect2 ??!")}return u}function z(u,t){const e=function(u,t){const e=Math.max(u.left,t.left),r=Math.min(u.right,t.right),n=Math.max(u.top,t.top),o=Math.min(u.bottom,t.bottom);return{bottom:o,height:Math.max(0,o-n),left:e,right:r,top:n,width:Math.max(0,r-e)}}(t,u);if(0===e.height||0===e.width)return[u];const r=[];{const t={bottom:u.bottom,height:0,left:u.left,right:e.left,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:e.top,height:0,left:e.left,right:e.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.left,right:e.right,top:e.bottom,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.right,right:u.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}return r}function G(u,t,e){return(u.left=0&&V(u.left,t.right,e))&&(t.left=0&&V(t.left,u.right,e))&&(u.top=0&&V(u.top,t.bottom,e))&&(t.top=0&&V(t.top,u.bottom,e))}function V(u,t,e){return Math.abs(u-t)<=e}function H(){I&&P.apply(null,arguments)}var q,X=[],Y="ResizeObserver loop completed with undelivered notifications.";!function(u){u.BORDER_BOX="border-box",u.CONTENT_BOX="content-box",u.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(q||(q={}));var K,J=function(u){return Object.freeze(u)},Z=function(u,t){this.inlineSize=u,this.blockSize=t,J(this)},Q=function(){function u(u,t,e,r){return this.x=u,this.y=t,this.width=e,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,J(this)}return u.prototype.toJSON=function(){var u=this;return{x:u.x,y:u.y,top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.width,height:u.height}},u.fromRect=function(t){return new u(t.x,t.y,t.width,t.height)},u}(),uu=function(u){return u instanceof SVGElement&&"getBBox"in u},tu=function(u){if(uu(u)){var t=u.getBBox(),e=t.width,r=t.height;return!e&&!r}var n=u,o=n.offsetWidth,D=n.offsetHeight;return!(o||D||u.getClientRects().length)},eu=function(u){var t;if(u instanceof Element)return!0;var e=null===(t=null==u?void 0:u.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(e&&u instanceof e.Element)},ru="undefined"!=typeof window?window:{},nu=new WeakMap,ou=/auto|scroll/,Du=/^tb|vertical/,iu=/msie|trident/i.test(ru.navigator&&ru.navigator.userAgent),au=function(u){return parseFloat(u||"0")},Fu=function(u,t,e){return void 0===u&&(u=0),void 0===t&&(t=0),void 0===e&&(e=!1),new Z((e?t:u)||0,(e?u:t)||0)},cu=J({devicePixelContentBoxSize:Fu(),borderBoxSize:Fu(),contentBoxSize:Fu(),contentRect:new Q(0,0,0,0)}),su=function(u,t){if(void 0===t&&(t=!1),nu.has(u)&&!t)return nu.get(u);if(tu(u))return nu.set(u,cu),cu;var e=getComputedStyle(u),r=uu(u)&&u.ownerSVGElement&&u.getBBox(),n=!iu&&"border-box"===e.boxSizing,o=Du.test(e.writingMode||""),D=!r&&ou.test(e.overflowY||""),i=!r&&ou.test(e.overflowX||""),a=r?0:au(e.paddingTop),F=r?0:au(e.paddingRight),c=r?0:au(e.paddingBottom),s=r?0:au(e.paddingLeft),l=r?0:au(e.borderTopWidth),f=r?0:au(e.borderRightWidth),p=r?0:au(e.borderBottomWidth),E=s+F,A=a+c,C=(r?0:au(e.borderLeftWidth))+f,y=l+p,d=i?u.offsetHeight-y-u.clientHeight:0,h=D?u.offsetWidth-C-u.clientWidth:0,B=n?E+C:0,g=n?A+y:0,m=r?r.width:au(e.width)-B-h,b=r?r.height:au(e.height)-g-d,v=m+E+h+C,w=b+A+d+y,x=J({devicePixelContentBoxSize:Fu(Math.round(m*devicePixelRatio),Math.round(b*devicePixelRatio),o),borderBoxSize:Fu(v,w,o),contentBoxSize:Fu(m,b,o),contentRect:new Q(s,a,m,b)});return nu.set(u,x),x},lu=function(u,t,e){var r=su(u,e),n=r.borderBoxSize,o=r.contentBoxSize,D=r.devicePixelContentBoxSize;switch(t){case q.DEVICE_PIXEL_CONTENT_BOX:return D;case q.BORDER_BOX:return n;default:return o}},fu=function(u){var t=su(u);this.target=u,this.contentRect=t.contentRect,this.borderBoxSize=J([t.borderBoxSize]),this.contentBoxSize=J([t.contentBoxSize]),this.devicePixelContentBoxSize=J([t.devicePixelContentBoxSize])},pu=function(u){if(tu(u))return 1/0;for(var t=0,e=u.parentNode;e;)t+=1,e=e.parentNode;return t},Eu=function(){var u=1/0,t=[];X.forEach((function(e){if(0!==e.activeTargets.length){var r=[];e.activeTargets.forEach((function(t){var e=new fu(t.target),n=pu(t.target);r.push(e),t.lastReportedSize=lu(t.target,t.observedBox),nu?t.activeTargets.push(e):t.skippedTargets.push(e))}))}))},Cu=[],yu=0,du={attributes:!0,characterData:!0,childList:!0,subtree:!0},hu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bu=function(u){return void 0===u&&(u=0),Date.now()+u},gu=!1,mu=function(){function u(){var u=this;this.stopped=!0,this.listener=function(){return u.schedule()}}return u.prototype.run=function(u){var t=this;if(void 0===u&&(u=250),!gu){gu=!0;var e,r=Bu(u);e=function(){var e=!1;try{e=function(){var u,t=0;for(Au(t);X.some((function(u){return u.activeTargets.length>0}));)t=Eu(),Au(t);return X.some((function(u){return u.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?u=new ErrorEvent("error",{message:Y}):((u=document.createEvent("Event")).initEvent("error",!1,!1),u.message=Y),window.dispatchEvent(u)),t>0}()}finally{if(gu=!1,u=r-Bu(),!yu)return;e?t.run(1e3):u>0?t.run(u):t.start()}},function(u){if(!K){var t=0,e=document.createTextNode("");new MutationObserver((function(){return Cu.splice(0).forEach((function(u){return u()}))})).observe(e,{characterData:!0}),K=function(){e.textContent="".concat(t?t--:t++)}}Cu.push(u),K()}((function(){requestAnimationFrame(e)}))}},u.prototype.schedule=function(){this.stop(),this.run()},u.prototype.observe=function(){var u=this,t=function(){return u.observer&&u.observer.observe(document.body,du)};document.body?t():ru.addEventListener("DOMContentLoaded",t)},u.prototype.start=function(){var u=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),hu.forEach((function(t){return ru.addEventListener(t,u.listener,!0)})))},u.prototype.stop=function(){var u=this;this.stopped||(this.observer&&this.observer.disconnect(),hu.forEach((function(t){return ru.removeEventListener(t,u.listener,!0)})),this.stopped=!0)},u}(),bu=new mu,vu=function(u){!yu&&u>0&&bu.start(),!(yu+=u)&&bu.stop()},wu=function(){function u(u,t){this.target=u,this.observedBox=t||q.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return u.prototype.isActive=function(){var u,t=lu(this.target,this.observedBox,!0);return u=this.target,uu(u)||function(u){switch(u.tagName){case"INPUT":if("image"!==u.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(u)||"inline"!==getComputedStyle(u).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},u}(),xu=function(u,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=u,this.callback=t},Su=new WeakMap,Ou=function(u,t){for(var e=0;e=0&&(n&&X.splice(X.indexOf(e),1),e.observationTargets.splice(r,1),vu(-1))},u.disconnect=function(u){var t=this,e=Su.get(u);e.observationTargets.slice().forEach((function(e){return t.unobserve(u,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},u}(),Pu=function(){function u(u){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof u)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ju.connect(this,u)}return u.prototype.observe=function(u,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eu(u))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ju.observe(this,u,t)},u.prototype.unobserve=function(u){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eu(u))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ju.unobserve(this,u)},u.prototype.disconnect=function(){ju.disconnect(this)},u.toString=function(){return"function ResizeObserver () { [polyfill code] }"},u}();const Tu=window.ResizeObserver||Pu;let Ru=new Map,Iu=new Map;var Nu=0;function Mu(u){return u&&u instanceof Element}window.addEventListener("load",(function(){const u=document.body;var t={width:0,height:0};new Tu((()=>{t.width===u.clientWidth&&t.height===u.clientHeight||(t={width:u.clientWidth,height:u.clientHeight},Iu.forEach((function(u){u.requestLayout()})))})).observe(u)}),!1);const ku={NONE:"",DESCENDANT:" ",CHILD:" > "},Lu={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"},$u="CssSelectorGenerator";function _u(u="unknown problem",...t){console.warn(`${$u}: ${u}`,...t)}const Wu={selectors:[Lu.id,Lu.class,Lu.tag,Lu.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function Uu(u){return u instanceof RegExp}function zu(u){return["string","function"].includes(typeof u)||Uu(u)}function Gu(u){return Array.isArray(u)?u.filter(zu):[]}function Vu(u){const t=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return function(u){return u instanceof Node}(u)&&t.includes(u.nodeType)}function Hu(u,t){if(Vu(u))return u.contains(t)||_u("element root mismatch","Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended."),u;const e=t.getRootNode({composed:!1});return Vu(e)?(e!==document&&_u("shadow root inferred","You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended."),e):t.ownerDocument.querySelector(":root")}function qu(u){return"number"==typeof u?u:Number.POSITIVE_INFINITY}function Xu(u=[]){const[t=[],...e]=u;return 0===e.length?t:e.reduce(((u,t)=>u.filter((u=>t.includes(u)))),t)}function Yu(u){return[].concat(...u)}function Ku(u){const t=u.map((u=>{if(Uu(u))return t=>u.test(t);if("function"==typeof u)return t=>{const e=u(t);return"boolean"!=typeof e?(_u("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",u),!1):e};if("string"==typeof u){const t=new RegExp("^"+u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return u=>t.test(u)}return _u("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",u),()=>!1}));return u=>t.some((t=>t(u)))}function Ju(u,t,e){const r=Array.from(Hu(e,u[0]).querySelectorAll(t));return r.length===u.length&&u.every((u=>r.includes(u)))}function Zu(u,t){t=null!=t?t:function(u){return u.ownerDocument.querySelector(":root")}(u);const e=[];let r=u;for(;Mu(r)&&r!==t;)e.push(r),r=r.parentElement;return e}function Qu(u,t){return Xu(u.map((u=>Zu(u,t))))}const ut=new RegExp(["^$","\\s"].join("|")),tt=new RegExp(["^$"].join("|")),et=[Lu.nthoftype,Lu.tag,Lu.id,Lu.class,Lu.attribute,Lu.nthchild],rt=Ku(["class","id","ng-*"]);function nt({name:u}){return`[${u}]`}function ot({name:u,value:t}){return`[${u}='${t}']`}function Dt({nodeName:u,nodeValue:t}){return{name:(e=u,e.replace(/:/g,"\\:")),value:dt(t)};var e}function it(u){const t=Array.from(u.attributes).filter((t=>function({nodeName:u},t){const e=t.tagName.toLowerCase();return!(["input","option"].includes(e)&&"value"===u||rt(u))}(t,u))).map(Dt);return[...t.map(nt),...t.map(ot)]}function at(u){return(u.getAttribute("class")||"").trim().split(/\s+/).filter((u=>!tt.test(u))).map((u=>`.${dt(u)}`))}function Ft(u){const t=u.getAttribute("id")||"",e=`#${dt(t)}`,r=u.getRootNode({composed:!1});return!ut.test(t)&&Ju([u],e,r)?[e]:[]}function ct(u){const t=u.parentNode;if(t){const e=Array.from(t.childNodes).filter(Mu).indexOf(u);if(e>-1)return[`:nth-child(${e+1})`]}return[]}function st(u){return[dt(u.tagName.toLowerCase())]}function lt(u){const t=[...new Set(Yu(u.map(st)))];return 0===t.length||t.length>1?[]:[t[0]]}function ft(u){const t=lt([u])[0],e=u.parentElement;if(e){const r=Array.from(e.children).filter((u=>u.tagName.toLowerCase()===t)),n=r.indexOf(u);if(n>-1)return[`${t}:nth-of-type(${n+1})`]}return[]}function pt(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){return Array.from(function*(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){let e=0,r=At(1);for(;r.length<=u.length&&eu[t]));yield t,r=Et(r,u.length-1)}}(u,{maxResults:t}))}function Et(u=[],t=0){const e=u.length;if(0===e)return[];const r=[...u];r[e-1]+=1;for(let u=e-1;u>=0;u--)if(r[u]>t){if(0===u)return At(e+1);r[u-1]++,r[u]=r[u-1]+1}return r[e-1]>t?At(e+1):r}function At(u=1){return Array.from(Array(u).keys())}const Ct=":".charCodeAt(0).toString(16).toUpperCase(),yt=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function dt(u=""){var t,e;return null!==(e=null===(t=null===CSS||void 0===CSS?void 0:CSS.escape)||void 0===t?void 0:t.call(CSS,u))&&void 0!==e?e:function(u=""){return u.split("").map((u=>":"===u?`\\${Ct} `:yt.test(u)?`\\${u}`:escape(u).replace(/%/g,"\\"))).join("")}(u)}const ht={tag:lt,id:function(u){return 0===u.length||u.length>1?[]:Ft(u[0])},class:function(u){return Xu(u.map(at))},attribute:function(u){return Xu(u.map(it))},nthchild:function(u){return Xu(u.map(ct))},nthoftype:function(u){return Xu(u.map(ft))}},Bt={tag:st,id:Ft,class:at,attribute:it,nthchild:ct,nthoftype:ft};function gt(u){return u.includes(Lu.tag)||u.includes(Lu.nthoftype)?[...u]:[...u,Lu.tag]}function mt(u={}){const t=[...et];return u[Lu.tag]&&u[Lu.nthoftype]&&t.splice(t.indexOf(Lu.tag),1),t.map((t=>{return(r=u)[e=t]?r[e].join(""):"";var e,r})).join("")}function bt(u,t,e="",r){const n=function(u,t){return""===t?u:function(u,t){return[...u.map((u=>t+ku.DESCENDANT+u)),...u.map((u=>t+ku.CHILD+u))]}(u,t)}(function(u,t,e){const r=function(u,t){const{blacklist:e,whitelist:r,combineWithinSelector:n,maxCombinations:o}=t,D=Ku(e),i=Ku(r);return function(u){const{selectors:t,includeTag:e}=u,r=[].concat(t);return e&&!r.includes("tag")&&r.push("tag"),r}(t).reduce(((t,e)=>{const r=function(u,t){var e;return(null!==(e=ht[t])&&void 0!==e?e:()=>[])(u)}(u,e),a=function(u=[],t,e){return u.filter((u=>e(u)||!t(u)))}(r,D,i),F=function(u=[],t){return u.sort(((u,e)=>{const r=t(u),n=t(e);return r&&!n?-1:!r&&n?1:0}))}(a,i);return t[e]=n?pt(F,{maxResults:o}):F.map((u=>[u])),t}),{})}(u,e),n=function(u,t){return function(u){const{selectors:t,combineBetweenSelectors:e,includeTag:r,maxCandidates:n}=u,o=e?pt(t,{maxResults:n}):t.map((u=>[u]));return r?o.map(gt):o}(t).map((t=>function(u,t){const e={};return u.forEach((u=>{const r=t[u];r.length>0&&(e[u]=r)})),function(u={}){let t=[];return Object.entries(u).forEach((([u,e])=>{t=e.flatMap((e=>0===t.length?[{[u]:e}]:t.map((t=>Object.assign(Object.assign({},t),{[u]:e})))))})),t}(e).map(mt)}(t,u))).filter((u=>u.length>0))}(r,e),o=Yu(n);return[...new Set(o)]}(u,r.root,r),e);for(const t of n)if(Ju(u,t,r.root))return t;return null}function vt(u){return{value:u,include:!1}}function wt({selectors:u,operator:t}){let e=[...et];u[Lu.tag]&&u[Lu.nthoftype]&&(e=e.filter((u=>u!==Lu.tag)));let r="";return e.forEach((t=>{(u[t]||[]).forEach((({value:u,include:t})=>{t&&(r+=u)}))})),t+r}function xt(u){return[":root",...Zu(u).reverse().map((u=>{const t=function(u,t,e=ku.NONE){const r={};return t.forEach((t=>{Reflect.set(r,t,function(u,t){return Bt[t](u)}(u,t).map(vt))})),{element:u,operator:e,selectors:r}}(u,[Lu.nthchild],ku.CHILD);return t.selectors.nthchild.forEach((u=>{u.include=!0})),t})).map(wt)].join("")}function St(u,t={}){const e=function(u){(u instanceof NodeList||u instanceof HTMLCollection)&&(u=Array.from(u));const t=(Array.isArray(u)?u:[u]).filter(Mu);return[...new Set(t)]}(u),r=function(u,t={}){const e=Object.assign(Object.assign({},Wu),t);return{selectors:(r=e.selectors,Array.isArray(r)?r.filter((u=>{return t=Lu,e=u,Object.values(t).includes(e);var t,e})):[]),whitelist:Gu(e.whitelist),blacklist:Gu(e.blacklist),root:Hu(e.root,u),combineWithinSelector:!!e.combineWithinSelector,combineBetweenSelectors:!!e.combineBetweenSelectors,includeTag:!!e.includeTag,maxCombinations:qu(e.maxCombinations),maxCandidates:qu(e.maxCandidates)};var r}(e[0],t);let n="",o=r.root;function D(){return function(u,t,e="",r){if(0===u.length)return null;const n=[u.length>1?u:[],...Qu(u,t).map((u=>[u]))];for(const u of n){const t=bt(u,0,e,r);if(t)return{foundElements:u,selector:t}}return null}(e,o,n,r)}let i=D();for(;i;){const{foundElements:u,selector:t}=i;if(Ju(e,t,r.root))return t;o=u[0],n=t,i=D()}return e.length>1?e.map((u=>St(u,r))).join(", "):function(u){return u.map(xt).join(", ")}(e)}function Ot(u){return null==u?null:-1!==["a","audio","button","canvas","details","input","label","option","select","submit","textarea","video"].indexOf(u.nodeName.toLowerCase())||u.hasAttribute("contenteditable")&&"false"!=u.getAttribute("contenteditable").toLowerCase()?u.outerHTML:u.parentElement?Ot(u.parentElement):null}function jt(u){for(var t=0;t0&&t.top0&&t.left{It(u)||(Nt(u),Mt(u,"keydown"))})),window.addEventListener("keyup",(u=>{It(u)||(Nt(u),Mt(u,"keyup"))})),e.g.readium={scrollToId:function(u){let t=document.getElementById(u);return!!t&&(v(t.getBoundingClientRect()),!0)},scrollToPosition:function(u,t){if(console.log("ScrollToPosition"),u<0||u>1)console.log("InvalidPosition");else if(b()){let t=document.scrollingElement.scrollHeight*u;document.scrollingElement.scrollTop=t}else{let e=document.scrollingElement.scrollWidth*u*("rtl"==t?-1:1);document.scrollingElement.scrollLeft=x(e)}},scrollToLocator:function(u){let t=S(u);return!!t&&function(u){return v(u.getBoundingClientRect())}(t)},scrollLeft:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX-r,o=t?-(e-r):0;return w(Math.max(n,o))},scrollRight:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX+r,o=t?0:e-r;return w(Math.min(n,o))},setCSSProperties:function(u){for(const t in u)O(t,u[t])},setProperty:O,removeProperty:j,registerDecorationTemplates:function(u){var t="";for(const[e,r]of Object.entries(u))Ru.set(e,r),r.stylesheet&&(t+=r.stylesheet+"\n");if(t){let u=document.createElement("style");u.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(u)}},getDecorations:function(u){var t=Iu.get(u);return t||(t=function(u,t){var e=[],r=0,n=null,o=!1;function D(t){let n=u+"-"+r++,o=S(t.locator);if(!o)return void P("Can't locate DOM range for decoration",t);let D={id:n,decoration:t,range:o};e.push(D),a(D)}function i(u){let t=e.findIndex((t=>t.decoration.id===u));if(-1===t)return;let r=e[t];e.splice(t,1),r.clickableElements=null,r.container&&(r.container.remove(),r.container=null)}function a(e){let r=(n||((n=document.createElement("div")).setAttribute("id",u),n.setAttribute("data-group",t),n.style.setProperty("pointer-events","none"),requestAnimationFrame((function(){null!=n&&document.body.append(n)}))),n),o=Ru.get(e.decoration.style);if(!o)return void T("Unknown decoration style: ".concat(e.decoration.style));let D=document.createElement("div");D.setAttribute("id",e.id),D.setAttribute("data-style",e.decoration.style),D.style.setProperty("pointer-events","none");let i=window.innerWidth,a=parseInt(getComputedStyle(document.documentElement).getPropertyValue("column-count")),F=i/(a||1),c=document.scrollingElement,s=c.scrollLeft,l=c.scrollTop;function f(u,t,e){if(u.style.position="absolute","wrap"===o.width)u.style.width="".concat(t.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(t.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("viewport"===o.width){u.style.width="".concat(i,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/i)*i;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}else if("bounds"===o.width)u.style.width="".concat(e.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(e.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("page"===o.width){u.style.width="".concat(F,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/F)*F;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}}let p,E=e.range.getBoundingClientRect();try{let u=document.createElement("template");u.innerHTML=e.decoration.element.trim(),p=u.content.firstElementChild}catch(u){return void T('Invalid decoration element "'.concat(e.decoration.element,'": ').concat(u.message))}if("boxes"===o.layout){let u=!0,t=k(e.range,u);t=t.sort(((u,t)=>u.topt.top?1:0));for(let u of t){const t=p.cloneNode(!0);t.style.setProperty("pointer-events","none"),f(t,u,E),D.append(t)}}else if("bounds"===o.layout){const u=p.cloneNode(!0);u.style.setProperty("pointer-events","none"),f(u,E,E),D.append(u)}r.append(D),e.container=D,e.clickableElements=Array.from(D.querySelectorAll("[data-activable='1']")),0===e.clickableElements.length&&(e.clickableElements=Array.from(D.children))}function F(){n&&(n.remove(),n=null)}return{add:D,remove:i,update:function(u){i(u.id),D(u)},clear:function(){F(),e.length=0},items:e,requestLayout:function(){F(),e.forEach((u=>a(u)))},isActivable:function(){return o},setActivable:function(){o=!0}}}("r2-decoration-"+Nu++,u),Iu.set(u,t)),t},findFirstVisibleLocator:function(){const u=jt(document.body);return{href:"#",type:"application/xhtml+xml",locations:{cssSelector:St(u)},text:{highlight:u.textContent}}}},window.readium.isFixedLayout=!0,webkit.messageHandlers.spreadLoadStarted.postMessage({})})()})(); +(()=>{var u={9116:(u,t)=>{"use strict";function e(u){return u.split("").reverse().join("")}function r(u){return(u|-u)>>31&1}function n(u,t,e,n){var o=u.P[e],D=u.M[e],i=n>>>31,a=t[e]|i,F=a|D,c=(a&o)+o^o|a,s=D|~(c|o),l=o&c,f=r(s&u.lastRowMask[e])-r(l&u.lastRowMask[e]);return s<<=1,l<<=1,o=(l|=i)|~(F|(s|=r(n)-i)),D=s&F,u.P[e]=o,u.M[e]=D,f}function o(u,t,e){if(0===t.length)return[];e=Math.min(e,t.length);var r=[],o=32,D=Math.ceil(t.length/o)-1,i={P:new Uint32Array(D+1),M:new Uint32Array(D+1),lastRowMask:new Uint32Array(D+1)};i.lastRowMask.fill(1<<31),i.lastRowMask[D]=1<<(t.length-1)%o;for(var a=new Uint32Array(D+1),F=new Map,c=[],s=0;s<256;s++)c.push(a);for(var l=0;l=t.length||t.charCodeAt(C)===f&&(p[E]|=1<0&&d[y]>=e+o;)y-=1;y===D&&d[y]<=e&&(d[y]{"use strict";var r=e(4624),n=e(5096),o=n(r("String.prototype.indexOf"));u.exports=function(u,t){var e=r(u,!!t);return"function"==typeof e&&o(u,".prototype.")>-1?n(e):e}},5096:(u,t,e)=>{"use strict";var r=e(3520),n=e(4624),o=e(5676),D=e(2824),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),F=n("%Reflect.apply%",!0)||r.call(a,i),c=n("%Object.defineProperty%",!0),s=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(u){c=null}u.exports=function(u){if("function"!=typeof u)throw new D("a function is required");var t=F(r,a,arguments);return o(t,1+s(0,u.length-(arguments.length-1)),!0)};var l=function(){return F(r,i,arguments)};c?c(u.exports,"apply",{value:l}):u.exports.apply=l},2448:(u,t,e)=>{"use strict";var r=e(3268)(),n=e(4624),o=r&&n("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var D=e(6500),i=e(2824),a=e(6168);u.exports=function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],s=!!a&&a(u,t);if(o)o(u,t,{configurable:null===F&&s?s.configurable:!F,enumerable:null===r&&s?s.enumerable:!r,value:e,writable:null===n&&s?s.writable:!n});else{if(!c&&(r||n||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");u[t]=e}}},2732:(u,t,e)=>{"use strict";var r=e(2812),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,D=Array.prototype.concat,i=e(2448),a=e(3268)(),F=function(u,t,e,r){if(t in u)if(!0===r){if(u[t]===e)return}else if("function"!=typeof(n=r)||"[object Function]"!==o.call(n)||!r())return;var n;a?i(u,t,e,!0):i(u,t,e)},c=function(u,t){var e=arguments.length>2?arguments[2]:{},o=r(t);n&&(o=D.call(o,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";u.exports=EvalError},1152:u=>{"use strict";u.exports=Error},1932:u=>{"use strict";u.exports=RangeError},5028:u=>{"use strict";u.exports=ReferenceError},6500:u=>{"use strict";u.exports=SyntaxError},2824:u=>{"use strict";u.exports=TypeError},5488:u=>{"use strict";u.exports=URIError},9200:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=e(4712)(),o=e(4440),D=n?Symbol.toStringTag:null;u.exports=function(u,t){var e=arguments.length>2&&arguments[2]&&arguments[2].force;!D||!e&&o(u,D)||(r?r(u,D,{configurable:!0,enumerable:!1,value:t,writable:!1}):u[D]=t)}},108:(u,t,e)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,n=e(5988),o=e(648),D=e(1844),i=e(7256);u.exports=function(u){if(n(u))return u;var t,e="default";if(arguments.length>1&&(arguments[1]===String?e="string":arguments[1]===Number&&(e="number")),r&&(Symbol.toPrimitive?t=function(u,t){var e=u[t];if(null!=e){if(!o(e))throw new TypeError(e+" returned for property "+t+" of object "+u+" is not a function");return e}}(u,Symbol.toPrimitive):i(u)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(u,e);if(n(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===e&&(D(u)||i(u))&&(e="string"),function(u,t){if(null==u)throw new TypeError("Cannot call method on "+u);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var e,r,D,i="string"===t?["toString","valueOf"]:["valueOf","toString"];for(D=0;D{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},1480:u=>{"use strict";var t=Object.prototype.toString,e=Math.max,r=function(u,t){for(var e=[],r=0;r{"use strict";var r=e(1480);u.exports=Function.prototype.bind||r},2656:u=>{"use strict";var t=function(){return"string"==typeof function(){}.name},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch(u){e=null}t.functionsHaveConfigurableNames=function(){if(!t()||!e)return!1;var u=e((function(){}),"name");return!!u&&!!u.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},u.exports=t},4624:(u,t,e)=>{"use strict";var r,n=e(1152),o=e(7261),D=e(1932),i=e(5028),a=e(6500),F=e(2824),c=e(5488),s=Function,l=function(u){try{return s('"use strict"; return ('+u+").constructor;")()}catch(u){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(u){f=null}var p=function(){throw new F},E=f?function(){try{return p}catch(u){try{return f(arguments,"callee").get}catch(u){return p}}}():p,A=e(9800)(),C=e(7e3)(),y=Object.getPrototypeOf||(C?function(u){return u.__proto__}:null),d={},h="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":D,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&y?y(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":h,"%TypeError%":F,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(u){var g=y(y(u));B["%Error.prototype%"]=g}var m=function u(t){var e;if("%AsyncFunction%"===t)e=l("async function () {}");else if("%GeneratorFunction%"===t)e=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=u("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=u("%AsyncGenerator%");n&&y&&(e=y(n.prototype))}return B[t]=e,e},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=e(3520),w=e(4440),x=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,I=function(u,t){var e,r=u;if(w(b,r)&&(r="%"+(e=b[r])[0]+"%"),w(B,r)){var n=B[r];if(n===d&&(n=m(r)),void 0===n&&!t)throw new F("intrinsic "+u+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:n}}throw new a("intrinsic "+u+" does not exist!")};u.exports=function(u,t){if("string"!=typeof u||0===u.length)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new F('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,u))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(u){var t=j(u,0,1),e=j(u,-1);if("%"===t&&"%"!==e)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return O(u,T,(function(u,t,e,n){r[r.length]=e?O(n,R,"$1"):t||u})),r}(u),r=e.length>0?e[0]:"",n=I("%"+r+"%",t),o=n.name,D=n.value,i=!1,c=n.alias;c&&(r=c[0],S(e,x([0,1],c)));for(var s=1,l=!0;s=e.length){var C=f(D,p);D=(l=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:D[p]}else l=w(D,p),D=D[p];l&&!i&&(B[o]=D)}}return D}},6168:(u,t,e)=>{"use strict";var r=e(4624)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(u){r=null}u.exports=r},3268:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=function(){if(r)try{return r({},"a",{value:1}),!0}catch(u){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==r([],"length",{value:1}).length}catch(u){return!0}},u.exports=n},7e3:u=>{"use strict";var t={foo:{}},e=Object;u.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)}},9800:(u,t,e)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=e(7904);u.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},7904:u=>{"use strict";u.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var u={},t=Symbol("test"),e=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(t in u[t]=42,u)return!1;if("function"==typeof Object.keys&&0!==Object.keys(u).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(u).length)return!1;var r=Object.getOwnPropertySymbols(u);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(u,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(u,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},4712:(u,t,e)=>{"use strict";var r=e(7904);u.exports=function(){return r()&&!!Symbol.toStringTag}},4440:(u,t,e)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=e(3520);u.exports=o.call(r,n)},7284:(u,t,e)=>{"use strict";var r=e(4440),n=e(3147)(),o=e(2824),D={assert:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");if(n.assert(u),!D.has(u,t))throw new o("`"+t+"` is not present on `O`")},get:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return e&&e["$"+t]},has:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return!!e&&r(e,"$"+t)},set:function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var r=n.get(u);r||(r={},n.set(u,r)),r["$"+t]=e}};Object.freeze&&Object.freeze(D),u.exports=D},648:u=>{"use strict";var t,e,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},n((function(){throw 42}),null,t)}catch(u){u!==e&&(n=null)}else n=null;var o=/^\s*class\b/,D=function(u){try{var t=r.call(u);return o.test(t)}catch(u){return!1}},i=function(u){try{return!D(u)&&(r.call(u),!0)}catch(u){return!1}},a=Object.prototype.toString,F="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),s=function(){return!1};if("object"==typeof document){var l=document.all;a.call(l)===a.call(document.all)&&(s=function(u){if((c||!u)&&(void 0===u||"object"==typeof u))try{var t=a.call(u);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==u("")}catch(u){}return!1})}u.exports=n?function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;try{n(u,null,t)}catch(u){if(u!==e)return!1}return!D(u)&&i(u)}:function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;if(F)return i(u);if(D(u))return!1;var t=a.call(u);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&i(u)}},1844:(u,t,e)=>{"use strict";var r=Date.prototype.getDay,n=Object.prototype.toString,o=e(4712)();u.exports=function(u){return"object"==typeof u&&null!==u&&(o?function(u){try{return r.call(u),!0}catch(u){return!1}}(u):"[object Date]"===n.call(u))}},1476:(u,t,e)=>{"use strict";var r,n,o,D,i=e(668),a=e(4712)();if(a){r=i("Object.prototype.hasOwnProperty"),n=i("RegExp.prototype.exec"),o={};var F=function(){throw o};D={toString:F,valueOf:F},"symbol"==typeof Symbol.toPrimitive&&(D[Symbol.toPrimitive]=F)}var c=i("Object.prototype.toString"),s=Object.getOwnPropertyDescriptor;u.exports=a?function(u){if(!u||"object"!=typeof u)return!1;var t=s(u,"lastIndex");if(!t||!r(t,"value"))return!1;try{n(u,D)}catch(u){return u===o}}:function(u){return!(!u||"object"!=typeof u&&"function"!=typeof u)&&"[object RegExp]"===c(u)}},7256:(u,t,e)=>{"use strict";var r=Object.prototype.toString;if(e(9800)()){var n=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;u.exports=function(u){if("symbol"==typeof u)return!0;if("[object Symbol]"!==r.call(u))return!1;try{return function(u){return"symbol"==typeof u.valueOf()&&o.test(n.call(u))}(u)}catch(u){return!1}}}else u.exports=function(u){return!1}},4152:(u,t,e)=>{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,D=r&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F=i&&a&&"function"==typeof a.get?a.get:null,c=i&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,E=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,y=String.prototype.slice,d=String.prototype.replace,h=String.prototype.toUpperCase,B=String.prototype.toLowerCase,g=RegExp.prototype.test,m=Array.prototype.concat,b=Array.prototype.join,v=Array.prototype.slice,w=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function I(u,t){if(u===1/0||u===-1/0||u!=u||u&&u>-1e3&&u<1e3||g.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof u){var r=u<0?-w(-u):w(u);if(r!==u){var n=String(r),o=y.call(t,n.length+1);return d.call(n,e,"$&_")+"."+d.call(d.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(t,e,"$&_")}var N=e(1740),M=N.custom,k=U(M)?M:null;function L(u,t,e){var r="double"===(e.quoteStyle||t)?'"':"'";return r+u+r}function $(u){return d.call(String(u),/"/g,""")}function _(u){return!("[object Array]"!==V(u)||P&&"object"==typeof u&&P in u)}function W(u){return!("[object RegExp]"!==V(u)||P&&"object"==typeof u&&P in u)}function U(u){if(j)return u&&"object"==typeof u&&u instanceof Symbol;if("symbol"==typeof u)return!0;if(!u||"object"!=typeof u||!O)return!1;try{return O.call(u),!0}catch(u){}return!1}u.exports=function u(t,r,n,i){var a=r||{};if(G(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var E=!G(a,"customInspect")||a.customInspect;if("boolean"!=typeof E&&"symbol"!==E)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return q(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var g=String(t);return h?I(t,g):g}if("bigint"==typeof t){var w=String(t)+"n";return h?I(t,w):w}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return _(t)?"[Array]":"[Object]";var M,z=function(u,t){var e;if("\t"===u.indent)e="\t";else{if(!("number"==typeof u.indent&&u.indent>0))return null;e=b.call(Array(u.indent+1)," ")}return{base:e,prev:b.call(Array(t+1),e)}}(a,n);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function X(t,e,r){if(e&&(i=v.call(i)).push(e),r){var o={depth:a.depth};return G(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),u(t,o,n+1,i)}return u(t,a,n+1,i)}if("function"==typeof t&&!W(t)){var uu=function(u){if(u.name)return u.name;var t=C.call(A.call(u),/^function\s*([\w$]+)/);return t?t[1]:null}(t),tu=Q(t,X);return"[Function"+(uu?": "+uu:" (anonymous)")+"]"+(tu.length>0?" { "+b.call(tu,", ")+" }":"")}if(U(t)){var eu=j?d.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?eu:Y(eu)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ru="<"+B.call(String(t.nodeName)),nu=t.attributes||[],ou=0;ou"}if(_(t)){if(0===t.length)return"[]";var Du=Q(t,X);return z&&!function(u){for(var t=0;t=0)return!1;return!0}(Du)?"["+Z(Du,z)+"]":"[ "+b.call(Du,", ")+" ]"}if(function(u){return!("[object Error]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)){var iu=Q(t,X);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===iu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(iu,", ")+" }":"{ ["+String(t)+"] "+b.call(m.call("[cause]: "+X(t.cause),iu),", ")+" }"}if("object"==typeof t&&E){if(k&&"function"==typeof t[k]&&N)return N(t,{depth:S-n});if("symbol"!==E&&"function"==typeof t.inspect)return t.inspect()}if(function(u){if(!o||!u||"object"!=typeof u)return!1;try{o.call(u);try{F.call(u)}catch(u){return!0}return u instanceof Map}catch(u){}return!1}(t)){var au=[];return D&&D.call(t,(function(u,e){au.push(X(e,t,!0)+" => "+X(u,t))})),J("Map",o.call(t),au,z)}if(function(u){if(!F||!u||"object"!=typeof u)return!1;try{F.call(u);try{o.call(u)}catch(u){return!0}return u instanceof Set}catch(u){}return!1}(t)){var Fu=[];return c&&c.call(t,(function(u){Fu.push(X(u,t))})),J("Set",F.call(t),Fu,z)}if(function(u){if(!s||!u||"object"!=typeof u)return!1;try{s.call(u,s);try{l.call(u,l)}catch(u){return!0}return u instanceof WeakMap}catch(u){}return!1}(t))return K("WeakMap");if(function(u){if(!l||!u||"object"!=typeof u)return!1;try{l.call(u,l);try{s.call(u,s)}catch(u){return!0}return u instanceof WeakSet}catch(u){}return!1}(t))return K("WeakSet");if(function(u){if(!f||!u||"object"!=typeof u)return!1;try{return f.call(u),!0}catch(u){}return!1}(t))return K("WeakRef");if(function(u){return!("[object Number]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(Number(t)));if(function(u){if(!u||"object"!=typeof u||!x)return!1;try{return x.call(u),!0}catch(u){}return!1}(t))return Y(X(x.call(t)));if(function(u){return!("[object Boolean]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(p.call(t));if(function(u){return!("[object String]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===e.g)return"{ [object globalThis] }";if(!function(u){return!("[object Date]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)&&!W(t)){var cu=Q(t,X),su=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,lu=t instanceof Object?"":"null prototype",fu=!su&&P&&Object(t)===t&&P in t?y.call(V(t),8,-1):lu?"Object":"",pu=(su||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fu||lu?"["+b.call(m.call([],fu||[],lu||[]),": ")+"] ":"");return 0===cu.length?pu+"{}":z?pu+"{"+Z(cu,z)+"}":pu+"{ "+b.call(cu,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(u){return u in this};function G(u,t){return z.call(u,t)}function V(u){return E.call(u)}function H(u,t){if(u.indexOf)return u.indexOf(t);for(var e=0,r=u.length;et.maxStringLength){var e=u.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return q(y.call(u,0,t.maxStringLength),t)+r}return L(d.call(d.call(u,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(u){var t=u.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+h.call(t.toString(16))}function Y(u){return"Object("+u+")"}function K(u){return u+" { ? }"}function J(u,t,e,r){return u+" ("+t+") {"+(r?Z(e,r):b.call(e,", "))+"}"}function Z(u,t){if(0===u.length)return"";var e="\n"+t.prev+t.base;return e+b.call(u,","+e)+"\n"+t.prev}function Q(u,t){var e=_(u),r=[];if(e){r.length=u.length;for(var n=0;n{"use strict";var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,D=e(9096),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),F=i.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(u){var t=u.constructor;return t&&t.prototype===u},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var u in window)try{if(!l["$"+u]&&n.call(window,u)&&null!==window[u]&&"object"==typeof window[u])try{s(window[u])}catch(u){return!0}}catch(u){return!0}return!1}();r=function(u){var t=null!==u&&"object"==typeof u,e="[object Function]"===o.call(u),r=D(u),i=t&&"[object String]"===o.call(u),l=[];if(!t&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var p=F&&e;if(i&&u.length>0&&!n.call(u,0))for(var E=0;E0)for(var A=0;A{"use strict";var r=Array.prototype.slice,n=e(9096),o=Object.keys,D=o?function(u){return o(u)}:e(9560),i=Object.keys;D.shim=function(){if(Object.keys){var u=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);u||(Object.keys=function(u){return n(u)?i(r.call(u)):i(u)})}else Object.keys=D;return Object.keys||D},u.exports=D},9096:u=>{"use strict";var t=Object.prototype.toString;u.exports=function(u){var e=t.call(u),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==u&&"object"==typeof u&&"number"==typeof u.length&&u.length>=0&&"[object Function]"===t.call(u.callee)),r}},7636:(u,t,e)=>{"use strict";var r=e(6308),n=e(2824),o=Object;u.exports=r((function(){if(null==this||this!==o(this))throw new n("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u}),"get flags",!0)},2192:(u,t,e)=>{"use strict";var r=e(2732),n=e(5096),o=e(7636),D=e(9296),i=e(736),a=n(D());r(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},9296:(u,t,e)=>{"use strict";var r=e(7636),n=e(2732).supportsDescriptors,o=Object.getOwnPropertyDescriptor;u.exports=function(){if(n&&"gim"===/a/gim.flags){var u=o(RegExp.prototype,"flags");if(u&&"function"==typeof u.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",e={};if(Object.defineProperty(e,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(e,"sticky",{get:function(){t+="y"}}),"dy"===t)return u.get}}return r}},736:(u,t,e)=>{"use strict";var r=e(2732).supportsDescriptors,n=e(9296),o=Object.getOwnPropertyDescriptor,D=Object.defineProperty,i=TypeError,a=Object.getPrototypeOf,F=/a/;u.exports=function(){if(!r||!a)throw new i("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=n(),t=a(F),e=o(t,"flags");return e&&e.get===u||D(t,"flags",{configurable:!0,enumerable:!1,get:u}),u}},860:(u,t,e)=>{"use strict";var r=e(668),n=e(1476),o=r("RegExp.prototype.exec"),D=e(2824);u.exports=function(u){if(!n(u))throw new D("`regex` must be a RegExp");return function(t){return null!==o(u,t)}}},5676:(u,t,e)=>{"use strict";var r=e(4624),n=e(2448),o=e(3268)(),D=e(6168),i=e(2824),a=r("%Math.floor%");u.exports=function(u,t){if("function"!=typeof u)throw new i("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||a(t)!==t)throw new i("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],r=!0,F=!0;if("length"in u&&D){var c=D(u,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(F=!1)}return(r||F||!e)&&(o?n(u,"length",t,!0,!0):n(u,"length",t)),u}},6308:(u,t,e)=>{"use strict";var r=e(2448),n=e(3268)(),o=e(2656).functionsHaveConfigurableNames(),D=TypeError;u.exports=function(u,t){if("function"!=typeof u)throw new D("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(n?r(u,"name",t,!0,!0):r(u,"name",t)),u}},3147:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=e(4152),D=e(2824),i=r("%WeakMap%",!0),a=r("%Map%",!0),F=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),l=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),E=function(u,t){for(var e,r=u;null!==(e=r.next);r=e)if(e.key===t)return r.next=e.next,e.next=u.next,u.next=e,e};u.exports=function(){var u,t,e,r={assert:function(u){if(!r.has(u))throw new D("Side channel does not contain "+o(u))},get:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return F(u,r)}else if(a){if(t)return l(t,r)}else if(e)return function(u,t){var e=E(u,t);return e&&e.value}(e,r)},has:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return s(u,r)}else if(a){if(t)return p(t,r)}else if(e)return function(u,t){return!!E(u,t)}(e,r);return!1},set:function(r,n){i&&r&&("object"==typeof r||"function"==typeof r)?(u||(u=new i),c(u,r,n)):a?(t||(t=new a),f(t,r,n)):(e||(e={key:{},next:null}),function(u,t,e){var r=E(u,t);r?r.value=e:u.next={key:t,next:u.next,value:e}}(e,r,n))}};return r}},9508:(u,t,e)=>{"use strict";var r=e(1700),n=e(3672),o=e(5552),D=e(3816),i=e(5424),a=e(4656),F=e(668),c=e(9800)(),s=e(2192),l=F("String.prototype.indexOf"),f=e(6288),p=function(u){var t=f();if(c&&"symbol"==typeof Symbol.matchAll){var e=o(u,Symbol.matchAll);return e===RegExp.prototype[Symbol.matchAll]&&e!==t?t:e}if(D(u))return t};u.exports=function(u){var t=a(this);if(null!=u){if(D(u)){var e="flags"in u?n(u,"flags"):s(u);if(a(e),l(i(e),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var o=p(u);if(void 0!==o)return r(o,u,[t])}var F=i(t),c=new RegExp(u,"g");return r(p(c),c,[F])}},3732:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(9508),D=e(5844),i=e(4148),a=r(o);n(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},6288:(u,t,e)=>{"use strict";var r=e(9800)(),n=e(7492);u.exports=function(){return r&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:n}},5844:(u,t,e)=>{"use strict";var r=e(9508);u.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(u){return String.prototype.matchAll}return r}},7492:(u,t,e)=>{"use strict";var r=e(5211),n=e(3672),o=e(4e3),D=e(8652),i=e(4784),a=e(5424),F=e(8645),c=e(2192),s=e(6308),l=e(668)("String.prototype.indexOf"),f=RegExp,p="flags"in RegExp.prototype,E=s((function(u){var t=this;if("Object"!==F(t))throw new TypeError('"this" value must be an Object');var e=a(u),s=function(u,t){var e="flags"in t?n(t,"flags"):a(c(t));return{flags:e,matcher:new u(p&&"string"==typeof e?t:u===f?t.source:t,e)}}(D(t,f),t),E=s.flags,A=s.matcher,C=i(n(t,"lastIndex"));o(A,"lastIndex",C,!0);var y=l(E,"g")>-1,d=l(E,"u")>-1;return r(A,e,y,d)}),"[Symbol.matchAll]",!0);u.exports=E},4148:(u,t,e)=>{"use strict";var r=e(2732),n=e(9800)(),o=e(5844),D=e(6288),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor;u.exports=function(){var u=o();if(r(String.prototype,{matchAll:u},{matchAll:function(){return String.prototype.matchAll!==u}}),n){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(r(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),i&&a){var e=a(Symbol,t);e&&!e.configurable||i(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var F=D(),c={};c[t]=F;var s={};s[t]=function(){return RegExp.prototype[t]!==F},r(RegExp.prototype,c,s)}return u}},6936:(u,t,e)=>{"use strict";var r=e(4656),n=e(5424),o=e(668)("String.prototype.replace"),D=/^\s$/.test("᠎"),i=D?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=D?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;u.exports=function(){var u=n(r(this));return o(o(u,i,""),a,"")}},9292:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(4656),D=e(6936),i=e(6684),a=e(9788),F=r(i()),c=function(u){return o(u),F(u)};n(c,{getPolyfill:i,implementation:D,shim:a}),u.exports=c},6684:(u,t,e)=>{"use strict";var r=e(6936);u.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},9788:(u,t,e)=>{"use strict";var r=e(2732),n=e(6684);u.exports=function(){var u=n();return r(String.prototype,{trim:u},{trim:function(){return String.prototype.trim!==u}}),u}},1740:()=>{},1056:(u,t,e)=>{"use strict";var r=e(4624),n=e(8536),o=e(8645),D=e(7724),i=e(9132),a=r("%TypeError%");u.exports=function(u,t,e){if("String"!==o(u))throw new a("Assertion failed: `S` must be a String");if(!D(t)||t<0||t>i)throw new a("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==o(e))throw new a("Assertion failed: `unicode` must be a Boolean");return e?t+1>=u.length?t+1:t+n(u,t)["[[CodeUnitCount]]"]:t+1}},1700:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=r("%TypeError%"),D=e(1720),i=r("%Reflect.apply%",!0)||n("Function.prototype.apply");u.exports=function(u,t){var e=arguments.length>2?arguments[2]:[];if(!D(e))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(u,t,e)}},8536:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668),o=e(1712),D=e(8444),i=e(8645),a=e(2320),F=n("String.prototype.charAt"),c=n("String.prototype.charCodeAt");u.exports=function(u,t){if("String"!==i(u))throw new r("Assertion failed: `string` must be a String");var e=u.length;if(t<0||t>=e)throw new r("Assertion failed: `position` must be >= 0, and < the length of `string`");var n=c(u,t),s=F(u,t),l=o(n),f=D(n);if(!l&&!f)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(f||t+1===e)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var p=c(u,t+1);return D(p)?{"[[CodePoint]]":a(n,p),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4288:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(8645);u.exports=function(u,t){if("Boolean"!==n(t))throw new r("Assertion failed: Type(done) is not Boolean");return{value:u,done:t}}},2672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4436),o=e(8924),D=e(3880),i=e(2968),a=e(8800),F=e(8645);u.exports=function(u,t,e){if("Object"!==F(u))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");return n(D,a,o,u,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":e,"[[Writable]]":!0})}},5211:(u,t,e)=>{"use strict";var r=e(4624),n=e(9800)(),o=r("%TypeError%"),D=r("%IteratorPrototype%",!0),i=e(1056),a=e(4288),F=e(2672),c=e(3672),s=e(6216),l=e(8972),f=e(4e3),p=e(4784),E=e(5424),A=e(8645),C=e(7284),y=e(9200),d=function(u,t,e,r){if("String"!==A(t))throw new o("`S` must be a string");if("Boolean"!==A(e))throw new o("`global` must be a boolean");if("Boolean"!==A(r))throw new o("`fullUnicode` must be a boolean");C.set(this,"[[IteratingRegExp]]",u),C.set(this,"[[IteratedString]]",t),C.set(this,"[[Global]]",e),C.set(this,"[[Unicode]]",r),C.set(this,"[[Done]]",!1)};D&&(d.prototype=s(D)),F(d.prototype,"next",(function(){var u=this;if("Object"!==A(u))throw new o("receiver must be an object");if(!(u instanceof d&&C.has(u,"[[IteratingRegExp]]")&&C.has(u,"[[IteratedString]]")&&C.has(u,"[[Global]]")&&C.has(u,"[[Unicode]]")&&C.has(u,"[[Done]]")))throw new o('"this" value must be a RegExpStringIterator instance');if(C.get(u,"[[Done]]"))return a(void 0,!0);var t=C.get(u,"[[IteratingRegExp]]"),e=C.get(u,"[[IteratedString]]"),r=C.get(u,"[[Global]]"),n=C.get(u,"[[Unicode]]"),D=l(t,e);if(null===D)return C.set(u,"[[Done]]",!0),a(void 0,!0);if(r){if(""===E(c(D,"0"))){var F=p(c(t,"lastIndex")),s=i(e,F,n);f(t,"lastIndex",s,!0)}return a(D,!1)}return C.set(u,"[[Done]]",!0),a(D,!1)})),n&&(y(d.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof d.prototype[Symbol.iterator])&&F(d.prototype,Symbol.iterator,(function(){return this})),u.exports=function(u,t,e,r){return new d(u,t,e,r)}},7268:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(320),o=e(4436),D=e(8924),i=e(4936),a=e(3880),F=e(2968),c=e(8800),s=e(5696),l=e(8645);u.exports=function(u,t,e){if("Object"!==l(u))throw new r("Assertion failed: Type(O) is not Object");if(!F(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},e)?e:s(e);if(!n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},f))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(a,c,D,u,t,f)}},8924:(u,t,e)=>{"use strict";var r=e(3600),n=e(3504),o=e(8645);u.exports=function(u){return void 0!==u&&r(o,"Property Descriptor","Desc",u),n(u)}},3672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968),D=e(8645);u.exports=function(u,t){if("Object"!==D(u))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},5552:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(3396),o=e(3048),D=e(2968),i=e(4152);u.exports=function(u,t){if(!D(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var e=n(u,t);if(null!=e){if(!o(e))throw new r(i(t)+" is not a function: "+i(e));return e}}},3396:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968);u.exports=function(u,t){if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},4936:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Get]]")&&!r(u,"[[Set]]")))}},1720:(u,t,e)=>{"use strict";u.exports=e(704)},3048:(u,t,e)=>{"use strict";u.exports=e(648)},211:(u,t,e)=>{"use strict";var r=e(8600)("%Reflect.construct%",!0),n=e(7268);try{n({},"",{"[[Get]]":function(){}})}catch(u){n=null}if(n&&r){var o={},D={};n(D,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),u.exports=function(u){try{r(u,D)}catch(u){return u===o}}}else u.exports=function(u){return"function"==typeof u&&!!u.prototype}},3880:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Value]]")&&!r(u,"[[Writable]]")))}},2968:u=>{"use strict";u.exports=function(u){return"string"==typeof u||"symbol"==typeof u}},3816:(u,t,e)=>{"use strict";var r=e(4624)("%Symbol.match%",!0),n=e(1476),o=e(6848);u.exports=function(u){if(!u||"object"!=typeof u)return!1;if(r){var t=u[r];if(void 0!==t)return o(t)}return n(u)}},6216:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Object.create%",!0),o=r("%TypeError%"),D=r("%SyntaxError%"),i=e(1720),a=e(8645),F=e(4672),c=e(7284),s=e(7e3)();u.exports=function(u){if(null!==u&&"Object"!==a(u))throw new o("Assertion failed: `proto` must be null or an object");var t,e=arguments.length<2?[]:arguments[1];if(!i(e))throw new o("Assertion failed: `additionalInternalSlotsList` must be an Array");if(n)t=n(u);else if(s)t={__proto__:u};else{if(null===u)throw new D("native Object.create support is required to create null objects");var r=function(){};r.prototype=u,t=new r}return e.length>0&&F(e,(function(u){c.set(t,u,void 0)})),t}},8972:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668)("RegExp.prototype.exec"),o=e(1700),D=e(3672),i=e(3048),a=e(8645);u.exports=function(u,t){if("Object"!==a(u))throw new r("Assertion failed: `R` must be an Object");if("String"!==a(t))throw new r("Assertion failed: `S` must be a String");var e=D(u,"exec");if(i(e)){var F=o(e,u,[t]);if(null===F||"Object"===a(F))return F;throw new r('"exec" method must return `null` or an Object')}return n(u,t)}},4656:(u,t,e)=>{"use strict";u.exports=e(176)},8800:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u,t){return u===t?0!==u||1/u==1/t:r(u)&&r(t)}},4e3:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(2968),o=e(8800),D=e(8645),i=function(){try{return delete[].length,!0}catch(u){return!1}}();u.exports=function(u,t,e,a){if("Object"!==D(u))throw new r("Assertion failed: `O` must be an Object");if(!n(t))throw new r("Assertion failed: `P` must be a Property Key");if("Boolean"!==D(a))throw new r("Assertion failed: `Throw` must be a Boolean");if(a){if(u[t]=e,i&&!o(u[t],e))throw new r("Attempted to assign to readonly property.");return!0}try{return u[t]=e,!i||o(u[t],e)}catch(u){return!1}}},8652:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Symbol.species%",!0),o=r("%TypeError%"),D=e(211),i=e(8645);u.exports=function(u,t){if("Object"!==i(u))throw new o("Assertion failed: Type(O) is not Object");var e=u.constructor;if(void 0===e)return t;if("Object"!==i(e))throw new o("O.constructor is not an Object");var r=n?e[n]:void 0;if(null==r)return t;if(D(r))return r;throw new o("no constructor found")}},8772:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Number%"),o=r("%RegExp%"),D=r("%TypeError%"),i=r("%parseInt%"),a=e(668),F=e(860),c=a("String.prototype.slice"),s=F(/^0b[01]+$/i),l=F(/^0o[0-7]+$/i),f=F(/^[-+]0x[0-9a-f]+$/i),p=F(new o("["+["…","​","￾"].join("")+"]","g")),E=e(9292),A=e(8645);u.exports=function u(t){if("String"!==A(t))throw new D("Assertion failed: `argument` is not a String");if(s(t))return n(i(c(t,2),2));if(l(t))return n(i(c(t,2),8));if(p(t)||f(t))return NaN;var e=E(t);return e!==t?u(e):n(t)}},6848:u=>{"use strict";u.exports=function(u){return!!u}},9424:(u,t,e)=>{"use strict";var r=e(7220),n=e(2592),o=e(2808),D=e(2931);u.exports=function(u){var t=r(u);return o(t)||0===t?0:D(t)?n(t):t}},4784:(u,t,e)=>{"use strict";var r=e(9132),n=e(9424);u.exports=function(u){var t=n(u);return t<=0?0:t>r?r:t}},7220:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%Number%"),D=e(2336),i=e(5556),a=e(8772);u.exports=function(u){var t=D(u)?u:i(u,o);if("symbol"==typeof t)throw new n("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new n("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?a(t):o(t)}},5556:(u,t,e)=>{"use strict";var r=e(108);u.exports=function(u){return arguments.length>1?r(u,arguments[1]):r(u)}},5696:(u,t,e)=>{"use strict";var r=e(4440),n=e(4624)("%TypeError%"),o=e(8645),D=e(6848),i=e(3048);u.exports=function(u){if("Object"!==o(u))throw new n("ToPropertyDescriptor requires an object");var t={};if(r(u,"enumerable")&&(t["[[Enumerable]]"]=D(u.enumerable)),r(u,"configurable")&&(t["[[Configurable]]"]=D(u.configurable)),r(u,"value")&&(t["[[Value]]"]=u.value),r(u,"writable")&&(t["[[Writable]]"]=D(u.writable)),r(u,"get")){var e=u.get;if(void 0!==e&&!i(e))throw new n("getter must be a function");t["[[Get]]"]=e}if(r(u,"set")){var a=u.set;if(void 0!==a&&!i(a))throw new n("setter must be a function");t["[[Set]]"]=a}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new n("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},5424:(u,t,e)=>{"use strict";var r=e(4624),n=r("%String%"),o=r("%TypeError%");u.exports=function(u){if("symbol"==typeof u)throw new o("Cannot convert a Symbol value to a string");return n(u)}},8645:(u,t,e)=>{"use strict";var r=e(7936);u.exports=function(u){return"symbol"==typeof u?"Symbol":"bigint"==typeof u?"BigInt":r(u)}},2320:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%String.fromCharCode%"),D=e(1712),i=e(8444);u.exports=function(u,t){if(!D(u)||!i(t))throw new n("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(u)+o(t)}},2312:(u,t,e)=>{"use strict";var r=e(8645),n=Math.floor;u.exports=function(u){return"BigInt"===r(u)?u:n(u)}},2592:(u,t,e)=>{"use strict";var r=e(4624),n=e(2312),o=r("%TypeError%");u.exports=function(u){if("number"!=typeof u&&"bigint"!=typeof u)throw new o("argument must be a Number or a BigInt");var t=u<0?-n(-u):n(u);return 0===t?0:t}},176:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%");u.exports=function(u,t){if(null==u)throw new r(t||"Cannot call method on "+u);return u}},7936:u=>{"use strict";u.exports=function(u){return null===u?"Null":void 0===u?"Undefined":"function"==typeof u||"object"==typeof u?"Object":"number"==typeof u?"Number":"boolean"==typeof u?"Boolean":"string"==typeof u?"String":void 0}},8600:(u,t,e)=>{"use strict";u.exports=e(4624)},4436:(u,t,e)=>{"use strict";var r=e(3268),n=e(4624),o=r()&&n("%Object.defineProperty%",!0),D=r.hasArrayLengthDefineBug(),i=D&&e(704),a=e(668)("Object.prototype.propertyIsEnumerable");u.exports=function(u,t,e,r,n,F){if(!o){if(!u(F))return!1;if(!F["[[Configurable]]"]||!F["[[Writable]]"])return!1;if(n in r&&a(r,n)!==!!F["[[Enumerable]]"])return!1;var c=F["[[Value]]"];return r[n]=c,t(r[n],c)}return D&&"length"===n&&"[[Value]]"in F&&i(r)&&r.length!==F["[[Value]]"]?(r.length=F["[[Value]]"],r.length===F["[[Value]]"]):(o(r,n,e(F)),!0)}},704:(u,t,e)=>{"use strict";var r=e(4624)("%Array%"),n=!r.isArray&&e(668)("Object.prototype.toString");u.exports=r.isArray||function(u){return"[object Array]"===n(u)}},3600:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%SyntaxError%"),D=e(4440),i=e(7724),a={"Property Descriptor":function(u){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!u)return!1;for(var e in u)if(D(u,e)&&!t[e])return!1;var r=D(u,"[[Value]]"),o=D(u,"[[Get]]")||D(u,"[[Set]]");if(r&&o)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":e(5092),"Iterator Record":function(u){return D(u,"[[Iterator]]")&&D(u,"[[NextMethod]]")&&D(u,"[[Done]]")},"PromiseCapability Record":function(u){return!!u&&D(u,"[[Resolve]]")&&"function"==typeof u["[[Resolve]]"]&&D(u,"[[Reject]]")&&"function"==typeof u["[[Reject]]"]&&D(u,"[[Promise]]")&&u["[[Promise]]"]&&"function"==typeof u["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(u){return!!u&&D(u,"[[Completion]]")&&D(u,"[[Capability]]")&&a["PromiseCapability Record"](u["[[Capability]]"])},"RegExp Record":function(u){return u&&D(u,"[[IgnoreCase]]")&&"boolean"==typeof u["[[IgnoreCase]]"]&&D(u,"[[Multiline]]")&&"boolean"==typeof u["[[Multiline]]"]&&D(u,"[[DotAll]]")&&"boolean"==typeof u["[[DotAll]]"]&&D(u,"[[Unicode]]")&&"boolean"==typeof u["[[Unicode]]"]&&D(u,"[[CapturingGroupsCount]]")&&"number"==typeof u["[[CapturingGroupsCount]]"]&&i(u["[[CapturingGroupsCount]]"])&&u["[[CapturingGroupsCount]]"]>=0}};u.exports=function(u,t,e,r){var D=a[t];if("function"!=typeof D)throw new o("unknown record type: "+t);if("Object"!==u(r)||!D(r))throw new n(e+" must be a "+t)}},4672:u=>{"use strict";u.exports=function(u,t){for(var e=0;e{"use strict";u.exports=function(u){if(void 0===u)return u;var t={};return"[[Value]]"in u&&(t.value=u["[[Value]]"]),"[[Writable]]"in u&&(t.writable=!!u["[[Writable]]"]),"[[Get]]"in u&&(t.get=u["[[Get]]"]),"[[Set]]"in u&&(t.set=u["[[Set]]"]),"[[Enumerable]]"in u&&(t.enumerable=!!u["[[Enumerable]]"]),"[[Configurable]]"in u&&(t.configurable=!!u["[[Configurable]]"]),t}},2931:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u){return("number"==typeof u||"bigint"==typeof u)&&!r(u)&&u!==1/0&&u!==-1/0}},7724:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Math.abs%"),o=r("%Math.floor%"),D=e(2808),i=e(2931);u.exports=function(u){if("number"!=typeof u||D(u)||!i(u))return!1;var t=n(u);return o(t)===t}},1712:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=55296&&u<=56319}},5092:(u,t,e)=>{"use strict";var r=e(4440);u.exports=function(u){return r(u,"[[StartIndex]]")&&r(u,"[[EndIndex]]")&&u["[[StartIndex]]"]>=0&&u["[[EndIndex]]"]>=u["[[StartIndex]]"]&&String(parseInt(u["[[StartIndex]]"],10))===String(u["[[StartIndex]]"])&&String(parseInt(u["[[EndIndex]]"],10))===String(u["[[EndIndex]]"])}},2808:u=>{"use strict";u.exports=Number.isNaN||function(u){return u!=u}},2336:u=>{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},320:(u,t,e)=>{"use strict";var r=e(4624),n=e(4440),o=r("%TypeError%");u.exports=function(u,t){if("Object"!==u.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(n(t,r)&&!e[r])return!1;if(u.IsDataDescriptor(t)&&u.IsAccessorDescriptor(t))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},8444:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=56320&&u<=57343}},9132:u=>{"use strict";u.exports=Number.MAX_SAFE_INTEGER||9007199254740991}},t={};function e(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return u[r](o,o.exports,e),o.exports}e.n=u=>{var t=u&&u.__esModule?()=>u.default:()=>u;return e.d(t,{a:t}),t},e.d=(u,t)=>{for(var r in t)e.o(t,r)&&!e.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:t[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(u){if("object"==typeof window)return window}}(),e.o=(u,t)=>Object.prototype.hasOwnProperty.call(u,t),(()=>{"use strict";var u=e(9116);function t(t,e,r){let n=0,o=[];for(;-1!==n;)n=t.indexOf(e,n),-1!==n&&(o.push({start:n,end:n+e.length,errors:0}),n+=1);return o.length>0?o:(0,u.c)(t,e,r)}function r(u,e){return 0===e.length||0===u.length?0:1-t(u,e,e.length)[0].errors/e.length}function n(u){switch(u.nodeType){case Node.ELEMENT_NODE:case Node.TEXT_NODE:return u.textContent.length;default:return 0}}function o(u){let t=u.previousSibling,e=0;for(;t;)e+=n(t),t=t.previousSibling;return e}function D(u){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;rn?(D.push({node:i,offset:n-F}),n=e.shift()):(a=o.nextNode(),F+=i.data.length);for(;void 0!==n&&i&&F===n;)D.push({node:i,offset:i.data.length}),n=e.shift();if(void 0!==n)throw new RangeError("Offset exceeds text length");return D}class i{constructor(u,t){if(t<0)throw new Error("Offset is invalid");this.element=u,this.offset=t}relativeTo(u){if(!u.contains(this.element))throw new Error("Parent is not an ancestor of current element");let t=this.element,e=this.offset;for(;t!==u;)e+=o(t),t=t.parentElement;return new i(t,e)}resolve(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return D(this.element,this.offset)[0]}catch(t){if(0===this.offset&&void 0!==u.direction){const e=document.createTreeWalker(this.element.getRootNode(),NodeFilter.SHOW_TEXT);e.currentNode=this.element;const r=1===u.direction,n=r?e.nextNode():e.previousNode();if(!n)throw t;return{node:n,offset:r?0:n.data.length}}throw t}}static fromCharOffset(u,t){switch(u.nodeType){case Node.TEXT_NODE:return i.fromPoint(u,t);case Node.ELEMENT_NODE:return new i(u,t);default:throw new Error("Node is not an element or text node")}}static fromPoint(u,t){switch(u.nodeType){case Node.TEXT_NODE:{if(t<0||t>u.data.length)throw new Error("Text node offset is out of range");if(!u.parentElement)throw new Error("Text node has no parent");const e=o(u)+t;return new i(u.parentElement,e)}case Node.ELEMENT_NODE:{if(t<0||t>u.childNodes.length)throw new Error("Child node offset is out of range");let e=0;for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:{};this.root=u,this.exact=t,this.context=e}static fromRange(u,t){const e=u.textContent,r=a.fromRange(t).relativeTo(u),n=r.start.offset,o=r.end.offset;return new l(u,e.slice(n,o),{prefix:e.slice(Math.max(0,n-32),n),suffix:e.slice(o,Math.min(e.length,o+32))})}static fromSelector(u,t){const{prefix:e,suffix:r}=t;return new l(u,t.exact,{prefix:e,suffix:r})}toSelector(){return{type:"TextQuoteSelector",exact:this.exact,prefix:this.context.prefix,suffix:this.context.suffix}}toRange(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.toPositionAnchor(u).toRange()}toPositionAnchor(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=function(u,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===e.length)return null;const o=Math.min(256,e.length/2),D=t(u,e,o);if(0===D.length)return null;const i=t=>{const o=1-t.errors/e.length,D=n.prefix?r(u.slice(Math.max(0,t.start-n.prefix.length),t.start),n.prefix):1,i=n.suffix?r(u.slice(t.end,t.end+n.suffix.length),n.suffix):1;let a=1;return"number"==typeof n.hint&&(a=1-Math.abs(t.start-n.hint)/u.length),(50*o+20*D+20*i+2*a)/92},a=D.map((u=>({start:u.start,end:u.end,score:i(u)})));return a.sort(((u,t)=>t.score-u.score)),a[0]}(this.root.textContent,this.exact,c(c({},this.context),{},{hint:u.hint}));if(!e)throw new Error("Quote not found");return new s(this.root,e.start,e.end)}}var f=e(3732);e.n(f)().shim();const p=!0;function E(){if(!readium.link)return null;const u=readium.link.href;if(!u)return null;const t=function(){const u=window.getSelection();if(!u)return;if(u.isCollapsed)return;const t=u.toString();if(0===t.trim().replace(/\n/g," ").replace(/\s\s+/g," ").length)return;if(!u.anchorNode||!u.focusNode)return;const e=1===u.rangeCount?u.getRangeAt(0):function(u,t,e,r){const n=new Range;if(n.setStart(u,t),n.setEnd(e,r),!n.collapsed)return n;A(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");const o=new Range;if(o.setStart(e,r),o.setEnd(u,t),!o.collapsed)return A(">>> createOrderedRange RANGE REVERSE OK."),n;A(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!")}(u.anchorNode,u.anchorOffset,u.focusNode,u.focusOffset);if(!e||e.collapsed)return void A("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");const r=document.body.textContent,n=a.fromRange(e).relativeTo(document.body),o=n.start.offset,D=n.end.offset;let i=r.slice(Math.max(0,o-200),o),F=i.search(/(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\u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0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC00-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80E-\uD810\uD812-\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD834\uD836\uD83C-\uD83F\uD87C\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F-\uDE6F\uDEBF-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD835[\uDC55\uDC9D\u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\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA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0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/g);-1!==F&&(i=i.slice(F+1));let c=r.slice(D,Math.min(r.length,D+200)),s=Array.from(c.matchAll(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\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\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uF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DE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)).pop();return void 0!==s&&s.index>1&&(c=c.slice(0,s.index+1)),{highlight:t,before:i,after:c}}();return t?{href:u,text:t,rect:function(){try{let u=window.getSelection();if(!u)return;return M(u.getRangeAt(0).getBoundingClientRect())}catch(u){return I(u),null}}()}:null}function A(){p&&T.apply(null,arguments)}window.addEventListener("error",(function(u){webkit.messageHandlers.logError.postMessage({message:u.message,filename:u.filename,line:u.lineno})}),!1),window.addEventListener("load",(function(){new ResizeObserver((()=>{!function(){const u="readium-virtual-page";var t=document.getElementById(u);if(v()||2!=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("column-count"))){var e;null===(e=t)||void 0===e||e.remove()}else{var r=document.scrollingElement.scrollWidth/window.innerWidth;Math.round(2*r)/2%1>.1&&(t?t.remove():((t=document.createElement("div")).setAttribute("id",u),t.style.breakBefore="column",t.innerHTML="​",document.body.appendChild(t)))}}(),m()})).observe(document.body),window.addEventListener("orientationchange",(function(){b(),function(){if(!v()){var u=S(window.scrollX+1);document.scrollingElement.scrollLeft=u}}()})),b()}),!1);var C,y,d=0,h=0,B=!1,g=0;function m(){h=window.scrollY/document.scrollingElement.scrollHeight,d=Math.abs(window.scrollX/document.scrollingElement.scrollWidth),0!==document.scrollingElement.scrollWidth&&0!==document.scrollingElement.scrollHeight&&(B||window.requestAnimationFrame((function(){var u;u=(v()?h:d).toString(),webkit.messageHandlers.progressionChanged.postMessage(u),B=!1})),B=!0)}function b(){g=0===window.orientation||180==window.orientation?screen.width:screen.height}function v(){return"readium-scroll-on"==document.documentElement.style.getPropertyValue("--USER__view").trim()}function w(u){return v()?document.scrollingElement.scrollTop=u.top+window.scrollY:document.scrollingElement.scrollLeft=S(u.left+window.scrollX),!0}function x(u){var t=window.scrollX,e=window.innerWidth;return document.scrollingElement.scrollLeft=u,Math.abs(t-u)/e>.01}function S(u){var t=u+1;return t-t%g}function O(u){try{let r=u.locations,n=u.text;var t;if(n&&n.highlight)return r&&r.cssSelector&&(t=document.querySelector(r.cssSelector)),t||(t=document.body),new l(t,n.highlight,{prefix:n.before,suffix:n.after}).toRange();if(r){var e=null;if(!e&&r.cssSelector&&(e=document.querySelector(r.cssSelector)),!e&&r.fragments)for(const u of r.fragments)if(e=document.getElementById(u))break;if(e){let u=document.createRange();return u.setStartBefore(e),u.setEndAfter(e),u}}}catch(u){I(u)}return null}function j(u,t){null===t?P(u):document.documentElement.style.setProperty(u,t,"important")}function P(u){document.documentElement.style.removeProperty(u)}function T(){var u=Array.prototype.slice.call(arguments).join(" ");webkit.messageHandlers.log.postMessage(u)}function R(u){I(new Error(u))}function I(u){webkit.messageHandlers.logError.postMessage({message:u.message})}window.addEventListener("scroll",m),document.addEventListener("selectionchange",(50,C=function(){webkit.messageHandlers.selectionChanged.postMessage(E())},function(){var u=this,t=arguments;clearTimeout(y),y=setTimeout((function(){C.apply(u,t),y=null}),50)}));const N=!1;function M(u){let t=k({x:u.left,y:u.top});const e=u.width,r=u.height,n=t.x,o=t.y;return{width:e,height:r,left:n,top:o,right:n+e,bottom:o+r}}function k(u){if(!frameElement)return u;let t=frameElement.getBoundingClientRect();if(!t)return u;let e=window.top.document.documentElement;return{x:u.x+t.x+e.scrollLeft,y:u.y+t.y+e.scrollTop}}function L(u,t){let e=u.getClientRects();const r=[];for(const u of e)r.push({bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width});const n=z(function(u,t){const e=new Set(u);for(const t of u)if(t.width>1&&t.height>1){for(const r of u)if(t!==r&&e.has(r)&&W(r,t,1)){q("CLIENT RECT: remove contained"),e.delete(t);break}}else q("CLIENT RECT: remove tiny"),e.delete(t);return Array.from(e)}($(r,1,t)));for(let u=n.length-1;u>=0;u--){const t=n[u];if(!(t.width*t.height>4)){if(!(n.length>1)){q("CLIENT RECT: remove small, but keep otherwise empty!");break}q("CLIENT RECT: remove small"),n.splice(u,1)}}return q("CLIENT RECT: reduced ".concat(r.length," --\x3e ").concat(n.length)),n}function $(u,t,e){for(let r=0;ru!==o&&u!==D)),n=_(o,D);return r.push(n),$(r,t,e)}}return u}function _(u,t){const e=Math.min(u.left,t.left),r=Math.max(u.right,t.right),n=Math.min(u.top,t.top),o=Math.max(u.bottom,t.bottom);return{bottom:o,height:o-n,left:e,right:r,top:n,width:r-e}}function W(u,t,e){return U(u,t.left,t.top,e)&&U(u,t.right,t.top,e)&&U(u,t.left,t.bottom,e)&&U(u,t.right,t.bottom,e)}function U(u,t,e,r){return(u.leftt||H(u.right,t,r))&&(u.tope||H(u.bottom,e,r))}function z(u){for(let t=0;tu!==t));return Array.prototype.push.apply(D,e),z(D)}}else q("replaceOverlapingRects rect1 === rect2 ??!")}return u}function G(u,t){const e=function(u,t){const e=Math.max(u.left,t.left),r=Math.min(u.right,t.right),n=Math.max(u.top,t.top),o=Math.min(u.bottom,t.bottom);return{bottom:o,height:Math.max(0,o-n),left:e,right:r,top:n,width:Math.max(0,r-e)}}(t,u);if(0===e.height||0===e.width)return[u];const r=[];{const t={bottom:u.bottom,height:0,left:u.left,right:e.left,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:e.top,height:0,left:e.left,right:e.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.left,right:e.right,top:e.bottom,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.right,right:u.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}return r}function V(u,t,e){return(u.left=0&&H(u.left,t.right,e))&&(t.left=0&&H(t.left,u.right,e))&&(u.top=0&&H(u.top,t.bottom,e))&&(t.top=0&&H(t.top,u.bottom,e))}function H(u,t,e){return Math.abs(u-t)<=e}function q(){N&&T.apply(null,arguments)}var X,Y=[],K="ResizeObserver loop completed with undelivered notifications.";!function(u){u.BORDER_BOX="border-box",u.CONTENT_BOX="content-box",u.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(X||(X={}));var J,Z=function(u){return Object.freeze(u)},Q=function(u,t){this.inlineSize=u,this.blockSize=t,Z(this)},uu=function(){function u(u,t,e,r){return this.x=u,this.y=t,this.width=e,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Z(this)}return u.prototype.toJSON=function(){var u=this;return{x:u.x,y:u.y,top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.width,height:u.height}},u.fromRect=function(t){return new u(t.x,t.y,t.width,t.height)},u}(),tu=function(u){return u instanceof SVGElement&&"getBBox"in u},eu=function(u){if(tu(u)){var t=u.getBBox(),e=t.width,r=t.height;return!e&&!r}var n=u,o=n.offsetWidth,D=n.offsetHeight;return!(o||D||u.getClientRects().length)},ru=function(u){var t;if(u instanceof Element)return!0;var e=null===(t=null==u?void 0:u.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(e&&u instanceof e.Element)},nu="undefined"!=typeof window?window:{},ou=new WeakMap,Du=/auto|scroll/,iu=/^tb|vertical/,au=/msie|trident/i.test(nu.navigator&&nu.navigator.userAgent),Fu=function(u){return parseFloat(u||"0")},cu=function(u,t,e){return void 0===u&&(u=0),void 0===t&&(t=0),void 0===e&&(e=!1),new Q((e?t:u)||0,(e?u:t)||0)},su=Z({devicePixelContentBoxSize:cu(),borderBoxSize:cu(),contentBoxSize:cu(),contentRect:new uu(0,0,0,0)}),lu=function(u,t){if(void 0===t&&(t=!1),ou.has(u)&&!t)return ou.get(u);if(eu(u))return ou.set(u,su),su;var e=getComputedStyle(u),r=tu(u)&&u.ownerSVGElement&&u.getBBox(),n=!au&&"border-box"===e.boxSizing,o=iu.test(e.writingMode||""),D=!r&&Du.test(e.overflowY||""),i=!r&&Du.test(e.overflowX||""),a=r?0:Fu(e.paddingTop),F=r?0:Fu(e.paddingRight),c=r?0:Fu(e.paddingBottom),s=r?0:Fu(e.paddingLeft),l=r?0:Fu(e.borderTopWidth),f=r?0:Fu(e.borderRightWidth),p=r?0:Fu(e.borderBottomWidth),E=s+F,A=a+c,C=(r?0:Fu(e.borderLeftWidth))+f,y=l+p,d=i?u.offsetHeight-y-u.clientHeight:0,h=D?u.offsetWidth-C-u.clientWidth:0,B=n?E+C:0,g=n?A+y:0,m=r?r.width:Fu(e.width)-B-h,b=r?r.height:Fu(e.height)-g-d,v=m+E+h+C,w=b+A+d+y,x=Z({devicePixelContentBoxSize:cu(Math.round(m*devicePixelRatio),Math.round(b*devicePixelRatio),o),borderBoxSize:cu(v,w,o),contentBoxSize:cu(m,b,o),contentRect:new uu(s,a,m,b)});return ou.set(u,x),x},fu=function(u,t,e){var r=lu(u,e),n=r.borderBoxSize,o=r.contentBoxSize,D=r.devicePixelContentBoxSize;switch(t){case X.DEVICE_PIXEL_CONTENT_BOX:return D;case X.BORDER_BOX:return n;default:return o}},pu=function(u){var t=lu(u);this.target=u,this.contentRect=t.contentRect,this.borderBoxSize=Z([t.borderBoxSize]),this.contentBoxSize=Z([t.contentBoxSize]),this.devicePixelContentBoxSize=Z([t.devicePixelContentBoxSize])},Eu=function(u){if(eu(u))return 1/0;for(var t=0,e=u.parentNode;e;)t+=1,e=e.parentNode;return t},Au=function(){var u=1/0,t=[];Y.forEach((function(e){if(0!==e.activeTargets.length){var r=[];e.activeTargets.forEach((function(t){var e=new pu(t.target),n=Eu(t.target);r.push(e),t.lastReportedSize=fu(t.target,t.observedBox),nu?t.activeTargets.push(e):t.skippedTargets.push(e))}))}))},yu=[],du=0,hu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gu=function(u){return void 0===u&&(u=0),Date.now()+u},mu=!1,bu=function(){function u(){var u=this;this.stopped=!0,this.listener=function(){return u.schedule()}}return u.prototype.run=function(u){var t=this;if(void 0===u&&(u=250),!mu){mu=!0;var e,r=gu(u);e=function(){var e=!1;try{e=function(){var u,t=0;for(Cu(t);Y.some((function(u){return u.activeTargets.length>0}));)t=Au(),Cu(t);return Y.some((function(u){return u.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?u=new ErrorEvent("error",{message:K}):((u=document.createEvent("Event")).initEvent("error",!1,!1),u.message=K),window.dispatchEvent(u)),t>0}()}finally{if(mu=!1,u=r-gu(),!du)return;e?t.run(1e3):u>0?t.run(u):t.start()}},function(u){if(!J){var t=0,e=document.createTextNode("");new MutationObserver((function(){return yu.splice(0).forEach((function(u){return u()}))})).observe(e,{characterData:!0}),J=function(){e.textContent="".concat(t?t--:t++)}}yu.push(u),J()}((function(){requestAnimationFrame(e)}))}},u.prototype.schedule=function(){this.stop(),this.run()},u.prototype.observe=function(){var u=this,t=function(){return u.observer&&u.observer.observe(document.body,hu)};document.body?t():nu.addEventListener("DOMContentLoaded",t)},u.prototype.start=function(){var u=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bu.forEach((function(t){return nu.addEventListener(t,u.listener,!0)})))},u.prototype.stop=function(){var u=this;this.stopped||(this.observer&&this.observer.disconnect(),Bu.forEach((function(t){return nu.removeEventListener(t,u.listener,!0)})),this.stopped=!0)},u}(),vu=new bu,wu=function(u){!du&&u>0&&vu.start(),!(du+=u)&&vu.stop()},xu=function(){function u(u,t){this.target=u,this.observedBox=t||X.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return u.prototype.isActive=function(){var u,t=fu(this.target,this.observedBox,!0);return u=this.target,tu(u)||function(u){switch(u.tagName){case"INPUT":if("image"!==u.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(u)||"inline"!==getComputedStyle(u).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},u}(),Su=function(u,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=u,this.callback=t},Ou=new WeakMap,ju=function(u,t){for(var e=0;e=0&&(n&&Y.splice(Y.indexOf(e),1),e.observationTargets.splice(r,1),wu(-1))},u.disconnect=function(u){var t=this,e=Ou.get(u);e.observationTargets.slice().forEach((function(e){return t.unobserve(u,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},u}(),Tu=function(){function u(u){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof u)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Pu.connect(this,u)}return u.prototype.observe=function(u,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ru(u))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Pu.observe(this,u,t)},u.prototype.unobserve=function(u){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ru(u))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Pu.unobserve(this,u)},u.prototype.disconnect=function(){Pu.disconnect(this)},u.toString=function(){return"function ResizeObserver () { [polyfill code] }"},u}();const Ru=window.ResizeObserver||Tu;let Iu=new Map,Nu=new Map;var Mu=0;function ku(u){return u&&u instanceof Element}window.addEventListener("load",(function(){const u=document.body;var t={width:0,height:0};new Ru((()=>{t.width===u.clientWidth&&t.height===u.clientHeight||(t={width:u.clientWidth,height:u.clientHeight},Nu.forEach((function(u){u.requestLayout()})))})).observe(u)}),!1);const Lu={NONE:"",DESCENDANT:" ",CHILD:" > "},$u={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"},_u="CssSelectorGenerator";function Wu(u="unknown problem",...t){console.warn(`${_u}: ${u}`,...t)}const Uu={selectors:[$u.id,$u.class,$u.tag,$u.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function zu(u){return u instanceof RegExp}function Gu(u){return["string","function"].includes(typeof u)||zu(u)}function Vu(u){return Array.isArray(u)?u.filter(Gu):[]}function Hu(u){const t=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return function(u){return u instanceof Node}(u)&&t.includes(u.nodeType)}function qu(u,t){if(Hu(u))return u.contains(t)||Wu("element root mismatch","Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended."),u;const e=t.getRootNode({composed:!1});return Hu(e)?(e!==document&&Wu("shadow root inferred","You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended."),e):t.ownerDocument.querySelector(":root")}function Xu(u){return"number"==typeof u?u:Number.POSITIVE_INFINITY}function Yu(u=[]){const[t=[],...e]=u;return 0===e.length?t:e.reduce(((u,t)=>u.filter((u=>t.includes(u)))),t)}function Ku(u){return[].concat(...u)}function Ju(u){const t=u.map((u=>{if(zu(u))return t=>u.test(t);if("function"==typeof u)return t=>{const e=u(t);return"boolean"!=typeof e?(Wu("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",u),!1):e};if("string"==typeof u){const t=new RegExp("^"+u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return u=>t.test(u)}return Wu("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",u),()=>!1}));return u=>t.some((t=>t(u)))}function Zu(u,t,e){const r=Array.from(qu(e,u[0]).querySelectorAll(t));return r.length===u.length&&u.every((u=>r.includes(u)))}function Qu(u,t){t=null!=t?t:function(u){return u.ownerDocument.querySelector(":root")}(u);const e=[];let r=u;for(;ku(r)&&r!==t;)e.push(r),r=r.parentElement;return e}function ut(u,t){return Yu(u.map((u=>Qu(u,t))))}const tt=new RegExp(["^$","\\s"].join("|")),et=new RegExp(["^$"].join("|")),rt=[$u.nthoftype,$u.tag,$u.id,$u.class,$u.attribute,$u.nthchild],nt=Ju(["class","id","ng-*"]);function ot({name:u}){return`[${u}]`}function Dt({name:u,value:t}){return`[${u}='${t}']`}function it({nodeName:u,nodeValue:t}){return{name:(e=u,e.replace(/:/g,"\\:")),value:ht(t)};var e}function at(u){const t=Array.from(u.attributes).filter((t=>function({nodeName:u},t){const e=t.tagName.toLowerCase();return!(["input","option"].includes(e)&&"value"===u||nt(u))}(t,u))).map(it);return[...t.map(ot),...t.map(Dt)]}function Ft(u){return(u.getAttribute("class")||"").trim().split(/\s+/).filter((u=>!et.test(u))).map((u=>`.${ht(u)}`))}function ct(u){const t=u.getAttribute("id")||"",e=`#${ht(t)}`,r=u.getRootNode({composed:!1});return!tt.test(t)&&Zu([u],e,r)?[e]:[]}function st(u){const t=u.parentNode;if(t){const e=Array.from(t.childNodes).filter(ku).indexOf(u);if(e>-1)return[`:nth-child(${e+1})`]}return[]}function lt(u){return[ht(u.tagName.toLowerCase())]}function ft(u){const t=[...new Set(Ku(u.map(lt)))];return 0===t.length||t.length>1?[]:[t[0]]}function pt(u){const t=ft([u])[0],e=u.parentElement;if(e){const r=Array.from(e.children).filter((u=>u.tagName.toLowerCase()===t)),n=r.indexOf(u);if(n>-1)return[`${t}:nth-of-type(${n+1})`]}return[]}function Et(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){return Array.from(function*(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){let e=0,r=Ct(1);for(;r.length<=u.length&&eu[t]));yield t,r=At(r,u.length-1)}}(u,{maxResults:t}))}function At(u=[],t=0){const e=u.length;if(0===e)return[];const r=[...u];r[e-1]+=1;for(let u=e-1;u>=0;u--)if(r[u]>t){if(0===u)return Ct(e+1);r[u-1]++,r[u]=r[u-1]+1}return r[e-1]>t?Ct(e+1):r}function Ct(u=1){return Array.from(Array(u).keys())}const yt=":".charCodeAt(0).toString(16).toUpperCase(),dt=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function ht(u=""){var t,e;return null!==(e=null===(t=null===CSS||void 0===CSS?void 0:CSS.escape)||void 0===t?void 0:t.call(CSS,u))&&void 0!==e?e:function(u=""){return u.split("").map((u=>":"===u?`\\${yt} `:dt.test(u)?`\\${u}`:escape(u).replace(/%/g,"\\"))).join("")}(u)}const Bt={tag:ft,id:function(u){return 0===u.length||u.length>1?[]:ct(u[0])},class:function(u){return Yu(u.map(Ft))},attribute:function(u){return Yu(u.map(at))},nthchild:function(u){return Yu(u.map(st))},nthoftype:function(u){return Yu(u.map(pt))}},gt={tag:lt,id:ct,class:Ft,attribute:at,nthchild:st,nthoftype:pt};function mt(u){return u.includes($u.tag)||u.includes($u.nthoftype)?[...u]:[...u,$u.tag]}function bt(u={}){const t=[...rt];return u[$u.tag]&&u[$u.nthoftype]&&t.splice(t.indexOf($u.tag),1),t.map((t=>{return(r=u)[e=t]?r[e].join(""):"";var e,r})).join("")}function vt(u,t,e="",r){const n=function(u,t){return""===t?u:function(u,t){return[...u.map((u=>t+Lu.DESCENDANT+u)),...u.map((u=>t+Lu.CHILD+u))]}(u,t)}(function(u,t,e){const r=function(u,t){const{blacklist:e,whitelist:r,combineWithinSelector:n,maxCombinations:o}=t,D=Ju(e),i=Ju(r);return function(u){const{selectors:t,includeTag:e}=u,r=[].concat(t);return e&&!r.includes("tag")&&r.push("tag"),r}(t).reduce(((t,e)=>{const r=function(u,t){var e;return(null!==(e=Bt[t])&&void 0!==e?e:()=>[])(u)}(u,e),a=function(u=[],t,e){return u.filter((u=>e(u)||!t(u)))}(r,D,i),F=function(u=[],t){return u.sort(((u,e)=>{const r=t(u),n=t(e);return r&&!n?-1:!r&&n?1:0}))}(a,i);return t[e]=n?Et(F,{maxResults:o}):F.map((u=>[u])),t}),{})}(u,e),n=function(u,t){return function(u){const{selectors:t,combineBetweenSelectors:e,includeTag:r,maxCandidates:n}=u,o=e?Et(t,{maxResults:n}):t.map((u=>[u]));return r?o.map(mt):o}(t).map((t=>function(u,t){const e={};return u.forEach((u=>{const r=t[u];r.length>0&&(e[u]=r)})),function(u={}){let t=[];return Object.entries(u).forEach((([u,e])=>{t=e.flatMap((e=>0===t.length?[{[u]:e}]:t.map((t=>Object.assign(Object.assign({},t),{[u]:e})))))})),t}(e).map(bt)}(t,u))).filter((u=>u.length>0))}(r,e),o=Ku(n);return[...new Set(o)]}(u,r.root,r),e);for(const t of n)if(Zu(u,t,r.root))return t;return null}function wt(u){return{value:u,include:!1}}function xt({selectors:u,operator:t}){let e=[...rt];u[$u.tag]&&u[$u.nthoftype]&&(e=e.filter((u=>u!==$u.tag)));let r="";return e.forEach((t=>{(u[t]||[]).forEach((({value:u,include:t})=>{t&&(r+=u)}))})),t+r}function St(u){return[":root",...Qu(u).reverse().map((u=>{const t=function(u,t,e=Lu.NONE){const r={};return t.forEach((t=>{Reflect.set(r,t,function(u,t){return gt[t](u)}(u,t).map(wt))})),{element:u,operator:e,selectors:r}}(u,[$u.nthchild],Lu.CHILD);return t.selectors.nthchild.forEach((u=>{u.include=!0})),t})).map(xt)].join("")}function Ot(u,t={}){const e=function(u){(u instanceof NodeList||u instanceof HTMLCollection)&&(u=Array.from(u));const t=(Array.isArray(u)?u:[u]).filter(ku);return[...new Set(t)]}(u),r=function(u,t={}){const e=Object.assign(Object.assign({},Uu),t);return{selectors:(r=e.selectors,Array.isArray(r)?r.filter((u=>{return t=$u,e=u,Object.values(t).includes(e);var t,e})):[]),whitelist:Vu(e.whitelist),blacklist:Vu(e.blacklist),root:qu(e.root,u),combineWithinSelector:!!e.combineWithinSelector,combineBetweenSelectors:!!e.combineBetweenSelectors,includeTag:!!e.includeTag,maxCombinations:Xu(e.maxCombinations),maxCandidates:Xu(e.maxCandidates)};var r}(e[0],t);let n="",o=r.root;function D(){return function(u,t,e="",r){if(0===u.length)return null;const n=[u.length>1?u:[],...ut(u,t).map((u=>[u]))];for(const u of n){const t=vt(u,0,e,r);if(t)return{foundElements:u,selector:t}}return null}(e,o,n,r)}let i=D();for(;i;){const{foundElements:u,selector:t}=i;if(Zu(e,t,r.root))return t;o=u[0],n=t,i=D()}return e.length>1?e.map((u=>Ot(u,r))).join(", "):function(u){return u.map(St).join(", ")}(e)}function jt(u){return null==u?null:-1!==["a","audio","button","canvas","details","input","label","option","select","submit","textarea","video"].indexOf(u.nodeName.toLowerCase())||u.hasAttribute("contenteditable")&&"false"!=u.getAttribute("contenteditable").toLowerCase()?u.outerHTML:u.parentElement?jt(u.parentElement):null}function Pt(u){for(var t=0;t0&&t.top0&&t.left{Nt(u)||(Mt(u),kt(u,"keydown"))})),window.addEventListener("keyup",(u=>{Nt(u)||(Mt(u),kt(u,"keyup"))})),e.g.readium={scrollToId:function(u){let t=document.getElementById(u);return!!t&&(w(t.getBoundingClientRect()),!0)},scrollToPosition:function(u,t){if(console.log("ScrollToPosition"),u<0||u>1)console.log("InvalidPosition");else if(v()){let t=document.scrollingElement.scrollHeight*u;document.scrollingElement.scrollTop=t}else{let e=document.scrollingElement.scrollWidth*u*("rtl"==t?-1:1);document.scrollingElement.scrollLeft=S(e)}},scrollToLocator:function(u){let t=O(u);return!!t&&function(u){return w(u.getBoundingClientRect())}(t)},scrollLeft:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX-r,o=t?-(e-r):0;return x(Math.max(n,o))},scrollRight:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX+r,o=t?0:e-r;return x(Math.min(n,o))},setCSSProperties:function(u){for(const t in u)j(t,u[t])},setProperty:j,removeProperty:P,registerDecorationTemplates:function(u){var t="";for(const[e,r]of Object.entries(u))Iu.set(e,r),r.stylesheet&&(t+=r.stylesheet+"\n");if(t){let u=document.createElement("style");u.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(u)}},getDecorations:function(u){var t=Nu.get(u);return t||(t=function(u,t){var e=[],r=0,n=null,o=!1;function D(t){let n=u+"-"+r++,o=O(t.locator);if(!o)return void T("Can't locate DOM range for decoration",t);let D={id:n,decoration:t,range:o};e.push(D),a(D)}function i(u){let t=e.findIndex((t=>t.decoration.id===u));if(-1===t)return;let r=e[t];e.splice(t,1),r.clickableElements=null,r.container&&(r.container.remove(),r.container=null)}function a(e){let r=(n||((n=document.createElement("div")).setAttribute("id",u),n.setAttribute("data-group",t),n.style.setProperty("pointer-events","none"),requestAnimationFrame((function(){null!=n&&document.body.append(n)}))),n),o=Iu.get(e.decoration.style);if(!o)return void R("Unknown decoration style: ".concat(e.decoration.style));let D=document.createElement("div");D.setAttribute("id",e.id),D.setAttribute("data-style",e.decoration.style),D.style.setProperty("pointer-events","none");let i=window.innerWidth,a=parseInt(getComputedStyle(document.documentElement).getPropertyValue("column-count")),F=i/(a||1),c=document.scrollingElement,s=c.scrollLeft,l=c.scrollTop;function f(u,t,e){if(u.style.position="absolute","wrap"===o.width)u.style.width="".concat(t.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(t.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("viewport"===o.width){u.style.width="".concat(i,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/i)*i;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}else if("bounds"===o.width)u.style.width="".concat(e.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(e.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("page"===o.width){u.style.width="".concat(F,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/F)*F;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}}let p,E=e.range.getBoundingClientRect();try{let u=document.createElement("template");u.innerHTML=e.decoration.element.trim(),p=u.content.firstElementChild}catch(u){return void R('Invalid decoration element "'.concat(e.decoration.element,'": ').concat(u.message))}if("boxes"===o.layout){let u=!0,t=L(e.range,u);t=t.sort(((u,t)=>u.topt.top?1:0));for(let u of t){const t=p.cloneNode(!0);t.style.setProperty("pointer-events","none"),f(t,u,E),D.append(t)}}else if("bounds"===o.layout){const u=p.cloneNode(!0);u.style.setProperty("pointer-events","none"),f(u,E,E),D.append(u)}r.append(D),e.container=D,e.clickableElements=Array.from(D.querySelectorAll("[data-activable='1']")),0===e.clickableElements.length&&(e.clickableElements=Array.from(D.children))}function F(){n&&(n.remove(),n=null)}return{add:D,remove:i,update:function(u){i(u.id),D(u)},clear:function(){F(),e.length=0},items:e,requestLayout:function(){F(),e.forEach((u=>a(u)))},isActivable:function(){return o},setActivable:function(){o=!0}}}("r2-decoration-"+Mu++,u),Nu.set(u,t)),t},findFirstVisibleLocator:function(){const u=Pt(document.body);return{href:"#",type:"application/xhtml+xml",locations:{cssSelector:Ot(u)},text:{highlight:u.textContent}}}},window.readium.isFixedLayout=!0,webkit.messageHandlers.spreadLoadStarted.postMessage({})})()})(); //# sourceMappingURL=readium-fixed.js.map \ No newline at end of file diff --git a/Sources/Navigator/EPUB/Assets/Static/scripts/readium-reflowable.js b/Sources/Navigator/EPUB/Assets/Static/scripts/readium-reflowable.js index d5ced4c50..688eb0da0 100644 --- a/Sources/Navigator/EPUB/Assets/Static/scripts/readium-reflowable.js +++ b/Sources/Navigator/EPUB/Assets/Static/scripts/readium-reflowable.js @@ -1,2 +1,2 @@ -(()=>{var u={9116:(u,t)=>{"use strict";function e(u){return u.split("").reverse().join("")}function r(u){return(u|-u)>>31&1}function n(u,t,e,n){var o=u.P[e],D=u.M[e],i=n>>>31,a=t[e]|i,F=a|D,c=(a&o)+o^o|a,s=D|~(c|o),l=o&c,f=r(s&u.lastRowMask[e])-r(l&u.lastRowMask[e]);return s<<=1,l<<=1,o=(l|=i)|~(F|(s|=r(n)-i)),D=s&F,u.P[e]=o,u.M[e]=D,f}function o(u,t,e){if(0===t.length)return[];e=Math.min(e,t.length);var r=[],o=32,D=Math.ceil(t.length/o)-1,i={P:new Uint32Array(D+1),M:new Uint32Array(D+1),lastRowMask:new Uint32Array(D+1)};i.lastRowMask.fill(1<<31),i.lastRowMask[D]=1<<(t.length-1)%o;for(var a=new Uint32Array(D+1),F=new Map,c=[],s=0;s<256;s++)c.push(a);for(var l=0;l=t.length||t.charCodeAt(C)===f&&(p[E]|=1<0&&d[y]>=e+o;)y-=1;y===D&&d[y]<=e&&(d[y]{"use strict";var r=e(4624),n=e(5096),o=n(r("String.prototype.indexOf"));u.exports=function(u,t){var e=r(u,!!t);return"function"==typeof e&&o(u,".prototype.")>-1?n(e):e}},5096:(u,t,e)=>{"use strict";var r=e(3520),n=e(4624),o=e(5676),D=e(2824),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),F=n("%Reflect.apply%",!0)||r.call(a,i),c=n("%Object.defineProperty%",!0),s=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(u){c=null}u.exports=function(u){if("function"!=typeof u)throw new D("a function is required");var t=F(r,a,arguments);return o(t,1+s(0,u.length-(arguments.length-1)),!0)};var l=function(){return F(r,i,arguments)};c?c(u.exports,"apply",{value:l}):u.exports.apply=l},2448:(u,t,e)=>{"use strict";var r=e(3268)(),n=e(4624),o=r&&n("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var D=e(6500),i=e(2824),a=e(6168);u.exports=function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],s=!!a&&a(u,t);if(o)o(u,t,{configurable:null===F&&s?s.configurable:!F,enumerable:null===r&&s?s.enumerable:!r,value:e,writable:null===n&&s?s.writable:!n});else{if(!c&&(r||n||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");u[t]=e}}},2732:(u,t,e)=>{"use strict";var r=e(2812),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,D=Array.prototype.concat,i=e(2448),a=e(3268)(),F=function(u,t,e,r){if(t in u)if(!0===r){if(u[t]===e)return}else if("function"!=typeof(n=r)||"[object Function]"!==o.call(n)||!r())return;var n;a?i(u,t,e,!0):i(u,t,e)},c=function(u,t){var e=arguments.length>2?arguments[2]:{},o=r(t);n&&(o=D.call(o,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";u.exports=EvalError},1152:u=>{"use strict";u.exports=Error},1932:u=>{"use strict";u.exports=RangeError},5028:u=>{"use strict";u.exports=ReferenceError},6500:u=>{"use strict";u.exports=SyntaxError},2824:u=>{"use strict";u.exports=TypeError},5488:u=>{"use strict";u.exports=URIError},9200:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=e(4712)(),o=e(4440),D=n?Symbol.toStringTag:null;u.exports=function(u,t){var e=arguments.length>2&&arguments[2]&&arguments[2].force;!D||!e&&o(u,D)||(r?r(u,D,{configurable:!0,enumerable:!1,value:t,writable:!1}):u[D]=t)}},108:(u,t,e)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,n=e(5988),o=e(648),D=e(1844),i=e(7256);u.exports=function(u){if(n(u))return u;var t,e="default";if(arguments.length>1&&(arguments[1]===String?e="string":arguments[1]===Number&&(e="number")),r&&(Symbol.toPrimitive?t=function(u,t){var e=u[t];if(null!=e){if(!o(e))throw new TypeError(e+" returned for property "+t+" of object "+u+" is not a function");return e}}(u,Symbol.toPrimitive):i(u)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(u,e);if(n(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===e&&(D(u)||i(u))&&(e="string"),function(u,t){if(null==u)throw new TypeError("Cannot call method on "+u);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var e,r,D,i="string"===t?["toString","valueOf"]:["valueOf","toString"];for(D=0;D{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},1480:u=>{"use strict";var t=Object.prototype.toString,e=Math.max,r=function(u,t){for(var e=[],r=0;r{"use strict";var r=e(1480);u.exports=Function.prototype.bind||r},2656:u=>{"use strict";var t=function(){return"string"==typeof function(){}.name},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch(u){e=null}t.functionsHaveConfigurableNames=function(){if(!t()||!e)return!1;var u=e((function(){}),"name");return!!u&&!!u.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},u.exports=t},4624:(u,t,e)=>{"use strict";var r,n=e(1152),o=e(7261),D=e(1932),i=e(5028),a=e(6500),F=e(2824),c=e(5488),s=Function,l=function(u){try{return s('"use strict"; return ('+u+").constructor;")()}catch(u){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(u){f=null}var p=function(){throw new F},E=f?function(){try{return p}catch(u){try{return f(arguments,"callee").get}catch(u){return p}}}():p,A=e(9800)(),C=e(7e3)(),y=Object.getPrototypeOf||(C?function(u){return u.__proto__}:null),d={},h="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":D,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&y?y(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":h,"%TypeError%":F,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(u){var g=y(y(u));B["%Error.prototype%"]=g}var m=function u(t){var e;if("%AsyncFunction%"===t)e=l("async function () {}");else if("%GeneratorFunction%"===t)e=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=u("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=u("%AsyncGenerator%");n&&y&&(e=y(n.prototype))}return B[t]=e,e},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=e(3520),w=e(4440),x=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,I=function(u,t){var e,r=u;if(w(b,r)&&(r="%"+(e=b[r])[0]+"%"),w(B,r)){var n=B[r];if(n===d&&(n=m(r)),void 0===n&&!t)throw new F("intrinsic "+u+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:n}}throw new a("intrinsic "+u+" does not exist!")};u.exports=function(u,t){if("string"!=typeof u||0===u.length)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new F('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,u))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(u){var t=j(u,0,1),e=j(u,-1);if("%"===t&&"%"!==e)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return O(u,T,(function(u,t,e,n){r[r.length]=e?O(n,R,"$1"):t||u})),r}(u),r=e.length>0?e[0]:"",n=I("%"+r+"%",t),o=n.name,D=n.value,i=!1,c=n.alias;c&&(r=c[0],S(e,x([0,1],c)));for(var s=1,l=!0;s=e.length){var C=f(D,p);D=(l=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:D[p]}else l=w(D,p),D=D[p];l&&!i&&(B[o]=D)}}return D}},6168:(u,t,e)=>{"use strict";var r=e(4624)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(u){r=null}u.exports=r},3268:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=function(){if(r)try{return r({},"a",{value:1}),!0}catch(u){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==r([],"length",{value:1}).length}catch(u){return!0}},u.exports=n},7e3:u=>{"use strict";var t={foo:{}},e=Object;u.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)}},9800:(u,t,e)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=e(7904);u.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},7904:u=>{"use strict";u.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var u={},t=Symbol("test"),e=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(t in u[t]=42,u)return!1;if("function"==typeof Object.keys&&0!==Object.keys(u).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(u).length)return!1;var r=Object.getOwnPropertySymbols(u);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(u,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(u,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},4712:(u,t,e)=>{"use strict";var r=e(7904);u.exports=function(){return r()&&!!Symbol.toStringTag}},4440:(u,t,e)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=e(3520);u.exports=o.call(r,n)},7284:(u,t,e)=>{"use strict";var r=e(4440),n=e(3147)(),o=e(2824),D={assert:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");if(n.assert(u),!D.has(u,t))throw new o("`"+t+"` is not present on `O`")},get:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return e&&e["$"+t]},has:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return!!e&&r(e,"$"+t)},set:function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var r=n.get(u);r||(r={},n.set(u,r)),r["$"+t]=e}};Object.freeze&&Object.freeze(D),u.exports=D},648:u=>{"use strict";var t,e,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},n((function(){throw 42}),null,t)}catch(u){u!==e&&(n=null)}else n=null;var o=/^\s*class\b/,D=function(u){try{var t=r.call(u);return o.test(t)}catch(u){return!1}},i=function(u){try{return!D(u)&&(r.call(u),!0)}catch(u){return!1}},a=Object.prototype.toString,F="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),s=function(){return!1};if("object"==typeof document){var l=document.all;a.call(l)===a.call(document.all)&&(s=function(u){if((c||!u)&&(void 0===u||"object"==typeof u))try{var t=a.call(u);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==u("")}catch(u){}return!1})}u.exports=n?function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;try{n(u,null,t)}catch(u){if(u!==e)return!1}return!D(u)&&i(u)}:function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;if(F)return i(u);if(D(u))return!1;var t=a.call(u);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&i(u)}},1844:(u,t,e)=>{"use strict";var r=Date.prototype.getDay,n=Object.prototype.toString,o=e(4712)();u.exports=function(u){return"object"==typeof u&&null!==u&&(o?function(u){try{return r.call(u),!0}catch(u){return!1}}(u):"[object Date]"===n.call(u))}},1476:(u,t,e)=>{"use strict";var r,n,o,D,i=e(668),a=e(4712)();if(a){r=i("Object.prototype.hasOwnProperty"),n=i("RegExp.prototype.exec"),o={};var F=function(){throw o};D={toString:F,valueOf:F},"symbol"==typeof Symbol.toPrimitive&&(D[Symbol.toPrimitive]=F)}var c=i("Object.prototype.toString"),s=Object.getOwnPropertyDescriptor;u.exports=a?function(u){if(!u||"object"!=typeof u)return!1;var t=s(u,"lastIndex");if(!t||!r(t,"value"))return!1;try{n(u,D)}catch(u){return u===o}}:function(u){return!(!u||"object"!=typeof u&&"function"!=typeof u)&&"[object RegExp]"===c(u)}},7256:(u,t,e)=>{"use strict";var r=Object.prototype.toString;if(e(9800)()){var n=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;u.exports=function(u){if("symbol"==typeof u)return!0;if("[object Symbol]"!==r.call(u))return!1;try{return function(u){return"symbol"==typeof u.valueOf()&&o.test(n.call(u))}(u)}catch(u){return!1}}}else u.exports=function(u){return!1}},4152:(u,t,e)=>{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,D=r&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F=i&&a&&"function"==typeof a.get?a.get:null,c=i&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,E=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,y=String.prototype.slice,d=String.prototype.replace,h=String.prototype.toUpperCase,B=String.prototype.toLowerCase,g=RegExp.prototype.test,m=Array.prototype.concat,b=Array.prototype.join,v=Array.prototype.slice,w=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function I(u,t){if(u===1/0||u===-1/0||u!=u||u&&u>-1e3&&u<1e3||g.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof u){var r=u<0?-w(-u):w(u);if(r!==u){var n=String(r),o=y.call(t,n.length+1);return d.call(n,e,"$&_")+"."+d.call(d.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(t,e,"$&_")}var N=e(1740),M=N.custom,k=U(M)?M:null;function L(u,t,e){var r="double"===(e.quoteStyle||t)?'"':"'";return r+u+r}function $(u){return d.call(String(u),/"/g,""")}function _(u){return!("[object Array]"!==V(u)||P&&"object"==typeof u&&P in u)}function W(u){return!("[object RegExp]"!==V(u)||P&&"object"==typeof u&&P in u)}function U(u){if(j)return u&&"object"==typeof u&&u instanceof Symbol;if("symbol"==typeof u)return!0;if(!u||"object"!=typeof u||!O)return!1;try{return O.call(u),!0}catch(u){}return!1}u.exports=function u(t,r,n,i){var a=r||{};if(G(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var E=!G(a,"customInspect")||a.customInspect;if("boolean"!=typeof E&&"symbol"!==E)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return q(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var g=String(t);return h?I(t,g):g}if("bigint"==typeof t){var w=String(t)+"n";return h?I(t,w):w}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return _(t)?"[Array]":"[Object]";var M,z=function(u,t){var e;if("\t"===u.indent)e="\t";else{if(!("number"==typeof u.indent&&u.indent>0))return null;e=b.call(Array(u.indent+1)," ")}return{base:e,prev:b.call(Array(t+1),e)}}(a,n);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function X(t,e,r){if(e&&(i=v.call(i)).push(e),r){var o={depth:a.depth};return G(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),u(t,o,n+1,i)}return u(t,a,n+1,i)}if("function"==typeof t&&!W(t)){var uu=function(u){if(u.name)return u.name;var t=C.call(A.call(u),/^function\s*([\w$]+)/);return t?t[1]:null}(t),tu=Q(t,X);return"[Function"+(uu?": "+uu:" (anonymous)")+"]"+(tu.length>0?" { "+b.call(tu,", ")+" }":"")}if(U(t)){var eu=j?d.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?eu:Y(eu)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ru="<"+B.call(String(t.nodeName)),nu=t.attributes||[],ou=0;ou"}if(_(t)){if(0===t.length)return"[]";var Du=Q(t,X);return z&&!function(u){for(var t=0;t=0)return!1;return!0}(Du)?"["+Z(Du,z)+"]":"[ "+b.call(Du,", ")+" ]"}if(function(u){return!("[object Error]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)){var iu=Q(t,X);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===iu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(iu,", ")+" }":"{ ["+String(t)+"] "+b.call(m.call("[cause]: "+X(t.cause),iu),", ")+" }"}if("object"==typeof t&&E){if(k&&"function"==typeof t[k]&&N)return N(t,{depth:S-n});if("symbol"!==E&&"function"==typeof t.inspect)return t.inspect()}if(function(u){if(!o||!u||"object"!=typeof u)return!1;try{o.call(u);try{F.call(u)}catch(u){return!0}return u instanceof Map}catch(u){}return!1}(t)){var au=[];return D&&D.call(t,(function(u,e){au.push(X(e,t,!0)+" => "+X(u,t))})),J("Map",o.call(t),au,z)}if(function(u){if(!F||!u||"object"!=typeof u)return!1;try{F.call(u);try{o.call(u)}catch(u){return!0}return u instanceof Set}catch(u){}return!1}(t)){var Fu=[];return c&&c.call(t,(function(u){Fu.push(X(u,t))})),J("Set",F.call(t),Fu,z)}if(function(u){if(!s||!u||"object"!=typeof u)return!1;try{s.call(u,s);try{l.call(u,l)}catch(u){return!0}return u instanceof WeakMap}catch(u){}return!1}(t))return K("WeakMap");if(function(u){if(!l||!u||"object"!=typeof u)return!1;try{l.call(u,l);try{s.call(u,s)}catch(u){return!0}return u instanceof WeakSet}catch(u){}return!1}(t))return K("WeakSet");if(function(u){if(!f||!u||"object"!=typeof u)return!1;try{return f.call(u),!0}catch(u){}return!1}(t))return K("WeakRef");if(function(u){return!("[object Number]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(Number(t)));if(function(u){if(!u||"object"!=typeof u||!x)return!1;try{return x.call(u),!0}catch(u){}return!1}(t))return Y(X(x.call(t)));if(function(u){return!("[object Boolean]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(p.call(t));if(function(u){return!("[object String]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===e.g)return"{ [object globalThis] }";if(!function(u){return!("[object Date]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)&&!W(t)){var cu=Q(t,X),su=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,lu=t instanceof Object?"":"null prototype",fu=!su&&P&&Object(t)===t&&P in t?y.call(V(t),8,-1):lu?"Object":"",pu=(su||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fu||lu?"["+b.call(m.call([],fu||[],lu||[]),": ")+"] ":"");return 0===cu.length?pu+"{}":z?pu+"{"+Z(cu,z)+"}":pu+"{ "+b.call(cu,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(u){return u in this};function G(u,t){return z.call(u,t)}function V(u){return E.call(u)}function H(u,t){if(u.indexOf)return u.indexOf(t);for(var e=0,r=u.length;et.maxStringLength){var e=u.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return q(y.call(u,0,t.maxStringLength),t)+r}return L(d.call(d.call(u,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(u){var t=u.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+h.call(t.toString(16))}function Y(u){return"Object("+u+")"}function K(u){return u+" { ? }"}function J(u,t,e,r){return u+" ("+t+") {"+(r?Z(e,r):b.call(e,", "))+"}"}function Z(u,t){if(0===u.length)return"";var e="\n"+t.prev+t.base;return e+b.call(u,","+e)+"\n"+t.prev}function Q(u,t){var e=_(u),r=[];if(e){r.length=u.length;for(var n=0;n{"use strict";var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,D=e(9096),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),F=i.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(u){var t=u.constructor;return t&&t.prototype===u},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var u in window)try{if(!l["$"+u]&&n.call(window,u)&&null!==window[u]&&"object"==typeof window[u])try{s(window[u])}catch(u){return!0}}catch(u){return!0}return!1}();r=function(u){var t=null!==u&&"object"==typeof u,e="[object Function]"===o.call(u),r=D(u),i=t&&"[object String]"===o.call(u),l=[];if(!t&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var p=F&&e;if(i&&u.length>0&&!n.call(u,0))for(var E=0;E0)for(var A=0;A{"use strict";var r=Array.prototype.slice,n=e(9096),o=Object.keys,D=o?function(u){return o(u)}:e(9560),i=Object.keys;D.shim=function(){if(Object.keys){var u=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);u||(Object.keys=function(u){return n(u)?i(r.call(u)):i(u)})}else Object.keys=D;return Object.keys||D},u.exports=D},9096:u=>{"use strict";var t=Object.prototype.toString;u.exports=function(u){var e=t.call(u),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==u&&"object"==typeof u&&"number"==typeof u.length&&u.length>=0&&"[object Function]"===t.call(u.callee)),r}},7636:(u,t,e)=>{"use strict";var r=e(6308),n=e(2824),o=Object;u.exports=r((function(){if(null==this||this!==o(this))throw new n("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u}),"get flags",!0)},2192:(u,t,e)=>{"use strict";var r=e(2732),n=e(5096),o=e(7636),D=e(9296),i=e(736),a=n(D());r(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},9296:(u,t,e)=>{"use strict";var r=e(7636),n=e(2732).supportsDescriptors,o=Object.getOwnPropertyDescriptor;u.exports=function(){if(n&&"gim"===/a/gim.flags){var u=o(RegExp.prototype,"flags");if(u&&"function"==typeof u.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",e={};if(Object.defineProperty(e,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(e,"sticky",{get:function(){t+="y"}}),"dy"===t)return u.get}}return r}},736:(u,t,e)=>{"use strict";var r=e(2732).supportsDescriptors,n=e(9296),o=Object.getOwnPropertyDescriptor,D=Object.defineProperty,i=TypeError,a=Object.getPrototypeOf,F=/a/;u.exports=function(){if(!r||!a)throw new i("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=n(),t=a(F),e=o(t,"flags");return e&&e.get===u||D(t,"flags",{configurable:!0,enumerable:!1,get:u}),u}},860:(u,t,e)=>{"use strict";var r=e(668),n=e(1476),o=r("RegExp.prototype.exec"),D=e(2824);u.exports=function(u){if(!n(u))throw new D("`regex` must be a RegExp");return function(t){return null!==o(u,t)}}},5676:(u,t,e)=>{"use strict";var r=e(4624),n=e(2448),o=e(3268)(),D=e(6168),i=e(2824),a=r("%Math.floor%");u.exports=function(u,t){if("function"!=typeof u)throw new i("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||a(t)!==t)throw new i("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],r=!0,F=!0;if("length"in u&&D){var c=D(u,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(F=!1)}return(r||F||!e)&&(o?n(u,"length",t,!0,!0):n(u,"length",t)),u}},6308:(u,t,e)=>{"use strict";var r=e(2448),n=e(3268)(),o=e(2656).functionsHaveConfigurableNames(),D=TypeError;u.exports=function(u,t){if("function"!=typeof u)throw new D("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(n?r(u,"name",t,!0,!0):r(u,"name",t)),u}},3147:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=e(4152),D=e(2824),i=r("%WeakMap%",!0),a=r("%Map%",!0),F=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),l=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),E=function(u,t){for(var e,r=u;null!==(e=r.next);r=e)if(e.key===t)return r.next=e.next,e.next=u.next,u.next=e,e};u.exports=function(){var u,t,e,r={assert:function(u){if(!r.has(u))throw new D("Side channel does not contain "+o(u))},get:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return F(u,r)}else if(a){if(t)return l(t,r)}else if(e)return function(u,t){var e=E(u,t);return e&&e.value}(e,r)},has:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return s(u,r)}else if(a){if(t)return p(t,r)}else if(e)return function(u,t){return!!E(u,t)}(e,r);return!1},set:function(r,n){i&&r&&("object"==typeof r||"function"==typeof r)?(u||(u=new i),c(u,r,n)):a?(t||(t=new a),f(t,r,n)):(e||(e={key:{},next:null}),function(u,t,e){var r=E(u,t);r?r.value=e:u.next={key:t,next:u.next,value:e}}(e,r,n))}};return r}},9508:(u,t,e)=>{"use strict";var r=e(1700),n=e(3672),o=e(5552),D=e(3816),i=e(5424),a=e(4656),F=e(668),c=e(9800)(),s=e(2192),l=F("String.prototype.indexOf"),f=e(6288),p=function(u){var t=f();if(c&&"symbol"==typeof Symbol.matchAll){var e=o(u,Symbol.matchAll);return e===RegExp.prototype[Symbol.matchAll]&&e!==t?t:e}if(D(u))return t};u.exports=function(u){var t=a(this);if(null!=u){if(D(u)){var e="flags"in u?n(u,"flags"):s(u);if(a(e),l(i(e),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var o=p(u);if(void 0!==o)return r(o,u,[t])}var F=i(t),c=new RegExp(u,"g");return r(p(c),c,[F])}},3732:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(9508),D=e(5844),i=e(4148),a=r(o);n(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},6288:(u,t,e)=>{"use strict";var r=e(9800)(),n=e(7492);u.exports=function(){return r&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:n}},5844:(u,t,e)=>{"use strict";var r=e(9508);u.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(u){return String.prototype.matchAll}return r}},7492:(u,t,e)=>{"use strict";var r=e(5211),n=e(3672),o=e(4e3),D=e(8652),i=e(4784),a=e(5424),F=e(8645),c=e(2192),s=e(6308),l=e(668)("String.prototype.indexOf"),f=RegExp,p="flags"in RegExp.prototype,E=s((function(u){var t=this;if("Object"!==F(t))throw new TypeError('"this" value must be an Object');var e=a(u),s=function(u,t){var e="flags"in t?n(t,"flags"):a(c(t));return{flags:e,matcher:new u(p&&"string"==typeof e?t:u===f?t.source:t,e)}}(D(t,f),t),E=s.flags,A=s.matcher,C=i(n(t,"lastIndex"));o(A,"lastIndex",C,!0);var y=l(E,"g")>-1,d=l(E,"u")>-1;return r(A,e,y,d)}),"[Symbol.matchAll]",!0);u.exports=E},4148:(u,t,e)=>{"use strict";var r=e(2732),n=e(9800)(),o=e(5844),D=e(6288),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor;u.exports=function(){var u=o();if(r(String.prototype,{matchAll:u},{matchAll:function(){return String.prototype.matchAll!==u}}),n){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(r(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),i&&a){var e=a(Symbol,t);e&&!e.configurable||i(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var F=D(),c={};c[t]=F;var s={};s[t]=function(){return RegExp.prototype[t]!==F},r(RegExp.prototype,c,s)}return u}},6936:(u,t,e)=>{"use strict";var r=e(4656),n=e(5424),o=e(668)("String.prototype.replace"),D=/^\s$/.test("᠎"),i=D?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=D?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;u.exports=function(){var u=n(r(this));return o(o(u,i,""),a,"")}},9292:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(4656),D=e(6936),i=e(6684),a=e(9788),F=r(i()),c=function(u){return o(u),F(u)};n(c,{getPolyfill:i,implementation:D,shim:a}),u.exports=c},6684:(u,t,e)=>{"use strict";var r=e(6936);u.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},9788:(u,t,e)=>{"use strict";var r=e(2732),n=e(6684);u.exports=function(){var u=n();return r(String.prototype,{trim:u},{trim:function(){return String.prototype.trim!==u}}),u}},1740:()=>{},1056:(u,t,e)=>{"use strict";var r=e(4624),n=e(8536),o=e(8645),D=e(7724),i=e(9132),a=r("%TypeError%");u.exports=function(u,t,e){if("String"!==o(u))throw new a("Assertion failed: `S` must be a String");if(!D(t)||t<0||t>i)throw new a("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==o(e))throw new a("Assertion failed: `unicode` must be a Boolean");return e?t+1>=u.length?t+1:t+n(u,t)["[[CodeUnitCount]]"]:t+1}},1700:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=r("%TypeError%"),D=e(1720),i=r("%Reflect.apply%",!0)||n("Function.prototype.apply");u.exports=function(u,t){var e=arguments.length>2?arguments[2]:[];if(!D(e))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(u,t,e)}},8536:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668),o=e(1712),D=e(8444),i=e(8645),a=e(2320),F=n("String.prototype.charAt"),c=n("String.prototype.charCodeAt");u.exports=function(u,t){if("String"!==i(u))throw new r("Assertion failed: `string` must be a String");var e=u.length;if(t<0||t>=e)throw new r("Assertion failed: `position` must be >= 0, and < the length of `string`");var n=c(u,t),s=F(u,t),l=o(n),f=D(n);if(!l&&!f)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(f||t+1===e)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var p=c(u,t+1);return D(p)?{"[[CodePoint]]":a(n,p),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4288:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(8645);u.exports=function(u,t){if("Boolean"!==n(t))throw new r("Assertion failed: Type(done) is not Boolean");return{value:u,done:t}}},2672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4436),o=e(8924),D=e(3880),i=e(2968),a=e(8800),F=e(8645);u.exports=function(u,t,e){if("Object"!==F(u))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");return n(D,a,o,u,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":e,"[[Writable]]":!0})}},5211:(u,t,e)=>{"use strict";var r=e(4624),n=e(9800)(),o=r("%TypeError%"),D=r("%IteratorPrototype%",!0),i=e(1056),a=e(4288),F=e(2672),c=e(3672),s=e(6216),l=e(8972),f=e(4e3),p=e(4784),E=e(5424),A=e(8645),C=e(7284),y=e(9200),d=function(u,t,e,r){if("String"!==A(t))throw new o("`S` must be a string");if("Boolean"!==A(e))throw new o("`global` must be a boolean");if("Boolean"!==A(r))throw new o("`fullUnicode` must be a boolean");C.set(this,"[[IteratingRegExp]]",u),C.set(this,"[[IteratedString]]",t),C.set(this,"[[Global]]",e),C.set(this,"[[Unicode]]",r),C.set(this,"[[Done]]",!1)};D&&(d.prototype=s(D)),F(d.prototype,"next",(function(){var u=this;if("Object"!==A(u))throw new o("receiver must be an object");if(!(u instanceof d&&C.has(u,"[[IteratingRegExp]]")&&C.has(u,"[[IteratedString]]")&&C.has(u,"[[Global]]")&&C.has(u,"[[Unicode]]")&&C.has(u,"[[Done]]")))throw new o('"this" value must be a RegExpStringIterator instance');if(C.get(u,"[[Done]]"))return a(void 0,!0);var t=C.get(u,"[[IteratingRegExp]]"),e=C.get(u,"[[IteratedString]]"),r=C.get(u,"[[Global]]"),n=C.get(u,"[[Unicode]]"),D=l(t,e);if(null===D)return C.set(u,"[[Done]]",!0),a(void 0,!0);if(r){if(""===E(c(D,"0"))){var F=p(c(t,"lastIndex")),s=i(e,F,n);f(t,"lastIndex",s,!0)}return a(D,!1)}return C.set(u,"[[Done]]",!0),a(D,!1)})),n&&(y(d.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof d.prototype[Symbol.iterator])&&F(d.prototype,Symbol.iterator,(function(){return this})),u.exports=function(u,t,e,r){return new d(u,t,e,r)}},7268:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(320),o=e(4436),D=e(8924),i=e(4936),a=e(3880),F=e(2968),c=e(8800),s=e(5696),l=e(8645);u.exports=function(u,t,e){if("Object"!==l(u))throw new r("Assertion failed: Type(O) is not Object");if(!F(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},e)?e:s(e);if(!n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},f))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(a,c,D,u,t,f)}},8924:(u,t,e)=>{"use strict";var r=e(3600),n=e(3504),o=e(8645);u.exports=function(u){return void 0!==u&&r(o,"Property Descriptor","Desc",u),n(u)}},3672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968),D=e(8645);u.exports=function(u,t){if("Object"!==D(u))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},5552:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(3396),o=e(3048),D=e(2968),i=e(4152);u.exports=function(u,t){if(!D(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var e=n(u,t);if(null!=e){if(!o(e))throw new r(i(t)+" is not a function: "+i(e));return e}}},3396:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968);u.exports=function(u,t){if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},4936:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Get]]")&&!r(u,"[[Set]]")))}},1720:(u,t,e)=>{"use strict";u.exports=e(704)},3048:(u,t,e)=>{"use strict";u.exports=e(648)},211:(u,t,e)=>{"use strict";var r=e(8600)("%Reflect.construct%",!0),n=e(7268);try{n({},"",{"[[Get]]":function(){}})}catch(u){n=null}if(n&&r){var o={},D={};n(D,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),u.exports=function(u){try{r(u,D)}catch(u){return u===o}}}else u.exports=function(u){return"function"==typeof u&&!!u.prototype}},3880:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Value]]")&&!r(u,"[[Writable]]")))}},2968:u=>{"use strict";u.exports=function(u){return"string"==typeof u||"symbol"==typeof u}},3816:(u,t,e)=>{"use strict";var r=e(4624)("%Symbol.match%",!0),n=e(1476),o=e(6848);u.exports=function(u){if(!u||"object"!=typeof u)return!1;if(r){var t=u[r];if(void 0!==t)return o(t)}return n(u)}},6216:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Object.create%",!0),o=r("%TypeError%"),D=r("%SyntaxError%"),i=e(1720),a=e(8645),F=e(4672),c=e(7284),s=e(7e3)();u.exports=function(u){if(null!==u&&"Object"!==a(u))throw new o("Assertion failed: `proto` must be null or an object");var t,e=arguments.length<2?[]:arguments[1];if(!i(e))throw new o("Assertion failed: `additionalInternalSlotsList` must be an Array");if(n)t=n(u);else if(s)t={__proto__:u};else{if(null===u)throw new D("native Object.create support is required to create null objects");var r=function(){};r.prototype=u,t=new r}return e.length>0&&F(e,(function(u){c.set(t,u,void 0)})),t}},8972:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668)("RegExp.prototype.exec"),o=e(1700),D=e(3672),i=e(3048),a=e(8645);u.exports=function(u,t){if("Object"!==a(u))throw new r("Assertion failed: `R` must be an Object");if("String"!==a(t))throw new r("Assertion failed: `S` must be a String");var e=D(u,"exec");if(i(e)){var F=o(e,u,[t]);if(null===F||"Object"===a(F))return F;throw new r('"exec" method must return `null` or an Object')}return n(u,t)}},4656:(u,t,e)=>{"use strict";u.exports=e(176)},8800:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u,t){return u===t?0!==u||1/u==1/t:r(u)&&r(t)}},4e3:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(2968),o=e(8800),D=e(8645),i=function(){try{return delete[].length,!0}catch(u){return!1}}();u.exports=function(u,t,e,a){if("Object"!==D(u))throw new r("Assertion failed: `O` must be an Object");if(!n(t))throw new r("Assertion failed: `P` must be a Property Key");if("Boolean"!==D(a))throw new r("Assertion failed: `Throw` must be a Boolean");if(a){if(u[t]=e,i&&!o(u[t],e))throw new r("Attempted to assign to readonly property.");return!0}try{return u[t]=e,!i||o(u[t],e)}catch(u){return!1}}},8652:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Symbol.species%",!0),o=r("%TypeError%"),D=e(211),i=e(8645);u.exports=function(u,t){if("Object"!==i(u))throw new o("Assertion failed: Type(O) is not Object");var e=u.constructor;if(void 0===e)return t;if("Object"!==i(e))throw new o("O.constructor is not an Object");var r=n?e[n]:void 0;if(null==r)return t;if(D(r))return r;throw new o("no constructor found")}},8772:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Number%"),o=r("%RegExp%"),D=r("%TypeError%"),i=r("%parseInt%"),a=e(668),F=e(860),c=a("String.prototype.slice"),s=F(/^0b[01]+$/i),l=F(/^0o[0-7]+$/i),f=F(/^[-+]0x[0-9a-f]+$/i),p=F(new o("["+["…","​","￾"].join("")+"]","g")),E=e(9292),A=e(8645);u.exports=function u(t){if("String"!==A(t))throw new D("Assertion failed: `argument` is not a String");if(s(t))return n(i(c(t,2),2));if(l(t))return n(i(c(t,2),8));if(p(t)||f(t))return NaN;var e=E(t);return e!==t?u(e):n(t)}},6848:u=>{"use strict";u.exports=function(u){return!!u}},9424:(u,t,e)=>{"use strict";var r=e(7220),n=e(2592),o=e(2808),D=e(2931);u.exports=function(u){var t=r(u);return o(t)||0===t?0:D(t)?n(t):t}},4784:(u,t,e)=>{"use strict";var r=e(9132),n=e(9424);u.exports=function(u){var t=n(u);return t<=0?0:t>r?r:t}},7220:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%Number%"),D=e(2336),i=e(5556),a=e(8772);u.exports=function(u){var t=D(u)?u:i(u,o);if("symbol"==typeof t)throw new n("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new n("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?a(t):o(t)}},5556:(u,t,e)=>{"use strict";var r=e(108);u.exports=function(u){return arguments.length>1?r(u,arguments[1]):r(u)}},5696:(u,t,e)=>{"use strict";var r=e(4440),n=e(4624)("%TypeError%"),o=e(8645),D=e(6848),i=e(3048);u.exports=function(u){if("Object"!==o(u))throw new n("ToPropertyDescriptor requires an object");var t={};if(r(u,"enumerable")&&(t["[[Enumerable]]"]=D(u.enumerable)),r(u,"configurable")&&(t["[[Configurable]]"]=D(u.configurable)),r(u,"value")&&(t["[[Value]]"]=u.value),r(u,"writable")&&(t["[[Writable]]"]=D(u.writable)),r(u,"get")){var e=u.get;if(void 0!==e&&!i(e))throw new n("getter must be a function");t["[[Get]]"]=e}if(r(u,"set")){var a=u.set;if(void 0!==a&&!i(a))throw new n("setter must be a function");t["[[Set]]"]=a}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new n("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},5424:(u,t,e)=>{"use strict";var r=e(4624),n=r("%String%"),o=r("%TypeError%");u.exports=function(u){if("symbol"==typeof u)throw new o("Cannot convert a Symbol value to a string");return n(u)}},8645:(u,t,e)=>{"use strict";var r=e(7936);u.exports=function(u){return"symbol"==typeof u?"Symbol":"bigint"==typeof u?"BigInt":r(u)}},2320:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%String.fromCharCode%"),D=e(1712),i=e(8444);u.exports=function(u,t){if(!D(u)||!i(t))throw new n("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(u)+o(t)}},2312:(u,t,e)=>{"use strict";var r=e(8645),n=Math.floor;u.exports=function(u){return"BigInt"===r(u)?u:n(u)}},2592:(u,t,e)=>{"use strict";var r=e(4624),n=e(2312),o=r("%TypeError%");u.exports=function(u){if("number"!=typeof u&&"bigint"!=typeof u)throw new o("argument must be a Number or a BigInt");var t=u<0?-n(-u):n(u);return 0===t?0:t}},176:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%");u.exports=function(u,t){if(null==u)throw new r(t||"Cannot call method on "+u);return u}},7936:u=>{"use strict";u.exports=function(u){return null===u?"Null":void 0===u?"Undefined":"function"==typeof u||"object"==typeof u?"Object":"number"==typeof u?"Number":"boolean"==typeof u?"Boolean":"string"==typeof u?"String":void 0}},8600:(u,t,e)=>{"use strict";u.exports=e(4624)},4436:(u,t,e)=>{"use strict";var r=e(3268),n=e(4624),o=r()&&n("%Object.defineProperty%",!0),D=r.hasArrayLengthDefineBug(),i=D&&e(704),a=e(668)("Object.prototype.propertyIsEnumerable");u.exports=function(u,t,e,r,n,F){if(!o){if(!u(F))return!1;if(!F["[[Configurable]]"]||!F["[[Writable]]"])return!1;if(n in r&&a(r,n)!==!!F["[[Enumerable]]"])return!1;var c=F["[[Value]]"];return r[n]=c,t(r[n],c)}return D&&"length"===n&&"[[Value]]"in F&&i(r)&&r.length!==F["[[Value]]"]?(r.length=F["[[Value]]"],r.length===F["[[Value]]"]):(o(r,n,e(F)),!0)}},704:(u,t,e)=>{"use strict";var r=e(4624)("%Array%"),n=!r.isArray&&e(668)("Object.prototype.toString");u.exports=r.isArray||function(u){return"[object Array]"===n(u)}},3600:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%SyntaxError%"),D=e(4440),i=e(7724),a={"Property Descriptor":function(u){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!u)return!1;for(var e in u)if(D(u,e)&&!t[e])return!1;var r=D(u,"[[Value]]"),o=D(u,"[[Get]]")||D(u,"[[Set]]");if(r&&o)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":e(5092),"Iterator Record":function(u){return D(u,"[[Iterator]]")&&D(u,"[[NextMethod]]")&&D(u,"[[Done]]")},"PromiseCapability Record":function(u){return!!u&&D(u,"[[Resolve]]")&&"function"==typeof u["[[Resolve]]"]&&D(u,"[[Reject]]")&&"function"==typeof u["[[Reject]]"]&&D(u,"[[Promise]]")&&u["[[Promise]]"]&&"function"==typeof u["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(u){return!!u&&D(u,"[[Completion]]")&&D(u,"[[Capability]]")&&a["PromiseCapability Record"](u["[[Capability]]"])},"RegExp Record":function(u){return u&&D(u,"[[IgnoreCase]]")&&"boolean"==typeof u["[[IgnoreCase]]"]&&D(u,"[[Multiline]]")&&"boolean"==typeof u["[[Multiline]]"]&&D(u,"[[DotAll]]")&&"boolean"==typeof u["[[DotAll]]"]&&D(u,"[[Unicode]]")&&"boolean"==typeof u["[[Unicode]]"]&&D(u,"[[CapturingGroupsCount]]")&&"number"==typeof u["[[CapturingGroupsCount]]"]&&i(u["[[CapturingGroupsCount]]"])&&u["[[CapturingGroupsCount]]"]>=0}};u.exports=function(u,t,e,r){var D=a[t];if("function"!=typeof D)throw new o("unknown record type: "+t);if("Object"!==u(r)||!D(r))throw new n(e+" must be a "+t)}},4672:u=>{"use strict";u.exports=function(u,t){for(var e=0;e{"use strict";u.exports=function(u){if(void 0===u)return u;var t={};return"[[Value]]"in u&&(t.value=u["[[Value]]"]),"[[Writable]]"in u&&(t.writable=!!u["[[Writable]]"]),"[[Get]]"in u&&(t.get=u["[[Get]]"]),"[[Set]]"in u&&(t.set=u["[[Set]]"]),"[[Enumerable]]"in u&&(t.enumerable=!!u["[[Enumerable]]"]),"[[Configurable]]"in u&&(t.configurable=!!u["[[Configurable]]"]),t}},2931:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u){return("number"==typeof u||"bigint"==typeof u)&&!r(u)&&u!==1/0&&u!==-1/0}},7724:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Math.abs%"),o=r("%Math.floor%"),D=e(2808),i=e(2931);u.exports=function(u){if("number"!=typeof u||D(u)||!i(u))return!1;var t=n(u);return o(t)===t}},1712:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=55296&&u<=56319}},5092:(u,t,e)=>{"use strict";var r=e(4440);u.exports=function(u){return r(u,"[[StartIndex]]")&&r(u,"[[EndIndex]]")&&u["[[StartIndex]]"]>=0&&u["[[EndIndex]]"]>=u["[[StartIndex]]"]&&String(parseInt(u["[[StartIndex]]"],10))===String(u["[[StartIndex]]"])&&String(parseInt(u["[[EndIndex]]"],10))===String(u["[[EndIndex]]"])}},2808:u=>{"use strict";u.exports=Number.isNaN||function(u){return u!=u}},2336:u=>{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},320:(u,t,e)=>{"use strict";var r=e(4624),n=e(4440),o=r("%TypeError%");u.exports=function(u,t){if("Object"!==u.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(n(t,r)&&!e[r])return!1;if(u.IsDataDescriptor(t)&&u.IsAccessorDescriptor(t))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},8444:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=56320&&u<=57343}},9132:u=>{"use strict";u.exports=Number.MAX_SAFE_INTEGER||9007199254740991}},t={};function e(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return u[r](o,o.exports,e),o.exports}e.n=u=>{var t=u&&u.__esModule?()=>u.default:()=>u;return e.d(t,{a:t}),t},e.d=(u,t)=>{for(var r in t)e.o(t,r)&&!e.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:t[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(u){if("object"==typeof window)return window}}(),e.o=(u,t)=>Object.prototype.hasOwnProperty.call(u,t),(()=>{"use strict";var u=e(9116);function t(t,e,r){let n=0,o=[];for(;-1!==n;)n=t.indexOf(e,n),-1!==n&&(o.push({start:n,end:n+e.length,errors:0}),n+=1);return o.length>0?o:(0,u.c)(t,e,r)}function r(u,e){return 0===e.length||0===u.length?0:1-t(u,e,e.length)[0].errors/e.length}function n(u){switch(u.nodeType){case Node.ELEMENT_NODE:case Node.TEXT_NODE:return u.textContent.length;default:return 0}}function o(u){let t=u.previousSibling,e=0;for(;t;)e+=n(t),t=t.previousSibling;return e}function D(u){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;rn?(D.push({node:i,offset:n-F}),n=e.shift()):(a=o.nextNode(),F+=i.data.length);for(;void 0!==n&&i&&F===n;)D.push({node:i,offset:i.data.length}),n=e.shift();if(void 0!==n)throw new RangeError("Offset exceeds text length");return D}class i{constructor(u,t){if(t<0)throw new Error("Offset is invalid");this.element=u,this.offset=t}relativeTo(u){if(!u.contains(this.element))throw new Error("Parent is not an ancestor of current element");let t=this.element,e=this.offset;for(;t!==u;)e+=o(t),t=t.parentElement;return new i(t,e)}resolve(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return D(this.element,this.offset)[0]}catch(t){if(0===this.offset&&void 0!==u.direction){const e=document.createTreeWalker(this.element.getRootNode(),NodeFilter.SHOW_TEXT);e.currentNode=this.element;const r=1===u.direction,n=r?e.nextNode():e.previousNode();if(!n)throw t;return{node:n,offset:r?0:n.data.length}}throw t}}static fromCharOffset(u,t){switch(u.nodeType){case Node.TEXT_NODE:return i.fromPoint(u,t);case Node.ELEMENT_NODE:return new i(u,t);default:throw new Error("Node is not an element or text node")}}static fromPoint(u,t){switch(u.nodeType){case Node.TEXT_NODE:{if(t<0||t>u.data.length)throw new Error("Text node offset is out of range");if(!u.parentElement)throw new Error("Text node has no parent");const e=o(u)+t;return new i(u.parentElement,e)}case Node.ELEMENT_NODE:{if(t<0||t>u.childNodes.length)throw new Error("Child node offset is out of range");let e=0;for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:{};this.root=u,this.exact=t,this.context=e}static fromRange(u,t){const e=u.textContent,r=a.fromRange(t).relativeTo(u),n=r.start.offset,o=r.end.offset;return new l(u,e.slice(n,o),{prefix:e.slice(Math.max(0,n-32),n),suffix:e.slice(o,Math.min(e.length,o+32))})}static fromSelector(u,t){const{prefix:e,suffix:r}=t;return new l(u,t.exact,{prefix:e,suffix:r})}toSelector(){return{type:"TextQuoteSelector",exact:this.exact,prefix:this.context.prefix,suffix:this.context.suffix}}toRange(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.toPositionAnchor(u).toRange()}toPositionAnchor(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=function(u,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===e.length)return null;const o=Math.min(256,e.length/2),D=t(u,e,o);if(0===D.length)return null;const i=t=>{const o=1-t.errors/e.length,D=n.prefix?r(u.slice(Math.max(0,t.start-n.prefix.length),t.start),n.prefix):1,i=n.suffix?r(u.slice(t.end,t.end+n.suffix.length),n.suffix):1;let a=1;return"number"==typeof n.hint&&(a=1-Math.abs(t.start-n.hint)/u.length),(50*o+20*D+20*i+2*a)/92},a=D.map((u=>({start:u.start,end:u.end,score:i(u)})));return a.sort(((u,t)=>t.score-u.score)),a[0]}(this.root.textContent,this.exact,c(c({},this.context),{},{hint:u.hint}));if(!e)throw new Error("Quote not found");return new s(this.root,e.start,e.end)}}var f=e(3732);e.n(f)().shim();const p=!0;function E(){if(!readium.link)return null;const u=readium.link.href;if(!u)return null;const t=function(){const u=window.getSelection();if(!u)return;if(u.isCollapsed)return;const t=u.toString();if(0===t.trim().replace(/\n/g," ").replace(/\s\s+/g," ").length)return;if(!u.anchorNode||!u.focusNode)return;const e=1===u.rangeCount?u.getRangeAt(0):function(u,t,e,r){const n=new Range;if(n.setStart(u,t),n.setEnd(e,r),!n.collapsed)return n;A(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");const o=new Range;if(o.setStart(e,r),o.setEnd(u,t),!o.collapsed)return A(">>> createOrderedRange RANGE REVERSE OK."),n;A(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!")}(u.anchorNode,u.anchorOffset,u.focusNode,u.focusOffset);if(!e||e.collapsed)return void A("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");const r=document.body.textContent,n=a.fromRange(e).relativeTo(document.body),o=n.start.offset,D=n.end.offset;let i=r.slice(Math.max(0,o-200),o),F=i.search(/(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4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86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uD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uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/g);-1!==F&&(i=i.slice(F+1));let c=r.slice(D,Math.min(r.length,D+200)),s=Array.from(c.matchAll(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-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CFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\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uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uA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837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5-\uDCFF\uDD44-\uDD4A\uDD4C-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)).pop();return void 0!==s&&s.index>1&&(c=c.slice(0,s.index+1)),{highlight:t,before:i,after:c}}();return t?{href:u,text:t,rect:function(){try{let u=window.getSelection();if(!u)return;return N(u.getRangeAt(0).getBoundingClientRect())}catch(u){return R(u),null}}()}:null}function A(){p&&P.apply(null,arguments)}window.addEventListener("error",(function(u){webkit.messageHandlers.logError.postMessage({message:u.message,filename:u.filename,line:u.lineno})}),!1),window.addEventListener("load",(function(){new ResizeObserver((()=>{!function(){const u="readium-virtual-page";var t=document.getElementById(u);if(b()||2!=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("column-count"))){var e;null===(e=t)||void 0===e||e.remove()}else{var r=document.scrollingElement.scrollWidth/window.innerWidth;Math.round(2*r)/2%1>.1&&(t?t.remove():((t=document.createElement("div")).setAttribute("id",u),t.style.breakBefore="column",t.innerHTML="​",document.body.appendChild(t)))}}()})).observe(document.body),window.addEventListener("orientationchange",(function(){m(),function(){if(!b()){var u=x(window.scrollX+1);document.scrollingElement.scrollLeft=u}}()})),m()}),!1);var C,y,d=0,h=0,B=!1,g=0;function m(){g=0===window.orientation||180==window.orientation?screen.width:screen.height}function b(){return"readium-scroll-on"==document.documentElement.style.getPropertyValue("--USER__view").trim()}function v(u){return b()?document.scrollingElement.scrollTop=u.top+window.scrollY:document.scrollingElement.scrollLeft=x(u.left+window.scrollX),!0}function w(u){var t=window.scrollX,e=window.innerWidth;return document.scrollingElement.scrollLeft=u,Math.abs(t-u)/e>.01}function x(u){var t=u+1;return t-t%g}function S(u){try{let r=u.locations,n=u.text;var t;if(n&&n.highlight)return r&&r.cssSelector&&(t=document.querySelector(r.cssSelector)),t||(t=document.body),new l(t,n.highlight,{prefix:n.before,suffix:n.after}).toRange();if(r){var e=null;if(!e&&r.cssSelector&&(e=document.querySelector(r.cssSelector)),!e&&r.fragments)for(const u of r.fragments)if(e=document.getElementById(u))break;if(e){let u=document.createRange();return u.setStartBefore(e),u.setEndAfter(e),u}}}catch(u){R(u)}return null}function O(u,t){null===t?j(u):document.documentElement.style.setProperty(u,t,"important")}function j(u){document.documentElement.style.removeProperty(u)}function P(){var u=Array.prototype.slice.call(arguments).join(" ");webkit.messageHandlers.log.postMessage(u)}function T(u){R(new Error(u))}function R(u){webkit.messageHandlers.logError.postMessage({message:u.message})}window.addEventListener("scroll",(function(){h=window.scrollY/document.scrollingElement.scrollHeight,d=Math.abs(window.scrollX/document.scrollingElement.scrollWidth),0!==document.scrollingElement.scrollWidth&&0!==document.scrollingElement.scrollHeight&&(B||window.requestAnimationFrame((function(){var u;u=(b()?h:d).toString(),webkit.messageHandlers.progressionChanged.postMessage(u),B=!1})),B=!0)})),document.addEventListener("selectionchange",(50,C=function(){webkit.messageHandlers.selectionChanged.postMessage(E())},function(){var u=this,t=arguments;clearTimeout(y),y=setTimeout((function(){C.apply(u,t),y=null}),50)}));const I=!1;function N(u){let t=M({x:u.left,y:u.top});const e=u.width,r=u.height,n=t.x,o=t.y;return{width:e,height:r,left:n,top:o,right:n+e,bottom:o+r}}function M(u){if(!frameElement)return u;let t=frameElement.getBoundingClientRect();if(!t)return u;let e=window.top.document.documentElement;return{x:u.x+t.x+e.scrollLeft,y:u.y+t.y+e.scrollTop}}function k(u,t){let e=u.getClientRects();const r=[];for(const u of e)r.push({bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width});const n=U(function(u,t){const e=new Set(u);for(const t of u)if(t.width>1&&t.height>1){for(const r of u)if(t!==r&&e.has(r)&&_(r,t,1)){H("CLIENT RECT: remove contained"),e.delete(t);break}}else H("CLIENT RECT: remove tiny"),e.delete(t);return Array.from(e)}(L(r,1,t)));for(let u=n.length-1;u>=0;u--){const t=n[u];if(!(t.width*t.height>4)){if(!(n.length>1)){H("CLIENT RECT: remove small, but keep otherwise empty!");break}H("CLIENT RECT: remove small"),n.splice(u,1)}}return H("CLIENT RECT: reduced ".concat(r.length," --\x3e ").concat(n.length)),n}function L(u,t,e){for(let r=0;ru!==o&&u!==D)),n=$(o,D);return r.push(n),L(r,t,e)}}return u}function $(u,t){const e=Math.min(u.left,t.left),r=Math.max(u.right,t.right),n=Math.min(u.top,t.top),o=Math.max(u.bottom,t.bottom);return{bottom:o,height:o-n,left:e,right:r,top:n,width:r-e}}function _(u,t,e){return W(u,t.left,t.top,e)&&W(u,t.right,t.top,e)&&W(u,t.left,t.bottom,e)&&W(u,t.right,t.bottom,e)}function W(u,t,e,r){return(u.leftt||V(u.right,t,r))&&(u.tope||V(u.bottom,e,r))}function U(u){for(let t=0;tu!==t));return Array.prototype.push.apply(D,e),U(D)}}else H("replaceOverlapingRects rect1 === rect2 ??!")}return u}function z(u,t){const e=function(u,t){const e=Math.max(u.left,t.left),r=Math.min(u.right,t.right),n=Math.max(u.top,t.top),o=Math.min(u.bottom,t.bottom);return{bottom:o,height:Math.max(0,o-n),left:e,right:r,top:n,width:Math.max(0,r-e)}}(t,u);if(0===e.height||0===e.width)return[u];const r=[];{const t={bottom:u.bottom,height:0,left:u.left,right:e.left,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:e.top,height:0,left:e.left,right:e.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.left,right:e.right,top:e.bottom,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.right,right:u.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}return r}function G(u,t,e){return(u.left=0&&V(u.left,t.right,e))&&(t.left=0&&V(t.left,u.right,e))&&(u.top=0&&V(u.top,t.bottom,e))&&(t.top=0&&V(t.top,u.bottom,e))}function V(u,t,e){return Math.abs(u-t)<=e}function H(){I&&P.apply(null,arguments)}var q,X=[],Y="ResizeObserver loop completed with undelivered notifications.";!function(u){u.BORDER_BOX="border-box",u.CONTENT_BOX="content-box",u.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(q||(q={}));var K,J=function(u){return Object.freeze(u)},Z=function(u,t){this.inlineSize=u,this.blockSize=t,J(this)},Q=function(){function u(u,t,e,r){return this.x=u,this.y=t,this.width=e,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,J(this)}return u.prototype.toJSON=function(){var u=this;return{x:u.x,y:u.y,top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.width,height:u.height}},u.fromRect=function(t){return new u(t.x,t.y,t.width,t.height)},u}(),uu=function(u){return u instanceof SVGElement&&"getBBox"in u},tu=function(u){if(uu(u)){var t=u.getBBox(),e=t.width,r=t.height;return!e&&!r}var n=u,o=n.offsetWidth,D=n.offsetHeight;return!(o||D||u.getClientRects().length)},eu=function(u){var t;if(u instanceof Element)return!0;var e=null===(t=null==u?void 0:u.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(e&&u instanceof e.Element)},ru="undefined"!=typeof window?window:{},nu=new WeakMap,ou=/auto|scroll/,Du=/^tb|vertical/,iu=/msie|trident/i.test(ru.navigator&&ru.navigator.userAgent),au=function(u){return parseFloat(u||"0")},Fu=function(u,t,e){return void 0===u&&(u=0),void 0===t&&(t=0),void 0===e&&(e=!1),new Z((e?t:u)||0,(e?u:t)||0)},cu=J({devicePixelContentBoxSize:Fu(),borderBoxSize:Fu(),contentBoxSize:Fu(),contentRect:new Q(0,0,0,0)}),su=function(u,t){if(void 0===t&&(t=!1),nu.has(u)&&!t)return nu.get(u);if(tu(u))return nu.set(u,cu),cu;var e=getComputedStyle(u),r=uu(u)&&u.ownerSVGElement&&u.getBBox(),n=!iu&&"border-box"===e.boxSizing,o=Du.test(e.writingMode||""),D=!r&&ou.test(e.overflowY||""),i=!r&&ou.test(e.overflowX||""),a=r?0:au(e.paddingTop),F=r?0:au(e.paddingRight),c=r?0:au(e.paddingBottom),s=r?0:au(e.paddingLeft),l=r?0:au(e.borderTopWidth),f=r?0:au(e.borderRightWidth),p=r?0:au(e.borderBottomWidth),E=s+F,A=a+c,C=(r?0:au(e.borderLeftWidth))+f,y=l+p,d=i?u.offsetHeight-y-u.clientHeight:0,h=D?u.offsetWidth-C-u.clientWidth:0,B=n?E+C:0,g=n?A+y:0,m=r?r.width:au(e.width)-B-h,b=r?r.height:au(e.height)-g-d,v=m+E+h+C,w=b+A+d+y,x=J({devicePixelContentBoxSize:Fu(Math.round(m*devicePixelRatio),Math.round(b*devicePixelRatio),o),borderBoxSize:Fu(v,w,o),contentBoxSize:Fu(m,b,o),contentRect:new Q(s,a,m,b)});return nu.set(u,x),x},lu=function(u,t,e){var r=su(u,e),n=r.borderBoxSize,o=r.contentBoxSize,D=r.devicePixelContentBoxSize;switch(t){case q.DEVICE_PIXEL_CONTENT_BOX:return D;case q.BORDER_BOX:return n;default:return o}},fu=function(u){var t=su(u);this.target=u,this.contentRect=t.contentRect,this.borderBoxSize=J([t.borderBoxSize]),this.contentBoxSize=J([t.contentBoxSize]),this.devicePixelContentBoxSize=J([t.devicePixelContentBoxSize])},pu=function(u){if(tu(u))return 1/0;for(var t=0,e=u.parentNode;e;)t+=1,e=e.parentNode;return t},Eu=function(){var u=1/0,t=[];X.forEach((function(e){if(0!==e.activeTargets.length){var r=[];e.activeTargets.forEach((function(t){var e=new fu(t.target),n=pu(t.target);r.push(e),t.lastReportedSize=lu(t.target,t.observedBox),nu?t.activeTargets.push(e):t.skippedTargets.push(e))}))}))},Cu=[],yu=0,du={attributes:!0,characterData:!0,childList:!0,subtree:!0},hu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bu=function(u){return void 0===u&&(u=0),Date.now()+u},gu=!1,mu=function(){function u(){var u=this;this.stopped=!0,this.listener=function(){return u.schedule()}}return u.prototype.run=function(u){var t=this;if(void 0===u&&(u=250),!gu){gu=!0;var e,r=Bu(u);e=function(){var e=!1;try{e=function(){var u,t=0;for(Au(t);X.some((function(u){return u.activeTargets.length>0}));)t=Eu(),Au(t);return X.some((function(u){return u.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?u=new ErrorEvent("error",{message:Y}):((u=document.createEvent("Event")).initEvent("error",!1,!1),u.message=Y),window.dispatchEvent(u)),t>0}()}finally{if(gu=!1,u=r-Bu(),!yu)return;e?t.run(1e3):u>0?t.run(u):t.start()}},function(u){if(!K){var t=0,e=document.createTextNode("");new MutationObserver((function(){return Cu.splice(0).forEach((function(u){return u()}))})).observe(e,{characterData:!0}),K=function(){e.textContent="".concat(t?t--:t++)}}Cu.push(u),K()}((function(){requestAnimationFrame(e)}))}},u.prototype.schedule=function(){this.stop(),this.run()},u.prototype.observe=function(){var u=this,t=function(){return u.observer&&u.observer.observe(document.body,du)};document.body?t():ru.addEventListener("DOMContentLoaded",t)},u.prototype.start=function(){var u=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),hu.forEach((function(t){return ru.addEventListener(t,u.listener,!0)})))},u.prototype.stop=function(){var u=this;this.stopped||(this.observer&&this.observer.disconnect(),hu.forEach((function(t){return ru.removeEventListener(t,u.listener,!0)})),this.stopped=!0)},u}(),bu=new mu,vu=function(u){!yu&&u>0&&bu.start(),!(yu+=u)&&bu.stop()},wu=function(){function u(u,t){this.target=u,this.observedBox=t||q.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return u.prototype.isActive=function(){var u,t=lu(this.target,this.observedBox,!0);return u=this.target,uu(u)||function(u){switch(u.tagName){case"INPUT":if("image"!==u.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(u)||"inline"!==getComputedStyle(u).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},u}(),xu=function(u,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=u,this.callback=t},Su=new WeakMap,Ou=function(u,t){for(var e=0;e=0&&(n&&X.splice(X.indexOf(e),1),e.observationTargets.splice(r,1),vu(-1))},u.disconnect=function(u){var t=this,e=Su.get(u);e.observationTargets.slice().forEach((function(e){return t.unobserve(u,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},u}(),Pu=function(){function u(u){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof u)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ju.connect(this,u)}return u.prototype.observe=function(u,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eu(u))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ju.observe(this,u,t)},u.prototype.unobserve=function(u){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eu(u))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ju.unobserve(this,u)},u.prototype.disconnect=function(){ju.disconnect(this)},u.toString=function(){return"function ResizeObserver () { [polyfill code] }"},u}();const Tu=window.ResizeObserver||Pu;let Ru=new Map,Iu=new Map;var Nu=0;function Mu(u){return u&&u instanceof Element}window.addEventListener("load",(function(){const u=document.body;var t={width:0,height:0};new Tu((()=>{t.width===u.clientWidth&&t.height===u.clientHeight||(t={width:u.clientWidth,height:u.clientHeight},Iu.forEach((function(u){u.requestLayout()})))})).observe(u)}),!1);const ku={NONE:"",DESCENDANT:" ",CHILD:" > "},Lu={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"},$u="CssSelectorGenerator";function _u(u="unknown problem",...t){console.warn(`${$u}: ${u}`,...t)}const Wu={selectors:[Lu.id,Lu.class,Lu.tag,Lu.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function Uu(u){return u instanceof RegExp}function zu(u){return["string","function"].includes(typeof u)||Uu(u)}function Gu(u){return Array.isArray(u)?u.filter(zu):[]}function Vu(u){const t=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return function(u){return u instanceof Node}(u)&&t.includes(u.nodeType)}function Hu(u,t){if(Vu(u))return u.contains(t)||_u("element root mismatch","Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended."),u;const e=t.getRootNode({composed:!1});return Vu(e)?(e!==document&&_u("shadow root inferred","You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended."),e):t.ownerDocument.querySelector(":root")}function qu(u){return"number"==typeof u?u:Number.POSITIVE_INFINITY}function Xu(u=[]){const[t=[],...e]=u;return 0===e.length?t:e.reduce(((u,t)=>u.filter((u=>t.includes(u)))),t)}function Yu(u){return[].concat(...u)}function Ku(u){const t=u.map((u=>{if(Uu(u))return t=>u.test(t);if("function"==typeof u)return t=>{const e=u(t);return"boolean"!=typeof e?(_u("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",u),!1):e};if("string"==typeof u){const t=new RegExp("^"+u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return u=>t.test(u)}return _u("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",u),()=>!1}));return u=>t.some((t=>t(u)))}function Ju(u,t,e){const r=Array.from(Hu(e,u[0]).querySelectorAll(t));return r.length===u.length&&u.every((u=>r.includes(u)))}function Zu(u,t){t=null!=t?t:function(u){return u.ownerDocument.querySelector(":root")}(u);const e=[];let r=u;for(;Mu(r)&&r!==t;)e.push(r),r=r.parentElement;return e}function Qu(u,t){return Xu(u.map((u=>Zu(u,t))))}const ut=new RegExp(["^$","\\s"].join("|")),tt=new RegExp(["^$"].join("|")),et=[Lu.nthoftype,Lu.tag,Lu.id,Lu.class,Lu.attribute,Lu.nthchild],rt=Ku(["class","id","ng-*"]);function nt({name:u}){return`[${u}]`}function ot({name:u,value:t}){return`[${u}='${t}']`}function Dt({nodeName:u,nodeValue:t}){return{name:(e=u,e.replace(/:/g,"\\:")),value:dt(t)};var e}function it(u){const t=Array.from(u.attributes).filter((t=>function({nodeName:u},t){const e=t.tagName.toLowerCase();return!(["input","option"].includes(e)&&"value"===u||rt(u))}(t,u))).map(Dt);return[...t.map(nt),...t.map(ot)]}function at(u){return(u.getAttribute("class")||"").trim().split(/\s+/).filter((u=>!tt.test(u))).map((u=>`.${dt(u)}`))}function Ft(u){const t=u.getAttribute("id")||"",e=`#${dt(t)}`,r=u.getRootNode({composed:!1});return!ut.test(t)&&Ju([u],e,r)?[e]:[]}function ct(u){const t=u.parentNode;if(t){const e=Array.from(t.childNodes).filter(Mu).indexOf(u);if(e>-1)return[`:nth-child(${e+1})`]}return[]}function st(u){return[dt(u.tagName.toLowerCase())]}function lt(u){const t=[...new Set(Yu(u.map(st)))];return 0===t.length||t.length>1?[]:[t[0]]}function ft(u){const t=lt([u])[0],e=u.parentElement;if(e){const r=Array.from(e.children).filter((u=>u.tagName.toLowerCase()===t)),n=r.indexOf(u);if(n>-1)return[`${t}:nth-of-type(${n+1})`]}return[]}function pt(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){return Array.from(function*(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){let e=0,r=At(1);for(;r.length<=u.length&&eu[t]));yield t,r=Et(r,u.length-1)}}(u,{maxResults:t}))}function Et(u=[],t=0){const e=u.length;if(0===e)return[];const r=[...u];r[e-1]+=1;for(let u=e-1;u>=0;u--)if(r[u]>t){if(0===u)return At(e+1);r[u-1]++,r[u]=r[u-1]+1}return r[e-1]>t?At(e+1):r}function At(u=1){return Array.from(Array(u).keys())}const Ct=":".charCodeAt(0).toString(16).toUpperCase(),yt=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function dt(u=""){var t,e;return null!==(e=null===(t=null===CSS||void 0===CSS?void 0:CSS.escape)||void 0===t?void 0:t.call(CSS,u))&&void 0!==e?e:function(u=""){return u.split("").map((u=>":"===u?`\\${Ct} `:yt.test(u)?`\\${u}`:escape(u).replace(/%/g,"\\"))).join("")}(u)}const ht={tag:lt,id:function(u){return 0===u.length||u.length>1?[]:Ft(u[0])},class:function(u){return Xu(u.map(at))},attribute:function(u){return Xu(u.map(it))},nthchild:function(u){return Xu(u.map(ct))},nthoftype:function(u){return Xu(u.map(ft))}},Bt={tag:st,id:Ft,class:at,attribute:it,nthchild:ct,nthoftype:ft};function gt(u){return u.includes(Lu.tag)||u.includes(Lu.nthoftype)?[...u]:[...u,Lu.tag]}function mt(u={}){const t=[...et];return u[Lu.tag]&&u[Lu.nthoftype]&&t.splice(t.indexOf(Lu.tag),1),t.map((t=>{return(r=u)[e=t]?r[e].join(""):"";var e,r})).join("")}function bt(u,t,e="",r){const n=function(u,t){return""===t?u:function(u,t){return[...u.map((u=>t+ku.DESCENDANT+u)),...u.map((u=>t+ku.CHILD+u))]}(u,t)}(function(u,t,e){const r=function(u,t){const{blacklist:e,whitelist:r,combineWithinSelector:n,maxCombinations:o}=t,D=Ku(e),i=Ku(r);return function(u){const{selectors:t,includeTag:e}=u,r=[].concat(t);return e&&!r.includes("tag")&&r.push("tag"),r}(t).reduce(((t,e)=>{const r=function(u,t){var e;return(null!==(e=ht[t])&&void 0!==e?e:()=>[])(u)}(u,e),a=function(u=[],t,e){return u.filter((u=>e(u)||!t(u)))}(r,D,i),F=function(u=[],t){return u.sort(((u,e)=>{const r=t(u),n=t(e);return r&&!n?-1:!r&&n?1:0}))}(a,i);return t[e]=n?pt(F,{maxResults:o}):F.map((u=>[u])),t}),{})}(u,e),n=function(u,t){return function(u){const{selectors:t,combineBetweenSelectors:e,includeTag:r,maxCandidates:n}=u,o=e?pt(t,{maxResults:n}):t.map((u=>[u]));return r?o.map(gt):o}(t).map((t=>function(u,t){const e={};return u.forEach((u=>{const r=t[u];r.length>0&&(e[u]=r)})),function(u={}){let t=[];return Object.entries(u).forEach((([u,e])=>{t=e.flatMap((e=>0===t.length?[{[u]:e}]:t.map((t=>Object.assign(Object.assign({},t),{[u]:e})))))})),t}(e).map(mt)}(t,u))).filter((u=>u.length>0))}(r,e),o=Yu(n);return[...new Set(o)]}(u,r.root,r),e);for(const t of n)if(Ju(u,t,r.root))return t;return null}function vt(u){return{value:u,include:!1}}function wt({selectors:u,operator:t}){let e=[...et];u[Lu.tag]&&u[Lu.nthoftype]&&(e=e.filter((u=>u!==Lu.tag)));let r="";return e.forEach((t=>{(u[t]||[]).forEach((({value:u,include:t})=>{t&&(r+=u)}))})),t+r}function xt(u){return[":root",...Zu(u).reverse().map((u=>{const t=function(u,t,e=ku.NONE){const r={};return t.forEach((t=>{Reflect.set(r,t,function(u,t){return Bt[t](u)}(u,t).map(vt))})),{element:u,operator:e,selectors:r}}(u,[Lu.nthchild],ku.CHILD);return t.selectors.nthchild.forEach((u=>{u.include=!0})),t})).map(wt)].join("")}function St(u,t={}){const e=function(u){(u instanceof NodeList||u instanceof HTMLCollection)&&(u=Array.from(u));const t=(Array.isArray(u)?u:[u]).filter(Mu);return[...new Set(t)]}(u),r=function(u,t={}){const e=Object.assign(Object.assign({},Wu),t);return{selectors:(r=e.selectors,Array.isArray(r)?r.filter((u=>{return t=Lu,e=u,Object.values(t).includes(e);var t,e})):[]),whitelist:Gu(e.whitelist),blacklist:Gu(e.blacklist),root:Hu(e.root,u),combineWithinSelector:!!e.combineWithinSelector,combineBetweenSelectors:!!e.combineBetweenSelectors,includeTag:!!e.includeTag,maxCombinations:qu(e.maxCombinations),maxCandidates:qu(e.maxCandidates)};var r}(e[0],t);let n="",o=r.root;function D(){return function(u,t,e="",r){if(0===u.length)return null;const n=[u.length>1?u:[],...Qu(u,t).map((u=>[u]))];for(const u of n){const t=bt(u,0,e,r);if(t)return{foundElements:u,selector:t}}return null}(e,o,n,r)}let i=D();for(;i;){const{foundElements:u,selector:t}=i;if(Ju(e,t,r.root))return t;o=u[0],n=t,i=D()}return e.length>1?e.map((u=>St(u,r))).join(", "):function(u){return u.map(xt).join(", ")}(e)}function Ot(u){return null==u?null:-1!==["a","audio","button","canvas","details","input","label","option","select","submit","textarea","video"].indexOf(u.nodeName.toLowerCase())||u.hasAttribute("contenteditable")&&"false"!=u.getAttribute("contenteditable").toLowerCase()?u.outerHTML:u.parentElement?Ot(u.parentElement):null}function jt(u){for(var t=0;t0&&t.top0&&t.left{It(u)||(Nt(u),Mt(u,"keydown"))})),window.addEventListener("keyup",(u=>{It(u)||(Nt(u),Mt(u,"keyup"))})),e.g.readium={scrollToId:function(u){let t=document.getElementById(u);return!!t&&(v(t.getBoundingClientRect()),!0)},scrollToPosition:function(u,t){if(console.log("ScrollToPosition"),u<0||u>1)console.log("InvalidPosition");else if(b()){let t=document.scrollingElement.scrollHeight*u;document.scrollingElement.scrollTop=t}else{let e=document.scrollingElement.scrollWidth*u*("rtl"==t?-1:1);document.scrollingElement.scrollLeft=x(e)}},scrollToLocator:function(u){let t=S(u);return!!t&&function(u){return v(u.getBoundingClientRect())}(t)},scrollLeft:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX-r,o=t?-(e-r):0;return w(Math.max(n,o))},scrollRight:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX+r,o=t?0:e-r;return w(Math.min(n,o))},setCSSProperties:function(u){for(const t in u)O(t,u[t])},setProperty:O,removeProperty:j,registerDecorationTemplates:function(u){var t="";for(const[e,r]of Object.entries(u))Ru.set(e,r),r.stylesheet&&(t+=r.stylesheet+"\n");if(t){let u=document.createElement("style");u.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(u)}},getDecorations:function(u){var t=Iu.get(u);return t||(t=function(u,t){var e=[],r=0,n=null,o=!1;function D(t){let n=u+"-"+r++,o=S(t.locator);if(!o)return void P("Can't locate DOM range for decoration",t);let D={id:n,decoration:t,range:o};e.push(D),a(D)}function i(u){let t=e.findIndex((t=>t.decoration.id===u));if(-1===t)return;let r=e[t];e.splice(t,1),r.clickableElements=null,r.container&&(r.container.remove(),r.container=null)}function a(e){let r=(n||((n=document.createElement("div")).setAttribute("id",u),n.setAttribute("data-group",t),n.style.setProperty("pointer-events","none"),requestAnimationFrame((function(){null!=n&&document.body.append(n)}))),n),o=Ru.get(e.decoration.style);if(!o)return void T("Unknown decoration style: ".concat(e.decoration.style));let D=document.createElement("div");D.setAttribute("id",e.id),D.setAttribute("data-style",e.decoration.style),D.style.setProperty("pointer-events","none");let i=window.innerWidth,a=parseInt(getComputedStyle(document.documentElement).getPropertyValue("column-count")),F=i/(a||1),c=document.scrollingElement,s=c.scrollLeft,l=c.scrollTop;function f(u,t,e){if(u.style.position="absolute","wrap"===o.width)u.style.width="".concat(t.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(t.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("viewport"===o.width){u.style.width="".concat(i,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/i)*i;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}else if("bounds"===o.width)u.style.width="".concat(e.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(e.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("page"===o.width){u.style.width="".concat(F,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/F)*F;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}}let p,E=e.range.getBoundingClientRect();try{let u=document.createElement("template");u.innerHTML=e.decoration.element.trim(),p=u.content.firstElementChild}catch(u){return void T('Invalid decoration element "'.concat(e.decoration.element,'": ').concat(u.message))}if("boxes"===o.layout){let u=!0,t=k(e.range,u);t=t.sort(((u,t)=>u.topt.top?1:0));for(let u of t){const t=p.cloneNode(!0);t.style.setProperty("pointer-events","none"),f(t,u,E),D.append(t)}}else if("bounds"===o.layout){const u=p.cloneNode(!0);u.style.setProperty("pointer-events","none"),f(u,E,E),D.append(u)}r.append(D),e.container=D,e.clickableElements=Array.from(D.querySelectorAll("[data-activable='1']")),0===e.clickableElements.length&&(e.clickableElements=Array.from(D.children))}function F(){n&&(n.remove(),n=null)}return{add:D,remove:i,update:function(u){i(u.id),D(u)},clear:function(){F(),e.length=0},items:e,requestLayout:function(){F(),e.forEach((u=>a(u)))},isActivable:function(){return o},setActivable:function(){o=!0}}}("r2-decoration-"+Nu++,u),Iu.set(u,t)),t},findFirstVisibleLocator:function(){const u=jt(document.body);return{href:"#",type:"application/xhtml+xml",locations:{cssSelector:St(u)},text:{highlight:u.textContent}}}},window.readium.isReflowable=!0,webkit.messageHandlers.spreadLoadStarted.postMessage({}),window.addEventListener("load",(function(){window.requestAnimationFrame((function(){webkit.messageHandlers.spreadLoaded.postMessage({})}));let u=document.createElement("meta");u.setAttribute("name","viewport"),u.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"),document.head.appendChild(u)}))})()})(); +(()=>{var u={9116:(u,t)=>{"use strict";function e(u){return u.split("").reverse().join("")}function r(u){return(u|-u)>>31&1}function n(u,t,e,n){var o=u.P[e],D=u.M[e],i=n>>>31,a=t[e]|i,F=a|D,c=(a&o)+o^o|a,s=D|~(c|o),l=o&c,f=r(s&u.lastRowMask[e])-r(l&u.lastRowMask[e]);return s<<=1,l<<=1,o=(l|=i)|~(F|(s|=r(n)-i)),D=s&F,u.P[e]=o,u.M[e]=D,f}function o(u,t,e){if(0===t.length)return[];e=Math.min(e,t.length);var r=[],o=32,D=Math.ceil(t.length/o)-1,i={P:new Uint32Array(D+1),M:new Uint32Array(D+1),lastRowMask:new Uint32Array(D+1)};i.lastRowMask.fill(1<<31),i.lastRowMask[D]=1<<(t.length-1)%o;for(var a=new Uint32Array(D+1),F=new Map,c=[],s=0;s<256;s++)c.push(a);for(var l=0;l=t.length||t.charCodeAt(C)===f&&(p[E]|=1<0&&d[y]>=e+o;)y-=1;y===D&&d[y]<=e&&(d[y]{"use strict";var r=e(4624),n=e(5096),o=n(r("String.prototype.indexOf"));u.exports=function(u,t){var e=r(u,!!t);return"function"==typeof e&&o(u,".prototype.")>-1?n(e):e}},5096:(u,t,e)=>{"use strict";var r=e(3520),n=e(4624),o=e(5676),D=e(2824),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),F=n("%Reflect.apply%",!0)||r.call(a,i),c=n("%Object.defineProperty%",!0),s=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(u){c=null}u.exports=function(u){if("function"!=typeof u)throw new D("a function is required");var t=F(r,a,arguments);return o(t,1+s(0,u.length-(arguments.length-1)),!0)};var l=function(){return F(r,i,arguments)};c?c(u.exports,"apply",{value:l}):u.exports.apply=l},2448:(u,t,e)=>{"use strict";var r=e(3268)(),n=e(4624),o=r&&n("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(u){o=!1}var D=e(6500),i=e(2824),a=e(6168);u.exports=function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],s=!!a&&a(u,t);if(o)o(u,t,{configurable:null===F&&s?s.configurable:!F,enumerable:null===r&&s?s.enumerable:!r,value:e,writable:null===n&&s?s.writable:!n});else{if(!c&&(r||n||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");u[t]=e}}},2732:(u,t,e)=>{"use strict";var r=e(2812),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,D=Array.prototype.concat,i=e(2448),a=e(3268)(),F=function(u,t,e,r){if(t in u)if(!0===r){if(u[t]===e)return}else if("function"!=typeof(n=r)||"[object Function]"!==o.call(n)||!r())return;var n;a?i(u,t,e,!0):i(u,t,e)},c=function(u,t){var e=arguments.length>2?arguments[2]:{},o=r(t);n&&(o=D.call(o,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";u.exports=EvalError},1152:u=>{"use strict";u.exports=Error},1932:u=>{"use strict";u.exports=RangeError},5028:u=>{"use strict";u.exports=ReferenceError},6500:u=>{"use strict";u.exports=SyntaxError},2824:u=>{"use strict";u.exports=TypeError},5488:u=>{"use strict";u.exports=URIError},9200:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=e(4712)(),o=e(4440),D=n?Symbol.toStringTag:null;u.exports=function(u,t){var e=arguments.length>2&&arguments[2]&&arguments[2].force;!D||!e&&o(u,D)||(r?r(u,D,{configurable:!0,enumerable:!1,value:t,writable:!1}):u[D]=t)}},108:(u,t,e)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,n=e(5988),o=e(648),D=e(1844),i=e(7256);u.exports=function(u){if(n(u))return u;var t,e="default";if(arguments.length>1&&(arguments[1]===String?e="string":arguments[1]===Number&&(e="number")),r&&(Symbol.toPrimitive?t=function(u,t){var e=u[t];if(null!=e){if(!o(e))throw new TypeError(e+" returned for property "+t+" of object "+u+" is not a function");return e}}(u,Symbol.toPrimitive):i(u)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(u,e);if(n(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===e&&(D(u)||i(u))&&(e="string"),function(u,t){if(null==u)throw new TypeError("Cannot call method on "+u);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var e,r,D,i="string"===t?["toString","valueOf"]:["valueOf","toString"];for(D=0;D{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},1480:u=>{"use strict";var t=Object.prototype.toString,e=Math.max,r=function(u,t){for(var e=[],r=0;r{"use strict";var r=e(1480);u.exports=Function.prototype.bind||r},2656:u=>{"use strict";var t=function(){return"string"==typeof function(){}.name},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch(u){e=null}t.functionsHaveConfigurableNames=function(){if(!t()||!e)return!1;var u=e((function(){}),"name");return!!u&&!!u.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},u.exports=t},4624:(u,t,e)=>{"use strict";var r,n=e(1152),o=e(7261),D=e(1932),i=e(5028),a=e(6500),F=e(2824),c=e(5488),s=Function,l=function(u){try{return s('"use strict"; return ('+u+").constructor;")()}catch(u){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(u){f=null}var p=function(){throw new F},E=f?function(){try{return p}catch(u){try{return f(arguments,"callee").get}catch(u){return p}}}():p,A=e(9800)(),C=e(7e3)(),y=Object.getPrototypeOf||(C?function(u){return u.__proto__}:null),d={},h="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":D,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&y?y(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":h,"%TypeError%":F,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(u){var g=y(y(u));B["%Error.prototype%"]=g}var m=function u(t){var e;if("%AsyncFunction%"===t)e=l("async function () {}");else if("%GeneratorFunction%"===t)e=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=u("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=u("%AsyncGenerator%");n&&y&&(e=y(n.prototype))}return B[t]=e,e},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=e(3520),w=e(4440),x=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),O=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,I=function(u,t){var e,r=u;if(w(b,r)&&(r="%"+(e=b[r])[0]+"%"),w(B,r)){var n=B[r];if(n===d&&(n=m(r)),void 0===n&&!t)throw new F("intrinsic "+u+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:n}}throw new a("intrinsic "+u+" does not exist!")};u.exports=function(u,t){if("string"!=typeof u||0===u.length)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new F('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,u))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(u){var t=j(u,0,1),e=j(u,-1);if("%"===t&&"%"!==e)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return O(u,T,(function(u,t,e,n){r[r.length]=e?O(n,R,"$1"):t||u})),r}(u),r=e.length>0?e[0]:"",n=I("%"+r+"%",t),o=n.name,D=n.value,i=!1,c=n.alias;c&&(r=c[0],S(e,x([0,1],c)));for(var s=1,l=!0;s=e.length){var C=f(D,p);D=(l=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:D[p]}else l=w(D,p),D=D[p];l&&!i&&(B[o]=D)}}return D}},6168:(u,t,e)=>{"use strict";var r=e(4624)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(u){r=null}u.exports=r},3268:(u,t,e)=>{"use strict";var r=e(4624)("%Object.defineProperty%",!0),n=function(){if(r)try{return r({},"a",{value:1}),!0}catch(u){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==r([],"length",{value:1}).length}catch(u){return!0}},u.exports=n},7e3:u=>{"use strict";var t={foo:{}},e=Object;u.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)}},9800:(u,t,e)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=e(7904);u.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},7904:u=>{"use strict";u.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var u={},t=Symbol("test"),e=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(t in u[t]=42,u)return!1;if("function"==typeof Object.keys&&0!==Object.keys(u).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(u).length)return!1;var r=Object.getOwnPropertySymbols(u);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(u,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(u,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},4712:(u,t,e)=>{"use strict";var r=e(7904);u.exports=function(){return r()&&!!Symbol.toStringTag}},4440:(u,t,e)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=e(3520);u.exports=o.call(r,n)},7284:(u,t,e)=>{"use strict";var r=e(4440),n=e(3147)(),o=e(2824),D={assert:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");if(n.assert(u),!D.has(u,t))throw new o("`"+t+"` is not present on `O`")},get:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return e&&e["$"+t]},has:function(u,t){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var e=n.get(u);return!!e&&r(e,"$"+t)},set:function(u,t,e){if(!u||"object"!=typeof u&&"function"!=typeof u)throw new o("`O` is not an object");if("string"!=typeof t)throw new o("`slot` must be a string");var r=n.get(u);r||(r={},n.set(u,r)),r["$"+t]=e}};Object.freeze&&Object.freeze(D),u.exports=D},648:u=>{"use strict";var t,e,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},n((function(){throw 42}),null,t)}catch(u){u!==e&&(n=null)}else n=null;var o=/^\s*class\b/,D=function(u){try{var t=r.call(u);return o.test(t)}catch(u){return!1}},i=function(u){try{return!D(u)&&(r.call(u),!0)}catch(u){return!1}},a=Object.prototype.toString,F="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),s=function(){return!1};if("object"==typeof document){var l=document.all;a.call(l)===a.call(document.all)&&(s=function(u){if((c||!u)&&(void 0===u||"object"==typeof u))try{var t=a.call(u);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==u("")}catch(u){}return!1})}u.exports=n?function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;try{n(u,null,t)}catch(u){if(u!==e)return!1}return!D(u)&&i(u)}:function(u){if(s(u))return!0;if(!u)return!1;if("function"!=typeof u&&"object"!=typeof u)return!1;if(F)return i(u);if(D(u))return!1;var t=a.call(u);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&i(u)}},1844:(u,t,e)=>{"use strict";var r=Date.prototype.getDay,n=Object.prototype.toString,o=e(4712)();u.exports=function(u){return"object"==typeof u&&null!==u&&(o?function(u){try{return r.call(u),!0}catch(u){return!1}}(u):"[object Date]"===n.call(u))}},1476:(u,t,e)=>{"use strict";var r,n,o,D,i=e(668),a=e(4712)();if(a){r=i("Object.prototype.hasOwnProperty"),n=i("RegExp.prototype.exec"),o={};var F=function(){throw o};D={toString:F,valueOf:F},"symbol"==typeof Symbol.toPrimitive&&(D[Symbol.toPrimitive]=F)}var c=i("Object.prototype.toString"),s=Object.getOwnPropertyDescriptor;u.exports=a?function(u){if(!u||"object"!=typeof u)return!1;var t=s(u,"lastIndex");if(!t||!r(t,"value"))return!1;try{n(u,D)}catch(u){return u===o}}:function(u){return!(!u||"object"!=typeof u&&"function"!=typeof u)&&"[object RegExp]"===c(u)}},7256:(u,t,e)=>{"use strict";var r=Object.prototype.toString;if(e(9800)()){var n=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;u.exports=function(u){if("symbol"==typeof u)return!0;if("[object Symbol]"!==r.call(u))return!1;try{return function(u){return"symbol"==typeof u.valueOf()&&o.test(n.call(u))}(u)}catch(u){return!1}}}else u.exports=function(u){return!1}},4152:(u,t,e)=>{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,D=r&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F=i&&a&&"function"==typeof a.get?a.get:null,c=i&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,E=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,y=String.prototype.slice,d=String.prototype.replace,h=String.prototype.toUpperCase,B=String.prototype.toLowerCase,g=RegExp.prototype.test,m=Array.prototype.concat,b=Array.prototype.join,v=Array.prototype.slice,w=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function I(u,t){if(u===1/0||u===-1/0||u!=u||u&&u>-1e3&&u<1e3||g.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof u){var r=u<0?-w(-u):w(u);if(r!==u){var n=String(r),o=y.call(t,n.length+1);return d.call(n,e,"$&_")+"."+d.call(d.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return d.call(t,e,"$&_")}var N=e(1740),M=N.custom,k=U(M)?M:null;function L(u,t,e){var r="double"===(e.quoteStyle||t)?'"':"'";return r+u+r}function $(u){return d.call(String(u),/"/g,""")}function _(u){return!("[object Array]"!==V(u)||P&&"object"==typeof u&&P in u)}function W(u){return!("[object RegExp]"!==V(u)||P&&"object"==typeof u&&P in u)}function U(u){if(j)return u&&"object"==typeof u&&u instanceof Symbol;if("symbol"==typeof u)return!0;if(!u||"object"!=typeof u||!O)return!1;try{return O.call(u),!0}catch(u){}return!1}u.exports=function u(t,r,n,i){var a=r||{};if(G(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var E=!G(a,"customInspect")||a.customInspect;if("boolean"!=typeof E&&"symbol"!==E)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return q(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var g=String(t);return h?I(t,g):g}if("bigint"==typeof t){var w=String(t)+"n";return h?I(t,w):w}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return _(t)?"[Array]":"[Object]";var M,z=function(u,t){var e;if("\t"===u.indent)e="\t";else{if(!("number"==typeof u.indent&&u.indent>0))return null;e=b.call(Array(u.indent+1)," ")}return{base:e,prev:b.call(Array(t+1),e)}}(a,n);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function X(t,e,r){if(e&&(i=v.call(i)).push(e),r){var o={depth:a.depth};return G(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),u(t,o,n+1,i)}return u(t,a,n+1,i)}if("function"==typeof t&&!W(t)){var uu=function(u){if(u.name)return u.name;var t=C.call(A.call(u),/^function\s*([\w$]+)/);return t?t[1]:null}(t),tu=Q(t,X);return"[Function"+(uu?": "+uu:" (anonymous)")+"]"+(tu.length>0?" { "+b.call(tu,", ")+" }":"")}if(U(t)){var eu=j?d.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||j?eu:Y(eu)}if((M=t)&&"object"==typeof M&&("undefined"!=typeof HTMLElement&&M instanceof HTMLElement||"string"==typeof M.nodeName&&"function"==typeof M.getAttribute)){for(var ru="<"+B.call(String(t.nodeName)),nu=t.attributes||[],ou=0;ou"}if(_(t)){if(0===t.length)return"[]";var Du=Q(t,X);return z&&!function(u){for(var t=0;t=0)return!1;return!0}(Du)?"["+Z(Du,z)+"]":"[ "+b.call(Du,", ")+" ]"}if(function(u){return!("[object Error]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)){var iu=Q(t,X);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===iu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(iu,", ")+" }":"{ ["+String(t)+"] "+b.call(m.call("[cause]: "+X(t.cause),iu),", ")+" }"}if("object"==typeof t&&E){if(k&&"function"==typeof t[k]&&N)return N(t,{depth:S-n});if("symbol"!==E&&"function"==typeof t.inspect)return t.inspect()}if(function(u){if(!o||!u||"object"!=typeof u)return!1;try{o.call(u);try{F.call(u)}catch(u){return!0}return u instanceof Map}catch(u){}return!1}(t)){var au=[];return D&&D.call(t,(function(u,e){au.push(X(e,t,!0)+" => "+X(u,t))})),J("Map",o.call(t),au,z)}if(function(u){if(!F||!u||"object"!=typeof u)return!1;try{F.call(u);try{o.call(u)}catch(u){return!0}return u instanceof Set}catch(u){}return!1}(t)){var Fu=[];return c&&c.call(t,(function(u){Fu.push(X(u,t))})),J("Set",F.call(t),Fu,z)}if(function(u){if(!s||!u||"object"!=typeof u)return!1;try{s.call(u,s);try{l.call(u,l)}catch(u){return!0}return u instanceof WeakMap}catch(u){}return!1}(t))return K("WeakMap");if(function(u){if(!l||!u||"object"!=typeof u)return!1;try{l.call(u,l);try{s.call(u,s)}catch(u){return!0}return u instanceof WeakSet}catch(u){}return!1}(t))return K("WeakSet");if(function(u){if(!f||!u||"object"!=typeof u)return!1;try{return f.call(u),!0}catch(u){}return!1}(t))return K("WeakRef");if(function(u){return!("[object Number]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(Number(t)));if(function(u){if(!u||"object"!=typeof u||!x)return!1;try{return x.call(u),!0}catch(u){}return!1}(t))return Y(X(x.call(t)));if(function(u){return!("[object Boolean]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(p.call(t));if(function(u){return!("[object String]"!==V(u)||P&&"object"==typeof u&&P in u)}(t))return Y(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===e.g)return"{ [object globalThis] }";if(!function(u){return!("[object Date]"!==V(u)||P&&"object"==typeof u&&P in u)}(t)&&!W(t)){var cu=Q(t,X),su=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,lu=t instanceof Object?"":"null prototype",fu=!su&&P&&Object(t)===t&&P in t?y.call(V(t),8,-1):lu?"Object":"",pu=(su||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fu||lu?"["+b.call(m.call([],fu||[],lu||[]),": ")+"] ":"");return 0===cu.length?pu+"{}":z?pu+"{"+Z(cu,z)+"}":pu+"{ "+b.call(cu,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(u){return u in this};function G(u,t){return z.call(u,t)}function V(u){return E.call(u)}function H(u,t){if(u.indexOf)return u.indexOf(t);for(var e=0,r=u.length;et.maxStringLength){var e=u.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return q(y.call(u,0,t.maxStringLength),t)+r}return L(d.call(d.call(u,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(u){var t=u.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+h.call(t.toString(16))}function Y(u){return"Object("+u+")"}function K(u){return u+" { ? }"}function J(u,t,e,r){return u+" ("+t+") {"+(r?Z(e,r):b.call(e,", "))+"}"}function Z(u,t){if(0===u.length)return"";var e="\n"+t.prev+t.base;return e+b.call(u,","+e)+"\n"+t.prev}function Q(u,t){var e=_(u),r=[];if(e){r.length=u.length;for(var n=0;n{"use strict";var r;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,D=e(9096),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),F=i.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(u){var t=u.constructor;return t&&t.prototype===u},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var u in window)try{if(!l["$"+u]&&n.call(window,u)&&null!==window[u]&&"object"==typeof window[u])try{s(window[u])}catch(u){return!0}}catch(u){return!0}return!1}();r=function(u){var t=null!==u&&"object"==typeof u,e="[object Function]"===o.call(u),r=D(u),i=t&&"[object String]"===o.call(u),l=[];if(!t&&!e&&!r)throw new TypeError("Object.keys called on a non-object");var p=F&&e;if(i&&u.length>0&&!n.call(u,0))for(var E=0;E0)for(var A=0;A{"use strict";var r=Array.prototype.slice,n=e(9096),o=Object.keys,D=o?function(u){return o(u)}:e(9560),i=Object.keys;D.shim=function(){if(Object.keys){var u=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);u||(Object.keys=function(u){return n(u)?i(r.call(u)):i(u)})}else Object.keys=D;return Object.keys||D},u.exports=D},9096:u=>{"use strict";var t=Object.prototype.toString;u.exports=function(u){var e=t.call(u),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==u&&"object"==typeof u&&"number"==typeof u.length&&u.length>=0&&"[object Function]"===t.call(u.callee)),r}},7636:(u,t,e)=>{"use strict";var r=e(6308),n=e(2824),o=Object;u.exports=r((function(){if(null==this||this!==o(this))throw new n("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u}),"get flags",!0)},2192:(u,t,e)=>{"use strict";var r=e(2732),n=e(5096),o=e(7636),D=e(9296),i=e(736),a=n(D());r(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},9296:(u,t,e)=>{"use strict";var r=e(7636),n=e(2732).supportsDescriptors,o=Object.getOwnPropertyDescriptor;u.exports=function(){if(n&&"gim"===/a/gim.flags){var u=o(RegExp.prototype,"flags");if(u&&"function"==typeof u.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",e={};if(Object.defineProperty(e,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(e,"sticky",{get:function(){t+="y"}}),"dy"===t)return u.get}}return r}},736:(u,t,e)=>{"use strict";var r=e(2732).supportsDescriptors,n=e(9296),o=Object.getOwnPropertyDescriptor,D=Object.defineProperty,i=TypeError,a=Object.getPrototypeOf,F=/a/;u.exports=function(){if(!r||!a)throw new i("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=n(),t=a(F),e=o(t,"flags");return e&&e.get===u||D(t,"flags",{configurable:!0,enumerable:!1,get:u}),u}},860:(u,t,e)=>{"use strict";var r=e(668),n=e(1476),o=r("RegExp.prototype.exec"),D=e(2824);u.exports=function(u){if(!n(u))throw new D("`regex` must be a RegExp");return function(t){return null!==o(u,t)}}},5676:(u,t,e)=>{"use strict";var r=e(4624),n=e(2448),o=e(3268)(),D=e(6168),i=e(2824),a=r("%Math.floor%");u.exports=function(u,t){if("function"!=typeof u)throw new i("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||a(t)!==t)throw new i("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],r=!0,F=!0;if("length"in u&&D){var c=D(u,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(F=!1)}return(r||F||!e)&&(o?n(u,"length",t,!0,!0):n(u,"length",t)),u}},6308:(u,t,e)=>{"use strict";var r=e(2448),n=e(3268)(),o=e(2656).functionsHaveConfigurableNames(),D=TypeError;u.exports=function(u,t){if("function"!=typeof u)throw new D("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(n?r(u,"name",t,!0,!0):r(u,"name",t)),u}},3147:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=e(4152),D=e(2824),i=r("%WeakMap%",!0),a=r("%Map%",!0),F=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),l=n("Map.prototype.get",!0),f=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),E=function(u,t){for(var e,r=u;null!==(e=r.next);r=e)if(e.key===t)return r.next=e.next,e.next=u.next,u.next=e,e};u.exports=function(){var u,t,e,r={assert:function(u){if(!r.has(u))throw new D("Side channel does not contain "+o(u))},get:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return F(u,r)}else if(a){if(t)return l(t,r)}else if(e)return function(u,t){var e=E(u,t);return e&&e.value}(e,r)},has:function(r){if(i&&r&&("object"==typeof r||"function"==typeof r)){if(u)return s(u,r)}else if(a){if(t)return p(t,r)}else if(e)return function(u,t){return!!E(u,t)}(e,r);return!1},set:function(r,n){i&&r&&("object"==typeof r||"function"==typeof r)?(u||(u=new i),c(u,r,n)):a?(t||(t=new a),f(t,r,n)):(e||(e={key:{},next:null}),function(u,t,e){var r=E(u,t);r?r.value=e:u.next={key:t,next:u.next,value:e}}(e,r,n))}};return r}},9508:(u,t,e)=>{"use strict";var r=e(1700),n=e(3672),o=e(5552),D=e(3816),i=e(5424),a=e(4656),F=e(668),c=e(9800)(),s=e(2192),l=F("String.prototype.indexOf"),f=e(6288),p=function(u){var t=f();if(c&&"symbol"==typeof Symbol.matchAll){var e=o(u,Symbol.matchAll);return e===RegExp.prototype[Symbol.matchAll]&&e!==t?t:e}if(D(u))return t};u.exports=function(u){var t=a(this);if(null!=u){if(D(u)){var e="flags"in u?n(u,"flags"):s(u);if(a(e),l(i(e),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var o=p(u);if(void 0!==o)return r(o,u,[t])}var F=i(t),c=new RegExp(u,"g");return r(p(c),c,[F])}},3732:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(9508),D=e(5844),i=e(4148),a=r(o);n(a,{getPolyfill:D,implementation:o,shim:i}),u.exports=a},6288:(u,t,e)=>{"use strict";var r=e(9800)(),n=e(7492);u.exports=function(){return r&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:n}},5844:(u,t,e)=>{"use strict";var r=e(9508);u.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(u){return String.prototype.matchAll}return r}},7492:(u,t,e)=>{"use strict";var r=e(5211),n=e(3672),o=e(4e3),D=e(8652),i=e(4784),a=e(5424),F=e(8645),c=e(2192),s=e(6308),l=e(668)("String.prototype.indexOf"),f=RegExp,p="flags"in RegExp.prototype,E=s((function(u){var t=this;if("Object"!==F(t))throw new TypeError('"this" value must be an Object');var e=a(u),s=function(u,t){var e="flags"in t?n(t,"flags"):a(c(t));return{flags:e,matcher:new u(p&&"string"==typeof e?t:u===f?t.source:t,e)}}(D(t,f),t),E=s.flags,A=s.matcher,C=i(n(t,"lastIndex"));o(A,"lastIndex",C,!0);var y=l(E,"g")>-1,d=l(E,"u")>-1;return r(A,e,y,d)}),"[Symbol.matchAll]",!0);u.exports=E},4148:(u,t,e)=>{"use strict";var r=e(2732),n=e(9800)(),o=e(5844),D=e(6288),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor;u.exports=function(){var u=o();if(r(String.prototype,{matchAll:u},{matchAll:function(){return String.prototype.matchAll!==u}}),n){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(r(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),i&&a){var e=a(Symbol,t);e&&!e.configurable||i(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var F=D(),c={};c[t]=F;var s={};s[t]=function(){return RegExp.prototype[t]!==F},r(RegExp.prototype,c,s)}return u}},6936:(u,t,e)=>{"use strict";var r=e(4656),n=e(5424),o=e(668)("String.prototype.replace"),D=/^\s$/.test("᠎"),i=D?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=D?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;u.exports=function(){var u=n(r(this));return o(o(u,i,""),a,"")}},9292:(u,t,e)=>{"use strict";var r=e(5096),n=e(2732),o=e(4656),D=e(6936),i=e(6684),a=e(9788),F=r(i()),c=function(u){return o(u),F(u)};n(c,{getPolyfill:i,implementation:D,shim:a}),u.exports=c},6684:(u,t,e)=>{"use strict";var r=e(6936);u.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},9788:(u,t,e)=>{"use strict";var r=e(2732),n=e(6684);u.exports=function(){var u=n();return r(String.prototype,{trim:u},{trim:function(){return String.prototype.trim!==u}}),u}},1740:()=>{},1056:(u,t,e)=>{"use strict";var r=e(4624),n=e(8536),o=e(8645),D=e(7724),i=e(9132),a=r("%TypeError%");u.exports=function(u,t,e){if("String"!==o(u))throw new a("Assertion failed: `S` must be a String");if(!D(t)||t<0||t>i)throw new a("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==o(e))throw new a("Assertion failed: `unicode` must be a Boolean");return e?t+1>=u.length?t+1:t+n(u,t)["[[CodeUnitCount]]"]:t+1}},1700:(u,t,e)=>{"use strict";var r=e(4624),n=e(668),o=r("%TypeError%"),D=e(1720),i=r("%Reflect.apply%",!0)||n("Function.prototype.apply");u.exports=function(u,t){var e=arguments.length>2?arguments[2]:[];if(!D(e))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(u,t,e)}},8536:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668),o=e(1712),D=e(8444),i=e(8645),a=e(2320),F=n("String.prototype.charAt"),c=n("String.prototype.charCodeAt");u.exports=function(u,t){if("String"!==i(u))throw new r("Assertion failed: `string` must be a String");var e=u.length;if(t<0||t>=e)throw new r("Assertion failed: `position` must be >= 0, and < the length of `string`");var n=c(u,t),s=F(u,t),l=o(n),f=D(n);if(!l&&!f)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(f||t+1===e)return{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var p=c(u,t+1);return D(p)?{"[[CodePoint]]":a(n,p),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":s,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4288:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(8645);u.exports=function(u,t){if("Boolean"!==n(t))throw new r("Assertion failed: Type(done) is not Boolean");return{value:u,done:t}}},2672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4436),o=e(8924),D=e(3880),i=e(2968),a=e(8800),F=e(8645);u.exports=function(u,t,e){if("Object"!==F(u))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");return n(D,a,o,u,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":e,"[[Writable]]":!0})}},5211:(u,t,e)=>{"use strict";var r=e(4624),n=e(9800)(),o=r("%TypeError%"),D=r("%IteratorPrototype%",!0),i=e(1056),a=e(4288),F=e(2672),c=e(3672),s=e(6216),l=e(8972),f=e(4e3),p=e(4784),E=e(5424),A=e(8645),C=e(7284),y=e(9200),d=function(u,t,e,r){if("String"!==A(t))throw new o("`S` must be a string");if("Boolean"!==A(e))throw new o("`global` must be a boolean");if("Boolean"!==A(r))throw new o("`fullUnicode` must be a boolean");C.set(this,"[[IteratingRegExp]]",u),C.set(this,"[[IteratedString]]",t),C.set(this,"[[Global]]",e),C.set(this,"[[Unicode]]",r),C.set(this,"[[Done]]",!1)};D&&(d.prototype=s(D)),F(d.prototype,"next",(function(){var u=this;if("Object"!==A(u))throw new o("receiver must be an object");if(!(u instanceof d&&C.has(u,"[[IteratingRegExp]]")&&C.has(u,"[[IteratedString]]")&&C.has(u,"[[Global]]")&&C.has(u,"[[Unicode]]")&&C.has(u,"[[Done]]")))throw new o('"this" value must be a RegExpStringIterator instance');if(C.get(u,"[[Done]]"))return a(void 0,!0);var t=C.get(u,"[[IteratingRegExp]]"),e=C.get(u,"[[IteratedString]]"),r=C.get(u,"[[Global]]"),n=C.get(u,"[[Unicode]]"),D=l(t,e);if(null===D)return C.set(u,"[[Done]]",!0),a(void 0,!0);if(r){if(""===E(c(D,"0"))){var F=p(c(t,"lastIndex")),s=i(e,F,n);f(t,"lastIndex",s,!0)}return a(D,!1)}return C.set(u,"[[Done]]",!0),a(D,!1)})),n&&(y(d.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof d.prototype[Symbol.iterator])&&F(d.prototype,Symbol.iterator,(function(){return this})),u.exports=function(u,t,e,r){return new d(u,t,e,r)}},7268:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(320),o=e(4436),D=e(8924),i=e(4936),a=e(3880),F=e(2968),c=e(8800),s=e(5696),l=e(8645);u.exports=function(u,t,e){if("Object"!==l(u))throw new r("Assertion failed: Type(O) is not Object");if(!F(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},e)?e:s(e);if(!n({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},f))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return o(a,c,D,u,t,f)}},8924:(u,t,e)=>{"use strict";var r=e(3600),n=e(3504),o=e(8645);u.exports=function(u){return void 0!==u&&r(o,"Property Descriptor","Desc",u),n(u)}},3672:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968),D=e(8645);u.exports=function(u,t){if("Object"!==D(u))throw new r("Assertion failed: Type(O) is not Object");if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},5552:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(3396),o=e(3048),D=e(2968),i=e(4152);u.exports=function(u,t){if(!D(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var e=n(u,t);if(null!=e){if(!o(e))throw new r(i(t)+" is not a function: "+i(e));return e}}},3396:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(4152),o=e(2968);u.exports=function(u,t){if(!o(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+n(t));return u[t]}},4936:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Get]]")&&!r(u,"[[Set]]")))}},1720:(u,t,e)=>{"use strict";u.exports=e(704)},3048:(u,t,e)=>{"use strict";u.exports=e(648)},211:(u,t,e)=>{"use strict";var r=e(8600)("%Reflect.construct%",!0),n=e(7268);try{n({},"",{"[[Get]]":function(){}})}catch(u){n=null}if(n&&r){var o={},D={};n(D,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),u.exports=function(u){try{r(u,D)}catch(u){return u===o}}}else u.exports=function(u){return"function"==typeof u&&!!u.prototype}},3880:(u,t,e)=>{"use strict";var r=e(4440),n=e(8645),o=e(3600);u.exports=function(u){return void 0!==u&&(o(n,"Property Descriptor","Desc",u),!(!r(u,"[[Value]]")&&!r(u,"[[Writable]]")))}},2968:u=>{"use strict";u.exports=function(u){return"string"==typeof u||"symbol"==typeof u}},3816:(u,t,e)=>{"use strict";var r=e(4624)("%Symbol.match%",!0),n=e(1476),o=e(6848);u.exports=function(u){if(!u||"object"!=typeof u)return!1;if(r){var t=u[r];if(void 0!==t)return o(t)}return n(u)}},6216:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Object.create%",!0),o=r("%TypeError%"),D=r("%SyntaxError%"),i=e(1720),a=e(8645),F=e(4672),c=e(7284),s=e(7e3)();u.exports=function(u){if(null!==u&&"Object"!==a(u))throw new o("Assertion failed: `proto` must be null or an object");var t,e=arguments.length<2?[]:arguments[1];if(!i(e))throw new o("Assertion failed: `additionalInternalSlotsList` must be an Array");if(n)t=n(u);else if(s)t={__proto__:u};else{if(null===u)throw new D("native Object.create support is required to create null objects");var r=function(){};r.prototype=u,t=new r}return e.length>0&&F(e,(function(u){c.set(t,u,void 0)})),t}},8972:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(668)("RegExp.prototype.exec"),o=e(1700),D=e(3672),i=e(3048),a=e(8645);u.exports=function(u,t){if("Object"!==a(u))throw new r("Assertion failed: `R` must be an Object");if("String"!==a(t))throw new r("Assertion failed: `S` must be a String");var e=D(u,"exec");if(i(e)){var F=o(e,u,[t]);if(null===F||"Object"===a(F))return F;throw new r('"exec" method must return `null` or an Object')}return n(u,t)}},4656:(u,t,e)=>{"use strict";u.exports=e(176)},8800:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u,t){return u===t?0!==u||1/u==1/t:r(u)&&r(t)}},4e3:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%"),n=e(2968),o=e(8800),D=e(8645),i=function(){try{return delete[].length,!0}catch(u){return!1}}();u.exports=function(u,t,e,a){if("Object"!==D(u))throw new r("Assertion failed: `O` must be an Object");if(!n(t))throw new r("Assertion failed: `P` must be a Property Key");if("Boolean"!==D(a))throw new r("Assertion failed: `Throw` must be a Boolean");if(a){if(u[t]=e,i&&!o(u[t],e))throw new r("Attempted to assign to readonly property.");return!0}try{return u[t]=e,!i||o(u[t],e)}catch(u){return!1}}},8652:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Symbol.species%",!0),o=r("%TypeError%"),D=e(211),i=e(8645);u.exports=function(u,t){if("Object"!==i(u))throw new o("Assertion failed: Type(O) is not Object");var e=u.constructor;if(void 0===e)return t;if("Object"!==i(e))throw new o("O.constructor is not an Object");var r=n?e[n]:void 0;if(null==r)return t;if(D(r))return r;throw new o("no constructor found")}},8772:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Number%"),o=r("%RegExp%"),D=r("%TypeError%"),i=r("%parseInt%"),a=e(668),F=e(860),c=a("String.prototype.slice"),s=F(/^0b[01]+$/i),l=F(/^0o[0-7]+$/i),f=F(/^[-+]0x[0-9a-f]+$/i),p=F(new o("["+["…","​","￾"].join("")+"]","g")),E=e(9292),A=e(8645);u.exports=function u(t){if("String"!==A(t))throw new D("Assertion failed: `argument` is not a String");if(s(t))return n(i(c(t,2),2));if(l(t))return n(i(c(t,2),8));if(p(t)||f(t))return NaN;var e=E(t);return e!==t?u(e):n(t)}},6848:u=>{"use strict";u.exports=function(u){return!!u}},9424:(u,t,e)=>{"use strict";var r=e(7220),n=e(2592),o=e(2808),D=e(2931);u.exports=function(u){var t=r(u);return o(t)||0===t?0:D(t)?n(t):t}},4784:(u,t,e)=>{"use strict";var r=e(9132),n=e(9424);u.exports=function(u){var t=n(u);return t<=0?0:t>r?r:t}},7220:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%Number%"),D=e(2336),i=e(5556),a=e(8772);u.exports=function(u){var t=D(u)?u:i(u,o);if("symbol"==typeof t)throw new n("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new n("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?a(t):o(t)}},5556:(u,t,e)=>{"use strict";var r=e(108);u.exports=function(u){return arguments.length>1?r(u,arguments[1]):r(u)}},5696:(u,t,e)=>{"use strict";var r=e(4440),n=e(4624)("%TypeError%"),o=e(8645),D=e(6848),i=e(3048);u.exports=function(u){if("Object"!==o(u))throw new n("ToPropertyDescriptor requires an object");var t={};if(r(u,"enumerable")&&(t["[[Enumerable]]"]=D(u.enumerable)),r(u,"configurable")&&(t["[[Configurable]]"]=D(u.configurable)),r(u,"value")&&(t["[[Value]]"]=u.value),r(u,"writable")&&(t["[[Writable]]"]=D(u.writable)),r(u,"get")){var e=u.get;if(void 0!==e&&!i(e))throw new n("getter must be a function");t["[[Get]]"]=e}if(r(u,"set")){var a=u.set;if(void 0!==a&&!i(a))throw new n("setter must be a function");t["[[Set]]"]=a}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new n("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},5424:(u,t,e)=>{"use strict";var r=e(4624),n=r("%String%"),o=r("%TypeError%");u.exports=function(u){if("symbol"==typeof u)throw new o("Cannot convert a Symbol value to a string");return n(u)}},8645:(u,t,e)=>{"use strict";var r=e(7936);u.exports=function(u){return"symbol"==typeof u?"Symbol":"bigint"==typeof u?"BigInt":r(u)}},2320:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%String.fromCharCode%"),D=e(1712),i=e(8444);u.exports=function(u,t){if(!D(u)||!i(t))throw new n("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(u)+o(t)}},2312:(u,t,e)=>{"use strict";var r=e(8645),n=Math.floor;u.exports=function(u){return"BigInt"===r(u)?u:n(u)}},2592:(u,t,e)=>{"use strict";var r=e(4624),n=e(2312),o=r("%TypeError%");u.exports=function(u){if("number"!=typeof u&&"bigint"!=typeof u)throw new o("argument must be a Number or a BigInt");var t=u<0?-n(-u):n(u);return 0===t?0:t}},176:(u,t,e)=>{"use strict";var r=e(4624)("%TypeError%");u.exports=function(u,t){if(null==u)throw new r(t||"Cannot call method on "+u);return u}},7936:u=>{"use strict";u.exports=function(u){return null===u?"Null":void 0===u?"Undefined":"function"==typeof u||"object"==typeof u?"Object":"number"==typeof u?"Number":"boolean"==typeof u?"Boolean":"string"==typeof u?"String":void 0}},8600:(u,t,e)=>{"use strict";u.exports=e(4624)},4436:(u,t,e)=>{"use strict";var r=e(3268),n=e(4624),o=r()&&n("%Object.defineProperty%",!0),D=r.hasArrayLengthDefineBug(),i=D&&e(704),a=e(668)("Object.prototype.propertyIsEnumerable");u.exports=function(u,t,e,r,n,F){if(!o){if(!u(F))return!1;if(!F["[[Configurable]]"]||!F["[[Writable]]"])return!1;if(n in r&&a(r,n)!==!!F["[[Enumerable]]"])return!1;var c=F["[[Value]]"];return r[n]=c,t(r[n],c)}return D&&"length"===n&&"[[Value]]"in F&&i(r)&&r.length!==F["[[Value]]"]?(r.length=F["[[Value]]"],r.length===F["[[Value]]"]):(o(r,n,e(F)),!0)}},704:(u,t,e)=>{"use strict";var r=e(4624)("%Array%"),n=!r.isArray&&e(668)("Object.prototype.toString");u.exports=r.isArray||function(u){return"[object Array]"===n(u)}},3600:(u,t,e)=>{"use strict";var r=e(4624),n=r("%TypeError%"),o=r("%SyntaxError%"),D=e(4440),i=e(7724),a={"Property Descriptor":function(u){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!u)return!1;for(var e in u)if(D(u,e)&&!t[e])return!1;var r=D(u,"[[Value]]"),o=D(u,"[[Get]]")||D(u,"[[Set]]");if(r&&o)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":e(5092),"Iterator Record":function(u){return D(u,"[[Iterator]]")&&D(u,"[[NextMethod]]")&&D(u,"[[Done]]")},"PromiseCapability Record":function(u){return!!u&&D(u,"[[Resolve]]")&&"function"==typeof u["[[Resolve]]"]&&D(u,"[[Reject]]")&&"function"==typeof u["[[Reject]]"]&&D(u,"[[Promise]]")&&u["[[Promise]]"]&&"function"==typeof u["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(u){return!!u&&D(u,"[[Completion]]")&&D(u,"[[Capability]]")&&a["PromiseCapability Record"](u["[[Capability]]"])},"RegExp Record":function(u){return u&&D(u,"[[IgnoreCase]]")&&"boolean"==typeof u["[[IgnoreCase]]"]&&D(u,"[[Multiline]]")&&"boolean"==typeof u["[[Multiline]]"]&&D(u,"[[DotAll]]")&&"boolean"==typeof u["[[DotAll]]"]&&D(u,"[[Unicode]]")&&"boolean"==typeof u["[[Unicode]]"]&&D(u,"[[CapturingGroupsCount]]")&&"number"==typeof u["[[CapturingGroupsCount]]"]&&i(u["[[CapturingGroupsCount]]"])&&u["[[CapturingGroupsCount]]"]>=0}};u.exports=function(u,t,e,r){var D=a[t];if("function"!=typeof D)throw new o("unknown record type: "+t);if("Object"!==u(r)||!D(r))throw new n(e+" must be a "+t)}},4672:u=>{"use strict";u.exports=function(u,t){for(var e=0;e{"use strict";u.exports=function(u){if(void 0===u)return u;var t={};return"[[Value]]"in u&&(t.value=u["[[Value]]"]),"[[Writable]]"in u&&(t.writable=!!u["[[Writable]]"]),"[[Get]]"in u&&(t.get=u["[[Get]]"]),"[[Set]]"in u&&(t.set=u["[[Set]]"]),"[[Enumerable]]"in u&&(t.enumerable=!!u["[[Enumerable]]"]),"[[Configurable]]"in u&&(t.configurable=!!u["[[Configurable]]"]),t}},2931:(u,t,e)=>{"use strict";var r=e(2808);u.exports=function(u){return("number"==typeof u||"bigint"==typeof u)&&!r(u)&&u!==1/0&&u!==-1/0}},7724:(u,t,e)=>{"use strict";var r=e(4624),n=r("%Math.abs%"),o=r("%Math.floor%"),D=e(2808),i=e(2931);u.exports=function(u){if("number"!=typeof u||D(u)||!i(u))return!1;var t=n(u);return o(t)===t}},1712:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=55296&&u<=56319}},5092:(u,t,e)=>{"use strict";var r=e(4440);u.exports=function(u){return r(u,"[[StartIndex]]")&&r(u,"[[EndIndex]]")&&u["[[StartIndex]]"]>=0&&u["[[EndIndex]]"]>=u["[[StartIndex]]"]&&String(parseInt(u["[[StartIndex]]"],10))===String(u["[[StartIndex]]"])&&String(parseInt(u["[[EndIndex]]"],10))===String(u["[[EndIndex]]"])}},2808:u=>{"use strict";u.exports=Number.isNaN||function(u){return u!=u}},2336:u=>{"use strict";u.exports=function(u){return null===u||"function"!=typeof u&&"object"!=typeof u}},320:(u,t,e)=>{"use strict";var r=e(4624),n=e(4440),o=r("%TypeError%");u.exports=function(u,t){if("Object"!==u.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(n(t,r)&&!e[r])return!1;if(u.IsDataDescriptor(t)&&u.IsAccessorDescriptor(t))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},8444:u=>{"use strict";u.exports=function(u){return"number"==typeof u&&u>=56320&&u<=57343}},9132:u=>{"use strict";u.exports=Number.MAX_SAFE_INTEGER||9007199254740991}},t={};function e(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return u[r](o,o.exports,e),o.exports}e.n=u=>{var t=u&&u.__esModule?()=>u.default:()=>u;return e.d(t,{a:t}),t},e.d=(u,t)=>{for(var r in t)e.o(t,r)&&!e.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:t[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(u){if("object"==typeof window)return window}}(),e.o=(u,t)=>Object.prototype.hasOwnProperty.call(u,t),(()=>{"use strict";var u=e(9116);function t(t,e,r){let n=0,o=[];for(;-1!==n;)n=t.indexOf(e,n),-1!==n&&(o.push({start:n,end:n+e.length,errors:0}),n+=1);return o.length>0?o:(0,u.c)(t,e,r)}function r(u,e){return 0===e.length||0===u.length?0:1-t(u,e,e.length)[0].errors/e.length}function n(u){switch(u.nodeType){case Node.ELEMENT_NODE:case Node.TEXT_NODE:return u.textContent.length;default:return 0}}function o(u){let t=u.previousSibling,e=0;for(;t;)e+=n(t),t=t.previousSibling;return e}function D(u){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;rn?(D.push({node:i,offset:n-F}),n=e.shift()):(a=o.nextNode(),F+=i.data.length);for(;void 0!==n&&i&&F===n;)D.push({node:i,offset:i.data.length}),n=e.shift();if(void 0!==n)throw new RangeError("Offset exceeds text length");return D}class i{constructor(u,t){if(t<0)throw new Error("Offset is invalid");this.element=u,this.offset=t}relativeTo(u){if(!u.contains(this.element))throw new Error("Parent is not an ancestor of current element");let t=this.element,e=this.offset;for(;t!==u;)e+=o(t),t=t.parentElement;return new i(t,e)}resolve(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{return D(this.element,this.offset)[0]}catch(t){if(0===this.offset&&void 0!==u.direction){const e=document.createTreeWalker(this.element.getRootNode(),NodeFilter.SHOW_TEXT);e.currentNode=this.element;const r=1===u.direction,n=r?e.nextNode():e.previousNode();if(!n)throw t;return{node:n,offset:r?0:n.data.length}}throw t}}static fromCharOffset(u,t){switch(u.nodeType){case Node.TEXT_NODE:return i.fromPoint(u,t);case Node.ELEMENT_NODE:return new i(u,t);default:throw new Error("Node is not an element or text node")}}static fromPoint(u,t){switch(u.nodeType){case Node.TEXT_NODE:{if(t<0||t>u.data.length)throw new Error("Text node offset is out of range");if(!u.parentElement)throw new Error("Text node has no parent");const e=o(u)+t;return new i(u.parentElement,e)}case Node.ELEMENT_NODE:{if(t<0||t>u.childNodes.length)throw new Error("Child node offset is out of range");let e=0;for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:{};this.root=u,this.exact=t,this.context=e}static fromRange(u,t){const e=u.textContent,r=a.fromRange(t).relativeTo(u),n=r.start.offset,o=r.end.offset;return new l(u,e.slice(n,o),{prefix:e.slice(Math.max(0,n-32),n),suffix:e.slice(o,Math.min(e.length,o+32))})}static fromSelector(u,t){const{prefix:e,suffix:r}=t;return new l(u,t.exact,{prefix:e,suffix:r})}toSelector(){return{type:"TextQuoteSelector",exact:this.exact,prefix:this.context.prefix,suffix:this.context.suffix}}toRange(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.toPositionAnchor(u).toRange()}toPositionAnchor(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=function(u,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===e.length)return null;const o=Math.min(256,e.length/2),D=t(u,e,o);if(0===D.length)return null;const i=t=>{const o=1-t.errors/e.length,D=n.prefix?r(u.slice(Math.max(0,t.start-n.prefix.length),t.start),n.prefix):1,i=n.suffix?r(u.slice(t.end,t.end+n.suffix.length),n.suffix):1;let a=1;return"number"==typeof n.hint&&(a=1-Math.abs(t.start-n.hint)/u.length),(50*o+20*D+20*i+2*a)/92},a=D.map((u=>({start:u.start,end:u.end,score:i(u)})));return a.sort(((u,t)=>t.score-u.score)),a[0]}(this.root.textContent,this.exact,c(c({},this.context),{},{hint:u.hint}));if(!e)throw new Error("Quote not found");return new s(this.root,e.start,e.end)}}var f=e(3732);e.n(f)().shim();const p=!0;function E(){if(!readium.link)return null;const u=readium.link.href;if(!u)return null;const t=function(){const u=window.getSelection();if(!u)return;if(u.isCollapsed)return;const t=u.toString();if(0===t.trim().replace(/\n/g," ").replace(/\s\s+/g," ").length)return;if(!u.anchorNode||!u.focusNode)return;const e=1===u.rangeCount?u.getRangeAt(0):function(u,t,e,r){const n=new Range;if(n.setStart(u,t),n.setEnd(e,r),!n.collapsed)return n;A(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");const o=new Range;if(o.setStart(e,r),o.setEnd(u,t),!o.collapsed)return A(">>> createOrderedRange RANGE REVERSE OK."),n;A(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!")}(u.anchorNode,u.anchorOffset,u.focusNode,u.focusOffset);if(!e||e.collapsed)return void A("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");const r=document.body.textContent,n=a.fromRange(e).relativeTo(document.body),o=n.start.offset,D=n.end.offset;let i=r.slice(Math.max(0,o-200),o),F=i.search(/(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA802\uA806\uA80B\uA823-\uA83F\uA874-\uA881\uA8B4-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF-\uA909\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9D0-\uA9DF\uA9E5\uA9F0-\uA9F9\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\u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\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\u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uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/g);-1!==F&&(i=i.slice(F+1));let c=r.slice(D,Math.min(r.length,D+200)),s=Array.from(c.matchAll(/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC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A1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\0-@\[-`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07C9\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u088F-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09EF\u09F2-\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B70\u0B72-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C62-\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDC\u0CDF\u0CE2-\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57-\u0D5E\u0D62-\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0EDB\u0EE0-\u0EFF\u0F01-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u1040-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16F0\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u194F\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19FF\u1A17-\u1A1F\u1A55-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BFF\u1C24-\u1C4C\u1C50-\u1C59\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u2182\u2185-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u3004\u3007-\u3030\u3036-\u303A\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA620-\uA629\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6E6-\uA716\uA720\uA721\uA789\uA78A\uA7CB-\uA7CF\uA7D2\uA7D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uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC00-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80E-\uD810\uD812-\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD834\uD836\uD83C-\uD83F\uD87C\uD87D\uD87F\uD889-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F-\uDE6F\uDEBF-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC-\uDFFF]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5-\uDCFF\uDD44-\uDD4A\uDD4C-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g)).pop();return void 0!==s&&s.index>1&&(c=c.slice(0,s.index+1)),{highlight:t,before:i,after:c}}();return t?{href:u,text:t,rect:function(){try{let u=window.getSelection();if(!u)return;return M(u.getRangeAt(0).getBoundingClientRect())}catch(u){return I(u),null}}()}:null}function A(){p&&T.apply(null,arguments)}window.addEventListener("error",(function(u){webkit.messageHandlers.logError.postMessage({message:u.message,filename:u.filename,line:u.lineno})}),!1),window.addEventListener("load",(function(){new ResizeObserver((()=>{!function(){const u="readium-virtual-page";var t=document.getElementById(u);if(v()||2!=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("column-count"))){var e;null===(e=t)||void 0===e||e.remove()}else{var r=document.scrollingElement.scrollWidth/window.innerWidth;Math.round(2*r)/2%1>.1&&(t?t.remove():((t=document.createElement("div")).setAttribute("id",u),t.style.breakBefore="column",t.innerHTML="​",document.body.appendChild(t)))}}(),m()})).observe(document.body),window.addEventListener("orientationchange",(function(){b(),function(){if(!v()){var u=S(window.scrollX+1);document.scrollingElement.scrollLeft=u}}()})),b()}),!1);var C,y,d=0,h=0,B=!1,g=0;function m(){h=window.scrollY/document.scrollingElement.scrollHeight,d=Math.abs(window.scrollX/document.scrollingElement.scrollWidth),0!==document.scrollingElement.scrollWidth&&0!==document.scrollingElement.scrollHeight&&(B||window.requestAnimationFrame((function(){var u;u=(v()?h:d).toString(),webkit.messageHandlers.progressionChanged.postMessage(u),B=!1})),B=!0)}function b(){g=0===window.orientation||180==window.orientation?screen.width:screen.height}function v(){return"readium-scroll-on"==document.documentElement.style.getPropertyValue("--USER__view").trim()}function w(u){return v()?document.scrollingElement.scrollTop=u.top+window.scrollY:document.scrollingElement.scrollLeft=S(u.left+window.scrollX),!0}function x(u){var t=window.scrollX,e=window.innerWidth;return document.scrollingElement.scrollLeft=u,Math.abs(t-u)/e>.01}function S(u){var t=u+1;return t-t%g}function O(u){try{let r=u.locations,n=u.text;var t;if(n&&n.highlight)return r&&r.cssSelector&&(t=document.querySelector(r.cssSelector)),t||(t=document.body),new l(t,n.highlight,{prefix:n.before,suffix:n.after}).toRange();if(r){var e=null;if(!e&&r.cssSelector&&(e=document.querySelector(r.cssSelector)),!e&&r.fragments)for(const u of r.fragments)if(e=document.getElementById(u))break;if(e){let u=document.createRange();return u.setStartBefore(e),u.setEndAfter(e),u}}}catch(u){I(u)}return null}function j(u,t){null===t?P(u):document.documentElement.style.setProperty(u,t,"important")}function P(u){document.documentElement.style.removeProperty(u)}function T(){var u=Array.prototype.slice.call(arguments).join(" ");webkit.messageHandlers.log.postMessage(u)}function R(u){I(new Error(u))}function I(u){webkit.messageHandlers.logError.postMessage({message:u.message})}window.addEventListener("scroll",m),document.addEventListener("selectionchange",(50,C=function(){webkit.messageHandlers.selectionChanged.postMessage(E())},function(){var u=this,t=arguments;clearTimeout(y),y=setTimeout((function(){C.apply(u,t),y=null}),50)}));const N=!1;function M(u){let t=k({x:u.left,y:u.top});const e=u.width,r=u.height,n=t.x,o=t.y;return{width:e,height:r,left:n,top:o,right:n+e,bottom:o+r}}function k(u){if(!frameElement)return u;let t=frameElement.getBoundingClientRect();if(!t)return u;let e=window.top.document.documentElement;return{x:u.x+t.x+e.scrollLeft,y:u.y+t.y+e.scrollTop}}function L(u,t){let e=u.getClientRects();const r=[];for(const u of e)r.push({bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width});const n=z(function(u,t){const e=new Set(u);for(const t of u)if(t.width>1&&t.height>1){for(const r of u)if(t!==r&&e.has(r)&&W(r,t,1)){q("CLIENT RECT: remove contained"),e.delete(t);break}}else q("CLIENT RECT: remove tiny"),e.delete(t);return Array.from(e)}($(r,1,t)));for(let u=n.length-1;u>=0;u--){const t=n[u];if(!(t.width*t.height>4)){if(!(n.length>1)){q("CLIENT RECT: remove small, but keep otherwise empty!");break}q("CLIENT RECT: remove small"),n.splice(u,1)}}return q("CLIENT RECT: reduced ".concat(r.length," --\x3e ").concat(n.length)),n}function $(u,t,e){for(let r=0;ru!==o&&u!==D)),n=_(o,D);return r.push(n),$(r,t,e)}}return u}function _(u,t){const e=Math.min(u.left,t.left),r=Math.max(u.right,t.right),n=Math.min(u.top,t.top),o=Math.max(u.bottom,t.bottom);return{bottom:o,height:o-n,left:e,right:r,top:n,width:r-e}}function W(u,t,e){return U(u,t.left,t.top,e)&&U(u,t.right,t.top,e)&&U(u,t.left,t.bottom,e)&&U(u,t.right,t.bottom,e)}function U(u,t,e,r){return(u.leftt||H(u.right,t,r))&&(u.tope||H(u.bottom,e,r))}function z(u){for(let t=0;tu!==t));return Array.prototype.push.apply(D,e),z(D)}}else q("replaceOverlapingRects rect1 === rect2 ??!")}return u}function G(u,t){const e=function(u,t){const e=Math.max(u.left,t.left),r=Math.min(u.right,t.right),n=Math.max(u.top,t.top),o=Math.min(u.bottom,t.bottom);return{bottom:o,height:Math.max(0,o-n),left:e,right:r,top:n,width:Math.max(0,r-e)}}(t,u);if(0===e.height||0===e.width)return[u];const r=[];{const t={bottom:u.bottom,height:0,left:u.left,right:e.left,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:e.top,height:0,left:e.left,right:e.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.left,right:e.right,top:e.bottom,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}{const t={bottom:u.bottom,height:0,left:e.right,right:u.right,top:u.top,width:0};t.width=t.right-t.left,t.height=t.bottom-t.top,0!==t.height&&0!==t.width&&r.push(t)}return r}function V(u,t,e){return(u.left=0&&H(u.left,t.right,e))&&(t.left=0&&H(t.left,u.right,e))&&(u.top=0&&H(u.top,t.bottom,e))&&(t.top=0&&H(t.top,u.bottom,e))}function H(u,t,e){return Math.abs(u-t)<=e}function q(){N&&T.apply(null,arguments)}var X,Y=[],K="ResizeObserver loop completed with undelivered notifications.";!function(u){u.BORDER_BOX="border-box",u.CONTENT_BOX="content-box",u.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(X||(X={}));var J,Z=function(u){return Object.freeze(u)},Q=function(u,t){this.inlineSize=u,this.blockSize=t,Z(this)},uu=function(){function u(u,t,e,r){return this.x=u,this.y=t,this.width=e,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Z(this)}return u.prototype.toJSON=function(){var u=this;return{x:u.x,y:u.y,top:u.top,right:u.right,bottom:u.bottom,left:u.left,width:u.width,height:u.height}},u.fromRect=function(t){return new u(t.x,t.y,t.width,t.height)},u}(),tu=function(u){return u instanceof SVGElement&&"getBBox"in u},eu=function(u){if(tu(u)){var t=u.getBBox(),e=t.width,r=t.height;return!e&&!r}var n=u,o=n.offsetWidth,D=n.offsetHeight;return!(o||D||u.getClientRects().length)},ru=function(u){var t;if(u instanceof Element)return!0;var e=null===(t=null==u?void 0:u.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(e&&u instanceof e.Element)},nu="undefined"!=typeof window?window:{},ou=new WeakMap,Du=/auto|scroll/,iu=/^tb|vertical/,au=/msie|trident/i.test(nu.navigator&&nu.navigator.userAgent),Fu=function(u){return parseFloat(u||"0")},cu=function(u,t,e){return void 0===u&&(u=0),void 0===t&&(t=0),void 0===e&&(e=!1),new Q((e?t:u)||0,(e?u:t)||0)},su=Z({devicePixelContentBoxSize:cu(),borderBoxSize:cu(),contentBoxSize:cu(),contentRect:new uu(0,0,0,0)}),lu=function(u,t){if(void 0===t&&(t=!1),ou.has(u)&&!t)return ou.get(u);if(eu(u))return ou.set(u,su),su;var e=getComputedStyle(u),r=tu(u)&&u.ownerSVGElement&&u.getBBox(),n=!au&&"border-box"===e.boxSizing,o=iu.test(e.writingMode||""),D=!r&&Du.test(e.overflowY||""),i=!r&&Du.test(e.overflowX||""),a=r?0:Fu(e.paddingTop),F=r?0:Fu(e.paddingRight),c=r?0:Fu(e.paddingBottom),s=r?0:Fu(e.paddingLeft),l=r?0:Fu(e.borderTopWidth),f=r?0:Fu(e.borderRightWidth),p=r?0:Fu(e.borderBottomWidth),E=s+F,A=a+c,C=(r?0:Fu(e.borderLeftWidth))+f,y=l+p,d=i?u.offsetHeight-y-u.clientHeight:0,h=D?u.offsetWidth-C-u.clientWidth:0,B=n?E+C:0,g=n?A+y:0,m=r?r.width:Fu(e.width)-B-h,b=r?r.height:Fu(e.height)-g-d,v=m+E+h+C,w=b+A+d+y,x=Z({devicePixelContentBoxSize:cu(Math.round(m*devicePixelRatio),Math.round(b*devicePixelRatio),o),borderBoxSize:cu(v,w,o),contentBoxSize:cu(m,b,o),contentRect:new uu(s,a,m,b)});return ou.set(u,x),x},fu=function(u,t,e){var r=lu(u,e),n=r.borderBoxSize,o=r.contentBoxSize,D=r.devicePixelContentBoxSize;switch(t){case X.DEVICE_PIXEL_CONTENT_BOX:return D;case X.BORDER_BOX:return n;default:return o}},pu=function(u){var t=lu(u);this.target=u,this.contentRect=t.contentRect,this.borderBoxSize=Z([t.borderBoxSize]),this.contentBoxSize=Z([t.contentBoxSize]),this.devicePixelContentBoxSize=Z([t.devicePixelContentBoxSize])},Eu=function(u){if(eu(u))return 1/0;for(var t=0,e=u.parentNode;e;)t+=1,e=e.parentNode;return t},Au=function(){var u=1/0,t=[];Y.forEach((function(e){if(0!==e.activeTargets.length){var r=[];e.activeTargets.forEach((function(t){var e=new pu(t.target),n=Eu(t.target);r.push(e),t.lastReportedSize=fu(t.target,t.observedBox),nu?t.activeTargets.push(e):t.skippedTargets.push(e))}))}))},yu=[],du=0,hu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gu=function(u){return void 0===u&&(u=0),Date.now()+u},mu=!1,bu=function(){function u(){var u=this;this.stopped=!0,this.listener=function(){return u.schedule()}}return u.prototype.run=function(u){var t=this;if(void 0===u&&(u=250),!mu){mu=!0;var e,r=gu(u);e=function(){var e=!1;try{e=function(){var u,t=0;for(Cu(t);Y.some((function(u){return u.activeTargets.length>0}));)t=Au(),Cu(t);return Y.some((function(u){return u.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?u=new ErrorEvent("error",{message:K}):((u=document.createEvent("Event")).initEvent("error",!1,!1),u.message=K),window.dispatchEvent(u)),t>0}()}finally{if(mu=!1,u=r-gu(),!du)return;e?t.run(1e3):u>0?t.run(u):t.start()}},function(u){if(!J){var t=0,e=document.createTextNode("");new MutationObserver((function(){return yu.splice(0).forEach((function(u){return u()}))})).observe(e,{characterData:!0}),J=function(){e.textContent="".concat(t?t--:t++)}}yu.push(u),J()}((function(){requestAnimationFrame(e)}))}},u.prototype.schedule=function(){this.stop(),this.run()},u.prototype.observe=function(){var u=this,t=function(){return u.observer&&u.observer.observe(document.body,hu)};document.body?t():nu.addEventListener("DOMContentLoaded",t)},u.prototype.start=function(){var u=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bu.forEach((function(t){return nu.addEventListener(t,u.listener,!0)})))},u.prototype.stop=function(){var u=this;this.stopped||(this.observer&&this.observer.disconnect(),Bu.forEach((function(t){return nu.removeEventListener(t,u.listener,!0)})),this.stopped=!0)},u}(),vu=new bu,wu=function(u){!du&&u>0&&vu.start(),!(du+=u)&&vu.stop()},xu=function(){function u(u,t){this.target=u,this.observedBox=t||X.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return u.prototype.isActive=function(){var u,t=fu(this.target,this.observedBox,!0);return u=this.target,tu(u)||function(u){switch(u.tagName){case"INPUT":if("image"!==u.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(u)||"inline"!==getComputedStyle(u).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},u}(),Su=function(u,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=u,this.callback=t},Ou=new WeakMap,ju=function(u,t){for(var e=0;e=0&&(n&&Y.splice(Y.indexOf(e),1),e.observationTargets.splice(r,1),wu(-1))},u.disconnect=function(u){var t=this,e=Ou.get(u);e.observationTargets.slice().forEach((function(e){return t.unobserve(u,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},u}(),Tu=function(){function u(u){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof u)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Pu.connect(this,u)}return u.prototype.observe=function(u,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ru(u))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Pu.observe(this,u,t)},u.prototype.unobserve=function(u){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ru(u))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Pu.unobserve(this,u)},u.prototype.disconnect=function(){Pu.disconnect(this)},u.toString=function(){return"function ResizeObserver () { [polyfill code] }"},u}();const Ru=window.ResizeObserver||Tu;let Iu=new Map,Nu=new Map;var Mu=0;function ku(u){return u&&u instanceof Element}window.addEventListener("load",(function(){const u=document.body;var t={width:0,height:0};new Ru((()=>{t.width===u.clientWidth&&t.height===u.clientHeight||(t={width:u.clientWidth,height:u.clientHeight},Nu.forEach((function(u){u.requestLayout()})))})).observe(u)}),!1);const Lu={NONE:"",DESCENDANT:" ",CHILD:" > "},$u={id:"id",class:"class",tag:"tag",attribute:"attribute",nthchild:"nthchild",nthoftype:"nthoftype"},_u="CssSelectorGenerator";function Wu(u="unknown problem",...t){console.warn(`${_u}: ${u}`,...t)}const Uu={selectors:[$u.id,$u.class,$u.tag,$u.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function zu(u){return u instanceof RegExp}function Gu(u){return["string","function"].includes(typeof u)||zu(u)}function Vu(u){return Array.isArray(u)?u.filter(Gu):[]}function Hu(u){const t=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return function(u){return u instanceof Node}(u)&&t.includes(u.nodeType)}function qu(u,t){if(Hu(u))return u.contains(t)||Wu("element root mismatch","Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will nto work as intended."),u;const e=t.getRootNode({composed:!1});return Hu(e)?(e!==document&&Wu("shadow root inferred","You did not provide a root and the element is a child of Shadow DOM. This will produce a selector using ShadowRoot as a root. If you plan to use the selector using document as a root (e.g. `document.querySelector`), it will not work as intended."),e):t.ownerDocument.querySelector(":root")}function Xu(u){return"number"==typeof u?u:Number.POSITIVE_INFINITY}function Yu(u=[]){const[t=[],...e]=u;return 0===e.length?t:e.reduce(((u,t)=>u.filter((u=>t.includes(u)))),t)}function Ku(u){return[].concat(...u)}function Ju(u){const t=u.map((u=>{if(zu(u))return t=>u.test(t);if("function"==typeof u)return t=>{const e=u(t);return"boolean"!=typeof e?(Wu("pattern matcher function invalid","Provided pattern matching function does not return boolean. It's result will be ignored.",u),!1):e};if("string"==typeof u){const t=new RegExp("^"+u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return u=>t.test(u)}return Wu("pattern matcher invalid","Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.",u),()=>!1}));return u=>t.some((t=>t(u)))}function Zu(u,t,e){const r=Array.from(qu(e,u[0]).querySelectorAll(t));return r.length===u.length&&u.every((u=>r.includes(u)))}function Qu(u,t){t=null!=t?t:function(u){return u.ownerDocument.querySelector(":root")}(u);const e=[];let r=u;for(;ku(r)&&r!==t;)e.push(r),r=r.parentElement;return e}function ut(u,t){return Yu(u.map((u=>Qu(u,t))))}const tt=new RegExp(["^$","\\s"].join("|")),et=new RegExp(["^$"].join("|")),rt=[$u.nthoftype,$u.tag,$u.id,$u.class,$u.attribute,$u.nthchild],nt=Ju(["class","id","ng-*"]);function ot({name:u}){return`[${u}]`}function Dt({name:u,value:t}){return`[${u}='${t}']`}function it({nodeName:u,nodeValue:t}){return{name:(e=u,e.replace(/:/g,"\\:")),value:ht(t)};var e}function at(u){const t=Array.from(u.attributes).filter((t=>function({nodeName:u},t){const e=t.tagName.toLowerCase();return!(["input","option"].includes(e)&&"value"===u||nt(u))}(t,u))).map(it);return[...t.map(ot),...t.map(Dt)]}function Ft(u){return(u.getAttribute("class")||"").trim().split(/\s+/).filter((u=>!et.test(u))).map((u=>`.${ht(u)}`))}function ct(u){const t=u.getAttribute("id")||"",e=`#${ht(t)}`,r=u.getRootNode({composed:!1});return!tt.test(t)&&Zu([u],e,r)?[e]:[]}function st(u){const t=u.parentNode;if(t){const e=Array.from(t.childNodes).filter(ku).indexOf(u);if(e>-1)return[`:nth-child(${e+1})`]}return[]}function lt(u){return[ht(u.tagName.toLowerCase())]}function ft(u){const t=[...new Set(Ku(u.map(lt)))];return 0===t.length||t.length>1?[]:[t[0]]}function pt(u){const t=ft([u])[0],e=u.parentElement;if(e){const r=Array.from(e.children).filter((u=>u.tagName.toLowerCase()===t)),n=r.indexOf(u);if(n>-1)return[`${t}:nth-of-type(${n+1})`]}return[]}function Et(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){return Array.from(function*(u=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){let e=0,r=Ct(1);for(;r.length<=u.length&&eu[t]));yield t,r=At(r,u.length-1)}}(u,{maxResults:t}))}function At(u=[],t=0){const e=u.length;if(0===e)return[];const r=[...u];r[e-1]+=1;for(let u=e-1;u>=0;u--)if(r[u]>t){if(0===u)return Ct(e+1);r[u-1]++,r[u]=r[u-1]+1}return r[e-1]>t?Ct(e+1):r}function Ct(u=1){return Array.from(Array(u).keys())}const yt=":".charCodeAt(0).toString(16).toUpperCase(),dt=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function ht(u=""){var t,e;return null!==(e=null===(t=null===CSS||void 0===CSS?void 0:CSS.escape)||void 0===t?void 0:t.call(CSS,u))&&void 0!==e?e:function(u=""){return u.split("").map((u=>":"===u?`\\${yt} `:dt.test(u)?`\\${u}`:escape(u).replace(/%/g,"\\"))).join("")}(u)}const Bt={tag:ft,id:function(u){return 0===u.length||u.length>1?[]:ct(u[0])},class:function(u){return Yu(u.map(Ft))},attribute:function(u){return Yu(u.map(at))},nthchild:function(u){return Yu(u.map(st))},nthoftype:function(u){return Yu(u.map(pt))}},gt={tag:lt,id:ct,class:Ft,attribute:at,nthchild:st,nthoftype:pt};function mt(u){return u.includes($u.tag)||u.includes($u.nthoftype)?[...u]:[...u,$u.tag]}function bt(u={}){const t=[...rt];return u[$u.tag]&&u[$u.nthoftype]&&t.splice(t.indexOf($u.tag),1),t.map((t=>{return(r=u)[e=t]?r[e].join(""):"";var e,r})).join("")}function vt(u,t,e="",r){const n=function(u,t){return""===t?u:function(u,t){return[...u.map((u=>t+Lu.DESCENDANT+u)),...u.map((u=>t+Lu.CHILD+u))]}(u,t)}(function(u,t,e){const r=function(u,t){const{blacklist:e,whitelist:r,combineWithinSelector:n,maxCombinations:o}=t,D=Ju(e),i=Ju(r);return function(u){const{selectors:t,includeTag:e}=u,r=[].concat(t);return e&&!r.includes("tag")&&r.push("tag"),r}(t).reduce(((t,e)=>{const r=function(u,t){var e;return(null!==(e=Bt[t])&&void 0!==e?e:()=>[])(u)}(u,e),a=function(u=[],t,e){return u.filter((u=>e(u)||!t(u)))}(r,D,i),F=function(u=[],t){return u.sort(((u,e)=>{const r=t(u),n=t(e);return r&&!n?-1:!r&&n?1:0}))}(a,i);return t[e]=n?Et(F,{maxResults:o}):F.map((u=>[u])),t}),{})}(u,e),n=function(u,t){return function(u){const{selectors:t,combineBetweenSelectors:e,includeTag:r,maxCandidates:n}=u,o=e?Et(t,{maxResults:n}):t.map((u=>[u]));return r?o.map(mt):o}(t).map((t=>function(u,t){const e={};return u.forEach((u=>{const r=t[u];r.length>0&&(e[u]=r)})),function(u={}){let t=[];return Object.entries(u).forEach((([u,e])=>{t=e.flatMap((e=>0===t.length?[{[u]:e}]:t.map((t=>Object.assign(Object.assign({},t),{[u]:e})))))})),t}(e).map(bt)}(t,u))).filter((u=>u.length>0))}(r,e),o=Ku(n);return[...new Set(o)]}(u,r.root,r),e);for(const t of n)if(Zu(u,t,r.root))return t;return null}function wt(u){return{value:u,include:!1}}function xt({selectors:u,operator:t}){let e=[...rt];u[$u.tag]&&u[$u.nthoftype]&&(e=e.filter((u=>u!==$u.tag)));let r="";return e.forEach((t=>{(u[t]||[]).forEach((({value:u,include:t})=>{t&&(r+=u)}))})),t+r}function St(u){return[":root",...Qu(u).reverse().map((u=>{const t=function(u,t,e=Lu.NONE){const r={};return t.forEach((t=>{Reflect.set(r,t,function(u,t){return gt[t](u)}(u,t).map(wt))})),{element:u,operator:e,selectors:r}}(u,[$u.nthchild],Lu.CHILD);return t.selectors.nthchild.forEach((u=>{u.include=!0})),t})).map(xt)].join("")}function Ot(u,t={}){const e=function(u){(u instanceof NodeList||u instanceof HTMLCollection)&&(u=Array.from(u));const t=(Array.isArray(u)?u:[u]).filter(ku);return[...new Set(t)]}(u),r=function(u,t={}){const e=Object.assign(Object.assign({},Uu),t);return{selectors:(r=e.selectors,Array.isArray(r)?r.filter((u=>{return t=$u,e=u,Object.values(t).includes(e);var t,e})):[]),whitelist:Vu(e.whitelist),blacklist:Vu(e.blacklist),root:qu(e.root,u),combineWithinSelector:!!e.combineWithinSelector,combineBetweenSelectors:!!e.combineBetweenSelectors,includeTag:!!e.includeTag,maxCombinations:Xu(e.maxCombinations),maxCandidates:Xu(e.maxCandidates)};var r}(e[0],t);let n="",o=r.root;function D(){return function(u,t,e="",r){if(0===u.length)return null;const n=[u.length>1?u:[],...ut(u,t).map((u=>[u]))];for(const u of n){const t=vt(u,0,e,r);if(t)return{foundElements:u,selector:t}}return null}(e,o,n,r)}let i=D();for(;i;){const{foundElements:u,selector:t}=i;if(Zu(e,t,r.root))return t;o=u[0],n=t,i=D()}return e.length>1?e.map((u=>Ot(u,r))).join(", "):function(u){return u.map(St).join(", ")}(e)}function jt(u){return null==u?null:-1!==["a","audio","button","canvas","details","input","label","option","select","submit","textarea","video"].indexOf(u.nodeName.toLowerCase())||u.hasAttribute("contenteditable")&&"false"!=u.getAttribute("contenteditable").toLowerCase()?u.outerHTML:u.parentElement?jt(u.parentElement):null}function Pt(u){for(var t=0;t0&&t.top0&&t.left{Nt(u)||(Mt(u),kt(u,"keydown"))})),window.addEventListener("keyup",(u=>{Nt(u)||(Mt(u),kt(u,"keyup"))})),e.g.readium={scrollToId:function(u){let t=document.getElementById(u);return!!t&&(w(t.getBoundingClientRect()),!0)},scrollToPosition:function(u,t){if(console.log("ScrollToPosition"),u<0||u>1)console.log("InvalidPosition");else if(v()){let t=document.scrollingElement.scrollHeight*u;document.scrollingElement.scrollTop=t}else{let e=document.scrollingElement.scrollWidth*u*("rtl"==t?-1:1);document.scrollingElement.scrollLeft=S(e)}},scrollToLocator:function(u){let t=O(u);return!!t&&function(u){return w(u.getBoundingClientRect())}(t)},scrollLeft:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX-r,o=t?-(e-r):0;return x(Math.max(n,o))},scrollRight:function(u){var t="rtl"==u,e=document.scrollingElement.scrollWidth,r=window.innerWidth,n=window.scrollX+r,o=t?0:e-r;return x(Math.min(n,o))},setCSSProperties:function(u){for(const t in u)j(t,u[t])},setProperty:j,removeProperty:P,registerDecorationTemplates:function(u){var t="";for(const[e,r]of Object.entries(u))Iu.set(e,r),r.stylesheet&&(t+=r.stylesheet+"\n");if(t){let u=document.createElement("style");u.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(u)}},getDecorations:function(u){var t=Nu.get(u);return t||(t=function(u,t){var e=[],r=0,n=null,o=!1;function D(t){let n=u+"-"+r++,o=O(t.locator);if(!o)return void T("Can't locate DOM range for decoration",t);let D={id:n,decoration:t,range:o};e.push(D),a(D)}function i(u){let t=e.findIndex((t=>t.decoration.id===u));if(-1===t)return;let r=e[t];e.splice(t,1),r.clickableElements=null,r.container&&(r.container.remove(),r.container=null)}function a(e){let r=(n||((n=document.createElement("div")).setAttribute("id",u),n.setAttribute("data-group",t),n.style.setProperty("pointer-events","none"),requestAnimationFrame((function(){null!=n&&document.body.append(n)}))),n),o=Iu.get(e.decoration.style);if(!o)return void R("Unknown decoration style: ".concat(e.decoration.style));let D=document.createElement("div");D.setAttribute("id",e.id),D.setAttribute("data-style",e.decoration.style),D.style.setProperty("pointer-events","none");let i=window.innerWidth,a=parseInt(getComputedStyle(document.documentElement).getPropertyValue("column-count")),F=i/(a||1),c=document.scrollingElement,s=c.scrollLeft,l=c.scrollTop;function f(u,t,e){if(u.style.position="absolute","wrap"===o.width)u.style.width="".concat(t.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(t.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("viewport"===o.width){u.style.width="".concat(i,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/i)*i;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}else if("bounds"===o.width)u.style.width="".concat(e.width,"px"),u.style.height="".concat(t.height,"px"),u.style.left="".concat(e.left+s,"px"),u.style.top="".concat(t.top+l,"px");else if("page"===o.width){u.style.width="".concat(F,"px"),u.style.height="".concat(t.height,"px");let e=Math.floor(t.left/F)*F;u.style.left="".concat(e+s,"px"),u.style.top="".concat(t.top+l,"px")}}let p,E=e.range.getBoundingClientRect();try{let u=document.createElement("template");u.innerHTML=e.decoration.element.trim(),p=u.content.firstElementChild}catch(u){return void R('Invalid decoration element "'.concat(e.decoration.element,'": ').concat(u.message))}if("boxes"===o.layout){let u=!0,t=L(e.range,u);t=t.sort(((u,t)=>u.topt.top?1:0));for(let u of t){const t=p.cloneNode(!0);t.style.setProperty("pointer-events","none"),f(t,u,E),D.append(t)}}else if("bounds"===o.layout){const u=p.cloneNode(!0);u.style.setProperty("pointer-events","none"),f(u,E,E),D.append(u)}r.append(D),e.container=D,e.clickableElements=Array.from(D.querySelectorAll("[data-activable='1']")),0===e.clickableElements.length&&(e.clickableElements=Array.from(D.children))}function F(){n&&(n.remove(),n=null)}return{add:D,remove:i,update:function(u){i(u.id),D(u)},clear:function(){F(),e.length=0},items:e,requestLayout:function(){F(),e.forEach((u=>a(u)))},isActivable:function(){return o},setActivable:function(){o=!0}}}("r2-decoration-"+Mu++,u),Nu.set(u,t)),t},findFirstVisibleLocator:function(){const u=Pt(document.body);return{href:"#",type:"application/xhtml+xml",locations:{cssSelector:Ot(u)},text:{highlight:u.textContent}}}},window.readium.isReflowable=!0,webkit.messageHandlers.spreadLoadStarted.postMessage({}),window.addEventListener("load",(function(){window.requestAnimationFrame((function(){webkit.messageHandlers.spreadLoaded.postMessage({})}));let u=document.createElement("meta");u.setAttribute("name","viewport"),u.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"),document.head.appendChild(u)}))})()})(); //# sourceMappingURL=readium-reflowable.js.map \ No newline at end of file diff --git a/Sources/Navigator/EPUB/EPUBReflowableSpreadView.swift b/Sources/Navigator/EPUB/EPUBReflowableSpreadView.swift index e14e46702..a973f6897 100644 --- a/Sources/Navigator/EPUB/EPUBReflowableSpreadView.swift +++ b/Sources/Navigator/EPUB/EPUBReflowableSpreadView.swift @@ -336,6 +336,15 @@ final class EPUBReflowableSpreadView: EPUBSpreadView { previousProgression = progression } progression = newProgression + + setNeedsNotifyPagesDidChange() + } + + private func setNeedsNotifyPagesDidChange() { + // Makes sure we always receive the "ending scroll" event. + // ie. https://stackoverflow.com/a/1857162/1474476 + NSObject.cancelPreviousPerformRequests(withTarget: self, selector: #selector(notifyPagesDidChange), object: nil) + perform(#selector(notifyPagesDidChange), with: nil, afterDelay: 0.3) } @objc private func notifyPagesDidChange() { @@ -370,10 +379,6 @@ final class EPUBReflowableSpreadView: EPUBSpreadView { override func scrollViewDidScroll(_ scrollView: UIScrollView) { super.scrollViewDidScroll(scrollView) - - // Makes sure we always receive the "ending scroll" event. - // ie. https://stackoverflow.com/a/1857162/1474476 - NSObject.cancelPreviousPerformRequests(withTarget: self, selector: #selector(notifyPagesDidChange), object: nil) - perform(#selector(notifyPagesDidChange), with: nil, afterDelay: 0.3) + setNeedsNotifyPagesDidChange() } } diff --git a/Sources/Navigator/EPUB/Scripts/src/utils.js b/Sources/Navigator/EPUB/Scripts/src/utils.js index 9d8f3a113..66778ae66 100644 --- a/Sources/Navigator/EPUB/Scripts/src/utils.js +++ b/Sources/Navigator/EPUB/Scripts/src/utils.js @@ -27,6 +27,7 @@ window.addEventListener( function () { const observer = new ResizeObserver(() => { appendVirtualColumnIfNeeded(); + onScroll(); }); observer.observe(document.body); @@ -79,7 +80,9 @@ function update(position) { webkit.messageHandlers.progressionChanged.postMessage(positionString); } -window.addEventListener("scroll", function () { +window.addEventListener("scroll", onScroll); + +function onScroll() { last_known_scrollY_position = window.scrollY / document.scrollingElement.scrollHeight; // Using Math.abs because for RTL books, the value will be negative. @@ -106,7 +109,7 @@ window.addEventListener("scroll", function () { }); } ticking = true; -}); +} document.addEventListener( "selectionchange", diff --git a/TestApp/Sources/App/AppModule.swift b/TestApp/Sources/App/AppModule.swift index 4b6fc0f03..ef94e9b67 100644 --- a/TestApp/Sources/App/AppModule.swift +++ b/TestApp/Sources/App/AppModule.swift @@ -54,7 +54,7 @@ final class AppModule { opds = OPDSModule(delegate: self) // Set Readium 2's logging minimum level. - ReadiumEnableLog(withMinimumSeverityLevel: .trace) + ReadiumEnableLog(withMinimumSeverityLevel: .warning) } private(set) lazy var aboutViewController: UIViewController = {