!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FBPublication=t():e.FBPublication=t()}(globalThis,(()=>(()=>{var e,t,n,r,o,i={923:(e,t,n)=>{"use strict";function r(e){this._navigator=e||(n.g.navigator?n.g.navigator:window?window.navigator:void 0),this.browser=this._getBrowser(),this.flash=this._getFlash(),this.os=this._getOS(),this.device=this._getDevice(),this.locales=this._getLocales(),this.locale=this.locales?this.locales[0]:void 0}n.d(t,{Z:()=>o}),r.prototype.constructor=r,r.prototype._getBrowser=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t=function(t){const n=e.match(t);return n&&n.length>1&&n[1]||""};let n;const r=/CrOS/.test(e),o=t(/edge?\/(\d+(\.\d+)?)/i),i=o?o>=80?"chromiumEdge":"msedge":null,s=t(/version\/(\d+(\.\d+)?)/i);let a=!1;return/opera|opr/i.test(e)?n={name:"Opera",opera:!0,version:s||t(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?n={name:"Yandex Browser",yandexbrowser:!0,version:s||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(a=!0,n={name:"Windows Phone IE",ie:!0},o?(n[i]=!0,n.version=o):(n.msie=!0,n.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?(n={name:"Internet Explorer",msie:!0,ie:!0,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(e)&&("7.0"===n.version&&"4.0"===t(/(?:trident\/)(\d+(\.\d+)?)/i)&&(n.version="8.0"),"7.0"===n.version&&"5.0"===t(/(?:trident\/)(\d+(\.\d+)?)/i)&&(n.version="9.0"))):/silk/i.test(e)?n={name:"Amazon Silk",silk:!0,version:t(/silk\/(\d+(\.\d+)?)/i)}:r?n={name:"Chrome",chrome:!0,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge?/i.test(e)?(n={name:"Microsoft Edge",version:o},n[i]=!0,n.ie="msedge"===i):/chrome|crios|crmo/i.test(e)?(n={name:"Chrome",chrome:!0,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)},/SamsungBrowser/i.test(e)&&(n.name="Samsung Browser",n.samsung=!0,n.version=t(/SamsungBrowser\/(\d+(\.\d+)?)/i))):n=/seamonkey\//i.test(e)?{name:"SeaMonkey",seamonkey:!0,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?{name:"Firefox",firefox:!0,version:t(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(e)?{name:"PhantomJS",phantom:!0,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?{name:"Safari",safari:!0,version:s}:{other:!0},/FBAN|FBIOS|FB_IAB|FBAV/i.test(e)&&(n.name="Facebook In-App",n.facebook=!0,n.inApp=!0),/\bFB[\w_]+\/(Messenger|MESSENGER)/i.test(e)&&(n.name="Messenger In-App",n.messenger=!0,n.inApp=!0),/\bTwitter/i.test(e)&&(n.name="Twitter In-App",n.twitter=!0,n.inApp=!0),/\bLine\//i.test(e)&&(n.name="Line In-App",n.line=!0,n.inApp=!0),/\bMicroMessenger\//i.test(e)&&(n.name="Wechat In-App",n.wechat=!0,n.inApp=!0),/\bInstagram/i.test(e)&&(n.name="Instagram In-App",n.instagram=!0,n.inApp=!0),a||n.msie||n.msedge||n.chromiumEdge||!/(apple)?webkit/i.test(e)?!n.opera&&/gecko\//i.test(e)&&(n.name=n.name||"Gecko",n.gecko=!0,n.version=n.version||t(/gecko\/(\d+(\.\d+)?)/i)):(n.name=n.name||"Webkit",n.webkit=!0,!n.version&&s&&(n.version=s)),n.name||(n.name="Other"),-1!==e.toLowerCase().indexOf("publisher")&&(n.publisher=!0),n},r.prototype._getFlash=function(){const e="Shockwave Flash",t="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash";let o=null;if(void 0!==this._navigator.plugins&&"object"==typeof this._navigator.plugins[e]){let t=this._navigator.plugins[e].description;!t||void 0!==this._navigator.mimeTypes&&this._navigator.mimeTypes[r]&&!this._navigator.mimeTypes[r].enabledPlugin||(t=t.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),o=[parseInt(t.replace(/^(.*)\..*$/,"$1"),10),parseInt(t.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(t)?parseInt(t.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0])}else if(void 0!==n.g.ActiveXObject)try{const e=new n.g.ActiveXObject(t);if(e){let t=e.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),o=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}}catch(i){}return o},r.prototype._getOS=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t=function(t){const n=e.match(t);return n&&n.length>1&&n[1]||""};let n={name:"Other",other:!0};const r=t(/(ipod|iphone|ipad)/i).toLowerCase(),o="ontouchstart"in document.documentElement&&/macintosh/i.test(e),i=!/like android/i.test(e)&&/android/i.test(e),s=t(/version\/(\d+(\.\d+)?)/i);return r&&!o?n={name:"iOS",version:t(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:o?n={name:"iPadOS",version:t(/version\/(\d+.?\d*.?\d*)\s/i),ios:!0,ipados:!0}:i?n={name:"Android",version:t(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(e)?n={name:"Mac OS",mac:!0}:/windows/i.test(e)?n={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?n={name:"Blackberry",blackberry:!0,version:s||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(e)?(n={name:"WebOS",webos:!0,version:s||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(n.touchpad=!0)):/bada/i.test(e)?n={name:"Bada",bada:!0,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(e)?n={name:"Tizen",tizen:!0,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||s}:/sailfish/i.test(e)?n={name:"Sailfish",sailfish:!0,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)&&/\((mobile|tablet);[^)]*rv:[\d.]+\)/i.test(e)&&(n={name:"Firefox OS",firefoxos:!0}),n},r.prototype._getDevice=function(){const e=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",t={},n=!/like android/i.test(e)&&/android/i.test(e),r=/cros/.test(e);return t.name=e.match(/ipad/)||this.os.ipados?"ipad":e.match(/ipod/)?"ipod":e.match(/iphone/)?"iphone":n?"android":e.match(/windows phone/)?"wphone":e.match(/mobile/)?"mobile":e.match(/mac|win|linux/)||r?"desktop":"other",t[t.name]=!0,t},r.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){const e=[];let t;for(let n=0;n{"use strict";n.d(t,{Z:()=>i});const r=Array.prototype.slice;function o(){}o.prototype.on=function(e,t,n){this._events=this._events||{};return(this._events[e]||(this._events[e]=[])).push({callback:t,context:n||this}),this},o.prototype.once=function(e,t,n){const r=this,o=function(){r.off(e,o),t.apply(this,arguments)};return o._callback=t,this.on(e,o,n)},o.prototype.off=function(e,t,n){let r,o,i;if(n=n||this,!e&&!t&&!n)return this._events={},this;for(const s in this._events)if(this._events.hasOwnProperty(s)&&(i=this._events[s],i)){if(this._events[s]=r=[],t||n)for(let e=0,s=i.length;e{"use strict";function r(e){return"function"==typeof e||!1}n.d(t,{k:()=>o,m:()=>r});const o=Array.isArray||function(e){return"[object Array]"===toString.call(e)}},90:(e,t,n)=>{"use strict";function r(e){let t;return t=e.match(/^#([0-9a-fA-F]{3})$/i),t?(t=t[1],[17*parseInt(t.charAt(0),16),17*parseInt(t.charAt(1),16),17*parseInt(t.charAt(2),16)]):(t=e.match(/^#([0-9a-fA-F]{6})$/i),t?(t=t[1],[parseInt(t.substr(0,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(4,2),16)]):-1!==e.indexOf("rgb")&&(t=e.match(/\d+(\.\d+)?%?/g),t)?t.map((e=>1*e)):[0,0,0])}function o(e){const t=299,n=667,r=114;return(e[0]*t+e[1]*n+e[2]*r)/(t+n+r)/255}n.d(t,{R:()=>o,l:()=>r})},2155:(e,t,n)=>{"use strict";function r(e){return!!(e instanceof Date||e instanceof RegExp)}function o(e){if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function i(e){const t=[];return e.forEach((function(e,n){"object"==typeof e&&null!==e?Array.isArray(e)?t[n]=i(e):r(e)?t[n]=o(e):t[n]=s({},e):t[n]=e})),t}function s(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];const e=arguments[0];let t,n;return Array.prototype.slice.call(arguments,1).forEach((function(a){"object"!=typeof a||Array.isArray(a)||Object.keys(a).forEach((function(l){n=e[l],t=a[l],t===e||("object"!=typeof t||null===t?e[l]=t:Array.isArray(t)?e[l]=i(t):r(t)?e[l]=o(t):"object"!=typeof n||null===n||Array.isArray(n)?e[l]=s({},t):e[l]=s(n,t))}))})),e}n.d(t,{Z:()=>a});const a=s},776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(320);const o=function(){let e;function t(){return e||(this instanceof t?(e=this,void this.unsetCallback()):new t)}return t.prototype.destructor=function(){this.unsetCallback(),(0,r.mf)(this.adapter.destructor)&&this.adapter.destructor()},t.prototype.setAdapter=function(e){const t=this;this.adapter&&(this.adapter.setCallback(null),this.adapter=null),this.adapter=e,this.adapter.setCallback((function(e){t.callback(e)}))},t.prototype.setCallback=function(e){this.callback=e},t.prototype.unsetCallback=function(){this.callback=function(){}},t.prototype.getPathInfo=function(){return this.adapter.getPathInfo()},t.prototype.setPath=function(e){this.adapter.setPath(e)},t.prototype.getShareUrl=function(e,t){return this.adapter.getShareUrl(e,t)},t.prototype.getEmbedUrl=function(e){return this.adapter.getEmbedUrl(e)},t.prototype.getLocalStorage=function(){return this.adapter.getLocalStorage()},t.prototype.getSessionStorage=function(){return this.adapter.getSessionStorage()},t.prototype.translatePath=function(e){const t=[];if((0,r.HD)(e))return this.adapter.translatePath(e);for(let n=0,r=e.length;n{"use strict";function r(){window.requestAnimationFrame((()=>{window.scrollTo(0,-1)}))}n.d(t,{A:()=>r})},5622:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>s,OZ:()=>u,P2:()=>a,QX:()=>h,TV:()=>g,UZ:()=>c,iZ:()=>l,l:()=>p,sO:()=>d,t:()=>f});var r=n(320);function o(e,t){return t=null==t?e.length-1:+t,function(){const n=Math.max(arguments.length-t,0),r=Array(n);let o=0;for(;ot?(r&&(clearTimeout(r),r=null),a=c,s=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(r),a=0,r=o=i=null},c}function l(e){const t=[];for(;e;){if(t.push(e),"html"===e.tagName.toLowerCase())return t;e=e.parentNode}}function c(e){const t=[];for(;e;){if(e.classList&&e.classList[0]&&t.push(e.classList[0]),"html"===e.tagName.toLowerCase())return t;e=e.parentNode}return t}function u(e,t,n,r,o=!1){for(let i=0,s=e.length;i=r[e].left+n||o+n<=r[e].left||i>=r[e].top+n||i+n<=r[e].top)){s=!0;break}a++,3===a&&(a=0,l++),l*n+n>t&&(s=!1)}while(s);return{left:o,top:i}}function f(e,t){if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return e===t;if(e.prototype!==t.prototype)return!1;const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((n=>f(e[n],t[n])))}function g(e){let t,n=e.length;for(;0!==n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e}},7476:(e,t,n)=>{"use strict";let r;n.d(t,{V:()=>i,n:()=>o});const o=e=>{r=e},i=()=>r||n.nc},320:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>s,HD:()=>f,Kn:()=>i,e$:()=>p,hj:()=>g,kE:()=>m,kJ:()=>r.k,mf:()=>r.m,o8:()=>a,sH:()=>b,xb:()=>v});var r=n(5392);const o=Object.prototype.toString;function i(e){const t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return null===e}function a(e){return void 0===e}function l(e){return function(t){return null==t?void 0:t[e]}}const c=Math.pow(2,53)-1,u=l("length"),h=function(e){const t=u(e);return"number"==typeof t&&t>=0&&t<=c};function p(e,t){return null!=e&&hasOwnProperty.call(e,t)}let d=function(e){return"[object Arguments]"===o.call(e)};function f(e){return"[object String]"===o.call(e)}function g(e){return"[object Number]"===o.call(e)}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function v(e){return null==e||(h(e)&&((0,r.k)(e)||f(e)||d(e))?0===e.length:0===Object.keys(e).length)}function b(e){const t=e.toUpperCase();return t&&/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(t)}!function(){d(arguments)||(d=function(e){return p(e,"callee")})}()},1042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7476);function o(e,t=(()=>{}),o=(()=>{}),i){const s=n.g.document.getElementsByTagName("head")[0],a=n.g.document.createElement("script");a.type="text/javascript",a.src=e,(0,r.V)()&&a.setAttribute("nonce",(0,r.V)()),i&&a.setAttribute("crossOrigin",i),a.onload=function(){t(a)},a.onerror=function(e){o(e)},s.appendChild(a)}},924:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,Z:()=>r});const r={READY:1,ERROR:-1,UNREADY:0},o={PAGE_TEXT:0,PAGE_SUBSTRATE:1,THUMBNAIL:2,ZOOM_PAGE_TEXT:10,ZOOM_PAGE_SUBSTRATE:11,SVG:12}},710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=function(){if(n.g.XDomainRequest&&!/MSIE 1/.test(n.g.navigator.userAgent))return new n.g.XDomainRequest;if(n.g.XMLHttpRequest)return new n.g.XMLHttpRequest;throw new Error("Request error")};function o(e,t,n,r,o,i,s){e.open(n,t),e.onerror=function(e){s(e,t)},e.onload=function(){switch(o){case"text":i(e.responseText,null);break;case"json":try{i(JSON.parse(e.responseText),null)}catch(n){s(n,t)}break;default:i(e,null)}},setTimeout((function(){e.send(r)}))}function i({url:e="",method:t="GET",headers:i={},data:s=null,responseType:a="text",callback:l=(()=>{}),errorback:c=(()=>{})}){const u=r();if(!(u instanceof n.g.XMLHttpRequest))return o(u,e,t,s,a,l,c);u.open(t,e,!0),"blob"===a&&(u.responseType=a);for(const n in i){if(!i.hasOwnProperty(n))return;u.setRequestHeader(n,i[n])}const h=function(){c.apply(null,arguments),c=()=>{},l=()=>{}},p=function(){l.apply(null,arguments),l=()=>{},c=()=>{}};u.onerror=function(){h(u.status,e)},u.onreadystatechange=function(){if(4===u.readyState)if(200===u.status){const n=u.response?u.response.length:null;switch(a){case"text":p(u.responseText,n);break;case"json":try{p(JSON.parse(u.responseText),n)}catch(t){h(t,e)}break;default:p(u,n)}}else h(u.status,e)},u.send(s)}},770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});var r=0,o="";function i(e){return d(h(m(e)))}function s(e){return f(h(m(e)))}function a(e,t){return g(h(m(e)),t)}function l(e,t){return d(p(m(e),m(t)))}function c(e,t){return f(p(m(e),m(t)))}function u(e,t,n){return g(p(m(e),m(t)),n)}function h(e){return b(M(v(e),8*e.length))}function p(e,t){var n=v(e);n.length>16&&(n=M(n,8*e.length));for(var r=Array(16),o=Array(16),i=0;i<16;i++)r[i]=909522486^n[i],o[i]=1549556828^n[i];var s=M(r.concat(v(t)),512+8*t.length);return b(M(o.concat(s),768))}function d(e){for(var t,n=r?"0123456789ABCDEF":"0123456789abcdef",o="",i=0;i>>4&15)+n.charAt(15&t);return o}function f(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=e.length,i=0;i8*e.length?n+=o:n+=t.charAt(s>>>6*(3-a)&63);return n}function g(e,t){var n,r,o,i,s=t.length,a=Array(),l=Array(Math.ceil(e.length/2));for(n=0;n0;){for(i=Array(),o=0,n=0;n0||r>0)&&(i[i.length]=r);a[a.length]=o,l=i}var c="";for(n=a.length-1;n>=0;n--)c+=t.charAt(a[n]);var u=Math.ceil(8*e.length/(Math.log(t.length)/Math.log(2)));for(n=c.length;n>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}function v(e){for(var t=Array(e.length>>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}function b(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t}function y(e,t){return e>>>t|e<<32-t}function w(e,t){return e>>>t}function x(e,t,n){return e&t^~e&n}function C(e,t,n){return e&t^e&n^t&n}function k(e){return y(e,2)^y(e,13)^y(e,22)}function S(e){return y(e,6)^y(e,11)^y(e,25)}function _(e){return y(e,7)^y(e,18)^w(e,3)}function A(e){return y(e,17)^y(e,19)^w(e,10)}var I=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function M(e,t){var n,r,o,i,s,a,l,c,u,h,p,d,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,u=0;u>16)+(t>>16)+(n>>16)<<16|65535&n}var P={};P.hex_sha256=i,P.b64_sha256=s,P.any_sha256=a,P.hex_hmac_sha256=l,P.b64_hmac_sha256=c,P.any_hmac_sha256=u;const F=P},8531:(e,t,n)=>{"use strict";n.d(t,{BU:()=>l,Q$:()=>c,_Q:()=>i,m9:()=>a,qQ:()=>s});var r=n(320);const o=[",",";","."," ","?","!","'",'"',"",String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(8211),String.fromCharCode(8212),String.fromCharCode(8722),String.fromCharCode(8209),String.fromCharCode(8208)];function i(e){for(let t=0;t("000"+e).slice(-Math.max((e+"").length,4));function a(e){if(!(0,r.HD)(e)&&!(0,r.hj)(e))return"";const t=document.createElement("textarea");return t.innerHTML=e,t.value}function l(e){let t=e/1048576;return t=t<1?t<.1?(1024*t).toFixed(0)+" KB":t.toFixed(2)+" MB":t<100?t.toFixed(1)+" MB":t.toFixed(0)+" MB",t}function c(e){const t=parseInt(e/3600,10)%24,n=parseInt(e/60,10)%60;let r="";return t&&(r+=t+"h"),n&&(r+=n+"m"),r+=(e%=60)+"s",r}},6313:e=>{var t=function(){"use strict";function e(t,n,r,o){"object"==typeof n&&(r=n.depth,o=n.prototype,n.filter,n=n.circular);var s=[],a=[],l="undefined"!=typeof Buffer;function c(t,r){if(null===t)return null;if(0==r)return t;var u,h;if("object"!=typeof t)return t;if(e.__isArray(t))u=[];else if(e.__isRegExp(t))u=new RegExp(t.source,i(t)),t.lastIndex&&(u.lastIndex=t.lastIndex);else if(e.__isDate(t))u=new Date(t.getTime());else{if(l&&Buffer.isBuffer(t))return u=Buffer.allocUnsafe?Buffer.allocUnsafe(t.length):new Buffer(t.length),t.copy(u),u;void 0===o?(h=Object.getPrototypeOf(t),u=Object.create(h)):(u=Object.create(o),h=o)}if(n){var p=s.indexOf(t);if(-1!=p)return a[p];s.push(t),a.push(u)}for(var d in t){var f;h&&(f=Object.getOwnPropertyDescriptor(h,d)),f&&null==f.set||(u[d]=c(t[d],r-1))}return u}return void 0===n&&(n=!0),void 0===r&&(r=1/0),c(t,r)}function t(e){return Object.prototype.toString.call(e)}function n(e){return"object"==typeof e&&"[object Date]"===t(e)}function r(e){return"object"==typeof e&&"[object Array]"===t(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===t(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=n,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();e.exports&&(e.exports=t)},8168:(e,t,n)=>{var r=n(8874),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var l=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:l}),Object.defineProperty(s[a],"labels",{value:c})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}s.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,s=Math.min(r,o,i),a=Math.max(r,o,i),l=a-s;return a===s?t=0:r===a?t=(o-i)/l:o===a?t=2+(i-r)/l:i===a&&(t=4+(r-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?l/(a+s):l/(2-a-s)),100*n]},s.rgb.hsv=function(e){var t,n,r,o,i,s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),u=c-Math.min(s,a,l),h=function(e){return(c-e)/6/u+.5};return 0===u?o=i=0:(i=u/c,t=h(s),n=h(a),r=h(l),s===c?o=r-n:a===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},s.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},s.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i=1/0;for(var s in r)if(r.hasOwnProperty(s)){var a=u(e,r[s]);a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(e){var t,n,r,o,i,s=e[0]/360,a=e[1]/100,l=e[2]/100;if(0===a)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+a):l+a-l*a),o=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},s.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},s.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-i)*s,n=i*a,[o,100*(n=(n/=(t=(2-i)*a)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,n,r,o,i,s,a,l=e[0]/360,c=e[1]/100,u=e[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),o=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,s=o,a=c;break;case 1:i=o,s=n,a=c;break;case 2:i=c,s=n,a=o;break;case 3:i=c,s=o,a=n;break;case 4:i=o,s=c,a=n;break;case 5:i=n,s=c,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},s.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,s=e[2]/100;return n=-.9689*o+1.8758*i+.0415*s,r=.0557*o+-.204*i+1.057*s,t=(t=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},s.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},s.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),s=Math.min(Math.min(n,r),o),a=i-s;return t=a<=0?0:i===n?(r-o)/a%6:i===r?2+(o-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},s.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,s=i%1,a=1-s,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},s.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2085:(e,t,n)=>{var r=n(8168),o=n(4111),i={};function s(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function a(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o{var r=n(8168);function o(){for(var e={},t=Object.keys(r),n=t.length,o=0;o{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},9375:(e,t,n)=>{var r=n(8874);function o(e){if(e){var t=/^#([a-fA-F0-9]{3})$/,n=/^#([a-fA-F0-9]{6})$/,o=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/(\D+)/,a=[0,0,0],l=1,c=e.match(t);if(c){c=c[1];for(var u=0;u{var r=n(136);function o(e){return function(t,n){var r;"modifier"==n[0].type&&(r=n.shift().value);var o=n[0].value;-1!=o.indexOf("%")?(o=parseInt(o,10)/100,r?"*"!=r&&(o=t[e]()*o):o*="alpha"==e?1:255):o=Number(o),t[e](s(t[e](),o,r))}}function i(e){return function(t,n){var r;"modifier"==n[0].type&&(r=n.shift().value);var o=parseFloat(n[0].value,10);t[e](s(t[e](),o,r))}}function s(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;default:return t}}function a(e,t,n){t.hue();for(var r=t.clone(),o=t.whiteness(),i=t.blackness(),s=n.whiteness(),a=n.blackness();Math.abs(o-s)>1||Math.abs(i-a)>1;){var l=Math.round((s+o)/2),c=Math.round((a+i)/2);r.whiteness(l),r.blackness(c),r.contrast(t)>e?(s=l,a=c):(o=l,i=c)}return r}t.red=o("red"),t.blue=o("blue"),t.green=o("green"),t.alpha=t.a=o("alpha"),t.rgb=function(){},t.hue=t.h=i("hue"),t.saturation=t.s=i("saturation"),t.lightness=t.l=i("lightness"),t.whiteness=t.w=i("whiteness"),t.blackness=t.b=i("blackness"),t.blend=function(e,t){var n=e.alpha();e.alpha(1);var o=new r(t[0].value),i=1-parseInt(t[1].value,10)/100;e.mix(o,i).alpha(n)},t.tint=function(e,n){n.unshift({type:"argument",value:"white"}),t.blend(e,n)},t.shade=function(e,n){n.unshift({type:"argument",value:"black"}),t.blend(e,n)},t.contrast=function(e,t){0==t.length&&t.push({type:"argument",value:"100%"});var n=1-parseInt(t[0].value,10)/100,o=e.luminosity()<.5?new r({h:e.hue(),w:100,b:0}):new r({h:e.hue(),w:0,b:100}),i=o,s=4.5;if(e.contrast(o)>s){var l=(i=a(s,e,o)).alpha();i.alpha(1),i.mix(o,n).alpha(l)}e.hwb(i.hwb())}},1498:(e,t,n)=>{var r=n(5185),o=n(136),i=n(5685),s=n(467);function a(e){var t=e.indexOf("color(");if(-1==t)return e;if(e=e.slice(t),!(e=r("(",")",e)))throw new SyntaxError("Missing closing parenthese for '"+e+"'");return l(i("color("+e.body+")"))+a(e.post)}function l(e){var t=new o("function"==e.arguments[0].type?l(e.arguments[0]):e.arguments[0].value);return e.arguments.slice(1).forEach((function(e){var n=e.name;if(!s[n])throw new Error("Unknown '"+n+"'");e.arguments.forEach((function(e){"function"==e.type&&"color"==e.name&&(e.value=l(e),e.type="color",delete e.name)})),s[n](t,e.arguments)})),t.rgbString()}e.exports=a},1667:(e,t,n)=>{var r=n(1498),o=n(5685);t.O=r},5685:(e,t,n)=>{var r=n(5185),o=n(6383)("css-color-function:parse");function i(e){function t(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n.slice(1)}function n(){t(/^\s+/)}function i(){var e=t(/^\)/);if(e)return o("rparen"),e}function s(){var e=t(/^([\+\-\*])/);if(e){var n={type:"modifier"};return n.value=e[0],o("modifier %o",n),n}}function a(){var e=t(/^([^\)\s]+)/);if(e){var n={type:"number"};return n.value=e[0],o("number %o",n),n}}function l(){for(var e,t=[];e=s()||h()||a();)t.push(e),n();return o("args %o",t),t}function c(){var e=t(/^(\w+)\(/);if(e){n();var r={type:"function"};return r.name=e[0],r.arguments=l(),i(),o("adjuster %o",r),r}}function u(){var e={type:"color"},r=t(/([^\)\s]+)/)[0];-1!=r.indexOf("(")&&(r+=t(/([^\)]*?\))/)[0]);return e.value=r,n(),e}function h(){if(e.match(/^color\(/)){var t=r("(",")",e);if(!t)throw new SyntaxError("Missing closing parenthese for '"+e+"'");if(""===t.body)throw new SyntaxError("color() function cannot be empty");e=t.body,n();var i,s={};for(s.type="function",s.name="color",s.arguments=[h()||u()],o("function arguments %o",s.arguments);i=c();)s.arguments.push(i),n();return e=t.post,n(),o("function %o",s),s}}return"string"!=typeof e&&(e=e.toString()),o("string %s",e),h()}e.exports=i},5185:e=>{e.exports=function(e,t,n){for(var r=0,o={},i=0;i1?n.substring(o.start+e.length,o.end):"",o.post=n.slice(o.end+t.length),o}},136:(e,t,n)=>{var r=n(6313),o=n(2085),i=n(9375),s=function(e){if(e instanceof s)return e;if(!(this instanceof s))return new s(e);var t;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof e)if(t=i.getRgba(e))this.setValues("rgb",t);else if(t=i.getHsla(e))this.setValues("hsl",t);else{if(!(t=i.getHwb(e)))throw new Error('Unable to parse color from string "'+e+'"');this.setValues("hwb",t)}else if("object"==typeof e)if(void 0!==(t=e).r||void 0!==t.red)this.setValues("rgb",t);else if(void 0!==t.l||void 0!==t.lightness)this.setValues("hsl",t);else if(void 0!==t.v||void 0!==t.value)this.setValues("hsv",t);else if(void 0!==t.w||void 0!==t.whiteness)this.setValues("hwb",t);else{if(void 0===t.c&&void 0===t.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(e));this.setValues("cmyk",t)}};s.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){return 1!==this.values.alpha?this.values.hwb.concat([this.values.alpha]):this.values.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){return this.values.rgb.concat([this.values.alpha])},rgbaArrayNormalized:function(){for(var e=this.values.rgb,t=[],n=0;n<3;n++)t[n]=e[n]/255;return t.push(this.values.alpha),t},hslaArray:function(){return this.values.hsl.concat([this.values.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){return this.values.rgb[0]<<16|this.values.rgb[1]<<8|this.values.rgb[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t=(t+e)%360)<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var n=this,r=e,o=void 0===t?.5:t,i=2*o-1,s=n.alpha()-r.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,l=1-a;return this.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue()).alpha(n.alpha()*o+r.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e=new s;return e.values=r(this.values),e}},s.prototype.getValues=function(e){for(var t={},n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)}}function s(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)}function a(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function l(){var e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}function c(){try{return localStorage}catch(e){}}t.log=s,t.formatArgs=i,t.save=a,t.load=l,t.useColors=o,t.storage=c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(5885)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},5885:(e,t,n)=>{"use strict";function r(e){function t(e){for(var t=0,n=0;n{var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,s=365.25*o;function a(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var i=Math.abs(e);return i>=o?u(e,i,o,"day"):i>=r?u(e,i,r,"hour"):i>=n?u(e,i,n,"minute"):i>=t?u(e,i,t,"second"):e+" ms"}function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return a(e);if("number"===n&&isFinite(e))return t.long?c(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5666:e=>{!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c=!0,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=w;var h="suspendedStart",p="suspendedYield",d="executing",f="completed",g={},m={};m[s]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(O([])));b&&b!==r&&o.call(b,s)&&(m=b);var y=S.prototype=C.prototype=Object.create(m);k.prototype=y.constructor=S,S.constructor=k,S[l]=k.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},u.awrap=function(e){return{__await:e}},_(A.prototype),A.prototype[a]=function(){return this},u.AsyncIterator=A,u.async=function(e,t,n,r){var o=new A(w(e,t,n,r));return u.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(y),y[l]="Generator",y[s]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=O,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return a.type="throw",a.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function w(e,t,n,r){var o=t&&t.prototype instanceof C?t:C,i=Object.create(o.prototype),s=new F(r||[]);return i._invoke=I(e,n,s),i}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function k(){}function S(){}function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){function t(n,r,i,s){var a=x(e[n],e,r);if("throw"!==a.type){var l=a.arg,c=l.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,i,s)}),(function(e){t("throw",e,i,s)})):Promise.resolve(c).then((function(e){l.value=e,i(l)}),s)}s(a.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function I(e,t,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=M(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=x(e,t,n);if("normal"===l.type){if(r=n.done?f:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}function M(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=x(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r{"use strict";e.exports=function(e,t,n,r){var o=self||window;try{try{var i;try{i=new o.Blob([e])}catch(c){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),i=i.getBlob()}var s=o.URL||o.webkitURL,a=s.createObjectURL(i),l=new o[t](a,n);return s.revokeObjectURL(a),l}catch(c){return new o[t]("data:application/javascript,".concat(encodeURIComponent(e)),n)}}catch(c){if(!r)throw Error("Inline worker is not supported");return new o[t](r,n)}}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,e=[],a.O=(t,n,r,o)=>{if(!n){var i=1/0;for(u=0;u=o)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>7===e?"js/mc.bundle.js":"./js/"+e+".js",a.miniCssF=e=>"./css/"+e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@flippingbook/publication:",a.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(d);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.v=(e,t,n,r)=>{var o=fetch(a.p+""+n+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r).then((t=>Object.assign(e,t.instance.exports))):o.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,r))).then((t=>Object.assign(e,t.instance.exports)))},a.p="",(()=>{if("undefined"!=typeof document){var e=(e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var s=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}};return i.onerror=i.onload=s,i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;rnew Promise(((r,o)=>{var i=a.miniCssF(n),s=a.p+i;if(t(i,s))return r();e(n,s,null,r,o)})),r={8:0};a.f.miniCss=(e,t)=>{var o={10:1,14:1,18:1};r[e]?t.push(r[e]):0!==r[e]&&o[e]&&t.push(r[e]=n(e).then((()=>{r[e]=0}),(t=>{throw delete r[e],t})))}}})(),(()=>{var e={8:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error,l=n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}};a.l(i,l,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)var u=l(a)}for(t&&t(n);c{"use strict";a.r(l),a.d(l,{HistoryApiAdapter:()=>ke,PageResourceState:()=>Se.Z,PageResourceType:()=>Se.B,Publication:()=>Be,PublicationDetector:()=>ne,SKIN_TEMPLATES:()=>Te,UserAgentDetector:()=>Q.Z,loadScript:()=>Ie.Z});var e=a(8239);function t(){this.id=Math.random(),this.methods=[],this.events=[]}t.prototype=new e.Z,t.prototype.constructor=t,t.prototype.addMethod=function(e,t){this[e]=t,this.methods.push(e)},t.prototype.addEvent=function(e){this.events.push(e)};const n=t;var r=a(8531),o=a(7476);function i({container:e,adapter:t,options:n,browser:r,version:o}){const i={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",logoLink:{image:null,url:"http://flippingbook.com"}},s=this,l="mobile"===o||"mobile-app"===o?"fixed":"absolute";this.browser=r,this.adapter=t,this.options=Object.assign(i,n),this.preloader=a.g.document.createElement("div"),this.preloader.id="preloader",this.preloader.style.width="100%",this.preloader.style.height=document.documentElement.clientHeight+"px",this.preloader.style.position=l,this.preloader.style.top="0px",this.preloader.style.left="0px",this.preloader.style.right="0px",this.preloader.style.bottom="0px",this.preloader.style.transition="opacity .25s ease",this.preloader.style.opacity="1",this.browser.publisher&&(this.preloader.className="no-fade-in"),this.preloader.style.backgroundColor=this.options.backgroundColor,this.preloader.style.zIndex="999999999",this._styleTags=[],this._resize=function(){s.preloader.style.height=document.documentElement.clientHeight+"px",s._setCoverSize()},a.g.addEventListener("resize",this._resize),this._preventZoom=function(e){e.preventDefault()},window.location===window.parent.location&&this.preloader.addEventListener("touchstart",this._preventZoom,!0),e.appendChild(this.preloader),this._renderCoverPreloader(),setTimeout((function(){s._resize()}),10)}i.prototype._renderCoverPreloader=function(){const e=a.g.document.createElement("div"),t=a.g.document.createElement("h3");this.preloader.style.textAlign="center",this._applyCoverStyles(),e.className="preloader-container",t.className="preloader-title",t.innerText=(0,r.m9)(this.options.titleText),e.appendChild(t),this.coverContainer=a.g.document.createElement("div"),this.coverContainer.className="preloader-cover",e.appendChild(this.coverContainer),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=a.g.document.createElement("a"),this.options.logoLink.url&&(this.logoContainer.href=this.options.logoLink.url,this.logoContainer.target=this.options.logoLink.target||"_blank"),this.logoContainer.className="preloader-logo",e.appendChild(this.logoContainer),this._tuneLogoSize()),this._injectImage(),this.preloader.appendChild(e)},i.prototype._resize=function(){},i.prototype._preventZoom=function(){},i.prototype._applyCoverStyles=function(){const e=this.adapter.translatePath(this.options.coverSrc),t=a.g.document.createElement("style");(0,o.V)()&&t.setAttribute("nonce",(0,o.V)());const n=`\n .preloader-container{\n overflow: hidden;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center; \n vertical-align: middle;\n max-width: 500px;\n width: 90%; \n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n }\n \n .preloader-title{\n max-height: 3.0em;\n line-height: 1.5em;\n width: 100%;\n overflow: hidden;\n font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-weight: bold;\n font-size: 24px;\n margin: 0;\n display: inline-block;\n color: ${this.options.titleColor};\n }\n \n .preloader-cover{\n display: inline-block;\n margin: 70px 0;\n width: 300px;\n height: 300px;\n position: relative;\n overflow: hidden;\n }\n \n .preloader-cover img{\n position: absolute;\n clip: rect(auto, 0px, auto, auto);\n }\n \n .preloader-cover:after{\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-image: url('${e}');\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n position: absolute;\n opacity: 0.4;\n }\n \n .preloader-logo{\n display: inline-block;\n width: 100%;\n max-width: 250px;\n height: 190px;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n background-size: contain;\n box-sizing: content-box;\n }\n \n @media all and (max-width: 1300px), all and (max-height: 768px){\n .preloader-cover{\n width: 240px;\n height: 240px;\n margin: 50px 0;\n }\n .preloader-logo{\n height: 90px;\n }\n }\n @media all and (max-width: 600px), all and (max-height: 600px){\n .preloader-cover{\n width: 200px;\n height: 200px;\n margin: 20px 0 30px 0;\n }\n .preloader-logo{\n height: 85px;\n }\n }\n @media all and (max-width: 550px), all and (max-height: 450px){\n .preloader-title{\n font-size: 18px;\n }\n .preloader-cover{\n width: 160px;\n height: 160px;\n margin: 10px 0;\n }\n .preloader-logo{\n height: 40px;\n }\n }\n @media all and (max-width: 400px), all and (max-height: 300px){\n .preloader-title{\n font-size: 16px;\n }\n .preloader-cover{\n width: 100px;\n height: 100px;\n margin: 10px 0;\n }\n .preloader-logo{\n height: 34px;\n }\n }\n \n @media all and (max-width: 242px), all and (max-height: 212px){\n .preloader-title{\n display: none;\n }\n .preloader-cover{\n width: 100px;\n height: 100px;\n margin: 0;\n }\n .preloader-logo{\n display: none;\n }\n }\n \n `;t.appendChild(a.g.document.createTextNode(n)),t.id="preloader-cover-styles",this._styleTags.push(t),document.getElementsByTagName("head")[0].appendChild(t)},i.prototype._injectImage=function(){const e=this;this.coverIMG=new Image,this.coverIMG.onload=function(){e.coverContainer.appendChild(e.coverIMG),e._setCoverSize(),e.progress(100)},this.coverIMG.src=this.adapter.translatePath(this.options.coverSrc)},i.prototype._tuneLogoSize=function(){if(void 0===this.options.logoLink||!this.options.logoLink.image)return;const e=this,t=e.logoContainer,n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image,s=function(){const n=e.logoContainer.getBoundingClientRect();e.logoIMGRect.width(this.coverIMG.naturalHeight||this.coverIMG.height)){const t=e.width/this.coverIMG.naturalWidth;this.coverIMG.style.left="0px",this.coverIMG.style.height=this.coverIMG.naturalHeight*t+"px",this.coverIMG.style.width=e.width+"px",this.coverIMG.style.top=(e.height-this.coverIMG.height)/2+"px"}else{const t=e.height/this.coverIMG.naturalHeight;this.coverIMG.style.top="0px",this.coverIMG.style.width=this.coverIMG.naturalWidth*t+"px",this.coverIMG.style.height=e.height+"px",this.coverIMG.style.left=(e.width-this.coverIMG.width)/2+"px"}}},i.prototype.progress=function(e){if(""===this.options.coverSrc||!this.options.coverSrc)return;const t=this.coverIMG.width*e/100;this.coverIMG.style.clip=`rect(auto, ${t}px, auto, auto)`},i.prototype.remove=function(e){this.preloader&&(this.preloader.style.opacity="0",setTimeout((()=>{this.preloader&&(this.bookInt&&clearInterval(this.bookInt),a.g.removeEventListener("resize",this._resize),this.preloader.removeEventListener("touchstart",this._preventZoom,!0),this.preloader.parentNode&&this.preloader.parentNode.removeChild(this.preloader),delete this.preloader,this._styleTags.forEach((e=>{e.parentNode.removeChild(e)})),e?.())}),417))};const s=i,c={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",showLogo:!0,logoLink:{image:null,url:"http://flippingbook.com"}};class u{constructor({container:e,adapter:t,options:n,browser:r,version:o}){this.container=e,this.browser=r,this.adapter=t,this.options=Object.assign(c,n),this.version=o,this.isSupportCssCustomProperties="CSS"in window&&"registerProperty"in CSS,(async()=>{await this.injectStyles(),document.body.offsetHeight,this.preloader=this.render(),this.start()})()}_preventer(e){e.preventDefault()}async injectStyles(){return new Promise((e=>{e()}))}progress(){}render(){}remove(){}start(){}stopAnimation(){}}const h=u,p=document.createElement("div");p.style.height="100%",p.style.width="100%",p.innerHTML='\n \n \n',p.setAttribute("class","preloader"),p.setAttribute("id","preloader");const d=p;function f(e,t=!1){const n=`\n .preloader {\n background-color: ${e};\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 10;\n top: 0;\n left: 0;\n }\n \n .spinner {\n position: absolute;\n }\n \n .logo {\n position: absolute;\n transform: scale(0);\n will-change: transform, opacity;\n border-radius: 50%;\n opacity: 1;\n }\n \n .animation-enter-from .logo {\n transform: scale(0);\n transition: transform .5s cubic-bezier(0.3, 0.2, 0.2, 1.4);\n }\n \n .animation-enter-to .logo {\n transform: scale(1) translateZ(0);\n }\n \n .animation-leave-from .logo {\n transform: scale(1) translateZ(0);\n opacity: 1;\n transition: transform .25s cubic-bezier(0.45, 0, 0.55, 1), opacity .25s cubic-bezier(0.45, 0, 0.55, 1);\n }\n \n .animation-leave-to .logo {\n transform: scale(1.3) translateZ(0);\n opacity: 0;\n }\n \n .animation-active .logo {\n animation: breathe 1s cubic-bezier(0.37, 0, 0.63, 1);\n }\n \n .without-logo .logo {\n display: none;\n }\n \n @keyframes breathe {\n 0% { transform: scale(1); }\n 50% { transform: scale(0.9); }\n 100% { transform: scale(1); }\n }`;return t?`\n @property --mask-radius {\n syntax: '';\n inherits: false;\n initial-value: 0%;\n }\n\n @property --mask-radius-gradient {\n syntax: '';\n inherits: false;\n initial-value: 0%;\n }\n\n .animation-leave-from.preloader {\n transition: --mask-radius-gradient 0.25s 0.21s cubic-bezier(0.31, 0.0, 0.8, 0.37), --mask-radius 0.25s 0.167s cubic-bezier(0.31, 0.0, 0.8, 0.37);\n background: radial-gradient(circle at center, transparent var(--mask-radius-gradient), ${e} var(--mask-radius))\n }\n\n .animation-leave-to.preloader {\n --mask-radius: 100%;\n --mask-radius-gradient: 100%;\n }\n `+n:n}var g=a(477),m=a.n(g);function v(){return m()('(()=>{"use strict";function t(t,n,e,r){return function(o){const a=3*t,i=3*(e-t)-a,l=1-a-i,s=3*n,c=3*(r-n)-s,f=1-s-c;function u(t){return((l*t+i)*t+a)*t}function g(t){return((f*t+c)*t+s)*t}function h(t){return(3*l*t+2*i)*t+a}function d(t,n){let e,r,o,a,i,l;for(o=t,l=0;l<8;l++){if(a=u(o)-t,Math.abs(a)r)return r;for(;ea?e=o:r=o,o=.5*(r-e)+e}return o}return g(d(o,1e-6))}}const n=46,e=7;let r=-100;const o=t(.6,0,.45,1),a=t(1,-.13,.95,.4);function i(t){const n=360*a(t)-90,e=360*o(t)-90;return{startAngle:n*(Math.PI/180),endAngle:e*(Math.PI/180)}}function l({progress:t,backgroundColor:r,fillColor:o,canvas:a}){const l=i(t),s=a.getContext("2d");let c;s.clearRect(0,0,a.width,a.height),s.fillStyle=r,s.fillRect(0,0,a.width,a.height);const f=l.startAngle*(180/Math.PI),u=l.endAngle*(180/Math.PI);if(u>=-90&&u<=-65){c=`${o}${Math.floor(.01*255+(u+90)/25*.99*255).toString(16).padStart(2,"0")}`}else if(f>=255&&f<=270){c=`${o}${Math.floor(255-(f-255)/15*.99*255).toString(16).padStart(2,"0")}`}else c=`${o}ff`;const g=s.createLinearGradient(a.width/2+n*Math.cos(l.startAngle),a.height/2+n*Math.sin(l.startAngle),a.width/2+n*Math.cos(l.endAngle),a.height/2+n*Math.sin(l.endAngle));g.addColorStop(0,`${r}`),g.addColorStop(1,`${c}`),s.beginPath(),s.arc(a.width/2,a.height/2,n,l.startAngle,l.endAngle),s.lineWidth=e,s.lineCap="round",s.strokeStyle=g,s.stroke()}function s({canvas:t,backgroundColor:n,fillColor:e,callback:o}){const a=performance.now();function i(s){const c=(s-a)%1e3/1e3;c{postMessage({action:"progress",progress:t})}})}})();',"Worker",void 0,void 0)}function b({duration:e,delay:t,easing:n,onUpdate:r,onStopped:o}){const i=performance.now();let s;return s=requestAnimationFrame((function a(l){let c=(l-i)/(e+t);c>1&&(c=1);const u=n(c);r({progress:u}),c<1?s=requestAnimationFrame(a):o()})),()=>{cancelAnimationFrame(s)}}function y(e,t,n,r){return function(o){const i=3*e,s=3*(n-e)-i,a=1-i-s,l=3*t,c=3*(r-t)-l,u=1-l-c;function h(e){return((a*e+s)*e+i)*e}function p(e){return((u*e+c)*e+l)*e}function d(e){return(3*a*e+2*s)*e+i}function f(e,t){let n,r,o,i,s,a;for(o=e,a=0;a<8;a++){if(i=h(o)-e,Math.abs(i)r)return r;for(;ni?n=o:r=o,o=.5*(r-n)+n}return o}return p(f(o,1e-6))}}var w=a(90);const x=46,C=7;let k=-100;const S=y(.6,0,.45,1),_=y(1,-.13,.95,.4);function A(e){const t=360*_(e)-90,n=360*S(e)-90;return{startAngle:t*(Math.PI/180),endAngle:n*(Math.PI/180)}}function I({progress:e,backgroundColor:t,fillColor:n,canvas:r}){const o=A(e),i=r.getContext("2d");let s;i.clearRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,r.width,r.height);const a=o.startAngle*(180/Math.PI),l=o.endAngle*(180/Math.PI);if(l>=-90&&l<=-65){s=`${n}${Math.floor(.01*255+(l+90)/25*.99*255).toString(16).padStart(2,"0")}`}else if(a>=255&&a<=270){s=`${n}${Math.floor(255-(a-255)/15*.99*255).toString(16).padStart(2,"0")}`}else s=`${n}ff`;const c=i.createLinearGradient(r.width/2+x*Math.cos(o.startAngle),r.height/2+x*Math.sin(o.startAngle),r.width/2+x*Math.cos(o.endAngle),r.height/2+x*Math.sin(o.endAngle));c.addColorStop(0,`${t}`),c.addColorStop(1,`${s}`),i.beginPath(),i.arc(r.width/2,r.height/2,x,o.startAngle,o.endAngle),i.lineWidth=C,i.lineCap="round",i.strokeStyle=c,i.stroke()}function M({canvas:e,backgroundColor:t,fillColor:n,callback:r}){const o=performance.now();function i(s){const a=(s-o)%1e3/1e3;a{const r=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(r),r.onload=()=>e(r),r.onerror=n;const o=f(this.preloaderBackgroundColor,this.isSupportCssCustomProperties);r.appendChild(document.createTextNode(o)),t&&r.setAttribute("nonce",t),r.setAttribute("type","text/css"),r.setAttribute("id","preloader-spinner-styles")}))}remove(e){const t=document.getElementById("spinner");t?.remove(),this.spinnerWorker&&this.spinnerWorker.terminate();const n=t=>{if(void 0===t||t.target===this.preloader){super.remove();const t=document.getElementById("preloader-spinner-styles");t&&t.remove(),this.preloader.remove(),e()}};this.preloader.classList.remove("animation-active"),setTimeout((()=>{this.preloader.classList.add("animation-leave-from"),this.preloader.offsetWidth,this.preloader.classList.add("animation-leave-to"),this.isSupportCssCustomProperties?this.preloader.addEventListener("transitionend",n):b({duration:250,delay:167,easing:y(.31,0,.8,.37),onUpdate:({progress:e})=>{this.preloader.style.background=`radial-gradient(circle at center, transparent ${100*e-5}%, ${this.preloaderBackgroundColor} ${100*e}%)`},onStopped:n})}),0)}start(){this.options.showLogo||this.preloader.classList.add("without-logo"),this.preloader.classList.add("animation-enter-from"),this.preloader.offsetWidth,this.preloader.classList.add("animation-enter-to");const e=()=>{this.startSpinnerAnimation()};this.options.showLogo?this.preloader.addEventListener("transitionend",e,{once:!0}):e()}startSpinnerAnimation(){const e=document.getElementById("spinner");if(!e)return;window.OffscreenCanvas&&!this.browser.publisher?this.animateInOffscreenCanvas(e):this.animateInCanvas(e)}animateInOffscreenCanvas(e){this.spinnerWorker=new v;const t=e.transferControlToOffscreen();this.spinnerWorker.postMessage({canvas:t,backgroundColor:this.preloaderBackgroundColor,fillColor:E},[t]),this.preloader.classList.add("animation-active"),this.spinnerWorker.onmessage=this.onStepDone.bind(this)}animateInCanvas(e){this.preloader.classList.add("animation-active"),M({canvas:e,backgroundColor:this.preloaderBackgroundColor,fillColor:E,callback:this.onStepDone.bind(this)})}onStepDone(){this.preloader.classList.remove("animation-active"),this.preloader.offsetWidth,this.preloader.classList.add("animation-active")}}const L=O;function B({container:e,adapter:t,options:n,browser:r,version:o}){return new(n.coverSrc&&""!==n.coverSrc?s:L)({container:e,adapter:t,options:n,browser:r,version:o})}const T=B;function j(){this.callback=null,this.isReady=!0}j.prototype.ready=function(){this.isReady=!0},j.prototype.setCallback=function(e){this.callback=e},j.prototype.getPathInfo=function(){throw new Error("Method getPathInfo() should be overridden")},j.prototype.setPath=function(){throw new Error("Method setPath() should be overridden")},j.prototype.getShareUrl=function(){throw new Error("Method getShareUrl() should be overridden")},j.prototype.getEmbedUrl=function(){throw new Error("Method getEmbedUrl() should be overridden")},j.prototype.translatePath=function(){throw new Error("Method translatePath() should be overridden")},j.prototype.getFirstPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},j.prototype.getCurrentPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},j.prototype.getVersions=function(){throw new Error("Method getEmbedPrefix() should be overridden")},j.prototype.getEmbedPrefix=function(){throw new Error("Method getEmbedPrefix() should be overridden")},j.prototype.getModulesUrl=function(){throw new Error("Method getModulesUrl() should be overridden")},j.prototype.getHashMode=function(){throw new Error("Method getOptions() should be overridden")},j.prototype.getIndexFileName=function(){throw new Error("Method getOptions() should be overridden")};const U=j;function N(e){this.mappings=e,this.baseUrl="",window.location&&(this.baseUrl=window.location.href.split("#")[0])}N.prototype=new U,N.constructor=N,N.prototype.getModulesUrl=function(){return this.baseUrl},N.prototype.translatePath=function(e){if(this.mappings.hasOwnProperty("length"))for(let t=0;t0&&(e+="&"),e+=encodeURIComponent(t)+"="+("boolean"==typeof r?"1":encodeURIComponent(r))}if(e.length>0)if(-1!==t.indexOf("?")){const n=t.split("?");n[1].length>0&&(n[1]+="&"),n[1]+=e,t=n.join("?")}else t+="?"+e}}return t},z.prototype.getEmbedPrefix=function(){return"fbp"},z.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},z.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},z.prototype._checkStorage=function(e){const t="test";try{return window[e].setItem(t,t),window[e].removeItem(t),!0}catch(n){return!1}},z.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},z.prototype._hashChanged=function(){if(!a.g.location)return;const e=a.g.location.hash,t=this._getInfoFromHash(e);t&&this.callback&&this.callback(t)},z.prototype._getInfoFromHash=function(e){if("#"===e.substring(0,1)&&(e=e.slice(1)),0===e.length)return null;const t=e.split("/"),n={};return n.page=encodeURIComponent(t[0]),2===t.length?"z"!==t[1]?n.productId=encodeURIComponent(t[1]):n.zoom=!0:t.length>2&&(n.zoom="z"===t[1],n.productId=encodeURIComponent(t[2])),n},z.prototype._parseQueryString=function(){if(!a.g.location)return;const e=a.g.location.search.replace("?","");if(!e.length)return;const t={},n=e.split("&");for(let a=0;a1?decodeURIComponent(e[1]):null}const r=["p","page","z","zoom","id"];let o=!1;for(let a=0,l=r.length;a0&&(s+="&"),s=encodeURIComponent(a)+"="+(t[a]?encodeURIComponent(t[a]):""));a.g.location.search=s.length>0?"?"+s:""};const D=z;var V=a(710),G=a(320),Z=a(770);function $(e,t){const n=new DataView(e);if(255!==n.getUint8(0)||216!==n.getUint8(1))return!1;const r=e.byteLength;let o,i=2;for(;i4?a:t+8,X(e,l,s-1))}function X(e,t,n){let r="";for(let o=t;or[i]?1:-1}return n.length!==r.length?-1:0}ee.prototype.constructor=ee,ee.prototype.getSupportedVersions=function(){const e=[];if(this.userAgentInfo.device.desktop){if(this.userAgentInfo.browser.ie)return[];e.push("html")}else{const t=this.userAgentInfo.os.ios,n=this.userAgentInfo.os.ipados,r=this.userAgentInfo.os.android&&(parseInt(this.userAgentInfo.os.version.split(".")[0],10)>4||4===parseInt(this.userAgentInfo.os.version.split(".")[0],10)&&parseInt(this.userAgentInfo.os.version.split(".")[1],10)>=1);if(t||n||r)if(n||t&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||r&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)e.push("mobile");else{const n=navigator.userAgent.indexOf("Mozilla/5.0")>-1&&navigator.userAgent.indexOf("Android ")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1&&-1===navigator.userAgent.indexOf("Chrome");(t&&te(this.userAgentInfo.os.version,"9")>=0||r&&1===te(this.userAgentInfo.os.version,"4.2")&&!n)&&e.push("mobile-old")}}return e},ee.prototype.mainVersion=function(){const e=this.getSupportedVersions();if(this.priorities){for(let t=0;t0)return e[0];return null},ee.prototype.isRenderable=function(){return!0};const ne=ee;let re=null;function oe(){return"%password-protection%"}function ie(){return"%domain-protection%"}const se=function(){return"fghjk"===ie()},ae=function(){return"rtyu"===oe()};function le(e){return/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/gm.test(e)}function ce(e){const t=e.match(/^https?\:\/\/([^\/:?#]+)(?:[\/:?#]|$)/i);return t&&t[1]}function ue(e){const t=e.split("."),n=[];if(1===t.length)return n.push(t[0]),n;if(n.push(t[t.length-2]+"."+t[t.length-1]),t.length>2)for(let r=t.length-3;r>=0;r--)n.push(t[r]+"."+n[n.length-1]);return n}const he=function(){const e=window.parent;return window.location!==e.location},pe=function(){return new Promise(((e,t)=>{const n=window.parent,r=setInterval((()=>{n.postMessage({fbPublicationUrl:window.location.href},"*")}),300),o=setTimeout((()=>{clearInterval(r),t(new Error("No reply from embed script"))}),1500);window.addEventListener("message",(t=>{if(t.source===n){clearTimeout(o),clearInterval(r);const n=ce(t.origin);e(n)}}),!1),n.postMessage({fbPublicationUrl:window.location.href},"*")}))},de=function(e){return le(e)?[e]:ue(e)},fe=function(){return new Promise(((e,t)=>{const n=he();if(n)pe().then((t=>{e({isEmbedded:n,embeddingDomain:t})})).catch((t=>{e({isEmbedded:n,embeddingDomain:null})}));else{const t=window.location.hostname;e({isEmbedded:n,embeddingDomain:t})}}))},ge=function(){return new Promise((e=>{if(re)e(re);else{let t=new XMLHttpRequest;t.onload=function(){if(200!==this.status&&0!==this.status)throw new Error("Could not load image");re=t.response,e(t.response),t=null};const n=(0,J.Z)().translatePath("assets/cover300.jpg");t.open("GET",n,!0),t.responseType="arraybuffer",t.send(null)}}))},me=function(e,t){return ge().then((e=>{const n=$(e,33432),r=$(e,33423);if(!n||!r)return new Error("Protection error");const o=n.split(","),i=de(t);if(o.length>0){let e=!1;for(let t=0;tnew Promise((n=>{const r=$(t,315),o=$(t,33423);if(!o)throw new Error("Protection error");(0,J.Z)().getLocalStorage().getItem("fblp")===r?n():be((function(e){const t=document.getElementById("passwordInput"),i=document.getElementById("passwordButton"),s=function(){let i=t.value;if(""!==i)if(i=Z.Z.hex_sha256(Z.Z.hex_sha256(i)+o),i===r){(0,J.Z)().getLocalStorage().setItem("fblp",i);const e=document.getElementById("security-container-styles");e&&e.parentElement.removeChild(e),n()}else t.className="password-input error",t.parentNode.setAttribute("data-error",e)};t.focus(),i.addEventListener("click",s),t.addEventListener("keyup",(function(e){const n=t.value;i.className=""!==n?"password-button":"password-button inactive","Enter"===e.code&&s()}))}),e)}))))},be=function(e,t){let n=!1;const r=/lightbox=([^&]+)/.exec(window.location.href);(0,Y.k)(r)&&(n=r[1]);const o=new Q.Z,i=new ne(o,["html","mobile"]).mainVersion();(0,V.Z)({url:(0,J.Z)().translatePath("static/locales/"+t+".json"),responseType:"json",callback:function(r){K();const o=a.g.document.createElement("style"),s=".security-container {overflow: hidden; text-align: center; display: inline-block; vertical-align: middle; width: 550px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); user-select: none;}.security-container .password-title {width: 100%; overflow: hidden; font-family: Arial, sans-serif; font-weight: bold; font-size: 34px; color: #5A5F63; margin: 0; display: inline-block;}.security-container .password-input {width: 330px; height: 53px; background-color: white; border: 1px solid #c7ced2; font-family: Arial, sans-serif; font-size: 16px; border-radius: 6px; padding: 0 20px; color: #5A5F63; margin-top: 26px; box-sizing: border-box;}.security-container .password-input.error {border: 1px solid #EE0000;}.security-container .input-label {display: inline-block; position: relative; margin-bottom: 26px;}.security-container .input-label:before {content: attr(data-error); position: absolute; top: 100%; right: 0%; display: inline-block; font-family: Arial, sans-serif; font-size: 16px; padding: 2px 0; color: rgba(238, 0, 0, 0.8);}.security-container .password-button {background-color: #00ADEF; border: 1px solid #c7ced2; font-size: 16px; border-radius: 3px; height: 51px; line-height: 51px; padding: 0 40px; display: inline-block; vertical-align: middle; margin-left: 12px; margin-top: -2px; font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #fff; transition: background-color 0.15s ease-out;}.security-container .password-button.inactive {background-color: rgba(90, 95, 99, 0.2);}.security-container .password-button:hover {cursor: pointer; background-color: #08C;}.security-container .password-button:active {cursor: pointer; background-color: #069;}.security-container .password-button.inactive:hover {cursor: default; background-color: rgba(90, 95, 99, 0.2);}.security-container[dir=rtl] .password-button {margin-right: 12px;}.security-container[dir=rtl] .input-label:before {right: initial; left: 0;}.security-container .input-label:before {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px;}@media (max-width: 550px) {.security-container {width: 100%; top: 50%; left: 0; transform: translate(0, -50%); } .security-container .password-title {font-size: 24px; } .security-container .input-label {width: 90%; } .security-container .password-input {width: 100%; } .security-container .password-button {width: 90%; padding: 0; margin-left: 0; margin-right: 0; } .security-container[dir=rtl] .password-button {margin-right: 0; }}.security-close-button {position: absolute; top: 10px; right: 10px; opacity: 0;}.security-close-button[dir=rtl] {right: initial; left: 10px}";o.appendChild(a.g.document.createTextNode(s)),o.id="security-container-styles",document.getElementsByTagName("head")[0].appendChild(o),document.addEventListener("touchmove",(function(e){(e.scale&&1!==e.scale||e.touches&&e.touches.length>1)&&e.preventDefault()}),{passive:!1});const l='

'+r.LoginWindow.SECURITY_PAS_TITLE+'

'+r.LoginWindow.SECURITY_PAS_SUBMIT_BUTTON+'
';if(document.getElementsByTagName("body")[0].innerHTML=l,n&&"mobile"===i){const e=document.getElementsByClassName("security-close-button")[0];e.style.opacity=1,e.onclick=function(){window.history.go(-1)}}"ar"!==t&&"he"!==t||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByClassName("security-close-button")[0].setAttribute("dir","rtl")),window.FBInit&&window.FBInit.PRELOADER&&(document.getElementsByTagName("body")[0].style.backgroundColor=window.FBInit.PRELOADER.backgroundColor,document.getElementsByClassName("password-title")[0].style.color=window.FBInit.PRELOADER.titleColor,document.getElementsByClassName("security-close-button")[0].style.fill=window.FBInit.PRELOADER.titleColor),e(r.LoginWindow.SECURITY_PAS_WRONG)}})},ye=function(){re=null};var we=a(5622);function xe(e={}){const t={mappings:[],firstPage:"1",currentPage:"1",editorMode:!1,hashMode:!1,crossOrigin:!1,embedPrefix:"fbo",index:"index.html",uni:"4.0.0"};this.embed=!1,this.options=Object.assign(t,e),R.call(this,this.options.mappings),this.isReady=!1,this.options.hasOwnProperty("baseUrl")&&(this.baseUrl=this.options.baseUrl);const n=this;function r(){let e=a.g.location.href.replace(n.options.baseUrl,"");return e=e.replace(a.g.location.hash,""),e=e.split("?")[0],e=e.replace(n.options.currentPage+"/",""),e===n.options.index}if(this._urlChangedBound=(0,we.Ds)(this._urlChanged.bind(this),400),a.g.history&&a.g.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.addEventListener("popstate",this._urlChangedBound),this.options.sign){const e=this.getBaseUrl(),t=this.options.sign,n=this,r=function(e){n.isIndexAvailableAsDefault=e,n.ready()};(0,V.Z)({url:e,callback:e=>{const n=e.indexOf(t);r(n>=0)},errorback:()=>{r(!1)}})}else this.isIndexAvailableAsDefault=!r(),n.ready()}xe.prototype=new R,xe.prototype.constructor=xe,xe.prototype.destructor=function(){this.callback=null,a.g.history&&a.g.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.removeEventListener("popstate",this._urlChangedBound)},xe.prototype.getFirstPage=function(){return this.options.firstPage},xe.prototype.getCurrentPage=function(){return this.options.currentPage};const Ce=/^([^?]*)(\?.*)/;xe.prototype.translatePath=function(e,t){return e=R.prototype.translatePath.call(this,e),t||(e+=(-1===e.indexOf("?")?"?uni=":"&uni=")+this.options.uni),e},xe.prototype.getPathInfo=function(){if(!a.g.location)return null;let e=a.g.location.href.replace(this.options.baseUrl,"");e=e.replace(a.g.location.hash,""),e=e.replace(this.options.index,"");let t=null;const n=e.split("?")[0].split("/");n[1]&&""!==n[1]?t=n[1]:n[0]&&""!==n[0]&&(t=n[0]);const r={},o={},i=a.g.location.hash.slice(1).split("&"),s=[...a.g.location.search.slice(1).split("&"),...i];for(let a=0;a1?decodeURIComponent(e[0]):"page"]=e.length>1?decodeURIComponent(e[1]):e[0]}if(o.page?r.page=o.page:o.p?r.page=o.p:r.page=t&&null!==t?t:this.options.firstPage,o.media){const e=o.media.split(".");r.lightboxItemId=+e[0],r.lightboxItemType="image",e[1]&&(r.lightboxGalleryItemIndex=+e[1],r.lightboxItemType="gallery")}o.video&&(r.lightboxItemType="video",r.lightboxItemId=+o.video),o.form&&(r.lightboxItemType="form",r.lightboxItemId=+o.form),o.search&&(r.search=o.search,r.exactMatch=!!o.exactMatch),r.page&&(r.page=r.page.replace(Ce,"$1"));const l=(o.zoom||o.z||"").replace(Ce,"$1");if(r.zoom="true"===l,o.t){const e=atob(o.t).split(","),t=e[0],n=e[1],i={top:e[2],left:e[3],width:e[4],height:e[5],cursorHSide:e[6],cursorVSide:e[7]};r.selectText={pageID:t,pageSide:n,selectionRect:i}}return r},xe.prototype.getBaseUrl=function(e){return e?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},xe.prototype.setPath=(0,we.Ds)((function(e){this._updateFirstPageIfNeeded(e);const t=this.getPath(e);if(null===t)return;if(!a.g.location)return;a.g.location.href.includes("nocookie=true")&&(t.url+=(t.url.includes("?")?"&":"?")+"nocookie=true"),a.g.location.href.includes("noview=true")&&(t.url+=(t.url.includes("?")?"&":"?")+"noview=true");let n="";if(t.hash&&(n="#"+t.hash),!t.historyApiEnabled)return void(a.g.location.hash=n);const r=!(0,we.t)(a.g.history.state,e),o=a.g.location!==a.g.parent.location&&this.embed;a.g.history.state&&!r||(o?a.g.history.replaceState(e,null,t.url+n):a.g.history.pushState(e,null,t.url+n)),""!==n&&(this.isNotHistory=!0,a.g.location.hash=n,delete this.isNotHistory)}),500),xe.prototype.getPath=function(e){if(this.options.editorMode)return null;const t=a.g.history&&a.g.history.pushState&&!this.options.hashMode,n={info:e,historyApiEnabled:t};let r=this._getUrlParams(e,t);return n.url=this.getBaseUrl(r.url||!this.isIndexAvailableAsDefault)+r.url+(this.isIndexAvailableAsDefault?"":this.options.index),t?r.params&&(n.hash=r.params):(r=this._getUrlParams(e),n.hash=r.params),n},xe.prototype.getShareUrl=function(e,t){const n=this.getPathInfo();t&&e&&(n.page=t);const r=this._getUrlParams(n,!1===this.options.hashMode);let o=this.getBaseUrl(e&&n.page||!this.isIndexAvailableAsDefault);return e&&n.page&&(o+=r.url),o+=this.isIndexAvailableAsDefault?"":this.options.index,e&&n.page&&r.params&&(o+="#"+r.params),o},xe.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},xe.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},xe.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},xe.prototype._checkStorage=function(e){const t="test";try{return window[e].setItem(t,t),window[e].removeItem(t),!0}catch(n){return!1}},xe.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},xe.prototype._getUrlParams=function(e,t){const n=[];let r="",o="";if(e.zoom&&!this.options.editorMode&&n.push("zoom=true"),e.lightboxItemId&&!this.options.editorMode)switch(e.lightboxItemType){case"image":case"gallery":let t=e.lightboxItemId;(e.lightboxGalleryItemIndex||0===e.lightboxGalleryItemIndex)&&(t=t+"."+e.lightboxGalleryItemIndex),n.push("media="+t);break;case"video":n.push("video="+e.lightboxItemId);break;case"form":n.push("form="+e.lightboxItemId)}return e.page&&(t?(o=this.options.firstPage===e.page.toString()?"":e.page+"/",n.length>0&&(r+="")):(r=this.options.firstPage===e.page.toString()?"":"page="+e.page,r.length>0&&n.length>0&&(r+="&"))),r+=n.join("&"),{url:o,params:r}},xe.calculateFirstPage=function(e){return e>0?"I":e<0?(Math.abs(e)+1).toString():"1"},xe.prototype._updateFirstPageIfNeeded=function(e){(0,G.hj)(e.numerationOffset)&&(this.options.firstPage=xe.calculateFirstPage(e.numerationOffset))},xe.prototype._urlChanged=function(){if(!a.g.location||this.isNotHistory)return;const e=this.getPathInfo();e&&this.callback&&this.callback(e)},xe.prototype.getCrossOrigin=function(){return this.options.crossOrigin},xe.prototype.getHashMode=function(){return this.options.hashMode},xe.prototype.getIndexFileName=function(){return this.isIndexAvailableAsDefault?null:this.options.index},xe.prototype.getImageFileName=function({name:e,size:t,format:n}){if(n?.includes("#")){return`${e}${t===Number(n.split("#")[1])?"":"s_"}${t}`}return`${e}${t}`+(n?`.${n}`:"")},xe.prototype.isDomainProtected=se,xe.prototype.isPasswordProtected=ae,xe.prototype.shouldDisplayPublication=function(e=!1,t=null){return new Promise((n=>{!1===this.isDomainProtected()?n(!0):(e&&null===t&&n(!1),me(e,t).then((e=>n(e))))}))},xe.prototype.performPasswordCheck=function(e){return new Promise((t=>{!1===this.isPasswordProtected()?t():ve(e).then((e=>t()))}))};const ke=xe;var Se=a(924),_e=a(2155);const Ae=JSON.parse('{"nC":{"style":{"line-height":"100vh","background-color":"#f3f3f6"},"div":{"class":"notice-outer-container","div":{"class":"notice-inner-container","span":{"id":"notice-text","class":"notice-text-block"},"br":{},"a":{"id":"download-button","class":"notice-download-button"}}}},"oB":".notice-outer-container {width: 100%; max-width: 1000px; position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%);} .notice-inner-container {line-height: 1.4; text-align: center; font-family: OpenSans, sans-serif; margin: 7%; padding: 21px 25px 27px; border-radius: 8px; background-color: #ffffff; filter: drop-shadow(0 5px 10px #dddddd);} .notice-text-block {display: inline-block; font-size: 15px; color: #596168;} .notice-download-button {display: inline-block; text-decoration: none; color: #596168; font-size: 16px; font-weight: 600; margin-top: 25px; padding: 10px 20px; border-radius: 3px; background-color: #eaeaec; filter: drop-shadow(2px 2px 1px #c5c5c5);}","Y9":".notice-outer-container {width: 100%; max-width: 1000px;} .notice-inner-container {line-height: 1.4; text-align: center; font-family: sans-serif; margin: 10%; padding: 21px 25px 27px; border: 1px solid #ddd; background-color: #ffffff;} .notice-text-block {display: inline-block; font-size: 15px; color: #596168;} .notice-download-button {display: inline-block; text-decoration: none; color: #596168; font-size: 16px; font-weight: 600; margin-top: 25px; padding: 10px 20px; background-color: #eaeaec;}"}');var Ie=a(1042),Me=a(1667);a(5666);function Ee({locale:e,localization:t}){const n="rgb(37, 39, 44)"===document.body.style.backgroundColor;document.body.style.backgroundColor=n?document.body.style.backgroundColor:"#f7f7fd";const r=a.g.document.createElement("style");r.appendChild(a.g.document.createTextNode(Pe)),document.getElementsByTagName("head")[0].appendChild(r);const o=`\n
\n
\n

${t.LoginWindow.DOMAIN_ERROR}

\n ${n?Fe:Oe}\n
\n
\n
`;document.getElementsByTagName("body")[0].innerHTML=o,["ar","he"].includes(e)&&(document.getElementsByClassName("message-container")[0].setAttribute("dir","rtl"),document.getElementsByClassName("message-image")[0].style.transform="scaleX(-1)")}const Pe="\nhtml,\nbody {\n margin: 0;\n padding: 0;\n}\n\nhtml,\nbody,\n.message-container,\n.message-body {\n height: 100%;\n width: 100%;\n}\n\nhtml,\nbody,\n.message-container,\n.message-body,\n.message-title,\n.message-image,\n.message-image-aligner {\n box-sizing: border-box;\n}\n\n.message-container {\n display: flex;\n justify-content: center; \n align-items: center;\n font-size: 24px;\n padding: 1em;\n}\n\n.message-body {\n display: flex;\n flex-direction: column;\n justify-content: center; \n align-items: center;\n}\n\n.message-title {\n display: block;\n flex: 0 0 auto;\n font-family: Arial, sans-serif;\n font-size: inherit;\n line-height: 1.5em;\n font-weight: 500;\n text-align: center;\n margin: 0 0 1.6em 0;\n max-width: min(100%, 550px);\n}\n\n.message-image {\n flex: 0 1 351px;\n max-height: 351px;\n max-width: min(166px, 38%);\n height: 100%;\n width: auto;\n}\n\n.message-image-aligner {\n width: 1px;\n flex: 0 1 5.4em;\n}\n\n.message-container.dark {\n color: #e9e9ea;\n}\n\n.message-container.light {\n color: #485564;\n}\n\n@media (max-width: 375px) and (orientation: portrait),\n (max-height: 375px) and (orientation: landscape) {\n .message-container {\n font-size: 21px;\n }\n}\n\n@media (max-height: 768px) and (orientation: landscape) {\n .message-title {\n margin-bottom: 0.5em;\n }\n\n .message-image-aligner {\n flex-basis: 0.5em;\n }\n}",Fe='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',Oe='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';var Le=a(2896);function Be(e){if(/bot|bingbot|googlebot|google-structured-data-testing-tool|linkedinbot|mediapartners-google/i.test(navigator.userAgent))return;const t=e.nonce||window.FBO?.Config?.Nonce;function r(e){e.getEntries().forEach((e=>{if("navigation"===e.entryType){const t=e.toJSON();this.api.trigger("time",{action:"request",time:t.responseStart-t.requestStart}),this.api.trigger("time",{action:"response",time:t.responseEnd-t.responseStart}),this.api.trigger("time",{action:"firstByte",time:t.responseStart}),this.api.trigger("time",{action:"domInteractive",time:t.domInteractive})}if("measure"===e.entryType){const t=e.toJSON();this.api.trigger("time",{action:t.name,time:t.duration})}}))}t&&(a.nc=t,(0,o.n)(t)),this.styleTag=document.createElement("link"),this.styleTag.type="text/css",this.styleTag.rel="stylesheet",this.styleTag.href=e.adapter.translatePath("static/css/core.css"),(0,o.V)()&&this.styleTag.setAttribute("nonce",(0,o.V)()),document.head.appendChild(this.styleTag);const i={container:window.document.getElementsByTagName("body")[0],callback:()=>{},onPublicationLoad:()=>{},navigator:window.navigator};this.options=Object.assign(i,e),this.options.api=this.api=this.options.api||new n,this.api.trigger("log",{message:"Api inited",level:"info",timestamp:Date.now()}),this.performanceObserver=new PerformanceObserver(r.bind(this)),this.performanceObserver.observe({entryTypes:["navigation","measure"]}),this.options.adapter||(this.options.adapter=new D),(0,J.Z)().setAdapter(e.adapter);const s=new RegExp("[#&]zoom=([^&#]*)").exec(a.g.location.href);this.options.zoom=s?.[1]||null,a.p=(0,J.Z)().translatePath("static/").split("?")[0],this.userAgentInfo=new Q.Z(this.options.navigator),this._performDomainCheck().then((()=>this._performPasswordCheck())).then((()=>this._render()))}Be.prototype=new e.Z,Be.prototype.constructor=Be,Be.prototype.destructor=function(){this.app&&(0,Y.m)(this.app.destructor)&&this.app.destructor(),this.styleTag&&this.styleTag.parentElement&&this.styleTag.parentElement.removeChild(this.styleTag)},Be.prototype._performDomainCheck=function(){return new Promise((e=>{(0,J.Z)().isDomainProtected()?fe().then((({isEmbedded:t,embeddingDomain:n})=>{(0,J.Z)().shouldDisplayPublication(t,n).then((t=>{t?e():this._renderDomainFail()}))})).catch((()=>{this._renderDomainFail()})):e()}))},Be.prototype._performPasswordCheck=function(){return new Promise((e=>{(0,J.Z)().isPasswordProtected()?this._getLocale().then((t=>(0,J.Z)().performPasswordCheck(t).then((t=>e())))):e()}))},Be.prototype._render=function(){ye(),this.api.trigger("log",{message:"Starting render",level:"info",timestamp:Date.now()});let e=!1;const t=/embed=([^&#]+)/.exec(window.location.href);(0,Y.k)(t)&&(e=t[1]),this.options.embed=!!e;let n=null;const r=/embedId=([^&#]+)/.exec(window.location.href);(0,Y.k)(r)&&(n=r[1]),this.options.embedId=n;const o=/transparent=([^&]+)/.exec(window.location.href);this.options.isEmbedTransparent=(0,Y.k)(o);const i=/hide-logo=([^&]+)/.exec(window.location.href);this.options.embedHideLogo=(0,Y.k)(i);const s=/navigation-color=([^&]+)/.exec(window.location.href);(0,Y.k)(s)&&(this.options.navigationColor=s[1]);const a=/book-size=([^&]+)/.exec(window.location.href);(0,Y.k)(a)&&(this.options.embedBookSize=Number(a[1]));let l=!1;const c=/post=([^&#]+)/.exec(window.location.href);(0,Y.k)(c)&&(l=c[1]),this.options.usePostMsg=!!l;let u=!1;const h=/lightbox=([^&#]+)/.exec(window.location.href);(0,Y.k)(h)&&(u=h[1]),this.options.lightbox=!!u,this.options.adapter&&(this.options.adapter.embed=this.options.embed||this.options.lightbox);let p=!1;const d=/protected=([^&#]+)/.exec(window.location.href);(0,Y.k)(d)&&(p=d[1]),this.options.isProtected=!!p;let f=!1;const g=/nocookie=([^&#]+)/.exec(window.location.href);(0,Y.k)(g)&&(f="true"===g[1]),this.options.nocookie=f;let m=!1;const v=/wheel=([^&#]+)/.exec(window.location.href);(0,Y.k)(v)&&(m="true"===v[1]),this.options.wheel=m;const b=/v=([^&#]+)/.exec(window.location.href);if((0,Y.k)(b)&&(this.options.overrideVersion=b[1]),this.options.overrideVersion)this._startRenderVersion(this.options.overrideVersion);else{this.detector=new ne(this.userAgentInfo,this.options.versions);const e=this.detector.getSupportedVersions();let t;e&&e.length&&(t=this.detector.mainVersion(),t=t||this.options.callback(e)),t?this._startRenderVersion(t):this._renderMessage("version")}},Be.prototype._renderDomainFail=function(){this._getLocale().then((e=>{(0,V.Z)({url:(0,J.Z)().translatePath("static/locales/"+e+".json"),responseType:"json",callback:t=>{K(),Ee({locale:e,localization:t})}})}))},Be.prototype._getLocale=function(){let e=this.userAgentInfo.locale;return new Promise((t=>{if("fbo"===this.options.productType||window.FBO){const n=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"];-1===n.indexOf(e)&&(e=n[0]||"en"),t(e)}else(0,V.Z)({url:(0,J.Z)().translatePath("assets/workspace.json"),responseType:"json",callback:n=>{let r=n;r.locales=r.locales||[],this.options.extensions&&this.options.extensions.workspaceProps&&(r=(0,_e.Z)(r,this.options.extensions.workspaceProps)),-1===r.locales.indexOf(e)&&(e=r.locales[0]||"en"),t(e)}})}))},Be.prototype.goToPage=function(e){this._app&&(0,Y.m)(this._app.goToPage)&&this._app.goToPage(e)},Be.prototype._startRenderVersion=function(e){-1!==e.indexOf("mobile")&&K(),this.options.container.innerHTML="",this.observer=new IntersectionObserver((()=>this._renderVersion(e))),this.observer.observe(this.options.container)},Be.prototype._checkLoadPolyfill=function(){if(!("Promise"in window&&"Symbol"in window)||this.userAgentInfo.os.ios&&this.userAgentInfo.os.version.split(".")[0]<=8){const e=document.createElement("script");e.async=!1,e.src=this.options.adapter.translatePath("static/polyfills.js");const t=this.options.adapter.getCrossOrigin();t&&e.setAttribute("crossOrigin",t),document.head.appendChild(e)}},Be.prototype._renderVersion=async function(e){(0,Le.A)(),this.options.isEmbedTransparent&&(document.getElementsByTagName("body")[0].style.backgroundColor="transparent"),this.observer.unobserve(this.options.container),performance.mark("preloader-start"),performance.measure("preloaderStart");const t=this.options.onPublicationLoad;this.api.trigger("log",{message:"Starting preloader",level:"info",timestamp:Date.now()});const n=this.options.isEmbedTransparent?null:new T({container:this.options.container,adapter:this.options.adapter,options:this.options.preloader,browser:this.userAgentInfo.browser,version:e});if(this.options.onPublicationLoad=e=>{this.app=e,this.api.trigger("log",{message:"Removing preloader",level:"info",timestamp:Date.now()}),e.$emit("before-preloader-off"),performance.measure("preloaderBeforeOff","preloader-start");const r=()=>{(0,Y.m)(this.app.onReady)&&(performance.measure("preloaderOff","preloader-start"),this.app.onReady())};this.options.isEmbedTransparent?r():n.remove((()=>{clearTimeout(this.coverProgressTimeoutId),clearInterval(this.coverProgressIntervalId),r()})),t(e)},this.options?.preloader?.coverSrc){let e=0;const t=this.options.preloader?.progressSpeed||10,r=()=>{e=e>=100?0:e+1,n.progress(e)};this.coverProgressTimeoutId=setTimeout((()=>{this.coverProgressIntervalId=setInterval(r,t)}),500)}if(this.options?.preloader?.loop)return!0;const r=await Promise.all([a.e(9),a.e(19)]).then(a.bind(a,2571));return this.options.userAgentInfo=this.userAgentInfo,this.application=new r.App(this.options,e),!0},Be.prototype._renderMessage=function(e){const t=this,n=function(e,t){for(const n in t)if(t.hasOwnProperty(n))if("style"===n)for(const r in t[n])t[n].hasOwnProperty(r)&&(e.style[r]=t[n][r]);else"id"===n?e.id=t[n]:"class"===n?e.className=t[n]:o(n,t[n],e)},o=function(e,t,r){const o=document.createElement(e);return n(o,t),r&&(r.appendChild(o),r[e]=o),o};K();const i=document.getElementById("preloader-bg");i&&i.parentNode.removeChild(i),(0,V.Z)({url:this.options.adapter.translatePath("assets/workspace.json"),responseType:"json",callback:function(o){const i=a.g.document.getElementsByTagName("head")[0],s=a.g.document.createElement("style");s.type="text/css",s.rel="stylesheet",t.userAgentInfo.os.ios&&t.userAgentInfo.os.version.split(".")[0]<9||t.userAgentInfo.os.android&&t.userAgentInfo.os.version.split(".")[0]<=4&&t.userAgentInfo.os.version.split(".")[1]<4&&!t.userAgentInfo.browser.chrome?s.textContent=Ae.Y9:s.textContent=Ae.oB,i.appendChild(s),t.options.container.innerHTML="",n(t.options.container,Ae.nC);let l=t.userAgentInfo.locale;t.options.extensions&&t.options.extensions.workspaceProps&&(o=(0,_e.Z)(o,t.options.extensions.workspaceProps)),o.locales||(o.locales=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"]),-1===o.locales.indexOf(l)&&(l=o.locales[0]||"en");const c=document.getElementById("notice-text"),u=document.getElementById("download-button");"ar"!==l&&"he"!==l||(c.setAttribute("dir","rtl"),u.setAttribute("dir","rtl")),t.api.trigger("develop",{action:"version",data:"blank"}),(0,V.Z)({url:t.options.adapter.translatePath("static/locales/"+l+".json"),responseType:"json",callback:function(n){if(c.innerHTML=n.Other.UNSUPPORTED_BROWSER,o.downloads.enabled&&o.downloads.url&&o.downloads.allPagesVisible&&"version"===e){u.href="linkPdf";const e=(0,r.BU)(o.downloads.size);u.innerHTML=n.SaveWindow.SAVE_BUTTON+" (PDF, "+e+")",u.onclick=function(e){const n=t.options.adapter.translatePath("assets/common/downloads/"+encodeURIComponent(o.downloads.url));e.currentTarget.href=n}}else u.parentNode.removeChild(u)},errorback:function(){u.parentNode.removeChild(u),c.innerHTML="Sorry, this publication cannot be viewed, because your browser or device isn't supported. Please try opening it in the latest version of Google Chrome, Mozilla Firefox, Safari or Microsoft Edge."}})},errorback:function(){t.options.container.innerHTML="Sorry, this publication cannot be viewed, because your browser or device isn't supported. Please try opening it in the latest version of Google Chrome, Mozilla Firefox, Safari or Microsoft Edge."}})},Be.prototype.getState=function(){let e={};return this._app&&(0,Y.m)(this._app.getState)&&(e=this._app.getState()),e},window.Publication=Be,window.getLocationEnvInfo=fe,window.HistoryApiAdapter=ke,window.UserAgentDetector=Q.Z,window.PublicationDetector=ne;const Te={color:e=>(0,Me.O)("color("+e+")")}})(),l=a.O(l)})()));