1(i=>{var n={};function r(t){var e;return(n[t]||(e=n[t]={i:t,l:!1,exports:{}},i[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}r.m=i,r.c=n,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=81)})([function(D,t,e){e.r(t),e.d(t,"requestAnimationFrame",function(){return i}),e.d(t,"uuid",function(){return a}),e.d(t,"documentHeight",function(){return l}),e.d(t,"isElement",function(){return c}),e.d(t,"isNumber",function(){return u}),e.d(t,"isFloat",function(){return h}),e.d(t,"prefixed",function(){return d}),e.d(t,"defaults",function(){return f}),e.d(t,"extend",function(){return p}),e.d(t,"insert",function(){return m}),e.d(t,"locationOf",function(){return g}),e.d(t,"indexOfSorted",function(){return v}),e.d(t,"bounds",function(){return b}),e.d(t,"borders",function(){return y}),e.d(t,"nodeBounds",function(){return w}),e.d(t,"windowBounds",function(){return S}),e.d(t,"indexOfNode",function(){return _}),e.d(t,"indexOfTextNode",function(){return k}),e.d(t,"indexOfElementNode",function(){return O}),e.d(t,"isXml",function(){return E}),e.d(t,"createBlob",function(){return C}),e.d(t,"createBlobUrl",function(){return T}),e.d(t,"revokeBlobUrl",function(){return x}),e.d(t,"createBase64Url",function(){return j}),e.d(t,"type",function(){return A}),e.d(t,"parse",function(){return P}),e.d(t,"qs",function(){return L}),e.d(t,"qsa",function(){return I}),e.d(t,"qsp",function(){return M}),e.d(t,"sprint",function(){return z}),e.d(t,"treeWalker",function(){return $}),e.d(t,"walk",function(){return R}),e.d(t,"blob2base64",function(){return B}),e.d(t,"defer",function(){return F}),e.d(t,"querySelectorByType",function(){return U}),e.d(t,"findChildren",function(){return q}),e.d(t,"parents",function(){return N}),e.d(t,"filterChildren",function(){return W}),e.d(t,"getParentByTagName",function(){return H}),e.d(t,"RangeObject",function(){return V});var n=e(20);let i="undefined"!=typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),r=1,o=3;let s="undefined"!=typeof URL?URL:"undefined"!=typeof window?window.URL||window.webkitURL||window.mozURL:void 0;function a(){var i=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==t?e:7&e|8).toString(16)})}function l(){return Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}function c(t){return!(!t||1!=t.nodeType)}function u(t){return!isNaN(parseFloat(t))&&isFinite(t)}function h(t){var e=parseFloat(t);return!1!==u(t)&&("string"==typeof t&&-1<t.indexOf(".")||Math.floor(e)!==e)}function d(t){var e=["-webkit-","-webkit-","-moz-","-o-","-ms-"],i=t.toLowerCase(),n=["Webkit","webkit","Moz","O","ms"].length;if("undefined"!=typeof document&&void 0===document.body.style[i])for(var r=0;r<n;r++)if(void 0!==document.body.style[e[r]+i])return e[r]+i;return t}function f(t){for(var e=1,i=arguments.length;e<i;e++){var n,r=arguments[e];for(n in r)void 0===t[n]&&(t[n]=r[n])}return t}function p(i){return[].slice.call(arguments,1).forEach(function(e){e&&Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))})}),i}function m(t,e,i){i=g(t,e,i);return e.splice(i,0,t),i}function g(t,e,i,n,r){var o,n=n||0,r=r||e.length,s=parseInt(n+(r-n)/2);return r-n<=0?s:(o=(i=i||function(t,e){return e<t?1:t<e?-1:t==e?0:void 0})(e[s],t),r-n==1?0<=o?s:s+1:0===o?s:-1===o?g(t,e,i,s,r):g(t,e,i,n,s))}function v(t,e,i,n,r){var o,n=n||0,r=r||e.length,s=parseInt(n+(r-n)/2);return r-n<=0?-1:(o=(i=i||function(t,e){return e<t?1:t<e?-1:t==e?0:void 0})(e[s],t),r-n==1?0===o?s:-1:0===o?s:-1===o?v(t,e,i,s,r):v(t,e,i,n,s))}function b(t){var e=window.getComputedStyle(t),i=0,n=0;return["width","paddingRight","paddingLeft","marginRight","marginLeft","borderRightWidth","borderLeftWidth"].forEach(function(t){i+=parseFloat(e[t])||0}),["height","paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"].forEach(function(t){n+=parseFloat(e[t])||0}),{height:n,width:i}}function y(t){var e=window.getComputedStyle(t),i=0,n=0;return["paddingRight","paddingLeft","marginRight","marginLeft","borderRightWidth","borderLeftWidth"].forEach(function(t){i+=parseFloat(e[t])||0}),["paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"].forEach(function(t){n+=parseFloat(e[t])||0}),{height:n,width:i}}function w(t){let e;var i=t.ownerDocument;return e=(t.nodeType==Node.TEXT_NODE?((i=i.createRange()).selectNodeContents(t),i):t).getBoundingClientRect()}function S(){var t=window.innerWidth,e=window.innerHeight;return{top:0,left:0,right:t,bottom:e,width:t,height:e}}function _(t,e){for(var i,n=t.parentNode.childNodes,r=-1,o=0;o<n.length&&((i=n[o]).nodeType===e&&r++,i!=t);o++);return r}function k(t){return _(t,o)}function O(t){return _(t,r)}function E(t){return-1<["xml","opf","ncx"].indexOf(t)}function C(t,e){return new Blob([t],{type:e})}function T(t,e){t=C(t,e);return s.createObjectURL(t)}function x(t){return s.revokeObjectURL(t)}function j(t,e){if("string"==typeof t)return"data:"+e+";base64,"+btoa(t)}function A(t){return Object.prototype.toString.call(t).slice(8,-1)}function P(t,e,i){i="undefined"==typeof DOMParser||i?n.DOMParser:DOMParser;return 65279===t.charCodeAt(0)&&(t=t.slice(1)),(new i).parseFromString(t,e)}function L(t,e){if(t)return void 0!==t.querySelector?t.querySelector(e):(t=t.getElementsByTagName(e)).length?t[0]:void 0;throw new Error("No Element Provided")}function I(t,e){return void 0!==t.querySelector?t.querySelectorAll(e):t.getElementsByTagName(e)}function M(t,e,i){if(void 0!==t.querySelector){for(var n in e+="[",i)e+=n+"~='"+i[n]+"'";return t.querySelector(e+="]")}if(t=t.getElementsByTagName(e),t=Array.prototype.slice.call(t,0).filter(function(t){for(var e in i)if(t.getAttribute(e)===i[e])return!0;return!1}))return t[0]}function z(t,e){void 0!==(t.ownerDocument||t).createTreeWalker?$(t,e,NodeFilter.SHOW_TEXT):R(t,function(t){t&&3===t.nodeType&&e(t)})}function $(t,e,i){for(var n,r=document.createTreeWalker(t,i,null,!1);n=r.nextNode();)e(n)}function R(t,e){if(e(t))return!0;
1if(t=t.firstChild)do{if(R(t,e))return!0}while(t=t.nextSibling)}function B(n){return new Promise(function(t,e){var i=new FileReader;i.readAsDataURL(n),i.onloadend=function(){t(i.result)}})}function F(){this.resolve=null,this.reject=null,this.id=a(),this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e}),Object.freeze(this)}function U(t,e,i){if((n=void 0!==t.querySelector?t.querySelector(e+`[*|type="${i}"]`):n)&&0!==n.length)return n;for(var n=I(t,e),r=0;r<n.length;r++)if(n[r].getAttributeNS("http://www.idpf.org/2007/ops","type")===i||n[r].getAttribute("epub:type")===i)return n[r]}function q(t){for(var e=[],i=t.childNodes,n=0;n<i.length;n++){var r=i[n];1===r.nodeType&&e.push(r)}return e}function N(t){for(var e=[t];t;t=t.parentNode)e.unshift(t);return e}function W(t,e,i){for(var n=[],r=t.childNodes,o=0;o<r.length;o++){var s=r[o];if(1===s.nodeType&&s.nodeName.toLowerCase()===e){if(i)return s;n.push(s)}}if(!i)return n}function H(t,e){let i;if(null!==t&&""!==e)for(i=t.parentNode;1===i.nodeType;){if(i.tagName.toLowerCase()===e)return i;i=i.parentNode}}class V{constructor(){this.collapsed=!1,this.commonAncestorContainer=void 0,this.endContainer=void 0,this.endOffset=void 0,this.startContainer=void 0,this.startOffset=void 0}setStart(t,e){this.startContainer=t,this.startOffset=e,this.endContainer?this.commonAncestorContainer=this._commonAncestorContainer():this.collapse(!0),this._checkCollapsed()}setEnd(t,e){this.endContainer=t,this.endOffset=e,this.startContainer?(this.collapsed=!1,this.commonAncestorContainer=this._commonAncestorContainer()):this.collapse(!1),this._checkCollapsed()}collapse(t){this.collapsed=!0,t?(this.endContainer=this.startContainer,this.endOffset=this.startOffset,this.commonAncestorContainer=this.startContainer.parentNode):(this.startContainer=this.endContainer,this.startOffset=this.endOffset,this.commonAncestorContainer=this.endOffset.parentNode)}selectNode(t){var e=t.parentNode,t=Array.prototype.indexOf.call(e.childNodes,t);this.setStart(e,t),this.setEnd(e,t+1)}selectNodeContents(t){t.childNodes[t.childNodes-1];var e=(3===t.nodeType?t.textContent:parent.childNodes).length;this.setStart(t,0),this.setEnd(t,e)}_commonAncestorContainer(t,e){var i=N(t||this.startContainer),n=N(e||this.endContainer);if(i[0]==n[0])for(var r=0;r<i.length;r++)if(i[r]!=n[r])return i[r-1]}_checkCollapsed(){this.startContainer===this.endContainer&&this.startOffset===this.endOffset?this.collapsed=!0:this.collapsed=!1}toString(){}}},function(t,e,i){i.d(e,"b",function(){return n}),i.d(e,"a",function(){return r}),i.d(e,"c",function(){return o});let n="0.3",r=["keydown","keyup","keypressed","mouseup","mousedown","mousemove","click","touchend","touchstart","touchmove"],o={BOOK:{OPEN_FAILED:"openFailed"},CONTENTS:{EXPAND:"expand",RESIZE:"resize",SELECTED:"selected",SELECTED_RANGE:"selectedRange",LINK_CLICKED:"linkClicked"},LOCATIONS:{CHANGED:"changed"},MANAGERS:{RESIZE:"resize",RESIZED:"resized",ORIENTATION_CHANGE:"orientationchange",ADDED:"added",SCROLL:"scroll",SCROLLED:"scrolled",REMOVED:"removed"},VIEWS:{AXIS:"axis",WRITING_MODE:"writingMode",LOAD_ERROR:"loaderror",RENDERED:"rendered",RESIZED:"resized",DISPLAYED:"displayed",SHOWN:"shown",HIDDEN:"hidden",MARK_CLICKED:"markClicked"},RENDITION:{STARTED:"started",ATTACHED:"attached",DISPLAYED:"displayed",DISPLAY_ERROR:"displayerror",RENDERED:"rendered",REMOVED:"removed",RESIZED:"resized",ORIENTATION_CHANGE:"orientationchange",LOCATION_CHANGED:"locationChanged",RELOCATED:"relocated",MARK_CLICKED:"markClicked",SELECTED:"selected",LAYOUT:"layout"},LAYOUT:{UPDATED:"updated"},ANNOTATION:{ATTACH:"attach",DETACH:"detach"}}},function(t,e,i){var d=i(0);e.a=class o{constructor(t,e,i){if(this.str="",this.base={},this.spinePos=0,this.range=!1,this.path={},this.start=null,this.end=null,!(this instanceof o))return new o(t,e,i);if("string"==typeof e?this.base=this.parseComponent(e):"object"==typeof e&&e.steps&&(this.base=e),"string"===(e=this.checkType(t)))return this.str=t,Object(d.extend)(this,this.parse(t));if("range"===e)return Object(d.extend)(this,this.fromRange(t,this.base,i));if("node"===e)return Object(d.extend)(this,this.fromNode(t,this.base,i));if("EpubCFI"===e&&t.path)return t;if(t)throw new TypeError("not a valid argument for EpubCFI");return this}checkType(t){return this.isCfiString(t)?"string":!t||"object"!=typeof t||"Range"!==Object(d.type)(t)&&void 0===t.startContainer?t&&"object"==typeof t&&void 0!==t.nodeType?"node":!!(t&&"object"==typeof t&&t instanceof o)&&"EpubCFI":"range"}parse(t){var e,i={spinePos:-1,range:!1,base:{},path:{},start:null,end:null};return"string"==typeof t&&(0===t.indexOf("epubcfi(")&&")"===t[t.length-1]&&(t=t.slice(8,t.length-1)),e=this.getChapterComponent(t))?(i.base=this.parseComponent(e),e=this.getPathComponent(t),i.path=this.parseComponent(e),(e=this.getRange(t))&&(i.range=!0,i.start=this.parseComponent(e[0]),i.end=this.parseComponent(e[1])),i.spinePos=i.base.steps[1].index,i):{spinePos:-1}}parseComponent(t){var e={steps:[],terminal:{offset:null,assertion:null}},i=(t=t.split(":"))[0].split("/");return 1<t.length&&(t=t[1],e.terminal=this.parseTerminal(t)),""===i[0]&&i.shift(),e.steps=i.map(function(t){return this.parseStep(t)}.bind(this)),e}parseStep(t){var e,i,n=t.match(/\[(.*)\]/);if(n&&n[1]&&(i=n[1]),n=parseInt(t),!isNaN(n))return t=n%2==0?(e="element",n/2-1):(e="text",(n-1)/2),{type:e,index:t,id:i||null}}parseTerminal(t){var e,i,n=t.match(/\[(.*)\]/);return n&&n[1]?(e=parseInt(t.split("[")[0]),i=n[1]):e=parseInt(t),{offset:e=Object(d.isNumber)(e)?e:null,assertion:i}}getChapterComponent(t){return t.split("!")[0]}getPathComponent(t){if((t=t.split("!"))[1])return t[1].split(",")[0]}getRange(t){return 3===(t=t.split(",")).length&&[t[1],t[2]]}getCharecterOffsetComponent(t){return t.split(":")[1]||""}joinSteps(t){return t?t.map(function(t){var e="";return"element"===t.type&&(e+=2*(t.index+1)),"text"===t.type&&(e+=1+2*t.index),t.id&&(e+="["+t.id+"]"),e}).join("/"):""}segmentString(t){var e="/";return e+=this.joinSteps(t.steps),t.terminal&&null!=t.terminal.offset&&(e+=":"+t.terminal.offset),t.terminal&&null!=t.terminal.assertion&&(e+="["+t.terminal.assertion+"]"),e}toString(){var t=(t=(t="epubcfi(")+this.segmentString(this.base)+"!")+this.segmentString(this.path);return this.range&&this.start&&(t=(t+=",")+this.segmentString(this.start)),this.range&&this.end&&(t=(t+=",")+this.segmentString(this.end)),t+=")"}compare(t,e){var i,n;if("string"==typeof t&&(t=new o(t)),"string"==typeof e&&(e=new o(e)),t.spinePos>e.spinePos)return 1;if(t.spinePos<e.spinePos)return-1;for(var t=(t.range?(i=t.path.steps.concat(t.start.steps),t.start):(i=t.path.steps,t.path)).terminal,e=(e.range?(n=e.path.steps.concat(e.start.steps),e.start):(n=e.path.steps,e.path)).terminal,r=0;r<i.length;r++){if(!i[r])return-1;if(!n[r])return 1;if(i[r].index>n[r].index)return 1;if(i[r].index<n[r].index)return-1}return i.length<n.length?-1:t.offset>e.offset?1:t.offset<e.offset?-1:0}step(t){var e=3===t.nodeType?"text":"element";return{id:t.id,tagName:t.tagName,type:e,index:this.position(t)}}filteredStep(t,e){var i;if(t=this.filter(t,e))return i=3===t.nodeType?"text":"element",{id:t.id,tagName:t.tagName,type:i,index:this.filteredPosition(t,e)}}pathTo(t,e,i){for(var n,r={steps:[],terminal:{offset:null,assertion:null}},o=t;o&&o.parentNode&&9!=o.parentNode.nodeType;)(n=i?this.filteredStep(o,i):this.step(o))&&r.steps.unshift(n),o=o.parentNode;return null!=e&&0<=e&&(r.terminal.offset=e,"text"!=r.steps[r.steps.length-1].type)&&r.steps.push({type:"text",index:0}),r}equalStep(t,e){return!(!t||!e)&&t.index===e.index&&t.id===e.id&&t.type===e.type}fromRange(t,e,i){var n={range:!1,base:{},path:{},start:null,end:null},r=t.startContainer,o=t.endContainer,s=t.startOffset,a=t.endOffset,l=!1;if(i&&(l=null!=r.ownerDocument.querySelector("."+i)),"string"==typeof e?(n.base=this.parseComponent(e),n.spinePos=n.base.steps[1].index):"object"==typeof e&&(n.base=e),t.collapsed)l&&(s=this.patchOffset(r,s,i)),n.path=this.pathTo(r,s,i);else{n.range=!0,l&&(s=this.patchOffset(r,s,i)),n.start=this.pathTo(r,s,i),l&&(a=this.patchOffset(o,a,i)),n.end=this.pathTo(o,a,i),n.path={steps:[],terminal:null};for(var c=n.start.steps.length,u=0;u<c&&this.equalStep(n.start.steps[u],n.end.steps[u]);u++)u===c-1?n.start.terminal===n.end.terminal&&(n.path.steps.push(n.start.steps[u]),n.range=!1):n.path.steps.push(n.start.steps[u]);n.start.steps=n.start.steps.slice(n.path.steps.length),n.end.steps=n.end.steps.slice(n.path.steps.length)}return n}fromNode(t,e,i){var n={range:!1,base:{},path:{},start:null,end:null};return"string"==typeof e?(n.base=this.parseComponent(e),n.spinePos=n.base.steps[1].index):"object"==typeof e&&(n.base=e),n.path=this.pathTo(t,null,i),n}filter(t,e){var i,n,r,o=!1;return(e=(3===t.nodeType?(o=!0,r=t.parentNode,t.parentNode):(o=!1,t)).classList.contains(e))&&o?(n=r.previousSibling,r=r.nextSibling,n&&3===n.nodeType?i=n:r&&3===r.nodeType&&(i=r),i||t):!(e&&!o)&&t}
1patchOffset(t,e,i){if(3!=t.nodeType)throw new Error("Anchor must be a text node");var n=t,r=e;for(t.parentNode.classList.contains(i)&&(n=t.parentNode);n.previousSibling&&(1!==n.previousSibling.nodeType||n.previousSibling.classList.contains(i));)r+=n.previousSibling.textContent.length,n=n.previousSibling;return r}normalizedMap(t,e,i){for(var n,r,o={},s=-1,a=t.length,l=0;l<a;l++)1===(n=t[l].nodeType)&&t[l].classList.contains(i)&&(n=3),0<l&&3===n&&3===r?o[l]=s:e===n&&(o[l]=s+=1),r=n;return o}position(t){var e=1===t.nodeType?(e=(e=t.parentNode.children)||Object(d.findChildren)(t.parentNode),Array.prototype.indexOf.call(e,t)):(e=this.textNodes(t.parentNode)).indexOf(t);return e}filteredPosition(t,e){var i;return(e=1===t.nodeType?(i=t.parentNode.children,this.normalizedMap(i,1,e)):(i=t.parentNode.childNodes,t.parentNode.classList.contains(e)&&(i=(t=t.parentNode).parentNode.childNodes),this.normalizedMap(i,3,e)))[Array.prototype.indexOf.call(i,t)]}stepsToXpath(t){var i=[".","*"];return t.forEach(function(t){var e=t.index+1;t.id?i.push("*[position()="+e+" and @id='"+t.id+"']"):"text"===t.type?i.push("text()["+e+"]"):i.push("*["+e+"]")}),i.join("/")}stepsToQuerySelector(t){var i=["html"];return t.forEach(function(t){var e=t.index+1;t.id?i.push("#"+t.id):"text"!==t.type&&i.push("*:nth-child("+e+")")}),i.join(">")}textNodes(t,e){return Array.prototype.slice.call(t.childNodes).filter(function(t){return 3===t.nodeType||!(!e||!t.classList.contains(e))})}walkToNode(t,e,i){for(var n,r=e||document,o=r.documentElement,s=t.length,a=0;a<s&&("element"===(n=t[a]).type?o=n.id?r.getElementById(n.id):(o.children||Object(d.findChildren)(o))[n.index]:"text"===n.type&&(o=this.textNodes(o,i)[n.index]),o);a++);return o}findNode(t,e,i){return e=e||document,t=i||void 0===e.evaluate?i?this.walkToNode(t,e,i):this.walkToNode(t,e):(i=this.stepsToXpath(t),e.evaluate(i,e,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)}fixMiss(t,e,i,n){var r,o,s,a=this.findNode(t.slice(0,-1),i,n),l=a.childNodes,c=this.normalizedMap(l,3,n),u=t[t.length-1].index;for(s in c){if(!c.hasOwnProperty(s))return;if(c[s]===u){if(!((o=(r=l[s]).textContent.length)<e)){a=1===r.nodeType?r.childNodes[0]:r;break}e-=o}}return{container:a,offset:e}}toRange(e,i){var n,t,r,o,s,a,l,e=e||document,c=this,u=!!i&&null!=e.querySelector("."+i),h=void 0!==e.createRange?e.createRange():new d.RangeObject;if(c.range?(n=c.start,s=c.path.steps.concat(n.steps),r=this.findNode(s,e,u?i:null),t=c.end,a=c.path.steps.concat(t.steps),o=this.findNode(a,e,u?i:null)):(n=c.path,s=c.path.steps,r=this.findNode(c.path.steps,e,u?i:null)),!r)return console.log("No startContainer found for",this.toString()),null;try{null!=n.terminal.offset?h.setStart(r,n.terminal.offset):h.setStart(r,0)}catch(t){l=this.fixMiss(s,n.terminal.offset,e,u?i:null),h.setStart(l.container,l.offset)}if(o)try{null!=t.terminal.offset?h.setEnd(o,t.terminal.offset):h.setEnd(o,0)}catch(t){l=this.fixMiss(a,c.end.terminal.offset,e,u?i:null),h.setEnd(l.container,l.offset)}return h}isCfiString(t){return"string"==typeof t&&0===t.indexOf("epubcfi(")&&")"===t[t.length-1]}generateChapterComponent(t,e,i){return t="/"+2*(t+1)+"/",t+=2*(parseInt(e)+1),i&&(t+="["+i+"]"),t}collapse(t){this.range&&(this.range=!1,t?(this.path.steps=this.path.steps.concat(this.start.steps),this.path.terminal=this.start.terminal):(this.path.steps=this.path.steps.concat(this.end.steps),this.path.terminal=this.end.terminal))}}},function(t,e,i){var n=i(49),s=i(66),a=Function.prototype.apply,l=Function.prototype.call,r=Object.create,o=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0},d=function(t,e){var i;return s(e),u.call(this,"__ee__")?i=this.__ee__:(i=h.value=r(null),o(this,"__ee__",h),h.value=null),i[t]?"object"==typeof i[t]?i[t].push(e):i[t]=[i[t],e]:i[t]=e,this},i=function(t,e){var i,n;return s(e),n=this,d.call(this,t,i=function(){f.call(n,t,i),a.call(e,this,arguments)}),i.__eeOnceListener__=e,this},f=function(t,e){var i,n,r,o;
1if(s(e),u.call(this,"__ee__")&&(i=this.__ee__)[t])if("object"==typeof(n=i[t]))for(o=0;r=n[o];++o)r!==e&&r.__eeOnceListener__!==e||(2===n.length?i[t]=n[o?0:1]:n.splice(o,1));else n!==e&&n.__eeOnceListener__!==e||delete i[t];return this},p=function(t){var e,i,n,r,o;if(u.call(this,"__ee__")&&(r=this.__ee__[t]))if("object"==typeof r){for(i=arguments.length,o=new Array(i-1),e=1;e<i;++e)o[e-1]=arguments[e];for(r=r.slice(),e=0;n=r[e];++e)a.call(n,this,o)}else switch(arguments.length){case 1:l.call(r,this);break;case 2:l.call(r,this,arguments[1]);break;case 3:l.call(r,this,arguments[1],arguments[2]);break;default:for(i=arguments.length,o=new Array(i-1),e=1;e<i;++e)o[e-1]=arguments[e];a.call(r,this,o)}},m={on:d,once:i,off:f,emit:p},g={on:n(d),once:n(i),off:n(f),emit:n(p)},v=c({},g);t.exports=e=function(t){return null==t?r(v):c(Object(t),g)},e.methods=m},function(t,e,i){var n=i(7),r=i.n(n);e.a=class{constructor(t){var e;-1<t.indexOf("://")&&(t=new URL(t).pathname),e=this.parse(t),this.path=t,this.isDirectory(t)?this.directory=t:this.directory=e.dir+"/",this.filename=e.base,this.extension=e.ext.slice(1)}parse(t){return r.a.parse(t)}isAbsolute(t){return r.a.isAbsolute(t||this.path)}isDirectory(t){return"/"===t.charAt(t.length-1)}resolve(t){return r.a.resolve(this.directory,t)}relative(t){return t&&-1<t.indexOf("://")?t:r.a.relative(this.directory,t)}splitPath(t){return this.splitPathRe.exec(t).slice(1)}toString(){return this.path}}},function(t,e,i){var r=i(4),n=i(7),o=i.n(n);e.a=class{constructor(t,e){var i=-1<t.indexOf("://"),n=t;if(this.Url=void 0,this.href=t,this.protocol="",this.origin="",this.hash="",this.hash="",this.search="",this.base=e,!i&&!1!==e&&"string"!=typeof e&&window&&window.location&&(this.base=window.location.href),i||this.base)try{this.base?this.Url=new URL(t,this.base):this.Url=new URL(t),this.href=this.Url.href,this.protocol=this.Url.protocol,this.origin=this.Url.origin,this.hash=this.Url.hash,this.search=this.Url.search,n=this.Url.pathname+(this.Url.search||"")}catch(t){this.Url=void 0,this.base&&(n=new r.a(this.base).resolve(n))}this.Path=new r.a(n),this.directory=this.Path.directory,this.filename=this.Path.filename,this.extension=this.Path.extension}path(){return this.Path}resolve(t){return-1<t.indexOf("://")?t:(t=o.a.resolve(this.directory,t),this.origin+t)}relative(t){return o.a.relative(t,this.directory)}toString(){return this.href}}},function(t,e,i){e.a=class{constructor(t){this.context=t||this,this.hooks=[]}register(){for(var t=0;t<arguments.length;++t)if("function"==typeof arguments[t])this.hooks.push(arguments[t]);else for(var e=0;e<arguments[t].length;++e)this.hooks.push(arguments[t][e])}deregister(e){for(let t=0;t<this.hooks.length;t++)if(this.hooks[t]===e){this.hooks.splice(t,1);break}}trigger(){var i=arguments,n=this.context,r=[];return this.hooks.forEach(function(t){try{var e=t.apply(n,i)}catch(t){console.log(t)}e&&"function"==typeof e.then&&r.push(e)}),Promise.all(r)}list(){return this.hooks}clear(){return this.hooks=[]}}},function(t,e,i){var o=o||{cwd:function(){return"/"}};function d(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+t)}function s(t,e){for(var i,n="",r=-1,o=0,s=0;s<=t.length;++s){if(s<t.length)i=t.charCodeAt(s);else{if(47===i)break;i=47}if(47===i){if(r!==s-1&&1!==o)if(r!==s-1&&2===o){if(n.length<2||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(2<n.length){for(var a=n.length-1,l=a;0<=l&&47!==n.charCodeAt(l);--l);if(l!==a){n=-1===l?"":n.slice(0,l),r=s,o=0;continue}}else if(2===n.length||1===n.length){n="",r=s,o=0;continue}e&&(0<n.length?n+="/..":n="..")}else 0<n.length?n+="/"+t.slice(r+1,s):n=t.slice(r+1,s);r=s,o=0}else 46===i&&-1!==o?++o:o=-1}return n}var f={resolve:function(){for(var t,e="",i=!1,n=arguments.length-1;-1<=n&&!i;n--){var r=0<=n?arguments[n]:t=void 0===t?o.cwd():t;d(r),0!==r.length&&(e=r+"/"+e,i=47===r.charCodeAt(0))}return e=s(e,!i),i?0<e.length?"/"+e:"/":0<e.length?e:"."},normalize:function(t){var e,i;return d(t),0===t.length?".":(e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1),0<(t=0!==(t=s(t,!e)).length||e?t:".").length&&i&&(t+="/"),e?"/"+t:t)},isAbsolute:function(t){return d(t),0<t.length&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var i=arguments[e];d(i),0<i.length&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":f.normalize(t)},relative:function(t,e){if(d(t),d(e),t===e)return"";if((t=f.resolve(t))===(e=f.resolve(e)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var n=t.length,r=n-i,o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var s=e.length-o,a=r<s?r:s,l=-1,c=0;c<=a;++c){if(c===a){if(a<s){if(47===e.charCodeAt(o+c))return e.slice(o+c+1);if(0===c)return e.slice(o+c)}else a<r&&(47===t.charCodeAt(i+c)?l=c:0===c&&(l=0));break}var u=t.charCodeAt(i+c);if(u!==e.charCodeAt(o+c))break;47===u&&(l=c)}for(var h="",c=i+l+1;c<=n;++c)c!==n&&47!==t.charCodeAt(c)||(0===h.length?h+="..":h+="/..");return 0<h.length?h+e.slice(o+l):(47===e.charCodeAt(o+=l)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(d(t),0===t.length)return".";for(var e=47===t.charCodeAt(0),i=-1,n=!0,r=t.length-1;1<=r;
1--r)if(47===t.charCodeAt(r)){if(!n){i=r;break}}else n=!1;return-1===i?e?"/":".":e&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');d(t);var i=0,n=-1,r=!0;if(void 0!==e&&0<e.length&&e.length<=t.length){if(e.length===t.length&&e===t)return"";for(var o=e.length-1,s=-1,a=t.length-1;0<=a;--a){var l=t.charCodeAt(a);if(47===l){if(!r){i=a+1;break}}else-1===s&&(r=!1,s=a+1),0<=o&&(l===e.charCodeAt(o)?-1==--o&&(n=a):(o=-1,n=s))}return i===n?n=s:-1===n&&(n=t.length),t.slice(i,n)}for(a=t.length-1;0<=a;--a)if(47===t.charCodeAt(a)){if(!r){i=a+1;break}}else-1===n&&(r=!1,n=a+1);return-1===n?"":t.slice(i,n)},extname:function(t){d(t);for(var e=-1,i=0,n=-1,r=!0,o=0,s=t.length-1;0<=s;--s){var a=t.charCodeAt(s);if(47===a){if(r)continue;i=s+1;break}-1===n&&(r=!1,n=s+1),46===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1)}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===i+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('Parameter "pathObject" must be an object, not '+typeof t);return e="/",i=(t=t).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),i?i===t.root?i+n:i+e+n:n;var e,i,n},parse:function(t){d(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0!==t.length){for(var i,n=47===t.charCodeAt(0),r=n?(e.root="/",1):0,o=-1,s=0,a=-1,l=!0,c=t.length-1,u=0;r<=c;--c){if(47===(i=t.charCodeAt(c))){if(l)continue;s=c+1;break}-1===a&&(l=!1,a=c+1),46===i?-1===o?o=c:1!==u&&(u=1):-1!==o&&(u=-1)}-1===o||-1===a||0===u||1===u&&o===a-1&&o===s+1?-1!==a&&(e.base=e.name=0===s&&n?t.slice(1,a):t.slice(s,a)):(0===s&&n?(e.name=t.slice(1,o),e.base=t.slice(1,a)):(e.name=t.slice(s,o),e.base=t.slice(s,a)),e.ext=t.slice(o,a)),0<s?e.dir=t.slice(0,s-1):n&&(e.dir="/")}return e},sep:"/",delimiter:":",posix:null};t.exports=f},function(t,e,i){i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"d",function(){return o}),i.d(e,"c",function(){return l}),i.d(e,"e",function(){return c});var s=i(0),a=i(5);i(4);function n(t,e){var i,n,e=e.url,r=-1<e.indexOf("://");t&&(n=Object(s.qs)(t,"head"),(i=Object(s.qs)(n,"base"))||(i=t.createElement("base"),n.insertBefore(i,n.firstChild)),!r&&window&&window.location&&(e=window.location.origin+e),i.setAttribute("href",e))}function r(t,e){var i,n,e=e.canonical;t&&(i=Object(s.qs)(t,"head"),(n=Object(s.qs)(i,"link[rel='canonical']"))?n.setAttribute("href",e):((n=t.createElement("link")).setAttribute("rel","canonical"),n.setAttribute("href",e),i.appendChild(n)))}function o(t,e){var i,n,e=e.idref;t&&(i=Object(s.qs)(t,"head"),(n=Object(s.qs)(i,"link[property='dc.identifier']"))?n.setAttribute("content",e):((n=t.createElement("meta")).setAttribute("name","dc.identifier"),n.setAttribute("content",e),i.appendChild(n)))}function l(t,n){var e=t.querySelectorAll("a[href]");if(e.length)for(var t=Object(s.qs)(t.ownerDocument,"base"),r=t?t.getAttribute("href"):void 0,i=function(t){var e,i=t.getAttribute("href");if(0!==i.indexOf("mailto:"))if(-1<i.indexOf("://"))t.setAttribute("target","_blank");else{try{e=new a.a(i,r)}catch(t){}t.onclick=function(){return e&&e.hash?n(e.Path.path+e.hash):n(e?e.Path.path:i),!1}}}.bind(this),o=0;o<e.length;o++)i(e[o])}function c(i,t,n){return t.forEach(function(t,e){t&&n[e]&&(t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=i.replace(new RegExp(t,"g"),n[e]))}),i}},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(3),n=i.n(n),u=i(0),s=i(2),o=i(15),r=i(8),a=i(1),i="undefined"!=typeof navigator,l=i&&/Chrome/.test(navigator.userAgent);let c=i&&!l&&/AppleWebKit/.test(navigator.userAgent);class h{constructor(t,e,i,n){this.epubcfi=new s.a,this.document=t,this.documentElement=this.document.documentElement,this.content=e||this.document.body,this.window=this.document.defaultView,this._size={width:0,height:0},this.sectionIndex=n||0,this.cfiBase=i||"",this.epubReadingSystem("epub.js",a.b),this.called=0,this.active=!0,this.listeners()}static get listenedEvents(){return a.a}width(t){var e=this.content;return t&&Object(u.isNumber)(t)&&(t+="px"),t&&(e.style.width=t),parseInt(this.window.getComputedStyle(e).width)}height(t){var e=this.content;return t&&Object(u.isNumber)(t)&&(t+="px"),t&&(e.style.height=t),parseInt(this.window.getComputedStyle(e).height)}contentWidth(t){var e=this.content||this.document.body;return t&&Object(u.isNumber)(t)&&(t+="px"),t&&(e.style.width=t),parseInt(this.window.getComputedStyle(e).width)}contentHeight(t){var e=this.content||this.document.body;return t&&Object(u.isNumber)(t)&&(t+="px"),t&&(e.style.height=t),parseInt(this.window.getComputedStyle(e).height)}textWidth(){let t;var e=this.document.createRange(),i=this.content||this.document.body,n=Object(u.borders)(i);return e.selectNodeContents(i),i=e.getBoundingClientRect(),t=i.width,n&&n.width&&(t+=n.width),Math.round(t)}textHeight(){var t=this.document.createRange(),e=this.content||this.document.body;return t.selectNodeContents(e),e=t.getBoundingClientRect().bottom,Math.round(e)}scrollWidth(){return this.documentElement.scrollWidth}scrollHeight(){return this.documentElement.scrollHeight}overflow(t){return t&&(this.documentElement.style.overflow=t),this.window.getComputedStyle(this.documentElement).overflow}overflowX(t){return t&&(this.documentElement.style.overflowX=t),this.window.getComputedStyle(this.documentElement).overflowX}overflowY(t){return t&&(this.documentElement.style.overflowY=t),this.window.getComputedStyle(this.documentElement).overflowY}css(t,e,i){var n=this.content||this.document.body;return e?n.style.setProperty(t,e,i?"important":""):n.style.removeProperty(t),this.window.getComputedStyle(n)[t]}viewport(t){var e,i,n,r,o,s,a=this.document.querySelector("meta[name='viewport']"),l={width:void 0,height:void 0,scale:void 0,minimum:void 0,maximum:void 0,scalable:void 0},c=[];return a&&a.hasAttribute("content")&&(e=(s=a.getAttribute("content")).match(/width\s*=\s*([^,]*)/),i=s.match(/height\s*=\s*([^,]*)/),n=s.match(/initial-scale\s*=\s*([^,]*)/),r=s.match(/minimum-scale\s*=\s*([^,]*)/),o=s.match(/maximum-scale\s*=\s*([^,]*)/),s=s.match(/user-scalable\s*=\s*([^,]*)/),e&&e.length&&void 0!==e[1]&&(l.width=e[1]),i&&i.length&&void 0!==i[1]&&(l.height=i[1]),n&&n.length&&void 0!==n[1]&&(l.scale=n[1]),r&&r.length&&void 0!==r[1]&&(l.minimum=r[1]),o&&o.length&&void 0!==o[1]&&(l.maximum=o[1]),s)&&s.length&&void 0!==s[1]&&(l.scalable=s[1]),e=Object(u.defaults)(t||{},l),t&&(e.width&&c.push("width="+e.width),e.height&&c.push("height="+e.height),e.scale&&c.push("initial-scale="+e.scale),"no"===e.scalable?(c.push("minimum-scale="+e.scale),c.push("maximum-scale="+e.scale),c.push("user-scalable="+e.scalable)):(e.scalable&&c.push("user-scalable="+e.scalable),e.minimum&&c.push("minimum-scale="+e.minimum),e.maximum&&c.push("minimum-scale="+e.maximum)),a||((a=this.document.createElement("meta")).setAttribute("name","viewport"),this.document.querySelector("head").appendChild(a)),a.setAttribute("content",c.join(", ")),this.window.scrollTo(0,0)),e}
1expand(){this.emit(a.c.CONTENTS.EXPAND)}listeners(){this.imageLoadListeners(),this.mediaQueryListeners(),this.addEventListeners(),this.addSelectionListeners(),"undefined"==typeof ResizeObserver?(this.resizeListeners(),this.visibilityListeners()):this.resizeObservers(),this.linksHandler()}removeListeners(){this.removeEventListeners(),this.removeSelectionListeners(),this.observer&&this.observer.disconnect(),clearTimeout(this.expanding)}resizeCheck(){var t=this.textWidth(),e=this.textHeight();t==this._size.width&&e==this._size.height||(this._size={width:t,height:e},this.onResize&&this.onResize(this._size),this.emit(a.c.CONTENTS.RESIZE,this._size))}resizeListeners(){clearTimeout(this.expanding),requestAnimationFrame(this.resizeCheck.bind(this)),this.expanding=setTimeout(this.resizeListeners.bind(this),350)}visibilityListeners(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&!1===this.active?(this.active=!0,this.resizeListeners()):(this.active=!1,clearTimeout(this.expanding))})}transitionListeners(){var t=this.content;t.style.transitionProperty="font, font-size, font-size-adjust, font-stretch, font-variation-settings, font-weight, width, height",t.style.transitionDuration="0.001ms",t.style.transitionTimingFunction="linear",t.style.transitionDelay="0",this._resizeCheck=this.resizeCheck.bind(this),this.document.addEventListener("transitionend",this._resizeCheck)}mediaQueryListeners(){for(var t,e=this.document.styleSheets,i=function(t){t.matches&&!this._expanding&&setTimeout(this.expand.bind(this),1)}.bind(this),n=0;n<e.length;n+=1){try{t=e[n].cssRules}catch(t){return}if(!t)return;for(var r=0;r<t.length;r+=1)t[r].media&&this.window.matchMedia(t[r].media.mediaText).addListener(i)}}resizeObservers(){this.observer=new ResizeObserver(t=>{requestAnimationFrame(this.resizeCheck.bind(this))}),this.observer.observe(this.document.documentElement)}mutationObservers(){this.observer=new MutationObserver(t=>{this.resizeCheck()});this.observer.observe(this.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}imageLoadListeners(){for(var t,e=this.document.querySelectorAll("img"),i=0;i<e.length;i++)void 0!==(t=e[i]).naturalWidth&&0===t.naturalWidth&&(t.onload=this.expand.bind(this))}fontLoadListeners(){this.document&&this.document.fonts&&this.document.fonts.ready.then(function(){this.resizeCheck()}.bind(this))}root(){return this.document?this.document.documentElement:null}locationOf(t,e){var i,n={left:0,top:0};if(this.document){if(this.epubcfi.isCfiString(t)){var e=new s.a(t).toRange(this.document,e);if(e){try{if(!e.endContainer||e.startContainer==e.endContainer&&e.startOffset==e.endOffset){let t=e.startContainer.textContent.indexOf(" ",e.startOffset);-1==t&&(t=e.startContainer.textContent.length),e.setEnd(e.startContainer,t)}}catch(t){console.error("setting end offset to start container length failed",t)}if(e.startContainer.nodeType===Node.ELEMENT_NODE)i=e.startContainer.getBoundingClientRect(),n.left=i.left,n.top=i.top;else if(c){var r=e.startContainer,o=new Range;try{i=(1===r.nodeType?r:e.startOffset+2<r.length?(o.setStart(r,e.startOffset),o.setEnd(r,e.startOffset+2),o):0<e.startOffset-2?(o.setStart(r,e.startOffset-2),o.setEnd(r,e.startOffset),o):r.parentNode).getBoundingClientRect()}catch(t){console.error(t,t.stack)}}else i=e.getBoundingClientRect()}}else"string"==typeof t&&-1<t.indexOf("#")&&(o=t.substring(t.indexOf("#")+1),r=this.document.getElementById(o))&&(i=(c?((e=new Range).selectNode(r),e):r).getBoundingClientRect());i&&(n.left=i.left,n.top=i.top)}return n}addStylesheet(r){return new Promise(function(t,e){var i,n=!1;this.document?(i=this.document.querySelector("link[href='"+r+"']"))?t(!0):((i=this.document.createElement("link")).type="text/css",i.rel="stylesheet",i.href=r,i.onload=i.onreadystatechange=function(){n||this.readyState&&"complete"!=this.readyState||(n=!0,setTimeout(()=>{t(!0)},1))},this.document.head.appendChild(i)):t(!1)}.bind(this))}_getStylesheetNode(t){var e;return!!this.document&&((e=this.document.getElementById(t="epubjs-inserted-css-"+(t||"")))||((e=this.document.createElement("style")).id=t,this.document.head.appendChild(e)),e)}
1addStylesheetCss(t,e){return!(!this.document||!t||(this._getStylesheetNode(e).innerHTML=t,0))}addStylesheetRules(n,t){if(this.document&&n&&0!==n.length){var r=this._getStylesheetNode(t).sheet;if("[object Array]"===Object.prototype.toString.call(n))for(var e=0,i=n.length;e<i;e++){var o=1,s=n[e],a=n[e][0],l="";"[object Array]"===Object.prototype.toString.call(s[1][0])&&(s=s[1],o=0);for(var c=s.length;o<c;o++){var u=s[o];l+=u[0]+":"+u[1]+(u[2]?" !important":"")+";\n"}r.insertRule(a+"{"+l+"}",r.cssRules.length)}else Object.keys(n).forEach(i=>{let e=n[i];var t;Array.isArray(e)?e.forEach(e=>{var t=Object.keys(e).map(t=>t+":"+e[t]).join(";");r.insertRule(i+`{${t}}`,r.cssRules.length)}):(t=Object.keys(e).map(t=>t+":"+e[t]).join(";"),r.insertRule(i+`{${t}}`,r.cssRules.length))})}}addScript(r){return new Promise(function(t,e){var i,n=!1;this.document?((i=this.document.createElement("script")).type="text/javascript",i.async=!0,i.src=r,i.onload=i.onreadystatechange=function(){n||this.readyState&&"complete"!=this.readyState||(n=!0,setTimeout(function(){t(!0)},1))},this.document.head.appendChild(i)):t(!1)}.bind(this))}addClass(t){var e;this.document&&(e=this.content||this.document.body)&&e.classList.add(t)}removeClass(t){var e;this.document&&(e=this.content||this.document.body)&&e.classList.remove(t)}addEventListeners(){this.document&&(this._triggerEvent=this.triggerEvent.bind(this),a.a.forEach(function(t){this.document.addEventListener(t,this._triggerEvent,{passive:!0})},this))}removeEventListeners(){this.document&&(a.a.forEach(function(t){this.document.removeEventListener(t,this._triggerEvent,{passive:!0})},this),this._triggerEvent=void 0)}triggerEvent(t){this.emit(t.type,t)}addSelectionListeners(){this.document&&(this._onSelectionChange=this.onSelectionChange.bind(this),this.document.addEventListener("selectionchange",this._onSelectionChange,{passive:!0}))}removeSelectionListeners(){this.document&&(this.document.removeEventListener("selectionchange",this._onSelectionChange,{passive:!0}),this._onSelectionChange=void 0)}onSelectionChange(t){this.selectionEndTimeout&&clearTimeout(this.selectionEndTimeout),this.selectionEndTimeout=setTimeout(function(){var t=this.window.getSelection();this.triggerSelectedEvent(t)}.bind(this),250)}triggerSelectedEvent(t){var e;t&&0<t.rangeCount&&((t=t.getRangeAt(0)).collapsed||(e=new s.a(t,this.cfiBase).toString(),this.emit(a.c.CONTENTS.SELECTED,e),this.emit(a.c.CONTENTS.SELECTED_RANGE,t)))}range(t,e){return new s.a(t).toRange(this.document,e)}cfiFromRange(t,e){return new s.a(t,this.cfiBase,e).toString()}cfiFromNode(t,e){return new s.a(t,this.cfiBase,e).toString()}map(t){return new o.a(t).section()}size(t,e){var i={scale:1,scalable:"no"};this.layoutStyle("scrolling"),0<=t&&(this.width(t),this.css("padding","0 "+(i.width=t)/12+"px")),0<=e&&(this.height(e),i.height=e),this.css("margin","0"),this.css("box-sizing","border-box"),this.viewport(i)}columns(t,e,i,n,r){var o=Object(u.prefixed)("column-axis"),s=Object(u.prefixed)("column-gap"),a=Object(u.prefixed)("column-width"),l=Object(u.prefixed)("column-fill"),c=0===this.writingMode().indexOf("vertical")?"vertical":"horizontal";this.layoutStyle("paginated"),"rtl"===r&&"horizontal"==c&&this.direction(r),this.width(t),this.height(e),this.viewport({width:t,height:e,scale:1,scalable:"no"}),this.css("overflow-y","hidden"),this.css("margin","0",!0),"vertical"==c?(this.css("padding-top",n/2+"px",!0),this.css("padding-bottom",n/2+"px",!0),this.css("padding-left","20px"),this.css("padding-right","20px"),this.css(o,"vertical")):(this.css("padding-top","20px"),this.css("padding-bottom","20px"),this.css("padding-left",n/2+"px",!0),this.css("padding-right",n/2+"px",!0),this.css(o,"horizontal")),this.css("box-sizing","border-box"),this.css("max-width","inherit"),this.css(l,"auto"),this.css(s,n+"px"),this.css(a,i+"px"),this.css("-webkit-line-box-contain","block glyphs replaced")}scaler(t,e,i){var t="scale("+t+")",n="";this.css("transform-origin","top left"),this.css("transform",t+(n=0<=e||0<=i?" translate("+(e||0)+"px, "+(i||0)+"px )":n))}fit(t,e,i){var n=this.viewport(),r=parseInt(n.width),n=parseInt(n.height),o=t/r,e=e/n,o=o<e?o:e;this.layoutStyle("paginated"),this.width(r),this.height(n),this.overflow("hidden"),this.scaler(o,0,0),this.css("background-size",r*o+"px "+n*o+"px"),this.css("background-color","transparent"),i&&i.properties.includes("page-spread-left")&&this.css("margin-left",t-r*o+"px")}direction(t){this.documentElement&&(this.documentElement.style.direction=t)}mapPage(t,e,i,n,r){return new o.a(e,r).page(this,t,i,n)}linksHandler(){Object(r.c)(this.content,t=>
1{this.emit(a.c.CONTENTS.LINK_CLICKED,t)})}writingMode(t){var e=Object(u.prefixed)("writing-mode");return t&&this.documentElement&&(this.documentElement.style[e]=t),this.window.getComputedStyle(this.documentElement)[e]||""}layoutStyle(t){return t&&(this._layoutStyle=t,navigator.epubReadingSystem.layoutStyle=this._layoutStyle),this._layoutStyle||"paginated"}epubReadingSystem(t,e){return navigator.epubReadingSystem={name:t,version:e,layoutStyle:this.layoutStyle(),hasFeature:function(t){switch(t){case"dom-manipulation":case"layout-changes":case"touch-events":case"mouse-events":case"keyboard-events":return!0;default:return!1}}},navigator.epubReadingSystem}destroy(){this.removeListeners()}}n()(h.prototype),e.a=h},function(t,e,i){var b=i(21),y=i(39),w=i(41),S=Math.max,_=Math.min;t.exports=function(n,i,t){var r,o,s,a,l,c,u=0,h=!1,d=!1,e=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function f(t){var e=r,i=o;return r=o=void 0,u=t,a=n.apply(i,e)}function p(t){var e=t-c;return void 0===c||i<=e||e<0||d&&s<=t-u}function m(){var t,e=y();if(p(e))return g(e);l=setTimeout(m,(t=i-((e=e)-c),d?_(t,s-(e-u)):t))}function g(t){return l=void 0,e&&r?f(t):(r=o=void 0,a)}function v(){var t=y(),e=p(t);if(r=arguments,o=this,c=t,e){if(void 0===l)return u=t=c,l=setTimeout(m,i),h?f(t):a;if(d)return clearTimeout(l),l=setTimeout(m,i),f(c)}return void 0===l&&(l=setTimeout(m,i)),a}return i=w(i)||0,b(t)&&(h=!!t.leading,d="maxWait"in t,s=d?S(w(t.maxWait)||0,i):s,e="trailing"in t?!!t.trailing:e),v.cancel=function(){void 0!==l&&clearTimeout(l),r=c=o=l=void(u=0)},v.flush=function(){return void 0===l?a:g(y())},v}},function(t,e,i){var n=i(3),n=i.n(n),r=i(0),o=i(6),c=i(2),s=i(13),a=i(19),l=i(5);var u=class{constructor(t){this.rendition=t,this._themes={default:{rules:{},url:"",serialized:""}},this._overrides={},this._current="default",this._injected=[],this.rendition.hooks.content.register(this.inject.bind(this)),this.rendition.hooks.content.register(this.overrides.bind(this))}register(){if(0!==arguments.length)return 1===arguments.length&&"object"==typeof arguments[0]?this.registerThemes(arguments[0]):1===arguments.length&&"string"==typeof arguments[0]?this.default(arguments[0]):2===arguments.length&&"string"==typeof arguments[1]?this.registerUrl(arguments[0],arguments[1]):2===arguments.length&&"object"==typeof arguments[1]?this.registerRules(arguments[0],arguments[1]):void 0}default(t){if(t)return"string"==typeof t?this.registerUrl("default",t):"object"==typeof t?this.registerRules("default",t):void 0}registerThemes(t){for(var e in t)t.hasOwnProperty(e)&&("string"==typeof t[e]?this.registerUrl(e,t[e]):this.registerRules(e,t[e]))}registerCss(t,e){this._themes[t]={serialized:e},!this._injected[t]&&"default"!=t||this.update(t)}registerUrl(t,e){e=new l.a(e);this._themes[t]={url:e.toString()},!this._injected[t]&&"default"!=t||this.update(t)}registerRules(t,e){this._themes[t]={rules:e},!this._injected[t]&&"default"!=t||this.update(t)}select(e){var i=this._current;this._current=e,this.update(e),this.rendition.getContents().forEach(t=>{t.removeClass(i),t.addClass(e)})}update(e){this.rendition.getContents().forEach(t=>{this.add(e,t)})}inject(t){var e,i,n=[],r=this._themes;for(i in r)!r.hasOwnProperty(i)||i!==this._current&&"default"!==i||(((e=r[i]).rules&&0<Object.keys(e.rules).length||e.url&&-1===n.indexOf(e.url))&&this.add(i,t),this._injected.push(i));"default"!=this._current&&t.addClass(this._current)}add(t,e){var i=this._themes[t];i&&e&&(i.url?e.addStylesheet(i.url):i.serialized?(e.addStylesheetCss(i.serialized,t),i.injected=!0):i.rules&&(e.addStylesheetRules(i.rules,t),i.injected=!0))}override(e,t,i){var n=this.rendition.getContents();this._overrides[e]={value:t,priority:!0===i},n.forEach(t=>{t.css(e,this._overrides[e].value,this._overrides[e].priority)})}removeOverride(e){var t=this.rendition.getContents();delete this._overrides[e],t.forEach(t=>{t.css(e)})}overrides(t){var e,i=this._overrides;for(e in i)i.hasOwnProperty(e)&&t.css(e,i[e].value,i[e].priority)}fontSize(t){this.override("font-size",t)}font(t){this.override("font-family",t,!0)}destroy(){this.rendition=void 0,this._themes=void 0,this._overrides=void 0,this._current=void 0,this._injected=void 0}},h=(i(10),i(1));class d{constructor({type:t,cfiRange:e,data:i,sectionIndex:n,cb:r,className:o,styles:s}){this.type=t,this.cfiRange=e,this.data=i,this.sectionIndex=n,this.mark=void 0,this.cb=r,this.className=o,this.styles=s}update(t){this.data=t}attach(t){var{cfiRange:e,data:i,type:n,cb:r,className:o,styles:s}=this;let a;return"highlight"===n?a=t.highlight(e,i,r,o,s):"underline"===n?a=t.underline(e,i,r,o,s):"mark"===n&&(a=t.mark(e,i,r)),this.mark=a,this.emit
1(h.c.ANNOTATION.ATTACH,a),a}detach(t){var{cfiRange:e,type:i}=this;let n;return t&&("highlight"===i?n=t.unhighlight(e):"underline"===i?n=t.ununderline(e):"mark"===i&&(n=t.unmark(e))),this.mark=void 0,this.emit(h.c.ANNOTATION.DETACH,n),n}text(){}}n()(d.prototype);var f=class{constructor(t){this.rendition=t,this.highlights=[],this.underlines=[],this.marks=[],this._annotations={},this._annotationsBySectionIndex={},this.rendition.hooks.render.register(this.inject.bind(this)),this.rendition.hooks.unloaded.register(this.clear.bind(this))}add(t,e,i,n,r,o){var s=encodeURI(e+t),a=new c.a(e).spinePos;let l=new d({type:t,cfiRange:e,data:i,sectionIndex:a,cb:n,className:r,styles:o});return this._annotations[s]=l,a in this._annotationsBySectionIndex?this._annotationsBySectionIndex[a].push(s):this._annotationsBySectionIndex[a]=[s],this.rendition.views().forEach(t=>{l.sectionIndex===t.index&&l.attach(t)}),l}remove(t,i){let n=encodeURI(t+i);if(n in this._annotations){let e=this._annotations[n];i&&e.type!==i||(this.rendition.views().forEach(t=>{this._removeFromAnnotationBySectionIndex(e.sectionIndex,n),e.sectionIndex===t.index&&e.detach(t)}),delete this._annotations[n])}}_removeFromAnnotationBySectionIndex(t,e){this._annotationsBySectionIndex[t]=this._annotationsAt(t).filter(t=>t!==e)}_annotationsAt(t){return this._annotationsBySectionIndex[t]}highlight(t,e,i,n,r){return this.add("highlight",t,e,i,n,r)}underline(t,e,i,n,r){return this.add("underline",t,e,i,n,r)}mark(t,e,i){return this.add("mark",t,e,i)}each(){return this._annotations.forEach.apply(this._annotations,arguments)}inject(e){var t=e.index;t in this._annotationsBySectionIndex&&this._annotationsBySectionIndex[t].forEach(t=>{this._annotations[t].attach(e)})}clear(e){var t=e.index;t in this._annotationsBySectionIndex&&this._annotationsBySectionIndex[t].forEach(t=>{this._annotations[t].detach(e)})}show(){}hide(){}},p=i(23),m=i(14),g=i(24);class v{constructor(t,e){this.settings=Object(r.extend)(this.settings||{},{width:null,height:null,ignoreClass:"",manager:"default",view:"iframe",flow:null,layout:null,spread:null,minSpreadWidth:800,stylesheet:null,resizeOnOrientationChange:!0,script:null,snap:!1,defaultDirection:"ltr",allowScriptedContent:!1,allowPopups:!1}),Object(r.extend)(this.settings,e),"object"==typeof this.settings.manager&&(this.manager=this.settings.manager),this.book=t,this.hooks={},this.hooks.display=new o.a(this),this.hooks.serialize=new o.a(this),this.hooks.content=new o.a(this),this.hooks.unloaded=new o.a(this),this.hooks.layout=new o.a(this),this.hooks.render=new o.a(this),this.hooks.show=new o.a(this),this.hooks.content.register(this.handleLinks.bind(this)),this.hooks.content.register(this.passEvents.bind(this)),this.hooks.content.register(this.adjustImages.bind(this)),this.book.spine.hooks.content.register(this.injectIdentifier.bind(this)),this.settings.stylesheet&&this.book.spine.hooks.content.register(this.injectStylesheet.bind(this)),this.settings.script&&this.book.spine.hooks.content.register(this.injectScript.bind(this)),this.themes=new u(this),this.annotations=new f(this),this.epubcfi=new c.a,this.q=new s.a(this),this.location=void 0,this.q.enqueue(this.book.opened),this.starting=new r.defer,this.started=this.starting.promise,this.q.enqueue(this.start)}setManager(t){this.manager=t}requireManager(t){t="string"==typeof t&&"default"===t?m.a:"string"==typeof t&&"continuous"===t?g.a:t;return t}requireView(t){t="string"==typeof t&&"iframe"===t?p.a:t;return t}start(){switch(this.settings.layout||"pre-paginated"!==this.book.package.metadata.layout&&"true"!==this.book.displayOptions.fixedLayout||(this.settings.layout="pre-paginated"),this.book.package.metadata.spread){case"none":this.settings.spread="none";break;case"both":this.settings.spread=!0}this.manager||(this.ViewManager=this.requireManager(this.settings.manager),this.View=this.requireView(this.settings.view),this.manager=new this.ViewManager({view:this.View,queue:this.q,request:this.book.load.bind(this.book),settings:this.settings})),this.direction(this.book.package.metadata.direction||this.settings.defaultDirection),this.settings.globalLayoutProperties=this.determineLayoutProperties(this.book.package.metadata),this.flow(this.settings.globalLayoutProperties.flow),this.layout(this.settings.globalLayoutProperties),this.manager.on(h.c.MANAGERS.ADDED,this.afterDis
1played.bind(this)),this.manager.on(h.c.MANAGERS.REMOVED,this.afterRemoved.bind(this)),this.manager.on(h.c.MANAGERS.RESIZED,this.onResized.bind(this)),this.manager.on(h.c.MANAGERS.ORIENTATION_CHANGE,this.onOrientationChange.bind(this)),this.manager.on(h.c.MANAGERS.SCROLLED,this.reportLocation.bind(this)),this.emit(h.c.RENDITION.STARTED),this.starting.resolve()}attachTo(t){return this.q.enqueue(function(){this.manager.render(t,{width:this.settings.width,height:this.settings.height}),this.emit(h.c.RENDITION.ATTACHED)}.bind(this))}display(t){return this.displaying&&this.displaying.resolve(),this.q.enqueue(this._display,t)}_display(t){var e,i,n;if(this.book)return this.epubcfi.isCfiString(t),i=(e=new r.defer).promise,this.displaying=e,this.book.locations.length()&&Object(r.isFloat)(t)&&(t=this.book.locations.cfiFromPercentage(parseFloat(t))),(n=this.book.spine.get(t))?this.manager.display(n,t).then(()=>{e.resolve(n),this.displaying=void 0,this.emit(h.c.RENDITION.DISPLAYED,n),this.reportLocation()},t=>{this.emit(h.c.RENDITION.DISPLAY_ERROR,t)}):e.reject(new Error("No Section Found")),i}afterDisplayed(i){i.on(h.c.VIEWS.MARK_CLICKED,(t,e)=>this.triggerMarkEvent(t,e,i.contents)),this.hooks.render.trigger(i,this).then(()=>{i.contents?this.hooks.content.trigger(i.contents,this).then(()=>{this.emit(h.c.RENDITION.RENDERED,i.section,i)}):this.emit(h.c.RENDITION.RENDERED,i.section,i)})}afterRemoved(t){this.hooks.unloaded.trigger(t,this).then(()=>{this.emit(h.c.RENDITION.REMOVED,t.section,t)})}onResized(t,e){this.emit(h.c.RENDITION.RESIZED,{width:t.width,height:t.height},e),this.location&&this.location.start&&this.display(e||this.location.start.cfi)}onOrientationChange(t){this.emit(h.c.RENDITION.ORIENTATION_CHANGE,t)}moveTo(t){this.manager.moveTo(t)}resize(t,e,i){t&&(this.settings.width=t),e&&(this.settings.height=e),this.manager.resize(t,e,i)}clear(){this.manager.clear()}next(){return this.q.enqueue(this.manager.next.bind(this.manager)).then(this.reportLocation.bind(this))}prev(){return this.q.enqueue(this.manager.prev.bind(this.manager)).then(this.reportLocation.bind(this))}determineLayoutProperties(t){var e=this.settings.layout||t.layout||"reflowable",i=this.settings.spread||t.spread||"auto",n=this.settings.orientation||t.orientation||"auto",r=this.settings.flow||t.flow||"auto",o=t.viewport||"",s=this.settings.minSpreadWidth||t.minSpreadWidth||800,t=this.settings.direction||t.direction||"ltr";return(0===this.settings.width||0<this.settings.width)&&0!==this.settings.height&&this.settings.height,{layout:e,spread:i,orientation:n,flow:r,viewport:o,minSpreadWidth:s,direction:t}}flow(t){var e="auto"!==t&&"paginated"!==t?"scrolled"!==t&&"scrolled-doc"!==t&&"scrolled-continuous"!==t?t:"scrolled":"paginated";this.settings.flow=t,this._layout&&this._layout.flow(e),this.manager&&this._layout&&this.manager.applyLayout(this._layout),this.manager&&this.manager.updateFlow(e),this.manager&&this.manager.isRendered()&&this.location&&(this.manager.clear(),this.display(this.location.start.cfi))}layout(t){return t&&(this._layout=new a.a(t),this._layout.spread(t.spread,this.settings.minSpreadWidth),this._layout.on(h.c.LAYOUT.UPDATED,(t,e)=>{this.emit(h.c.RENDITION.LAYOUT,t,e)})),this.manager&&this._layout&&this.manager.applyLayout(this._layout),this._layout}spread(t,e){this.settings.spread=t,e&&(this.settings.minSpreadWidth=e),this._layout&&this._layout.spread(t,e),this.manager&&this.manager.isRendered()&&this.manager.updateLayout()}direction(t){this.settings.direction=t||"ltr",this.manager&&this.manager.direction(this.settings.direction),this.manager&&this.manager.isRendered()&&this.location&&(this.manager.clear(),this.display(this.location.start.cfi))}reportLocation(){return this.q.enqueue(function(){requestAnimationFrame(function(){var t=this.manager.currentLocation();t&&t.then&&"function"==typeof t.then?t.then(function(t){t=this.located(t);t&&t.start&&t.end&&(this.location=t,this.emit(h.c.RENDITION.LOCATION_CHANGED,{index:this.location.start.index,href:this.location.start.href,start:this.location.start.cfi,end:this.location.end.cfi,percentage:this.location.start.percentage}
1),this.emit(h.c.RENDITION.RELOCATED,this.location))}.bind(this)):t&&(t=this.located(t))&&t.start&&t.end&&(this.location=t,this.emit(h.c.RENDITION.LOCATION_CHANGED,{index:this.location.start.index,href:this.location.start.href,start:this.location.start.cfi,end:this.location.end.cfi,percentage:this.location.start.percentage}),this.emit(h.c.RENDITION.RELOCATED,this.location))}.bind(this))}.bind(this))}currentLocation(){var t=this.manager.currentLocation();if(t&&t.then&&"function"==typeof t.then)t.then(function(t){return this.located(t)}.bind(this));else if(t)return this.located(t)}located(t){var e,i,n,r;return t.length?(i={start:{index:(e=t[0]).index,href:e.href,cfi:e.mapping.start,displayed:{page:e.pages[0]||1,total:e.totalPages}},end:{index:(t=t[t.length-1]).index,href:t.href,cfi:t.mapping.end,displayed:{page:t.pages[t.pages.length-1]||1,total:t.totalPages}}},n=this.book.locations.locationFromCfi(e.mapping.start),r=this.book.locations.locationFromCfi(t.mapping.end),null!=n&&(i.start.location=n,i.start.percentage=this.book.locations.percentageFromLocation(n)),null!=r&&(i.end.location=r,i.end.percentage=this.book.locations.percentageFromLocation(r)),n=this.book.pageList.pageFromCfi(e.mapping.start),r=this.book.pageList.pageFromCfi(t.mapping.end),-1!=n&&(i.start.page=n),-1!=r&&(i.end.page=r),t.index===this.book.spine.last().index&&i.end.displayed.page>=i.end.displayed.total&&(i.atEnd=!0),e.index===this.book.spine.first().index&&1===i.start.displayed.page&&(i.atStart=!0),i):{}}destroy(){this.manager&&this.manager.destroy(),this.book=void 0}passEvents(e){h.a.forEach(t=>{e.on(t,t=>this.triggerViewEvent(t,e))}),e.on(h.c.CONTENTS.SELECTED,t=>this.triggerSelectedEvent(t,e))}triggerViewEvent(t,e){this.emit(t.type,t,e)}triggerSelectedEvent(t,e){this.emit(h.c.RENDITION.SELECTED,t,e)}triggerMarkEvent(t,e,i){this.emit(h.c.RENDITION.MARK_CLICKED,t,e,i)}getRange(t,e){var i=new c.a(t),t=this.manager.visible().filter(function(t){if(i.spinePos===t.index)return!0});if(t.length)return t[0].contents.range(i,e)}adjustImages(t){var e,i;return"pre-paginated"===this._layout.name?new Promise(function(t){t()}):(i=t.window.getComputedStyle(t.content,null),e=.95*(t.content.offsetHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom))),i=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),t.addStylesheetRules({img:{"max-width":(this._layout.columnWidth?this._layout.columnWidth-i+"px":"100%")+"!important","max-height":e+"px!important","object-fit":"contain","page-break-inside":"avoid","break-inside":"avoid","box-sizing":"border-box"},svg:{"max-width":(this._layout.columnWidth?this._layout.columnWidth-i+"px":"100%")+"!important","max-height":e+"px!important","page-break-inside":"avoid","break-inside":"avoid"}}),new Promise(function(t,e){setTimeout(function(){t()},1)}))}getContents(){return this.manager?this.manager.getContents():[]}views(){return(this.manager?this.manager.views:void 0)||[]}handleLinks(t){t&&t.on(h.c.CONTENTS.LINK_CLICKED,t=>{t=this.book.path.relative(t);this.display(t)})}injectStylesheet(t,e){var i=t.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",this.settings.stylesheet),t.getElementsByTagName("head")[0].appendChild(i)}injectScript(t,e){var i=t.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",this.settings.script),i.textContent=" ",t.getElementsByTagName("head")[0].appendChild(i)}injectIdentifier(t,e){var i=this.book.packaging.metadata.identifier,n=t.createElement("meta");n.setAttribute("name","dc.relation.ispartof"),i&&n.setAttribute("content",i),t.getElementsByTagName("head")[0].appendChild(n)}}n()(v.prototype);e.a=v},function(t,e,i){var n=i(0);e.a=class{constructor(t){this._q=[],this.context=t,this.tick=n.requestAnimationFrame,this.running=!1,this.paused=!1}enqueue(){var t,e=[].shift.call(arguments);if(e)return t="function"==typeof e?{task:e,args:arguments,deferred:t=new n.defer,promise:t.promise}:{promise:e},this._q.push(t),0!=this.paused||this.running||this.run(),t.promise;throw new Error("No Task Provided")}dequeue(){var t,e;return this._q.length&&!this.paused?(e=(t=this._q.shift()).task)?(e=e.apply(this.context,t.args))&&"function"==typeof e.then?e.then(function(){t.deferred.resolve.apply(this.context,arguments)}.bind(this),function(){t.deferred.reject.apply(this.context,arguments)}.bind(this)):(t.deferred.resolve.apply(this.context,e),t.promise):t.promise||void 0:((t=new n.defer).deferred.resolve(),t.promise)}dump(){for(;this._q.length;)this.dequeue()}run(){return this.running||(this.running=!0,this.defered=new n.defer),this.tick.call(window,()=>{this._q.length?this.dequeue().then(function(){this.run()}.bind(this)):(this.defered.resolve(),this.running=void 0)}),1==this.paused&&(this.paused=!1),this.defered.promise}flush(){return this.running||(this._q.length?(this.running=this.dequeue().then(function(){return this.running=void 0,this.flush()}.bind(this)),this.running):void 0)}clear(){this._q=[]}length(){return this._q.length}pause(){this.paused=!0}stop(){this._q=[],this.running=!1,this.paused=!0}}}
1,function(t,e,i){var n=i(3),n=i.n(n),u=i(0);function r(){var t,e,i,n="reverse",r=((t=document.createElement("div")).dir="rtl",t.style.position="fixed",t.style.width="1px",t.style.height="1px",t.style.top="0px",t.style.left="0px",t.style.overflow="hidden",(e=document.createElement("div")).style.width="2px",(r=document.createElement("span")).style.width="1px",r.style.display="inline-block",(i=document.createElement("span")).style.width="1px",i.style.display="inline-block",e.appendChild(r),e.appendChild(i),t.appendChild(e),t);return document.body.appendChild(r),0<r.scrollLeft?n="default":"undefined"!=typeof Element&&Element.prototype.scrollIntoView?(r.children[0].children[1].scrollIntoView(),r.scrollLeft<0&&(n="negative")):(r.scrollLeft=1,0===r.scrollLeft&&(n="negative")),document.body.removeChild(r),n}var o=i(15),s=i(13),a=i(31),l=i.n(a);var c=class{constructor(t){this.settings=t||{},this.id="epubjs-container-"+Object(u.uuid)(),this.container=this.create(this.settings),this.settings.hidden&&(this.wrapper=this.wrap(this.container))}create(t){let e=t.height,i=t.width;var n=t.overflow||!1,r=t.axis||"vertical",o=t.direction,t=(Object(u.extend)(this.settings,t),t.height&&Object(u.isNumber)(t.height)&&(e=t.height+"px"),t.width&&Object(u.isNumber)(t.width)&&(i=t.width+"px"),document.createElement("div"));return t.id=this.id,t.classList.add("epub-container"),t.style.wordSpacing="0",t.style.lineHeight="0",t.style.verticalAlign="top",t.style.position="relative","horizontal"===r&&(t.style.display="flex",t.style.flexDirection="row",t.style.flexWrap="nowrap"),i&&(t.style.width=i),e&&(t.style.height=e),n&&("scroll"===n&&"vertical"===r?(t.style["overflow-y"]=n,t.style["overflow-x"]="hidden"):"scroll"===n&&"horizontal"===r?(t.style["overflow-y"]="hidden",t.style["overflow-x"]=n):t.style.overflow=n),o&&(t.dir=o,t.style.direction=o),o&&this.settings.fullsize&&(document.body.style.direction=o),t}wrap(t){var e=document.createElement("div");return e.style.visibility="hidden",e.style.overflow="hidden",e.style.width="0",e.style.height="0",e.appendChild(t),e}getElement(t){var e;if(Object(u.isElement)(t)?e=t:"string"==typeof t&&(e=document.getElementById(t)),e)return e;throw new Error("Not an Element")}attachTo(t){var e,t=this.getElement(t);if(t)return e=this.settings.hidden?this.wrapper:this.container,t.appendChild(e),this.element=t}getContainer(){return this.container}onResize(t){Object(u.isNumber)(this.settings.width)&&Object(u.isNumber)(this.settings.height)||(this.resizeFunc=l()(t,50),window.addEventListener("resize",this.resizeFunc,!1))}onOrientationChange(t){this.orientationChangeFunc=t,window.addEventListener("orientationchange",this.orientationChangeFunc,!1)}size(t,e){var i=t||this.settings.width,n=e||this.settings.height,r=(null===t?(r=this.element.getBoundingClientRect()).width&&(t=Math.floor(r.width),this.container.style.width=t+"px"):Object(u.isNumber)(t)?this.container.style.width=t+"px":this.container.style.width=t,null===e?(r=r||this.element.getBoundingClientRect()).height&&(e=r.height,this.container.style.height=e+"px"):Object(u.isNumber)(e)?this.container.style.height=e+"px":this.container.style.height=e,Object(u.isNumber)(t)||(t=this.container.clientWidth),Object(u.isNumber)(e)||(e=this.container.clientHeight),this.containerStyles=window.getComputedStyle(this.container),this.containerPadding={left:parseFloat(this.containerStyles["padding-left"])||0,right:parseFloat(this.containerStyles["padding-right"])||0,top:parseFloat(this.containerStyles["padding-top"])||0,bottom:parseFloat(this.containerStyles["padding-bottom"])||0},Object(u.windowBounds)()),o=window.getComputedStyle(document.body);let s=parseFloat(o["padding-left"])||0,a=parseFloat(o["padding-right"])||0,l=parseFloat(o["padding-top"])||0,c=parseFloat(o["padding-bottom"])||0;return i||(t=r.width-s-a),(!this.settings.fullsize||n)&&n||(e=r.height-l-c),{width:t-this.containerPadding.left-this.containerPadding.right,height:e-this.containerPadding.top-this.containerPadding.bottom}}bounds(){let t;return(t="visible"!==this.container.style.overflow?this.container&&this.container.getBoundingClientRect():t)&&t.width&&t.height?t:Object(u.windowBounds)()}getSheet(){var t=document.createElement("style");return t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet}addStyleRules(t,e){var i="#"+this.id+" ",n="";this.sheet||(this.sheet=this.getSheet()),e.forEach(function(t){for(var e in t)t.hasOwnProperty(e)&&(n+=e+":"+t[e]+";")}),this.sheet.insertRule(i+t+" {"+n+"}",0)}axis(t){"horizontal"===t?(this.container.style.display="flex",this.container.style.flexDirection="row",this.container.style.flexWrap="nowrap"):this.container.style.display="block",this.settings.axis=t}direction(t){this.container&&(this.container.dir=t,this.container.style.direction=t),this.settings.fullsize&&(document.body.style.direction=t),this.settings.dir=t}overflow(t){this.container&&("scroll"===t&&"vertical"===this.settings.axis?(this.container.style["overflow-y"]=t,this.container.style["overflow-x"]="hidden"):"scroll"===t&&"horizontal"===this.settings.axis?(this.container.style["overflow-y"]="hidden",this.container.style["overflow-x"]=t):this.container.style.overflow=t),this.settings.overflow=t}destroy(){this.element&&(this.settings.hidden?this.wrapper:this.container,this.element.contains(this.container)&&this.element.removeChild(this.container),window.removeEventListener("resize",this.resizeFunc),window.removeEventListener("orientationChange",this.orientationChangeFunc))}};var h=class{constructor(t){this.container=t,this._views=[],this.length=0,this.hidden=!1}all(){return this._views}first(){return this._views[0]}last(){return this._views[this._views.length-1]}indexOf(t){return this._views.indexOf(t)}slice(){return this._views.slice.apply(this._views,arguments)}get(t){return this._views[t]}append(t){return this._views.push(t),this.container&&this.container.appendChild(t.element),this.length++,t}prepend(t){return this._views.unshift(t),this.container&&this.container.insertBefore(t.element,this.container.firstChild),this.length++,t}insert(t,e){return this._views.splice(e,0,t),this.container&&(e<this.container.children.length?this.container.insertBefore(t.element,this.container.children[e]):this.container.appendChild(t.element)),this.length++,t}remove(t){var e=this._views.indexOf(t);-1<e&&this._views.splice(e,1),this.destroy(t),this.length--}destroy(t){t.displayed&&t.destroy(),this.container&&this.container.removeChild(t.element)}forEach(){return this._views.forEach.apply(this._views,arguments)}clear(){var t,e=this.length;if(this.length){for(var i=0;i<e;i++)t=this._views[i],this.destroy(t);this._views=[],this.length=0}}find(t){for(var e,i=this.length,n=0;n<i;n++)if((e=this._views[n]).displayed&&e.section.index==t.index)return e}displayed(){for(var t,e=[],i=this.length,n=0;n<i;n++)(t=this._views[n]).displayed&&e.push(t);return e}show(){for(var t,e=this.length,i=0;i<e;i++)(t=this._views[i]).displayed&&t.show();this.hidden=!1}hide(){for(var t,e=this.length,i=0;i<e;i++)(t=this._views[i]).displayed&&t.hide();this.hidden=!0}},d=i(1);
vendor: 2,264 bytes, line 1
1class f{constructor(t){this.name="default",this.optsSettings=t.settings,this.View=t.view,this.request=t.request,this.renditionQueue=t.queue,this.q=new s.a(this),this.settings=Object(u.extend)(this.settings||{},{infinite:!0,hidden:!1,width:void 0,height:void 0,axis:void 0,writingMode:void 0,flow:"scrolled",ignoreClass:"",fullsize:void 0,allowScriptedContent:!1,allowPopups:!1}),Object(u.extend)(this.settings,t.settings||{}),this.viewSettings={ignoreClass:this.settings.ignoreClass,axis:this.settings.axis,flow:this.settings.flow,layout:this.layout,method:this.settings.method,width:0,height:0,forceEvenPages:!0,allowScriptedContent:this.settings.allowScriptedContent,allowPopups:this.settings.allowPopups},this.rendered=!1}render(t,e){var i=t.tagName;void 0!==this.settings.fullsize||!i||"body"!=i.toLowerCase()&&"html"!=i.toLowerCase()||(this.settings.fullsize=!0),this.settings.fullsize&&(this.settings.overflow="visible",this.overflow=this.settings.overflow),this.settings.size=e,this.settings.rtlScrollType=r(),this.stage=new c({width:e.width,height:e.height,overflow:this.overflow,hidden:this.settings.hidden,axis:this.settings.axis,fullsize:this.settings.fullsize,direction:this.settings.direction}),this.stage.attachTo(t),this.container=this.stage.getContainer(),this.views=new h(this.container),this._bounds=this.bounds(),this._stageSize=this.stage.size(),this.viewSettings.width=this._stageSize.width,this.viewSettings.height=this._stageSize.height,this.stage.onResize(this.onResized.bind(this)),this.stage.onOrientationChange(this.onOrientationChange.bind(this)),this.addEventListeners(),this.layout&&this.updateLayout(),this.rendered=!0}addEventListeners(){var t;window.addEventListener("unload",function(t){this.destroy()}.bind(this)),t=this.settings.fullsize?window:this.container,this._onScroll=this.onScroll.bind(this),t.addEventListener("scroll",this._onScroll)}removeEventListeners(){var t=this.settings.fullsize?window:this.container;t.removeEventListener("scroll",this._onScroll),this._onScroll=void 0}destroy(){clearTimeout(this.orientationTimeout),clearTimeout(this.resizeTimeout),clearTimeout(this.afterScrolled),this.clear(),this.removeEventListeners(),this.stage.destroy(),this.rendered=!1}onOrientationChange(t){let e=window.orientation;
1this.optsSettings.resizeOnOrientationChange&&this.resize(),clearTimeout(this.orientationTimeout),this.orientationTimeout=setTimeout(function(){this.orientationTimeout=void 0,this.optsSettings.resizeOnOrientationChange&&this.resize(),this.emit(d.c.MANAGERS.ORIENTATION_CHANGE,e)}.bind(this),500)}onResized(t){this.resize()}resize(t,e,i){t=this.stage.size(t,e);this.winBounds=Object(u.windowBounds)(),this.orientationTimeout&&this.winBounds.width===this.winBounds.height?this._stageSize=void 0:this._stageSize&&this._stageSize.width===t.width&&this._stageSize.height===t.height||(this._stageSize=t,this._bounds=this.bounds(),this.clear(),this.viewSettings.width=this._stageSize.width,this.viewSettings.height=this._stageSize.height,this.updateLayout(),this.emit(d.c.MANAGERS.RESIZED,{width:this._stageSize.width,height:this._stageSize.height},i))}createView(t,e){return new this.View(t,Object(u.extend)(this.viewSettings,{forceRight:e}))}handleNextPrePaginated(t,e,i){return"pre-paginated"===this.layout.name&&1<this.layout.divisor&&!t&&0!==e.index&&(t=e.next())&&!t.properties.includes("page-spread-left")?i.call(this,t):void 0}display(e,i){var t,n,r=new u.defer,o=r.promise,s=(i!==e.href&&!Object(u.isNumber)(i)||(i=void 0),this.views.find(e));if(s&&e&&"pre-paginated"!==this.layout.name)n=s.offset(),"ltr"===this.settings.direction?this.scrollTo(n.left,n.top,!0):(t=s.width(),this.scrollTo(n.left+t,n.top,!0)),i&&(t=s.locationOf(i),n=s.width(),this.moveTo(t,n)),r.resolve();else{this.clear();let t=!1;"pre-paginated"===this.layout.name&&2===this.layout.divisor&&e.properties.includes("page-spread-right")&&(t=!0),this.add(e,t).then(function(t){var e;i&&(e=t.locationOf(i),t=t.width(),this.moveTo(e,t))}.bind(this),t=>{r.reject(t)}).then(function(){return this.handleNextPrePaginated(t,e,this.add)}.bind(this)).then(function(){this.views.show(),r.resolve()}.bind(this))}return o}afterDisplayed(t){this.emit(d.c.MANAGERS.ADDED,t)}afterResized(t){this.emit(d.c.MANAGERS.RESIZE,t.section)}moveTo(t,e){var i=0,n=0;this.isPaginated?((i=Math.floor(t.left/this.layout.delta)*this.layout.delta)+this.layout.delta>this.container.scrollWidth&&(i=this.container.scrollWidth-this.layout.delta),(n=Math.floor(t.top/this.layout.delta)*this.layout.delta)+this.layout.delta>this.container.scrollHeight&&(n=this.container.scrollHeight-this.layout.delta)):n=t.top,"rtl"===this.settings.direction&&(i=i+this.layout.delta-e),this.scrollTo(i,n,!0)}add(t,e){t=this.createView(t,e);return this.views.append(t),t.onDisplayed=this.afterDisplayed.bind(this),t.onResize=this.afterResized.bind(this),t.on(d.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),t.on(d.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),t.display(this.request)}append(t,e){t=this.createView(t,e);return this.views.append(t),t.onDisplayed=this.afterDisplayed.bind(this),t.onResize=this.afterResized.bind(this),t.on(d.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),t.on(d.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),t.display(this.request)}prepend(t,e){t=this.createView(t,e);return t.on(d.c.VIEWS.RESIZED,t=>{this.counter(t)}),this.views.prepend(t),t.onDisplayed=this.afterDisplayed.bind(this),t.onResize=this.afterResized.bind(this),t.on(d.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),t.on(d.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),t.display(this.request)}counter(t){"vertical"===this.settings.axis?this.scrollBy(0,t.heightDelta,!0):this.scrollBy(t.widthDelta,0,!0)}next(){var e,t=this.settings.direction;if(this.views.length&&(!this.isPaginated||"horizontal"!==this.settings.axis||t&&"ltr"!==t?this.isPaginated&&"horizontal"===this.settings.axis&&"rtl"===t?(this.scrollLeft=this.container.scrollLeft,"default"===this.settings.rtlScrollType?0<this.container.scrollLeft?this.scrollBy(this.layout.delta,0,!0):e=this.views.last().section.next():this.container.scrollLeft+-1*this.layout.delta>-1*this.container.scrollWidth?this.scrollBy(this.layout.delta,0,!0):e=this.views.last().section.next()):this.isPaginated&&"vertical"===this.settings.axis&&(this.scrollTop=this.container.scrollTop,this.container.scrollTop+this.container.offsetHeight<this.container.scrollHeight)?this.scrollBy(0,this.layout.height,!0):e=this.views.last().section.next():(this.scrollLeft=this.container.scrollLeft,this.container.scrollLeft+this.container.offsetWidth+this.layout.delta<=this.container.scrollWidth?this.scrollBy(this.layout.delta,0,!0):e=this.views.last().section.next()),e)){this.clear(),this.updateLayout();let t=!1;return"pre-paginated"===this.layout.name&&2===this.layout.divisor&&e.properties.includes("page-spread-right")&&(t=!0),this.append(e,t).then(function(){return this.handleNextPrePaginated(t,e,this.append)}.bind(this),t=>t).then(function(){this.isPaginated||"horizontal"!==this.settings.axis||"rtl"!==this.settings.direction||"default"!==this.settings.rtlScrollType||this.scrollTo(this.container.scrollWidth,0,!0),this.views.show()}.bind(this))}}prev(){var e,t=this.settings.direction;if(this.views.length&&(!this.isPaginated||"horizontal"!==this.settings.axis||t&&"ltr"!==t?this.isPaginated&&"horizontal"===this.settings.axis&&"rtl"===t?(this.scrollLeft=this.container.scrollLeft,"default"===this.settings.rtlScrollType?this.container.scrollLeft+this.container.offsetWidth<this.container.scrollWidth?this.scrollBy(-this.layout.delta,0,!0):e=this.views.first().section.prev():this.container.scrollLeft<0?this.scrollBy(-this.layout.delta,0,!0):e=this.views.first().section.prev()):this.isPaginated&&"vertical"===this.settings.axis&&(this.scrollTop=this.container.scrollTop,0<this.container.scrollTop)?this.scrollBy(0,-this.layout.height,!0):e=this.views.first().section.prev():(this.scrollLeft=this.container.scrollLeft,0<this.container.scrollLeft?this.scrollBy(-this.layout.delta,0,!0):e=this.views.first().section.prev()),e)){this.clear(),this.updateLayout();let t=!1;return"pre-paginated"===this.layout.name&&2===this.layout.divisor&&"object"!=typeof e.prev()&&(t=!0),this.prepend(e,t).then(function(){var t;if("pre-paginated"===this.layout.name&&1<this.layout.divisor&&(t=e.prev()))return this.prepend(t)}.bind(this),t=>t).then(function(){this.isPaginated&&"horizontal"===this.settings.axis&&("rtl"===this.settings.direction?"default"===this.settings.rtlScrollType?this.scrollTo(0,0,!0):this.scrollTo(-1*this.container.scrollWidth+this.layout.delta,0,!0):this.scrollTo(this.container.scrollWidth-this.layout.delta,0,!0)),this.views.show()}.bind(this))}}current(){var t=this.visible();return t.length?t[t.length-1]:null}clear(){this.views&&(this.views.hide(),this.scrollTo(0,0,!0),this.views.clear())}currentLocation(){return this.updateLayout(),this.isPaginated&&"horizontal"===this.settings.axis?this.location=this.paginatedLocation():this.location=this.scrolledLocation(),this.location}scrolledLocation(){var t=this.visible();let p=this.container.getBoundingClientRect(),m=p.height<window.innerHeight?p.height:window.innerHeight,g=p.width<window.innerWidth?p.width:window.innerWidth,v="vertical"===this.settings.axis;this.settings.direction;let b=0;return this.settings.fullsize&&(b=v?window.scrollY:window.scrollX),t.map(t=>{var{index:e,href:i}=t.section,n=t.position(),r=t.width(),o=t.height();let s,a,l,c,u=(l=v?(s=b+p.top-n.top,a=+(s+m),c=this.layout.count(o,m).pages,m):(s=b+p.left-n.left,a=+(s+g),c=this.layout.count(r,g).pages,g),Math.ceil(s/l));var h=[];let d=Math.ceil(a/l);"rtl"!==this.settings.direction||v||(o=u,u=c-d,d=c-o);for(var h=[],f=u;f<=d;f++)h.push(f+1);n=this.mapping.page(t.contents,t.section.cfiBase,s,a);return{index:e,href:i,pages:h,totalPages:c,mapping:n}})}paginatedLocation(){var t=this.visible();let p=this.container.getBoundingClientRect(),m=0,g=0;return this.settings.fullsize&&(m=window.scrollX),t.map(t=>{var{index:e,href:i}=t.section;let n;var r=t.position(),o=t.width();let s,a,l;"rtl"===this.settings.direction?(n=p.right-m,l=Math.min(Math.abs(n-r.left),this.layout.width)-g,a=r.width-(r.right-n)-g,s=a-l):(n=p.left+m,l=Math.min(r.right-n,this.layout.width)-g,s=n-r.left+g,a=s+l),g+=l;r=this.mapping.page(t.contents,t.section.cfiBase,s,a),t=this.layout.count(o).pages;let c=Math.floor(s/this.layout.pageWidth);var u=[];let h=Math.floor(a/this.layout.pageWidth);c<0&&(c=0,h+=1),"rtl"===this.settings.direction&&(o=c,c=t-h,h=t-o);for(var d=c+1;d<=h;d++){var f=d;u.push(f)}return{index:e,href:i,pages:u,totalPages:t,mapping:r}}
1)}isVisible(t,e,i,n){t=t.position(),n=n||this.bounds();return"horizontal"===this.settings.axis&&t.right>n.left-e&&t.left<n.right+i||"vertical"===this.settings.axis&&t.bottom>n.top-e&&t.top<n.bottom+i}visible(){for(var t,e=this.bounds(),i=this.views.displayed(),n=i.length,r=[],o=0;o<n;o++)t=i[o],!0===this.isVisible(t,0,0,e)&&r.push(t);return r}scrollBy(t,e,i){var n="rtl"===this.settings.direction?-1:1;i&&(this.ignore=!0),this.settings.fullsize?window.scrollBy(t*n,e*n):(t&&(this.container.scrollLeft+=t*n),e&&(this.container.scrollTop+=e)),this.scrolled=!0}scrollTo(t,e,i){i&&(this.ignore=!0),this.settings.fullsize?window.scrollTo(t,e):(this.container.scrollLeft=t,this.container.scrollTop=e),this.scrolled=!0}onScroll(){let t,e;e=this.settings.fullsize?(t=window.scrollY,window.scrollX):(t=this.container.scrollTop,this.container.scrollLeft),this.scrollTop=t,this.scrollLeft=e,this.ignore?this.ignore=!1:(this.emit(d.c.MANAGERS.SCROLL,{top:t,left:e}),clearTimeout(this.afterScrolled),this.afterScrolled=setTimeout(function(){this.emit(d.c.MANAGERS.SCROLLED,{top:this.scrollTop,left:this.scrollLeft})}.bind(this),20))}bounds(){return this.stage.bounds()}applyLayout(t){this.layout=t,this.updateLayout(),this.views&&0<this.views.length&&"pre-paginated"===this.layout.name&&this.display(this.views.first().section)}updateLayout(){this.stage&&(this._stageSize=this.stage.size(),this.isPaginated?(this.layout.calculate(this._stageSize.width,this._stageSize.height,this.settings.gap),this.settings.offset=this.layout.delta/this.layout.divisor):this.layout.calculate(this._stageSize.width,this._stageSize.height),this.viewSettings.width=this.layout.width,this.viewSettings.height=this.layout.height,this.setLayout(this.layout))}setLayout(e){this.viewSettings.layout=e,this.mapping=new o.a(e.props,this.settings.direction,this.settings.axis),this.views&&this.views.forEach(function(t){t&&t.setLayout(e)})}updateWritingMode(t){this.writingMode=t}updateAxis(t,e){(e||t!==this.settings.axis)&&(this.settings.axis=t,this.stage&&this.stage.axis(t),this.viewSettings.axis=t,this.mapping&&(this.mapping=new o.a(this.layout.props,this.settings.direction,this.settings.axis)),this.layout)&&("vertical"===t?this.layout.spread("none"):this.layout.spread(this.layout.settings.spread))}updateFlow(t,e="auto"){var i="paginated"===t||"auto"===t;this.isPaginated=i,"scrolled-doc"===t||"scrolled-continuous"===t||"scrolled"===t?this.updateAxis("vertical"):this.updateAxis("horizontal"),this.viewSettings.flow=t,this.settings.overflow?this.overflow=this.settings.overflow:this.overflow=i?"hidden":e,this.stage&&this.stage.overflow(this.overflow),this.updateLayout()}getContents(){var e=[];return this.views&&this.views.forEach(function(t){t=t&&t.contents;t&&e.push(t)}),e}direction(t="ltr"){this.settings.direction=t,this.stage&&this.stage.direction(t),this.viewSettings.direction=t,this.updateLayout()}isRendered(){return this.rendered}}n()(f.prototype);e.a=f},function(t,e,i){var o=i(2),l=i(0);e.a=class{constructor(t,e,i,n=!1){this.layout=t,this.horizontal="horizontal"===i,this.direction=e||"ltr",this._dev=n}section(t){var e=this.findRanges(t);return this.rangeListToCfiList(t.section.cfiBase,e)}page(t,e,i,n){var r=!(!t||!t.document)&&t.document.body;if(r)return e=this.rangePairToCfiPair(e,{start:this.findStart(r,i,n),end:this.findEnd(r,i,n)}),!0===this._dev&&(r=t.document,i=new o.a(e.start).toRange(r),n=new o.a(e.end).toRange(r),t=r.defaultView.getSelection(),r=r.createRange(),t.removeAllRanges(),r.setStart(i.startContainer,i.startOffset),r.setEnd(n.endContainer,n.endOffset),t.addRange(r)),e}walk(t,e){if(!t||t.nodeType!==Node.TEXT_NODE){for(var i,n,r=function(t){return 0<t.data.trim().length?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},o=r,s=(o.acceptNode=r,document.createTreeWalker(t,NodeFilter.SHOW_TEXT,o,!1));(i=s.nextNode())&&!(n=e(i)););return n}}findRanges(t){for(var e,i,n=[],r=t.contents.scrollWidth(),o=Math.ceil(r/this.layout.spreadWidth)*this.layout.divisor,s=this.layout.columnWidth,a=this.layout.gap,l=0;l<o.pages;l++)n.push({start:this.findStart(t.document.body,e=(s+a)*l,i=s*(l+1)+a*l),end:this.findEnd(t.document.body,e,i)});return n}findStart(t,r,o){for(var e,s=[t],a=t;s.length;)if(e=s.shift(),e=this.walk(e,t=>{var e,i,n=Object(l.nodeBounds)(t);return this.horizontal&&"ltr"===this.direction?(i=this.horizontal?n.left:n.top,e=this.horizontal?n.right:n.bottom,r<=i&&i<=o||r<e?t:(a=t,void s.push(t))):this.horizontal&&"rtl"===this.direction?(i=n.left,(e=n.r
1ight)<=o&&r<=e||i<o?t:(a=t,void s.push(t))):(e=n.top,i=n.bottom,r<=e&&e<=o||r<i?t:(a=t,void s.push(t)))}))return this.findTextStartRange(e,r,o);return this.findTextStartRange(a,r,o)}findEnd(t,r,o){for(var e,s=[t],a=t;s.length;)if(e=s.shift(),e=this.walk(e,t=>{var e,i,n=Object(l.nodeBounds)(t);return this.horizontal&&"ltr"===this.direction?(i=Math.round(n.left),e=Math.round(n.right),o<i&&a?a:o<e?t:(a=t,void s.push(t))):this.horizontal&&"rtl"===this.direction?(i=Math.round(this.horizontal?n.left:n.top),(e=Math.round(this.horizontal?n.right:n.bottom))<r&&a?a:i<r?t:(a=t,void s.push(t))):(e=Math.round(n.top),i=Math.round(n.bottom),o<e&&a?a:o<i?t:(a=t,void s.push(t)))}))return this.findTextEndRange(e,r,o);return this.findTextEndRange(a,r,o)}findTextStartRange(t,e,i){for(var n,r,o=this.splitTextNodeIntoRanges(t),s=0;s<o.length;s++)if(r=(n=o[s]).getBoundingClientRect(),this.horizontal&&"ltr"===this.direction){if(e<=r.left)return n}else if(this.horizontal&&"rtl"===this.direction){if(r.right<=i)return n}else if(e<=r.top)return n;return o[0]}findTextEndRange(t,e,i){for(var n,r,o,s,a,l,c=this.splitTextNodeIntoRanges(t),u=0;u<c.length;u++){if(l=(r=c[u]).getBoundingClientRect(),this.horizontal&&"ltr"===this.direction){if(o=l.left,s=l.right,i<o&&n)return n;if(i<s)return r}else if(this.horizontal&&"rtl"===this.direction){if(o=l.left,(s=l.right)<e&&n)return n;if(o<e)return r}else{if(a=l.top,l=l.bottom,i<a&&n)return n;if(i<l)return r}n=r}return c[c.length-1]}splitTextNodeIntoRanges(t,e){var i,n=[],r=(t.textContent||"").trim(),o=t.ownerDocument,s=e||" ",a=r.indexOf(s);if(-1===a||t.nodeType!=Node.TEXT_NODE)return(i=o.createRange()).selectNodeContents(t),[i];for((i=o.createRange()).setStart(t,0),i.setEnd(t,a),n.push(i),i=!1;-1!=a;)0<(a=r.indexOf(s,a+1))&&(i&&(i.setEnd(t,a),n.push(i)),(i=o.createRange()).setStart(t,a+1));return i&&(i.setEnd(t,r.length),n.push(i)),n}rangePairToCfiPair(t,e){var i=e.start,e=e.end,i=(i.collapse(!0),e.collapse(!1),new o.a(i,t).toString());return{start:i,end:new o.a(e,t).toString()}}rangeListToCfiList(t,e){for(var i,n=[],r=0;r<e.length;r++)i=this.rangePairToCfiPair(t,e[r]),n.push(i);return n}axis(t){return t&&(this.horizontal="horizontal"===t),this.horizontal}}},function(D,t,e){var i=e(3),i=e.n(i),h=e(0),r=e(5),u=e(4),d=e(2),n=e(6),o=e(8);var s=function(t,e,i,n){var r,o="undefined"!=typeof window&&window.URL,s=o?"blob":"arraybuffer",a=new h.defer,l=new XMLHttpRequest,c=XMLHttpRequest.prototype;for(r in"overrideMimeType"in c||Object.defineProperty(c,"overrideMimeType",{value:function(){}}),i&&(l.withCredentials=!0),l.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE){var t=!1;if(""!==this.responseType&&"document"!==this.responseType||(t=this.responseXML),200===this.status||0===this.status||t)return this.response||t?403===this.status?(a.reject({status:this.status,response:this.response,message:"Forbidden",stack:(new Error).stack}),a.promise):(t=t?this.responseXML:Object(h.isXml)(e)?Object(h.parse)(this.response,"text/xml"):"xhtml"==e?Object(h.parse)(this.response,"application/xhtml+xml"):"html"==e||"htm"==e?Object(h.parse)(this.response,"text/html"):"json"==e?JSON.parse(this.response):"blob"!=e||o?this.response:new Blob([this.response]),void a.resolve(t)):(a.reject({status:this.status,message:"Empty Response",stack:(new Error).stack}),a.promise);a.reject({status:this.status,message:this.response,stack:(new Error).stack})}},l.onerror=function(t){a.reject(t)},l.open("GET",t,!0),n)l.setRequestHeader(r,n[r]);return"json"==e&&l.setRequestHeader("Accept","application/json"),"blob"==(e=e||new u.a(t).extension)&&(l.responseType=s),Object(h.isXml)(e)&&l.overrideMimeType("text/xml"),"binary"==e&&(l.responseType="arraybuffer"),l.send(),a.promise},a=e(20);class l{constructor(t,e){this.idref=t.idref,this.linear="yes"===t.linear,this.properties=t.properties,this.index=t.index,this.href=t.href,this.url=t.url,this.canonical=t.canonical,this.next=t.next,this.prev=t.prev,this.cfiBase=t.cfiBase,e?this.hooks=e:(this.hooks={},this.hooks.serialize=new n.a(this),this.hooks.content=new n.a(this)),this.document=void 0,this.contents=void 0,this.output=void 0}load(t){var t=t||this.request||s,e=new h.defer,i=e.promise;return this.contents?e.resolve(this.contents):t(this.url).then(function(t){return this.document=t,this.contents=t.documentElement,this.hooks.content.trigger(this.document,this)}.bind(this)).then(function(){e.resolve(this.contents)}.bind(this)).catch(function(t){e.reject(t)}),i}base(){return Object(o.a)(this.document,this)}render(t){var e=new h.defer,i=e.promise;return this.output,this.load(t).then(function(t){var e=0<=("undefined"!=typeof navigator&&navigator.userAgent||"").indexOf("Trident"),e="undefined"==typeof XMLSerializer||e?a.DOMParser:XMLSerializer,e=new e;return this.output=e.serializeToString(t),this.output}.bind(this)).then(function(){return this.hooks.serialize.trigger(this.output,this)}.bind(this)).then(function(){e.resolve(this.output)}.bind(this)).catch(function(t){e.reject(t)}),i}find(t){var l=this,c=[],u=t.toLowerCase();return Object(h.sprint)(l.document,function(t){for(var e,i,n,r=t,o=r.textContent.toLowerCase(),s=l.document.createRange(),a=-1;-1!=i;)-1!=(i=o.indexOf(u,a+1))&&((s=l.document.createRange()).setStart(r,i),s.setEnd(r,i+u.length),e=l.cfiFromRange(s),n=r.textContent.length<150?r.textContent:"..."+(n=r.textContent.substring(i-75,i+75))+"...",c.push({cfi:e,excerpt:n})),a=i}),c}
1search(t,e=5){if(void 0===document.createTreeWalker)return this.find(t);let c=[],u=150,h=this,d=t.toLowerCase();function i(n){var r=n.reduce((t,e)=>t+e.textContent,"").toLowerCase().indexOf(d);if(-1!=r){var o=r+d.length;let e=0,i=0;if(r<n[0].length){for(;e<n.length-1&&!(o<=(i+=n[e].length));)e+=1;var s=n[0],a=n[e],l=h.document.createRange(),s=(l.setStart(s,r),n.slice(0,e).reduce((t,e)=>t+e.textContent.length,0));l.setEnd(a,o<s?o:o-s),a=h.cfiFromRange(l);let t=n.slice(0,e+1).reduce((t,e)=>t+e.textContent,"");t.length>u&&(t="..."+(t=t.substring(r-u/2,r+u/2))+"..."),c.push({cfi:a,excerpt:t})}}}var n=document.createTreeWalker(h.document,NodeFilter.SHOW_TEXT,null,!1);let r,o=[];for(;r=n.nextNode();)o.push(r),o.length==e&&(i(o.slice(0,e)),o=o.slice(1,e));return 0<o.length&&i(o),c}reconcileLayoutSettings(t){var n={layout:t.layout,spread:t.spread,orientation:t.orientation};return this.properties.forEach(function(t){var e,t=t.replace("rendition:",""),i=t.indexOf("-");-1!=i&&(e=t.slice(0,i),t=t.slice(i+1),n[e]=t)}),n}cfiFromRange(t){return new d.a(t,this.cfiBase).toString()}cfiFromElement(t){return new d.a(t,this.cfiBase).toString()}unload(){this.document=void 0,this.contents=void 0,this.output=void 0}destroy(){this.unload(),this.hooks.serialize.clear(),this.hooks.content.clear(),this.hooks=void 0,this.idref=void 0,this.linear=void 0,this.properties=void 0,this.index=void 0,this.href=void 0,this.url=void 0,this.next=void 0,this.prev=void 0,this.cfiBase=void 0}}var c=l;var f=class{constructor(){this.spineItems=[],this.spineByHref={},this.spineById={},this.hooks={},this.hooks.serialize=new n.a,this.hooks.content=new n.a,this.hooks.content.register(o.a),this.hooks.content.register(o.b),this.hooks.content.register(o.d),this.epubcfi=new d.a,this.loaded=!1,this.items=void 0,this.manifest=void 0,this.spineNodeIndex=void 0,this.baseUrl=void 0,this.length=void 0}unpack(t,n,r){this.items=t.spine,this.manifest=t.manifest,this.spineNodeIndex=t.spineNodeIndex,this.baseUrl=t.baseUrl||t.basePath||"",this.length=this.items.length,this.items.forEach((i,t)=>{var e=this.manifest[i.idref];i.index=t,i.cfiBase=this.epubcfi.generateChapterComponent(this.spineNodeIndex,i.index,i.id),i.href&&(i.url=n(i.href,!0),i.canonical=r(i.href)),e&&(i.href=e.href,i.url=n(i.href,!0),i.canonical=r(i.href),e.properties.length)&&i.properties.push.apply(i.properties,e.properties),"yes"===i.linear?(i.prev=function(){let t=i.index;for(;0<t;){var e=this.get(t-1);if(e&&e.linear)return e;--t}}.bind(this),i.next=function(){let t=i.index;for(;t<this.spineItems.length-1;){var e=this.get(t+1);if(e&&e.linear)return e;t+=1}}.bind(this)):(i.prev=function(){},i.next=function(){}),t=new c(i,this.hooks),this.append(t)}),this.loaded=!0}get(t){var e=0;if(void 0===t)for(;e<this.spineItems.length;){var i=this.spineItems[e];if(i&&i.linear)break;e+=1}else this.epubcfi.isCfiString(t)?e=new d.a(t).spinePos:"number"==typeof t||!1===isNaN(t)?e=t:"string"==typeof t&&0===t.indexOf("#")?e=this.spineById[t.substring(1)]:"string"==typeof t&&(t=t.split("#")[0],e=this.spineByHref[t]||this.spineByHref[encodeURI(t)]);return this.spineItems[e]||null}append(t){var e=this.spineItems.length;return t.index=e,this.spineItems.push(t),this.spineByHref[decodeURI(t.href)]=e,this.spineByHref[encodeURI(t.href)]=e,this.spineByHref[t.href]=e,this.spineById[t.idref]=e}prepend(t){return this.spineByHref[t.href]=0,this.spineById[t.idref]=0,this.spineItems.forEach(function(t,e){t.index=e}),0}remove(t){var e=this.spineItems.indexOf(t);if(-1<e)return delete this.spineByHref[t.href],delete this.spineById[t.idref],this.spineItems.splice(e,1)}each(){return this.spineItems.forEach.apply(this.spineItems,arguments)}first(){let t=0;do{var e=this.get(t);if(e&&e.linear)return e}while((t+=1)<this.spineItems.length)}last(){let t=this.spineItems.length-1;do{var e=this.get(t);if(e&&e.linear)return e}while(0<=--t)}destroy(){this.each(t=>t.destroy()),this.spineItems=void 0,this.spineByHref=void 0,this.spineById=void 0,this.hooks.serialize.clear(),this.hooks.content.clear(),this.hooks=void 0,this.epubcfi=void 0,this.loaded=!1,this.items=void 0,this.manifest=void 0,this.spineNodeIndex=void 0,this.baseUrl=void 0,this.length=void 0}},p=e(13),m=e(1);class g{constructor(t,e,i){this.spine=t,this.request=e,this.pause=i||100,this.q=ne
1w p.a(this),this.epubcfi=new d.a,this._locations=[],this._locationsWords=[],this.total=0,this.break=150,this._current=0,this._wordCounter=0,this.currentLocation="",this._currentCfi="",this.processingTimeout=void 0}generate(t){return t&&(this.break=t),this.q.pause(),this.spine.each(function(t){t.linear&&this.q.enqueue(this.process.bind(this),t)}.bind(this)),this.q.run().then(function(){return this.total=this._locations.length-1,this._currentCfi&&(this.currentLocation=this._currentCfi),this._locations}.bind(this))}createRange(){return{startContainer:void 0,startOffset:void 0,endContainer:void 0,endOffset:void 0}}process(n){return n.load(this.request).then(function(t){var e=new h.defer,i=this.parse(t,n.cfiBase);return this._locations=this._locations.concat(i),n.unload(),this.processingTimeout=setTimeout(()=>e.resolve(i),this.pause),e.promise}.bind(this))}parse(t,r,e){var o,s,a=[],t=t.ownerDocument,t=Object(h.qs)(t,"body"),l=0,c=e||this.break;return Object(h.sprint)(t,function(t){var e=t.length,i=0;if(0===t.textContent.trim().length)return!1;for(0==l&&((o=this.createRange()).startContainer=t,o.startOffset=0),e<c-l&&(l+=e,i=e);i<e;){var n=c-l;0===l&&(i+=1,(o=this.createRange()).startContainer=t,o.startOffset=i),e<=i+n?(l+=e-i,i=e):(i+=n,o.endContainer=t,o.endOffset=i,n=new d.a(o,r).toString(),a.push(n),l=0)}s=t}.bind(this)),o&&o.startContainer&&s&&(o.endContainer=s,o.endOffset=s.length,e=new d.a(o,r).toString(),a.push(e),l=0),a}generateFromWords(t,e,i){var n=t?new d.a(t):void 0;return this.q.pause(),this._locationsWords=[],this._wordCounter=0,this.spine.each(function(t){t.linear&&(!n||t.index>=n.spinePos)&&this.q.enqueue(this.processWords.bind(this),t,e,n,i)}.bind(this)),this.q.run().then(function(){return this._currentCfi&&(this.currentLocation=this._currentCfi),this._locationsWords}.bind(this))}processWords(n,r,o,s){return s&&this._locationsWords.length>=s?Promise.resolve():n.load(this.request).then(function(t){var e=new h.defer,i=this.parseWords(t,n,r,o),t=s-this._locationsWords.length;return this._locationsWords=this._locationsWords.concat(i.length>=s?i.slice(0,t):i),n.unload(),this.processingTimeout=setTimeout(()=>e.resolve(i),this.pause),e.promise}.bind(this))}countWords(t){return(t=(t=(t=t.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[ ]{2,}/gi," ")).replace(/\n /,"\n")).split(" ").length}parseWords(t,e,i,n){var r,o=e.cfiBase,s=[],a=t.ownerDocument,a=Object(h.qs)(a,"body"),l=i,c=!n||n.spinePos!==e.index;n&&e.index===n.spinePos&&(r=n.findNode(n.range?n.path.steps.concat(n.start.steps):n.path.steps,t.ownerDocument));return Object(h.sprint)(a,function(t){if(!c){if(t!==r)return!1;c=!0}if(t.textContent.length<10&&0===t.textContent.trim().length)return!1;var e,i=this.countWords(t.textContent),n=0;if(0===i)return!1;for(i<l-this._wordCounter&&(this._wordCounter+=i,n=i);n<i;)i<=n+(e=l-this._wordCounter)?(this._wordCounter+=i-n,n=i):(n+=e,e=new d.a(t,o),s.push({cfi:e.toString(),wordCount:this._wordCounter}),this._wordCounter=0);0}.bind(this)),s}locationFromCfi(t){return d.a.prototype.isCfiString(t)&&(t=new d.a(t)),0===this._locations.length?-1:(t=Object(h.locationOf)(t,this._locations,this.epubcfi.compare))>this.total?this.total:t}percentageFromCfi(t){return 0===this._locations.length?null:(t=this.locationFromCfi(t),this.percentageFromLocation(t))}percentageFromLocation(t){return t&&this.total?t/this.total:0}cfiFromLocation(t){var e=-1;return e=0<=(t="number"!=typeof t?parseInt(t):t)&&t<this._locations.length?this._locations[t]:e}cfiFromPercentage(t){var e;return 1<t&&console.warn("Normalize cfiFromPercentage value to between 0 - 1"),1<=t?((e=new d.a(this._locations[this.total])).collapse(),e.toString()):(e=Math.ceil(this.total*t),this.cfiFromLocation(e))}load(t){return this._locations="string"==typeof t?JSON.parse(t):t,this.total=this._locations.length-1,this._locations}save(){return JSON.stringify(this._locations)}getCurrent(){return this._current}setCurrent(t){var e;if("string"==typeof t)this._currentCfi=t;else{if("number"!=typeof t)return;this._current=t}0!==this._locations.length&&("string"==typeof t?(e=this.locationFromCfi(t),this._current=e):e=t,this.emit
1(m.c.LOCATIONS.CHANGED,{percentage:this.percentageFromLocation(e)}))}get currentLocation(){return this._current}set currentLocation(t){this.setCurrent(t)}length(){return this._locations.length}destroy(){this.spine=void 0,this.request=void 0,this.pause=void 0,this.q.stop(),this.q=void 0,this.epubcfi=void 0,this._locations=void 0,this.total=void 0,this.break=void 0,this._current=void 0,this.currentLocation=void 0,this._currentCfi=void 0,clearTimeout(this.processingTimeout)}}i()(g.prototype);var v=g,b=e(7),y=e.n(b);var w=class{constructor(t){this.packagePath="",this.directory="",this.encoding="",t&&this.parse(t)}parse(t){var e;if(!t)throw new Error("Container File Not Found");if(!(e=Object(h.qs)(t,"rootfile")))throw new Error("No RootFile Found");this.packagePath=e.getAttribute("full-path"),this.directory=y.a.dirname(this.packagePath),this.encoding=t.xmlEncoding}destroy(){this.packagePath=void 0,this.directory=void 0,this.encoding=void 0}};var S=class{constructor(t){this.manifest={},this.navPath="",this.ncxPath="",this.coverPath="",this.spineNodeIndex=0,this.spine=[],this.metadata={},t&&this.parse(t)}parse(t){var e,i,n;if(!t)throw new Error("Package File Not Found");if(!(e=Object(h.qs)(t,"metadata")))throw new Error("No Metadata Found");if(!(i=Object(h.qs)(t,"manifest")))throw new Error("No Manifest Found");if(n=Object(h.qs)(t,"spine"))return this.manifest=this.parseManifest(i),this.navPath=this.findNavPath(i),this.ncxPath=this.findNcxPath(i,n),this.coverPath=this.findCoverPath(t),this.spineNodeIndex=Object(h.indexOfElementNode)(n),this.spine=this.parseSpine(n,this.manifest),this.uniqueIdentifier=this.findUniqueIdentifier(t),this.metadata=this.parseMetadata(e),this.metadata.direction=n.getAttribute("page-progression-direction"),{metadata:this.metadata,spine:this.spine,manifest:this.manifest,navPath:this.navPath,ncxPath:this.ncxPath,coverPath:this.coverPath,spineNodeIndex:this.spineNodeIndex};throw new Error("No Spine Found")}parseMetadata(t){var e={};return e.title=this.getElementText(t,"title"),e.creator=this.getElementText(t,"creator"),e.description=this.getElementText(t,"description"),e.pubdate=this.getElementText(t,"date"),e.publisher=this.getElementText(t,"publisher"),e.identifier=this.getElementText(t,"identifier"),e.language=this.getElementText(t,"language"),e.rights=this.getElementText(t,"rights"),e.modified_date=this.getPropertyText(t,"dcterms:modified"),e.layout=this.getPropertyText(t,"rendition:layout"),e.orientation=this.getPropertyText(t,"rendition:orientation"),e.flow=this.getPropertyText(t,"rendition:flow"),e.viewport=this.getPropertyText(t,"rendition:viewport"),e.media_active_class=this.getPropertyText(t,"media:active-class"),e.spread=this.getPropertyText(t,"rendition:spread"),e}parseManifest(t){var o={},t=Object(h.qsa)(t,"item");return Array.prototype.slice.call(t).forEach(function(t){var e=t.getAttribute("id"),i=t.getAttribute("href")||"",n=t.getAttribute("media-type")||"",r=t.getAttribute("media-overlay")||"",t=t.getAttribute("properties")||"";o[e]={href:i,type:n,overlay:r,properties:t.length?t.split(" "):[]}}),o}parseSpine(t,e){var r=[],t=Object(h.qsa)(t,"itemref");return Array.prototype.slice.call(t).forEach(function(t,e){var i=t.getAttribute("idref"),n=t.getAttribute("properties")||"",n=n.length?n.split(" "):[],i={id:t.getAttribute("id"),idref:i,linear:t.getAttribute("linear")||"yes",properties:n,index:e};r.push(i)}),r}findUniqueIdentifier(t){var e=t.documentElement.getAttribute("unique-identifier");return e&&(t=t.getElementById(e))&&"identifier"===t.localName&&"http://purl.org/dc/elements/1.1/"===t.namespaceURI&&0<t.childNodes.length?t.childNodes[0].nodeValue.trim():""}findNavPath(t){t=Object(h.qsp)(t,"item",{properties:"nav"});return!!t&&t.getAttribute("href")}findNcxPath(t,e){var i=Object(h.qsp)(t,"item",{"media-type":"application/x-dtbncx+xml"});return i||(e=e.getAttribute("toc"))&&(i=t.querySelector("#"+e)),!!i&&i.getAttribute("href")}findCoverPath(t){Object(h.qs)(t,"package").getAttribute("version");var e=Object(h.qsp)(t,"item",{properties:"cover-image"});return e?e.getAttribute("href"):!!(e=Object(h.qsp)(t,"meta",{name:"cover"}))&&(e=e.getAttribute("content"),(t=t.getElementById(e))?t.getAttribute("href"):"")}getElementText(t,e){t=t.getElementsByTagNameNS("http://purl.org/dc/elements/1.1/",e);return t&&0!==t.length&&(e=t[0]).childNodes.length?e.childNodes[0].nodeValue:""}getPropertyText(t,e){t=Object(h.qsp)(t,"meta",{property:e});return t&&t.childNodes.length?t.childNodes[0].nodeValue:""}load(t){this.metadata=t.metadata;var e=t.readingOrder||t.spine;return this.spine=e.map((t,e)=>
1(t.index=e,t.linear=t.linear||"yes",t)),t.resources.forEach((t,e)=>{(this.manifest[e]=t).rel&&"cover"===t.rel[0]&&(this.coverPath=t.href)}),this.spineNodeIndex=0,this.toc=t.toc.map((t,e)=>(t.label=t.title,t)),{metadata:this.metadata,spine:this.spine,manifest:this.manifest,navPath:this.navPath,ncxPath:this.ncxPath,coverPath:this.coverPath,spineNodeIndex:this.spineNodeIndex,toc:this.toc}}destroy(){this.manifest=void 0,this.navPath=void 0,this.ncxPath=void 0,this.coverPath=void 0,this.spineNodeIndex=void 0,this.spine=void 0,this.metadata=void 0}};var _=class{constructor(t){this.toc=[],this.tocByHref={},this.tocById={},this.landmarks=[],this.landmarksByType={},this.length=0,t&&this.parse(t)}parse(t){var e=t.nodeType;let i,n;e&&(i=Object(h.qs)(t,"html"),n=Object(h.qs)(t,"ncx")),e?i?(this.toc=this.parseNav(t),this.landmarks=this.parseLandmarks(t)):n&&(this.toc=this.parseNcx(t)):this.toc=this.load(t),this.length=0,this.unpack(this.toc)}unpack(t){for(var e,i=0;i<t.length;i++)(e=t[i]).href&&(this.tocByHref[e.href]=i),e.id&&(this.tocById[e.id]=i),this.length++,e.subitems.length&&this.unpack(e.subitems)}get(t){var e;return t?(0===t.indexOf("#")?e=this.tocById[t.substring(1)]:t in this.tocByHref&&(e=this.tocByHref[t]),this.getByIndex(t,e,this.toc)):this.toc}getByIndex(i,n,r){if(0!==r.length){var t=r[n];if(!t||i!==t.id&&i!==t.href){let e;for(let t=0;t<r.length&&!(e=this.getByIndex(i,n,r[t].subitems));++t);return e}return t}}landmark(t){return t?(t=this.landmarksByType[t],this.landmarks[t]):this.landmarks}parseNav(t){var t=Object(h.querySelectorByType)(t,"nav","toc"),e=[];return e=t&&(t=Object(h.filterChildren)(t,"ol",!0))?this.parseNavList(t):e}parseNavList(e,i){var n=[];if(e&&e.children)for(let t=0;t<e.children.length;t++){var r=this.navItem(e.children[t],i);r&&n.push(r)}return n}navItem(e,i){let n=e.getAttribute("id")||void 0;var r=Object(h.filterChildren)(e,"a",!0)||Object(h.filterChildren)(e,"span",!0);if(r){var o=r.getAttribute("href")||"",r=(n=n||o,r.textContent||"");let t=[];e=Object(h.filterChildren)(e,"ol",!0);return e&&(t=this.parseNavList(e,n)),{id:n,href:o,label:r,subitems:t,parent:i}}}parseLandmarks(t){var e,i,t=Object(h.querySelectorByType)(t,"nav","landmarks"),n=t?Object(h.qsa)(t,"li"):[],r=n.length,o=[];if(n&&0!==r)for(e=0;e<r;++e)(i=this.landmarkItem(n[e]))&&(o.push(i),this.landmarksByType[i.type]=e);return o}landmarkItem(t){var e,t=Object(h.filterChildren)(t,"a",!0);if(t)return e=t.getAttributeNS("http://www.idpf.org/2007/ops","type")||void 0,{href:t.getAttribute("href")||"",label:t.textContent||"",type:e}}parseNcx(t){var e,i,n=Object(h.qsa)(t,"navPoint"),r=n.length,o={},s=[];if(n&&0!==r)for(e=0;e<r;++e)((o[(i=this.ncxItem(n[e])).id]=i).parent?o[i.parent].subitems:s).push(i);return s}ncxItem(t){var e,i=t.getAttribute("id")||!1,n=Object(h.qs)(t,"content").getAttribute("src"),r=Object(h.qs)(t,"navLabel"),r=r.textContent||"",t=t.parentNode;return{id:i,href:n,label:r,subitems:[],parent:e=!t||"navPoint"!==t.nodeName&&"navPoint"!==t.nodeName.split(":").slice(-1)[0]?e:t.getAttribute("id")}}load(t){return t.map(t=>(t.label=t.title,t.subitems=t.children?this.load(t.children):[],t))}forEach(t){return this.toc.forEach(t)}},k={application:{ecmascript:["es","ecma"],javascript:"js",ogg:"ogx",pdf:"pdf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],"rdf+xml":"rdf",smil:["smi","smil"],"xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","opf","ncx"],zip:"zip","x-httpd-eruby":"rhtml","x-latex":"latex","x-maker":["frm","maker","frame","fm","fb","book","fbdoc"],"x-object":"o","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","epub+zip":"epub","font-tdpfr":"pfr","inkml+xml":["ink","inkml"],json:"json","jsonml+json":"jsonml","mathml+xml":"mathml","metalink+xml":"metalink",mp4:"mp4s","omdoc+xml":"omdoc",oxps:"oxps","vnd.amazon.ebook":"azw",widget:"wgt","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-otf":"otf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-font-woff":"woff","x-mobipocket-ebook":["prc","mobi"],"x-mspublisher":"pub","x-nzb":"nzb","x-tgif":"obj","xaml+xml":"xaml","xml-dtd":"dtd","xproc+xml":"xpl","xslt+xml":"xslt","internet-property-stream":"acx","x-compress":"z","x-compressed":"tgz","x-gzip":"gz"},audio:{flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp2","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"x-aiff":["aif","aiff","aifc"],"x-ms-wma":"wma","x-wav":"wav",adpcm:"adp",mp4:"mp4a",webm:"weba","x-aac":"aac","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",mid:["mid","rmi"]},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"x-icon":"ico",bmp:"bmp",webp:"webp","x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod"},text:{"cache-manifest":["manifest","appcache"],css:"css",csv:"csv",html:["html","htm","shtml","stm"],mathml:"mml",plain:["txt","text","brf","conf","def","list","log","in","bas"],richtext:"rtx","tab-separated-values":"tsv","x-bibtex":"bib"},video:{mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv"}},O=(()=>{var t,e,i,n,r={};for(t in k)if(k.hasOwnProperty(t))for(e in k[t])if(k[t].hasOwnProperty(e))if("string"==typeof(i=k[t][e]))r[i]=t+"/"+e;else for(n=0;n<i.length;n++)r[i[n]]=t+"/"+e;return r})();var E={lookup:function(t){return t&&O[t.split(".").pop().toLowerCase()]||"text/plain"}};var C=class{constructor(t,e){this.settings={replacements:e&&e.replacements||"base64",archive:e&&e.archive,resolver:e&&e.resolver,request:e&&e.request},this.process(t)}process(e){this.manifest=e,this.resources=Object.keys(e).map(function(t){return e[t]}),this.replacementUrls=[],this.html=[],this.assets=[],this.css=[],this.urls=[],this.cssUrls=[],this.split(),this.splitUrls()}split(){this.html=this.resources.filter(function(t){if("application/xhtml+xml"===t.type||"text/html"===t.type)return!0}),this.assets=this.resources.filter(function(t){if("application/xhtml+xml"!==t.type&&"text/html"!==t.type)return!0}),this.css=this.resources.filter(function(t){if("text/css"===t.type)return!0})}splitUrls(){this.urls=this.assets.map(function(t){return t.href}.bind(this)),this.cssUrls=this.css.map(function(t){return t.href})}createUrl(t){var e=new r.a(t),i=E.lookup(e.filename);return this.settings.archive?this.settings.archive.createUrl(t,{base64:"base64"===this.settings.replacements}):"base64"===this.settings.replacements?this.settings.request(t,"blob").then(t=>Object(h.blob2base64)(t)).then(t=>Object(h.createBase64Url)(t,i)):this.settings.request(t,"blob").then(t=>Object(h.createBlobUrl)(t,i))}replacements(){var t;return"none"===this.settings.replacements?new Promise(function(t){t(this.urls)}.bind(this)):(t=this.urls.map(t=>{t=this.settings.resolver(t);return this.createUrl(t).catch(t=>(console.error(t),null))}),Promise.all(t).then(t=>(this.replacementUrls=t.filter(t=>"string"==typeof t),t)))}replaceCss(e,n){var r=[];return e=e||this.settings.archive,n=n||this.settings.resolver,this.cssUrls.forEac
1h(function(i){var t=this.createCssFile(i,e,n).then(function(t){var e=this.urls.indexOf(i);-1<e&&(this.replacementUrls[e]=t)}.bind(this));r.push(t)}.bind(this)),Promise.all(r)}createCssFile(t){var e,i;return y.a.isAbsolute(t)?new Promise(function(t){t()}):(e=this.settings.resolver(t),t=this.settings.archive?this.settings.archive.getText(e):this.settings.request(e,"text"),i=this.urls.map(t=>{t=this.settings.resolver(t);return new u.a(e).relative(t)}),t?t.then(t=>(t=Object(o.e)(t,i,this.replacementUrls),("base64"===this.settings.replacements?Object(h.createBase64Url):Object(h.createBlobUrl))(t,"text/css")),t=>new Promise(function(t){t()})):new Promise(function(t){t()}))}relativeTo(e,i){return i=i||this.settings.resolver,this.urls.map(function(t){t=i(t);return new u.a(e).relative(t)}.bind(this))}get(t){var i=this.urls.indexOf(t);if(-1!==i)return this.replacementUrls.length?new Promise(function(t,e){t(this.replacementUrls[i])}.bind(this)):this.createUrl(t)}substitute(t,e){e=e?this.relativeTo(e):this.urls;return Object(o.e)(t,e,this.replacementUrls)}destroy(){this.settings=void 0,this.manifest=void 0,this.resources=void 0,this.replacementUrls=void 0,this.html=void 0,this.assets=void 0,this.css=void 0,this.urls=void 0,this.cssUrls=void 0}};var T=class{constructor(t){this.pages=[],this.locations=[],this.epubcfi=new d.a,this.firstPage=0,this.lastPage=0,this.totalPages=0,this.toc=void 0,this.ncx=void 0,t&&(this.pageList=this.parse(t)),this.pageList&&this.pageList.length&&this.process(this.pageList)}parse(t){var e=Object(h.qs)(t,"html"),i=Object(h.qs)(t,"ncx");return e?this.parseNav(t):i?this.parseNcx(t):void 0}parseNav(t){var e,i,t=Object(h.querySelectorByType)(t,"nav","page-list"),n=t?Object(h.qsa)(t,"li"):[],r=n.length,o=[];if(n&&0!==r)for(e=0;e<r;++e)i=this.item(n[e]),o.push(i);return o}parseNcx(t){var e,i,n,r=[],o=0,t=Object(h.qs)(t,"pageList");if(t&&(n=(i=Object(h.qsa)(t,"pageTarget")).length,i)&&0!==i.length)for(o=0;o<n;++o)e=this.ncxItem(i[o]),r.push(e);return r}ncxItem(t){var e=Object(h.qs)(t,"navLabel"),e=Object(h.qs)(e,"text").textContent;return{href:Object(h.qs)(t,"content").getAttribute("src"),page:parseInt(e,10)}}item(t){var e,i,t=Object(h.qs)(t,"a"),n=t.getAttribute("href")||"",t=t.textContent||"",t=parseInt(t);return-1!=n.indexOf("epubcfi")?(i=(e=n.split("#"))[0],{cfi:1<e.length&&e[1],href:n,packageUrl:i,page:t}):{href:n,page:t}}process(t){t.forEach(function(t){this.pages.push(t.page),t.cfi&&this.locations.push(t.cfi)},this),this.firstPage=parseInt(this.pages[0]),this.lastPage=parseInt(this.pages[this.pages.length-1]),this.totalPages=this.lastPage-this.firstPage}pageFromCfi(t){var e,i=-1;return 0===this.locations.length?-1:(-1!=(e=Object(h.indexOfSorted)(t,this.locations,this.epubcfi.compare))?i=this.pages[e]:void 0===(i=0<=(e=Object(h.locationOf)(t,this.locations,this.epubcfi.compare))-1?this.pages[e-1]:this.pages[0])&&(i=-1),i)}cfiFromPage(t){var e=-1,t=("number"!=typeof t&&(t=parseInt(t)),this.pages.indexOf(t));return e=-1!=t?this.locations[t]:e}pageFromPercentage(t){return Math.round(this.totalPages*t)}percentageFromPage(t){t=(t-this.firstPage)/this.totalPages;return Math.round(1e3*t)/1e3}percentageFromCfi(t){t=this.pageFromCfi(t);return this.percentageFromPage(t)}destroy(){this.pages=void 0,this.locations=void 0,this.epubcfi=void 0,this.pageList=void 0,this.toc=void 0,this.ncx=void 0}},x=e(12),b=e(32),j=e.n(b);var L=class{constructor(){this.zip=void 0,this.urlCache={},this.checkRequirements()}checkRequirements(){try{this.zip=new j.a}catch(t){throw new Error("JSZip lib not loaded")}}open(t,e){return this.zip.loadAsync(t,{base64:e})}openUrl(t,e){return s(t,"binary").then(function(t){return this.zip.loadAsync(t,{base64:e})}.bind(this))}request(t,e){var i=new h.defer,n=new u.a(t);return(n="blob"==(e=e||n.extension)?this.getBlob(t):this.getText(t))?n.then(function(t){t=this.handleResponse(t,e);i.resolve(t)}.bind(this)):i.reject({message:"File not found in the epub: "+t,stack:(new Error).stack}),i.promise}handleResponse(t,e){e="json"==e?JSON.parse(t):Object(h.isXml)(e)?Object(h.parse)(t,"text/xml"):"xhtml"==e?Object(h.parse)(t,"application/xhtml+xml"):"html"==e||"htm"==e?Object(h.parse)(t,"text/html"):t;return e}getBlob(t,e){t=window.decodeURIComponent(t.substr(1)),t=this.zip.file(t);if(t)return e=e||E.lookup(t.name),t.async("uint8array").then(function(t){return new Blob([t],{type:e})})}getText(t,e){t=window.decodeURIComponent(t.substr(1)),t=this.zip.file(t);if(t)return t.async("string").then(function(t){return t})}getBase64(t,e){t=window.decodeURIComponent(t.substr(1)),t=this.zip.file(t);if(t)return e=e||E.lookup(t.name),t.async("base64").then(function(t){return"data:"+e+";base64,"+t})}createUrl(e,t){var i,n,r=new h.defer,o=window.URL||window.webkitURL||window.mozURL,t=t&&t.base64;return e in this.urlCache?r.resolve(this.urlCache[e]):(t?(n=this.getBase64(e))&&n.then(function(t){this.urlCache[e]=t,r.resolve(t)}.bind(this)):(n=this.getBlob(e))&&n.then(function(t){i=o.createObjectURL(t),this.urlCache[e]=i,r.resolve(i)}.bind(this)),n||r.reject({message:"File not found in the epub: "+e,stack:(new Error).stack})),r.promise}revokeUrl(t){var e=window.URL||window.webkitURL||window.mozURL,t=this.urlCache[t];t&&e.revokeObjectURL(t)}destroy(){var t,e=window.URL||window.webkitURL||window.mozURL;for(t in this.urlCache)e.revokeObjectURL(t);this.zip=void 0,this.urlCache={}}},b=e(25),A=e.n(b);class P{constructor(t,e,i){this.urlCache={},this.storage=void 0,this.name=t,this.requester=e||s,this.resolver=i,this.online=!0,this.checkRequirements(),this.addListeners()}checkRequirements(){try{let t;void 0===A.a&&(t=A.a),this.storage=t.createInstance({name:this.name})}catch(t){throw new Error("localForage lib not loaded")}}addListeners(){this._status=this.status.bind(this),window.addEventListener("online",this._status),window.addEventListener("offline",this._status)}removeListeners(){window.removeEventListener("online",this._status),window.removeEventListener("offline",this._status),this._status=void 0}status(t){var e=navigator.onLine;
1(this.online=e)?this.emit("online",this):this.emit("offline",this)}add(t,n){t=t.resources.map(t=>{t=t.href;let e=this.resolver(t),i=window.encodeURIComponent(e);return this.storage.getItem(i).then(t=>!t||n?this.requester(e,"binary").then(t=>this.storage.setItem(i,t)):t)});return Promise.all(t)}put(e,i,n){let r=window.encodeURIComponent(e);return this.storage.getItem(r).then(t=>t||this.requester(e,"binary",i,n).then(t=>this.storage.setItem(r,t)))}request(e,t,i,n){return this.online?this.requester(e,t,i,n).then(t=>(this.put(e),t)):this.retrieve(e,t)}retrieve(i,n){new h.defer;var t=new u.a(i);return("blob"==(n=n||t.extension)?this.getBlob(i):this.getText(i)).then(t=>{var e=new h.defer;return t?(t=this.handleResponse(t,n),e.resolve(t)):e.reject({message:"File not found in storage: "+i,stack:(new Error).stack}),e.promise})}handleResponse(t,e){e="json"==e?JSON.parse(t):Object(h.isXml)(e)?Object(h.parse)(t,"text/xml"):"xhtml"==e?Object(h.parse)(t,"application/xhtml+xml"):"html"==e||"htm"==e?Object(h.parse)(t,"text/html"):t;return e}getBlob(e,i){var t=window.encodeURIComponent(e);return this.storage.getItem(t).then(function(t){if(t)return i=i||E.lookup(e),new Blob([t],{type:i})})}getText(t,n){var e=window.encodeURIComponent(t);return n=n||E.lookup(t),this.storage.getItem(e).then(function(t){var e=new h.defer,i=new FileReader;if(t)return t=new Blob([t],{type:n}),i.addEventListener("loadend",()=>{e.resolve(i.result)}),i.readAsText(t,n),e.promise})}getBase64(t,n){var e=window.encodeURIComponent(t);return n=n||E.lookup(t),this.storage.getItem(e).then(t=>{var e=new h.defer,i=new FileReader;if(t)return t=new Blob([t],{type:n}),i.addEventListener("loadend",()=>{e.resolve(i.result)}),i.readAsDataURL(t,n),e.promise})}createUrl(e,t){var i,n,r=new h.defer,o=window.URL||window.webkitURL||window.mozURL,t=t&&t.base64;return e in this.urlCache?r.resolve(this.urlCache[e]):(t?(n=this.getBase64(e))&&n.then(function(t){this.urlCache[e]=t,r.resolve(t)}.bind(this)):(n=this.getBlob(e))&&n.then(function(t){i=o.createObjectURL(t),this.urlCache[e]=i,r.resolve(i)}.bind(this)),n||r.reject({message:"File not found in storage: "+e,stack:(new Error).stack})),r.promise}revokeUrl(t){var e=window.URL||window.webkitURL||window.mozURL,t=this.urlCache[t];t&&e.revokeObjectURL(t)}destroy(){var t,e=window.URL||window.webkitURL||window.mozURL;for(t in this.urlCache)e.revokeObjectURL(t);this.urlCache={},this.removeListeners()}}i()(P.prototype);var M=P;var I=class{constructor(t){this.interactive="",this.fixedLayout="",this.openToSpread="",this.orientationLock="",t&&this.parse(t)}parse(t){return t&&(t=Object(h.qs)(t,"display_options"))&&Object(h.qsa)(t,"option").forEach(t=>{let e="";switch(t.childNodes.length&&(e=t.childNodes[0].nodeValue),t.attributes.name.value){case"interactive":this.interactive=e;break;case"fixed-layout":this.fixedLayout=e;break;case"open-to-spread":this.openToSpread=e;break;case"orientation-lock":this.orientationLock=e}}),this}destroy(){this.interactive=void 0,this.fixedLayout=void 0,this.openToSpread=void 0,this.orientationLock=void 0}};let $="META-INF/container.xml",R={BINARY:"binary",BASE64:"base64",EPUB:"epub",OPF:"opf",MANIFEST:"json",DIRECTORY:"directory"};class N{constructor(i,t){void 0===t&&"string"!=typeof i&&i instanceof Blob==!1&&i instanceof ArrayBuffer==!1&&(t=i,i=void 0),this.settings=Object(h.extend)(this.settings||{},{requestMethod:void 0,requestCredentials:void 0,requestHeaders:void 0,encoding:void 0,replacements:void 0,canonical:void 0,openAs:void 0,store:void 0}),Object(h.extend)(this.settings,t),this.opening=new h.defer,this.opened=this.opening.promise,this.isOpen=!1,this.loading={manifest:new h.defer,spine:new h.defer,metadata:new h.defer,cover:new h.defer,navigation:new h.defer,pageList:new h.defer,resources:new h.defer,displayOptions:new h.defer},this.loaded={manifest:this.loading.manifest.promise,spine:this.loading.spine.promise,metadata:this.loading.metadata.promise,cover:this.loading.cover.promise,navigation:this.loading.navigation.promise,pageList:this.loading.pageList.promise,resources:this.loading.resources.promise,displayOptions:this.loading.displayOptions.promise}
1,this.ready=Promise.all([this.loaded.manifest,this.loaded.spine,this.loaded.metadata,this.loaded.cover,this.loaded.navigation,this.loaded.resources,this.loaded.displayOptions]),this.isRendered=!1,this.request=this.settings.requestMethod||s,this.spine=new f,this.locations=new v(this.spine,this.load.bind(this)),this.navigation=void 0,this.pageList=void 0,this.url=void 0,this.path=void 0,this.archived=!1,this.archive=void 0,this.storage=void 0,this.resources=void 0,this.rendition=void 0,this.container=void 0,this.packaging=void 0,this.displayOptions=void 0,this.settings.store&&this.store(this.settings.store),i&&this.open(i,this.settings.openAs).catch(t=>{var e=new Error("Cannot load book at "+i);this.emit(m.c.BOOK.OPEN_FAILED,e)})}open(t,e){e=e||this.determineType(t),e=e===R.BINARY?(this.archived=!0,this.url=new r.a("/",""),this.openEpub(t)):e===R.BASE64?(this.archived=!0,this.url=new r.a("/",""),this.openEpub(t,e)):e===R.EPUB?(this.archived=!0,this.url=new r.a("/",""),this.request(t,"binary",this.settings.requestCredentials,this.settings.requestHeaders).then(this.openEpub.bind(this))):e==R.OPF?(this.url=new r.a(t),this.openPackaging(this.url.Path.toString())):e==R.MANIFEST?(this.url=new r.a(t),this.openManifest(this.url.Path.toString())):(this.url=new r.a(t),this.openContainer($).then(this.openPackaging.bind(this)));return e}openEpub(t,e){return this.unarchive(t,e||this.settings.encoding).then(()=>this.openContainer($)).then(t=>this.openPackaging(t))}openContainer(t){return this.load(t).then(t=>(this.container=new w(t),this.resolve(this.container.packagePath)))}openPackaging(t){return this.path=new u.a(t),this.load(t).then(t=>(this.packaging=new S(t),this.unpack(this.packaging)))}openManifest(t){return this.path=new u.a(t),this.load(t).then(t=>(this.packaging=new S,this.packaging.load(t),this.unpack(this.packaging)))}load(t){t=this.resolve(t);return this.archived?this.archive.request(t):this.request(t,null,this.settings.requestCredentials,this.settings.requestHeaders)}resolve(t,e){var i;if(t)return-1<(i=t).indexOf("://")?t:(this.path&&(i=this.path.resolve(t)),0!=e&&this.url?this.url.resolve(i):i)}canonical(t){return t?this.settings.canonical?this.settings.canonical(t):this.resolve(t,!0):""}determineType(t){return"base64"===this.settings.encoding?R.BASE64:"string"!=typeof t?R.BINARY:(t=(t=new r.a(t).path().extension)&&t.replace(/\?.*$/,""))?"epub"===t?R.EPUB:"opf"===t?R.OPF:"json"===t?R.MANIFEST:void 0:R.DIRECTORY}unpack(t){this.package=t,""===this.packaging.metadata.layout?this.load(this.url.resolve("META-INF/com.apple.ibooks.display-options.xml")).then(t=>{this.displayOptions=new I(t),this.loading.displayOptions.resolve(this.displayOptions)}).catch(t=>{this.displayOptions=new I,this.loading.displayOptions.resolve(this.displayOptions)}):(this.displayOptions=new I,this.loading.displayOptions.resolve(this.displayOptions)),this.spine.unpack(this.packaging,this.resolve.bind(this),this.canonical.bind(this)),this.resources=new C(this.packaging.manifest,{archive:this.archive,resolver:this.resolve.bind(this),request:this.request.bind(this),replacements:this.settings.replacements||(this.archived?"blobUrl":"base64")}),this.loadNavigation(this.packaging).then(()=>{this.loading.navigation.resolve(this.navigation)}),this.packaging.coverPath&&(this.cover=this.resolve(this.packaging.coverPath)),this.loading.manifest.resolve(this.packaging.manifest),this.loading.metadata.resolve(this.packaging.metadata),this.loading.spine.resolve(this.spine),this.loading.cover.resolve(this.cover),this.loading.resources.resolve(this.resources),this.loading.pageList.resolve(this.pageList),this.isOpen=!0,this.archived||this.settings.replacements&&"none"!=this.settings.replacements?this.replacements().then(()=>{this.loaded.displayOptions.then(()=>{this.opening.resolve(this)})}).catch(t=>{console.error(t)}):this.loaded.displayOptions.then(()=>{this.opening.resolve(this)})}loadNavigation(i){var t=i.navPath||i.ncxPath;let n=i.toc;return n?new Promise((t,e)=>{this.navigation=new _(n),i.pageList&&(this.pageList=new T(i.pageList)),t(this.navigation)}):t?this.load(t,"xml").then(t=>(this.navigation=new _(t),this.pageList=new T(t),this.navigation)):new Promise((t,e)=>{this.navigation=new _,this.pageList=new T,t(this.navigation)})}section(t){return this.spine.get(t)}renderTo(t,e){return this.rendition=new x.a(this,e),this.rendition.attachTo(t),this.rendition}setRequestCredentials(t){this.settings.requestCredentials=t}setRequestHeaders(t){this.settings.requestHeaders=t}
1unarchive(t,e){return this.archive=new L,this.archive.open(t,e)}store(t){let e=this.settings.replacements&&"none"!==this.settings.replacements,i=this.url;var n=this.settings.requestMethod||s.bind(this);return this.storage=new M(t,n,this.resolve.bind(this)),this.request=this.storage.request.bind(this.storage),this.opened.then(()=>{this.archived&&(this.storage.requester=this.archive.request.bind(this.archive));let t=(t,e)=>{e.output=this.resources.substitute(t,e.url)};this.resources.settings.replacements=e||"blobUrl",this.resources.replacements().then(()=>this.resources.replaceCss()),this.storage.on("offline",()=>{this.url=new r.a("/",""),this.spine.hooks.serialize.register(t)}),this.storage.on("online",()=>{this.url=i,this.spine.hooks.serialize.deregister(t)})}),this.storage}coverUrl(){return this.loaded.cover.then(()=>this.cover?this.archived?this.archive.createUrl(this.cover):this.cover:null)}replacements(){return this.spine.hooks.serialize.register((t,e)=>{e.output=this.resources.substitute(t,e.url)}),this.resources.replacements().then(()=>this.resources.replaceCss())}getRange(t){var e=new d.a(t),i=this.spine.get(e.spinePos),t=this.load.bind(this);return i?i.load(t).then(function(t){return e.toRange(i.document)}):new Promise((t,e)=>{e("CFI could not be found")})}key(t){t=t||this.packaging.metadata.identifier||this.url.filename;return`epubjs:${m.b}:`+t}destroy(){this.opened=void 0,this.loading=void 0,this.loaded=void 0,this.ready=void 0,this.isOpen=!1,this.isRendered=!1,this.spine&&this.spine.destroy(),this.locations&&this.locations.destroy(),this.pageList&&this.pageList.destroy(),this.archive&&this.archive.destroy(),this.resources&&this.resources.destroy(),this.container&&this.container.destroy(),this.packaging&&this.packaging.destroy(),this.rendition&&this.rendition.destroy(),this.displayOptions&&this.displayOptions.destroy(),this.spine=void 0,this.locations=void 0,this.pageList=void 0,this.archive=void 0,this.resources=void 0,this.container=void 0,this.packaging=void 0,this.rendition=void 0,this.navigation=void 0,this.url=void 0,this.path=void 0,this.archived=!1}}i()(N.prototype);t.a=N},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.Underline=e.Highlight=e.Mark=e.Pane=void 0;function r(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);return void 0!==n?"value"in n?n.value:void 0!==(n=n.get)?n.call(i):void 0:null!==(n=Object.getPrototypeOf(t))?r(n,e,i):void 0}var n=function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t};function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=a(i(70)),s=a(i(71));function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.Pane=(n(d,[{key:"addMark",value:function(t){var e=c.default.createElement("g");return this.element.appendChild(e),t.bind(e,this.container),this.marks.push(t),t.render(),t}},{key:"removeMark",value:function(t){var e=this.marks.indexOf(t);-1!==e&&(t=t.unbind(),this.element.removeChild(t),this.marks.splice(e,1))}},{key:"render",value:function(){t=this.element,r=this.target,n=(n=this.container).getBoundingClientRect(),e=r.getBoundingClientRect(),e={top:e.top-n.top,left:e.left-n.left,height:r.scrollHeight,width:r.scrollWidth},t.style.setProperty("top",e.top+"px","important"),t.style.setProperty("left",e.left+"px","important"),t.style.setProperty("height",e.height+"px","important"),t.style.setProperty("width",e.width+"px","important");var t,e,i=!0,n=!1,r=void 0;try{for(var o,s=this.marks[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)o.value.render()}catch(t){n=!0,r=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}}}]),d);function d(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.body;h(this,d),this.target=t,this.element=c.default.createElement("svg"),this.marks=[],this.element.style.position="absolute",this.element.setAttribute("pointer-events","none"),s.default.proxyMouse(this.target,this.marks),this.container=e,this.container.appendChild(this.element),this.render()}i=e.Mark=(n(f,[{key:"bind",value:function(t,e){this.element=t,this.container=e}},{key:"unbind",value:function(){var t=this.element;return this.element=null,t}},{key:"render",value:function(){}},{key:"dispatchEvent",value:function(t){this.element&&this.element.dispatchEvent(t)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"getClientRects",value:function(){for(var t=[],e=this.element.firstChild;e;)t.push(e.getBoundingClientRect()),e=e.nextSibling;return t}},{key:"filteredRanges",value:function(){var r=Array.from(this.range.getClientRects());return r.filter(function(t){for(var e,i,n=0;n<r.length;n++){if(r[n]===t)return!0;
1if(e=r[n],(i=t).right<=e.right&&i.left>=e.left&&i.top>=e.top&&i.bottom<=e.bottom)return!1}return!0})}}]),f);function f(){h(this,f),this.element=null}i=e.Highlight=(u(p,i),n(p,[{key:"bind",value:function(t,e){for(var i in r(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"bind",this).call(this,t,e),this.data)this.data.hasOwnProperty(i)&&(this.element.dataset[i]=this.data[i]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&this.element.setAttribute(i,this.attributes[i]);this.className&&this.element.classList.add(this.className)}},{key:"render",value:function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(var t=this.element.ownerDocument.createDocumentFragment(),e=this.filteredRanges(),i=this.element.getBoundingClientRect(),n=this.container.getBoundingClientRect(),r=0,o=e.length;r<o;r++){var s=e[r],a=c.default.createElement("rect");a.setAttribute("x",s.left-i.left+n.left),a.setAttribute("y",s.top-i.top+n.top),a.setAttribute("height",s.height),a.setAttribute("width",s.width),t.appendChild(a)}this.element.appendChild(t)}}]),p);function p(t,e,i,n){h(this,p);var r=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this));return r.range=t,r.className=e,r.data=i||{},r.attributes=n||{},r}e.Underline=(u(m,i),n(m,[{key:"render",value:function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(var t=this.element.ownerDocument.createDocumentFragment(),e=this.filteredRanges(),i=this.element.getBoundingClientRect(),n=this.container.getBoundingClientRect(),r=0,o=e.length;r<o;r++){var s=e[r],a=c.default.createElement("rect"),l=(a.setAttribute("x",s.left-i.left+n.left),a.setAttribute("y",s.top-i.top+n.top),a.setAttribute("height",s.height),a.setAttribute("width",s.width),a.setAttribute("fill","none"),c.default.createElement("line"));l.setAttribute("x1",s.left-i.left+n.left),l.setAttribute("x2",s.left-i.left+n.left+s.width),l.setAttribute("y1",s.top-i.top+n.top+s.height-1),l.setAttribute("y2",s.top-i.top+n.top+s.height-1),l.setAttribute("stroke-width",1),l.setAttribute("stroke","black"),l.setAttribute("stroke-linecap","square"),t.appendChild(a),t.appendChild(l)}this.element.appendChild(t)}}]),m);function m(t,e,i,n){return h(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,t,e,i,n))}},function(t,e,i){function n(t,e){return(e=void 0===e?Object:e)&&"function"==typeof e.freeze?e.freeze(t):t}var r=n({HTML:"text/html",isHTML:function(t){return t===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.find=function(t,e,i){if(void 0===i&&(i=Array.prototype),t&&"function"==typeof i.find)return i.find.call(t,e);for(var n=0;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];if(e.call(void 0,r,n,t))return r}},e.freeze=n,e.MIME_TYPE=r,e.NAMESPACE=o},function(t,e,i){var n=i(0),r=i(1),o=i(3);class s{constructor(t){this.settings=t,this.name=t.layout||"reflowable",this._spread="none"!==t.spread,this._minSpreadWidth=t.minSpreadWidth||800,this._evenSpreads=t.evenSpreads||!1,"scrolled"===t.flow||"scrolled-continuous"===t.flow||"scrolled-doc"===t.flow?this._flow="scrolled":this._flow="paginated",this.width=0,this.height=0,this.spreadWidth=0,this.delta=0,this.columnWidth=0,this.gap=0,this.divisor=1,this.props={name:this.name,spread:this._spread,flow:this._flow,width:0,height:0,spreadWidth:0,delta:0,columnWidth:0,gap:0,divisor:1}}flow(t){return void 0!==t&&(this._flow="scrolled"===t||"scrolled-continuous"===t||"scrolled-doc"===t?"scrolled":"paginated",this.update({flow:this._flow})),this._flow}spread(t,e){return t&&(this._spread="none"!==t,this.update({spread:this._spread})),0<=e&&(this._minSpreadWidth=e),this._spread}calculate(t,e,i){var n,r,o=1,s=i||0,a=Math.floor(t/12),o=this._spread&&t>=this._minSpreadWidth?2:1;"reflowable"!==this.name||"paginated"!==this._flow||0<=i||(s=a%2==0?a:a-1),"pre-paginated"===this.name&&(s=0),i=1<o?(n=t/o-s)+s:n=t,a=n*o+s,r=t="pre-paginated"===this.name&&1<o?n:t,this.width=t,this.height=e,this.spreadWidth=a,this.pageWidth=i,this.delta=r,this.columnWidth=n,this.gap=s,this.divisor=o,this.update({width:t,height:e,spreadWidth:a,pageWidth:i,delta:r,columnWidth:n,gap:s,divisor:o})}format(t,e,i){e="pre-paginated"===this.name?t.fit(this.columnWidth,this.height,e):"paginated"===this._flow?t.columns(this.width,this.height,this.columnWidth,this.gap,this.settings.direction):i&&"horizontal"===i?t.size(null,this.height):t.size(this.width,null);return e}count(t,e){let i,n;return n="pre-paginated"===this.name?i=1:"paginated"===this._flow?(e=e||this.delta,(i=Math.ceil(t/e))*this.divisor):(e=e||this.height,i=Math.ceil(t/e)),{spreads:i,pages:n}}update(e){var t;Object.keys(e).forEach(t=>{this.props[t]===e[t]&&delete e[t]}),0<Object.keys(e).length&&(t=Object(n.extend)(this.props,e),this.emit
1(r.c.LAYOUT.UPDATED,t,e))}}i.n(o)()(s.prototype),e.a=s},function(t,e,i){var n=i(29);e.DOMImplementation=n.DOMImplementation,e.XMLSerializer=n.XMLSerializer,e.DOMParser=i(67).DOMParser},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){var n=i(60)();t.exports=function(t){return t!==n&&null!==t}},function(t,e,i){var n=i(3),n=i.n(n),o=i(0),r=i(2),s=i(10),l=i(1),a=i(17);class c{constructor(t,e){this.settings=Object(o.extend)({ignoreClass:"",axis:void 0,direction:void 0,width:0,height:0,layout:void 0,globalLayoutProperties:{},method:void 0,forceRight:!1,allowScriptedContent:!1,allowPopups:!1},e||{}),this.id="epubjs-view-"+Object(o.uuid)(),this.section=t,this.index=t.index,this.element=this.container(this.settings.axis),this.added=!1,this.displayed=!1,this.rendered=!1,this.fixedWidth=0,this.fixedHeight=0,this.epubcfi=new r.a,this.layout=this.settings.layout,this.pane=void 0,this.highlights={},this.underlines={},this.marks={}}container(t){var e=document.createElement("div");return e.classList.add("epub-view"),e.style.height="0px",e.style.width="0px",e.style.overflow="hidden",e.style.position="relative",e.style.display="block",e.style.flex=t&&"horizontal"==t?"none":"initial",e}create(){return this.iframe||(this.element||(this.element=this.createContainer()),this.iframe=document.createElement("iframe"),this.iframe.id=this.id,this.iframe.scrolling="no",this.iframe.style.overflow="hidden",this.iframe.seamless="seamless",this.iframe.style.border="none",this.iframe.sandbox="allow-same-origin",this.settings.allowScriptedContent&&(this.iframe.sandbox+=" allow-scripts"),this.settings.allowPopups&&(this.iframe.sandbox+=" allow-popups"),this.iframe.setAttribute("enable-annotation","true"),this.resizing=!0,this.element.style.visibility="hidden",this.iframe.style.visibility="hidden",this.iframe.style.width="0",this.iframe.style.height="0",this._width=0,this._height=0,this.element.setAttribute("ref",this.index),this.added=!0,this.elementBounds=Object(o.bounds)(this.element),"srcdoc"in this.iframe?this.supportsSrcdoc=!0:this.supportsSrcdoc=!1,this.settings.method)||(this.settings.method=this.supportsSrcdoc?"srcdoc":"write"),this.iframe}render(t,e){return this.create(),this.size(),this.sectionRender||(this.sectionRender=this.section.render(t)),this.sectionRender.then(function(t){return this.load(t)}.bind(this)).then(function(){var t=this.contents.writingMode();let e;return e="scrolled"===this.settings.flow?0===t.indexOf("vertical")?"horizontal":"vertical":0===t.indexOf("vertical")?"vertical":"horizontal",0===t.indexOf("vertical")&&"paginated"===this.settings.flow&&(this.layout.delta=this.layout.height),this.setAxis(e),this.emit(l.c.VIEWS.AXIS,e),this.setWritingMode(t),this.emit(l.c.VIEWS.WRITING_MODE,t),this.layout.format(this.contents,this.section,this.axis),this.addListeners(),new Promise((t,e)=>{this.expand(),this.settings.forceRight&&(this.element.style.marginLeft=this.width()+"px"),t()})}.bind(this),function(i){return this.emit(l.c.VIEWS.LOAD_ERROR,i),new Promise((t,e)=>{e(i)})}.bind(this)).then(function(){this.emit(l.c.VIEWS.RENDERED,this.section)}.bind(this))}reset(){this.iframe&&(this.iframe.style.width="0",this.iframe.style.height="0",this._width=0,this._height=0,this._textWidth=void 0,this._contentWidth=void 0,this._textHeight=void 0,this._contentHeight=void 0),this._needsReframe=!0}size(t,e){t=t||this.settings.width,e=e||this.settings.height;"pre-paginated"===this.layout.name?this.lock("both",t,e):"horizontal"===this.settings.axis?this.lock("height",t,e):this.lock("width",t,e),this.settings.width=t,this.settings.height=e}lock(t,e,i){var n=Object(o.borders)(this.element),r=this.iframe?Object(o.borders)(this.iframe):{width:0,height:0};"width"==t&&Object(o.isNumber)(e)&&(this.lockedWidth=e-n.width-r.width),"height"==t&&Object(o.isNumber)(i)&&(this.lockedHeight=i-n.height-r.height),"both"===t&&Object(o.isNumber)(e)&&Object(o.isNumber)(i)&&(this.lockedWidth=e-n.width-r.width,this.lockedHeight=i-n.height-r.height),this.displayed&&this.iframe&&this.expand()}expand(t){var e,i=this.lockedWidth,n=this.lockedHeight;this.iframe&&!this._expanding&&(this._expanding=!0,"pre-paginated"===this.layout.name?(i=this.layout.columnWidth,n=this.layout.height):"horizontal"===this.settings.axis?(0<(i=this.contents.textWidth())%this.layout.pageWidth&&(i=Math.ceil(i/this.layout.pageWidth)*this.layout.pageWidth),this.settings.forceEvenPages&&(e=i/this.layout.pageWidth,1<this.layout.divisor)&&"reflowable"===this.layout.name&&0<e%2&&(i+=this.layout.pageWidth)):"vertical"===this.settings.axis&&(n=this.contents.textHeight(),"paginated"===this.settings.flow)&&0<n%this.layout.height&&(n=Math.ceil(n/this.layout.height)*this.layout.height),!this._needsReframe&&i==this._width&&n==this._height||this.reframe(i,n),this._expanding=!1)}reframe(t,e){Object(o.isNumber)(t)&&(this.element.style.width=t+"px",this.iframe.style.width=t+"px",this._width=t),Object(o.isNumber)(e)&&(this.element.style.height=e+"px",this.iframe.style.height=e+"px",this._height=e);var i=this.prevBounds?t-this.prevBounds.width:t,t={width:t,height:e,widthDelta:i,heightDelta:this.prevBounds?e-this.prevBounds.height:e};this.pane&&this.pane.render(),requestAnimationFrame(()=>{var t,e;for(e in this.marks)this.marks.hasOwnProperty(e)&&(t=this.marks[e],this.placeMark(t.element,t.range))}
1),this.onResize(this,t),this.emit(l.c.VIEWS.RESIZED,t),this.prevBounds=t,this.elementBounds=Object(o.bounds)(this.element)}load(t){var e,i=new o.defer,n=i.promise;if(this.iframe)if(this.iframe.onload=function(t){this.onLoad(t,i)}.bind(this),"blobUrl"===this.settings.method)this.blobUrl=Object(o.createBlobUrl)(t,"application/xhtml+xml"),this.iframe.src=this.blobUrl,this.element.appendChild(this.iframe);else if("srcdoc"===this.settings.method)this.iframe.srcdoc=t,this.element.appendChild(this.iframe);else{if(this.element.appendChild(this.iframe),this.document=this.iframe.contentDocument,!this.document)return i.reject(new Error("No Document Available")),n;this.iframe.contentDocument.open(),window.MSApp&&MSApp.execUnsafeLocalFunction?(e=this,MSApp.execUnsafeLocalFunction(function(){e.iframe.contentDocument.write(t)})):this.iframe.contentDocument.write(t),this.iframe.contentDocument.close()}else i.reject(new Error("No Iframe Available"));return n}onLoad(t,e){this.window=this.iframe.contentWindow,this.document=this.iframe.contentDocument,this.contents=new s.a(this.document,this.document.body,this.section.cfiBase,this.section.index),this.rendering=!1;var i=this.document.querySelector("link[rel='canonical']");i?i.setAttribute("href",this.section.canonical):((i=this.document.createElement("link")).setAttribute("rel","canonical"),i.setAttribute("href",this.section.canonical),this.document.querySelector("head").appendChild(i)),this.contents.on(l.c.CONTENTS.EXPAND,()=>{this.displayed&&this.iframe&&(this.expand(),this.contents)&&this.layout.format(this.contents)}),this.contents.on(l.c.CONTENTS.RESIZE,t=>{this.displayed&&this.iframe&&(this.expand(),this.contents)&&this.layout.format(this.contents)}),e.resolve(this.contents)}setLayout(t){this.layout=t,this.contents&&(this.layout.format(this.contents),this.expand())}setAxis(t){this.settings.axis=t,this.element.style.flex="horizontal"==t?"none":"initial",this.size()}setWritingMode(t){this.writingMode=t}addListeners(){}removeListeners(t){}display(t){var e=new o.defer;return this.displayed?e.resolve(this):this.render(t).then(function(){this.emit(l.c.VIEWS.DISPLAYED,this),this.onDisplayed(this),this.displayed=!0,e.resolve(this)}.bind(this),function(t){e.reject(t,this)}),e.promise}show(){this.element.style.visibility="visible",this.iframe&&(this.iframe.style.visibility="visible",this.iframe.style.transform="translateZ(0)",this.iframe.offsetWidth,this.iframe.style.transform=null),this.emit(l.c.VIEWS.SHOWN,this)}hide(){this.element.style.visibility="hidden",this.iframe.style.visibility="hidden",this.stopExpanding=!0,this.emit(l.c.VIEWS.HIDDEN,this)}offset(){return{top:this.element.offsetTop,left:this.element.offsetLeft}}width(){return this._width}height(){return this._height}position(){return this.element.getBoundingClientRect()}locationOf(t){this.iframe.getBoundingClientRect();t=this.contents.locationOf(t,this.settings.ignoreClass);return{left:t.left,top:t.top}}onDisplayed(t){}onResize(t,e){}bounds(t){return!t&&this.elementBounds||(this.elementBounds=Object(o.bounds)(this.element)),this.elementBounds}highlight(t,e={},i,n="epubjs-hl",r={}){var o,s;if(this.contents)return r=Object.assign({fill:"yellow","fill-opacity":"0.3","mix-blend-mode":"multiply"},r),s=this.contents.range(t),o=()=>{this.emit(l.c.VIEWS.MARK_CLICKED,t,e)},e.epubcfi=t,this.pane||(this.pane=new a.Pane(this.iframe,this.element)),s=new a.Highlight(s,n,e,r),r=this.pane.addMark(s),this.highlights[t]={mark:r,element:r.element,listeners:[o,i]},r.element.setAttribute("ref",n),r.element.addEventListener("click",o),r.element.addEventListener("touchstart",o),i&&(r.element.addEventListener("click",i),r.element.addEventListener("touchstart",i)),r}underline(t,e={},i,n="epubjs-ul",r={}){var o,s;if(this.contents)return r=Object.assign({stroke:"black","stroke-opacity":"0.3","mix-blend-mode":"multiply"},r),s=this.contents.range(t),o=()=>{this.emit(l.c.VIEWS.MARK_CLICKED,t,e)},e.epubcfi=t,this.pane||(this.pane=new a.Pane(this.iframe,this.element)),s=new a.Underline(s,n,e,r),r=this.pane.addMark(s),this.underlines[t]={mark:r,element:r.element,listeners:[o,i]},r.element.setAttribute("ref",n),r.element.addEventListener("click",o),r.element.addEventListener("touchstart",o),i&&(r.element.addEventListener("click",i),r.element.addEventListener("touchstart",i)),r}mark(i,n={},r){if(this.contents){if(i in this.marks)return this.marks[i];let t=this.contents.range(i);if(t){var o=t.commonAncestorContainer,s=1===o.nodeType?o:o.parentNode,a=t=>
1{this.emit(l.c.VIEWS.MARK_CLICKED,i,n)};t.collapsed&&1===o.nodeType?(t=new Range).selectNodeContents(o):t.collapsed&&(t=new Range).selectNodeContents(s);let e=this.document.createElement("a");return e.setAttribute("ref","epubjs-mk"),e.style.position="absolute",e.dataset.epubcfi=i,n&&Object.keys(n).forEach(t=>{e.dataset[t]=n[t]}),r&&(e.addEventListener("click",r),e.addEventListener("touchstart",r)),e.addEventListener("click",a),e.addEventListener("touchstart",a),this.placeMark(e,t),this.element.appendChild(e),this.marks[i]={element:e,range:t,listeners:[a,r]},s}}}placeMark(t,e){let i,n,r;if("pre-paginated"===this.layout.name||"horizontal"!==this.settings.axis){var o=e.getBoundingClientRect();i=o.top,n=o.right}else for(var s,a=e.getClientRects(),l=0;l!=a.length;l++)s=a[l],(!r||s.left<r)&&(r=s.left,n=Math.ceil(r/this.layout.props.pageWidth)*this.layout.props.pageWidth-this.layout.gap/2,i=s.top);t.style.top=i+"px",t.style.left=n+"px"}unhighlight(t){let e;t in this.highlights&&(e=this.highlights[t],this.pane.removeMark(e.mark),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.highlights[t])}ununderline(t){let e;t in this.underlines&&(e=this.underlines[t],this.pane.removeMark(e.mark),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.underlines[t])}unmark(t){let e;t in this.marks&&(e=this.marks[t],this.element.removeChild(e.element),e.listeners.forEach(t=>{t&&(e.element.removeEventListener("click",t),e.element.removeEventListener("touchstart",t))}),delete this.marks[t])}destroy(){for(var t in this.highlights)this.unhighlight(t);for(var e in this.underlines)this.ununderline(e);for(var i in this.marks)this.unmark(i);this.blobUrl&&Object(o.revokeBlobUrl)(this.blobUrl),this.displayed&&(this.displayed=!1,this.removeListeners(),this.contents.destroy(),this.stopExpanding=!0,this.element.removeChild(this.iframe),this.pane&&(this.pane.element.remove(),this.pane=void 0),this.iframe=void 0,this.contents=void 0,this._textWidth=null,this._textHeight=null,this._width=null,this._height=null)}}n()(c.prototype),e.a=c},function(t,e,i){var h=i(0),n=i(14),r=i(1),o=i(3),o=i.n(o);let s=Math.PI/2,a={easeOutSine:function(t){return Math.sin(t*s)},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},easeInCubic:function(t){return Math.pow(t,3)}};class l{constructor(t,e){this.settings=Object(h.extend)({duration:80,minVelocity:.2,minDistance:10,easing:a.easeInCubic},e||{}),this.supportsTouch=this.supportsTouch(),this.supportsTouch&&this.setup(t)}setup(t){this.manager=t,this.layout=this.manager.layout,this.fullsize=this.manager.settings.fullsize,this.fullsize?(this.element=this.manager.stage.element,this.scroller=window,this.disableScroll()):(this.element=this.manager.stage.container,this.scroller=this.element,this.element.style.WebkitOverflowScrolling="touch"),this.manager.settings.offset=this.layout.width,this.manager.settings.afterScrolledTimeout=2*this.settings.duration,this.isVertical="vertical"===this.manager.settings.axis,this.manager.isPaginated&&!this.isVertical&&(this.touchCanceler=!1,this.resizeCanceler=!1,this.snapping=!1,this.scrollLeft,this.scrollTop,this.startTouchX=void 0,this.startTouchY=void 0,this.startTime=void 0,this.endTouchX=void 0,this.endTouchY=void 0,this.endTime=void 0,this.addListeners())}supportsTouch(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}disableScroll(){this.element.style.overflow="hidden"}enableScroll(){this.element.style.overflow=""}addListeners(){this._onResize=this.onResize.bind(this),window.addEventListener("resize",this._onResize),this._onScroll=this.onScroll.bind(this),this.scroller.addEventListener("scroll",this._onScroll),this._onTouchStart=this.onTouchStart.bind(this),this.scroller.addEventListener("touchstart",this._onTouchStart,{passive:!0}),this.on("touchstart",this._onTouchStart),this._onTouchMove=this.onTouchMove.bind(this),this.scroller.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.on("touchmove",this._onTouchMove),this._onTouchEnd=this.onTouchEnd.bind(this),this.scroller.addEventListener("touchend",this._onTouchEnd,{passive:!0}
1),this.on("touchend",this._onTouchEnd),this._afterDisplayed=this.afterDisplayed.bind(this),this.manager.on(r.c.MANAGERS.ADDED,this._afterDisplayed)}removeListeners(){window.removeEventListener("resize",this._onResize),this._onResize=void 0,this.scroller.removeEventListener("scroll",this._onScroll),this._onScroll=void 0,this.scroller.removeEventListener("touchstart",this._onTouchStart,{passive:!0}),this.off("touchstart",this._onTouchStart),this._onTouchStart=void 0,this.scroller.removeEventListener("touchmove",this._onTouchMove,{passive:!0}),this.off("touchmove",this._onTouchMove),this._onTouchMove=void 0,this.scroller.removeEventListener("touchend",this._onTouchEnd,{passive:!0}),this.off("touchend",this._onTouchEnd),this._onTouchEnd=void 0,this.manager.off(r.c.MANAGERS.ADDED,this._afterDisplayed),this._afterDisplayed=void 0}afterDisplayed(t){let e=t.contents;["touchstart","touchmove","touchend"].forEach(t=>{e.on(t,t=>this.triggerViewEvent(t,e))})}triggerViewEvent(t,e){this.emit(t.type,t,e)}onScroll(t){this.scrollLeft=this.fullsize?window.scrollX:this.scroller.scrollLeft,this.scrollTop=this.fullsize?window.scrollY:this.scroller.scrollTop}onResize(t){this.resizeCanceler=!0}onTouchStart(t){var{screenX:t,screenY:e}=t.touches[0];this.fullsize&&this.enableScroll(),this.touchCanceler=!0,this.startTouchX||(this.startTouchX=t,this.startTouchY=e,this.startTime=this.now()),this.endTouchX=t,this.endTouchY=e,this.endTime=this.now()}onTouchMove(t){var{screenX:t,screenY:e}=t.touches[0],i=Math.abs(e-this.endTouchY);this.touchCanceler=!0,!this.fullsize&&i<10&&(this.element.scrollLeft-=t-this.endTouchX),this.endTouchX=t,this.endTouchY=e,this.endTime=this.now()}onTouchEnd(t){this.fullsize&&this.disableScroll(),this.touchCanceler=!1;var e=this.wasSwiped();0!==e?this.snap(e):this.snap(),this.startTouchX=void 0,this.startTouchY=void 0,this.startTime=void 0,this.endTouchX=void 0,this.endTouchY=void 0,this.endTime=void 0}wasSwiped(){var t=this.layout.pageWidth*this.layout.divisor,e=this.endTouchX-this.startTouchX,i=Math.abs(e),e=e/(this.endTime-this.startTime),n=this.settings.minVelocity;return i<=this.settings.minDistance||t<=i?0:n<e?-1:e<-n?1:void 0}needsSnap(){return this.scrollLeft%(this.layout.pageWidth*this.layout.divisor)!=0}snap(t=0){var e=this.scrollLeft,i=this.layout.pageWidth*this.layout.divisor;let n=Math.round(e/i)*i;return t&&(n+=t*i),this.smoothScrollTo(n)}smoothScrollTo(e){let i=new h.defer,n=this.scrollLeft,r=this.now(),o=this.settings.duration,s=this.settings.easing;function a(){var t=this.now(),t=Math.min(1,(t-r)/o);s(t);this.touchCanceler||this.resizeCanceler?(this.resizeCanceler=!1,this.snapping=!1,i.resolve()):t<1?(window.requestAnimationFrame(a.bind(this)),this.scrollTo(n+(e-n)*t,0)):(this.scrollTo(e,0),this.snapping=!1,i.resolve())}return this.snapping=!0,a.call(this),i.promise}scrollTo(t=0,e=0){this.fullsize?window.scroll(t,e):(this.scroller.scrollLeft=t,this.scroller.scrollTop=e)}now(){return"now"in window.performance?performance.now():(new Date).getTime()}destroy(){this.scroller&&(this.fullsize&&this.enableScroll(),this.removeListeners(),this.scroller=void 0)}}o()(l.prototype);var c=l,o=i(11),u=i.n(o);class d extends n.a{constructor(t){super(t),this.name="continuous",this.settings=Object(h.extend)(this.settings||{},{infinite:!0,overflow:void 0,axis:void 0,writingMode:void 0,flow:"scrolled",offset:500,offsetDelta:250,width:void 0,height:void 0,snap:!1,afterScrolledTimeout:10,allowScriptedContent:!1,allowPopups:!1}),Object(h.extend)(this.settings,t.settings||{}),"undefined"!=t.settings.gap&&0===t.settings.gap&&(this.settings.gap=t.settings.gap),this.viewSettings={ignoreClass:this.settings.ignoreClass,axis:this.settings.axis,flow:this.settings.flow,layout:this.layout,width:0,height:0,forceEvenPages:!1,allowScriptedContent:this.settings.allowScriptedContent,allowPopups:this.settings.allowPopups},this.scrollTop=0,this.scrollLeft=0}display(t,e){return n.a.prototype.display.call(this,t,e).then(function(){return this.fill()}.bind(this))}fill(t){var e=t||new h.defer;return this.q.enqueue(()=>this.check()).then(t=>{t?this.fill(e):e.resolve()}),e.promise}moveTo(t){var e=0,i=0;this.isPaginated?(e=Math.floor(t.left/this.layout.delta)*this.layout.delta,this.settings.offsetDelta):(i=t.top,this.settings.offsetDelta),(0<e||0<i)&&this.scrollBy(e,i,!0)}
1afterResized(t){this.emit(r.c.MANAGERS.RESIZE,t.section)}removeShownListeners(t){t.onDisplayed=function(){}}add(t){var e=this.createView(t);return this.views.append(e),e.on(r.c.VIEWS.RESIZED,t=>{e.expanded=!0}),e.on(r.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),e.on(r.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),e.onDisplayed=this.afterDisplayed.bind(this),e.onResize=this.afterResized.bind(this),e.display(this.request)}append(t){var e=this.createView(t);return e.on(r.c.VIEWS.RESIZED,t=>{e.expanded=!0}),e.on(r.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),e.on(r.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),this.views.append(e),e.onDisplayed=this.afterDisplayed.bind(this),e}prepend(t){var e=this.createView(t);return e.on(r.c.VIEWS.RESIZED,t=>{this.counter(t),e.expanded=!0}),e.on(r.c.VIEWS.AXIS,t=>{this.updateAxis(t)}),e.on(r.c.VIEWS.WRITING_MODE,t=>{this.updateWritingMode(t)}),this.views.prepend(e),e.onDisplayed=this.afterDisplayed.bind(this),e}counter(t){"vertical"===this.settings.axis?this.scrollBy(0,t.heightDelta,!0):this.scrollBy(t.widthDelta,0,!0)}update(t){for(var e=this.bounds(),i=this.views.all(),n=i.length,r=[],o=void 0!==t?t:this.settings.offset||0,s=new h.defer,a=[],l=0;l<n;l++){var c,u=i[l];!0===this.isVisible(u,o,o,e)?(u.displayed?u.show():(c=u.display(this.request).then(function(t){t.show()},t=>{u.hide()}),a.push(c)),r.push(u)):(this.q.enqueue(u.destroy.bind(u)),clearTimeout(this.trimTimeout),this.trimTimeout=setTimeout(function(){this.q.enqueue(this.trim.bind(this))}.bind(this),250))}return a.length?Promise.all(a).catch(t=>{s.reject(t)}):(s.resolve(),s.promise)}check(t,e){var i=new h.defer,n=[],r="horizontal"===this.settings.axis,o=this.settings.offset||0,t=(t&&r&&(o=t),e&&!r&&(o=e),this._bounds);let s=r?this.scrollLeft:this.scrollTop;var e=r?Math.floor(t.width):t.height,t=r?this.container.scrollWidth:this.container.scrollHeight,a=this.writingMode&&0===this.writingMode.indexOf("vertical")?"vertical":"horizontal",l=this.settings.rtlScrollType,c="rtl"===this.settings.direction,r=(this.settings.fullsize?(r&&c&&"negative"===l||!r&&c&&"default"===l)&&(s*=-1):(c&&"default"===l&&"horizontal"==a&&(s=t-e-s),c&&"negative"===l&&"horizontal"==a&&(s*=-1)),()=>{var t=this.views.first(),t=t&&t.section.prev();t&&n.push(this.prepend(t))}),c=s+e+o,l=s-o,a=(t<=c&&(()=>{var t=this.views.last(),t=t&&t.section.next();t&&n.push(this.append(t))})(),l<0&&r(),n.map(t=>t.display(this.request)));return n.length?Promise.all(a).then(()=>this.check()).then(()=>this.update(o),t=>t):(this.q.enqueue(function(){this.update()}.bind(this)),i.resolve(!1),i.promise)}trim(){for(var t=new h.defer,e=this.views.displayed(),i=e[0],e=e[e.length-1],i=this.views.indexOf(i),e=this.views.indexOf(e),n=this.views.slice(0,i),r=this.views.slice(e+1),o=0;o<n.length-1;o++)this.erase(n[o],n);for(var s=1;s<r.length;s++)this.erase(r[s]);return t.resolve(),t.promise}erase(t,e){var i,n=this.settings.fullsize?(i=window.scrollY,window.scrollX):(i=this.container.scrollTop,this.container.scrollLeft),r=t.bounds();this.views.remove(t),e&&("vertical"===this.settings.axis?this.scrollTo(0,i-r.height,!0):"rtl"===this.settings.direction?this.settings.fullsize?this.scrollTo(n+Math.floor(r.width),0,!0):this.scrollTo(n,0,!0):this.scrollTo(n-Math.floor(r.width),0,!0))}addEventListeners(t){window.addEventListener("unload",function(t){this.ignore=!0,this.destroy()}.bind(this)),this.addScrollListeners(),this.isPaginated&&this.settings.snap&&(this.snapper=new c(this,this.settings.snap&&"object"==typeof this.settings.snap&&this.settings.snap))}addScrollListeners(){this.tick=h.requestAnimationFrame;var t,e="rtl"===this.settings.direction&&"default"===this.settings.rtlScrollType?-1:1;this.scrollDeltaVert=0,this.scrollDeltaHorz=0,this.settings.fullsize?(t=window,this.scrollTop=window.scrollY*e,this.scrollLeft=window.scrollX*e):(t=this.container,this.scrollTop=this.container.scrollTop,this.scrollLeft=this.container.scrollLeft),this._onScroll=this.onScroll.bind(this),t.addEventListener("scroll",this._onScroll),this._scrolled=u()(this.scrolled.bind(this),30),this.didScroll=!1}removeEventListeners(){var t=this.settings.fullsize?window:this.container;t.removeEventListener("scroll",this._onScroll),this._onScroll=void 0}onScroll(){let t,e;var i="rtl"===this.settings.direction&&"default"===this.settings.rtlScrollType?-1:1;e=this.settings.fullsize?(t=window.scrollY*i,window.scrollX*i):(t=this.container.scrollTop,this.container.scrollLeft),this.scrollTop=t,this.scrollLeft=e,this.ignore?this.ignore=!1:this._scrolled(),this.scrollDeltaVert+=Math.abs(t-this.prevScrollTop),this.scrollDeltaHorz+=Math.abs(e-this.prevScrollLeft),this.prevScrollTop=t,this.prevScrollLeft=e,clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(function(){this.scrollDeltaVert=0,this.scrollDeltaHorz=0}.bind(this),150),clearTimeout(this.afterScrolled),this.didScroll=!1}scrolled(){this.q.enqueue(function(){return this.check()}
1.bind(this)),this.emit(r.c.MANAGERS.SCROLL,{top:this.scrollTop,left:this.scrollLeft}),clearTimeout(this.afterScrolled),this.afterScrolled=setTimeout(function(){this.snapper&&this.snapper.supportsTouch&&this.snapper.needsSnap()||this.emit(r.c.MANAGERS.SCROLLED,{top:this.scrollTop,left:this.scrollLeft})}.bind(this),this.settings.afterScrolledTimeout)}next(){var t="pre-paginated"===this.layout.props.name&&this.layout.props.spread?2*this.layout.props.delta:this.layout.props.delta;this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis?this.scrollBy(t,0,!0):this.scrollBy(0,this.layout.height,!0),this.q.enqueue(function(){return this.check()}.bind(this)))}prev(){var t="pre-paginated"===this.layout.props.name&&this.layout.props.spread?2*this.layout.props.delta:this.layout.props.delta;this.views.length&&(this.isPaginated&&"horizontal"===this.settings.axis?this.scrollBy(-t,0,!0):this.scrollBy(0,-this.layout.height,!0),this.q.enqueue(function(){return this.check()}.bind(this)))}updateFlow(t){this.rendered&&this.snapper&&(this.snapper.destroy(),this.snapper=void 0),super.updateFlow(t,"scroll"),this.rendered&&this.isPaginated&&this.settings.snap&&(this.snapper=new c(this,this.settings.snap&&"object"==typeof this.settings.snap&&this.settings.snap))}destroy(){super.destroy(),this.snapper&&this.snapper.destroy()}}e.a=d},function(t,e,i){!function(n){t.exports=function n(r,o,s){function a(i,t){if(!o[i]){if(!r[i]){if(l)return l(i,!0);var e=new Error("Cannot find module '"+i+"'");throw e.code="MODULE_NOT_FOUND",e}e=o[i]={exports:{}};r[i][0].call(e.exports,function(t){var e=r[i][1][t];return a(e||t)},e,e.exports,n,r,o,s)}return o[i].exports}for(var l=!1,t=0;t<s.length;t++)a(s[t]);return a}({1:[function(t,c,e){!function(e){var t,i,n,r,o=e.MutationObserver||e.WebKitMutationObserver,s=o?(t=0,o=new o(l),i=e.document.createTextNode(""),o.observe(i,{characterData:!0}),function(){i.data=t=++t%2}):e.setImmediate||void 0===e.MessageChannel?"document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)}:((n=new e.MessageChannel).port1.onmessage=l,function(){n.port2.postMessage(0)}),a=[];function l(){r=!0;for(var t,e,i=a.length;i;){for(e=a,a=[],t=-1;++t<i;)e[t]();i=a.length}r=!1}c.exports=function(t){1!==a.push(t)||r||s()}}.call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,i){var r=t(1);function l(){}var c={},o=["REJECTED"],s=["FULFILLED"],n=["PENDING"];function a(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,t!==l&&f(this,t)}function u(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(e,i,n){r(function(){var t;try{t=i(n)}catch(t){return c.reject(e,t)}t===e?c.reject(e,new TypeError("Cannot resolve promise with itself")):c.resolve(e,t)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(e,t){var i=!1;function n(t){i||(i=!0,c.reject(e,t))}function r(t){i||(i=!0,c.resolve(e,t))}var o=p(function(){t(r,n)});"error"===o.status&&n(o.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}(e.exports=a).prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var i;return"function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o?this:(i=new this.constructor(l),this.state!==n?h(i,this.state===s?t:e,this.outcome):this.queue.push(new u(i,t,e)),i)},u.prototype.callFulfilled=function(t){c.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){c.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},c.resolve=function(t,e){var i=p(d,e);if("error"===i.status)return c.reject(t,i.value);i=i.value;if(i)f(t,i);else{t.state=s,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callFulfilled(e)}return t},c.reject=function(t,e){t.state=o,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},a.resolve=function(t){if(t instanceof this)return t;return c.resolve(new this(l),t)},a.reject=function(t){var e=new this(l);return c.reject(e,t)},a.all=function(t){var i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);var o=new Array(n),s=0,e=-1,a=new this(l);for(;++e<n;)((t,e)=>{i.resolve(t).then(function(t){o[e]=t,++s!==n||r||(r=!0,c.resolve(a,o))},function(t){r||(r=!0,c.reject(a,t))})})(t[e],e);return a},a.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);var r=-1,o=new this(l);for(;++r<i;)(t=>{e.resolve(t).then(function(t){n||(n=!0,c.resolve(o,t))},function(t){n||(n=!0,c.reject(o,t))})})(t[r]);return o}},{1:1}],3:[function(e,t,i){!function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}.call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,D,L){var M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var a=(()=>{try{return"undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0}catch(t){}})();function o(e,i){e=e||[],i=i||{};try{return new Blob(e,i)}catch(t){if("TypeError"!==t.name)throw t;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(i.type)}}"undefined"==typeof Promise&&t(3);var f=Promise;function p(t,e){e&&t.then(function(t){e(null,t)},function(t){e(t)})}function l(t,e,i){"function"==typeof e&&t.then(e),"function"==typeof i&&t.catch(i)}function u(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var s="local-forage-detect-blob-support",e=void 0,h={},z=Object.prototype.toString,i="readonly",d="readwrite";function B(t){return"boolean"==typeof e?f.resolve(e):(n=t,new f(function(i){var t=n.transaction(s,d),e=o([""]);t.objectStore(s).put(e,"key"),t.onabort=function(t){t.preventDefault(),t.stopPropagation(),i(!1)},t.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),e=navigator.userAgent.match(/Edge\//);i(e||!t||43<=parseInt(t[1],10))}}).catch(function(){return!1}).then(function(t){return e=t}));var n}function m(t){var t=h[t.name],i={};i.promise=new f(function(t,e){i.resolve=t,i.reject=e}),t.deferredOperations.push(i),t.dbReady?t.dbReady=t.dbReady.then(function(){return i.promise}):t.dbReady=i.promise}function g(t){t=h[t.name].deferredOperations.pop();t&&(t.resolve(),t.promise)}function v(t,e){t=h[t.name].deferredOperations.pop();if(t)return t.reject(e),t.promise}function n(r,o){return new f(function(e,i){if(h[r.name]=h[r.name]||W(),r.db){if(!o)return e(r.db);m(r),r.db.close()}var t=[r.name],n=(o&&t.push(r.version),a.open.apply(a,t));o&&(n.onupgradeneeded=function(e){var t=n.result;try{t.createObjectStore(r.storeName),e.oldVersion<=1&&t.createObjectStore(s)}catch(t){if("ConstraintError"!==t.name)throw t;console.warn('The database "'+r.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+r.storeName+'" already exists.')}}),n.onerror=function(t){t.preventDefault(),i(n.error)},n.onsuccess=function(){var t=n.result;t.onversionchange=function(t){t.target.close()},e(t),g(r)}})}function b(t){return n(t,!1)}function y(t){return n(t,!0)}function w(t,e){var i,n,r;return!t.db||(i=!t.db.objectStoreNames.contains(t.storeName),r=t.version<t.db.ver
1sion,n=t.version>t.db.version,r&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),(n||i)&&(i&&(r=t.db.version+1,t.version<r)&&(t.version=r),1))}function F(t){return o([(t=>{for(var e=t.length,i=new ArrayBuffer(e),n=new Uint8Array(i),r=0;r<e;r++)n[r]=t.charCodeAt(r);return i})(atob(t.data))],{type:t.type})}function U(t){return t&&t.__local_forage_encoded_blob}function q(t){var e=this,i=e._initReady().then(function(){var t=h[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return l(i,t,t),i}function S(e,i,n,r){void 0===r&&(r=1);try{var t=e.db.transaction(e.storeName,i);n(null,t)}catch(t){if(0<r&&(!e.db||"InvalidStateError"===t.name||"NotFoundError"===t.name))return f.resolve().then(function(){if(!e.db||"NotFoundError"===t.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),y(e)}).then(function(){return(i=>{m(i);for(var n=h[i.name],r=n.forages,t=0;t<r.length;t++){var e=r[t];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return i.db=null,b(i).then(function(t){return i.db=t,w(i)?y(i):t}).then(function(t){i.db=n.db=t;for(var e=0;e<r.length;e++)r[e]._dbInfo.db=t}).catch(function(t){throw v(i,t),t})})(e).then(function(){S(e,i,n,r-1)})}).catch(n);n(t)}}function W(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}t={_driver:"asyncStorage",_initStorage:function(t){var n=this,r={db:null};if(t)for(var e in t)r[e]=t[e];var o=h[r.name],i=(o||(o=W(),h[r.name]=o),o.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=q),[]);function s(){return f.resolve()}for(var a=0;a<o.forages.length;a++){var l=o.forages[a];l!==n&&i.push(l._initReady().catch(s))}var c=o.forages.slice(0);return f.all(i).then(function(){return r.db=o.db,b(r)}).then(function(t){return r.db=t,w(r,n._defaultConfig.version)?y(r):t}).then(function(t){r.db=o.db=t,n._dbInfo=r;for(var e=0;e<c.length;e++){var i=c[e];i!==n&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}})},_support:(()=>{try{var t,e;return a&&a.open?(t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code"),(!t||e)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange):!1}catch(t){return!1}})(),iterate:function(s,t){var a=this,e=new f(function(r,o){a.ready().then(function(){S(a._dbInfo,i,function(t,e){if(t)return o(t);try{var i=e.objectStore(a._dbInfo.storeName).openCursor(),n=1;i.onsuccess=function(){var t,e=i.result;e?(U(t=e.value)&&(t=F(t)),void 0!==(t=s(t,e.key,n++))?r(t):e.continue()):r()},i.onerror=function(){o(i.error)}}catch(t){o(t)}})}).catch(o)});return p(e,t),e},getItem:function(o,t){var s=this,e=(o=u(o),new f(function(n,r){s.ready().then(function(){S(s._dbInfo,i,function(t,e){if(t)return r(t);try{var i=e.objectStore(s._dbInfo.storeName).get(o);i.onsuccess=function(){var t=i.result;U(t=void 0===t?null:t)&&(t=F(t)),n(t)},i.onerror=function(){r(i.error)}}catch(t){r(t)}})}).catch(r)}));return p(e,t),e},setItem:function(a,e,t){var l=this,i=(a=u(a),new f(function(o,s){var t;l.ready().then(function(){return t=l._dbInfo,"[object Blob]"===z.call(e)?B(t.db).then(function(t){return t?e:(n=e,new f(function(e,t){var i=new FileReader;i.onerror=t,i.onloadend=function(t){t=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:t,type:n.type})},i.readAsBinaryString(n)}));var n}):e}).then(function(r){S(l._dbInfo,d,function(t,e){if(t)return s(t);try{var i=e.objectStore(l._dbInfo.storeName),n=(null===r&&(r=void 0),i.put(r,a));e.oncomplete=function(){o(r=void 0===r?null:r)},e.onabort=e.onerror=function(){var t=n.error||n.transaction.error;s(t)}}catch(t){s(t)}})}).catch(s)}));return p(i,t),i},removeItem:function(o,t){var s=this,e=(o=u(o),new f(function(n,r){s.ready().then(function(){S(s._dbInfo,d,function(t,e){if(t)return r(t);try{var i=e.objectStore(s._dbInfo.storeName).delete(o);e.oncomplete=function(){n()},e.onerror=function(){r(i.error)},e.onabort=function(){var t=i.error||i.transaction.error;r(t)}}catch(t){r(t)}})}).catch(r)}));return p(e,t),e},clear:function(t){var o=this,e=new f(function(n,r){o.ready().then(function(){S(o._dbInfo,d,function(t,e){if(t)return r(t);try{var i=e.objectStore(o._dbInfo.storeName).clear();e.oncomplete=function(){n()},e.onabort=e.onerror=function(){var t=i.error||i.transaction.error;r(t)}}catch(t){r(t)}})}).catch(r)});return p(e,t),e},length:function(t){var o=this,e=new f(function(n,r){o.ready().then(function(){S(o._dbInfo,i,function(t,e){if(t)return r(t);try{var i=e.objectStore(o._dbInfo.storeName).count();i.onsuccess=function(){n(i.result)},i.onerror=function(){r(i.error)}}catch(t){r(t)}})}).catch(r)});return p(e,t),e},key:function(a,t){var l=this,e=new f(function(o,s){a<0?o(null):l.ready().then(function(){S(l._dbInfo,i,function(t,e){if(t)return s(t);try{var i=e.objectStore(l._dbInfo.storeName),n=!1,r=i.openKeyCursor();r.onsuccess=function(){var t=r.result;t?0===a||n?o(t.key):(n=!0,t.advance(a)):o(null)},r.onerror=function(){s(r.error)}}catch(t){s(t)}})}).catch(s)});return p(e,t),e},keys:function(t){var s=this,e=new f(function(r,o){s.ready().then(function(){S(s._dbInfo,i,function(t,e){if(t)return o(t);try{var i=e.objectStore(s._dbInfo.storeName).openKeyCursor(),n=[];i.onsuccess=function(){var t=i.result;t?(n.push(t.key),t.continue()):r(n)},i.onerror=function(){o(i.error)}}catch(t){o(t)}})}).catch(o)});return p(e,t),e},dropInstance:function(s,t){t=c.apply(this,arguments);var e=this.config();return(s="function"!=typeof s&&s||{}).name||(s.name=s.name||e.name,s.storeName=s.storeName||e.storeName),p(e=s.name?(e=s.name===e.name&&this._dbInfo.db?f.resolve(this._dbInfo.db):b(s).then(function(t){var e=h[s.name],i=e.forages;e.db=t;for(var n=0;n<i.length;n++)i[n]._dbInfo.db=t;return t}),s.storeName?e.then(function(t){if(t.objectStoreNames.contains(s.storeName)){var r=t.version+1,n=(m(s),h[s.name]),o=n.forages;t.close();for(var e=0;e<o.length;e++){var i=o[e];i._dbInfo.db=null,i._dbInfo.version=r}return new f(function(e,i){var n=a.open(s.name,r);n.onerror=function(t){n.result.close(),i(t)},n.onupgradeneeded=function(){n.result.deleteObjectStore(s.storeName)},n.onsuccess=function(){var t=n.result;t.close(),e(t)}
1}).then(function(t){n.db=t;for(var e=0;e<o.length;e++){var i=o[e];i._dbInfo.db=t,g(i._dbInfo)}}).catch(function(t){throw(v(s,t)||f.resolve()).catch(function(){}),t})}}):e.then(function(t){m(s);var i=h[s.name],n=i.forages;t.close();for(var e=0;e<n.length;e++)n[e]._dbInfo.db=null;return new f(function(e,i){var n=a.deleteDatabase(s.name);n.onerror=function(){var t=n.result;t&&t.close(),i(n.error)},n.onblocked=function(){console.warn('dropInstance blocked for database "'+s.name+'" until all open connections are closed')},n.onsuccess=function(){var t=n.result;t&&t.close(),e(t)}}).then(function(t){i.db=t;for(var e=0;e<n.length;e++)g(n[e]._dbInfo)}).catch(function(t){throw(v(s,t)||f.resolve()).catch(function(){}),t})})):f.reject("Invalid arguments"),t),e}};var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=/^~~local_forage_type~([^~]+)~/,k="__lfsc__:",O=k.length,E="arbf",C="blob",V=O+E.length,Y=Object.prototype.toString;function X(t){for(var e,i,n,r,o=.75*t.length,s=t.length,a=0,o=("="===t[t.length-1]&&(o--,"="===t[t.length-2])&&o--,new ArrayBuffer(o)),l=new Uint8Array(o),c=0;c<s;c+=4)e=_.indexOf(t[c]),i=_.indexOf(t[c+1]),n=_.indexOf(t[c+2]),r=_.indexOf(t[c+3]),l[a++]=e<<2|i>>4,l[a++]=(15&i)<<4|n>>2,l[a++]=(3&n)<<6|63&r;return o}function T(t){for(var e=new Uint8Array(t),i="",n=0;n<e.length;n+=3)i=(i=(i=(i+=_[e[n]>>2])+_[(3&e[n])<<4|e[n+1]>>4])+_[(15&e[n+1])<<2|e[n+2]>>6])+_[63&e[n+2]];return e.length%3==2?i=i.substring(0,i.length-1)+"=":e.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}var x={serialize:function(e,i){var t="";if(e&&(t=Y.call(e)),e&&("[object ArrayBuffer]"===t||e.buffer&&"[object ArrayBuffer]"===Y.call(e.buffer))){var n,r=k;e instanceof ArrayBuffer?(n=e,r+=E):(n=e.buffer,"[object Int8Array]"===t?r+="si08":"[object Uint8Array]"===t?r+="ui08":"[object Uint8ClampedArray]"===t?r+="uic8":"[object Int16Array]"===t?r+="si16":"[object Uint16Array]"===t?r+="ur16":"[object Int32Array]"===t?r+="si32":"[object Uint32Array]"===t?r+="ui32":"[object Float32Array]"===t?r+="fl32":"[object Float64Array]"===t?r+="fl64":i(new Error("Failed to get type for BinaryArray"))),i(r+T(n))}else if("[object Blob]"===t){r=new FileReader;r.onload=function(){var t="~~local_forage_type~"+e.type+"~"+T(this.result);i(k+C+t)},r.readAsArrayBuffer(e)}else try{i(JSON.stringify(e))}catch(t){console.error("Couldn't convert value into a JSON string: ",e),i(null,t)}},deserialize:function(t){if(t.substring(0,O)!==k)return JSON.parse(t);var e,i=t.substring(V),n=t.substring(O,V),r=(n===C&&H.test(i)&&(e=(t=i.match(H))[1],i=i.substring(t[0].length)),X(i));switch(n){case E:return r;case C:return o([r],{type:e});case"si08":return new Int8Array(r);case"ui08":return new Uint8Array(r);case"uic8":return new Uint8ClampedArray(r);case"si16":return new Int16Array(r);case"ur16":return new Uint16Array(r);case"si32":return new Int32Array(r);case"ui32":return new Uint32Array(r);case"fl32":return new Float32Array(r);case"fl64":return new Float64Array(r);default:throw new Error("Unkown type: "+n)}},stringToBuffer:X,bufferToString:T};function G(t,e,i,n){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,n)}function j(t,n,r,o,s,a){t.executeSql(r,o,s,function(t,i){i.code===i.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],function(t,e){e.rows.length?a(t,i):G(t,n,function(){t.executeSql(r,o,s,a)},a)},a):a(t,i)},a)}function Z(s,t,a,l){var c=this,e=(s=u(s),new f(function(r,o){c.ready().then(function(){var i=t=void 0===t?null:t,n=c._dbInfo;n.serializer.serialize(t,function(e,t){t?o(t):n.db.transaction(function(t){j(t,n,"INSERT OR REPLACE INTO "+n.storeName+" (key, value) VALUES (?, ?)",[s,e],function(){r(i)},function(t,e){o(e)})},function(t){t.code===t.QUOTA_ERR&&(0<l?r(Z.apply(c,[s,i,a,l-1])):o(t))})})}).catch(o)}));return p(e,a),e}var r={_driver:"webSQLStorage",_initStorage:function(t){var n=this,r={db:null};if(t)for(var e in t)r[e]="string"!=typeof t[e]?t[e].toString():t[e];var i=new f(function(e,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(t){return i(t)}r.db.transaction(function(t){G(t,r,function(){n._dbInfo=r,e()},function(t,e){i(e)})},i)});
1return r.serializer=x,i},_support:"function"==typeof openDatabase,iterate:function(c,t){var e=this,i=new f(function(l,i){e.ready().then(function(){var a=e._dbInfo;a.db.transaction(function(t){j(t,a,"SELECT * FROM "+a.storeName,[],function(t,e){for(var i=e.rows,n=i.length,r=0;r<n;r++){var o=i.item(r),s=(s=o.value)&&a.serializer.deserialize(s);if(void 0!==(s=c(s,o.key,r+1)))return void l(s)}l()},function(t,e){i(e)})})}).catch(i)});return p(i,t),i},getItem:function(e,t){var o=this,i=(e=u(e),new f(function(n,r){o.ready().then(function(){var i=o._dbInfo;i.db.transaction(function(t){j(t,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(t,e){e=(e=e.rows.length?e.rows.item(0).value:null)&&i.serializer.deserialize(e);n(e)},function(t,e){r(e)})})}).catch(r)}));return p(i,t),i},setItem:function(t,e,i){return Z.apply(this,[t,e,i,1])},removeItem:function(r,t){var o=this,e=(r=u(r),new f(function(i,n){o.ready().then(function(){var e=o._dbInfo;e.db.transaction(function(t){j(t,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[r],function(){i()},function(t,e){n(e)})})}).catch(n)}));return p(e,t),e},clear:function(t){var r=this,e=new f(function(i,n){r.ready().then(function(){var e=r._dbInfo;e.db.transaction(function(t){j(t,e,"DELETE FROM "+e.storeName,[],function(){i()},function(t,e){n(e)})})}).catch(n)});return p(e,t),e},length:function(t){var r=this,e=new f(function(i,n){r.ready().then(function(){var e=r._dbInfo;e.db.transaction(function(t){j(t,e,"SELECT COUNT(key) as c FROM "+e.storeName,[],function(t,e){e=e.rows.item(0).c;i(e)},function(t,e){n(e)})})}).catch(n)});return p(e,t),e},key:function(r,t){var o=this,e=new f(function(i,n){o.ready().then(function(){var e=o._dbInfo;e.db.transaction(function(t){j(t,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[r+1],function(t,e){e=e.rows.length?e.rows.item(0).key:null;i(e)},function(t,e){n(e)})})}).catch(n)});return p(e,t),e},keys:function(t){var n=this,e=new f(function(r,i){n.ready().then(function(){var e=n._dbInfo;e.db.transaction(function(t){j(t,e,"SELECT key FROM "+e.storeName,[],function(t,e){for(var i=[],n=0;n<e.rows.length;n++)i.push(e.rows.item(n).key);r(i)},function(t,e){i(e)})})}).catch(i)});return p(e,t),e},dropInstance:function(i,t){t=c.apply(this,arguments);var n=this.config(),r=((i="function"!=typeof i&&i||{}).name||(i.name=i.name||n.name,i.storeName=i.storeName||n.storeName),this),e=i.name?new f(function(t){var o,e=i.name===n.name?r._dbInfo.db:openDatabase(i.name,"","",0);i.storeName?t({db:e,storeNames:[i.storeName]}):t((o=e,new f(function(r,i){o.transaction(function(t){t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(t,e){for(var i=[],n=0;n<e.rows.length;n++)i.push(e.rows.item(n).name);r({db:o,storeNames:i})},function(t,e){i(e)})},function(t){i(t)})})))}).then(function(s){return new f(function(r,o){s.db.transaction(function(n){for(var t=[],e=0,i=s.storeNames.length;e<i;e++)t.push((e=>new f(function(t,i){n.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(t,e){i(e)})}))(s.storeNames[e]));f.all(t).then(function(){r()}).catch(function(t){o(t)})},function(t){o(t)})})}):f.reject("Invalid arguments");return p(e,t),e}};function K(t,e){var i=t.name+"/";return t.storeName!==e.storeName&&(i+=t.storeName+"/"),i}function Q(){return!(()=>{var t="_localforage_support_test";try{localStorage.setItem(t,!0),localStorage.removeItem(t)}catch(t){return 1}})()||0<localStorage.length}function J(t,e){for(var i,n,r=t.length,o=0;o<r;){if((i=t[o])===(n=e)||"number"==typeof i&&"number"==typeof n&&isNaN(i)&&isNaN(n))return 1;o++}}var tt={_driver:"localStorageWrapper",_initStorage:function(t){var e={};if(t)for(var i in t)e[i]=t[i];return e.keyPrefix=K(t,this._defaultConfig),Q()?((this._dbInfo=e).serializer=x,f.resolve()):f.reject()},_support:(()=>{try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}})(),iterate:function(l,t){var c=this,e=c.ready().then(function(){for(var t=c._dbInfo,e=t.keyPrefix,i=e.length,n=localStorage.length,r=1,o=0;o<n;o++){var s=localStorage.key(o);if(0===s.indexOf(e)){var a=(a=localStorage.getItem(s))&&t.serializer.deserialize(a);if(void 0!==(a=l(a,s.substring(i),r++)))return a}}});return p(e,t),e},getItem:function(i,t){var n=this,e=(i=u(i),n.ready().then(function(){var t=n._dbInfo,e=localStorage.getItem(t.keyPrefix+i);return e=e&&t.serializer.deserialize(e)}));return p(e,t),e},setItem:function(s,t,e){var a=this,i=(s=u(s),a.ready().then(function(){var o=t=void 0===t?null:t;return new f(function(i,n){var r=a._dbInfo;r.serializer.serialize(t,function(t,e){if(e)n(e);else try{localStorage.setItem(r.keyPrefix+s,t),i(o)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||n(t),n(t)}})})}));return p(i,e),i},removeItem:function(e,t){var i=this,n=(e=u(e),i.ready().then(function(){var t=i._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return p(n,t),n},clear:function(t){var n=this,e=n.ready().then(function(){for(var t=n._dbInfo.keyPrefix,e=localStorage.length-1;0<=e;e--){var i=localStorage.key(e);0===i.indexOf(t)&&localStorage.removeItem(i)}});return p(e,t),e},length:function(t){var e=this.keys().then(function(t){return t.length});return p(e,t),e},key:function(i,t){var n=this,e=n.ready().then(function(){var e,t=n._dbInfo;try{e=localStorage.key(i)}catch(t){e=null}return e=e&&e.substring(t.keyPrefix.length)});return p(e,t),e},keys:function(t){var o=this,e=o.ready().then(function(){for(var t=o._dbInfo,e=localStorage.length,i=[],n=0;n<e;n++){var r=localStorage.key(n);0===r.indexOf(t.keyPrefix)&&i.push(r.substring(t.keyPrefix.length))}return i});return p(e,t),e},dropInstance:function(e,t){t=c.apply(this,arguments),(e="function"!=typeof e&&e||{}).name||(n=this.config(),e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var i=this,n=e.name?new f(function(t){e.storeName?t(K(e,i._defaultConfig)):t(e.name+"/")}).then(function(t){for(var e=localStorage.length-1;0<=e;e--){var i=localStorage.key(e);0===i.indexOf(t)&&localStorage.removeItem(i)}}):f.reject("Invalid arguments");return p(n,t),n}},et=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},A={},it={},P={INDEXEDDB:t,WEBSQL:r,LOCALSTORAGE:tt},t=[P.INDEXEDDB._driver,P.WEBSQL._driver,P.LOCALSTORAGE._driver],I=["dropInstance"],$=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(I
1),nt={description:"",driver:t.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function R(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];if(i)for(var n in i)i.hasOwnProperty(n)&&(et(i[n])?t[n]=i[n].slice():t[n]=i[n])}return t}function N(t){var e,i,n;if(!(this instanceof N))throw new TypeError("Cannot call a class as a function");for(e in P)P.hasOwnProperty(e)&&(n=(i=P[e])._driver,this[e]=n,A[n]||this.defineDriver(i));this._defaultConfig=R({},nt),this._config=R({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}N.prototype.config=function(t){if("object"!==(void 0===t?"undefined":M(t)))return"string"==typeof t?this._config[t]:this._config;if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!=typeof t[e])return new Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t&&t.driver)||this.setDriver(this._config.driver)},N.prototype.defineDriver=function(d,t,e){var i=new f(function(e,i){try{var n=d._driver,t=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(d._driver){for(var r=$.concat("_initStorage"),o=0,s=r.length;o<s;o++){var a=r[o];if((!J(I,a)||d[a])&&"function"!=typeof d[a])return void i(t)}for(var l=0,c=I.length;l<c;l++){var u=I[l];d[u]||(d[u]=(e=>function(){var t=new Error("Method "+e+" is not implemented by the current driver"),t=f.reject(t);return p(t,arguments[arguments.length-1]),t})(u))}var h=function(t){A[n]&&console.info("Redefining LocalForage driver: "+n),A[n]=d,it[n]=t,e()};"_support"in d?d._support&&"function"==typeof d._support?d._support().then(h,i):h(!!d._support):h(!0)}else i(t)}catch(t){i(t)}});return l(i,t,e),i},N.prototype.driver=function(){return this._driver||null},N.prototype.getDriver=function(t,e,i){t=A[t]?f.resolve(A[t]):f.reject(new Error("Driver not found."));return l(t,e,i),t},N.prototype.getSerializer=function(t){var e=f.resolve(x);return l(e,t),e},N.prototype.ready=function(t){var e=this,i=e._driverSet.then(function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready});return l(i,t,t),i},N.prototype.setDriver=function(t,e,i){var o=this,n=(et(t)||(t=[t]),this._getSupportedDrivers(t));function s(){o._config.driver=o.driver()}function a(t){return o._extend(t),s(),o._ready=o._initStorage(o._config),o._ready}function r(r){return function(){var n=0;return function t(){for(;n<r.length;){var e=r[n];return n++,o._dbInfo=null,o._ready=null,o.getDriver(e).then(a).catch(t)}s();var i=new Error("No available storage method found.");return o._driverSet=f.reject(i),o._driverSet}()}}t=null!==this._driverSet?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=t.then(function(){var t=n[0];return o._dbInfo=null,o._ready=null,o.getDriver(t).then(function(t){o._driver=t._driver,s(),o._wrapLibraryMethodsWithReady(),o._initDriver=r(n)})}).catch(function(){s();var t=new Error("No available storage method found.");return o._driverSet=f.reject(t),o._driverSet}),l(this._driverSet,e,i),this._driverSet},N.prototype.supports=function(t){return!!it[t]},N.prototype._extend=function(t){R(this,t)},N.prototype._getSupportedDrivers=function(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i];this.supports(r)&&e.push(r)}return e},N.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=$.length;t<e;t++)((e,i)=>{e[i]=function(){var t=arguments;return e.ready().then(function(){return e[i].apply(e,t)})}})(this,$[t])},N.prototype.createInstance=function(t){return new N(t)};r=new N;D.exports=r},{3:3}]},{},[4])(4)}.call(this,i(9))},function(t,e,i){var i=i(40),n="object"==typeof self&&self&&self.Object===Object&&self,i=i||n||Function("return this")();t.exports=i},function(t,e,i){i=i(26).Symbol;t.exports=i},function(t,e,i){t.exports=function(t){return null!=t}},function(D,t,e){var e=e(18),s=e.find,w=e.NAMESPACE;function L(t){return""!==t}function M(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function l(t){return t?(t=(t=t)?t.split(/[\t\n\f\r ]+/).filter(L):[],Object.keys(t.reduce(M,{}))):[]}function r(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function i(t,e){var i=t.prototype;function n(){}i instanceof e||(n.prototype=e.prototype,r(i,n=new n),t.prototype=i=n),i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}var e={},n=(e.ELEMENT_NODE=1,e.ATTRIBUTE_NODE=2,e.TEXT_NODE=3,e.CDATA_SECTION_NODE=4,e.ENTITY_REFERENCE_NODE=5,e.ENTITY_NODE=6,e.PROCESSING_INSTRUCTION_NODE=7,e.COMMENT_NODE=8,e.DOCUMENT_NODE=9,e.DOCUMENT_TYPE_NODE=10,e.DOCUMENT_FRAGMENT_NODE=11,e.NOTATION_NODE=12,{}),o={},a=(n.INDEX_SIZE_ERR=(o[1]="Index size error",1),n.DOMSTRING_SIZE_ERR=(o[2]="DOMString size error",2),n.HIERARCHY_REQUEST_ERR=(o[3]="Hierarchy request error",3)),c=(n.WRONG_DOCUMENT_ERR=(o[4]="Wrong document",4),n.INVALID_CHARACTER_ERR=(o[5]="Invalid character",5),n.NO_DATA_ALLOWED_ER
vendor: 4,166 bytes, line 1
1R=(o[6]="No data allowed",6),n.NO_MODIFICATION_ALLOWED_ERR=(o[7]="No modification allowed",7),n.NOT_FOUND_ERR=(o[8]="Not found",8));n.NOT_SUPPORTED_ERR=(o[9]="Not supported",9),n.INUSE_ATTRIBUTE_ERR=(o[10]="Attribute in use",10),n.INVALID_STATE_ERR=(o[11]="Invalid state",11),n.SYNTAX_ERR=(o[12]="Syntax error",12),n.INVALID_MODIFICATION_ERR=(o[13]="Invalid modification",13),n.NAMESPACE_ERR=(o[14]="Invalid namespace",14),n.INVALID_ACCESS_ERR=(o[15]="Invalid access",15);function u(t,e){var i;return e instanceof Error?i=e:(i=this,Error.call(this,o[t]),this.message=o[t],Error.captureStackTrace&&Error.captureStackTrace(this,u)),i.code=t,e&&(this.message=this.message+": "+e),i}function d(){}function h(t,e){this._node=t,this._refresh=e,f(this)}function f(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var i=t._refresh(t._node);if(it(t,"length",i.length),!t.$$length||i.length<t.$$length)for(var n=i.length;n in t;n++)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n];r(i,t),t._inc=e}}function p(){}function z(t,e){for(var i=t.length;i--;)if(t[i]===e)return i}function B(t,e,i,n){n?e[z(e,n)]=i:e[e.length++]=i,t&&(e=(i.ownerElement=t).ownerDocument)&&(n&&W(e,t,n),n=t,t=i,(i=e)&&i._inc++,t.namespaceURI===w.XMLNS)&&(n._nsMap[t.prefix?t.localName:""]=t.value)}function F(t,e,i){var n=z(e,i);if(!(0<=n))throw new u(c,new Error(t.tagName+"@"+i));for(var r,o=e.length-1;n<o;)e[n]=e[++n];e.length=o,t&&(r=t.ownerDocument)&&(W(r,t,i),i.ownerElement=null)}function U(){}function m(){}function q(t){return("<"==t?"<":">"==t&&">")||("&"==t?"&":'"'==t&&""")||"&#"+t.charCodeAt()+";"}function g(t,e){if(e(t))return 1;if(t=t.firstChild)do{if(g(t,e))return 1}while(t=t.nextSibling)}function v(){this.ownerDocument=this}function W(t,e,i){t&&t._inc++,i.namespaceURI===w.XMLNS&&delete e._nsMap[i.prefix?i.localName:""]}function b(t,e,i){if(t&&t._inc){t._inc++;var n=e.childNodes;if(i)n[n.length++]=i;else{for(var r=e.firstChild,o=0;r;)r=(n[o++]=r).nextSibling;n.length=o,delete n[n.length]}}}function H(t,e){var i=e.previousSibling,n=e.nextSibling;return i?i.nextSibling=n:t.firstChild=n,n?n.previousSibling=i:t.lastChild=i,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,b(t.ownerDocument,t),e}function y(t){return t&&t.nodeType===m.DOCUMENT_TYPE_NODE}function S(t){return t&&t.nodeType===m.ELEMENT_NODE}function _(t){return t&&t.nodeType===m.TEXT_NODE}function V(t,e){var i,t=t.childNodes||[];if(!s(t,S)&&!y(e))return i=s(t,y),!(e&&i&&t.indexOf(i)>t.indexOf(e))}function Y(t,e){var i,t=t.childNodes||[];if(!s(t,function(t){return S(t)&&t!==e}))return i=s(t,y),!(e&&i&&t.indexOf(i)>t.indexOf(e))}function X(t,e,i){if(!(n=t)||n.nodeType!==m.DOCUMENT_NODE&&n.nodeType!==m.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==m.ELEMENT_NODE)throw new u(a,"Unexpected parent node type "+t.nodeType);var n;if(i&&i.parentNode!==t)throw new u(c,"child not in parent");if(!(n=e)||!(S(n)||_(n)||y(n)||n.nodeType===m.DOCUMENT_FRAGMENT_NODE||n.nodeType===m.COMMENT_NODE||n.nodeType===m.PROCESSING_INSTRUCTION_NODE)||y(e)&&t.nodeType!==m.DOCUMENT_NODE)throw new u(a,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function G(t,e,i){var n=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===m.DOCUMENT_FRAGMENT_NODE){var o=r.filter(S);if(1<o.length||s(r,_))throw new u(a,"More than one element or text in fragment");if(1===o.length&&!V(t,i))throw new u(a,"Element in fragment can not be inserted before doctype")}if(S(e)&&!V(t,i))throw new u(a,"Only one element can be added and only after doctype");if(y(e)){if(s(n,y))throw new u(a,"Only one doctype is allowed");r=s(n,S);if(i&&n.indexOf(r)<n.indexOf(i))throw new u(a,"Doctype can only be inserted before an element");if(!i&&r)throw new u(a,"Doctype can not be appended since element is present")}}function Z(t,e,i){var n=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===m.DOCUMENT_FRAGMENT_NODE){var o=r.filter(S);if(1<o.length||s(r,_))throw new u(a,"More than one element or text in fragment");if(1===o.length&&!Y(t,i))throw new u(a,"Element in fragment can not be inserted before doctype")}if(S(e)&&!Y(t,i))throw new u(a,"Only one element can be added and only after doctype");
1if(y(e)){if(s(n,function(t){return y(t)&&t!==i}))throw new u(a,"Only one doctype is allowed");r=s(n,S);if(i&&n.indexOf(r)<n.indexOf(i))throw new u(a,"Doctype can only be inserted before an element")}}function k(t,e,i,n){X(t,e,i),t.nodeType===m.DOCUMENT_NODE&&(n||G)(t,e,i);n=e.parentNode;if(n&&n.removeChild(e),11===e.nodeType){var r=e.firstChild;if(null==r)return e;var o=e.lastChild}else r=o=e;n=i?i.previousSibling:t.lastChild;for(r.previousSibling=n,o.nextSibling=i,n?n.nextSibling=r:t.firstChild=r,null==i?t.lastChild=o:i.previousSibling=o;r.parentNode=t,r!==o&&(r=r.nextSibling););return b(t.ownerDocument||t,t),11==e.nodeType&&(e.firstChild=e.lastChild=null),e}function O(){this._nsMap={}}function E(){}function C(){}function T(){}function x(){}function j(){}function A(){}function K(){}function Q(){}function P(){}function I(){}function $(){}function J(){}function tt(t,e){var i,n=[],r=9==this.nodeType&&this.documentElement||this,o=r.prefix,s=r.namespaceURI;return N(this,n,t,e,i=s&&null==o&&null==r.lookupPrefix(s)?[{namespace:s,prefix:null}]:i),n.join("")}function et(t,e,i){var n=t.prefix||"",r=t.namespaceURI;if(r&&("xml"!==n||r!==w.XML)&&r!==w.XMLNS){for(var o=i.length;o--;){var s=i[o];if(s.prefix===n)return s.namespace!==r}return 1}}function R(t,e,i){t.push(" ",e,'="',i.replace(/[<&"]/g,q),'"')}function N(t,e,i,n,r){if(r=r||[],n){if(!(t=n(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case 1:var o=t.attributes,s=o.length,a=t.firstChild,l=t.tagName,c=l;if(!(i=w.isHTML(t.namespaceURI)||i)&&!t.prefix&&t.namespaceURI){for(var u,h=0;h<o.length;h++)if("xmlns"===o.item(h).name){u=o.item(h).value;break}if(!u)for(var d=r.length-1;0<=d;d--)if(""===(f=r[d]).prefix&&f.namespace===t.namespaceURI){u=f.namespace;break}if(u!==t.namespaceURI)for(var f,d=r.length-1;0<=d;d--)if((f=r[d]).namespace===t.namespaceURI){f.prefix&&(c=f.prefix+":"+l);break}}e.push("<",c);for(var p=0;p<s;p++)"xmlns"==(m=o.item(p)).prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value});for(var m,g,v,p=0;p<s;p++)et(m=o.item(p),0,r)&&(R(e,(g=m.prefix||"")?"xmlns:"+g:"xmlns",v=m.namespaceURI),r.push({prefix:g,namespace:v})),N(m,e,i,n,r);if(l===c&&et(t,0,r)&&(R(e,(g=t.prefix||"")?"xmlns:"+g:"xmlns",v=t.namespaceURI),r.push({prefix:g,namespace:v})),a||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(e.push(">"),i&&/^script$/i.test(l))for(;a;)a.data?e.push(a.data):N(a,e,i,n,r.slice()),a=a.nextSibling;else for(;a;)N(a,e,i,n,r.slice()),a=a.nextSibling;e.push("</",c,">")}else e.push("/>");return;case 9:case 11:for(a=t.firstChild;a;)N(a,e,i,n,r.slice()),a=a.nextSibling;return;case 2:return R(e,t.name,t.value);case 3:return e.push(t.data.replace(/[<&]/g,q).replace(/]]>/g,"]]>"));case 4:return e.push("<![CDATA[",t.data,"]]>");case 8:return e.push("\x3c!--",t.data,"--\x3e");case 10:var b=t.publicId,y=t.systemId;return e.push("<!DOCTYPE ",t.name),void(b?(e.push(" PUBLIC ",b),y&&"."!=y&&e.push(" ",y),e.push(">")):y&&"."!=y?e.push(" SYSTEM ",y,">"):((b=t.internalSubset)&&e.push(" [",b,"]"),e.push(">")));case 7:return e.push("<?",t.target," ",t.data,"?>");case 5:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function it(t,e,i){t[e]=i}u.prototype=Error.prototype,r(n,u),d.prototype={length:0,item:function(t){return 0<=t&&t<this.length?this[t]:null},toString:function(t,e){for(var i=[],n=0;n<this.length;n++)N(this[n],i,t,e);return i.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},h.prototype.item=function(t){return f(this),this[t]||null},i(h,d),p.prototype={length:0,item:d.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var i=this[e];if(i.nodeName==t)return i}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new u(10);e=this.getNamedItem(t.nodeName);return B(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new u(10);return e=this.getNamedItemNS(t.namespaceURI,t.localName),B(this._ownerElement,this,t,e),e},removeNamedItem:function(t){t=this.getNamedItem(t);return F(this._ownerElement,this,t),t},removeNamedItemNS:function(t,e){t=this.getNamedItemNS(t,e);return F(this._ownerElement,this,t),t},getNamedItemNS:function(t,e){for(var i=this.length;i--;){var n=this[i];if(n.localName==e&&n.namespaceURI==t)return n}return null}},U.prototype={hasFeature:function(t,e){return!0}
1,createDocument:function(t,e,i){var n=new v;return n.implementation=this,n.childNodes=new d,n.doctype=i||null,i&&n.appendChild(i),e&&(i=n.createElementNS(t,e),n.appendChild(i)),n},createDocumentType:function(t,e,i){var n=new A;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=i||"",n}},m.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return k(this,t,e)},replaceChild:function(t,e){k(this,t,e,Z),e&&this.removeChild(e)},removeChild:function(t){return H(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,i,n){var r=new i.constructor;for(var o in i){var s;Object.prototype.hasOwnProperty.call(i,o)&&"object"!=typeof(s=i[o])&&s!=r[o]&&(r[o]=s)}i.childNodes&&(r.childNodes=new d);r.ownerDocument=e;switch(r.nodeType){case 1:var a=i.attributes,l=r.attributes=new p,c=a.length;l._ownerElement=r;for(var u=0;u<c;u++)r.setAttributeNode(t(e,a.item(u),!0));break;case 2:n=!0}
1if(n)for(var h=i.firstChild;h;)r.appendChild(t(e,h,n)),h=h.nextSibling;return r}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&3==e.nodeType&&3==t.nodeType?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(t){for(var e=this;e;){var i=e._nsMap;if(i)for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&i[n]===t)return n;e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var i=e._nsMap;if(i&&t in i&&Object.prototype.hasOwnProperty.call(i,t))return i[t];e=2==e.nodeType?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},r(e,m),r(e,m.prototype),v.prototype={nodeName:"#document",nodeType:9,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(11==t.nodeType)for(var i=t.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,e),i=n}else k(this,t,e),null===(t.ownerDocument=this).documentElement&&1===t.nodeType&&(this.documentElement=t);return t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),H(this,t)},replaceChild:function(t,e){k(this,t,e,Z),t.ownerDocument=this,e&&this.removeChild(e),S(t)&&(this.documentElement=t)},importNode:function(t,e){return function t(e,i,n){var r;switch(i.nodeType){case 1:(r=i.cloneNode(!1)).ownerDocument=e;case 11:break;case 2:n=!0}
1r=r||i.cloneNode(!1);r.ownerDocument=e;r.parentNode=null;if(n)for(var o=i.firstChild;o;)r.appendChild(t(e,o,n)),o=o.nextSibling;return r}(this,t,e)},getElementById:function(e){var i=null;return g(this.documentElement,function(t){if(1==t.nodeType&&t.getAttribute("id")==e)return i=t,!0}),i},getElementsByClassName:function(s){var a=l(s);return new h(this,function(r){var o=[];return 0<a.length&&g(r.documentElement,function(t){var e,i,n;t!==r&&1===t.nodeType&&(e=t.getAttribute("class"))&&((i=s===e)||(e=l(e),i=a.every((n=e,function(t){return n&&-1!==n.indexOf(t)}))),i)&&o.push(t)}),o})},createElement:function(t){var e=new O;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new d,(e.attributes=new p)._ownerElement=e},createDocumentFragment:function(){var t=new I;return t.ownerDocument=this,t.childNodes=new d,t},createTextNode:function(t){var e=new T;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new x;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new j;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var i=new $;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=t,i.nodeValue=i.data=e,i},createAttribute:function(t){var e=new E;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new P;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var i=new O,n=e.split(":"),r=i.attributes=new p;return i.childNodes=new d,i.ownerDocument=this,i.nodeName=e,i.tagName=e,i.namespaceURI=t,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=e,r._ownerElement=i},createAttributeNS:function(t,e){var i=new E,n=e.split(":");return i.ownerDocument=this,i.nodeName=e,i.name=e,i.namespaceURI=t,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=e,i}},i(v,m),v.prototype.getElementsByTagName=(O.prototype={nodeType:1,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){t=this.getAttributeNode(t);return t&&t.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){t=this.ownerDocument.createAttribute(t);t.value=t.nodeValue=""+e,this.setAttributeNode(t)},removeAttribute:function(t){t=this.getAttributeNode(t);t&&this.removeAttributeNode(t)},appendChild:function(t){return 11===t.nodeType?this.insertBefore(t,null):(e=this,(t=t).parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,b(e.ownerDocument,e,t),t);var e},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){t=this.getAttributeNodeNS(t,e);t&&this.removeAttributeNode(t)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){t=this.getAttributeNodeNS(t,e);return t&&t.value||""},setAttributeNS:function(t,e,i){t=this.ownerDocument.createAttributeNS(t,e);t.value=t.nodeValue=""+i,this.setAttributeNode(t)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(n){return new h(this,function(e){var i=[];return g(e,function(t){t===e||1!=t.nodeType||"*"!==n&&t.tagName!=n||i.push(t)}),i})},getElementsByTagNameNS:function(n,r){return new h(this,function(e){var i=[];return g(e,function(t){t===e||1!==t.nodeType||"*"!==n&&t.namespaceURI!==n||"*"!==r&&t.localName!=r||i.push(t)}),i})}}).getElementsByTagName,v.prototype.getElementsByTagNameNS=O.prototype.getElementsByTagNameNS,i(O,m),E.prototype.nodeType=2,i(E,m),C.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(o[a])},deleteData:function(t,e){this.replaceData(t,e,"")}
vendor: 5,050 bytes, line 1
1,replaceData:function(t,e,i){var n=this.data.substring(0,t),t=this.data.substring(t+e);this.nodeValue=this.data=i=n+i+t,this.length=i.length}},i(C,m),T.prototype={nodeName:"#text",nodeType:3,splitText:function(t){var e=(i=this.data).substring(t),i=i.substring(0,t),t=(this.data=this.nodeValue=i,this.length=i.length,this.ownerDocument.createTextNode(e));return this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling),t}},i(T,C),x.prototype={nodeName:"#comment",nodeType:8},i(x,C),j.prototype={nodeName:"#cdata-section",nodeType:4},i(j,C),A.prototype.nodeType=10,i(A,m),K.prototype.nodeType=12,i(K,m),Q.prototype.nodeType=6,i(Q,m),P.prototype.nodeType=5,i(P,m),I.prototype.nodeName="#document-fragment",I.prototype.nodeType=11,i(I,m),$.prototype.nodeType=7,i($,m),J.prototype.serializeToString=function(t,e,i){return tt.call(t,e,i)},m.prototype.toString=tt;try{Object.defineProperty&&(Object.defineProperty(h.prototype,"length",{get:function(){return f(this),this.$$length}}),Object.defineProperty(m.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case 1:case 11:var i=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&i.push(t(e)),e=e.nextSibling;return i.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),it=function(t,e,i){t["$$"+e]=i})}catch(t){}t.DocumentType=A,t.DOMException=u,t.DOMImplementation=U,t.Element=O,t.Node=m,t.NodeList=d,t.XMLSerializer=J},function(t,e){var i,n,t=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{i="function"==typeof setTimeout?setTimeout:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return(i=setTimeout)(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}var a,l=[],c=!1,u=-1;function h(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length)&&d()}function d(){if(!c){for(var t=s(h),e=(c=!0,l.length);e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,!function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return(n=clearTimeout)(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){var o=i(11),s=i(21);t.exports=function(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return s(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),o(t,e,{leading:n,maxWait:e,trailing:r})}},function(t,e,i){!function(d,f,n,p){t.exports=function n(r,o,s){function a(i,t){if(!o[i]){if(!r[i]){if(l)return l(i,!0);var e=new Error("Cannot find module '"+i+"'");throw e.code="MODULE_NOT_FOUND",e}e=o[i]={exports:{}};r[i][0].call(e.exports,function(t){var e=r[i][1][t];return a(e||t)},e,e.exports,n,r,o,s)}return o[i].exports}for(var l=!1,t=0;t<s.length;t++)a(s[t]);return a}({1:[function(t,e,i){var h=t("./utils"),d=t("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var e,i,n,r,o,s,a=[],l=0,c=t.length,u="string"!==h.getTypeOf(t);l<t.length;)s=c-l,n=u?(e=t[l++],i=l<c?t[l++]:0,l<c?t[l++]:0):(e=t.charCodeAt(l++),i=l<c?t.charCodeAt(l++):0,l<c?t.charCodeAt(l++):0),r=(3&e)<<4|i>>4,o=1<s?(15&i)<<2|n>>6:64,s=2<s?63&n:64,a.push(f.charAt(e>>2)+f.charAt(r)+f.charAt(o)+f.charAt(s));return a.join("")},i.decode=function(t){var e,i,n,r,o,s,a=0,l=0;if("data:"===t.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var c,u=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===f.charAt(64)&&u--,t.charAt(t.length-2)===f.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=new(d.uint8array?Uint8Array:Array)(0|u);a<t.length;)n=f.indexOf(t.charAt(a++)),e=(15&(r=f.indexOf(t.charAt(a++))))<<4|(o=f.indexOf(t.charAt(a++)))>>2,i=(3&o)<<6|(s=f.indexOf(t.charAt(a++))),c[l++]=n<<2|r>>4,64!==o&&(c[l++]=e),64!==s&&(c[l++]=i);return c}},{"./support":30,"./utils":32}
vendor: 62,818 bytes, line 1
1],2:[function(t,e,i){var n=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,i,n,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){var p=t("./utils");var m=(()=>{for(var t=[],e=0;e<256;e++){for(var i=e,n=0;n<8;n++)i=1&i?3988292384^i>>>1:i>>>1;t[e]=i}return t})();e.exports=function(t,e){if(void 0===t||!t.length)return 0;if("string"!==p.getTypeOf(t)){var i=0|e,n=t,r=t.length,o=0,s=m,a=o+r;i^=-1;for(var l=o;l<a;l++)i=i>>>8^s[255&(i^n[l])];return-1^i}var c=0|e,u=t,r=t.length,o=0,h=m,d=o+r;c^=-1;for(var f=o;f<d;f++)c=c>>>8^h[255&(c^u.charCodeAt(f))];return-1^c}},{"./utils":32}],5:[function(t,e,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){var n=null,n="undefined"!=typeof Promise?Promise:t("lie");e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function l(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},i.compressWorker=function(t){return new l("Deflate",t)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,i){function b(t,e){for(var i="",n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function n(t,e,i,n,r,o){var s=t.file,a=t.compression,l=o!==w.utf8encode,c=y.transformTo("string",o(s.name)),u=y.transformTo("string",w.utf8encode(s.name)),h=s.comment,o=y.transformTo("string",o(h)),d=y.transformTo("string",w.utf8encode(h)),f=u.length!==s.name.length,h=d.length!==h.length,p="",m=s.dir,g=s.date,v={crc32:0,compressedSize:0,uncompressedSize:0},i=(e&&!i||(v.crc32=t.crc32,v.compressedSize=t.compressedSize,v.uncompressedSize=t.uncompressedSize),0),t=(e&&(i|=8),l||!f&&!h||(i|=2048),0),e=0,g=(m&&(t|=16),"UNIX"===r?(e=798,t|=(l=s.unixPermissions,r=m,(65535&(l?l:r?16893:33204))<<16)):(e=20,t|=63&(s.dosPermissions||0)),m=g.getUTCHours(),m<<=6,m=(m=(m|g.getUTCMinutes())<<5)|g.getUTCSeconds()/2,l=g.getUTCFullYear()-1980,l=(l=((l<<=4)|g.getUTCMonth()+1)<<5)|g.getUTCDate(),f&&(r=b(1,1)+b(S(c),4)+u,p+="up"+b(r.length,2)+r),h&&(s=b(1,1)+b(S(o),4)+d,p+="uc"+b(s.length,2)+s),""),g=(g=(g=(g=(g=(g=(g=(g=(g=(g+="\n\0")+b(i,2))+a.magic)+b(m,2))+b(l,2))+b(v.crc32,4))+b(v.compressedSize,4))+b(v.uncompressedSize,4))+b(c.length,2))+b(p.length,2);return{fileRecord:_.LOCAL_FILE_HEADER+g+c+p,dirRecord:_.CENTRAL_FILE_HEADER+b(e,2)+g+b(o.length,2)+"\0\0\0\0"+b(t,4)+b(n,4)+c+p+o}}var y=t("../utils"),r=t("../stream/GenericWorker"),w=t("../utf8"),S=t("../crc32"),_=t("../signature");function o(t,e,i,n){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(o,r),o.prototype.push=function(t){var e=t.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,r.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-n-1))/i:100}}))},o.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;e?(t=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:t.fileRecord,meta:{percent:0}})):this.accumulate=!0},o.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,i=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),e)this.push({data:(e=t,_.DATA_DESCRIPTOR+b(e.crc32,4)+b(e.compressedSize,4)+b(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var i=this.bytesWritten-t,i=((t,e,i,n,r)=>(r=y.transformTo("string",r(n)),_.CENTRAL_DIRECTORY_END+"\0\0\0\0"+b(t,2)+b(t,2)+b(e,4)+b(i,4)+b(r.length,2)+r))(this.dirRecords.length,i,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},o.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},o.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},o.prototype.error=function(t){var e=this._sources;if(!r.prototype.error.call(this,t))return!1;for(var i=0;i<e.length;i++)try{e[i].error(t)}catch(t){}return!0},o.prototype.lock=function(){r.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=o},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,i){var c=t("../compressions"),n=t("./ZipFileWorker");i.generateWorker=function(t,s,e){var a=new n(s.streamFiles,e,s.platform,s.encodeFileName),l=0;try{t.forEach(function(t,e){l++;var i=((t,e)=>{if(e=c[t=t||e])return e;throw new Error(t+" is not a valid compression method !")})(e.options.compression,s.compression),n=e.options.compressionOptions||s.compressionOptions||{},r=e.dir,o=e.date;e._compressWorker(i,n).withStreamInfo("file",{name:t,dir:r,date:o,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(a)}),a.entriesCount=l}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,i){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t,e=new n;for(t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.2",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,i){var l=t("./utils"),r=t("./external"),n=t("./utf8"),o=t("./zipEntries"),c=t("./stream/Crc32Probe"),u=t("./nodejsUtils");e.exports=function(t,s){var a=this;return s=l.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),u.isNode&&u.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",t,!0,s.optimizedBinaryString,s.base64).then(function(t){var e=new o(s);return e.load(t),e}).then(function(t){var e=[r.Promise.resolve(t)],i=t.files;if(s.checkCRC32)for(var n=0;n<i.length;n++)e.push((n=>new r.Promise(function(t,e){var i=n.decompressed.getContentWorker().pipe(new c);i.on("error",function(t){e(t)}).on("end",function(){i.streamInfo.crc32!==n.decompressed.crc32?e(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()}))(i[n]));return r.Promise.all(e)}).then(function(t){for(var t=t.shift(),e=t.files,i=0;i<e.length;i++){var n=e[i],r=n.fileNameStr,o=l.resolve(n.fileNameStr);a.file(o,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:s.createFolders}),n.dir||(a.file(o).unsafeOriginalName=r)}return t.zipComment.length&&(a.comment=t.zipComment),a})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,i){var n=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,i){var r=t("readable-stream").Readable;function n(t,e,i){r.call(this,e),this._helper=t;var n=this;t.on("data",function(t,e){n.push(t)||n._helper.pause(),i&&i(e)}).on("error",function(t){n.emit("error",t)}).on("end",function(){n.push(null)})}t("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},e.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,e,i){e.exports={isNode:void 0!==d,newBufferFrom:function(t,e){if(d.from&&d.from!==Uint8Array.from)return d.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new d(t,e)},allocBuffer:function(t){return d.alloc?d.alloc(t):((t=new d(t)).fill(0),t)},isBuffer:function(t){return d.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,i){function s(t){var e=(t="/"===t.slice(-1)?t.substring(0,t.length-1):t).lastIndexOf("/");return 0<e?t.substring(0,e):""}function a(t,e){return e=void 0!==e?e:u.createFolders,t=v(t),this.files[t]||g.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]}var r=t("./utf8"),l=t("./utils"),c=t("./stream/GenericWorker"),o=t("./stream/StreamHelper"),u=t("./defaults"),h=t("./compressedObject"),d=t("./zipObject"),f=t("./generate"),p=t("./nodejsUtils"),m=t("./nodejs/NodejsStreamInputAdapter"),g=function(t,e,i){var n=l.getTypeOf(e),r=l.extend(i||{},u),o=(r.date=r.date||new Date,null!==r.compression&&(r.compression=r.compression.toUpperCase()),"string"==typeof r.unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(t=v(t)),r.createFolders&&(o=s(t))&&a.call(this,o,!0),"string"===n&&!1===r.binary&&!1===r.base64);i&&void 0!==i.binary||(r.binary=!o);(e instanceof h&&0===e.uncompressedSize||r.dir||!e||0===e.length)&&(r.base64=!1,r.binary=!0,e="",r.compression="STORE");n=null,n=e instanceof h||e instanceof c?e:p.isNode&&p.isStream(e)?new m(t,e):l.prepareContent(t,e,r.binary,r.optimizedBinaryString,r.base64),i=new d(t,n,r);this.files[t]=i},v=function(t){return"/"!==t.slice(-1)&&(t+="/"),t};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,i,n;for(e in this.files)n=this.files[e],(i=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(i,n)},filter:function(i){var n=[];return this.forEach(function(t,e){i(t,e)&&n.push(e)}),n},file:function(t,e,i){var n,r;return 1===arguments.length?b(t)?(n=t,this.filter(function(t,e){return!e.dir&&n.test(t)})):(r=this.files[this.root+t])&&!r.dir?r:null:(t=this.root+t,g.call(this,t,e,i),this)},folder:function(i){var t,e;return i?b(i)?this.filter(function(t,e){return e.dir&&i.test(t)}):(t=this.root+i,t=a.call(this,t),(e=this.clone()).root=t.name,e):this},remove:function(i){i=this.root+i;var t=this.files[i];if(t||("/"!==i.slice(-1)&&(i+="/"),t=this.files[i]),t&&!t.dir)delete this.files[i];else for(var e=this.filter(function(t,e){return e.name.slice(0,i.length)===i}),n=0;n<e.length;n++)delete this.files[e[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e={};try{if((e=l.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=e.type.toLowerCase(),e.compression=e.compression.toUpperCase(),"binarystring"===e.type&&(e.type="string"),!e.type)throw new Error("No output type specified.");l.checkSupport(e.type),"darwin"!==e.platform&&"freebsd"!==e.platform&&"linux"!==e.platform&&"sunos"!==e.platform||(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var i=e.comment||this.comment||"",n=f.generateWorker(this,e,i)}catch(t){(n=new c("error")).error(t)}return new o(n,e.type||"string",e.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,i){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,i){var n=t("./DataReader");function r(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===i&&this.data[o+2]===n&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),t=t.charCodeAt(3),r=this.readData(4);return e===r[0]&&i===r[1]&&n===r[2]&&t===r[3]},r.prototype.readData=function(t){var e;return this.checkOffset(t),0===t?[]:(e=this.data.slice(this.zero+this.index,this.zero+this.index+t),this.index+=t,e)},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,i){var n=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,i=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)i=(i<<8)+this.byteAt(e);return this.index+=t,i},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,i){var n=t("./Uint8ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,i){var n=t("./DataReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,i){var n=t("./ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){var e;return this.checkOffset(t),0===t?new Uint8Array(0):(e=this.data.subarray(this.zero+this.index,this.zero+this.index+t),this.index+=t,e)},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,i){var n=t("../utils"),r=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,i){i.LOCAL_FILE_HEADER="PK��",i.CENTRAL_FILE_HEADER="PK��",i.CENTRAL_DIRECTORY_END="PK��",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",i.ZIP64_CENTRAL_DIRECTORY_END="PK��",i.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(t,e,i){var n=t("./GenericWorker"),r=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,i){var n=t("./GenericWorker"),r=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,i){var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,r),o.prototype.processChunk=function(t){var e;t&&(e=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=e+t.data.length),r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,i){var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,i){function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var t;return!(!this.isPaused||this.isFinished||(t=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),t))},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,e,i){var l=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),c=t("../base64"),n=t("../support"),s=t("../external"),a=null;if(n.nodestream)try{a=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,a){return new s.Promise(function(e,i){var n=[],r=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",function(t,e){n.push(t),a&&a(e)}).on("error",function(t){n=[],i(t)}).on("end",function(){try{var t=((t,e,i)=>{switch(t){case"blob":return l.newBlob(l.transformTo("arraybuffer",e),i);case"base64":return c.encode(e);default:return l.transformTo(t,e)}})(o,((t,e)=>{for(var i=0,n=null,r=0,o=0;o<e.length;o++)r+=e[o].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(n=new Uint8Array(r),o=0;o<e.length;o++)n.set(e[o],i),i+=e[o].length;return n;case"nodebuffer":return d.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}})(r,n),s);e(t)}catch(t){i(t)}n=[]}).resume()})}function h(t,e,i){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=i,l.checkSupport(n),this._worker=t.pipe(new r(n)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return u(this,t)},on:function(t,e){var i=this;return"data"===t?this._worker.on(t,function(t){e.call(i,t.data,t.meta)}):this._worker.on(t,function(){l.delay(e,arguments,i)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(l.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new a(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer=void 0!==d,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var n=new ArrayBuffer(0);try{i.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(n),i.blob=0===r.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,r){for(var l=t("./utils"),c=t("./support"),u=t("./nodejsUtils"),i=t("./stream/GenericWorker"),h=new Array(256),n=0;n<256;n++)h[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;h[254]=h[254]=1;function o(){i.call(this,"utf-8 decode"),this.leftOver=null}function s(){i.call(this,"utf-8 encode")}r.utf8encode=function(t){if(c.nodebuffer)return u.newBufferFrom(t,"utf-8");for(var e,i,n,r,o=t,s=o.length,a=0,l=0;l<s;l++)55296==(64512&(i=o.charCodeAt(l)))&&l+1<s&&56320==(64512&(n=o.charCodeAt(l+1)))&&(i=65536+(i-55296<<10)+(n-56320),l++),a+=i<128?1:i<2048?2:i<65536?3:4;for(e=new(c.uint8array?Uint8Array:Array)(a),l=r=0;r<a;l++)55296==(64512&(i=o.charCodeAt(l)))&&l+1<s&&56320==(64512&(n=o.charCodeAt(l+1)))&&(i=65536+(i-55296<<10)+(n-56320),l++),i<128?e[r++]=i:(i<2048?e[r++]=192|i>>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},r.utf8decode=function(t){if(c.nodebuffer)return l.transformTo("nodebuffer",t).toString("utf-8");for(var e,i,n=t=l.transformTo(c.uint8array?"uint8array":"array",t),r=n.length,o=new Array(2*r),s=0,a=0;a<r;)if((e=n[a++])<128)o[s++]=e;else if(4<(i=h[e]))o[s++]=65533,a+=i-1;else{for(e&=2===i?31:3===i?15:7;1<i&&a<r;)e=e<<6|63&n[a++],i--;1<i?o[s++]=65533:e<65536?o[s++]=e:(e-=65536,o[s++]=55296|e>>10&1023,o[s++]=56320|1023&e)}return o.length!==s&&(o.subarray?o=o.subarray(0,s):o.length=s),l.applyFromCharCode(o)},l.inherits(o,i),o.prototype.processChunk=function(t){var e=l.transformTo(c.uint8array?"uint8array":"array",t.data),i=(this.leftOver&&this.leftOver.length&&(c.uint8array?(i=e,(e=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),e.set(i,this.leftOver.length)):e=this.leftOver.concat(e),this.leftOver=null),((t,e)=>{for(var i=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=i&&128==(192&t[i]);)i--;return!(i<0)&&0!==i&&i+h[t[i]]>e?i:e})(e)),n=e;i!==e.length&&(c.uint8array?(n=e.subarray(0,i),this.leftOver=e.subarray(i,e.length)):(n=e.slice(0,i),this.leftOver=e.slice(i,e.length))),this.push({data:r.utf8decode(n),meta:t.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=o,l.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=s},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,s){var a=t("./support"),l=t("./base64"),i=t("./nodejsUtils"),c=t("./external");function n(t){return t}function u(t,e){for(var i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e}t("setimmediate"),s.newBlob=function(e,i){s.checkSupport("blob");try{return new Blob([e],{type:i})}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var r={stringifyByChunk:function(t,e,i){var n=[],r=0,o=t.length;if(o<=i)return String.fromCharCode.apply(null,t);for(;r<o;)n.push("array"===e||"nodebuffer"===e?String.fromCharCode.apply(null,t.slice(r,Math.min(r+i,o))):String.fromCharCode.apply(null,t.subarray(r,Math.min(r+i,o)))),r+=i;return n.join("")},stringifyByChar:function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},applyCanBeUsed:{uint8array:(()=>{try{return a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}})(),nodebuffer:(()=>{try{return a.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(t){return!1}})()}};function o(t){var e=65536,i=s.getTypeOf(t),n=!0;if("uint8array"===i?n=r.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=r.applyCanBeUsed.nodebuffer),n)for(;1<e;)try{return r.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return r.stringifyByChar(t)}function h(t,e){for(var i=0;i<t.length;i++)e[i]=t[i];return e}s.applyFromCharCode=o;var d={};d.string={string:n,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:function(t){return u(t,i.allocBuffer(t.length))}},d.array={string:o,array:n,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return i.newBufferFrom(t)}},d.arraybuffer={string:function(t){return o(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:n,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return i.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:o,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:n,nodebuffer:function(t){return i.newBufferFrom(t)}},d.nodebuffer={string:o,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:n},s.transformTo=function(t,e){if(e=e||"",!t)return e;s.checkSupport(t);var i=s.getTypeOf(e);return d[i][t](e)},s.resolve=function(t){for(var e=t.split("/"),i=[],n=0;n<e.length;n++){var r=e[n];"."===r||""===r&&0!==n&&n!==e.length-1||(".."===r?i.pop():i.push(r))}return i.join("/")},s.getTypeOf=function(t){var e;return"string"==typeof t?"string":"[object Array]"===(e=Object.prototype.toString.call(t))?"array":a.nodebuffer&&i.isBuffer(t)?"nodebuffer":a.uint8array&&"[object Uint8Array]"===e?"uint8array":a.arraybuffer&&"[object ArrayBuffer]"===e?"arraybuffer":void 0},s.checkSupport=function(t){if(!a[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(t){for(var e,i="",n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},s.delay=function(t,e,i){f(function(){t.apply(i||null,e||[])})},s.inherits=function(t,e){function i(){}i.prototype=e.prototype,t.prototype=new i},s.extend=function(){for(var t,e={},i=0;i<arguments.length;i++)for(t in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],t)&&void 0===e[t]&&(e[t]=arguments[i][t]);return e},s.prepareContent=function(i,t,n,r,o){return c.Promise.resolve(t).then(function(n){return a.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))?void 0!==Blob.prototype.arrayBuffer?n.arrayBuffer():"undefined"!=typeof FileReader?new c.Promise(function(e,i){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=function(t){i(t.target.error)},t.readAsArrayBuffer(n)}):c.Promise.reject(new Error(i+" is a Blob, but we have no way of reading it.")):n}).then(function(t){var e=s.getTypeOf(t);return e?("arraybuffer"===e?t=s.transformTo("uint8array",t):"string"===e&&(o?t=l.decode(t):n&&!0!==r&&(t=u(e=t,new(a.uint8array?Uint8Array:Array)(e.length)))),t):c.Promise.reject(new Error("Can't read the data of '"+i+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,i){var n=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),s=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){var e;if(!this.reader.readAndCheckSignature(t))throw this.reader.index-=4,e=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")},isSignature:function(t,e){var i=this.reader.index;this.reader.setIndex(t);t=this.reader.readString(4)===e;return this.reader.setIndex(i),t},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",e=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(e)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,i,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),i=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var t,e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}t=this.centralDirOffset+this.centralDirSize,t=e-(t=this.zip64?t+20+(12+this.zip64EndOfCentralSize):t);if(0<t)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=t);else if(t<0)throw new Error("Corrupted zip: missing "+Math.abs(t)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,i){var n=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),s=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e;if(t.skip(22),this.fileNameLength=t.readInt(2),e=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(e),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=(t=>{for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null})(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var t;this.extraFields[1]&&(t=n(this.extraFields[1].value),this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS)&&(this.diskNumberStart=t.readInt(4))},readExtraFields:function(t){var e,i,n,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),i=t.readInt(2),n=t.readData(i),this.extraFields[e]={id:e,length:i,value:n};t.setIndex(r)},handleUTF8:function(){var t,e=c.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment)):(null!==(t=this.findExtraFieldUnicodePath())?this.fileNameStr=t:(t=r.transformTo(e,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(t)),null!==(t=this.findExtraFieldUnicodeComment())?this.fileCommentStr=t:(t=r.transformTo(e,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(t)))},findExtraFieldUnicodePath:function(){var t,e=this.extraFields[28789];return!e||1!==(t=n(e.value)).readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))},findExtraFieldUnicodeComment:function(){var t,e=this.extraFields[25461];return!e||1!==(t=n(e.value)).readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,i){for(var o=t("./stream/StreamHelper"),n=t("./stream/DataWorker"),s=t("./utf8"),r=t("./compressedObject"),a=t("./stream/GenericWorker"),l=function(t,e,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=e,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}},c=(l.prototype={internalStream:function(t){var e=null,i="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(i=t.toLowerCase())||"text"===i,r=("binarystring"!==i&&"text"!==i||(i="string"),e=this._decompressWorker(),!this._dataBinary);r&&!n&&(e=e.pipe(new s.Utf8EncodeWorker)),!r&&n&&(e=e.pipe(new s.Utf8DecodeWorker))}catch(t){(e=new a("error")).error(t)}return new o(e,i,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){var i;return this._data instanceof r&&this._data.compression.magic===t.magic?this._data.getCompressedWorker():(i=this._decompressWorker(),this._dataBinary||(i=i.pipe(new s.Utf8EncodeWorker)),r.createWorkerFrom(i,t,e))},_decompressWorker:function(){return this._data instanceof r?this._data.getContentWorker():this._data instanceof a?this._data:new n(this._data)}},["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"]),u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)l.prototype[c[h]]=u;e.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,c,e){!function(e){var t,i,n,r,o=e.MutationObserver||e.WebKitMutationObserver,s=o?(t=0,o=new o(l),i=e.document.createTextNode(""),o.observe(i,{characterData:!0}),function(){i.data=t=++t%2}):e.setImmediate||void 0===e.MessageChannel?"document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)}:((n=new e.MessageChannel).port1.onmessage=l,function(){n.port2.postMessage(0)}),a=[];function l(){r=!0;for(var t,e,i=a.length;i;){for(e=a,a=[],t=-1;++t<i;)e[t]();i=a.length}r=!1}c.exports=function(t){1!==a.push(t)||r||s()}}.call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,i){var r=t("immediate");function l(){}var c={},o=["REJECTED"],s=["FULFILLED"],n=["PENDING"];function a(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,t!==l&&f(this,t)}function u(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(e,i,n){r(function(){var t;try{t=i(n)}catch(t){return c.reject(e,t)}t===e?c.reject(e,new TypeError("Cannot resolve promise with itself")):c.resolve(e,t)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(e,t){var i=!1;function n(t){i||(i=!0,c.reject(e,t))}function r(t){i||(i=!0,c.resolve(e,t))}var o=p(function(){t(r,n)});"error"===o.status&&n(o.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}(e.exports=a).prototype.finally=function(e){var i;return"function"!=typeof e?this:(i=this.constructor,this.then(function(t){return i.resolve(e()).then(function(){return t})},function(t){return i.resolve(e()).then(function(){throw t})}))},a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var i;return"function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o?this:(i=new this.constructor(l),this.state!==n?h(i,this.state===s?t:e,this.outcome):this.queue.push(new u(i,t,e)),i)},u.prototype.callFulfilled=function(t){c.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){c.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},c.resolve=function(t,e){var i=p(d,e);if("error"===i.status)return c.reject(t,i.value);i=i.value;if(i)f(t,i);else{t.state=s,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callFulfilled(e)}return t},c.reject=function(t,e){t.state=o,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},a.resolve=function(t){if(t instanceof this)return t;return c.resolve(new this(l),t)},a.reject=function(t){var e=new this(l);return c.reject(e,t)},a.all=function(t){var i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);var o=new Array(n),s=0,e=-1,a=new this(l);for(;++e<n;)((t,e)=>{i.resolve(t).then(function(t){o[e]=t,++s!==n||r||(r=!0,c.resolve(a,o))},function(t){r||(r=!0,c.reject(a,t))})})(t[e],e);return a},a.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);var r=-1,o=new this(l);for(;++r<i;)(t=>{e.resolve(t).then(function(t){n||(n=!0,c.resolve(o,t))},function(t){n||(n=!0,c.reject(o,t))})})(t[r]);return o}},{immediate:36}],38:[function(t,e,i){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,i){var s=t("./zlib/deflate"),a=t("./utils/common"),l=t("./utils/strings"),n=t("./zlib/messages"),r=t("./zlib/zstream"),c=Object.prototype.toString;function o(t){if(!(this instanceof o))return new o(t);this.options=a.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});t=this.options;if(t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,(this.strm.avail_out=0)!==(e=s.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy)))throw new Error(n[e]);if(t.header&&s.deflateSetHeader(this.strm,t.header),t.dictionary){var e,t="string"==typeof t.dictionary?l.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary;if(0!==(e=s.deflateSetDictionary(this.strm,t)))throw new Error(n[e]);this._dict_set=!0}}function u(t,e){e=new o(e);if(e.push(t,!0),e.err)throw e.msg||n[e.err];return e.result}o.prototype.push=function(t,e){var i,n,r=this.strm,o=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?r.input=l.string2buf(t):"[object ArrayBuffer]"===c.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new a.Buf8(o),r.next_out=0,r.avail_out=o),1!==(i=s.deflate(r,n))&&0!==i)return this.onEnd(i),!(this.ended=!0)}while(0!==r.avail_out&&(0!==r.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(l.buf2binstring(a.shrinkBuf(r.output,r.next_out))):this.onData(a.shrinkBuf(r.output,r.next_out))),(0<r.avail_in||0===r.avail_out)&&1!==i);return 4===n?(i=s.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==n||(this.onEnd(0),!(r.avail_out=0))},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=o,i.deflate=u,i.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},i.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,i){var h=t("./zlib/inflate"),d=t("./utils/common"),f=t("./utils/strings"),p=t("./zlib/constants"),n=t("./zlib/messages"),r=t("./zlib/zstream"),o=t("./zlib/gzheader"),m=Object.prototype.toString;function s(t){if(!(this instanceof s))return new s(t);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options,t=(e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits)&&(e.windowBits=-15),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0,h.inflateInit2(this.strm,e.windowBits));if(t!==p.Z_OK)throw new Error(n[t]);this.header=new o,h.inflateGetHeader(this.strm,this.header)}function a(t,e){e=new s(e);if(e.push(t,!0),e.err)throw e.msg||n[e.err];return e.result}s.prototype.push=function(t,e){var i,n,r,o,s,a=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof t?a.input=f.binstring2buf(t):"[object ArrayBuffer]"===m.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new d.Buf8(l),a.next_out=0,a.avail_out=l),(i=h.inflate(a,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&c&&(s="string"==typeof c?f.string2buf(c):"[object ArrayBuffer]"===m.call(c)?new Uint8Array(c):c,i=h.inflateSetDictionary(this.strm,s)),i===p.Z_BUF_ERROR&&!0===u&&(i=p.Z_OK,u=!1),i!==p.Z_STREAM_END&&i!==p.Z_OK)return this.onEnd(i),!(this.ended=!0)}while(!a.next_out||0!==a.avail_out&&i!==p.Z_STREAM_END&&(0!==a.avail_in||n!==p.Z_FINISH&&n!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(s=f.utf8border(a.output,a.next_out),r=a.next_out-s,o=f.buf2string(a.output,s),a.next_out=r,a.avail_out=l-r,r&&d.arraySet(a.output,a.output,s,r,0),this.onData(o)):this.onData(d.shrinkBuf(a.output,a.next_out))),0===a.avail_in&&0===a.avail_out&&(u=!0),(0<a.avail_in||0===a.avail_out)&&i!==p.Z_STREAM_END);return(n=i===p.Z_STREAM_END?p.Z_FINISH:n)===p.Z_FINISH?(i=h.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===p.Z_OK):n!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(a.avail_out=0))},s.prototype.onData=function(t){this.chunks.push(t)},s.prototype.onEnd=function(t){t===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=s,i.inflate=a,i.inflateRaw=function(t,e){return(e=e||{}).raw=!0,a(t,e)},i.ungzip=a},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,r=(i.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}}return t},i.shrinkBuf=function(t,e){if(t.length!==e){if(t.subarray)return t.subarray(0,e);t.length=e}return t},{arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){for(var e,i,n,r=0,o=0,s=t.length;o<s;o++)r+=t[o].length;for(n=new Uint8Array(r),o=e=0,s=t.length;o<s;o++)i=t[o],n.set(i,e),e+=i.length;return n}}),o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(n)},{}],42:[function(t,e,i){var l=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var c=new l.Buf8(256),n=0;n<256;n++)c[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function u(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,l.shrinkBuf(t,e));for(var i="",n=0;n<e;n++)i+=String.fromCharCode(t[n]);return i}c[254]=c[254]=1,i.string2buf=function(t){for(var e,i,n,r,o=t.length,s=0,a=0;a<o;a++)55296==(64512&(i=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(i=65536+(i-55296<<10)+(n-56320),a++),s+=i<128?1:i<2048?2:i<65536?3:4;for(e=new l.Buf8(s),a=r=0;r<s;a++)55296==(64512&(i=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(i=65536+(i-55296<<10)+(n-56320),a++),i<128?e[r++]=i:(i<2048?e[r++]=192|i>>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},i.buf2binstring=function(t){return u(t,t.length)},i.binstring2buf=function(t){for(var e=new l.Buf8(t.length),i=0,n=e.length;i<n;i++)e[i]=t.charCodeAt(i);return e},i.buf2string=function(t,e){for(var i,n,r=e||t.length,o=new Array(2*r),s=0,a=0;a<r;)if((i=t[a++])<128)o[s++]=i;else if(4<(n=c[i]))o[s++]=65533,a+=n-1;else{for(i&=2===n?31:3===n?15:7;1<n&&a<r;)i=i<<6|63&t[a++],n--;1<n?o[s++]=65533:i<65536?o[s++]=i:(i-=65536,o[s++]=55296|i>>10&1023,o[s++]=56320|1023&i)}return u(o,s)},i.utf8border=function(t,e){for(var i=(e=(e=e||t.length)>t.length?t.length:e)-1;0<=i&&128==(192&t[i]);)i--;return!(i<0)&&0!==i&&i+c[t[i]]>e?i:e}},{"./common":41}],43:[function(t,e,i){e.exports=function(t,e,i,n){for(var r=65535&t|0,o=t>>>16&65535|0,s=0;0!==i;){for(i-=s=2e3<i?2e3:i;o=o+(r=r+e[n++]|0)|0,--s;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(t,e,i){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,i){var a=(()=>{for(var t=[],e=0;e<256;e++){for(var i=e,n=0;n<8;n++)i=1&i?3988292384^i>>>1:i>>>1;t[e]=i}return t})();e.exports=function(t,e,i,n){var r=a,o=n+i;t^=-1;for(var s=n;s<o;s++)t=t>>>8^r[255&(t^e[s])];return-1^t}},{}],46:[function(t,D,e){var a,h=t("../utils/common"),l=t("./trees"),d=t("./adler32"),f=t("./crc32"),L=t("./messages"),c=0,u=4,p=0,m=-2,M=-1,z=4,B=2,g=8,F=9,i=286,U=30,q=19,W=2*i+1,H=15,v=3,b=258,y=b+v+1,w=42,S=113,_=1,k=2,O=3,E=4;function C(t,e){return t.msg=L[e],e}function T(t){return(t<<1)-(4<t?9:0)}function x(t){for(var e=t.length;0<=--e;)t[e]=0}function j(t){var e=t.state,i=e.pending;0!==(i=t.avail_out<i?t.avail_out:i)&&(h.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending)&&(e.pending_out=0)}function A(t,e){l._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function P(t,e){t.pending_buf[t.pending++]=e}function I(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function o(t,e){var i,n,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.w_size-y<t.strstart?t.strstart-(t.w_size-y):0,c=t.window,u=t.w_mask,h=t.prev,d=t.strstart+b,f=c[o+s-1],p=c[o+s];t.good_match<=t.prev_length&&(r>>=2),t.lookahead<a&&(a=t.lookahead);do{if(c[(i=e)+s]===p&&c[i+s-1]===f&&c[i]===c[o]&&c[++i]===c[o+1]){for(o+=2,i++;c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&c[++o]===c[++i]&&o<d;);if(n=b-(d-o),o=d-b,s<n){if(t.match_start=e,a<=(s=n))break;f=c[o+s-1],p=c[o+s]}}}while((e=h[e&u])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function $(t){var e,i,n,r,o,s,a,l,c,u=t.w_size;do{if(l=t.window_size-t.lookahead-t.strstart,u+(u-y)<=t.strstart){for(h.arraySet(t.window,t.window,u,u,0),t.match_start-=u,t.strstart-=u,t.block_start-=u,e=i=t.hash_size;n=t.head[--e],t.head[e]=u<=n?n-u:0,--i;);for(e=i=u;n=t.prev[--e],t.prev[e]=u<=n?n-u:0,--i;);l+=u}if(0===t.strm.avail_in)break;if(s=t.window,a=t.strstart+t.lookahead,l=l,c=void 0,c=(o=t.strm).avail_in,i=0===(c=l<c?l:c)?0:(o.avail_in-=c,h.arraySet(s,o.input,o.next_in,c,a),1===o.state.wrap?o.adler=d(o.adler,s,c,a):2===o.state.wrap&&(o.adler=f(o.adler,s,c,a)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=i,v<=t.lookahead+t.insert)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+v-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<v)););}while(t.lookahead<y&&0!==t.strm.avail_in)}function n(t,e){for(var i,n;;){if(t.lookahead<y){if($(t),t.lookahead<y&&e===c)return _;if(0===t.lookahead)break}if(i=0,v<=t.lookahead&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-y&&(t.match_length=o(t,i)),v<=t.match_length)if(n=l._tr_tally(t,t.strstart-t.match_start,t.match_length-v),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=v){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(A(t,!1),0===t.strm.avail_out))return _}return t.insert=t.strstart<v-1?t.strstart:v-1,e===u?(A(t,!0),0===t.strm.avail_out?O:E):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?_:k}function r(t,e){for(var i,n,r;;){if(t.lookahead<y){if($(t),t.lookahead<y&&e===c)return _;if(0===t.lookahead)break}if(i=0,v<=t.lookahead&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=v-1,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-y&&(t.match_length=o(t,i),t.match_length<=5)&&(1===t.strategy||t.match_length===v&&4096<t.strstart-t.match_start)&&(t.match_length=v-1),v<=t.prev_length&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-v,n=l._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-v),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+v-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=v-1,t.strstart++,n&&(A(t,!1),0===t.strm.avail_out))return _}else if(t.match_available){if((n=l._tr_tally(t,0,t.window[t.strstart-1]))&&A(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return _}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=l._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<v-1?t.strstart:v-1,e===u?(A(t,!0),0===t.strm.avail_out?O:E):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?_:k}function s(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new h.Buf16(2*W),this.dyn_dtree=new h.Buf16(2*(2*U+1)),this.bl_tree=new h.Buf16(2*(2*q+1)),x(this.dyn_ltree),x(this.dyn_dtree),x(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(H+1),this.heap=new h.Buf16(2*i+1),x(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*i+1),x(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function R(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=B,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?w:S,t.adler=2===e.wrap?0:1,e.last_flush=c,l._tr_init(e),p):C(t,m)}
vendor: 7,698 bytes, line 1
1function N(t){var e=R(t);return e===p&&((t=t.state).window_size=2*t.w_size,x(t.head),t.max_lazy_match=a[t.level].max_lazy,t.good_match=a[t.level].good_length,t.nice_match=a[t.level].nice_length,t.max_chain_length=a[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=v-1,t.match_available=0,t.ins_h=0),e}function Y(t,e,i,n,r,o){if(!t)return m;var s=1;if(e===M&&(e=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),r<1||F<r||i!==g||n<8||15<n||e<0||9<e||o<0||z<o)return C(t,m);8===n&&(n=9);var a=new V;return(t.state=a).strm=t,a.wrap=s,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=r+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+v-1)/v),a.window=new h.Buf8(2*a.w_size),a.head=new h.Buf16(a.hash_size),a.prev=new h.Buf16(a.w_size),a.lit_bufsize=1<<r+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new h.Buf8(a.pending_buf_size),a.d_buf=+a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=e,a.strategy=o,a.method=i,N(t)}a=[new s(0,0,0,0,function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if($(t),0===t.lookahead&&e===c)return _;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,A(t,!1),0===t.strm.avail_out))return _;if(t.w_size-y<=t.strstart-t.block_start&&(A(t,!1),0===t.strm.avail_out))return _}return t.insert=0,e===u?(A(t,!0),0===t.strm.avail_out?O:E):(t.block_start<t.strstart&&(A(t,!1),t.strm.avail_out),_)}),new s(4,4,8,4,n),new s(4,5,16,8,n),new s(4,6,32,32,n),new s(4,4,16,16,r),new s(8,16,32,32,r),new s(8,16,128,128,r),new s(8,32,128,256,r),new s(32,128,258,1024,r),new s(32,258,258,4096,r)],e.deflateInit=function(t,e){return Y(t,e,g,15,8,0)},e.deflateInit2=Y,e.deflateReset=N,e.deflateResetKeep=R,e.deflateSetHeader=function(t,e){return!t||!t.state||2!==t.state.wrap?m:(t.state.gzhead=e,p)},e.deflate=function(t,e){var i,n,r,o;if(!t||!t.state||5<e||e<0)return t?C(t,m):m;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==u)return C(t,0===t.avail_out?-5:m);if(n.strm=t,i=n.last_flush,n.last_flush=e,n.status===w&&(2===n.wrap?(t.adler=0,P(n,31),P(n,139),P(n,8),n.gzhead?(P(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),P(n,255&n.gzhead.time),P(n,n.gzhead.time>>8&255),P(n,n.gzhead.time>>16&255),P(n,n.gzhead.time>>24&255),P(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),P(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(P(n,255&n.gzhead.extra.length),P(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=f(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(P(n,0),P(n,0),P(n,0),P(n,0),P(n,0),P(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),P(n,3),n.status=S)):(s=g+(n.w_bits-8<<4)<<8,s|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(s|=32),s+=31-s%31,n.status=S,I(n,s),0!==n.strstart&&(I(n,t.adler>>>16),I(n,65535&t.adler)),t.adler=1)),69===n.status)if(n.gzhead.extra){for(r=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),j(t),r=n.pending,n.pending!==n.pending_buf_size));)P(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),j(t),r=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,P(n,o),0!==o);n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),j(t),r=n.pending,n.pending===n.pending_buf_size)){o=1;break}}while(o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,P(n,o),0!==o);n.gzhead.hcrc&&n.pending>r&&(t.adler=f(t.adler,n.pending_buf,n.pending-r,r)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&j(t),n.pending+2<=n.pending_buf_size&&(P(n,255&t.adler),P(n,t.adler>>8&255),t.adler=0,n.status=S)):n.status=S),0!==n.pending){if(j(t),0===t.avail_out)return n.last_flush=-1,p}else if(0===t.avail_in&&T(e)<=T(i)&&e!==u)return C(t,-5);if(666===n.status&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==c&&666!==n.status){var s=2===n.strategy?((t,e)=>{for(var i;;){if(0===t.lookahead&&($(t),0===t.lookahead)){if(e===c)return _;break}if(t.match_length=0,i=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(A(t,!1),0===t.strm.avail_out))return _}return t.insert=0,e===u?(A(t,!0),0===t.strm.avail_out?O:E):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?_:k})(n,e):3===n.strategy?((t,e)=>{for(var i,n,r,o,s=t.window;;){if(t.lookahead<=b){if($(t),t.lookahead<=b&&e===c)return _;if(0===t.lookahead)break}if(t.match_length=0,v<=t.lookahead&&0<t.strstart&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){for(o=t.strstart+b;n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<o;);t.match_length=b-(o-r),t.lookahead<t.match_length&&(t.match_length=t.lookahead)}if(v<=t.match_length?(i=l._tr_tally(t,1,t.match_length-v),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=l._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(A(t,!1),0===t.strm.avail_out))return _}return t.insert=0,e===u?(A(t,!0),0===t.strm.avail_out?O:E):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?_:k})(n,e):a[n.level].func(n,e);if(s!==O&&s!==E||(n.status=666),s===_||s===O)return 0===t.avail_out&&(n.last_flush=-1),p;if(s===k&&(1===e?l._tr_align(n):5!==e&&(l._tr_stored_block(n,0,0,!1),3===e)&&(x(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),j(t),0===t.avail_out))return n.last_flush=-1,p}return e!==u||!(n.wrap<=0)&&(2===n.wrap?(P(n,255&t.adler),P(n,t.adler>>8&255),P(n,t.adler>>16&255),P(n,t.adler>>24&255),P(n,255&t.total_in),P(n,t.total_in>>8&255),P(n,t.total_in>>16&255),P(n,t.total_in>>24&255)):(I(n,t.adler>>>16),I(n,65535&t.adler)),j(t),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?p:1},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==w&&69!==e&&73!==e&&91!==e&&103!==e&&e!==S&&666!==e?C(t,m):(t.state=null,e===S?C(t,-3):p):m},e.deflateSetDictionary=function(t,e){var i,n,r,o,s,a,l,c=e.length;if(!t||!t.state)return m;if(2===(o=(i=t.state).wrap)||1===o&&i.status!==w||i.lookahead)return m;for(1===o&&(t.adler=d(t.adler,e,c,0)),i.wrap=0,i.w_size<=c&&(0===o&&(x(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new h.Buf8(i.w_size),h.arraySet(l,e,c-i.w_size,i.w_size,0),e=l,c=i.w_size),l=t.avail_in,s=t.next_in,a=t.input,t.avail_in=c,t.next_in=0,t.input=e,$(i);i.lookahead>=v;){for(n=i.strstart,r=i.lookahead-(v-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+v-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--r;);i.strstart=n,i.lookahead=v-1,$(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=v-1,i.match_available=0,t.next_in=s,t.input=a,t.avail_in=l,i.wrap=o,p},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}
vendor: 13,774 bytes, line 1
1],47:[function(t,e,i){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,i){e.exports=function(t,e){var i,n,r,o,s,a,l=t.state,c=t.next_in,u=t.input,h=c+(t.avail_in-5),d=t.next_out,f=t.output,p=d-(e-t.avail_out),m=d+(t.avail_out-257),g=l.dmax,v=l.wsize,b=l.whave,y=l.wnext,w=l.window,S=l.hold,_=l.bits,k=l.lencode,O=l.distcode,E=(1<<l.lenbits)-1,C=(1<<l.distbits)-1;t:do{for(_<15&&(S+=u[c++]<<_,_+=8,S+=u[c++]<<_,_+=8),i=k[S&E];;){if(S>>>=n=i>>>24,_-=n,0===(n=i>>>16&255))f[d++]=65535&i;else{if(!(16&n)){if(0==(64&n)){i=k[(65535&i)+(S&(1<<n)-1)];continue}if(32&n){l.mode=12;break t}t.msg="invalid literal/length code",l.mode=30;break t}for(r=65535&i,(n&=15)&&(_<n&&(S+=u[c++]<<_,_+=8),r+=S&(1<<n)-1,S>>>=n,_-=n),_<15&&(S+=u[c++]<<_,_+=8,S+=u[c++]<<_,_+=8),i=O[S&C];;){if(S>>>=n=i>>>24,_-=n,!(16&(n=i>>>16&255))){if(0==(64&n)){i=O[(65535&i)+(S&(1<<n)-1)];continue}t.msg="invalid distance code",l.mode=30;break t}if(o=65535&i,_<(n&=15)&&(S+=u[c++]<<_,(_+=8)<n)&&(S+=u[c++]<<_,_+=8),g<(o+=S&(1<<n)-1)){t.msg="invalid distance too far back",l.mode=30;break t}if(S>>>=n,_-=n,(n=d-p)<o){if(b<(n=o-n)&&l.sane){t.msg="invalid distance too far back",l.mode=30;break t}if(a=w,(s=0)===y){if(s+=v-n,n<r){for(r-=n;f[d++]=w[s++],--n;);s=d-o,a=f}}else if(y<n){if(s+=v+y-n,(n-=y)<r){for(r-=n;f[d++]=w[s++],--n;);if(s=0,y<r){for(r-=n=y;f[d++]=w[s++],--n;);s=d-o,a=f}}}else if(s+=y-n,n<r){for(r-=n;f[d++]=w[s++],--n;);s=d-o,a=f}for(;2<r;)f[d++]=a[s++],f[d++]=a[s++],f[d++]=a[s++],r-=3;r&&(f[d++]=a[s++],1<r)&&(f[d++]=a[s++])}else{for(s=d-o;f[d++]=f[s++],f[d++]=f[s++],f[d++]=f[s++],2<(r-=3););r&&(f[d++]=f[s++],1<r)&&(f[d++]=f[s++])}break}}break}}while(c<h&&d<m);S&=(1<<(_-=(r=_>>3)<<3))-1,t.next_in=c-=r,t.next_out=d,t.avail_in=c<h?h-c+5:5-(c-h),t.avail_out=d<m?m-d+257:257-(d-m),l.hold=S,l.bits=_}},{}],49:[function(t,e,i){var P=t("../utils/common"),I=t("./adler32"),$=t("./crc32"),R=t("./inffast"),N=t("./inftrees"),D=1,L=2,M=0,z=-2,B=1,n=852,r=592;function F(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new P.Buf16(320),this.work=new P.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=B,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new P.Buf32(n),e.distcode=e.distdyn=new P.Buf32(r),e.sane=1,e.back=-1,M):z}function a(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,s(t)):z}function l(t,e){var i,n;return!t||!t.state||(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e))?z:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,a(t))}function c(t,e){var i;return t?(i=new o,(t.state=i).window=null,(i=l(t,e))!==M&&(t.state=null),i):z}var U,q,W=!0;function H(t,e,i,n){var r,t=t.state;return null===t.window&&(t.wsize=1<<t.wbits,t.wnext=0,t.whave=0,t.window=new P.Buf8(t.wsize)),t.wsize<=n?(P.arraySet(t.window,e,i-t.wsize,t.wsize,0),t.wnext=0,t.whave=t.wsize):(n<(r=t.wsize-t.wnext)&&(r=n),P.arraySet(t.window,e,i-n,r,t.wnext),(n-=r)?(P.arraySet(t.window,e,i-n,n,0),t.wnext=n,t.whave=t.wsize):(t.wnext+=r,t.wnext===t.wsize&&(t.wnext=0),t.whave<t.wsize&&(t.whave+=r))),0}i.inflateReset=a,i.inflateReset2=l,i.inflateResetKeep=s,i.inflateInit=function(t){return c(t,15)},i.inflateInit2=c,i.inflate=function(t,e){var i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,v,b,y,w,S,_,k,O,E,C=0,T=new P.Buf8(4),x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return z;12===(i=t.state).mode&&(i.mode=13),s=t.next_out,r=t.output,o=t.next_in,n=t.input,c=i.hold,u=i.bits,h=a=t.avail_in,d=l=t.avail_out,k=M;t:while(!0)switch(i.mode){case B:if(0===i.wrap)i.mode=13;else{for(;u<16;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(2&i.wrap&&35615===c)T[i.check=0]=255&c,T[1]=c>>>8&255,i.check=$(i.check,T,2,0),u=c=0,i.mode=2;else if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&c)<<8)+(c>>8))%31)t.msg="incorrect header check",i.mode=30;else if(8!=(15&c))t.msg="unknown compression method",i.mode=30;else{if(u-=4,_=8+(15&(c>>>=4)),0===i.wbits)i.wbits=_;else if(_>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<_,t.adler=i.check=1,i.mode=512&c?10:12,u=c=0}}break;case 2:for(;u<16;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(i.flags=c,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=c>>8&1),512&i.flags&&(T[0]=255&c,T[1]=c>>>8&255,i.check=$(i.check,T,2,0)),u=c=0,i.mode=3;case 3:for(;u<32;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.head&&(i.head.time=c),512&i.flags&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,i.check=$(i.check,T,4,0)),u=c=0,i.mode=4;case 4:for(;u<16;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.head&&(i.head.xflags=255&c,i.head.os=c>>8),512&i.flags&&(T[0]=255&c,T[1]=c>>>8&255,i.check=$(i.check,T,2,0)),u=c=0,i.mode=5;case 5:if(1024&i.flags){for(;u<16;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.length=c,i.head&&(i.head.extra_len=c),512&i.flags&&(T[0]=255&c,T[1]=c>>>8&255,i.check=$(i.check,T,2,0)),u=c=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((f=a<(f=i.length)?a:f)&&(i.head&&(_=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),P.arraySet(i.head.extra,n,o,f,_)),512&i.flags&&(i.check=$(i.check,n,f,o)),a-=f,o+=f,i.length-=f),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===a)break t;for(f=0;_=n[o+f++],i.head&&_&&i.length<65536&&(i.head.name+=String.fromCharCode(_)),_&&f<a;);if(512&i.flags&&(i.check=$(i.check,n,f,o)),a-=f,o+=f,_)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===a)break t;for(f=0;_=n[o+f++],i.head&&_&&i.length<65536&&(i.head.comment+=String.fromCharCode(_)),_&&f<a;);if(512&i.flags&&(i.check=$(i.check,n,f,o)),a-=f,o+=f,_)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;u<16;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(c!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}u=c=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;u<32;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}t.adler=i.check=F(c),u=c=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=s,t.avail_out=l,t.next_in=o,t.avail_in=a,i.hold=c,i.bits=u,2;t.adler=i.check=1,i.mode=12;case 12:if(5===e||6===e)break t;case 13:if(i.last)c>>>=7&u,u-=7&u,i.mode=27;else{for(;u<3;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}switch(i.last=1&c,--u,3&(c>>>=1)){case 0:i.mode=14;break;case 1:j=A=void 0;var j,A=i;if(W){for(U=new P.Buf32(512),q=new P.Buf32(32),j=0;j<144;)A.lens[j++]=8;for(;j<256;)A.lens[j++]=9;for(;j<280;)A.lens[j++]=7;for(;j<288;)A.lens[j++]=8;for(N(D,A.lens,0,288,U,0,A.work,{bits:9}),j=0;j<32;)A.lens[j++]=5;N(L,A.lens,0,32,q,0,A.work,{bits:5}),W=!1}if(A.lencode=U,A.lenbits=9,A.distcode=q,A.distbits=5,i.mode=20,6!==e)break;c>>>=2,u-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}c>>>=2,u-=2}break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&c,u=c=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(f=i.length){if(0===(f=l<(f=a<f?a:f)?l:f))break t;P.arraySet(r,n,o,f,s),a-=f,o+=f,l-=f,s+=f,i.length-=f}else i.mode=12;break;case 17:for(;u<14;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(i.nlen=257+(31&c),c>>>=5,u-=5,i.ndist=1+(31&c),c>>>=5,u-=5,i.ncode=4+(15&c),c>>>=4,u-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;u<3;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.lens[x[i.have++]]=7&c,c>>>=3,u-=3}for(;i.have<19;)i.lens[x[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,O={bits:i.lenbits},k=N(0,i.lens,0,19,i.lencode,0,i.work,O),i.lenbits=O.bits,k){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;v=(C=i.lencode[c&(1<<i.lenbits)-1])>>>16&255,b=65535&C,!((g=C>>>24)<=u);){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(b<16)c>>>=g,u-=g,i.lens[i.have++]=b;else{if(16===b){for(E=g+2;u<E;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(c>>>=g,u-=g,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}_=i.lens[i.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===b){for(E=g+3;u<E;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}_=0,f=3+(7&(c>>>=g)),c>>>=3,u=u-g-3}else{for(E=g+7;u<E;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}_=0,f=11+(127&(c>>>=g)),c>>>=7,u=u-g-7}if(i.have+f>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;f--;)i.lens[i.have++]=_}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,O={bits:i.lenbits},k=N(D,i.lens,0,i.nlen,i.lencode,0,i.work,O),i.lenbits=O.bits,k){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,O={bits:i.distbits},k=N(L,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,O),i.distbits=O.bits,k){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(6<=a&&258<=l){t.next_out=s,t.avail_out=l,t.next_in=o,t.avail_in=a,i.hold=c,i.bits=u,R(t,d),s=t.next_out,r=t.output,l=t.avail_out,o=t.next_in,n=t.input,a=t.avail_in,c=i.hold,u=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;v=(C=i.lencode[c&(1<<i.lenbits)-1])>>>16&255,b=65535&C,!((g=C>>>24)<=u);){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(v&&0==(240&v)){for(y=g,w=v,S=b;v=(C=i.lencode[S+((c&(1<<y+w)-1)>>y)])>>>16&255,b=65535&C,!(y+(g=C>>>24)<=u);){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}c>>>=y,u-=y,i.back+=y}if(c>>>=g,u-=g,i.back+=g,i.length=b,0===v){i.mode=26;break}if(32&v){i.back=-1,i.mode=12;break}if(64&v){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&v,i.mode=22;case 22:if(i.extra){for(E=i.extra;u<E;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.length+=c&(1<<i.extra)-1,c>>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;v=(C=i.distcode[c&(1<<i.distbits)-1])>>>16&255,b=65535&C,!((g=C>>>24)<=u);){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(0==(240&v)){for(y=g,w=v,S=b;v=(C=i.distcode[S+((c&(1<<y+w)-1)>>y)])>>>16&255,b=65535&C,!(y+(g=C>>>24)<=u);){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}c>>>=y,u-=y,i.back+=y}if(c>>>=g,u-=g,i.back+=g,64&v){t.msg="invalid distance code",i.mode=30;break}i.offset=b,i.extra=15&v,i.mode=24;case 24:if(i.extra){for(E=i.extra;u<E;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}i.offset+=c&(1<<i.extra)-1,c>>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===l)break t;if(i.offset>(f=d-l)){if((f=i.offset-f)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}p=f>i.wnext?(f-=i.wnext,i.wsize-f):i.wnext-f,f>i.length&&(f=i.length),m=i.window}else m=r,p=s-i.offset,f=i.length;for(l-=f=l<f?l:f,i.length-=f;r[s++]=m[p++],--f;);0===i.length&&(i.mode=21);break;case 26:if(0===l)break t;r[s++]=i.length,l--,i.mode=21;break;case 27:if(i.wrap){for(;u<32;){if(0===a)break t;a--,c|=n[o++]<<u,u+=8}if(d-=l,t.total_out+=d,i.total+=d,d&&(t.adler=i.check=(i.flags?$:I)(i.check,r,d,s-d)),d=l,(i.flags?c:F(c))!==i.check){t.msg="incorrect data check",i.mode=30;break}u=c=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;u<32;){if(0===a)break t;a--,c+=n[o++]<<u,u+=8}if(c!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}u=c=0}i.mode=29;case 29:k=1;break t;case 30:k=-3;break t;case 31:return-4;default:return z}return t.next_out=s,t.avail_out=l,t.next_in=o,t.avail_in=a,i.hold=c,i.bits=u,(i.wsize||d!==t.avail_out&&i.mode<30&&(i.mode<27||4!==e))&&H(t,t.output,t.next_out,d-t.avail_out)?(i.mode=31,-4):(d-=t.avail_out,t.total_in+=h-=t.avail_in,t.total_out+=d,i.total+=d,i.wrap&&d&&(t.adler=i.check=(i.flags?$:I)(i.check,r,d,t.next_out-d)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==h&&0===d||4===e)&&k===M?-5:k)},i.inflateEnd=function(t){var e;return t&&t.state?((e=t.state).window&&(e.window=null),t.state=null,M):z},i.inflateGetHeader=function(t,e){return!t||!t.state||0==(2&(t=t.state).wrap)?z:((t.head=e).done=!1,M)},i.inflateSetDictionary=function(t,e){var i,n=e.length;return!t||!t.state||0!==(i=t.state).wrap&&11!==i.mode?z:11===i.mode&&I(1,e,n,0)!==i.check?-3:H(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,M)},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,i){var R=t("../utils/common"),N=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],L=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],M=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,i,n,r,o,s,a){for(var l,c,u,h,d,f,p,m,g,v=a.bits,b=0,y=0,w=0,S=0,_=0,k=0,O=0,E=0,C=0,T=0,x=null,j=0,A=new R.Buf16(16),P=new R.Buf16(16),I=null,$=0,b=0;b<=15;b++)A[b]=0;for(y=0;y<n;y++)A[e[i+y]]++;
vendor: 4,421 bytes, line 1
1for(_=v,S=15;1<=S&&0===A[S];S--);if(S<_&&(_=S),0===S)r[o++]=20971520,r[o++]=20971520,a.bits=1;else{for(w=1;w<S&&0===A[w];w++);for(_<w&&(_=w),b=E=1;b<=15;b++)if((E=(E<<=1)-A[b])<0)return-1;if(0<E&&(0===t||1!==S))return-1;for(P[1]=0,b=1;b<15;b++)P[b+1]=P[b]+A[b];for(y=0;y<n;y++)0!==e[i+y]&&(s[P[e[i+y]]++]=y);if(f=0===t?(x=I=s,19):1===t?(x=N,j-=257,I=D,$-=257,256):(x=L,I=M,-1),b=w,d=o,O=y=T=0,u=-1,h=(C=1<<(k=_))-1,1===t&&852<C||2===t&&592<C)return 1;while(!0){for(g=s[y]<f?(m=0,s[y]):s[y]>f?(m=I[$+s[y]],x[j+s[y]]):(m=96,0),l=1<<(p=b-O),w=c=1<<k;r[d+(T>>O)+(c-=l)]=p<<24|m<<16|g|0,0!==c;);for(l=1<<b-1;T&l;)l>>=1;if(T=0!==l?(T&l-1)+l:0,y++,0==--A[b]){if(b===S)break;b=e[i+s[y]]}if(_<b&&(T&h)!==u){for(d+=w,E=1<<(k=b-(O=0===O?_:O));k+O<S&&!((E-=A[k+O])<=0);)k++,E<<=1;if(C+=1<<k,1===t&&852<C||2===t&&592<C)return 1;r[u=T&h]=_<<24|k<<16|d-o|0}}0!==T&&(r[d+T]=b-O<<24|64<<16|0),a.bits=_}return 0}},{"../utils/common":41}],51:[function(t,e,i){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(i,o,t){var s=i("../utils/common"),u=0,h=1;function e(t){for(var e=t.length;0<=--e;)t[e]=0}var a,l,c,d=29,f=256,p=f+1+d,m=30,g=19,E=2*p+1,C=15,n=16,z=7,v=256,b=16,y=17,w=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(p+2)),T=(e(O),new Array(2*m)),x=(e(T),new Array(512)),j=(e(x),new Array(256)),A=(e(j),new Array(d)),P=(e(A),new Array(m));function I(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function $(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?x[t]:x[256+(t>>>7)]}function r(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,i){t.bi_valid>n-i?(t.bi_buf|=e<<t.bi_valid&65535,r(t,t.bi_buf),t.bi_buf=e>>n-t.bi_valid,t.bi_valid+=i-n):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function D(t,e,i){N(t,i[2*e],i[2*e+1])}function F(t,e){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--e;);return i>>>1}function U(t,e,i){for(var n,r=new Array(C+1),o=0,s=1;s<=C;s++)r[s]=o=o+i[s-1]<<1;for(n=0;n<=e;n++){var a=t[2*n+1];0!==a&&(t[2*n]=F(r[a]++,a))}}function q(t){for(var e=0;e<p;e++)t.dyn_ltree[2*e]=0;for(e=0;e<m;e++)t.dyn_dtree[2*e]=0;for(e=0;e<g;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function W(t){8<t.bi_valid?r(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function H(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function L(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&H(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!H(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function V(t,e,i){var n,r,o,s,a=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*a]<<8|t.pending_buf[t.d_buf+2*a+1],r=t.pending_buf[t.l_buf+a],a++,0==n?D(t,r,e):(D(t,(o=j[r])+f+1,e),0!==(s=S[o])&&N(t,r-=A[o],s),D(t,o=R(--n),i),0!==(s=_[o])&&N(t,n-=P[o],s)),a<t.last_lit;);D(t,v,e)}function M(t,e){var i,n,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=E,i=0;i<l;i++)0!==o[2*i]?(t.heap[++t.heap_len]=c=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=c,i=t.heap_len>>1;1<=i;i--)L(t,o,i);for(r=l;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],L(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,L(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1];for(var u,h,d,f,p,m=t,g=e.dyn_tree,v=e.max_code,b=e.stat_desc.static_tree,y=e.stat_desc.has_stree,w=e.stat_desc.extra_bits,S=e.stat_desc.extra_base,_=e.stat_desc.max_length,k=0,O=0;O<=C;O++)m.bl_count[O]=0;for(g[2*m.heap[m.heap_max]+1]=0,u=m.heap_max+1;u<E;u++)_<(O=g[2*g[2*(h=m.heap[u])+1]+1]+1)&&(O=_,k++),g[2*h+1]=O,v<h||(m.bl_count[O]++,f=0,S<=h&&(f=w[h-S]),p=g[2*h],m.opt_len+=p*(O+f),y&&(m.static_len+=p*(b[2*h+1]+f)));if(0!==k){do{for(O=_-1;0===m.bl_count[O];)O--}
1while(m.bl_count[O]--,m.bl_count[O+1]+=2,m.bl_count[_]--,0<(k-=2));for(O=_;0!==O;O--)for(h=m.bl_count[O];0!==h;)v<(d=m.heap[--u])||(g[2*d+1]!==O&&(m.opt_len+=(O-g[2*d+1])*g[2*d],g[2*d+1]=O),h--)}U(o,c,t.bl_count)}function Y(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=s,s=e[2*(n+1)+1],++a<l&&r===s||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*b]++):a<=10?t.bl_tree[2*y]++:t.bl_tree[2*w]++,o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4))}function X(t,e,i){var n,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=i;n++)if(r=s,s=e[2*(n+1)+1],!(++a<l&&r===s)){if(a<c)for(;D(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==o&&(D(t,r,t.bl_tree),a--),D(t,b,t.bl_tree),N(t,a-3,2)):a<=10?(D(t,y,t.bl_tree),N(t,a-3,3)):(D(t,w,t.bl_tree),N(t,a-11,7));o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4)}}e(P);var G=!1;function Z(t,e,i,n){N(t,0+(n?1:0),3),n=e,e=i,i=!0,W(t=t),i&&(r(t,e),r(t,~e)),s.arraySet(t.pending_buf,t.window,n,e,t.pending),t.pending+=e}t._tr_init=function(t){if(!G){for(var e,i,n,r=new Array(C+1),o=0,s=0;s<d-1;s++)for(A[s]=o,e=0;e<1<<S[s];e++)j[o++]=s;for(j[o-1]=s,s=n=0;s<16;s++)for(P[s]=n,e=0;e<1<<_[s];e++)x[n++]=s;for(n>>=7;s<m;s++)for(P[s]=n<<7,e=0;e<1<<_[s]-7;e++)x[256+n++]=s;for(i=0;i<=C;i++)r[i]=0;for(e=0;e<=143;)O[2*e+1]=8,e++,r[8]++;for(;e<=255;)O[2*e+1]=9,e++,r[9]++;for(;e<=279;)O[2*e+1]=7,e++,r[7]++;for(;e<=287;)O[2*e+1]=8,e++,r[8]++;for(U(O,p+1,r),e=0;e<m;e++)T[2*e+1]=5,T[2*e]=F(e,5);a=new I(O,S,f+1,p,C),l=new I(T,_,0,m,C),c=new I(new Array(0),B,0,g,z),G=!0}t.l_desc=new $(t.dyn_ltree,a),t.d_desc=new $(t.dyn_dtree,l),t.bl_desc=new $(t.bl_tree,c),t.bi_buf=0,t.bi_valid=0,q(t)},t._tr_stored_block=Z,t._tr_flush_block=function(t,e,i,n){var r,o,s=0;if(0<t.level?(2===t.strm.data_type&&(t.strm.data_type=(t=>{for(var e=4093624447,i=0;i<=31;i++,e>>>=1)if(1&e&&0!==t.dyn_ltree[2*i])return u;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return h;for(i=32;i<f;i++)if(0!==t.dyn_ltree[2*i])return h;return u})(t)),M(t,t.l_desc),M(t,t.d_desc),s=(t=>{var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),M(t,t.bl_desc),e=g-1;3<=e&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),(o=t.static_len+3+7>>>3)<=(r=t.opt_len+3+7>>>3)&&(r=o)):r=o=i+5,i+4<=r&&-1!==e)Z(t,e,i,n);else if(4===t.strategy||o===r)N(t,2+(n?1:0),3),V(t,O,T);else{N(t,4+(n?1:0),3);var a,l=t,e=t.l_desc.max_code+1,i=t.d_desc.max_code+1,c=s+1;for(N(l,e-257,5),N(l,i-1,5),N(l,c-4,4),a=0;a<c;a++)N(l,l.bl_tree[2*k[a]+1],3);X(l,l.dyn_ltree,e-1),X(l,l.dyn_dtree,i-1),V(t,t.dyn_ltree,t.dyn_dtree)}q(t),n&&W(t)},t._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(j[i]+f+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},t._tr_align=function(t){N(t,2,3),D(t,v,O),16===(t=t).bi_valid?(r(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,i){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){!function(t){function o(t){delete l[t]}function s(t){if(c)setTimeout(s,0,t);else{var e=l[t];if(e){c=!0;try{var i=e,n=i.callback,r=i.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(a,r)}}finally{o(t),c=!1}}}}function e(){function t(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(e)&&s(+t.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),u=function(t){i.postMessage(e+t,"*")}}var i,a,n,l,c,r,u,h,d;(i="undefined"==typeof self?void 0===t?this:t:self).setImmediate||(n=1,c=!(l={}),r=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,"[object process]"==={}.toString.call(i.process)?u=function(t){p.nextTick(function(){s(t)})}:(()=>{var t,e;return i.postMessage&&!i.importScripts&&(t=!0,e=i.onmessage,i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t)})()?e():u=i.MessageChannel?((d=new MessageChannel).port1.onmessage=function(t){s(t.data)},function(t){d.port2.postMessage(t)}):r&&"onreadystatechange"in r.createElement("script")?(h=r.documentElement,function(t){var e=r.createElement("script");e.onreadystatechange=function(){s(t),e.onreadystatechange=null,h.removeChild(e),e=null},h.appendChild(e)}):function(t){setTimeout(s,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return l[n]={callback:t,args:e},u(n),n++},t.clearImmediate=o)}.call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}.call(this,i(72).Buffer,i(76).setImmediate,i(9),i(30))},function(t,l,c){!function(t){var i=c(16),e=c(12),n=c(2),r=c(10),o=c(0),s=c(1);c(23),c(14),c(24);function a(t,e){return new i.a(t,e)}a.VERSION=s.b,void 0!==t&&(t.EPUBJS_VERSION=s.b),a.Book=i.a,a.Ren
1dition=e.a,a.Contents=r.a,a.CFI=n.a,a.utils=o,l.a=a}.call(this,c(9))},function(t,i,e){!function(t){var e;function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mi(n.key),n)}}function $i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ri(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ni(t,e,i){e=s(e);var n=t,e=r()?Reflect.construct(e,i||[],s(t).constructor):e.apply(t,i);if(!e||"object"!=Fi(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function Di(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function Li(t){var i="function"==typeof Map?new Map:void 0;return(Li=function(t){if(null===t||!(e=>{try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}})(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,e)}function e(){return function(t,e,i){var n;return r()?Reflect.construct.apply(null,arguments):((n=[null]).push.apply(n,e),e=new(t.bind.apply(t,n)),i&&o(e,i.prototype),e)}(t,arguments,s(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)})(t)}function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(r=function(){return!!t})()}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Mi(t){t=((t,e)=>{if("object"!=Fi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Fi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Fi(t)?t:t+""}function zi(t,e){var i,n,r,o,s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){r=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(t)||(s=a(t))||e&&t&&"number"==typeof t.length)return s&&(t=s),o=0,{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bi(t){return(t=>{if(Array.isArray(t))return l(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})(t)||a(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function a(t,e){var i;if(t)return"string"==typeof t?l(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Fi(t){return(Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
1e=function(){return D=[,function(t,e,i){i.r(e),i.d(e,{default:function(){return n}}),Ii="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;var Ii,n=function(){var n,M,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},j=e;function z(){var i=0,n=0,r=new Map,o=null,e=null;this.requestAnimationFrame=function(t){i=i||requestAnimationFrame(function(e){var t=r;n=i=0,r=new Map,t.forEach(function(t){try{t(e)}catch(t){console.error(t)}}),this.ob(),o&&o.Tb()}.bind(this));var e=++n;return r.set(e,t),e},this.cancelAnimationFrame=function(t){r.delete(t),i&&0==r.size&&(cancelAnimationFrame(i),i=0)},this.Rb=function(n){e&&(document.body.remove(e),e=null),n||((e=document.createElement("div")).style.backgroundColor="black",e.style.position="fixed",e.style.right=0,e.style.top=0,e.style.color="white",e.style.padding="4px",e.innerHTML="RIVE FPS",n=function(t){e.innerHTML="RIVE FPS "+t.toFixed(1)},document.body.appendChild(e)),o=new function(){var e=0,i=0;this.Tb=function(){var t=performance.now();i?(++e,1e3<(t-=i)&&(n(1e3*e/t),e=i=0)):(i=t,e=0)}}},this.Ob=function(){e&&(document.body.remove(e),e=null),o=null},this.ob=function(){}}function B(e){console.assert(!0);var i=new Map,n=-1/0;this.push=function(t){return t=t+((1<<e)-1)>>e,i.has(t)&&clearTimeout(i.get(t)),i.set(t,setTimeout(function(){i.delete(t),0==i.length?n=-1/0:t==n&&(n=Math.max.apply(Math,Bi(i.keys())),console.assert(n<t))},1e3)),(n=Math.max(t,n))<<e}}j.ready=new Promise(function(t,e){n=t,M=e});var F,U,o,q=j.onRuntimeInitialized,W=(j.onRuntimeInitialized=function(){q&&q();var i=j.decodeAudio,n=(j.decodeAudio=function(t,e){e(t=i(t))},j.decodeFont),t=(j.decodeFont=function(t,e){e(t=n(t))},j.FileAssetLoader);j.ptrToAsset=function(t){var e=j.ptrToFileAsset(t);return e.isImage?j.ptrToImageAsset(t):e.isFont?j.ptrToFontAsset(t):e.isAudio?j.ptrToAudioAsset(t):e},j.CustomFileAssetLoader=t.extend("CustomFileAssetLoader",{__construct:function(t){t=t.loadContents;this.__parent.__construct.call(this),this.Gb=t},loadContents:function(t,e){return t=j.ptrToAsset(t),this.Gb(t,e)}}),j.CDNFileAssetLoader=t.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(t){var e,i=j.ptrToAsset(t);return""!==(t=i.cdnUuid)&&(t=i.cdnBaseUrl+"/"+t,(e=new XMLHttpRequest).responseType="arraybuffer",e.onreadystatechange=function(){4==e.readyState&&200==e.status&&i.decode(new Uint8Array(e.response))},e.open("GET",t,!0),e.send(null),!0)}}),j.FallbackFileAssetLoader=t.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.kb=[]},addLoader:function(t){this.kb.push(t)},loadContents:function(t,e){var i,n=zi(this.kb);try{for(n.s();!(i=n.n()).done;)if(i.value.loadContents(t,e))return!0}catch(t){n.e(t)}finally{n.f()}return!1}})},"createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" ")),H=new function(){function w(){if(!S){var n,t=document.createElement("canvas"),e={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(n=t.getContext("webgl",e),r=1,!n)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(n=t.getContext("webgl2",e))r=2;else{if(!(n=t.getContext("webgl",e)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;r=1}function i(t,e,i){if(e=n.createShader(e),n.shaderSource(e,i),n.compileShader(e),0<((i=n.getShaderInfoLog(e))||"").length)throw i;n.attachShader(t,e)}if(n=new Proxy(n,{get:function(n,r){return n.isContextLost()?(s||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",r),s=!0),"function"==typeof n[r]?function(){}:void 0):"function"==typeof n[r]?function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n[r].apply(n,e)}:n[r]}
1,set:function(t,e,i){if(!t.isContextLost())return t[e]=i,!0;s||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+e),s=!0)}}),o=Math.min(n.getParameter(n.MAX_RENDERBUFFER_SIZE),n.getParameter(n.MAX_TEXTURE_SIZE)),i(t=n.createProgram(),n.VERTEX_SHADER,"attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }"),i(t,n.FRAGMENT_SHADER,"precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }"),n.bindAttribLocation(t,0,"vertex"),n.bindAttribLocation(t,1,"uv"),n.linkProgram(t),0<((e=n.getProgramInfoLog(t))||"").trim().length)throw e;_=n.getUniformLocation(t,"mat"),k=n.getUniformLocation(t,"translate"),n.useProgram(t),n.bindBuffer(n.ARRAY_BUFFER,n.createBuffer()),n.enableVertexAttribArray(0),n.enableVertexAttribArray(1),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,n.createBuffer()),n.uniform1i(n.getUniformLocation(t,"image"),0),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),S=n}return!0}var S=null,r=0,o=0,_=null,k=null,O=0,E=0,s=!1,C=(w(),this.hc=function(){return w(),o},this.Mb=function(t){S.deleteTexture&&S.deleteTexture(t)},this.Lb=function(t){var e;return w()&&(e=S.createTexture())?(S.bindTexture(S.TEXTURE_2D,e),S.texImage2D(S.TEXTURE_2D,0,S.RGBA,S.RGBA,S.UNSIGNED_BYTE,t),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_WRAP_S,S.CLAMP_TO_EDGE),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_WRAP_T,S.CLAMP_TO_EDGE),S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MAG_FILTER,S.LINEAR),2==r?(S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MIN_FILTER,S.LINEAR_MIPMAP_LINEAR),S.generateMipmap(S.TEXTURE_2D)):S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MIN_FILTER,S.LINEAR),e):null},new B(8)),T=new B(8),x=new B(10),j=new B(10);this.Qb=function(t,e,i,n,r){if(w()){var o=C.push(t),s=T.push(e);if(S.canvas){S.canvas.width==o&&S.canvas.height==s||(S.canvas.width=o,S.canvas.height=s),S.viewport(0,s-e,t,e),S.disable(S.SCISSOR_TEST),S.clearColor(0,0,0,0),S.clear(S.COLOR_BUFFER_BIT),S.enable(S.SCISSOR_TEST),i.sort(function(t,e){return e.wb-t.wb}),o=x.push(n),O!=o&&(S.bufferData(S.ARRAY_BUFFER,8*o,S.DYNAMIC_DRAW),O=o);var a,o=0,l=zi(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;S.bufferSubData(S.ARRAY_BUFFER,o,c.Ta),o+=4*c.Ta.length}}catch(t){l.e(t)}finally{l.f()}console.assert(o==4*n);var u,h=zi(i);try{for(h.s();!(u=h.n()).done;){var d=u.value;S.bufferSubData(S.ARRAY_BUFFER,o,d.Db),o+=4*d.Db.length}}catch(t){h.e(t)}finally{h.f()}console.assert(o==8*n),o=j.push(r),E!=o&&(S.bufferData(S.ELEMENT_ARRAY_BUFFER,2*o,S.DYNAMIC_DRAW),E=o);var f,c=0,p=zi(i);try{for(p.s();!(f=p.n()).done;){var m=f.value;S.bufferSubData(S.ELEMENT_ARRAY_BUFFER,c,m.indices),c+=2*m.indices.length}}catch(t){p.e(t)}finally{p.f()}console.assert(c==2*r),d=!(m=0),o=c=0;var g,v=zi(i);try{for(v.s();!(g=v.n()).done;){var b=g.value,y=(b.image.Ka!=m&&(S.bindTexture(S.TEXTURE_2D,b.image.Ja||null),m=b.image.Ka),b.mc?(S.scissor(b.Ya,s-b.Za-b.jb,b.Ac,b.jb),d=!0):d&&(S.scissor(0,s-e,t,e),d=!1),i=2/t,-2/e);S.uniform4f(_,b.ha[0]*i*b.Ba,b.ha[1]*y*b.Ca,b.ha[2]*i*b.Ba,b.ha[3]*y*b.Ca),S.uniform2f(k,b.ha[4]*i*b.Ba+i*(b.Ya-b.ic*b.Ba)-1,b.ha[5]*y*b.Ca+y*(b.Za-b.jc*b.Ca)+1),S.vertexAttribPointer(0,2,S.FLOAT,!1,0,o),S.vertexAttribPointer(1,2,S.FLOAT,!1,0,o+4*n),S.drawElements(S.TRIANGLES,b.indices.length,S.UNSIGNED_SHORT,c),o+=4*b.Ta.length,c+=2*b.indices.length}}catch(t){v.e(t)}finally{v.f()}console.assert(o==4*n),console.assert(c==2*r)}}},this.canvas=function(){return w()&&S.canvas}},V=j.onRuntimeInitialized,Y=(j.onRuntimeInitialized=function(){function _(t){switch(t){case s.srcOver:return"source-over";case s.screen:return"screen";case s.overlay:return"overlay";case s.darken:return"darken";case s.lighten:return"lighten";case s.colorDodge:return"color-dodge";case s.colorBurn:return"color-burn";case s.hardLight:return"hard-light";case s.softLight:return"soft-light";case s.difference:return"difference";case s.exclusion:return"exclusion";case s.multiply:return"multiply";case s.hue:return"hue";case s.saturation:return"saturation";case s.color:return"color";case s.luminosity:return"luminosity"}}function d(t){return"rgba("+((16711680&t)>>>16)+","+((65280&t)>>>8)+","+((255&t)>>>0)+","+((4278190080&t)>>>24)/255+")"}function k(){0<C.length&&(H.Qb(E.drawWidth(),E.drawHeight(),C,T,x),C=[],x=T=0,E.reset(512,512));var t,e=zi(O);try{for(e.s();!(t=e.n()).done;){var i,n=t.value,r=zi(n.J);try{for(r.s();!(i=r.n()).done;)(0,i.value)()}catch(t){r.e(t)}finally{r.f()}n.J=[]}}catch(t){e.e(t)}finally{e.f()}O.clear()}V&&V();var t=j.RenderPaintStyle,e=j.RenderPath,i=j.RenderPaint,n=j.Renderer,r=j.StrokeCap,o=j.StrokeJoin,s=j.BlendMode,f=t.fill,p=t.stroke,a=j.FillRule.evenOdd,l=1,c=j.RenderImage.extend("CanvasRenderImage",{__construct:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.la,t=t.xa;this.__parent.__construct.call(this),l=(this.Ka=l)+1&2147483647||1,this.la=e,this.xa=t},__destruct:function(){this.Ja&&(H.Mb(this.Ja),URL.revokeObjectURL(this.Wa)),this.__parent.__destruct.call(this)},decode:function(t){var e=this,i=(e.xa&&e.xa(e),new Image);e.Wa=URL.createObjectURL(new Blob([t],{type:"image/png"})),i.onload=function(){e.Fb=i,e.Ja=H.Lb(i),e.size(i.width,i.height),e.la&&e.la(e)},i.src=e.Wa}}),u=e.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D}
1,addPath:function(t,e,i,n,r,o,s){var a=this.T,l=a.addPath,c=(t=t.T,new DOMMatrix);c.a=e,c.b=i,c.c=n,c.d=r,c.e=o,c.f=s,l.call(a,t,c)},fillRule:function(t){this.Va=t},moveTo:function(t,e){this.T.moveTo(t,e)},lineTo:function(t,e){this.T.lineTo(t,e)},cubicTo:function(t,e,i,n,r,o){this.T.bezierCurveTo(t,e,i,n,r,o)},close:function(){this.T.closePath()}}),h=i.extend("CanvasRenderPaint",{color:function(t){this.Xa=d(t)},thickness:function(t){this.Ib=t},join:function(t){switch(t){case o.miter:this.Ia="miter";break;case o.round:this.Ia="round";break;case o.bevel:this.Ia="bevel"}},cap:function(t){switch(t){case r.butt:this.Ha="butt";break;case r.round:this.Ha="round";break;case r.square:this.Ha="square"}},style:function(t){this.Hb=t},blendMode:function(t){this.Eb=_(t)},clearGradient:function(){this.ja=null},linearGradient:function(t,e,i,n){this.ja={yb:t,zb:e,bb:i,cb:n,Ra:[]}},radialGradient:function(t,e,i,n){this.ja={yb:t,zb:e,bb:i,cb:n,Ra:[],ec:!0}},addStop:function(t,e){this.ja.Ra.push({color:t,stop:e})},completeGradient:function(){},draw:function(t,e,i){var n=this.Hb,r=this.Xa,o=this.ja;if(t.globalCompositeOperation=this.Eb,null!=o){var r=o.yb,s=o.zb,a=o.bb,l=o.cb,c=o.Ra;r=o.ec?(o=a-r,l-=s,t.createRadialGradient(r,s,0,r,s,Math.sqrt(o*o+l*l))):t.createLinearGradient(r,s,a,l);for(var u=0,h=c.length;u<h;u++)s=c[u],r.addColorStop(s.stop,d(s.color));this.Xa=r,this.ja=null}switch(n){case p:t.strokeStyle=r,t.lineWidth=this.Ib,t.lineCap=this.Ha,t.lineJoin=this.Ia,t.stroke(e);break;case f:t.fillStyle=r,t.fill(e,i)}}}),O=new Set,E=null,C=[],T=0,x=0,m=j.CanvasRenderer=n.extend("Renderer",{__construct:function(t){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=t.getContext("2d"),this.Ua=t,this.J=[]},save:function(){var t;(t=this.S).push.apply(t,Bi(this.S.slice(this.S.length-6))),this.J.push(this.C.save.bind(this.C))},restore:function(){var t=this.S.length-6;if(t<6)throw"restore() called without matching save().";this.S.splice(t),this.J.push(this.C.restore.bind(this.C))},transform:function(t,e,i,n,r,o){var s=this.S,a=s.length-6;s.splice(a,6,s[a]*t+s[2+a]*e,s[1+a]*t+s[3+a]*e,s[a]*i+s[2+a]*n,s[1+a]*i+s[3+a]*n,s[a]*r+s[2+a]*o+s[4+a],s[1+a]*r+s[3+a]*o+s[5+a]),this.J.push(this.C.transform.bind(this.C,t,e,i,n,r,o))},rotate:function(t){var e=Math.sin(t);t=Math.cos(t),this.transform(t,e,-e,t,0,0)},_drawPath:function(t,e){this.J.push(e.draw.bind(e,this.C,t.T,t.Va===a?"evenodd":"nonzero"))},_drawRiveImage:function(t,e,i){var n,r,o=t.Fb;o&&(n=this.C,r=_(e),this.J.push(function(){n.globalCompositeOperation=r,n.globalAlpha=i,n.drawImage(o,0,0),n.globalAlpha=1}))},_getMatrix:function(t){for(var e=this.S,i=e.length-6,n=0;n<6;++n)t[n]=e[i+n]},_drawImageMesh:function(t,e,i,n,r,o,s,a,l,c){var u,h,d,f,p,m,g=this.C.canvas.width,v=this.C.canvas.height,b=l-s,y=c-a,w=(s=Math.max(s,0),a=Math.max(a,0),l=Math.min(l,g),c=Math.min(c,v),l-s),S=c-a;console.assert(w<=Math.min(b,g)),console.assert(S<=Math.min(y,v)),w<=0||S<=0||(l=w<b||S<y,g=c=1,u=Math.ceil(w*c),h=Math.ceil(S*g),(v=H.hc())<u&&(c*=v/u,u=v),v<h&&(g*=v/h,h=v),E||(E=new j.DynamicRectanizer(v)).reset(512,512),(v=E.addRect(u,h))<0&&(k(),O.add(this),v=E.addRect(u,h),console.assert(0<=v)),d=65535&v,f=v>>16,C.push({ha:this.S.slice(this.S.length-6),image:t,Ya:d,Za:f,ic:s,jc:a,Ac:u,jb:h,Ba:c,Ca:g,Ta:new Float32Array(n),Db:new Float32Array(r),indices:new Uint16Array(o),mc:l,wb:t.Ka<<1|(l?1:0)}),T+=n.length,x+=o.length,p=this.C,m=_(e),this.J.push(function(){p.save(),p.resetTransform(),p.globalCompositeOperation=m,p.globalAlpha=i;var t=H.canvas();t&&p.drawImage(t,d,f,u,h,s,a,w,S),p.restore()}))},_clipPath:function(t){this.J.push(this.C.clip.bind(this.C,t.T,t.Va===a?"evenodd":"nonzero"))},clear:function(){O.add(this),this.J.push(this.C.clearRect.bind(this.C,0,0,this.Ua.width,this.Ua.height))},flush:function(){},translate:function(t,e){this.transform(1,0,0,1,t,e)}}),g=(j.makeRenderer=function(t){var o=new m(t),s=o.C;return new Proxy(o,{get:function(n,r){if("function"==typeof n[r])return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n[r].apply(n,e)};if("function"!=typeof s[r])return n[r];if(-1<W.indexOf(r))throw Error("RiveException: Method call to '"+r+"()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");return function(){for(var t,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];o.J.push((t=s[r]).bind.apply(t,[s].concat(i)))}}
1,set:function(t,e,i){if(e in s)return s[e]=i,!0}})},j.decodeImage=function(t,e){new c({la:e}).decode(t)},j.renderFactory={makeRenderPaint:function(){return new h},makeRenderPath:function(){return new u},makeRenderImage:function(){var e=v;return new c({xa:function(){e.total++},la:function(){var t;e.loaded++,e.loaded===e.total&&(t=e.ready)&&(t(),e.ready=null)}})}},j.load),v=null;j.load=function(i,t){var e=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],n=new j.FallbackFileAssetLoader;return void 0!==t&&n.addLoader(t),e&&(t=new j.CDNFileAssetLoader,n.addLoader(t)),new Promise(function(t){var e=null;v={total:0,loaded:0,ready:function(){t(e)}},e=g(i,n),0==v.total&&t(e)})},t=new z,j.requestAnimationFrame=t.requestAnimationFrame.bind(t),j.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),j.enableFPSCounter=t.Rb.bind(t),j.disableFPSCounter=t.Ob,t.ob=k,j.resolveAnimationFrame=k,j.cleanup=function(){E&&E.delete()}},Object.assign({},j)),X="./this.program",G="object"==("undefined"==typeof window?"undefined":Fi(window)),Z="function"==typeof importScripts,t="",K=((G||Z)&&(Z?t=self.location.href:"undefined"!=typeof document&&document.currentScript&&(t=document.currentScript.src),t=0!==(t=Ii?Ii:t).indexOf("blob:")?t.substr(0,t.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Z&&(U=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),F=function(t,e,i){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):i()},n.onerror=i,n.send(null)}),j.print||console.log.bind(console)),s=j.printErr||console.error.bind(console);Object.assign(j,Y),j.thisProgram&&(X=j.thisProgram),j.wasmBinary&&(o=j.wasmBinary),j.noExitRuntime;"object"!=("undefined"==typeof WebAssembly?"undefined":Fi(WebAssembly))&&ht("no native wasm support detected");var Q,u,b,m,a,J,g,y,tt,et,it=!1;function nt(){var t=Q.buffer;j.HEAP8=b=new Int8Array(t),j.HEAP16=a=new Int16Array(t),j.HEAP32=g=new Int32Array(t),j.HEAPU8=m=new Uint8Array(t),j.HEAPU16=J=new Uint16Array(t),j.HEAPU32=y=new Uint32Array(t),j.HEAPF32=tt=new Float32Array(t),j.HEAPF64=et=new Float64Array(t)}var rt,ot=[],st=[],at=[];var lt,l=0,ct=null,ut=null;function ht(t){throw j.onAbort&&j.onAbort(t),s(t="Aborted("+t+")"),it=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),M(t),t}function dt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){if(t==lt&&o)return new Uint8Array(o);if(U)return U(t);throw"both async and sync fetching of the wasm failed"}function pt(t,e,i){return(i=>{if(!o&&(G||Z)){if("function"==typeof fetch&&!i.startsWith("file://"))return fetch(i,{credentials:"same-origin"}).then(function(t){if(t.ok)return t.arrayBuffer();throw"failed to load wasm binary file at '"+i+"'"}).catch(function(){return ft(i)});if(F)return new Promise(function(e,t){F(i,function(t){return e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return ft(i)})})(t).then(function(t){return WebAssembly.instantiate(t,e)}).then(function(t){return t}).then(i,function(t){s("failed to asynchronously prepare wasm: "+t),ht(t)})}dt(lt="canvas_advanced.wasm")||(Y=lt,lt=j.locateFile?j.locateFile(Y,t):t+Y);var c,mt,gt={431580:function(t,e,i,n,r){var o;return"undefined"==typeof window||void 0===(window.AudioContext||window.webkitAudioContext)?0:(void 0===window.h&&(window.h={Aa:0},window.h.H={},window.h.H.ya=t,window.h.H.capture=e,window.h.H.La=i,window.h.ga={},window.h.ga.stopped=n,window.h.ga.xb=r,(o=window.h).D=[],o.yc=function(t){for(var e=0;e<o.D.length;++e)if(null==o.D[e])return o.D[e]=t,e;return o.D.push(t),o.D.length-1},o.Cb=function(t){for(o.D[t]=null;0<o.D.length&&null==o.D[o.D.length-1];)o.D.pop()},o.Sc=function(t){for(var e=0;e<o.D.length;++e)if(o.D[e]==t)return o.Cb(e)},o.ra=function(t){return o.D[t]},o.Bb=["touchend","click"],o.unlock=function(){for(var t=0;t<o.D.length;++t){var e=o.D[t];null!=e&&null!=e.I&&e.state===o.ga.xb&&e.I.resume().then(function(){Ci(e.pb)},function(t){console.error("Failed to resume audiocontext",t)})}o.Bb.map(function(t){document.removeEventListener(t,o.unlock,!0)})},o.Bb.map(function(t){document.addEventListener(t,o.unlock,!0)})),window.h.Aa+=1,1)},433758:function(){void 0!==window.h&&(--window.h.Aa,0===window.h.Aa)&&delete window.h},433922:function(){return void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia},434026:function(){try{var t=new(window.AudioContext||window.webkitAudioContext),e=t.sampleRate;return t.close(),e}catch(t){return 0}},434197:function(o,s,t,a,l,c){var u,e;return void 0===window.h?-1:(u={},e={},o==window.h.H.ya&&0!=t&&(e.sampleRate=t),u.I=new(window.AudioContext||window.webkitAudioContext)(e),u.I.suspend(),u.state=window.h.ga.stopped,t=0,o!=window.h.H.ya&&(t=s),u.Z=u.I.createScriptProcessor(a,t,s),u.Z.onaudioprocess=function(t){if(null!=u.sa&&0!=u.sa.length||(u.sa=new Float32Array(tt.buffer,l,a*s)),o==window.h.H.capture||o==window.h.H.La){for(var e=0;e<s;e+=1)for(var i=t.inputBuffer.getChannelData(e),n=u.sa,r=0;r<a;r+=1)n[r*s+e]=i[r];Ti(c,a,l)}if(o==window.h.H.ya||o==window.h.H.La)for(xi(c,a,l),e=0;e<t.outputBuffer.numberOfChannels;++e)for(i=t.outputBuffer.getChannelData(e),n=u.sa,r=0;r<a;r+=1)i[r]=n[r*s+e];else for(e=0;e<t.outputBuffer.numberOfChannels;++e)t.outputBuffer.getChannelData(e).fill(0)},o!=window.h.H.capture&&o!=window.h.H.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(t){u.Da=u.I.createMediaStreamSource(t),u.Da.connect(u.Z),u.Z.connect(u.I.destination)}).catch(function(t){console.log("Failed to get user media: "+t)}),o==window.h.H.ya&&u.Z.connect(u.I.destination),u.pb=c,window.h.yc(u))},437074:function(t){return window.h.ra(t).I.sampleRate},437147:function(t){void 0!==(t=window.h.ra(t)).Z&&(t.Z.onaudioprocess=function(){},t.Z.disconnect(),t.Z=void 0),void 0!==t.Da&&(t.Da.disconnect(),t.Da=void 0),t.I.close(),t.I=void 0,t.pb=void 0},437547:function(t){window.h.Cb(t)},437597:function(t){(t=window.h.ra(t)).I.resume(),t.state=window.h.ga.xb},437736:function(t){(t=window.h.ra(t)).I.suspend(),t.state=window.h.ga.stopped}},vt=function(t){for(;0<t.length;)t.shift()(j)},bt=function(t,e){for(var i=0,n=t.length-1;0<=n;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(e)for(;i;i--)t.unshift("..");return t},yt=function(t){var e="/"===t.charAt(0),i="/"===t.substr(-1);return(t=(t=bt(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e?t:".")&&i&&(t+="/"),(e?"/":"")+t},wt=function(t){var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return t=e[0],e=e[1],t||e?t+(e=e&&e.substr(0,e.length-1)):"."},St=function(t){var e;return"/"===t?"/":-1===(e=(t=(t=yt(t)).replace(/\/$/,"")).lastIndexOf("/"))?t:t.substr(e+1)},_t=function(){if("object"==("undefined"==typeof crypto?"undefined":Fi(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};ht("initRandomDevice")},kt=function(t){return(kt=_t())(t)};function Ot(){for(var t="",e=!1,i=arguments.length-1;-1<=i&&!e;i--){if("string"!=typeof(e=0<=i?arguments[i]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!e)return"";t=e+"/"+t,e="/"===e.charAt(0)}return(e?"/":"")+(t=bt(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."}function v(t,e,i){var n=e+i;for(i=e;
1t[i]&&!(n<=i);)++i;if(16<i-e&&t.buffer&&Tt)return Tt.decode(t.subarray(e,i));for(n="";e<i;){var r,o,s=t[e++];128&s?(r=63&t[e++],192==(224&s)?n+=String.fromCharCode((31&s)<<6|r):(o=63&t[e++],(s=224==(240&s)?(15&s)<<12|r<<6|o:(7&s)<<18|r<<12|o<<6|63&t[e++])<65536?n+=String.fromCharCode(s):(s-=65536,n+=String.fromCharCode(55296|s>>10,56320|1023&s)))):n+=String.fromCharCode(s)}return n}function Et(t){for(var e=0,i=0;i<t.length;++i){var n=t.charCodeAt(i);n<=127?e++:n<=2047?e+=2:55296<=n&&n<=57343?(e+=4,++i):e+=3}return e}function Ct(t,e,i,n){if(!(0<n))return 0;var r=i;n=i+n-1;for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);if((s=55296<=s&&s<=57343?65536+((1023&s)<<10)|1023&t.charCodeAt(++o):s)<=127){if(n<=i)break;e[i++]=s}else{if(s<=2047){if(n<=i+1)break;e[i++]=192|s>>6}else{if(s<=65535){if(n<=i+2)break;e[i++]=224|s>>12}else{if(n<=i+3)break;e[i++]=240|s>>18,e[i++]=128|s>>12&63}e[i++]=128|s>>6&63}e[i++]=128|63&s}}return e[i]=0,i-r}var Tt="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,xt=[];function jt(t,e){var i=Array(Et(t)+1);return t=Ct(t,i,0,i.length),e&&(i.length=t),i}var At=[];function Pt(t,e){At[t]={input:[],F:[],V:e},Lt(t,It)}var It={open:function(t){var e=At[t.node.za];if(!e)throw new S(43);t.s=e,t.seekable=!1},close:function(t){t.s.V.qa(t.s)},qa:function(t){t.s.V.qa(t.s)},read:function(t,e,i,n){if(!t.s||!t.s.V.ib)throw new S(60);for(var r=0,o=0;o<n;o++){try{var s=t.s.V.ib(t.s)}catch(t){throw new S(29)}if(void 0===s&&0===r)throw new S(6);if(null==s)break;r++,e[i+o]=s}return r&&(t.node.timestamp=Date.now()),r},write:function(t,e,i,n){if(!t.s||!t.s.V.Oa)throw new S(60);try{for(var r=0;r<n;r++)t.s.V.Oa(t.s,e[i+r])}catch(t){throw new S(29)}return n&&(t.node.timestamp=Date.now()),r}},t={ib:function(){t:{if(!xt.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t){t=null;break t}xt=jt(t,!0)}t=xt.shift()}return t},Oa:function(t,e){null===e||10===e?(K(v(t.F,0)),t.F=[]):0!=e&&t.F.push(e)},qa:function(t){t.F&&0<t.F.length&&(K(v(t.F,0)),t.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},cc:function(){return 0},dc:function(){return[24,80]}},Y={Oa:function(t,e){null===e||10===e?(s(v(t.F,0)),t.F=[]):0!=e&&t.F.push(e)},qa:function(t){t.F&&0<t.F.length&&(s(v(t.F,0)),t.F=[])}};function $t(t,e){var i=t.j?t.j.length:0;e<=i||(e=Math.max(e,i*(i<1048576?2:1.125)>>>0),0!=i&&(e=Math.max(e,256)),i=t.j,t.j=new Uint8Array(e),0<t.v&&t.j.set(i.subarray(0,t.v),0))}var r={O:null,U:function(){return r.createNode(null,"/",16895,0)},createNode:function(t,e,i,n){if(24576==(61440&i)||4096==(61440&i))throw new S(63);return r.O||(r.O={dir:{node:{Y:r.l.Y,P:r.l.P,ka:r.l.ka,va:r.l.va,ub:r.l.ub,Ab:r.l.Ab,vb:r.l.vb,sb:r.l.sb,Ea:r.l.Ea},stream:{ba:r.m.ba}},file:{node:{Y:r.l.Y,P:r.l.P},stream:{ba:r.m.ba,read:r.m.read,write:r.m.write,pa:r.m.pa,lb:r.m.lb,nb:r.m.nb}},link:{node:{Y:r.l.Y,P:r.l.P,ma:r.l.ma},stream:{}},$a:{node:{Y:r.l.Y,P:r.l.P},stream:ne}}),16384==(61440&(i=te(t,e,i,n)).mode)?(i.l=r.O.dir.node,i.m=r.O.dir.stream,i.j={}):32768==(61440&i.mode)?(i.l=r.O.file.node,i.m=r.O.file.stream,i.v=0,i.j=null):40960==(61440&i.mode)?(i.l=r.O.link.node,i.m=r.O.link.stream):8192==(61440&i.mode)&&(i.l=r.O.$a.node,i.m=r.O.$a.stream),i.timestamp=Date.now(),t&&(t.j[e]=i,t.timestamp=i.timestamp),i},Kc:function(t){return t.j?t.j.subarray?t.j.subarray(0,t.v):new Uint8Array(t.j):new Uint8Array(0)},l:{Y:function(t){var e={};return e.Jc=8192==(61440&t.mode)?t.id:1,e.Mc=t.id,e.mode=t.mode,e.Oc=1,e.uid=0,e.Lc=0,e.za=t.za,16384==(61440&t.mode)?e.size=4096:32768==(61440&t.mode)?e.size=t.v:40960==(61440&t.mode)?e.size=t.link.length:e.size=0,e.Bc=new Date(t.timestamp),e.Nc=new Date(t.timestamp),e.Ic=new Date(t.timestamp),e.Jb=4096,e.Cc=Math.ceil(e.size/e.Jb),e},P:function(t,e){var i;void 0!==e.mode&&(t.mode=e.mode),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.size&&(e=e.size,t.v!=e)&&(0==e?(t.j=null,t.v=0):(i=t.j,t.j=new Uint8Array(e),i&&t.j.set(i.subarray(0,Math.min(e,t.v))),t.v=e))},ka:function(){throw Kt[44]}
1,va:function(t,e,i,n){return r.createNode(t,e,i,n)},ub:function(t,e,i){if(16384==(61440&t.mode)){try{var n=Jt(e,i)}catch(t){}if(n)for(var r in n.j)throw new S(55)}delete t.parent.j[t.name],t.parent.timestamp=Date.now(),t.name=i,e.j[i]=t,e.timestamp=t.parent.timestamp,t.parent=e},Ab:function(t,e){delete t.j[e],t.timestamp=Date.now()},vb:function(t,e){for(var i in Jt(t,e).j)throw new S(55);delete t.j[e],t.timestamp=Date.now()},sb:function(t){var e,i=[".",".."];for(e in t.j)t.j.hasOwnProperty(e)&&i.push(e);return i},Ea:function(t,e,i){return(t=r.createNode(t,e,41471,0)).link=i,t},ma:function(t){if(40960!=(61440&t.mode))throw new S(28);return t.link}},m:{read:function(t,e,i,n,r){var o=t.node.j;if(r>=t.node.v)return 0;if(8<(t=Math.min(t.node.v-r,n))&&o.subarray)e.set(o.subarray(r,r+t),i);else for(n=0;n<t;n++)e[i+n]=o[r+n];return t},write:function(t,e,i,n,r,o){if(e.buffer===b.buffer&&(o=!1),!n)return 0;if((t=t.node).timestamp=Date.now(),e.subarray&&(!t.j||t.j.subarray)){if(o)return t.j=e.subarray(i,i+n),t.v=n;if(0===t.v&&0===r)return t.j=e.slice(i,i+n),t.v=n;if(r+n<=t.v)return t.j.set(e.subarray(i,i+n),r),n}if($t(t,r+n),t.j.subarray&&e.subarray)t.j.set(e.subarray(i,i+n),r);else for(o=0;o<n;o++)t.j[r+o]=e[i+o];return t.v=Math.max(t.v,r+n),n},ba:function(t,e,i){if(1===i?e+=t.position:2===i&&32768==(61440&t.node.mode)&&(e+=t.node.v),e<0)throw new S(28);return e},pa:function(t,e,i){$t(t.node,e+i),t.node.v=Math.max(t.node.v,e+i)},lb:function(t,e,i,n,r){if(32768!=(61440&t.node.mode))throw new S(43);if(t=t.node.j,2&r||t.buffer!==b.buffer){if((0<i||i+e<t.length)&&(t=t.subarray?t.subarray(i,i+e):Array.prototype.slice.call(t,i,i+e)),i=!0,ht(),!(e=void 0))throw new S(48);b.set(t,e)}else i=!1,e=t.byteOffset;return{o:e,M:i}},nb:function(t,e,i,n){return r.m.write(t,e,0,n,i,!1),0}}};function Rt(t,e){for(var i=0,n=0;n<e.length;n++)i=(i<<5)-i+e.charCodeAt(n)|0;return(t+i>>>0)%Gt.length}function Nt(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e}function w(t){if(t=Yt[t])return t;throw new S(8)}function Dt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1;return qt||((qt=function(){this.h={}}).prototype={},Object.defineProperties(qt.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},flags:{get:function(){return this.h.flags},set:function(t){this.h.flags=t}},position:{get:function(){return this.h.position},set:function(t){this.h.position=t}}})),t=Object.assign(new qt,t),-1==e&&(e=(()=>{for(var t=0;t<=4096;t++)if(!Yt[t])return t;throw new S(33)})()),t.X=e,Yt[e]=t}function Lt(t,e){Vt[t]={m:e}}function Mt(t,e){var i="/"===e,n=!e;if(i&&Ht)throw new S(10);if(!i&&!n){var r=d(e,{gb:!1});if(e=r.path,(r=r.node).wa)throw new S(10);if(16384!=(61440&r.mode))throw new S(54)}((t=t.U(e={type:t,Qc:{},mb:e,kc:[]})).U=e).root=t,i?Ht=t:r&&(r.wa=e,r.U)&&r.U.kc.push(e)}function h(t,e,i){var n=d(t,{parent:!0}).node;if(!(t=St(t))||"."===t||".."===t)throw new S(28);var r=ie(n,t);if(r)throw new S(r);if(n.l.va)return n.l.va(n,t,e,i);throw new S(63)}function zt(t,e,i){void 0===i&&(i=e,e=438),h(t,8192|e,i)}function Bt(t,e,i){if(null===t.X)throw new S(8);if(!t.seekable||!t.m.ba)throw new S(70);if(0!=i&&1!=i&&2!=i)throw new S(28);t.position=t.m.ba(t,e,i),t.zc=[]}var Ft,Ut,qt,Wt,Ht=null,Vt={},Yt=[],Xt=1,Gt=null,Zt=!0,S=null,Kt={},d=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(t=Ot(t)))return{path:"",node:null};if(8<(e=Object.assign({gb:!0,Qa:0},e)).Qa)throw new S(32);t=t.split("/").filter(function(t){return!!t});for(var i=Ht,n="/",r=0;r<t.length;r++){var o=r===t.length-1;if(o&&e.parent)break;if(i=Jt(i,t[r]),n=yt(n+"/"+t[r]),!i.wa||o&&!e.gb||(i=i.wa.root),!o||e.fb)for(o=0;40960==(61440&i.mode);)if(i=oe(n),n=Ot(wt(n),i),i=d(n,{Qa:e.Qa+1}).node,40<o++)throw new S(32)}return{path:n,node:i}},Qt=function(t){for(var e;;){if(t===t.parent)return t=t.U.mb,e?"/"!==t[t.length-1]?"".concat(t,"/").concat(e):t+e:t;e=e?"".concat(t.name,"/").concat(e):t.name,t=t.parent}},Jt=function(t,e){var i;if(i=(i=ee(t,"x"))||(t.l.ka?0:2))throw new S(i,t);for(i=Gt[Rt(t.id,e)];i;i=i.lc){var n=i.name;if(i.parent.id===t.id&&n===e)return i}return t.l.ka(t,e)}
1,te=function(t,e,i,n){return t=new yi(t,e,i,n),e=Rt(t.parent.id,t.name),t.lc=Gt[e],Gt[e]=t},ee=function(t,e){return!Zt&&(e.includes("r")&&!(292&t.mode)||e.includes("w")&&!(146&t.mode)||e.includes("x")&&!(73&t.mode))?2:0},ie=function(t,e){try{return Jt(t,e),20}catch(t){}return ee(t,"wx")},ne={open:function(t){t.m=Vt[t.node.za].m,t.m.open&&t.m.open(t)},ba:function(){throw new S(70)}},re=function(t,e){if(!Ot(t))throw new S(44);var i=d(e,{parent:!0}).node;if(!i)throw new S(44);e=St(e);var n=ie(i,e);if(n)throw new S(n);if(!i.l.Ea)throw new S(63);i.l.Ea(i,e,t)},oe=function(t){if(!(t=d(t).node))throw new S(44);if(t.l.ma)return Ot(Qt(t.parent),t.l.ma(t));throw new S(28)},se=function(t,e,i){if(""===t)throw new S(44);if("string"==typeof e){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===n)throw Error("Unknown file open mode: ".concat(e));e=n}if(i=64&e?4095&(void 0===i?438:i)|32768:0,"object"==Fi(t))var r=t;else{t=yt(t);try{r=d(t,{fb:!(131072&e)}).node}catch(t){}}if(n=!1,64&e)if(r){if(128&e)throw new S(20)}else r=h(t,i,0),n=!0;if(!r)throw new S(44);if(8192==(61440&r.mode)&&(e&=-513),65536&e&&16384!=(61440&r.mode))throw new S(54);if(!n&&(i=r?40960==(61440&r.mode)?32:16384==(61440&r.mode)&&("r"!==Nt(e)||512&e)?31:ee(r,Nt(e)):44))throw new S(i);if(512&e&&!n){if(!(i="string"==typeof(i=r)?d(i,{fb:!0}).node:i).l.P)throw new S(63);if(16384==(61440&i.mode))throw new S(31);if(32768!=(61440&i.mode))throw new S(28);if(n=ee(i,"w"))throw new S(n);i.l.P(i,{size:0,timestamp:Date.now()})}return e&=-131713,(r=Dt({node:r,path:Qt(r),flags:e,seekable:!0,position:0,m:r.m,zc:[],error:!1})).m.open&&r.m.open(r),!j.logReadFiles||1&e||t in(Wt=Wt||{})||(Wt[t]=1),r},ae=function(){S||((S=function(t,e){this.name="ErrnoError",this.node=e,this.pc=function(t){this.aa=t},this.pc(t),this.message="FS error"}).prototype=Error(),S.prototype.constructor=S,[44].forEach(function(t){Kt[t]=new S(t),Kt[t].stack="<generic error, no stack>"}))},le=function(t,a,o){t=yt("/dev/"+t);e=0,a&&(e|=365),!o||(e|=146);Ut=Ut||64;var e,i=Ut++<<8|0;Lt(i,{open:function(t){t.seekable=!1},close:function(){o&&o.buffer&&o.buffer.length&&o(10)},read:function(t,e,i,n){for(var r=0,o=0;o<n;o++){try{var s=a()}catch(t){throw new S(29)}if(void 0===s&&0===r)throw new S(6);if(null==s)break;r++,e[i+o]=s}return r&&(t.node.timestamp=Date.now()),r},write:function(t,e,i,n){for(var r=0;r<n;r++)try{o(e[i+r])}catch(t){throw new S(29)}return n&&(t.node.timestamp=Date.now()),r}}),zt(t,e,i)},_={},ce=void 0;function f(){return g[(ce+=4)-4>>2]}function ue(t){var e;return void 0===t?"_unknown":48<=(e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0))&&e<=57?"_".concat(t):t}function he(t,e){return t=ue(t),i={},r=function(){return e.apply(this,arguments)},(n=Mi(n=t))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i[t];var i,n,r}function de(){this.M=[void 0],this.hb=[]}var i=new de,p=void 0;function k(t){throw new p(t)}function O(t){return t||k("Cannot use deleted val. handle = "+t),i.get(t).value}var E=function(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return i.pa({tb:1,value:t})}};function fe(e){var t=Error,i=he(e,function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),(i.prototype.constructor=i).prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},i}var pe=void 0,me=void 0;function C(t){for(var e="";m[t];)e+=me[m[t++]];return e}var ge=[];function ve(){for(;ge.length;){var t=ge.pop();t.g.fa=!1,t.delete()}}var be=void 0,T={};function ye(t,e){for(void 0===e&&k("ptr should not be undefined");t.A;)e=t.na(e),t=t.A;return e}var x={};function we(t){var e=C(t=Ai(t));return L(t),e}function Se(t,e){var i=x[t];return void 0===i&&k(e+" has unknown type "+we(t)),i}function _e(){}var ke=!1;function Oe(t){--t.count.value,0===t.count.value&&(t.G?t.L.W(t.G):t.u.i.W(t.o))}var Ee={};var Ce=void 0;function Te(t){throw new Ce(t)}function xe(t,e){return e.u&&e.o||Te("makeClassHandle requires ptr and ptrType"),!!e.L!=!!e.G&&Te("Both smartPtrType and smartPtr must be specified"),e.count={value:1},je(Object.create(t,{g:{value:e}}))}function je(t){return"undefined"==typeof FinalizationRegistry?(je=function(t){return t},t):(ke=new FinalizationRegistry(function(t){Oe(t.g)}),_e=function(t){ke.unregister(t)},(je=function(t){var e=t.g;return e.G&&ke.register(t,{g:e},t),t})(t))}var Ae={};function Pe(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function Ie(t){return this.fromWireType(g[t>>2])}var A={},$e={};function P(i,e,n){function r(t){(t=n(t)).length!==i.length&&Te("Mismatched type converter count");for(var e=0;e<i.length;++e)I(i[e],t[e])}i.forEach(function(t){$e[t]=e});var o=Array(e.length),s=[],a=0;e.forEach(function(t,e){x.hasOwnProperty(t)?o[e]=x[t]:(s.push(t),A.hasOwnProperty(t)||(A[t]=[]),A[t].push(function(){o[e]=x[t],++a===s.length&&r(o)}))}),0===s.length&&r(o)}function Re(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: ".concat(t))}}function I(t,e,i){i=2<arguments.length&&void 0!==i?i:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");
1!function(t,e,i){var i=2<arguments.length&&void 0!==i?i:{},n=e.name;if(t||k('type "'.concat(n,'" must have a positive integer typeid pointer')),x.hasOwnProperty(t)){if(i.$b)return;k("Cannot register type '".concat(n,"' twice"))}x[t]=e,delete $e[t],A.hasOwnProperty(t)&&(e=A[t],delete A[t],e.forEach(function(t){return t()}))}(t,e,i)}function Ne(t){k(t.g.u.i.name+" instance already deleted")}function $(){}function De(t,e,i){var n;void 0===t[e].B&&(n=t[e],t[e]=function(){return t[e].B.hasOwnProperty(arguments.length)||k("Function '".concat(i,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(t[e].B,")!")),t[e].B[arguments.length].apply(this,arguments)},t[e].B=[],t[e].B[n.ea]=n)}function Le(t,e,i){j.hasOwnProperty(t)?((void 0===i||void 0!==j[t].B&&void 0!==j[t].B[i])&&k("Cannot register public name '".concat(t,"' twice")),De(j,t,t),j.hasOwnProperty(i)&&k("Cannot register multiple overloads of a function with the same number of arguments (".concat(i,")!")),j[t].B[i]=e):(j[t]=e,void 0!==i&&(j[t].Pc=i))}function Me(t,e,i,n,r,o,s,a){this.name=t,this.constructor=e,this.N=i,this.W=n,this.A=r,this.Ub=o,this.na=s,this.Pb=a,this.qb=[]}function ze(t,e,i){for(;e!==i;)e.na||k("Expected null or instance of ".concat(i.name,", got an instance of ").concat(e.name)),t=e.na(t),e=e.A;return t}function Be(t,e){return null===e?(this.Na&&k("null is not a valid ".concat(this.name)),0):(e.g||k('Cannot pass "'.concat(Ke(e),'" as a ').concat(this.name)),e.g.o||k("Cannot pass deleted object as a pointer of type ".concat(this.name)),ze(e.g.o,e.g.u.i,this.i))}function Fe(t,e){var i,n;if(null===e)return this.Na&&k("null is not a valid ".concat(this.name)),this.ua?(n=this.Pa(),null!==t&&t.push(this.W,n),n):0;if(e.g||k('Cannot pass "'.concat(Ke(e),'" as a ').concat(this.name)),e.g.o||k("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.ta&&e.g.u.ta&&k("Cannot convert argument of type ".concat((e.g.L||e.g.u).name," to parameter type ").concat(this.name)),n=ze(e.g.o,e.g.u.i,this.i),this.ua)switch(void 0===e.g.G&&k("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:e.g.L===this?n=e.g.G:k("Cannot convert argument of type ".concat((e.g.L||e.g.u).name," to parameter type ").concat(this.name));break;case 1:n=e.g.G;break;case 2:e.g.L===this?n=e.g.G:(i=e.clone(),n=this.oc(n,E(function(){i.delete()})),null!==t&&t.push(this.W,n));break;default:k("Unsupporting sharing policy")}return n}function Ue(t,e){return null===e?(this.Na&&k("null is not a valid ".concat(this.name)),0):(e.g||k('Cannot pass "'.concat(Ke(e),'" as a ').concat(this.name)),e.g.o||k("Cannot pass deleted object as a pointer of type ".concat(this.name)),e.g.u.ta&&k("Cannot convert argument of type ".concat(e.g.u.name," to parameter type ").concat(this.name)),ze(e.g.o,e.g.u.i,this.i))}function R(t,e,i,n){this.name=t,this.i=e,this.Na=i,this.ta=n,this.ua=!1,(this.W=this.oc=this.Pa=this.rb=this.tc=this.nc=void 0)!==e.A?this.toWireType=Fe:(this.toWireType=n?Be:Ue,this.K=null)}function qe(t,e,i){j.hasOwnProperty(t)||Te("Replacing nonexistant public symbol"),void 0!==j[t].B&&void 0!==i?j[t].B[i]=e:(j[t]=e,j[t].ea=i)}var We=[],He=function(t){var e=We[t];return e||(t>=We.length&&(We.length=t+1),We[t]=e=rt.get(t)),e};function N(t,e){var i,n,r,o=(t=C(t)).includes("j")?(i=t,n=e,r=[],function(){var t;return r.length=0,Object.assign(r,arguments),t=i.includes("j")?(t=j["dynCall_"+i],r&&r.length?t.apply(null,[n].concat(r)):t.call(null,n)):He(n).apply(null,r)}):He(e);return"function"!=typeof o&&k("unknown function pointer with signature ".concat(t,": ").concat(e)),o}var Ve=void 0;function D(t,e){var i=[],n={};throw e.forEach(function t(e){n[e]||x[e]||($e[e]?$e[e].forEach(t):(i.push(e),n[e]=!0))}),new Ve("".concat(t,": ")+i.map(we).join([", "]))}function Ye(r,o,t,s,a){var e=o.length,l=(e<2&&k("argTypes array size mismatch! Must at least get return value and 'this' types!"),null!==o[1]&&null!==t),c=!1;for(t=1;t<o.length;++t)if(null!==o[t]&&void 0===o[t].K){c=!0;break}var u="void"!==o[0].name,h=e-2,d=Array(h),f=[],p=[];return function(){var t;arguments.length!==h&&k("function ".concat(r," called with ").concat(arguments.length," arguments, expected ").concat(h," args!")),p.length=0,f.length=l?2:1,f[0]=a,l&&(t=o[1].toWireType(p,this),f[1]=t);for(var e=0;e<h;++e)d[e]=o[e+2].toWireType(p,arguments[e]),f.push(d[e]);if(e=s.apply(null,f),c)Pe(p);else for(var i=l?1:2;i<o.length;i++){var n=1===i?t:d[i-2];null!==o[i].K&&o[i].K(n)}return t=u?o[0].fromWireType(e):void 0}}function Xe(t,e){for(var i=[],n=0;n<t;n++)i.push(y[e+4*n>>2]);return i}function Ge(t,e,i){return t instanceof Object||k("".concat(i,' with invali
1d "this": ').concat(t)),t instanceof e.i.constructor||k("".concat(i,' incompatible with "this" of type ').concat(t.constructor.name)),t.g.o||k("cannot call emscripten binding method ".concat(i," on deleted object")),ze(t.g.o,t.g.u.i,e.i)}function Ze(t){t>=i.h&&0==--i.get(t).tb&&i.Zb(t)}function Ke(t){var e;return null===t?"null":"object"===(e=Fi(t))||"array"===e||"function"===e?t.toString():""+t}function Qe(t,e){for(var i=t>>1,n=i+e/2;!(n<=i)&&J[i];)++i;if(32<(i<<=1)-t&&ri)return ri.decode(m.subarray(t,i));for(i="",n=0;!(e/2<=n);++n){var r=a[t+2*n>>1];if(0==r)break;i+=String.fromCharCode(r)}return i}function Je(t,e,i){if((i=void 0===i?2147483647:i)<2)return 0;var n=e;i=(i-=2)<2*t.length?i/2:t.length;for(var r=0;r<i;++r)a[e>>1]=t.charCodeAt(r),e+=2;return a[e>>1]=0,e-n}function ti(t){return 2*t.length}function ei(t,e){for(var i=0,n="";!(e/4<=i);){var r=g[t+4*i>>2];if(0==r)break;++i,65536<=r?(r-=65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r)):n+=String.fromCharCode(r)}return n}function ii(t,e,i){if((i=void 0===i?2147483647:i)<4)return 0;var n=e;i=n+i-4;for(var r=0;r<t.length;++r){var o=t.charCodeAt(r);if(55296<=o&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++r)),g[e>>2]=o,i<(e+=4)+4)break}return g[e>>2]=0,e-n}function ni(t){for(var e=0,i=0;i<t.length;++i){var n=t.charCodeAt(i);55296<=n&&n<=57343&&++i,e+=4}return e}var ri="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,oi={};function si(t){var e=oi[t];return void 0===e?C(t):e}var ai=[];function li(){if(!ui){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":Fi(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:X||"./this.program"};for(t in gi)void 0===gi[t]?delete e[t]:e[t]=gi[t];var i=[];for(t in e)i.push("".concat(t,"=").concat(e[t]));ui=i}return ui}function ci(t){return 0==t%4&&(0!=t%100||0==t%400)}var ui,hi,di,fi,pi=[],mi=[],gi={},vi=[31,29,31,30,31,30,31,31,30,31,30,31],bi=[31,28,31,30,31,30,31,31,30,31,30,31];function yi(t,e,i,n){this.parent=t=t||this,this.U=t.U,this.wa=null,this.id=Xt++,this.name=e,this.mode=i,this.l={},this.m={},this.za=n}function wi(){return 0===di&&(di=kt(hi).byteLength),hi[--di]}Object.defineProperties(yi.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}}}),ae(),Gt=Array(4096),Mt(r,"/"),h("/tmp",16895,0),h("/home",16895,0),h("/home/web_user",16895,0),h("/dev",16895,0),Lt(259,{read:function(){return 0},write:function(t,e,i,n){return n}}),zt("/dev/null",259),Pt(1280,t),Pt(1536,Y),zt("/dev/tty",1280),zt("/dev/tty1",1536),hi=new Uint8Array(1024),di=0,le("random",wi),le("urandom",wi),h("/dev/shm",16895,0),h("/dev/shm/tmp",16895,0),h("/proc",16895,0),fi=h("/proc/self",16895,0),h("/proc/self/fd",16895,0),Mt({U:function(){var t=te(fi,"fd",16895,73);return t.l={ka:function(t,e){var i=w(+e);return(t={parent:null,U:{mb:"fake"},l:{ma:function(){return i.path}}}).parent=t}},t}},"/proc/self/fd"),Object.assign(de.prototype,{get:function(t){return this.M[t]},has:function(t){return void 0!==this.M[t]},pa:function(t){var e=this.hb.pop()||this.M.length;return this.M[e]=t,e},Zb:function(t){this.M[t]=void 0,this.hb.push(t)}}),p=j.BindingError=(()=>{function e(t){return Ri(this,e),(t=Ni(this,e,[t])).name="BindingError",t}return Di(e,Li(Error)),$i(e)})(),i.M.push({value:void 0},{value:null},{value:!0},{value:!1}),i.h=i.M.length,j.count_emval_handles=function(){for(var t=0,e=i.h;e<i.M.length;++e)void 0!==i.M[e]&&++t;return t};
1for(var pe=j.PureVirtualError=fe("PureVirtualError"),Si=Array(256),_i=0;_i<256;++_i)Si[_i]=String.fromCharCode(_i);me=Si,j.getInheritedInstanceCount=function(){return Object.keys(T).length},j.getLiveInheritedInstances=function(){var t,e=[];for(t in T)T.hasOwnProperty(t)&&e.push(T[t]);return e},j.flushPendingDeletes=ve,j.setDelayFunction=function(t){be=t,ge.length&&be&&be(ve)},Ce=j.InternalError=(()=>{function e(t){return Ri(this,e),(t=Ni(this,e,[t])).name="InternalError",t}return Di(e,Li(Error)),$i(e)})(),$.prototype.isAliasOf=function(t){if(!(this instanceof $&&t instanceof $))return!1;var e=this.g.u.i,i=this.g.o,n=t.g.u.i;for(t=t.g.o;e.A;)i=e.na(i),e=e.A;for(;n.A;)t=n.na(t),n=n.A;return e===n&&i===t},$.prototype.clone=function(){var t,e,i,n,r;return this.g.o||Ne(this),this.g.ia?(this.g.count.value+=1,this):(r=je,e=(t=Object).create,i=Object.getPrototypeOf(this),n=this.g,(r=r(e.call(t,i,{g:{value:{count:n.count,fa:n.fa,ia:n.ia,o:n.o,u:n.u,G:n.G,L:n.L}}}))).g.count.value+=1,r.g.fa=!1,r)},$.prototype.delete=function(){this.g.o||Ne(this),this.g.fa&&!this.g.ia&&k("Object already scheduled for deletion"),_e(this),Oe(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},$.prototype.isDeleted=function(){return!this.g.o},$.prototype.deleteLater=function(){return this.g.o||Ne(this),this.g.fa&&!this.g.ia&&k("Object already scheduled for deletion"),ge.push(this),1===ge.length&&be&&be(ve),this.g.fa=!0,this},R.prototype.Vb=function(t){return t=this.rb?this.rb(t):t},R.prototype.ab=function(t){this.W&&this.W(t)},R.prototype.argPackAdvance=8,R.prototype.readValueFromPointer=Ie,R.prototype.deleteObject=function(t){null!==t&&t.delete()},R.prototype.fromWireType=function(t){function e(){return this.ua?xe(this.i.N,{u:this.nc,o:r,L:this,G:t}):xe(this.i.N,{u:this,o:t})}var i,n,r=this.Vb(t);return r?(i=this.i,i=ye(i,i=r),void 0!==(i=T[i])?0===i.g.count.value?(i.g.o=r,i.g.G=t,i.clone()):(i=i.clone(),this.ab(t),i):(i=this.i.Ub(r),!(i=Ee[i])||(i=this.ta?i.Kb:i.pointerType,null===(n=function t(e,i,n){return i===n?e:void 0===n.A||null===(e=t(e,i,n.A))?null:n.Pb(e)}(r,this.i,i.i)))?e.call(this):this.ua?xe(i.i.N,{u:i,o:n,L:this,G:t}):xe(i.i.N,{u:i,o:n}))):(this.ab(t),null)};var ki,Ve=j.UnboundTypeError=fe("UnboundTypeError"),Oi={__syscall_fcntl64:function(t,e,i){ce=i;try{var n=w(t);switch(e){case 0:var r=f();return r<0?-28:Dt(n,r).X;case 1:case 2:return 0;case 3:return n.flags;case 4:return r=f(),n.flags|=r,0;case 5:return r=f(),a[r+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return g[ji()>>2]=28,-1;default:return-28}}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return-t.aa}},__syscall_ioctl:function(t,e,i){ce=i;try{var n=w(t);switch(e){case 21509:return n.s?0:-59;case 21505:if(!n.s)return-59;if(n.s.V.bc){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var r=f();g[r>>2]=25856,g[r+4>>2]=5,g[r+8>>2]=191,g[r+12>>2]=35387;for(var o=0;o<32;o++)b[r+o+17>>0]=e[o]||0}return 0;case 21510:case 21511:case 21512:return n.s?0:-59;case 21506:case 21507:case 21508:if(!n.s)return-59;if(n.s.V.cc)for(r=f(),e=[],o=0;o<32;o++)e.push(b[r+o+17>>0]);return 0;case 21519:return n.s?(r=f(),g[r>>2]=0):-59;case 21520:return n.s?-28:-59;case 21531:if(r=f(),n.m.ac)return n.m.ac(n,e,r);throw new S(59);case 21523:return n.s?(n.s.V.dc&&(o=[24,80],r=f(),a[r>>1]=o[0],a[r+2>>1]=o[1]),0):-59;case 21524:case 21515:return n.s?0:-59;default:return-28}}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return-t.aa}}
1,__syscall_openat:function(t,e,i,n){ce=n;try{var r=e=e?v(m,e):"";if("/"===r.charAt(0))e=r;else{var o=-100===t?"/":w(t).path;if(0==r.length)throw new S(44);e=yt(o+"/"+r)}var s=n?f():0;return se(e,i,s).X}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return-t.aa}},_embind_create_inheriting_constructor:function(t,e,i){t=C(t),e=Se(e,"wrapper"),i=O(i);var n,r=[].slice,o=e.i,s=o.N,a=o.A.N,l=o.A.constructor;for(n in t=he(t,function(){o.A.qb.forEach(function(t){if(this[t]===a[t])throw new pe("Pure virtual function ".concat(t," must be implemented in JavaScript"))}.bind(this)),Object.defineProperty(this,"__parent",{value:s}),this.__construct.apply(this,r.call(arguments))}),s.__construct=function(){this===s&&k("Pass correct 'this' to __construct");var t=l.implement.apply(void 0,[this].concat(r.call(arguments))),e=(_e(t),t.g);t.notifyOnDestruction(),e.ia=!0,Object.defineProperties(this,{g:{value:e}}),je(this),t=e.o,t=ye(o,t),T.hasOwnProperty(t)?k("Tried to register registered instance: ".concat(t)):T[t]=this},s.__destruct=function(){this===s&&k("Pass correct 'this' to __destruct"),_e(this);var t=this.g.o,t=ye(o,t);T.hasOwnProperty(t)?delete T[t]:k("Tried to unregister unregistered instance: ".concat(t))},t.prototype=Object.create(s),i)t.prototype[n]=i[n];return E(t)},_embind_finalize_value_object:function(t){var e=Ae[t],r=(delete Ae[t],e.Pa),o=e.W,u=e.eb;P([t],u.map(function(t){return t.Yb}).concat(u.map(function(t){return t.rc})),function(l){var c={};return u.forEach(function(t,e){var i=l[e],n=t.Wb,r=t.Xb,o=l[e+u.length],s=t.qc,a=t.sc;c[t.Sb]={read:function(t){return i.fromWireType(n(r,t))},write:function(t,e){var i=[];s(a,t,o.toWireType(i,e)),Pe(i)}}}),[{name:e.name,fromWireType:function(t){var e,i={};for(e in c)i[e]=c[e].read(t);return o(t),i},toWireType:function(t,e){for(var i in c)if(!(i in e))throw new TypeError('Missing field: "'.concat(i,'"'));var n=r();for(i in c)c[i].write(n,e[i]);return null!==t&&t.push(o,n),n},argPackAdvance:8,readValueFromPointer:Ie,K:o}]})},_embind_register_bigint:function(){},_embind_register_bool:function(t,i,n,r,o){var s=Re(n);I(t,{name:i=C(i),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:o},argPackAdvance:8,readValueFromPointer:function(t){if(1===n)var e=b;else if(2===n)e=a;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+i);e=g}return this.fromWireType(e[t>>s])},K:null})},_embind_register_class:function(s,t,e,a,i,l,n,c,r,u,h,o,d){h=C(h),l=N(i,l),c=c&&N(n,c),u=u&&N(r,u),d=N(o,d);var f=ue(h);Le(f,function(){D("Cannot construct ".concat(h," due to unbound types"),[a])}),P([s,t,e],a?[a]:[],function(t){t=t[0],i=a?(e=t.i).N:$.prototype,t=he(f,function(){if(Object.getPrototypeOf(this)!==n)throw new p("Use 'new' to construct "+h);if(void 0===r.$)throw new p(h+" has no accessible constructor");var t=r.$[arguments.length];if(void 0===t)throw new p("Tried to invoke ctor of ".concat(h," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(r.$).toString(),") parameters instead!"));return t.apply(this,arguments)});var e,i,n=Object.create(i,{constructor:{value:t}}),r=(t.prototype=n,new Me(h,t,n,d,e,l,c,u)),o=(r.A&&(void 0===r.A.oa&&(r.A.oa=[]),r.A.oa.push(r)),e=new R(h,r,!0,!1),i=new R(h+"*",r,!1,!1),new R(h+" const*",r,!1,!0));return Ee[s]={pointerType:i,Kb:o},qe(f,t),[e,i,o]})},_embind_register_class_class_function:function(t,a,l,e,i,c,u){var n=Xe(l,e);a=C(a),c=N(i,c),P([],[t],function(r){function t(){D("Cannot call ".concat(o," due to unbound types"),n)}r=r[0];var o="".concat(r.name,".").concat(a),s=(a.startsWith("@@")&&(a=Symbol[a.substring(2)]),r.i.constructor);return void 0===s[a]?(t.ea=l-1,s[a]=t):(De(s,a,o),s[a].B[l-1]=t),P([],n,function(t){if(t=Ye(o,[t[0],null].concat(t.slice(1)),null,c,u),void 0===s[a].B?(t.ea=l-1,s[a]=t):s[a].B[l-1]=t,r.i.oa){var e,i=zi(r.i.oa);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.constructor.hasOwnProperty(a)||(n.constructor[a]=t)}}catch(t){i.e(t)}finally{i.f()}}return[]}),[]})},_embind_register_class_class_property:function(t,n,r,o,e,s,a,l){n=C(n),s=N(e,s),P([],[t],function(e){e=e[0];var t="".concat(e.name,".").concat(n),i={get:function(){D("Cannot access ".concat(t," due to unbound types"),[r])},enumerable:!0,configurable:!0};return i.set=l?function(){D("Cannot access ".concat(t," due to unbound types"),[r])}:function(){k("".concat(t," is a read-only property"))},Object.defineProperty(e.i.constructor,n,i),P([],[r],function(i){i=i[0];var t={get:function(){return i.fromWireType(s(o))},enumerable:!0};return l&&(l=N(a,l),t.set=function(t){var e=[];l(o,i.toWireType(e,t)),Pe(e)}),Object.defineProperty(e.i.constructor,n,t),[]}),[]})},_embind_register_class_constructor:function(t,n,e,i,r,o){var s=Xe(n,e);r=N(i,r),P([],[t],function(e){e=e[0];var i="constructor ".concat(e.name);if(void 0===e.i.$&&(e.i.$=[]),void 0!==e.i.$[n-1])throw new p("Cannot register multiple constructors with identical number of parameters (".concat(n-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.i.$[n-1]=function(){D("Cannot construct ".concat(e.name," due to unbound types"),s)},P([],s,function(t){return t.splice(1,0,null),e.i.$[n-1]=Ye(i,t,null,r,o),[]}),[]})},_embind_register_class_function:function(t,o,s,e,i,a,l,c){var u=Xe(s,e);o=C(o),a=N(i,a),P([],[t],function(e){function t(){D("Cannot call ".concat(i," due to unbound types"),u)}e=e[0];var i="".concat(e.name,".").concat(o),n=(o.startsWith("@@")&&(o=Symbol[o.substring(2)]),c&&e.i.qb.push(o),e.
1i.N),r=n[o];return void 0===r||void 0===r.B&&r.className!==e.name&&r.ea===s-2?(t.ea=s-2,t.className=e.name,n[o]=t):(De(n,o,i),n[o].B[s-2]=t),P([],u,function(t){return t=Ye(i,t,e,a,l),void 0===n[o].B?(t.ea=s-2,n[o]=t):n[o].B[s-2]=t,[]}),[]})},_embind_register_class_property:function(t,s,e,i,a,l,n,c,u,h){s=C(s),a=N(i,a),P([],[t],function(r){r=r[0];var o="".concat(r.name,".").concat(s),t={get:function(){D("Cannot access ".concat(o," due to unbound types"),[e,n])},enumerable:!0,configurable:!0};return t.set=u?function(){D("Cannot access ".concat(o," due to unbound types"),[e,n])}:function(){k(o+" is a read-only property")},Object.defineProperty(r.i.N,s,t),P([],u?[e,n]:[e],function(t){var n,e=t[0],i={get:function(){var t=Ge(this,r,o+" getter");return e.fromWireType(a(l,t))},enumerable:!0};return u&&(u=N(c,u),n=t[1],i.set=function(t){var e=Ge(this,r,o+" setter"),i=[];u(h,e,n.toWireType(i,t)),Pe(i)}),Object.defineProperty(r.i.N,s,i),[]}),[]})},_embind_register_emval:function(t,e){I(t,{name:e=C(e),fromWireType:function(t){var e=O(t);return Ze(t),e},toWireType:function(t,e){return E(e)},argPackAdvance:8,readValueFromPointer:Ie,K:null})},_embind_register_enum:function(t,e,i,n){function r(){}i=Re(i),e=C(e),r.values={},I(t,{name:e,constructor:r,fromWireType:function(t){return this.constructor.values[t]},toWireType:function(t,e){return e.value},argPackAdvance:8,readValueFromPointer:((t,e,i)=>{switch(e){case 0:return function(t){return this.fromWireType((i?b:m)[t])};case 1:return function(t){return this.fromWireType((i?a:J)[t>>1])};case 2:return function(t){return this.fromWireType((i?g:y)[t>>2])};default:throw new TypeError("Unknown integer type: "+t)}})(e,i,n),K:null}),Le(e,r)},_embind_register_enum_value:function(t,e,i){var n=Se(t,"enum");e=C(e),t=n.constructor,n=Object.create(n.constructor.prototype,{value:{value:i},constructor:{value:he("".concat(n.name,"_").concat(e),function(){})}}),t.values[i]=n,t[e]=n},_embind_register_float:function(t,e,i){i=Re(i),I(t,{name:e=C(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:((t,e)=>{switch(e){case 2:return function(t){return this.fromWireType(tt[t>>2])};case 3:return function(t){return this.fromWireType(et[t>>3])};default:throw new TypeError("Unknown float type: "+t)}})(e,i),K:null})},_embind_register_function:function(e,i,t,n,r,o){var s=Xe(i,t);e=C(e),r=N(n,r),Le(e,function(){D("Cannot call ".concat(e," due to unbound types"),s)},i-1),P([],s,function(t){return qe(e,Ye(e,[t[0],null].concat(t.slice(1)),null,r,o),i-1),[]})},_embind_register_integer:function(t,e,i,n,r){e=C(e),-1===r&&(r=4294967295),r=Re(i);var o,s=function(t){return t};0===n&&(o=32-8*i,s=function(t){return t<<o>>>o}),i=e.includes("unsigned")?function(t,e){return e>>>0}:function(t,e){return e},I(t,{name:e,fromWireType:s,toWireType:i,argPackAdvance:8,readValueFromPointer:((t,e,i)=>{switch(e){case 0:return i?function(t){return b[t]}:function(t){return m[t]};case 1:return i?function(t){return a[t>>1]}:function(t){return J[t>>1]};case 2:return i?function(t){return g[t>>2]}:function(t){return y[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}})(e,r,0!==n),K:null})},_embind_register_memory_view:function(t,e,i){function n(t){var e=y;return new r(e.buffer,e[(t>>=2)+1],e[t])}var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];I(t,{name:i=C(i),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{$b:!0})},_embind_register_std_string:function(t,e){var a="std::string"===(e=C(e));I(t,{name:e,fromWireType:function(t){var e=y[t>>2],i=t+4;if(a)for(var n=i,r=0;r<=e;++r){var o,s=i+r;r!=e&&0!=m[s]||(n=n?v(m,n,s-n):"",o=void 0===o?n:o+String.fromCharCode(0)+n,n=s+1)}else{for(o=Array(e),r=0;r<e;++r)o[r]=String.fromCharCode(m[i+r]);o=o.join("")}return L(t),o},toWireType:function(t,e){var i="string"==typeof(e=e instanceof ArrayBuffer?new Uint8Array(e):e),n=(i||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||k("Cannot pass non-string to std::string"),a&&i?Et(e):e.length),r=Ei(4+n+1),o=r+4;if(y[r>>2]=n,a&&i)Ct(e,m,o,n+1);else if(i)for(i=0;i<n;++i){var s=e.charCodeAt(i);255<s&&(L(o),k("String has UTF-16 code units that do not fit in 8 bits")),m[o+i]=s}else for(i=0;i<n;++i)m[o+i]=e[i];return null!==t&&t.push(L,r),r},argPackAdvance:8,readValueFromPointer:Ie,K:function(t){L(t)}})},_embind_register_std_wstring:function(t,a,r){var l,o,s,c,u;r=C(r),2===a?(l=Qe,o=Je,s=ti,c=function(){return J},u=1):4===a&&(l=ei,o=ii,s=ni,c=function(){return y},u=2),I(t,{name:r,fromWireType:function(t){for(var e,i=y[t>>2],n=c(),r=t+4,o=0;o<=i;++o){var s=t+4+o*a;o!=i&&0!=n[s>>u]||(r=l(r,s-r),void 0===e?e=r:e=e+String.fromCharCode(0)+r,r=s+a)}return L(t),e},toWireType:function(t,e){"string"!=typeof e&&k("Cannot pass non-string to C++ string type ".concat(r));var i=s(e),n=Ei(4+i+a);return y[n>>2]=i>>u,o(e,n+4,i+a),null!==t&&t.push(L,n),n},argPackAdvance:8,readValueFromPointer:Ie,K:function(t){L(t)}})}
1,_embind_register_value_object:function(t,e,i,n,r,o){Ae[t]={name:C(e),Pa:N(i,n),W:N(r,o),eb:[]}},_embind_register_value_object_field:function(t,e,i,n,r,o,s,a,l,c){Ae[t].eb.push({Sb:C(e),Yb:i,Wb:N(n,r),Xb:o,rc:s,qc:N(a,l),sc:c})},_embind_register_void:function(t,e){I(t,{fc:!0,name:e=C(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:function(){return!0},_emval_as:function(t,e,i){t=O(t),e=Se(e,"emval::as");var n=[],r=E(n);return y[i>>2]=r,e.toWireType(n,t)},_emval_call_method:function(t,e,i,n,r){t=ai[t],e=O(e),i=si(i);var o=[];return y[n>>2]=E(o),t(e,i,o,r)},_emval_call_void_method:function(t,e,i,n){(t=ai[t])(e=O(e),i=si(i),null,n)},_emval_decref:Ze,_emval_get_method_caller:function(s,t){var a,e,l=((t,e)=>{for(var i=Array(t),n=0;n<t;++n)i[n]=Se(y[e+4*n>>2],"parameter "+n);return i})(s,t),c=l[0],i=(t=c.name+"_$"+l.slice(1).map(function(t){return t.name}).join("_")+"$",pi[t]);return void 0!==i?i:(a=Array(s-1),i=function(t,e,i,n){for(var r=0,o=0;o<s-1;++o)a[o]=l[o+1].readValueFromPointer(n+r),r+=l[o+1].argPackAdvance;for(t=t[e].apply(t,a),o=0;o<s-1;++o)l[o+1].Nb&&l[o+1].Nb(a[o]);if(!c.fc)return c.toWireType(i,t)},e=ai.length,ai.push(i),pi[t]=e)},_emval_get_module_property:function(t){return t=si(t),E(j[t])},_emval_get_property:function(t,e){return t=O(t),e=O(e),E(t[e])},_emval_incref:function(t){4<t&&(i.get(t).tb+=1)},_emval_new_cstring:function(t){return E(si(t))},_emval_new_object:function(){return E({})},_emval_run_destructors:function(t){Pe(O(t)),Ze(t)},_emval_set_property:function(t,e,i){t=O(t),e=O(e),i=O(i),t[e]=i},_emval_take_value:function(t,e){return t=(t=Se(t,"_emval_take_value")).readValueFromPointer(e),E(t)},abort:function(){ht("")},emscripten_asm_const_int:function(t,e,i){var n;for(mi.length=0,i>>=2;n=m[e++];)i+=105!=n&i,mi.push(105==n?g[i]:et[i++>>1]),++i;return gt[t].apply(null,mi)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:function(){return performance.now()},emscripten_memcpy_big:function(t,e,i){return m.copyWithin(t,e,e+i)},emscripten_resize_heap:function(t){var e=m.length;if(!(2147483648<(t>>>=0)))for(var i=1;i<=4;i*=2){var n=e*(1+.2/i),n=Math.min(n,t+100663296),r=Math;n=Math.max(t,n);t:{r=r.min.call(r,2147483648,n+(65536-n%65536)%65536)-Q.buffer.byteLength+65535>>>16;try{Q.grow(r),nt();var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},environ_get:function(n,r){var o=0;return li().forEach(function(t,e){var i=r+o;for(e=y[n+4*e>>2]=i,i=0;i<t.length;++i)b[e++>>0]=t.charCodeAt(i);b[e>>0]=0,o+=t.length+1}),0},environ_sizes_get:function(t,e){var i=li(),n=(y[t>>2]=i.length,0);return i.forEach(function(t){n+=t.length+1}),y[e>>2]=n,0},fd_close:function(t){try{var e=w(t);if(null===e.X)throw new S(8);e.Ma&&(e.Ma=null);try{e.m.close&&e.m.close(e)}catch(t){throw t}finally{Yt[e.X]=null}return e.X=null,0}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return t.aa}},fd_read:function(t,e,i,n){try{t:{var r=w(t);t=e;for(var o,s=e=0;s<i;s++){var a=y[t>>2],l=y[t+4>>2],c=(t+=8,r),u=a,h=l,d=o,f=b;if(h<0||d<0)throw new S(28);if(null===c.X)throw new S(8);if(1==(2097155&c.flags))throw new S(8);if(16384==(61440&c.node.mode))throw new S(31);if(!c.m.read)throw new S(28);var p=void 0!==d;if(p){if(!c.seekable)throw new S(70)}else d=c.position;var m=c.m.read(c,f,u,h,d),g=(p||(c.position+=m),m);if(g<0){var v=-1;break t}if(e+=g,g<l)break;void 0!==o&&(o+=g)}v=e}return y[n>>2]=v,0}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return t.aa}},fd_seek:function(t,e,i,n,r){e=i+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*i:NaN;try{var o;return isNaN(e)?61:(o=w(t),Bt(o,e,n),mt=[o.position>>>0,(c=o.position,1<=+Math.abs(c)?0<c?+Math.floor(c/4294967296)>>>0:~~+Math.ceil((c-(~~c>>>0))/4294967296)>>>0:0)],g[r>>2]=mt[0],g[r+4>>2]=mt[1],o.Ma&&0===e&&0===n&&(o.Ma=null),0)}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return t.aa}},fd_write:function(t,e,i,n){try{t:{var r=w(t);t=e;for(var o,s=e=0;s<i;s++){var a=y[t>>2],l=y[t+4>>2],c=(t+=8,r),u=a,h=l,d=o,f=b;if(h<0||d<0)throw new S(28);if(null===c.X)throw new S(8);if(0==(2097155&c.flags))throw new S(8);if(16384==(61440&c.node.mode))throw new S(31);if(!c.m.write)throw new S(28);c.seekable&&1024&c.flags&&Bt(c,0,2);var p=void 0!==d;if(p){if(!c.seekable)throw new S(70)}else d=c.position;var m=c.m.write(c,f,u,h,d,void 0),g=(p||(c.position+=m),m);if(g<0){var v=-1;break t}e+=g,void 0!==o&&(o+=g)}v=e}return y[n>>2]=v,0}catch(t){if(void 0===_||"ErrnoError"!==t.name)throw t;return t.aa}}
1,strftime_l:function(t,e,i,n){var r=i,o=n;function s(t,e,i){for(t="number"==typeof t?t.toString():t||"";t.length<e;)t=i[0]+t;return t}function a(t,e){return s(t,e,"0")}function l(t,e){function i(t){return t<0?-1:0<t?1:0}var n;return n=0===(n=i(t.getFullYear()-e.getFullYear()))&&0===(n=i(t.getMonth()-e.getMonth()))?i(t.getDate()-e.getDate()):n}function c(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function u(t){var e=t.ca;for(t=new Date(new Date(t.da+1900,0,1).getTime());0<e;){var i=t.getMonth(),n=(ci(t.getFullYear())?vi:bi)[i];if(!(e>n-t.getDate())){t.setDate(t.getDate()+e);break}e-=n-t.getDate()+1,t.setDate(1),i<11?t.setMonth(i+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return i=new Date(t.getFullYear()+1,0,4),e=c(new Date(t.getFullYear(),0,4)),i=c(i),l(e,t)<=0?l(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h,d=g[o+40>>2];for(h in o={wc:g[o>>2],vc:g[o+4>>2],Fa:g[o+8>>2],Sa:g[o+12>>2],Ga:g[o+16>>2],da:g[o+20>>2],R:g[o+24>>2],ca:g[o+28>>2],Rc:g[o+32>>2],uc:g[o+36>>2],xc:d?v(m,d):""},r=r?v(m,r):"",d={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(h,"g"),d[h]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p="January February March April May June July August September October November December".split(" "),d={"%a":function(t){return f[t.R].substring(0,3)},"%A":function(t){return f[t.R]},"%b":function(t){return p[t.Ga].substring(0,3)},"%B":function(t){return p[t.Ga]},"%C":function(t){return a((t.da+1900)/100|0,2)},"%d":function(t){return a(t.Sa,2)},"%e":function(t){return s(t.Sa,2," ")},"%g":function(t){return u(t).toString().substring(2)},"%G":u,"%H":function(t){return a(t.Fa,2)},"%I":function(t){return 0==(t=t.Fa)?t=12:12<t&&(t-=12),a(t,2)},"%j":function(t){for(var e=0,i=0;i<=t.Ga-1;e+=(ci(t.da+1900)?vi:bi)[i++]);return a(t.Sa+e,3)},"%m":function(t){return a(t.Ga+1,2)},"%M":function(t){return a(t.vc,2)},"%n":function(){return"\n"},"%p":function(t){return 0<=t.Fa&&t.Fa<12?"AM":"PM"},"%S":function(t){return a(t.wc,2)},"%t":function(){return"\t"},"%u":function(t){return t.R||7},"%U":function(t){return a(Math.floor((t.ca+7-t.R)/7),2)},"%V":function(t){var e,i=Math.floor((t.ca+7-(t.R+6)%7)/7);return(t.R+371-t.ca-2)%7<=2&&i++,i?53!=i||4==(e=(t.R+371-t.ca)%7)||3==e&&ci(t.da)||(i=1):(i=52,(4==(e=(t.R+7-t.ca-1)%7)||5==e&&ci(t.da%400-1))&&i++),a(i,2)},"%w":function(t){return t.R},"%W":function(t){return a(Math.floor((t.ca+7-(t.R+6)%7)/7),2)},"%y":function(t){return(t.da+1900).toString().substring(2)},"%Y":function(t){return t.da+1900},"%z":function(t){var e=0<=(t=t.uc);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.xc},"%%":function(){return"%"}};for(h in r=r.replace(/%%/g,"\0\0"),d)r.includes(h)&&(r=r.replace(new RegExp(h,"g"),d[h](o)));
1return(h=jt(r=r.replace(/\0\0/g,"%"),!1)).length>e?0:(b.set(h,t),h.length-1)}},L=((()=>{function e(t){var e;return u=t=t.exports,Q=u.memory,nt(),rt=u.__indirect_function_table,st.unshift(u.__wasm_call_ctors),l--,j.monitorRunDependencies&&j.monitorRunDependencies(l),0==l&&(null!==ct&&(clearInterval(ct),ct=null),ut)&&(e=ut,ut=null,e()),t}var i,n,r,t={env:Oi,wasi_snapshot_preview1:Oi};if(l++,j.monitorRunDependencies&&j.monitorRunDependencies(l),j.instantiateWasm)try{return j.instantiateWasm(t,e)}catch(t){s("Module.instantiateWasm callback failed with error: "+t),M(t)}i=t,n=function(t){e(t.instance)},r=lt,(o||"function"!=typeof WebAssembly.instantiateStreaming||dt(r)||r.startsWith("file://")||"function"!=typeof fetch?pt(r,i,n):fetch(r,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,i).then(n,function(t){return s("wasm streaming compile failed: "+t),s("falling back to ArrayBuffer instantiation"),pt(r,i,n)})})).catch(M)})(),function(t){return(L=u.free)(t)}),Ei=function(t){return(Ei=u.malloc)(t)},Ci=j._ma_device__on_notification_unlocked=function(t){return(Ci=j._ma_device__on_notification_unlocked=u.ma_device__on_notification_unlocked)(t)},Ti=(j._ma_malloc_emscripten=function(t,e){return(j._ma_malloc_emscripten=u.ma_malloc_emscripten)(t,e)},j._ma_free_emscripten=function(t,e){return(j._ma_free_emscripten=u.ma_free_emscripten)(t,e)},j._ma_device_process_pcm_frames_capture__webaudio=function(t,e,i){return(Ti=j._ma_device_process_pcm_frames_capture__webaudio=u.ma_device_process_pcm_frames_capture__webaudio)(t,e,i)}),xi=j._ma_device_process_pcm_frames_playback__webaudio=function(t,e,i){return(xi=j._ma_device_process_pcm_frames_playback__webaudio=u.ma_device_process_pcm_frames_playback__webaudio)(t,e,i)},ji=function(){return(ji=u.__errno_location)()},Ai=function(t){return(Ai=u.__getTypeName)(t)};function Pi(){function t(){if(!ki&&(ki=!0,j.calledRun=!0,!it)){if(j.noFSInit||Ft||(Ft=!0,ae(),j.stdin=j.stdin,j.stdout=j.stdout,j.stderr=j.stderr,j.stdin?le("stdin",j.stdin):re("/dev/tty","/dev/stdin"),j.stdout?le("stdout",null,j.stdout):re("/dev/tty","/dev/stdout"),j.stderr?le("stderr",null,j.stderr):re("/dev/tty1","/dev/stderr"),se("/dev/stdin",0),se("/dev/stdout",1),se("/dev/stderr",1)),Zt=!1,vt(st),n(j),j.onRuntimeInitialized&&j.onRuntimeInitialized(),j.postRun)for("function"==typeof j.postRun&&(j.postRun=[j.postRun]);j.postRun.length;){var t=j.postRun.shift();at.unshift(t)}vt(at)}}if(!(0<l)){if(j.preRun)for("function"==typeof j.preRun&&(j.preRun=[j.preRun]);j.preRun.length;)e=void 0,e=j.preRun.shift(),ot.unshift(e);vt(ot),0<l||(j.setStatus?(j.setStatus("Running..."),setTimeout(function(){setTimeout(function(){j.setStatus("")},1),t()},1)):t())}var e}if(j.__embind_initialize_bindings=function(){return(j.__embind_initialize_bindings=u._embind_initialize_bindings)()},j.dynCall_iiji=function(t,e,i,n,r){return(j.dynCall_iiji=u.dynCall_iiji)(t,e,i,n,r)},j.dynCall_jiji=function(t,e,i,n,r){return(j.dynCall_jiji=u.dynCall_jiji)(t,e,i,n,r)},j.dynCall_iiiji=function(t,e,i,n,r,o){return(j.dynCall_iiiji=u.dynCall_iiiji)(t,e,i,n,r,o)},j.dynCall_iij=function(t,e,i,n){return(j.dynCall_iij=u.dynCall_iij)(t,e,i,n)},j.dynCall_jii=function(t,e,i){return(j.dynCall_jii=u.dynCall_jii)(t,e,i)},j.dynCall_viijii=function(t,e,i,n,r,o,s){return(j.dynCall_viijii=u.dynCall_viijii)(t,e,i,n,r,o,s)},j.dynCall_iiiiij=function(t,e,i,n,r,o,s){return(j.dynCall_iiiiij=u.dynCall_iiiiij)(t,e,i,n,r,o,s)},j.dynCall_iiiiijj=function(t,e,i,n,r,o,s,a,l){return(j.dynCall_iiiiijj=u.dynCall_iiiiijj)(t,e,i,n,r,o,s,a,l)},j.dynCall_iiiiiijj=function(t,e,i,n,r,o,s,a,l,c){return(j.dynCall_iiiiiijj=u.dynCall_iiiiiijj)(t,e,i,n,r,o,s,a,l,c)},ut=function t(){ki||Pi(),ki||(ut=t)},j.preInit)for("function"==typeof j.preInit&&(j.preInit=[j.preInit]);0<j.preInit.length;)j.preInit.pop()();return Pi(),e.ready}},function(t){t.exports=JSON.parse('{"name":"@rive-app/canvas","version":"2.18.0","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')}
1,function(t,e,i){i.r(e),i.d(e,{BLANK_URL:function(){return r.BLANK_URL},registerTouchInteractions:function(){return n.registerTouchInteractions},sanitizeUrl:function(){return r.sanitizeUrl}});var n=i(4),r=i(5)},function(t,e,i){i.r(e),i.d(e,{registerTouchInteractions:function(){return n}});var n=function(t){var e,i=t.canvas,g=t.artboard,n=t.stateMachines,v=void 0===n?[]:n,b=t.rive,y=t.fit,w=t.alignment,n=t.isTouchScrollEnabled,S=void 0!==n&&n;return i&&v.length&&t.renderer&&b&&g&&"undefined"!=typeof window?(e=function(t){var e=t.currentTarget.getBoundingClientRect(),i=(i=S,-1<["touchstart","touchmove"].indexOf((r=t).type)&&null!=(n=r.touches)&&n.length?(i||r.preventDefault(),{clientX:r.touches[0].clientX,clientY:r.touches[0].clientY}):"touchend"===r.type&&null!=(n=r.changedTouches)&&n.length?{clientX:r.changedTouches[0].clientX,clientY:r.changedTouches[0].clientY}:{clientX:r.clientX,clientY:r.clientY}),n=i.clientX,r=i.clientY;if(n||r){var i=n-e.left,r=r-e.top,e=b.computeAlignment(y,w,{minX:0,minY:0,maxX:e.width,maxY:e.height},g.bounds),o=new b.Mat2D,i=(e.invert(o),new b.Vec2D(i,r)),r=b.mapXY(o,i),s=r.x(),a=r.y();switch(r.delete(),o.delete(),i.delete(),e.delete(),t.type){case"mouseout":for(var l=0,c=v;l<c.length;l++)c[l].pointerMove(s<0?s-1e4:s+1e4,a<0?a-1e4:a+1e4);break;case"touchmove":case"mouseover":case"mousemove":for(var u=0,h=v;u<h.length;u++)h[u].pointerMove(s,a);break;case"touchstart":case"mousedown":for(var d=0,f=v;d<f.length;d++)f[d].pointerDown(s,a);break;case"touchend":case"mouseup":for(var p=0,m=v;p<m.length;p++)m[p].pointerUp(s,a)}}}.bind(void 0),i.addEventListener("mouseover",e),i.addEventListener("mouseout",e),i.addEventListener("mousemove",e),i.addEventListener("mousedown",e),i.addEventListener("mouseup",e),i.addEventListener("touchmove",e),i.addEventListener("touchstart",e),i.addEventListener("touchend",e),function(){i.removeEventListener("mouseover",e),i.removeEventListener("mouseout",e),i.removeEventListener("mousemove",e),i.removeEventListener("mousedown",e),i.removeEventListener("mouseup",e),i.removeEventListener("touchmove",e),i.removeEventListener("touchstart",e),i.removeEventListener("touchend",e)}):null}},function(t,e,i){i.r(e),i.d(e,{BLANK_URL:function(){return c},sanitizeUrl:function(){return u}});var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|:)/gim,l=[".","/"],c="about:blank";function u(t){var e;return!t||!(t=t.replace(s,"").replace(r,function(t,e){return String.fromCharCode(e)}).replace(o,"").replace(s,"").trim())||!(-1<l.indexOf(t[0]))&&(e=t.match(a))&&(e=e[0],n.test(e))?c:t}}],p={},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},m={},(n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(m),n.d(m,{Alignment:function(){return b},EventType:function(){return j},Fit:function(){return v},Layout:function(){return k},LoopType:function(){return A},Rive:function(){return V},RiveEventType:function(){return T},RiveFile:function(){return H},RuntimeLoader:function(){return O},StateMachineInput:function(){return x},StateMachineInputType:function(){return E},Testing:function(){return X},decodeAudio:function(){return G},decodeFont:function(){return K},decodeImage:function(){return Z}}),L=n(1),y=n(2),w=n(3),g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},M=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},S=function(t,s,a,l){return new(a=a||Promise)(function(i,e){function n(t){try{o(l.next(t))}catch(t){e(t)}}function r(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;
1t.done?i(t.value):((e=t.value)instanceof a?e:new a(function(t){t(e)})).then(n,r)}o((l=l.apply(t,s||[])).next())})},_=function(n,r){var o,s,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function t(i){return function(t){var e=[i,t];if(o)throw new TypeError("Generator is already executing.");for(;l=c&&e[c=0]?0:l;)try{if(o=1,s&&(a=2&e[0]?s.return:e[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,e[1])).done)return a;switch(s=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,s=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))l.label=e[1];else if(6===e[0]&&l.label<a[1])l.label=a[1],a=e;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(e)}}e=r.call(n,l)}catch(t){e=[6,t],s=0}finally{o=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},($=v=v||{}).Cover="cover",$.Contain="contain",$.Fill="fill",$.FitWidth="fitWidth",$.FitHeight="fitHeight",$.None="none",$.ScaleDown="scaleDown",($=b=b||{}).Center="center",$.TopLeft="topLeft",$.TopCenter="topCenter",$.TopRight="topRight",$.CenterLeft="centerLeft",$.CenterRight="centerRight",$.BottomLeft="bottomLeft",$.BottomCenter="bottomCenter",$.BottomRight="bottomRight",s.new=function(t){var e=t.fit,i=t.alignment,n=t.minX,r=t.minY,o=t.maxX,t=t.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new s({fit:e,alignment:i,minX:n,minY:r,maxX:o,maxY:t})},s.prototype.copyWith=function(t){var e=t.fit,i=t.alignment,n=t.minX,r=t.minY,o=t.maxX,t=t.maxY;return new s({fit:null!=e?e:this.fit,alignment:null!=i?i:this.alignment,minX:null!=n?n:this.minX,minY:null!=r?r:this.minY,maxX:null!=o?o:this.maxX,maxY:null!=t?t:this.maxY})},s.prototype.runtimeFit=function(t){return this.cachedRuntimeFit||(t=this.fit===v.Cover?t.Fit.cover:this.fit===v.Contain?t.Fit.contain:this.fit===v.Fill?t.Fit.fill:this.fit===v.FitWidth?t.Fit.fitWidth:this.fit===v.FitHeight?t.Fit.fitHeight:this.fit===v.ScaleDown?t.Fit.scaleDown:t.Fit.none,this.cachedRuntimeFit=t)},s.prototype.runtimeAlignment=function(t){return this.cachedRuntimeAlignment||(t=this.alignment===b.TopLeft?t.Alignment.topLeft:this.alignment===b.TopCenter?t.Alignment.topCenter:this.alignment===b.TopRight?t.Alignment.topRight:this.alignment===b.CenterLeft?t.Alignment.centerLeft:this.alignment===b.CenterRight?t.Alignment.centerRight:this.alignment===b.BottomLeft?t.Alignment.bottomLeft:this.alignment===b.BottomCenter?t.Alignment.bottomCenter:this.alignment===b.BottomRight?t.Alignment.bottomRight:t.Alignment.center,this.cachedRuntimeAlignment=t)},k=s,i.loadRuntime=function(){L.default({locateFile:function(){return i.wasmURL}}).then(function(t){var e;for(i.runtime=t;0<i.callBackQueue.length;)null!=(e=i.callBackQueue.shift())&&e(i.runtime)}).catch(function(){var t="https://cdn.jsdelivr.net/npm/".concat(y.name,"@").concat(y.version,"/rive_fallback.wasm");i.wasmURL.toLowerCase()!==t?(console.warn("Failed to load WASM from ".concat(i.wasmURL,", trying jsdelivr as a backup")),i.setWasmUrl(t),i.loadRuntime()):console.error("Could not load Rive WASM file from unpkg or jsdelivr, network connection may be down, or you may need to call set a new WASM source via RuntimeLoader.setWasmUrl() and call RuntimeLoader.loadRuntime() again")})},i.getInstance=function(t){i.isLoading||(i.isLoading=!0,i.loadRuntime()),i.runtime?t(i.runtime):i.callBackQueue.push(t)},i.awaitInstance=function(){return new Promise(function(e){return i.getInstance(function(t){return e(t)})})},i.setWasmUrl=function(t){i.wasmURL=t},i.isLoading=!1,i.callBackQueue=[],i.wasmURL="https://unpkg.com/".concat(y.name,"@").concat(y.version,"/rive.wasm"),O=i,Object.defineProperty(t.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this.instance.time},set:function(t){this.instance.time=t}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),t.prototype.advance=function(t){null===this.scrubTo?this.instance.advance(t):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},t.prototype.apply=function(t){this.instance.apply(t)},Object.defineProperty(t.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),t.prototype.cleanup=function(){this.instance.delete()},C=t,($=E=E||{})[$.Number=56]="Number",$[$.Trigger=58]="Trigger",$[$.Boolean=59]="Boolean",Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(t){this.runtimeInput.value=t},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===E.Trigger&&this.runtimeInput.fire()},x=e,($=T=T||{})[$.General=128]="General",$[$.OpenUrl=131]="OpenUrl",Object.defineProperty(r.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"statesChanged",{get:function(){for(var t=[],e=0;e<this.instance.stateChangedCount();e++)t.push(this.instance.stateChangedNameByIndex(e));return t},enumerable:!1,configurable:!0}),r.prototype.advance=function(t){this.instance.advance(t)},r.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},r.prototype.reportedEventAt=function(t){return this.instance.reportedEventAt(t)},r.prototype.initInputs=function(t){for(var e=0;e<this.instance.inputCount();e++){var i=this.instance.input(e);this.inputs.push(this.mapRuntimeInput(i,t))}},r.prototype.mapRuntimeInput=function(t,e){return t.type===e.SMIInput.bool?new x(E.Boolean,t.asBool()):t.type===e.SMIInput.number?new x(E.Number,t.asNumber()):t.type===e.SMIInput.trigger?new x(E.Trigger,t.asTrigger()):void 0},r.prototype.cleanup=function(){this.instance.delete()},z=r,o.prototype.add=function(t,e,i){if(void 0===i&&(i=!0),0===(t=N(t)).length)this.animations.forEach(function(t){return t.playing=e}),this.stateMachines.forEach(function(t){return t.playing=e});else for(var n=this.animations.map(function(t){return t.name}),r=this.stateMachines.map(function(t){return t.name}),o=0;o<t.length;o++){var s=n.indexOf(t[o]),a=r.indexOf(t[o]);0<=s||0<=a?0<=s?this.animations[s].playing=e:this.stateMachines[a].playing=e:(s=this.artboard.animationByName(t[o]))?((a=new C(s,this.artboard,this.runtime,e)).advance(0),a.apply(1),this.animations.push(a)):(s=this.artboard.stateMachineByName(t[o]))&&(a=new z(s,this.runtime,e,this.artboard),this.stateMachines.push(a))}return i&&(e?this.eventManager.fire({type:j.Play,data:this.playing}):this.eventManager.fire({type:j.Pause,data:this.paused})),e?this.playing:this.paused},o.prototype.initLinearAnimations=function(t,e){for(var i=this.animations.map(function(t){return t.name}),n=0;n<t.length;n++){var r=i.indexOf(t[n]);0<=r?this.animations[r].playing=e:(r=this.artboard.animationByName(t[n]))&&((r=new C(r,this.artboard,this.runtime,e)).advance(0),r.apply(1),this.animations.push(r))}},o.prototype.initStateMachines=function(t,e){for(var i=this.stateMachines.map(function(t){return t.name}),n=0;n<t.length;n++){var r=i.indexOf(t[n]);0<=r?this.stateMachines[r].playing=e:(r=this.artboard.stateMachineByName(t[n]))?(r=new z(r,this.runtime,e,this.artboard),this.stateMachines.push(r)):this.initLinearAnimations([t[n]],e)}},o.prototype.play=function(t){return this.add(t,!0)},o.prototype.pause=function(t){return this.add(t,!1)},o.prototype.scrub=function(e,i){var t=this.animations.filter(function(t){return e.includes(t.name)});return t.forEach(function(t){return t.scrubTo=i}),t.map(function(t){return t.name})},Object.defineProperty(o.prototype,"playing",{get:function(){return this.animations.filter(function(t){return t.playing}).map(function(t){return t.name}).concat(this.stateMachines.filter(function(t){return t.playing}).map(function(t){return t.name}))}
1,enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"paused",{get:function(){return this.animations.filter(function(t){return!t.playing}).map(function(t){return t.name}).concat(this.stateMachines.filter(function(t){return!t.playing}).map(function(t){return t.name}))},enumerable:!1,configurable:!0}),o.prototype.stop=function(e){var t,i,n=this,r=[];return 0===(e=N(e)).length?(r=this.animations.map(function(t){return t.name}).concat(this.stateMachines.map(function(t){return t.name})),this.animations.forEach(function(t){return t.cleanup()}),this.stateMachines.forEach(function(t){return t.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length)):((t=this.animations.filter(function(t){return e.includes(t.name)})).forEach(function(t){t.cleanup(),n.animations.splice(n.animations.indexOf(t),1)}),(i=this.stateMachines.filter(function(t){return e.includes(t.name)})).forEach(function(t){t.cleanup(),n.stateMachines.splice(n.stateMachines.indexOf(t),1)}),r=t.map(function(t){return t.name}).concat(i.map(function(t){return t.name}))),this.eventManager.fire({type:j.Stop,data:r}),r},Object.defineProperty(o.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(t,e){return t||e.playing},!1)||this.stateMachines.reduce(function(t,e){return t||e.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isPaused",{get:function(){return!this.isPlaying&&(0<this.animations.length||0<this.stateMachines.length)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),o.prototype.atLeastOne=function(t,e){var i;return void 0===e&&(e=!0),0===this.animations.length&&0===this.stateMachines.length&&(0<this.artboard.animationCount()?this.add([i=this.artboard.animationByIndex(0).name],t,e):0<this.artboard.stateMachineCount()&&this.add([i=this.artboard.stateMachineByIndex(0).name],t,e)),i},o.prototype.handleLooping=function(){for(var t=0,e=this.animations.filter(function(t){return t.playing});t<e.length;t++){var i=e[t];0===i.loopValue&&i.loopCount?(i.loopCount=0,this.stop(i.name)):1===i.loopValue&&i.loopCount?(this.eventManager.fire({type:j.Loop,data:{animation:i.name,type:A.Loop}}),i.loopCount=0):2===i.loopValue&&1<i.loopCount&&(this.eventManager.fire({type:j.Loop,data:{animation:i.name,type:A.PingPong}}),i.loopCount=0)}},o.prototype.handleStateChanges=function(){for(var t=[],e=0,i=this.stateMachines.filter(function(t){return t.playing});e<i.length;e++){var n=i[e];t.push.apply(t,n.statesChanged)}0<t.length&&this.eventManager.fire({type:j.StateChange,data:t})},o.prototype.handleAdvancing=function(t){this.eventManager.fire({type:j.Advance,data:t})},B=o,($=j=j||{}).Load="load",$.LoadError="loaderror",$.Play="play",$.Pause="pause",$.Stop="stop",$.Loop="loop",$.Draw="draw",$.Advance="advance",$.StateChange="statechange",$.RiveEvent="riveevent",$.AudioStatusChange="audiostatuschange",($=A=A||{}).OneShot="oneshot",$.Loop="loop",$.PingPong="pingpong",a.prototype.getListeners=function(e){return this.listeners.filter(function(t){return t.type===e})},a.prototype.add=function(t){this.listeners.includes(t)||this.listeners.push(t)},a.prototype.remove=function(t){for(var e=0;e<this.listeners.length;e++){var i=this.listeners[e];if(i.type===t.type&&i.callback===t.callback){this.listeners.splice(e,1);break}}},a.prototype.removeAll=function(e){var i=this;e?this.listeners.filter(function(t){return t.type===e}).forEach(function(t){return i.remove(t)}):this.listeners.splice(0,this.listeners.length)},a.prototype.fire=function(e){this.getListeners(e.type).forEach(function(t){return t.callback(e)})},P=a,l.prototype.add=function(t){this.queue.push(t)},l.prototype.process=function(){for(;0<this.queue.length;){var t=this.queue.shift();null!=t&&t.action&&t.action(),null!=t&&t.event&&this.eventManager.fire(t.event)}},U=l,($=I=I||{})[$.AVAILABLE=0]="AVAILABLE",$[$.UNAVAILABLE=1]="UNAVAILABLE",M(c,F=P),c.prototype.delay=function(e){return S(this,void 0,void 0,function(){return _(this,function(t){return[2,new Promise(function(t){return setTimeout(t,e)})]})})},c.prototype.timeout=function(){return S(this,void 0,void 0,function(){return _(this,function(t){return[2,new Promise(function(t,e){return setTimeout(e,50)})]})})},c.prototype.reportToListeners=function(){this.fire({type:j.AudioStatusChange}),this.removeAll()},c.prototype.enableAudio=function(){return S(this,void 0,void 0,function(){return _(this,function(t){return this._enabled||(this._enabled=!0,this._status=I.AVAILABLE,this.reportToListeners()),[2]})})},c.prototype.testAudio=function(){return S(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:if(this._status!==I.UNAVAILABLE||null===this._audioContext)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return t.sent(),this.enableAudio(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},c.prototype._establishAudio=function(){return S(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:if(!this._started){if(this._started=!0,"undefined"!=typeof window)return[3,1];this.enableAudio()}return[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),t.label=2;case 2:return this._status!==I.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return t.sent(),[4,this.delay(1e3)];case 4:return t.sent(),[3,2];case 5:return[2]}})})},c.prototype.listenForUserAction=function(){var t=this;document.addEventListener("pointerdown",function(){return S(t,void 0,void 0,function(){return _(this,function(t){return this.enableAudio(),[2]})})},{once:!0})},c.prototype.establishAudio=function(){return S(this,void 0,void 0,function(){return _(this,function(t){return this._establishAudio(),[2]})})},Object.defineProperty(c.prototype,"systemVolume",{get:function(){return this._status===I.UNAVAILABLE?(this.testAudio(),0):1}
1,enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),R=new c,u.prototype.observe=function(){},u.prototype.unobserve=function(){},u.prototype.disconnect=function(){},q=globalThis.ResizeObserver||u,h.prototype.add=function(t,e){e={onResize:e,element:t};return this._elementsMap.set(t,e),this._resizeObserver.observe(t),e},h.prototype.remove=function(t){this._resizeObserver.unobserve(t.element),this._elementsMap.delete(t.element)},W=new h,d.prototype.initData=function(){return S(this,void 0,void 0,function(){var e,i,n;return _(this,function(t){switch(t.label){case 0:return this.src?[4,Y((e=this).src)]:[3,2];case 1:e.buffer=t.sent(),t.label=2;case 2:return this.assetLoader&&(i=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),[4,(n=this).runtime.load(new Uint8Array(this.buffer),i,this.enableRiveAssetCDN)];case 3:if(n.file=t.sent(),null===this.file)throw this.eventManager.fire({type:j.LoadError,data:null}),new Error(d.fileLoadErrorMessage);return this.eventManager.fire({type:j.Load,data:this}),[2]}})})},d.prototype.init=function(){return S(this,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:if(this.src||this.buffer)return e=this,[4,O.awaitInstance()];throw new Error(d.missingErrorMessage);case 1:return e.runtime=t.sent(),[4,this.initData()];case 2:return t.sent(),[2]}})})},d.prototype.on=function(t,e){this.eventManager.add({type:t,callback:e})},d.prototype.off=function(t,e){this.eventManager.remove({type:t,callback:e})},d.prototype.cleanup=function(){var t;--this.referenceCount,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null!=(t=this.file))&&t.delete()},d.prototype.removeAllRiveEventListeners=function(t){this.eventManager.removeAll(t)},d.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},d.missingErrorMessage="Rive source file or data buffer required",d.fileLoadErrorMessage="The file failed to load",H=d,f.new=function(t){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new f(t)},f.prototype.onSystemAudioChanged=function(){this.volume=this._volume},f.prototype.init=function(t){var e=this,i=t.src,n=t.buffer,r=t.riveFile,o=t.animations,s=t.stateMachines,a=t.artboard,l=t.autoplay,c=void 0!==l&&l,l=t.useOffscreenRenderer,u=void 0!==l&&l;if(this.src=i,this.buffer=n,this.riveFile=r,!this.src&&!this.buffer&&!this.riveFile)throw new Error(f.missingErrorMessage);var h=N(o),d=N(s);this.loaded=!1,this.readyForPlaying=!1,O.awaitInstance().then(function(t){e.runtime=t,e.renderer=e.runtime.makeRenderer(e.canvas,u),e.canvas.width||e.canvas.height||e.resizeDrawingSurfaceToCanvas(),e.initData(a,h,d,c).then(function(){return e.setupRiveListeners()}).catch(function(t){console.error(t)})}).catch(function(t){console.error(t)})},f.prototype.setupRiveListeners=function(t){var e,i,n=this;this.shouldDisableRiveListeners||(e=(this.animator.stateMachines||[]).filter(function(t){return t.playing&&n.runtime.hasListeners(t.instance)}).map(function(t){return t.instance}),i=this.isTouchScrollEnabled,t&&"isTouchScrollEnabled"in t&&(i=t.isTouchScrollEnabled),this.eventCleanup=(0,w.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:e,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:i}))},f.prototype.removeRiveListeners=function(){this.eventCleanup&&this.eventCleanup()},f.prototype.initializeAudio=function(){var t,e=this;R.status==I.UNAVAILABLE&&null!=(t=this.artboard)&&t.hasAudio&&(R.add({type:j.AudioStatusChange,callback:function(){return e.onSystemAudioChanged()}}),R.establishAudio())},f.prototype.initData=function(i,n,r,o){var s;return S(this,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:return(t.trys.push([0,3,,4]),null!=this.riveFile)?[3,2]:(this.riveFile=new H({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:t.sent(),t.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(i,n,r,o),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:j.Load,data:null!=(s=this.src)?s:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return t.sent(),e="Problem loading file; may be corrupt!",console.warn(e),this.eventManager.fire({type:j.LoadError,data:e}),[2,Promise.reject(e)];case 4:return[2]}})})}
1,f.prototype.initArtboard=function(t,e,i,n){if(this.file){var r,o,t=t?this.file.artboardByName(t):this.file.defaultArtboard();if(t){if((this.artboard=t).volume=this._volume*R.systemVolume,this.artboard.animationCount()<1)throw this.eventManager.fire({type:j.LoadError,data:r="Artboard has no animations"}),r;this.animator=new B(this.runtime,this.artboard,this.eventManager),0<e.length||0<i.length?(o=e.concat(i),this.animator.initLinearAnimations(e,n),this.animator.initStateMachines(i,n)):o=[this.animator.atLeastOne(n,!1)],this.taskQueue.add({event:{type:n?j.Play:j.Pause,data:o}})}else r="Invalid artboard name or no default artboard",console.warn(r),this.eventManager.fire({type:j.LoadError,data:r})}},f.prototype.drawFrame=function(){this.startRendering()},f.prototype.draw=function(t,e){this.frameRequestId=null;var i=performance.now(),n=(this.lastRenderTime||(this.lastRenderTime=t),this.renderSecondTimer+=t-this.lastRenderTime,5e3<this.renderSecondTimer&&(this.renderSecondTimer=0,null!=e)&&e(),(t-this.lastRenderTime)/1e3);this.lastRenderTime=t;for(var r=0,o=this.animator.animations.filter(function(t){return t.playing||t.needsScrub}).sort(function(t){return t.needsScrub?-1:1});r<o.length;r++){var s=o[r];s.advance(n),s.instance.didLoop&&(s.loopCount+=1),s.apply(1)}for(var a=0,l=this.animator.stateMachines.filter(function(t){return t.playing});a<l.length;a++){var c=l[a],u=c.reportedEventCount();if(u)for(var h=0;h<u;h++){var d,f,p,m,g=c.reportedEventAt(h);g&&(g.type===T.OpenUrl?(this.eventManager.fire({type:j.RiveEvent,data:g}),this.automaticallyHandleEvents&&(d=document.createElement("a"),f=g.url,p=g.target,m=(0,w.sanitizeUrl)(f),f&&d.setAttribute("href",m),p&&d.setAttribute("target",p),m)&&m!==w.BLANK_URL&&d.click()):this.eventManager.fire({type:j.RiveEvent,data:g}))}c.advance(n)}this.artboard.advance(n);var e=this.renderer,v=(e.clear(),e.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(e),e.restore(),e.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(n),this.frameCount++,performance.now());for(this.frameTimes.push(v),this.durations.push(v-i);this.frameTimes[0]<=v-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.startRendering():(this.animator.isPaused||this.animator.isStopped)&&(this.lastRenderTime=0)},f.prototype.alignRenderer=function(){var t=this.renderer,e=this.runtime,i=this._layout,n=this.artboard;t.align(i.runtimeFit(e),i.runtimeAlignment(e),{minX:i.minX,minY:i.minY,maxX:i.maxX,maxY:i.maxY},n.bounds)},Object.defineProperty(f.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce(function(t,e){return t+e},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),f.prototype.cleanup=function(){var t;this.stopRendering(),this.cleanupInstances(),null!==this._observed&&W.remove(this._observed),null!=(t=this.riveFile)&&t.cleanup(),this.riveFile=null,this.file=null},f.prototype.deleteRiveRenderer=function(){var t;null!=(t=this.renderer)&&t.delete(),this.renderer=null},f.prototype.cleanupInstances=function(){null!==this.eventCleanup&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},f.prototype.retrieveTextRun=function(t){if(t)if(this.artboard){var e=this.artboard.textRun(t);if(e)return e;console.warn("Could not access a text run with name '".concat(t,"' in the '").concat(null==(e=this.artboard)?void 0:e.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))}else console.warn("Tried to access text run, but the Artboard is null");else console.warn("No text run name provided")},f.prototype.getTextRunValue=function(t){t=this.retrieveTextRun(t);return t?t.text:void 0},f.prototype.setTextRunValue=function(t,e){t=this.retrieveTextRun(t);t&&(t.text=e)},f.prototype.play=function(t,e){var i=this;t=N(t),this.readyForPlaying?(this.animator.play(t),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return i.play(t,e)}})},f.prototype.pause=function(t){var e=this;t=N(t),this.readyForPlaying?(this.eventCleanup&&this.eventCleanup(),this.animator.pause(t)):this.taskQueue.add({action:function(){return e.pause(t)}})},f.prototype.scrub=function(t,e){var i=this;t=N(t),this.readyForPlaying?(this.animator.scrub(t,e||0),this.drawFrame()):this.taskQueue.add({action:function(){return i.scrub(t,e)}})},f.prototype.stop=function(t){var e=this;t=N(t),this.readyForPlaying?(this.animator.stop(t),this.eventCleanup&&this.eventCleanup()):this.taskQueue.add({action:function(){return e.stop(t)}})},f.prototype.reset=function(t){var e=null==t?void 0:t.artboard,i=N(null==t?void 0:t.animations),n=N(null==t?void 0:t.stateMachines),t=null!=(t=null==t?void 0:t.autoplay)&&t;this.cleanupInstances(),this.initArtboard(e,i,n,t),this.taskQueue.process()},f.prototype.load=function(t){this.file=null,this.stop(),this.init(t)},Object.defineProperty(f.prototype,"layout",{get:function(){return this._layout},set:function(t){(this._layout=t).maxX&&t.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()}
1,enumerable:!1,configurable:!0}),f.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},f.prototype.resizeDrawingSurfaceToCanvas=function(t){var e,i;this.canvas instanceof HTMLCanvasElement&&window&&(e=(i=this.canvas.getBoundingClientRect()).width,i=i.height,t=t||window.devicePixelRatio||1,this.canvas.width=t*e,this.canvas.height=t*i,this.startRendering(),this.resizeToCanvas())},Object.defineProperty(f.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var t=[],e=0;e<this.artboard.animationCount();e++)t.push(this.artboard.animationByIndex(e).name);return t},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var t=[],e=0;e<this.artboard.stateMachineCount();e++)t.push(this.artboard.stateMachineByIndex(e).name);return t},enumerable:!1,configurable:!0}),f.prototype.stateMachineInputs=function(e){var t;return!this.loaded||null==(t=this.animator.stateMachines.find(function(t){return t.name===e}))?void 0:t.inputs},f.prototype.retrieveInputAtPath=function(t,e){if(t)if(this.artboard){var i=this.artboard.inputByPath(t,e);if(i)return i;console.warn("Could not access an input with name: '".concat(t,"', at path:'").concat(e,"'"))}else console.warn("Tried to access input: '".concat(t,"', at path: '").concat(e,"', but the Artboard is null"));else console.warn("No input name provided for path '".concat(e,"'"))},f.prototype.setBooleanStateAtPath=function(t,e,i){var n=this.retrieveInputAtPath(t,i);n&&(n.type===E.Boolean?n.asBool().value=e:console.warn("Input with name: '".concat(t,"', at path:'").concat(i,"' is not a boolean")))},f.prototype.setNumberStateAtPath=function(t,e,i){var n=this.retrieveInputAtPath(t,i);n&&(n.type===E.Number?n.asNumber().value=e:console.warn("Input with name: '".concat(t,"', at path:'").concat(i,"' is not a number")))},f.prototype.fireStateAtPath=function(t,e){var i=this.retrieveInputAtPath(t,e);i&&(i.type===E.Trigger?i.asTrigger().fire():console.warn("Input with name: '".concat(t,"', at path:'").concat(e,"' is not a trigger")))},Object.defineProperty(f.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(t){return t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(t){return t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(t){return!t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(t){return!t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),f.prototype.on=function(t,e){this.eventManager.add({type:t,callback:e})},f.prototype.off=function(t,e){this.eventManager.remove({type:t,callback:e})},f.prototype.unsubscribe=function(t,e){console.warn("This function is deprecated: please use `off()` instead."),this.off(t,e)},f.prototype.removeAllRiveEventListeners=function(t){this.eventManager.removeAll(t)},f.prototype.unsubscribeAll=function(t){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(t)},f.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},f.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this.draw.bind(this)):this.frameRequestId=requestAnimationFrame(this.draw.bind(this)))},f.prototype.enableFPSCounter=function(t){this.runtime.enableFPSCounter(t)},f.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(f.prototype,"contents",{get:function(){if(this.loaded){for(var t={artboards:[]},e=0;e<this.file.artboardCount();
1e++){for(var i=this.file.artboardByIndex(e),n={name:i.name,animations:[],stateMachines:[]},r=0;r<i.animationCount();r++){var o=i.animationByIndex(r);n.animations.push(o.name)}for(var s=0;s<i.stateMachineCount();s++){for(var a=i.stateMachineByIndex(s),l=a.name,c=new this.runtime.StateMachineInstance(a,i),u=[],h=0;h<c.inputCount();h++){var d=c.input(h);u.push({name:d.name,type:d.type})}n.stateMachines.push({name:l,inputs:u})}t.artboards.push(n)}return t}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(t){this._volume=t,this.artboard&&(this.artboard.volume=t*R.systemVolume)},enumerable:!1,configurable:!0}),f.missingErrorMessage="Rive source file or data buffer required",V=f,Y=function(i){return S(void 0,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:return e=new Request(i),[4,fetch(e)];case 1:return[4,t.sent().arrayBuffer()];case 2:return[2,t.sent()]}})})},N=function(t){return"string"==typeof t?[t]:t instanceof Array?t:[]},X={EventManager:P,TaskQueueManager:U},G=function(i){return new Promise(function(e){return O.getInstance(function(t){t.decodeAudio(i,e)})})},Z=function(i){return new Promise(function(e){return O.getInstance(function(t){t.decodeImage(i,e)})})},K=function(i){return new Promise(function(e){return O.getInstance(function(t){t.decodeFont(i,e)})})},m;function n(t){var e=p[t];return void 0!==e||(e=p[t]={exports:{}},D[t](e,e.exports,n)),e.exports}function s(t){var e;this.fit=null!=(e=null==t?void 0:t.fit)?e:v.Contain,this.alignment=null!=(e=null==t?void 0:t.alignment)?e:b.Center,this.minX=null!=(e=null==t?void 0:t.minX)?e:0,this.minY=null!=(e=null==t?void 0:t.minY)?e:0,this.maxX=null!=(e=null==t?void 0:t.maxX)?e:0,this.maxY=null!=(e=null==t?void 0:t.maxY)?e:0}function i(){}function t(t,e,i,n){this.animation=t,this.artboard=e,this.playing=n,this.loopCount=0,this.scrubTo=null,this.instance=new i.LinearAnimationInstance(t,e)}function e(t,e){this.type=t,this.runtimeInput=e}function r(t,e,i,n){this.stateMachine=t,this.playing=i,this.artboard=n,this.inputs=[],this.instance=new e.StateMachineInstance(t,n),this.initInputs(e)}function o(t,e,i,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this.runtime=t,this.artboard=e,this.eventManager=i,this.animations=n,this.stateMachines=r}function a(t){this.listeners=t=void 0===t?[]:t}function l(t){this.eventManager=t,this.queue=[]}function c(){var t=null!==F&&F.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=I.UNAVAILABLE,t}function u(){}function h(){var i=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var e=i._elementsMap.get(t.target);null!==e?e.onResize(0==t.target.clientWidth||0==t.target.clientHeight):i._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(i._onObservedEntry)},this._resizeObserver=new q(this._onObserved)}function d(t){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=t.src,this.buffer=t.buffer,t.assetLoader&&(this.assetLoader=t.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof t.enableRiveAssetCDN||t.enableRiveAssetCDN,this.eventManager=new P,t.onLoad&&this.on(j.Load,t.onLoad),t.onLoadError&&this.on(j.LoadError,t.onLoadError)}function f(t){var e,i=this;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._hasZeroSize=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(t){i._hasZeroSize=t,i._layout.maxX&&i._layout.maxY||i.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=t.canvas,t.canvas.constructor===HTMLCanvasElement&&(this._observed=W.add(this.canvas,this.onCanvasResize)),this.src=t.src,this.buffer=t.buffer,this.riveFile=t.riveFile,this.layout=null!=(e=t.layout)?e:new k,this.shouldDisableRiveListeners=!!t.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!t.isTouchScrollEnabled,this.automaticallyHandleEvents=!!t.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===t.enableRiveAssetCDN||t.enableRiveAssetCDN,this.eventManager=new P,t.onLoad&&this.on(j.Load,t.onLoad),t.onLoadError&&this.on(j.LoadError,t.onLoadError),t.onPlay&&this.on(j.Play,t.onPlay),t.onPause&&this.on(j.Pause,t.onPause),t.onStop&&this.on(j.Stop,t.onStop),t.onLoop&&this.on(j.Loop,t.onLoop),t.onStateChange&&this.on(j.StateChange,t.onStateChange),t.onAdvance&&this.on(j.Advance,t.onAdvance),t.onload&&!t.onLoad&&this.on(j.Load,t.onload),t.onloaderror&&!t.onLoadError&&this.on(j.LoadError,t.onloaderror),t.onplay&&!t.onPlay&&this.on(j.Play,t.onplay),t.onpause&&!t.onPause&&this.on(j.Pause,t.onpause),t.onstop&&!t.onStop&&this.on(j.Stop,t.onstop),t.onloop&&!t.onLoop&&this.on(j.Loop,t.onloop),t.onstatechange&&!t.onStateChange&&this.on(j.StateChange,t.onstatechange),t.assetLoader&&(this.assetLoader=t.assetLoader),this.taskQueue=new U(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:t.autoplay,animations:t.animations,stateMachines:t.stateMachines,artboard:t.artboard,useOffscreenRenderer:t.useOffscreenRenderer})}var D,p,m,g,v,b,L,y,w,M,S,_,k,O,E,C,T,x,z,j,A,B,P,I,$,F,U,R,q,W,H,V,Y,N,X,G,Z,K},"object"===Fi(i)&&"object"===Fi(t)?t.exports=e():void 0!==(e="function"==typeof(e=e)?e.apply(i,[]):e)&&(t.exports=e)}.call(this,e(78)(t))}
1,function(t,e,i){},function(t,e){var i,r={debug:0,iconsFileUrl:null,iconsVersion:!1},o="localStorage"in window&&null!==window.localStorage;$.fn.svgIconSetLoader=function(t){var n=$.extend({},r,t),e=this;return n.debug&&console.info("Plugin loaded: svgIconSetLoader"),n.iconsFileUrl?n.iconsVersion&&o&&localStorage.getItem("svgIconSetVer")===n.iconsVersion&&(i=localStorage.getItem("svgIconSet"))?(e.append(i),n.debug&&console.info("svgIconSetLoader: Icons loaded from Local Storage (ver: "+n.iconsVersion+")")):e.ajaxPromise=$.ajax({url:n.iconsFileUrl,cache:!1,dataType:"html",success:function(t){t?(e.append(t),n.debug&&console.info("svgIconSetLoader: Icons loaded asynchronously from file"),o&&n.iconsVersion&&(localStorage.setItem("svgIconSet",t),localStorage.setItem("svgIconSetVer",n.iconsVersion),n.debug)&&console.info("svgIconSetLoader: Icons saved to Local Storage (ver: "+n.iconsVersion+")")):n.debug&&console.error("svgIconSetLoader: No data received from icons file. Probably file is empty or damaged.")},error:function(t,e,i){n.debug&&console.error('svgIconSetLoader: Error "'+i+'" occured while accessing icons file "'+n.iconsFileUrl+'"')}}):n.debug&&console.error("svgIconSetLoader: path to icons file not set"),e}},function(t,e,i){var n;i=[i(38)],void 0!==(e="function"==typeof(n=function(c){"use strict";var s=window.Slick||{};(s=function(){var r=0;return function(t,e){var i,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,i=c(t).data("slick")||{},n.options=c.extend({},n.defaults,e,i),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=r++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})}
1,s.prototype.addSlide=s.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?c(t).appendTo(n.$slideTrack):i?c(t).insertBefore(n.$slides.eq(e)):c(t).insertAfter(n.$slides.eq(e)):!0===i?c(t).prependTo(n.$slideTrack):c(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},s.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},s.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?(i[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(i)):(i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i))},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},s.prototype.getNavTarget=function(){var t=this,e=t.options.asNavFor;return e&&null!==e&&(e=c(e).not(t.$slider)),e},s.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},s.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},s.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},s.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots){for(i.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(c("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},s.prototype.buildRows=function(){var t,e,i,n,r,o,s,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,r=Math.ceil(o.length/s),t=0;t<r;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var u=t*s+(e*a.options.slidesPerRow+i);o.get(u)&&c.appendChild(o.get(u))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(t,e){var i,n,r,o=this,s=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();
1if("window"===o.respondTo?r=l:"slider"===o.respondTo?r=a:"min"===o.respondTo&&(r=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){n=null;for(i in o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?r<o.breakpoints[i]&&(n=o.breakpoints[i]):r>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint?(n!==o.activeBreakpoint||e)&&(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),s=n):(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),s=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),s=n),t||!1===s||o.$slider.trigger("breakpoint",[o,s])}},s.prototype.changeSlide=function(t,e){var i,n,r,o=this,s=c(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),r=o.slideCount%o.options.slidesToScroll!=0,i=r?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":n=0===i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0===i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,e),s.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(t){var e,i;if(e=this.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},s.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
1slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},s.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",c.proxy(t.interrupt,t,!1))},s.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},s.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},s.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},s.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},s.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},s.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},s.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){return this.currentSlide},s.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},s.prototype.getLeft=function(t){var e,i,n,r,o=this,s=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?r=-1.5:1===o.options.slidesToShow&&(r=-2)),s=i*o.options.slidesToShow*r),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,s=(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,s=o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,s=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+s,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(o.$list.width()-n.outerWidth())/2)),e},s.prototype.getOption=s.prototype.slickGetOption=function(t){return this.options[t]},s.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,r=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)r.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var i,n,r=this;return n=!0===r.options.centerMode?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,!0===r.options.swipeToSlide?(r.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-n+c(e).outerWidth()/2>-1*r.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
1parseInt(t)}},e)},s.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},s.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),r=i.getNavigableIndexes().filter(function(t){return t>=0&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=r.indexOf(t);c(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&c(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+e})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=r[t];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.$slides.eq(t).attr("tabindex",0);i.activateADA()},s.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},s.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},s.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",c.proxy(t.interrupt,t,!1)))},s.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(t.setPosition)},s.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},s.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},s.prototype.lazyLoad=function(){function t(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=c(this).attr("data-srcset"),n=c(this).attr("data-sizes")||o.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0}
vendor: 7,112 bytes, line 1
1,100,function(){i&&(t.attr("srcset",i),n&&t.attr("sizes",n)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},r.src=e})}var e,i,n,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?n=(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),n=o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,n=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(i>0&&i--,n<=o.slideCount&&n++)),e=o.$slider.find(".slick-slide").slice(i,n),"anticipated"===o.options.lazyLoad)for(var r=i-1,s=n,a=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)r<0&&(r=o.slideCount-1),e=(e=e.add(a.eq(r))).add(a.eq(s)),r--,s++;t(e),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},s.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},s.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&c(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},s.prototype.prev=s.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(t){t.preventDefault()},s.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n,r,o,s=this,a=c("img[data-lazy]",s.$slider);a.length?(e=a.first(),i=e.attr("data-lazy"),n=e.attr("data-srcset"),r=e.attr("data-sizes")||s.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){n&&(e.attr("srcset",n),r&&e.attr("sizes",r)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,e,i]),s.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){s.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,i]),s.progressiveLazyLoad())},o.src=i):s.$slider.trigger("allImagesLoaded",[s])},s.prototype.refresh=function(t){var e,i,n=this;i=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>i&&(n.currentSlide=i),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),e=n.currentSlide,n.destroy(!0),c.extend(n,n.initials,{currentSlide:e}),n.init(),t||n.changeSlide({data:{message:"index",index:e}},!1)},s.prototype.registerBreakpoints=function(){var t,e,i,n=this,r=n.options.responsive||null;if("array"===c.type(r)&&r.length){n.respondTo=n.options.respondTo||"window";for(t in r)if(i=n.breakpoints.length-1,r.hasOwnProperty(t)){for(e=r[t].breakpoint;i>=0;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=r[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},s.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},s.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},s.prototype.setCSS=function(t){var e,i,n=this,r={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",r[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(r):(r={},!1===n.cssTransitions?(r[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(r)))},s.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},s.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}
1):c(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},s.prototype.setOption=s.prototype.slickSetOption=function(){var t,e,i,n,r,o=this,s=!1;if("object"===c.type(arguments[0])?(i=arguments[0],s=arguments[1],r="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],n=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)o.options[i]=n;else if("multiple"===r)c.each(i,function(t,e){o.options[t]=e});else if("responsive"===r)for(e in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[e]];else{for(t=o.options.responsive.length-1;t>=0;)o.options.responsive[t].breakpoint===n[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(n[e])}s&&(o.unload(),o.reinit())},s.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},s.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},s.prototype.setSlideClasses=function(t){var e,i,n,r,o=this;if(i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var s=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1+s,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-r),n+r).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},s.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;t-=1)e=t-1,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i+n.slideCount;t+=1)e=t,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},s.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},s.prototype.selectHandler=function(t){var e=this,i=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),n=parseInt(i.attr("data-slick-index"));
1n||(n=0),e.slideCount<=e.options.slidesToShow?e.slideHandler(n,!1,!0):e.slideHandler(n)},s.prototype.slideHandler=function(t,e,i){var n,r,o,s,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(s,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll
1!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),o=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(o),c.fadeSlide(r,function(){c.postSlide(r)})):c.postSlide(r),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(r)}):c.postSlide(r)}},s.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var t,e,i,n,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===r.options.rtl?"left":"right":n<=360&&n>=315?!1===r.options.rtl?"left":"right":n>=135&&n<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},s.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},s.prototype.swipeMove=function(t){var e,i,n,r,o,s,a=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),r=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(r=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*r:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*r,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*r),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},s.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},s.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,s.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},s.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},c.fn.slick=function(){var t,e,i=this,n=arguments[0],r=Array.prototype.slice.call(arguments,1),o=i.length;for(t=0;t<o;t++)if("object"==typeof n||void 0===n?i[t].slick=new s(i[t],n):e=i[t].slick[n].apply(i[t].slick,r),void 0!==e)return e;return i}})?n.apply(e,i):n)&&(t.exports=e)},function(t,e){t.exports=window.jQuery},function(t,e,i){var n=i(26);t.exports=function(){return n.Date.now()}},function(e,t,i){!function(t){t="object"==typeof t&&t&&t.Object===Object&&t;e.exports=t}.call(this,i(9))},function(t,e,i){var n=i(42),r=i(21),o=i(44),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=r(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=n(t);var e=a.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):s.test(t)?NaN:+t}},function(t,e,i){var n=i(43),r=/^\s+/;t.exports=function(t){return t&&t.slice(0,n(t)+1).replace(r,"")}},function(t,e){var i=/\s/;t.exports=function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}},function(t,e,i){var n=i(45),r=i(48);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==n(t)}},function(t,e,i){var n=i(27),r=i(46),o=i(47),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(s&&s in Object(t)?r:o)(t)}},function(t,e,i){var i=i(27),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{var n=!(t[a]=void 0)}catch(t){}var r=s.call(t);return n&&(e?t[a]=i:delete t[a]),r}},function(t,e){var i=Object.prototype.toString;t.exports=function(t){return i.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){var s=i(28),o=i(50),a=i(54),l=i(62),c=i(63);(t.exports=function(t,e){var i,n,r,o;return arguments.length<2||"string"!=typeof t?(o=e,e=t,t=null):o=arguments[2],s(t)?(i=c.call(t,"c"),n=c.call(t,"e"),r=c.call(t,"w")):n=!(i=r=!0),t={value:e,configurable:i,enumerable:n,writable:r},o?a(l(o),t):t}).gs=function(t,e,i){var n,r;return"string"!=typeof t?(r=i,i=e,e=t,t=null):r=arguments[3],s(e)?o(e)?s(i)?o(i)||(r=i,i=void 0):i=void 0:(r=e,e=i=void 0):e=void 0,t=s(t)?(n=c.call(t,"c"),c.call(t,"e")):!(n=!0),e={get:e,set:i,configurable:n,enumerable:t},r?a(l(r),e):e}},function(t,e,i){var n=i(51),r=/^\s*class[\s{/}]/,o=Function.prototype.toString;t.exports=function(t){return!!n(t)&&!r.test(o.call(t))}},function(t,e,i){var n=i(52);t.exports=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}}
1,function(t,e,i){var n=i(53);t.exports=function(t){if(!n(t))return!1;try{return t.constructor?t.constructor.prototype===t:!1}catch(t){return!1}}},function(t,e,i){var n=i(28),r={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!n(t)&&hasOwnProperty.call(r,typeof t)}},function(t,e,i){t.exports=i(55)()?Object.assign:i(56)},function(t,e,i){t.exports=function(){var t=Object.assign;return"function"==typeof t&&(t(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,i){var s=i(57),a=i(61),l=Math.max;t.exports=function(e,i){var n,t,r,o=l(arguments.length,2);for(e=Object(a(e)),r=function(t){try{e[t]=i[t]}catch(t){n=n||t}},t=1;t<o;++t)s(i=arguments[t]).forEach(r);if(void 0!==n)throw n;return e}},function(t,e,i){t.exports=i(58)()?Object.keys:i(59)},function(t,e,i){t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e,i){var n=i(22),r=Object.keys;t.exports=function(t){return r(n(t)?Object(t):t)}},function(t,e,i){t.exports=function(){}},function(t,e,i){var n=i(22);t.exports=function(t){if(n(t))return t;throw new TypeError("Cannot use null or undefined")}},function(t,e,i){var o=i(22),n=Array.prototype.forEach,s=Object.create;t.exports=function(t){var r=s(null);return n.call(arguments,function(t){if(o(t)){var e,i=Object(t),n=r;for(e in i)n[e]=i[e]}}),r}},function(t,e,i){t.exports=i(64)()?String.prototype.contains:i(65)},function(t,e,i){var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&!0===n.contains("dwa")&&!1===n.contains("foo")}},function(t,e,i){var n=String.prototype.indexOf;t.exports=function(t){return-1<n.call(this,t,arguments[1])}},function(t,e,i){t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e,i){var n=i(18),r=i(29),c=i(68),i=i(69),o=r.DOMImplementation,u=n.NAMESPACE,s=i.ParseError,h=i.XMLReader;function a(t){this.options=t||{locator:{}}}function d(){this.cdata=!1}function f(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function p(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function l(t,e,i){return"string"==typeof t?t.substr(e,i):t.length>=e+i||e?new java.lang.String(t,e,i)+"":t}function m(t,e){(t.currentElement||t.doc).appendChild(e)}a.prototype.parseFromString=function(t,e){var i=this.options,n=new h,r=i.domBuilder||new d,o=i.errorHandler,s=i.locator,a=i.xmlns||{},e=/\/x?html?$/.test(e),l=e?c.HTML_ENTITIES:c.XML_ENTITIES;return s&&r.setDocumentLocator(s),n.errorHandler=((n,t,r)=>{if(!n){if(t instanceof d)return t;n=t}var o={},s=n instanceof Function;function e(e){var i=n[e];!i&&s&&(i=2==n.length?function(t){n(e,t)}:n),o[e]=i?function(t){i("[xmldom "+e+"]\t"+t+p(r))}:function(){}}return r=r||{},e("warning"),e("error"),e("fatalError"),o})(o,r,s),n.domBuilder=i.domBuilder||r,e&&(a[""]=u.HTML),a.xml=a.xml||u.XML,t&&"string"==typeof t?n.parse(t,a,l):n.errorHandler.error("invalid doc source"),r.doc},d.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,i,n){var r=this.doc,o=r.createElementNS(t,i||e),s=n.length;m(this,o),this.currentElement=o,this.locator&&f(this.locator,o);for(var a=0;a<s;a++){var t=n.getURI(a),l=n.getValue(a),i=n.getQName(a),c=r.createAttributeNS(t,i);this.locator&&f(n.getLocator(a),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(t,e,i){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){t=this.doc.createProcessingInstruction(t,e);this.locator&&f(this.locator,t),m(this,t)},ignorableWhitespace:function(t,e,i){},characters:function(t,e,i){var n;(t=l.apply(this,arguments))&&(n=this.cdata?this.doc.createCDATASection(t):this.doc.createTextNode(t),this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator)&&f(this.locator,n)},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)}
1,comment:function(t,e,i){t=l.apply(this,arguments);t=this.doc.createComment(t);this.locator&&f(this.locator,t),m(this,t)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,i){var n=this.doc.implementation;n&&n.createDocumentType&&(n=n.createDocumentType(t,e,i),this.locator&&f(this.locator,n),m(this,n),this.doc.doctype=n)},warning:function(t){console.warn("[xmldom warning]\t"+t,p(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,p(this.locator))},fatalError:function(t){throw new s(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){d.prototype[t]=function(){return null}}),e.__DOMHandler=d,e.DOMParser=a,e.DOMImplementation=r.DOMImplementation,e.XMLSerializer=r.XMLSerializer},function(t,e,i){i=i(18).freeze;e.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=i
vendor: 28,755 bytes, line 1
1({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),e.entityMap=e.HTML_ENTITIES}
1,function(t,e,i){var A=i(18).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+i.source+n.source+"*(?::"+i.source+n.source+"*)?$"),P=0,I=1,$=2,R=3,N=4,D=5,L=6,M=7;function z(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,z)}function o(){}function B(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function F(t,e,i){for(var n=t.tagName,r=null,o=t.length;o--;){var s=t[o],a=s.qName,l=s.value,a=0<(u=a.indexOf(":"))?(c=s.prefix=a.slice(0,u),h=a.slice(u+1),"xmlns"===c&&h):(c=null,"xmlns"===(h=a)&&"");s.localName=h,!1!==a&&(null==r&&(r={},f(i,i={})),i[a]=r[a]=l,s.uri=A.XMLNS,e.startPrefixMapping(a,l))}for(var c,o=t.length;o--;)(c=(s=t[o]).prefix)&&("xml"===c&&(s.uri=A.XML),"xmlns"!==c)&&(s.uri=i[c||""]);var u,h=0<(u=n.indexOf(":"))?(c=t.prefix=n.slice(0,u),t.localName=n.slice(u+1)):(c=null,t.localName=n),d=t.uri=i[c||""];if(e.startElement(d,h,n,t),!t.closed)return t.currentNSMap=i,t.localNSMap=r,1;if(e.endElement(d,h,n),r)for(c in r)Object.prototype.hasOwnProperty.call(r,c)&&e.endPrefixMapping(c)}function f(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function U(){this.attributeNames={}}(z.prototype=new Error).name=z.name,o.prototype={parse:function(t,e,i){var n=this.domBuilder;n.startDocument(),f(e,e={}),((i,t,n,r,o)=>{function s(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?65535<(e=parseInt(e.substr(1).replace("x","0x")))?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):String.fromCharCode(e):(o.error("entity not found:"+t),t)}function e(t){var e;p<t&&(e=i.substring(p,t).replace(/&#?\w+;/g,s),h&&a(p),r.characters(e,0,t-p),p=t)}function a(t,e){for(;c<=t&&(e=u.exec(i));)l=e.index,c=l+e[0].length,h.lineNumber++;h.columnNumber=t-l+1}for(var l=0,c=0,u=/.*(?:\r\n?|\n)|.*$/g,h=r.locator,d=[{currentNSMap:t}],f={},p=0;;){try{var m,g,v=i.indexOf("<",p);if(v<0)return i.substr(p).match(/^\s*$/)||(m=r.doc,g=m.createTextNode(i.substr(p)),m.appendChild(g),r.currentElement=g);switch(p<v&&e(v),i.charAt(v+1)){case"/":var b=i.indexOf(">",v+3),y=i.substring(v+2,b).replace(/[ \t\n\r]+$/g,""),w=d.pop(),S=(b<0?(y=i.substring(v+2).replace(/[\s<].*/,""),o.error("end tag name: "+y+" is not complete:"+w.tagName),b=v+1+y.length):y.match(/\s</)&&(y=y.replace(/[\s<].*/,""),o.error("end tag name: "+y+" maybe not complete"),b=v+1+y.length),w.localNSMap),_=w.tagName==y;if(_||w.tagName&&w.tagName.toLowerCase()==y.toLowerCase()){if(r.endElement(w.uri,w.localName,y),S)for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&r.endPrefixMapping(k);_||o.fatalError("end tag name: "+y+" is not match the current start tagName:"+w.tagName)}else d.push(w);b++;break;case"?":h&&a(v),b=((t,e,i)=>{var n=t.indexOf("?>",e);if(n){t=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(t)return t[0].length,i.processingInstruction(t[1],t[2]),n+2}return-1})(i,v,r);break;case"!":h&&a(v),b=((t,e,i,n)=>{var r,o;return"-"===t.charAt(e+2)?"-"===t.charAt(e+3)?(o=t.indexOf("--\x3e",e+4),e<o?(i.comment(t,e+4,o-e-4),o+3):(n.error("Unclosed comment"),-1)):-1:"CDATA["==t.substr(e+3,6)?(o=t.indexOf("]]>",e+9),i.startCDATA(),i.characters(t,e+9,o-e-9),i.endCDATA(),o+3):1<(o=(n=((t,e)=>{var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);i=r.exec(t);)if(n.push(i),i[1])return n})(t,e)).length)&&/!doctype/i.test(n[0][0])?(t=n[1][0],r=e=!1,3<o&&(/^public$/i.test(n[2][0])?(e=n[3][0],r=4<o&&n[4][0]):/^system$/i.test(n[2][0])&&(r=n[3][0])),n=n[o-1],i.startDTD(t,e,r),i.endDTD(),n.index+n[0].length):-1})(i,v,r,o);break;default:h&&a(v);var O=new U,E=d[d.length-1].currentNSMap,b=((t,e,n,i,r,o)=>{function s(t,e,i){n.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),n.addValue(t,e,i)}for(var a,l=++e,c=P;;){var u=t.charAt(l);switch(u){case"=":if(c===I)a=t.slice(e,l);else if(c!==$)throw new Error("attribute equal must after attrName");c=R;break;case"'":case'"':if(c===R||c===I){if(c===I&&(o.warning('attribute value must after "="'),a=t.slice(e,l)),e=l+1,!(0<(l=t.indexOf(u,e))))throw new Error("attribute value no end '"+u+"' match");h=t.slice(e,l).replace(/&#?\w+;/g,r),s(a,h,e-1)}else{if(c!=N)throw new Error('attribute value must after "="');h=t.slice(e,l).replace(/&#?\w+;/g,r),s(a,h,e),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),e=l+1}c=D;break;case"/":switch(c){case P:n.setTagName(t.slice(e,l));case D:case L:case M:c=M,n.closed=!0;case N:case I:break;case $:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),c==P&&n.setTagName(t.slice(e,l)),l;case">":switch(c){case P:n.setTagName(t.slice(e,l));case D:case L:case M:break;case N:case I:"/"===(h=t.slice(e,l)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case $:c===$&&(h=a),c==N?(o.warning('attribute "'+h+'" missed quot(")!'),s(a,h.replace(/&#?\w+;/g,r),e)):(A.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case R:throw new Error("attribute value missed!!")}return l;case"Â":u=" ";default:if(u<=" ")switch(c){case P:n.setTagName(t.slice(e,l)),c=L;break;case I:a=t.slice(e,l),c=$;break;case N:var h=t.slice(e,l).replace(/&#?\w+;/g,r);o.warning('attribute "'+h+'" missed quot(")!!'),s(a,h,e);case D:c=L}else switch(c){case $:n.tagName;A.isHTML(i[""])&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),s(a,a,e),e=l,c=I;break;case D:o.warning('attribute space is required"'+a+'"!!');case L:c=I,e=l;break;case R:c=N,e=l;break;case M:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}})(i,v,O,E,s,o),C=O.length;if(!O.closed&&((t,e,i,n)=>{var r=n[i];return null==r&&((r=t.lastIndexOf("</"+i+">"))<e&&(r=t.lastIndexOf("</"+i)),n[i]=r),r<e})(i,b,O.tagName,f)&&(O.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),h&&C){for(var T=B(h,{}),x=0;x<C;x++){var j=O[x];a(j.offset),j.locator=B(h,{})}
1r.locator=T,F(O,r,E)&&d.push(O),r.locator=h}else F(O,r,E)&&d.push(O);A.isHTML(O.uri)&&!O.closed?b=((t,e,i,n,r)=>{if(/^(?:script|textarea)$/i.test(i)){var o=t.indexOf("</"+i+">",e),t=t.substring(e+1,o);if(/[&<]/.test(t))return/^script$/i.test(i)?r.characters(t,0,t.length):(t=t.replace(/&#?\w+;/g,n),r.characters(t,0,t.length)),o}return e+1})(i,b,O.tagName,s,r):b++}}catch(t){if(t instanceof z)throw t;o.error("element parse error: "+t),b=-1}p<b?p=b:e(Math.max(v,p)+1)}})(t,e,i,n,this.errorHandler),n.endDocument()}},U.prototype={setTagName:function(t){if(!r.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,i){if(!r.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:i}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=o,e.ParseError=z},function(t,e,i){function n(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}Object.defineProperty(e,"__esModule",{value:!0}),e.createElement=n,e.default={createElement:n}},function(t,e,i){function n(o,s){function t(t){for(var e=s.length-1;0<=e;e--){var i=s[e],n=t.clientX,r=t.clientY;if(t.touches&&t.touches.length&&(n=t.touches[0].clientX,r=t.touches[0].clientY),((t,e,i,n)=>{var o=e.getBoundingClientRect();function r(t,e,i){var n=t.top-o.top,r=t.left-o.left;return n<=i&&r<=e&&i<n+t.height&&e<r+t.width}if(r(t.getBoundingClientRect(),i,n))for(var s=t.getClientRects(),a=0,l=s.length;a<l;a++)if(r(s[a],i,n))return 1})(i,o,n,r)){i.dispatchEvent(a(t));break}}}if("iframe"===o.nodeName||"IFRAME"===o.nodeName)try{this.target=o.contentDocument}catch(t){this.target=o}else this.target=o;for(var e=["mouseup","mousedown","click","touchstart"],i=0;i<e.length;i++)this.target.addEventListener(e[i],t,!1)}function a(e){var i=Object.assign({},e,{bubbles:!1});try{return new MouseEvent(e.type,i)}catch(t){var n=document.createEvent("MouseEvents");return n.initMouseEvent(e.type,!1,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),n}}Object.defineProperty(e,"__esModule",{value:!0}),e.proxyMouse=n,e.clone=a,e.default={proxyMouse:n}},function(t,I,$){!function(t){ 2/*! 3 * The buffer module from node.js, for the browser. 4 * 5 * @author Feross Aboukhadijeh <http://feross.org> 6 * @license MIT 7 */ 8var O=$(73),o=$(74),a=$(75);function i(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=h.prototype:(t=null===t?new h(e):t).length=e,t}function h(t,e,i){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(t,e,i);if("number"!=typeof t)return n(this,t,e,i);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}function n(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var r=t,o=e,s=i;if(o.byteLength,s<0||o.byteLength<s)throw new RangeError("'offset' is out of bounds");if(o.byteLength<s+(n||0))throw new RangeError("'length' is out of bounds");return o=void 0===s&&void 0===n?new Uint8Array(o):void 0===n?new Uint8Array(o,s):new Uint8Array(o,s,n),h.TYPED_ARRAY_SUPPORT?(r=o).__proto__=h.prototype:r=c(r,o),r}if("string"!=typeof e){s=t,n=e;if(h.isBuffer(n))return o=0|u(n.length),0!==(s=l(s,o)).length&&n.copy(s,0,0,o),s;if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(t=>t!=t)(n.length)?l(s,0):c(s,n);if("Buffer"===n.type&&a(n.data))return c(s,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}r=t,n=e,t=i;if(h.isEncoding(t="string"==typeof t&&""!==t?t:"utf8"))return e=0|d(n,t),r=(n=(r=l(r,e)).write(n,t))!==e?r.slice(0,n):r;throw new TypeError('"encoding" must be a valid string encoding')}function r(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,e){if(r(e),t=l(t,e<0?0:0|u(e)),!h.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function c(t,e){var i=e.length<0?0:0|u(e.length);t=l(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function u(t){if(i()<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function d(t,e){if(h.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 16,878 bytes, line 8
8(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t:t).length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return A(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function e(t,e,i){var n,r=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var o=this,s=e,a=i,l=o.length;(!a||a<0||l<a)&&(a=l);for(var c="",u=s=!s||s<0?0:s;u<a;++u)c+=(t=>t<16?"0"+t.toString(16):t.toString(16))(o[u]);return c;case"utf8":case"utf-8":return E(this,e,i);case"ascii":var h=this,l=e,d=i,f="";d=Math.min(h.length,d);for(var p=l;p<d;++p)f+=String.fromCharCode(127&h[p]);return f;case"latin1":case"binary":var m=this,s=e,g=i,v="";g=Math.min(m.length,g);for(var b=s;b<g;++b)v+=String.fromCharCode(m[b]);return v;case"base64":return y=this,n=i,0===(w=e)&&n===y.length?O.fromByteArray(y):O.fromByteArray(y.slice(w,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var y=e,w=i,S=this.slice(y,w),_="",k=0;k<S.length;k+=2)_+=String.fromCharCode(S[k]+256*S[k+1]);return _;default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function f(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function p(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):2147483647<i?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,(i=(i=isNaN(i)?r?0:t.length-1:i)<0?t.length+i:i)>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:m(t,e,i,n,r);if("number"==typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(r?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):m(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,i,n,r){var o=1,s=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r)for(var c=-1,u=i;u<s;u++)if(l(t,u)===l(e,-1===c?0:u-c)){if(u-(c=-1===c?u:c)+1===a)return c*o}else-1!==c&&(u-=u-c),c=-1;else for(u=i=s<i+a?s-a:i;0<=u;u--){for(var h=!0,d=0;d<a;d++)if(l(t,u+d)!==l(e,d)){h=!1;break}if(h)return u}return-1}function g(t,e,i,n){return P((t=>{for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e})(e),t,i,n)}function v(t,e,i,n){return P(((t,e)=>{for(var i,n,r=[],o=0;o<t.length&&!((e-=2)<0);++o)i=t.charCodeAt(o),n=i>>8,r.push(i%256),r.push(n);return r})(e,t.length-i),t,i,n)}function E(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o,s,a,l,c=t[r],u=null,h=239<c?4:223<c?3:191<c?2:1;if(r+h<=i)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[r+1]))&&127<(l=(31&c)<<6|63&o)&&(u=l);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&2047<(l=(15&c)<<12|(63&o)<<6|63&s)&&(l<55296||57343<l)&&(u=l);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)&&l<1114112&&(u=l)}null===u?(u=65533,h=1):65535<u&&(n.push((u-=65536)>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=h}var d=n,f=d.length;if(f<=b)return String.fromCharCode.apply(String,d);for(var p="",m=0;m<f;)p+=String.fromCharCode.apply(String,d.slice(m,m+=b));return p}I.Buffer=h,I.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},I.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:(()=>{try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}})(),I.kMaxLength=i(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,i){return n(null,t,e,i)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol)&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}),h.alloc=function(t,e,i){return n=null,e=e,i=i,r(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?l(n,t).fill(e,i):l(n,t).fill(e):l(n,t);var n},h.allocUnsafe=function(t){return s(null,t)},h.allocUnsafeSlow=function(t){return s(null,t)},h.isBuffer=function(t){return!(null==t||!t._isBuffer)},h.compare=function(t,e){if(!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;for(var i=h.allocUnsafe(e),n=0,r=0;r<t.length;++r){var o=t[r];if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},h.byteLength=d,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?E(this,0,t):e.apply(this,arguments)},h.prototype.equals=function(t){if(h.isBuffer(t))return this===t||0===h.compare(this,t);throw new TypeError("Argument must be a Buffer")},h.prototype.inspect=function(){var t="",e=I.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e)&&(t+=" ... "),"<Buffer "+t+">"},h.prototype.compare=function(t,e,i,n,r){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),(e=void 0===e?0:e)<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(r<=n&&i<=e)return 0;if(r<=n)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(n,r),c=t.slice(e,i),u=0;u<a;++u)if(l[u]!==c[u]){o=l[u],s=c[u];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},h.prototype.indexOf=function(t,e,i){return p(this,t,e,i,!0)},h.prototype.lastIndexOf=function(t,e,i){return p(this,t,e,i,!1)},h.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||r<i)&&(i=r),0<t.length&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,s,a,l=!1;;)switch(n){case"hex":var c=this,u=t,h=e,d=i,f=(h=Number(h)||0,c.length-h);if((!d||f<(d=Number(d)))&&(d=f),(f=u.length)%2!=0)throw new TypeError("Invalid hex string");f/2<d&&(d=f/2);for(var p=0;p<d;++p){var m=parseInt(u.substr(2*p,2),16);if(isNaN(m))return p;c[h+p]=m}return p;case"utf8":case"utf-8":return f=e,a=i,P(j(t,(s=this).length-f),s,f,a);case"ascii":return g(this,t,e,i);case"latin1":case"binary":return g(this,t,e,i);case"base64":return s=this,a=e,o=i,P(A(t),s,a,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,t,e,i);default:if(l)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var b=4096;function y(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(i<t+e)throw new RangeError("Trying to access beyond buffer length")}function w(t,e,i,n,r,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r<e||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function S(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function _(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function k(t,e,i,n){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function C(t,e,i,n,r){return r||k(t,0,i,4),o.write(t,e,i,n,23,4),i+4}function T(t,e,i,n,r){return r||k(t,0,i,8),o.write(t,e,i,n,52,8),i+8}h.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),e<t&&(e=t),h.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=h.prototype;else for(var n=e-t,r=new h(n,void 0),o=0;o<n;++o)r[o]=this[o+t];return r},h.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},h.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var n=this[t+--e],r=1;0<e&&(r*=256);)n+=this[t+--e]*r;return n},h.prototype.readUInt8=function(t,e){return e||y(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||y(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||y(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return(r*=128)<=n&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var n=e,r=1,o=this[t+--n];0<n&&(r*=256);)o+=this[t+--n]*r;return(r*=128)<=o&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},h.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},h.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,i,n){t=+t,e|=0,i|=0,n||w(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},h.prototype.writeUIntBE=function(t,e,i,n){t=+t,e|=0,i|=0,n||w(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[e+r]=255&t;0<=--r&&(o*=256);)this[e+r]=t/o&255;return e+i},h.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):S(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,i,n){t=+t,e|=0,n||w(this,t,e,i,(n=Math.pow(2,8*i-1))-1,-n);var r=0,o=1,s=0;for(this[e]=255&t;++r<i&&(o*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/o>>0)-s&255;return e+i},h.prototype.writeIntBE=function(t,e,i,n){t=+t,e|=0,n||w(this,t,e,i,(n=Math.pow(2,8*i-1))-1,-n);var r=i-1,o=1,s=0;for(this[e+r]=255&t;0<=--r&&(o*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/o>>0)-s&255;return e+i},h.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},h.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):S(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,i){return C(this,t,e,!0,i)},h.prototype.writeFloatBE=function(t,e,i){return C(this,t,e,!1,i)},h.prototype.writeDoubleLE=function(t,e,i){return T(this,t,e,!0,i)},h.prototype.writeDoubleBE=function(t,e,i){return T(this,t,e,!1,i)},h.prototype.copy=function(t,e,i,n){if(i=i||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),(n=0<n&&n<i?i:n)===i)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var r,o=(n=t.length-e<n-i?t.length-e+i:n)-i;if(this===t&&i<e&&e<n)for(r=o-1;0<=r;--r)t[r+e]=this[r+i];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},h.prototype.fill=function(t,e,i,n){if("string"==typeof t){var r;if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length&&(r=t.charCodeAt(0))<256&&(t=r),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(!(i<=e))if(e>>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a<i;++a)this[a]=t;else for(var o=h.isBuffer(t)?t:j(new h(t,n).toString()),s=o.length,a=0;a<i-e;++a)this[a+e]=o[a%s];return this};var x=/[^+\/0-9A-Za-z-_]/g;function j(t,e){e=e||1/0;for(var i,n=t.length,r=null,o=[],s=0;s<n;++s){if(55295<(i=t.charCodeAt(s))&&i<57344){if(!r){if(56319<i){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&o.push(239,191,189);continue}r=i;continue}if(i<56320){-1<(e-=3)&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&-1<(e-=3)&&o.push(239,191,189);if(r=null,i<128){if(--e<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function A(t){return O.toByteArray((t=>{var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(x,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t})(t))}function P(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}.call(this,$(9))}
8,function(t,e,i){e.byteLength=function(t){var t=u(t),e=t[0],t=t[1];return 3*(e+t)/4-t},e.toByteArray=function(t){var e,i,n=u(t),r=n[0],n=n[1],o=new c(((t,e)=>3*(t+e)/4-e)(r,n)),s=0,a=0<n?r-4:r;for(i=0;i<a;i+=4)e=l[t.charCodeAt(i)]<<18|l[t.charCodeAt(i+1)]<<12|l[t.charCodeAt(i+2)]<<6|l[t.charCodeAt(i+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===n&&(e=l[t.charCodeAt(i)]<<2|l[t.charCodeAt(i+1)]>>4,o[s++]=255&e);1===n&&(e=l[t.charCodeAt(i)]<<10|l[t.charCodeAt(i+1)]<<4|l[t.charCodeAt(i+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,r=[],o=0,s=i-n;o<s;o+=16383)r.push(((t,e,i)=>{for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push((t=>a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t])(n));return r.join("")})(t,o,s<o+16383?s:o+16383));1==n?(e=t[i-1],r.push(a[e>>2]+a[e<<4&63]+"==")):2==n&&(e=(t[i-2]<<8)+t[i-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return r.join("")};for(var a=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,o=n.length;r<o;++r)a[r]=n[r],l[n.charCodeAt(r)]=r;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");t=t.indexOf("="),e=(t=-1===t?e:t)===e?0:4-t%4;return[t,e]}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e){ 9/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 10e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<<a)-1,c=l>>1,u=-7,h=i?r-1:0,d=i?-1:1,r=t[e+h];for(h+=d,o=r&(1<<-u)-1,r>>=-u,u+=a;0<u;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;0<u;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(r?-1:1);s+=Math.pow(2,n),o-=c}return(r?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,l=8*o-r-1,c=(1<<l)-1,u=c>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,f=n?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-s))<1&&(s--,n*=2),2<=(e+=1<=s+u?h/n:h*Math.pow(2,1-u))*n&&(s++,n/=2),c<=s+u?(a=0,s=c):1<=s+u?(a=(e*n-1)*Math.pow(2,r),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),s=0));8<=r;t[i+d]=255&a,d+=f,a/=256,r-=8);for(s=s<<r|a,l+=r;0<l;t[i+d]=255&s,d+=f,s/=256,l-=8);t[i+d-f]|=128*o}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,r,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},r.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(77),r.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,r.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(9))},function(t,e,i){!function(t,e){function o(t){delete l[t]}function s(t){if(c)setTimeout(s,0,t);else{var e=l[t];if(e){c=!0;try{var i=e,n=i.callback,r=i.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(a,r)}}finally{o(t),c=!1}}}}function i(){function t(t){t.source===n&&"string"==typeof t.data&&0===t.data.indexOf(e)&&s(+t.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";n.addEventListener?n.addEventListener("message",t,!1):n.attachEvent("onmessage",t),h=function(t){n.postMessage(e+t,"*")}}var n,a,r,l,c,u,h,d,f;(n="undefined"==typeof self?void 0===t?this:t:self).setImmediate||(r=1,c=!(l={}),u=n.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(n))&&t.setTimeout?t:n,"[object process]"==={}.toString.call(n.process)?h=function(t){e.nextTick(function(){s(t)})}:(()=>{var t,e;return n.postMessage&&!n.importScripts&&(t=!0,e=n.onmessage,n.onmessage=function(){t=!1},n.postMessage("","*"),n.onmessage=e,t)})()?i():h=n.MessageChannel?((f=new MessageChannel).port1.onmessage=function(t){s(t.data)},function(t){f.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(d=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){s(t),e.onreadystatechange=null,d.removeChild(e),e=null},d.appendChild(e)}):function(t){setTimeout(s,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return l[r]={callback:t,args:e},h(r),r++},t.clearImmediate=o)}.call(this,i(9),i(30))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,function(e,i,t){t.r(i);t(35),t(36),t(37);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}
10finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||((t,e)=>{var i;if(t)return"string"==typeof t?B(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?B(t,e):void 0})(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function F(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function U(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=W(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function q(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,W(n.key),n)}}function W(t){t=((t,e)=>{if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=n(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==n(t)?t:t+""}var H=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.config=U({},{numberSelector:".js-animated-counter__number",isOver9:"is-over-9",isOver99:"is-over-99",isNegative:"is-negative"}),this.parent=$(t),this.number=this.parent.find(this.config.numberSelector),this.type=this.number.data("type"),this.initialNumber=this.number.data("initial-number")||0,this.animationSpeed=this.number.data("animation-speed")||2e3,this.textValue=this.number.text(),this.numberValue=Number(this.textValue),this.absoluteValue=Math.abs(this.numberValue),this.isOver9=9<this.absoluteValue&&this.absoluteValue<100,this.isOver99=99<this.absoluteValue,this.isNegative=this.numberValue<0,this.hookEvents()}return t=e,(i=[{key:"hookEvents",value:function(){this.isOver9&&this.parent.addClass(this.config.isOver9),this.isOver99&&this.parent.addClass(this.config.isOver99),this.isNegative&&this.parent.addClass(this.config.isNegative),"fraction"===this.type?this.formatFraction():this.createObserver()}},{key:"createObserver",value:function(){var i=this;new IntersectionObserver(function(t,e){t.forEach(function(t){!t.isIntersecting||isNaN(i.numberValue)||(i.animate(),e.unobserve(t.target))})},{root:null,rootMargin:"0px",threshold:.3}).observe(this.parent[0])}},{key:"roundToNearest",value:function(t,e){e=Math.pow(10,e);return Math.round(t*e)/e}},{key:"formatNumber",value:function(t){var e,t="decimal"===this.type?t.toFixed(1):t.toString();return"decimal"===this.type&&t.includes(".")?(e=t.split("."),"<b>".concat(e[0],'<span class="f-gradient-brand">.</span>').concat(e[1],"</b>")):"<b>".concat(t,"</b>")}},{key:"formatFraction",value:function(){var t,e=this.number.text();e.includes("/")&&(t=(e=z(e.split("/"),2))[0],e=e[1],t="<b>".concat(t,'<span class="f-gradient-brand">/</span>').concat(e,"</b>"),this.number.html(t))}},{key:"setNumberContent",value:function(t){"fraction"===this.type?this.formatFraction():(t=this.formatNumber(t),this.number.html(t))}},{key:"animate",value:function(){var e=this,i=this.initialNumber,n=this.numberValue,r="decimal"===this.type?.1:1,o=i<n,t=Math.ceil(Math.abs(n-i)/r),t=this.animationSpeed/t,s=setInterval(function(){o?i+=r:i-=r;var t=e.roundToNearest(i,"decimal"===e.type?1:0);o&&n<=t||!o&&t<=n?(e.setNumberContent(e.roundToNearest(n,"decimal"===e.type?1:0)),clearInterval(s)):e.setNumberContent(t)},t)}}
10])&&q(t.prototype,i),n&&q(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n})(),i=t(11),V=t.n(i);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function X(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Z(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function G(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z(n.key),n)}}function Z(t){t=((t,e)=>{if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=r(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==r(t)?t:t+""}function l(n){function t(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];clearTimeout(r),r=setTimeout(function(){return n.apply(void 0,e)},o)}var r,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;return t.cancel=function(){clearTimeout(r)},t}var K=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config=X(X({},{debounceTime:50,contentElement:".js-article",activeClass:"is-active"}),e),this.breakpoint=t,this.activeContent=!1,this.$contentElementList=$(this.config.contentElement),this.hookEvents()}return t=i,(e=[{key:"hookEvents",value:function(){var t=this;$("body").on("click",function(){t.$contentElementList.removeClass(t.config.activeClass)}),this.$contentElementList.on("click",this.handleContentClick.bind(this)),$(window).on("resize",V()(this.handleResize.bind(this),this.config.debounceTime))}},{key:"handleContentClick",value:function(){var t;window.innerWidth>=this.breakpoint||(t=$(event.currentTarget).hasClass(this.config.activeClass),this.$contentElementList.removeClass(this.config.activeClass),t?this.activeContent=!1:($(event.currentTarget).toggleClass(this.config.activeClass),this.activeContent=!0),event.stopPropagation())}},{key:"handleResize",value:function(){this.activeContent&&(this.$contentElementList.removeClass(this.config.activeClass),this.activeContent=!1)}}])&&G(t.prototype,e),n&&G(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function J(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=et(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function tt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,et(n.key),n)}}function et(t){t=((t,e)=>{if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=o(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==o(t)?t:t+""}var it=(()=>{function o(t,e,i,n,r){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.config=J(J({},{debounceTime:50,contentElement:".js-article"}),r),this.sliderElement=$(t),this.breakpointTablet=e,this.breakpointMedium=i,this.breakpointLaptop=n,this.activeSlider=!1,this.contentElementList=this.sliderElement.find(this.config.contentElement),this.$contentElementList=$(this.contentElementList),this.slidesCount=this.$contentElementList.length,this.enableOnDesktop=this.sliderElement.data("enable-on-desktop"),this.enableOnDesktop&&1===this.enableOnDesktop?this.unslickBreakpoint=!1:this.unslickBreakpoint=this.breakpointLaptop,this.hookEvents()}return t=o,(e=[{key:"hookEvents",value:function(){this.sliderInit(),$(window).on("resize",l(this.sliderInit.bind(this),this.config.debounceTime))}},{key:"sliderInit",value:function(){var t=window.innerWidth;0!==this.slidesCount&&(this.unslickBreakpoint?!this.activeSlider&&t<this.unslickBreakpoint?(this.sliderElement.slick({arrows:!1,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,variableWidth:!0,responsive:[{breakpoint:this.breakpointTablet-1,settings:{slidesToShow:2,variableWidth:!1}},{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:3,variableWidth:!1}},{breakpoint:this.unslickBreakpoint-1,settings:"unslick"}]}),this.activeSlider=!0):this.activeSlider&&t>=this.unslickBreakpoint&&(this.sliderElement.hasClass("slick-initialized")&&this.sliderElement.slick("unslick"),this.activeSlider=!1):this.sliderElement.hasClass("slick-initialized")||this.sliderElement.slick({arrows:!1,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,variableWidth:!0,responsive:[{breakpoint:this.breakpointTablet-1,settings:{slidesToShow:2,variableWidth:!1}},{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:3,variableWidth:!1}},{breakpoint:this.breakpointLaptop-1,settings:{slidesToShow:4,variableWidth:!1}}]}))}}])&&tt(t.prototype,e),i&&tt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function rt(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?nt(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=st(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ot(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,st(n.key),n)}}function st(t){t=((t,e)=>{if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=s(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==s(t)?t:t+""}var at=(()=>{function n(t,e,i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.config=rt(rt({},{animationDuration:18e3,slideSelector:".js-banner-slider__slide",activeClass:"is-active",blurredClass:"is-blurred",progressBarSelector:".o-progress-bar__fill",nextSelector:".js-banner-slider__next",prevSelector:".js-banner-slider__prev"}),i),this.$container=$(t),this.$slides=this.$container.find(this.config.slideSelector),this.currentIndex=0,this.interval=null,this.progressInterval=null,this.breakpoint=e,this.init()}return t=n,(e=[{key:"init",value:function(){this.checkViewport(),$(window).on("resize",this.checkViewport.bind(this))}},{key:"checkViewport",value:function(){window.innerWidth<this.breakpoint?this.initSlick():(this.destroySlick(),this.initCustomSlider())}},{key:"initCustomSlider",value:function(){this.$container.hasClass("custom-slider-initialized")||(this.activateSlide(),this.start(),this.bindEvents(),this.$container.addClass("custom-slider-initialized"))}},{key:"destroyCustomSlider",value:function(){this.stop(),this.$container.off("click",this.config.nextSelector),this.$container.off("click",this.config.prevSelector),this.$slides.off(),this.$container.removeClass("custom-slider-initialized")}},{key:"initSlick",value:function(){var t,e,r=this;this.$container.hasClass("slick-initialized")||(this.destroyCustomSlider(),t=this.$container.find(this.config.nextSelector),e=this.$container.find(this.config.prevSelector),this.$container.slick({autoplay:!1,infinite:!0,arrows:!0,nextArrow:t,prevArrow:e}),this.startProgressBar(),t.off("click").on("click",function(){r.$container.slick("slickNext")}),e.off("click").on("click",function(){r.$container.slick("slickPrev")}),this.$container.off("beforeChange afterChange"),this.$container.on("beforeChange",function(t,e,i,n){r.resetProgressBar(n)}),this.$container.on("afterChange",function(){r.startProgressBar()}),this.$container.addClass("slick-initialized"))}},{key:"destroySlick",value:function(){this.$container.hasClass("slick-initialized")&&(this.progressInterval&&(clearTimeout(this.progressInterval),this.progressInterval=null),this.$container.off("beforeChange afterChange"),this.$container.find(this.config.nextSelector).off("click"),this.$container.find(this.config.prevSelector).off("click"),this.$container.slick("unslick"),this.$container.removeClass("slick-initialized"))}},{key:"bindEvents",value:function(){var i=this;this.$container.on("click",this.config.nextSelector,function(){i.stop(),i.nextSlide(),i.start()}),this.$container.on("click",this.config.prevSelector,function(){i.stop(),i.previousSlide(),i.start()}),this.$slides.on("click",function(t){i.stop();t=i.$slides.index($(t.currentTarget));t!==i.currentIndex&&(i.currentIndex=t,i.activateSlide()),i.start()}),this.$slides.on("mouseenter",function(t){$(t.currentTarget).hasClass(i.config.activeClass)||i.$slides.each(function(t,e){e=$(e);e.hasClass(i.config.activeClass)&&e.addClass(i.config.blurredClass)})}),this.$slides.on("mouseleave",function(){i.$slides.removeClass(i.config.blurredClass)})}},{key:"activateSlide",value:function(){this.$slides.removeClass(this.config.activeClass),this.$slides.find(this.config.progressBarSelector).css("transform","scaleX(0)").css("transition","none"),this.$slides.eq(this.currentIndex).addClass(this.config.activeClass),this.startProgressBar()}},{key:"start",value:function(){var t=this;this.stop(),this.interval=setInterval(function(){return t.nextSlide()},this.config.animationDuration)}},{key:"stop",value:function(){this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"nextSlide",value:function(){this.currentIndex=(this.currentIndex+1)%this.$slides.length,this.activateSlide()}},{key:"previousSlide",value:function(){this.currentIndex=(this.currentIndex-1+this.$slides.length)%this.$slides.length,this.activateSlide()}},{key:"resetProgressBar",value:function(t){t=this.$slides.eq(t).find(this.config.progressBarSelector);t.css({transform:"scaleX(0)",transition:"none"}),t[0].offsetHeight}},{key:"startProgressBar",value:function(){var t=this,e=(this.$container.hasClass("slick-initialized")?this.$container.find(".slick-slide.slick-active"):this.$slides.eq(this.currentIndex)).find(this.config.progressBarSelector);0===e.length?console.warn("Progress bar element not found within the active slide."):(e.css({transform:"scaleX(0)",transition:"none"}),e[0].offsetHeight,e.css({transform:"scaleX(1)",transition:"transform ".concat(this.config.animationDuration,"ms linear")}),this.$container.hasClass("slick-initialized")&&(this.progressInterval&&clearTimeout(this.progressInterval),this.progressInterval=setTimeout(function(){t.$container.slick("slickNext"),t.startProgressBar()},this.config.animationDuration)))}}])&&ot(t.prototype,e),i&&ot(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function ct(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?lt(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=ht(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ut(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ht(n.key),n)}}function ht(t){t=((t,e)=>{if("object"!=a(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=a(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==a(t)?t:t+""}var dt=(()=>{function n(t,e){var i=this;if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.config=ct(ct({},{debounceTime:500,scrollBlockedClass:"is-scroll-blocked",unblockOnResize:!0,unblockOnEscape:!1}),e),this.element=$(t);e=$(t).data("unblock-on-resize"),void 0!==e&&(this.config.unblockOnResize=e),e=$(t).data("unblock-on-escape");void 0!==e&&(this.config.unblockOnEscape=e),this.element.on("click",function(t){$("body").addClass(i.config.scrollBlockedClass)}),this.config.unblockOnResize&&$(window).on("resize",l(this.unblockScroll.bind(this),this.config.debounceTime)),this.config.unblockOnEscape&&$(document).on("keydown",function(t){"Escape"===t.key&&i.unblockScroll()})}return t=n,(e=[{key:"unblockScroll",value:function(){$("body").removeClass(this.config.scrollBlockedClass)}}])&&ut(t.prototype,e),i&&ut(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ft(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=c(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=c(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==c(t)?t:t+""))(n.key),n)}}var pt=(()=>{function o(t,e,i,n,r){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.sliderElement=$(t),this.breakpointTablet=e,this.breakpointMedium=i,this.breakpointBig=n,this.breakpointLaptop=r,this.sliderInit()}return t=o,(e=[{key:"sliderInit",value:function(){this.sliderElement.slick({arrows:!1,variableWidth:!0,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:3}},{breakpoint:this.breakpointBig-1,settings:{slidesToShow:1}}]})}}])&&ft(t.prototype,e),i&&ft(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function mt(t){var e=document.createElement("div");return e.textContent=t,e.innerHTML}function u(t,e){var i;return e&&t?0===(e=e.split(/\s+/).filter(function(t){return 2<=t.length})).length?mt(t):(i=mt(t),e=e.map(function(t){var e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return 4<=t.length?e:"\\b".concat(e,"\\b")}),e=new RegExp("(".concat(e.join("|"),")"),"gi"),i.replace(e,'<mark class="o-case-studies-search__highlight">$1</mark>')):mt(t||"")}function h(t){return t?String(t).toLowerCase().replace(/[\s\-_]+/g,""):""}function gt(t,e){var i,n=(t||"").toLowerCase(),r=(e||"").toLowerCase();return!!r&&(t=h(t),!(!(e=h(e))||!t.includes(e))||!!n.includes(r)||(i=r.length<=4?1:2,n.split(/\s+/).some(function(t){return((t,e)=>{if(0===t.length)return e.length;if(0===e.length)return t.length;for(var i=Array(e.length+1).fill(null).map(function(){return Array(t.length+1).fill(null)}),n=0;n<=t.length;n++)i[0][n]=n;for(var r=0;r<=e.length;r++)i[r][0]=r;for(var o=1;o<=e.length;o++)for(var s=1;s<=t.length;s++){var a=t[s-1]===e[o-1]?0:1;i[o][s]=Math.min(i[o][s-1]+1,i[o-1][s]+1,i[o-1][s-1]+a)}return i[e.length][t.length]})(t.slice(0,r.length+2),r)<=i})))}var d=new Map;function vt(e){if(!e)return Promise.resolve({items:[],taxonomies:[]});if(d.has(e))return d.get(e);var t="undefined"!=typeof themeVars&&themeVars.currentLanguage||"en",i="".concat(e,"-").concat(t),n=(l=e,t=t,a="undefined"!=typeof themeVars&&themeVars.cacheUrl||"/wp-content/cache","".concat(a,"/").concat(l,"-").concat(t,".json")),r=null;try{var o=sessionStorage.getItem(i);o&&(r=JSON.parse(o))}catch(t){r=null}function s(){return fetch(n).then(function(t){if(t.ok)return t.json();throw new Error("cache load failed")}).then(function(t){try{sessionStorage.setItem(i,JSON.stringify(t))}catch(t){}return t})}var a,l;return r?(a=Promise.resolve(r),d.set(e,a),s().then(function(t){if(t&&t.generated!==r.generated){d.set(e,Promise.resolve(t));try{sessionStorage.setItem(i,JSON.stringify(t))}catch(t){}}}).catch(function(){}),a):(l=s().catch(function(){return{items:[],taxonomies:[]}}),d.set(e,l),l)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function yt(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?bt(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=(t=>(t=((t,e)=>{if("object"!=f(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=f(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==f(t)?t:t+""))(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function wt(t){return(t=>{if(Array.isArray(t))return kt(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})(t)||_t(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function St(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||_t(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function _t(t,e){var i;if(t)return"string"==typeof t?kt(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?kt(t,e):void 0}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}var p=2,Ot=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};function Et(o,t,s){for(var e,a=Object.entries(t||{}),i=function(){var e,t,i,n=St(a[l],2),r=n[0],n=n[1];return n?0!==(e=o.taxonomies&&o.taxonomies[r]||[]).length&&(r=r,n=n,((t=s)&&n?(i=(null==(i=t.slugToPrimary)||null==(i=i[r])?void 0:i[n])||n,(r=null==(t=t.taxonomyAliases)||null==(t=t[r])?void 0:t[i])&&Array.isArray(r.slugs)&&0<r.slugs.length?r.slugs:[n]):[n].filter(Boolean)).some(function(t){return e.includes(t)}))?void 0:{v:!1}:0},l=0;l<a.length;l++)if(0!==(e=i())&&e)return e.v;return!0}function Ct(t,e){var i,n,r,o,e=(e||"").trim();return e.length<p?t:(i=e.toLowerCase(),n=h(e),r=i.split(/\s+/).filter(function(t){return 2<=t.length}),e=[],0===(e=n?t.filter(function(t){return(t.searchTextNormalized||h(t.searchText)).includes(n)}):e).length&&(o=new RegExp("\\b".concat(Ot(i),"\\b"),"i"),e=t.filter(function(t){return o.test(t.searchText)})),0===(e=0===e.length&&1<r.length?t.filter(function(e){return r.every(function(t){return new RegExp("\\b".concat(Ot(t),"\\b"),"i").test(e.searchText)})}):e).length&&0<r.length?t.filter(function(t){return e=t.searchText,r.every(function(t){return gt(e,t)});var e}):e)}function m(t,e){var i,n,e=(e||"").toLowerCase();return e?(i=0,(n=t.titleSearch||(t.title||"").toLowerCase()).includes(e)&&(i+=100,n.startsWith(e)&&(i+=50),n===e)&&(i+=50),(t.tagsSearch||"").includes(e)&&(i+=60),(t.metaSearch||"").includes(e)&&(i+=30),(t.contentSearch||"").includes(e)&&(i+=10),i):0}function Tt(r,o,t){var s,i,e,a,t=2<arguments.length&&void 0!==t?t:{};return r&&Array.isArray(r.items)?(s=Object.fromEntries(Object.entries(t||{}).filter(function(t){return!!St(t,2)[1]})),t=Ct(r.items.filter(function(t){return Et(t,s,r)}),o),t=(i=(o||"").trim()).length>=p?wt(t).sort(function(t,e){return m(e,i)-m(t,i)}):t,e=Array.isArray(r.taxonomySlugs)?r.taxonomySlugs:Object.keys(r.taxonomyAliases||{}),a={},e.forEach(function(i){var e=yt({},s);delete e[i];var t=Ct(r.items.filter(function(t){return Et(t,e,r)}),o),n=new Set;t.forEach(function(t){(t.taxonomies&&t.taxonomies[i]||[]).forEach(function(t){var e=(null==(e=r.slugToPrimary)||null==(e=e[i])?void 0:e[t])||t;n.add(e)})}),a[i]=Array.from(n)}),{matched:t,availableTaxonomies:a,totalMatched:t.length}):{matched:[],availableTaxonomies:{},totalMatched:0}}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xt(t){return(t=>{if(Array.isArray(t))return jt(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})(t)||((t,e)=>{var i;if(t)return"string"==typeof t?jt(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?jt(t,e):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var p,t="function"==typeof Symbol?Symbol:{},e=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function n(t,e,i,n){var r,o,s,a,l,c,u,h,d,e=e&&e.prototype instanceof g?e:g,e=Object.create(e.prototype);return y(e,"_invoke",(r=t,o=i,u=n||[],h=!1,d={p:c=0,n:0,v:p,a:f,f:f.bind(p,4),d:function(t,e){return s=t,a=0,l=p,d.n=e,m}}
10,function(t,e,i){if(1<c)throw TypeError("Generator is already running");for(h&&1===e&&f(e,i),a=e,l=i;(v=a<2?p:l)||!h;){s||(a?a<3?(1<a&&(d.n=-1),f(a,l)):d.n=l:d.v=l);try{if(c=2,s){if(v=s[t=a?t:"next"]){if(!(v=v.call(s,l)))throw TypeError("iterator result is not an object");if(!v.done)return v;l=v.value,a<2&&(a=0)}else 1===a&&(v=s.return)&&v.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+t+"' method"),a=1);s=p}else if((v=(h=d.n<0)?l:r.call(o,d))!==m)break}catch(t){s=p,a=1,l=t}finally{c=1}}return{value:v,done:h}}),!0),e;function f(t,e){for(a=t,l=e,v=0;!h&&c&&!i&&v<u.length;v++){var i,n=u[v],r=d.p,o=n[2];3<t?(i=o===e)&&(l=n[(a=n[4])?5:a=3],n[4]=n[5]=p):n[0]<=r&&((i=t<2&&r<n[1])?(a=0,d.v=e,d.n=n[1]):r<o&&(i=t<3||n[0]>e||o<e)&&(n[4]=t,n[5]=e,d.n=o,a=0))}if(i||1<t)return m;throw h=!0,e}}var m={};function g(){}function r(){}function o(){}var v=Object.getPrototypeOf,t=[][e]?v(v([][e]())):(y(v={},e,function(){return this}),v),s=o.prototype=g.prototype=Object.create(t);function a(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,o):(t.__proto__=o,y(t,i,"GeneratorFunction")),t.prototype=Object.create(s),t}return y(s,"constructor",r.prototype=o),y(o,"constructor",r),y(o,i,r.displayName="GeneratorFunction"),y(s),y(s,i,"Generator"),y(s,e,function(){return this}),y(s,"toString",function(){return"[object Generator]"}),(b=function(){return{w:n,m:a}})()}function y(t,e,i,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(y=function(t,e,i,n){function r(e,i){y(t,e,function(t){return this._invoke(e,i,t)})}e?o?o(t,e,{value:i,enumerable:!n,configurable:!n,writable:!n}):t[e]=i:(r("next",0),r("throw",1),r("return",2))})(t,e,i,n)}function At(t,e,i,n,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return i(t)}a.done?e(l):Promise.resolve(l).then(n,r)}function Pt(a){return function(){var t=this,s=arguments;return new Promise(function(e,i){var n=a.apply(t,s);function r(t){At(n,e,i,r,o,"next",t)}function o(t){At(n,e,i,r,o,"throw",t)}r(void 0)})}}function It(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function $t(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Nt(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Rt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nt(n.key),n)}}function Nt(t){t=((t,e)=>{if("object"!=g(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=g(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==g(t)?t:t+""}function Dt(o,t,e,i){var n,r,s,a,l,c=2<arguments.length&&void 0!==e?e:60,e=3<arguments.length&&void 0!==i?i:"";return o&&t?(n=o.toLowerCase(),i=t.toLowerCase(),r=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},s=function(t,e){var i,n=Math.max(0,t-c),r=Math.min(o.length,t+e+c),t=(0<n&&-1!==(i=o.indexOf(" ",n))&&i<t&&(n=i+1),r<o.length&&t+e<(i=o.lastIndexOf(" ",r))&&(r=i),o.substring(n,r).trim());return(0<n?"...":"")+t+(r<o.length?"...":"")},a=new RegExp("\\b".concat(r(i),"\\b"),"i"),(a=n.match(a))?s(a.index,t.length):(a=i.split(/\s+/).filter(function(t){return 2<=t.length})).length<=1||(t=a.map(function(t){return{word:t,position:(t=>(t=new RegExp("\\b".concat(r(t),"\\b"),"i"),(t=n.match(t))?t.index:-1))(t)}}).filter(function(t){return-1!==t.position})).length<a.length||(a=(i=t.map(function(t){return t.position}).sort(function(t,e){return t-e}))[0],100<(l=i[i.length-1])-a)?e||"":(i=t.find(function(t){return t.position===l}),s(a,l-a+i.word.length))):e||""}var Lt=(()=>{return t=function t(e){var i=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");this.config=$t($t({},{inputSelector:".js-search__input",suggestionsSelector:".js-search__suggestions",loader
10Selector:".js-search__loader",clearSelector:".js-search__clear",submitSelector:".js-search__submit",filtersSelector:".js-search-filters",activeClass:"is-active",loadingClass:"is-loading",hasValueClass:"has-value",minQueryLength:p,maxCaseStudySuggestions:5,maxTaxonomySuggestions:3,maxTotalSuggestions:8}),n),this.$element=$(e),this.searchId=this.$element.data("search-id")||"",this.cachePrefix=this.$element.data("cache-prefix")||"",this.$input=this.$element.find(this.config.inputSelector),this.$suggestions=this.$element.find(this.config.suggestionsSelector),this.$loader=this.$element.find(this.config.loaderSelector),this.$clear=this.$element.find(this.config.clearSelector),this.$submit=this.$element.find(this.config.submitSelector),this.$filtersContainer=$(this.config.filtersSelector),this.currentQuery=(this.$input.val()||"").slice(0,100),this.selectedIndex=-1,this.suggestions=[],this.totalMatches=0,this.searchData=null,this.isLoadingData=!1,this.lastTrackedQuery="",this.pendingSearchData=null,this.blurTimeoutId=null,this.vars=this.readVars(),this.$input.attr("maxlength",String(100)),this.currentQuery&&this.$element.addClass(this.config.hasValueClass),this.debouncedFilter=l(function(t){i.filterSuggestions(t)},150),this.init()},(e=[{key:"eventName",value:function(t){var e=this.searchId||"search";return"".concat(e,":").concat(t)}},{key:"readVars",value:function(){var t=(this.searchId||"").split(/[-_]/).map(function(t,e){return 0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}).join("")+"SearchVars";return"undefined"!=typeof window&&window[t]||{}}},{key:"init",value:function(){var e=this;this.$input.on("input",this.handleInput.bind(this)),this.$suggestions.on("click",".js-apply-filter",this.handleSuggestClick.bind(this)),this.$input.on("keydown",this.handleKeydown.bind(this)),this.$input.on("focus",this.handleFocus.bind(this)),this.$input.on("blur",this.handleBlur.bind(this)),this.$clear.on("click",this.handleClear.bind(this)),this.$submit.on("click",this.handleSubmit.bind(this)),$(document).on("click",this.handleClickOutside.bind(this)),this.$suggestions.on("click",".js-search__suggestion",this.handleSuggestionClick.bind(this)),this.$suggestions.on("click",".js-search__view-all",this.handleViewAllClick.bind(this)),document.addEventListener(this.eventName("cleared"),function(){e.$input.val(""),e.currentQuery="",e.suggestions=[],e.lastTrackedQuery="",e.$element.removeClass(e.config.hasValueClass),e.hideSuggestions()}),vt(this.cachePrefix).then(function(t){e.searchData=t})}},{key:"handleInput",value:function(){var t=this.$input.val()||"",e=t.slice(0,100),t=(e!==t&&this.$input.val(e),e.trim());0<(this.currentQuery=t).length?this.$element.addClass(this.config.hasValueClass):this.$element.removeClass(this.config.hasValueClass),t.length<this.config.minQueryLength?this.hideSuggestions():this.debouncedFilter(t)}},{key:"handleFocus",value:(r=Pt(b().m(function t(){return b().w(function(t){while(!0)switch(t.n){case 0:return t.n=1,this.loadSearchData();case 1:this.currentQuery.length>=this.config.minQueryLength&&this.searchData&&(this.filterSuggestionsSync(this.currentQuery),this.renderSuggestions(this.currentQuery));case 2:return t.a(2)}},t,this)})),function(){return r.apply(this,arguments)})},{key:"handleBlur",value:function(){var t=this;this.blurTimeoutId=setTimeout(function(){t.blurTimeoutId=null,t.finalizeSearchTracking()},200)}},{key:"cancelBlurTimeout",value:function(){this.blurTimeoutId&&(clearTimeout(this.blurTimeoutId),this.blurTimeoutId=null)}},{key:"handleKeydown",value:function(t){switch(t.key){case"ArrowDown":t.preventDefault(),this.navigateSuggestions(1);break;case"ArrowUp":t.preventDefault(),this.navigateSuggestions(-1);break;case"Enter":t.preventDefault(),this.cancelBlurTimeout(),this.debouncedFilter.cancel(),0<=this.selectedIndex&&this.suggestions[this.selectedIndex]?this.selectSuggestion(this.suggestions[this.selectedIndex]):this.currentQuery.length>=this.config.minQueryLength&&(this.searchData&&this.filterSuggestionsSync(this.currentQuery),this.triggerSearch(this.currentQuery));break;case"Escape":this.hideSuggestions(),this.$input.blur()}}},{key:"handleClickOutside",value:function(t){this.$element.is(t.target)||0!==this.$element.has(t.target).length||this.hideSuggestions()}},{key:"handleClear",value:function(t){t.preventDefault(),this.$input.val(""),this.currentQuery="",this.suggestions=[],this.lastTrackedQuery="",this.$element.removeClass(this.config.hasValueClass),this.hideSuggestions(),this.clearSearchFilter()}},{key:"handleSubmit",value:function(t){t.preventDefault(),this.cancelBlurTimeout(),this.debouncedFilter.cancel();t=(this.$input.val()||"").slice(0,100).trim();t.length<this.config.minQueryLength||(this.searchData&&this.filterSuggestionsSync(t),0<=this.selectedIndex&&this.suggestions[this.selectedIndex]?this.selectSuggestion(this.suggestions[this.selectedIndex]):this.triggerSearch(t))}},{key:"handleSuggestionClick",value:function(t){t.preventDefault(),this.cancelBlurTimeout(),this.debouncedFilter.cancel();t=$(t.currentTarget).data("index"),t=this.suggestions[t];t&&this.selectSuggestion(t)}},{key:"handleViewAllClick",value:function(t){t.preventDefault(),this.cancelBlurTimeout(),this.debouncedFilter.cancel(),this.currentQuery.length>=this.config.minQueryLength&&this.triggerSearch(this.currentQuery,!0)}},{key:"loadSearchData",value:(n=Pt(b().m(function t(){return b().w(function(t){while(!0)switch(t.p=t.n){case 0:if(this.searchData||this.isLoadingData)return t.a(2);t.n=1;break;case 1:return this.isLoadingData=!0,this.$element.addClass(this.config.loadingClass),t.p=2,t.n=3,vt(this.cachePrefix);case 3:this.searchData=t.v;case 4:return t.p=4,this.isLoadingData=!1,this.$element.removeClass(this.config.loadingClass),t.f(4);case 5:return t.a(2)}},t,this,[[2,,4,5]])})),function(){return n.apply(this,arguments)})},{key:"getActiveFilters",value:function(){var t,i=new URL(window.location.href),n={};
10return((null==(t=this.searchData)?void 0:t.taxonomySlugs)||this.vars.taxonomySlugs||[]).forEach(function(t){var e=i.searchParams.get(t);e&&(n[t]=e)}),n}},{key:"filterSuggestions",value:function(t){var e=this;this.searchData?(this.filterSuggestionsSync(t),this.renderSuggestions(t)):this.loadSearchData().then(function(){e.searchData&&e.filterSuggestions(t)})}},{key:"filterSuggestionsSync",value:function(t){var i,e,n,r,o,s,a;this.searchData&&(e=this.getActiveFilters(),e=Tt(this.searchData,t,e).matched,this.totalMatches=e.length,i=(t||"").trim().toLowerCase(),e=xt(e).sort(function(t,e){return m(e,i)-m(t,i)}).slice(0,this.config.maxCaseStudySuggestions).map(function(t){return{type:"item",id:t.id,text:t.title,intro:t.intro||"",searchText:t.searchText,url:t.url,logo:t.logo||null,cover:t.cover||null,date:t.date||"",tags:t.tags||[]}}),n=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},r=new RegExp("\\b".concat(n(i),"\\b"),"i"),o=i.split(/\s+/).filter(function(t){return 2<=t.length}),0===(a=0===(a=(this.searchData.taxonomies||[]).filter(function(t){return r.test(t.name)})).length&&1<o.length?(this.searchData.taxonomies||[]).filter(function(e){return o.every(function(t){return new RegExp("\\b".concat(n(t),"\\b"),"i").test(e.name)})}):a).length&&0<o.length&&(a=(this.searchData.taxonomies||[]).filter(function(t){return gt(t.name,i)})),s=new Map,a.forEach(function(t){var e="".concat(t.type,":").concat(t.name.toLowerCase()),i=s.get(e);(!i||t.count>i.count)&&s.set(e,t)}),a=Array.from(s.values()).slice(0,this.config.maxTaxonomySuggestions).map(function(t){return{type:"filter",text:t.name,taxonomy:t.type,slug:t.slug,count:t.count}}),this.suggestions=[].concat(xt(e),xt(a)).slice(0,this.config.maxTotalSuggestions),this.pendingSearchData={query:t,resultsCount:this.totalMatches})}},{key:"finalizeSearchTracking",value:function(){var t,e,i;this.pendingSearchData&&(t=(e=this.pendingSearchData).query,e=e.resultsCount,t===this.lastTrackedQuery?this.pendingSearchData=null:(this.lastTrackedQuery=t,this.pendingSearchData=null,i="undefined"!=typeof themeVars&&themeVars.currentLanguage||"en",document.dispatchEvent(new CustomEvent("fpSearchPerformed",{detail:{query:t,resultsCount:e,lang:i,searchId:this.searchId}}))))}},{key:"renderSuggestions",value:function(i){var t,e,n,r,o,s=this;this.pendingSearchData={query:i,resultsCount:this.totalMatches},0===this.suggestions.length?this.$suggestions.html(this.renderNoResults(i)):(t=this.suggestions.filter(function(t){return"item"===t.type}),e=this.suggestions.filter(function(t){return"filter"===t.type}),n="",r=0,o=t.reduce(function(t,e){e=(e.text||"").toLowerCase().trim();return t[e]=(t[e]||0)+1,t},{}),0<t.length&&(n+='<div class="o-case-studies-search__section-header">'.concat(this.escapeHtml(this.t("caseStudies","Items")),"</div>"),t.forEach(function(t){var e=1<o[(t.text||"").toLowerCase().trim()];n+=s.renderItemSuggestion(t,i,r,e),r++}),this.totalMatches>t.length)&&(n+=this.renderViewAll(this.totalMatches)),0<e.length&&(n+='<div class="o-case-studies-search__section-header">'.concat(this.escapeHtml(this.t("applyFilter","Apply filter")),"</div>"),e.forEach(function(t){n+=s.renderFilterSuggestion(t,i,r),r++})),this.$suggestions.html(n),this.selectedIndex=-1),this.showSuggestions()}},{key:"renderItemSuggestion",value:function(t,e,i){var n,r,o,s=3<arguments.length&&void 0!==arguments[3]&&arguments[3];return"press-room"===this.searchId?this.renderLiveSearchResult(t,e,i):(n=u(t.text,e),r=t.logo?'<div class="o-case-studies-search__suggestion-logo-wrapper">\n <img class="o-case-studies-search__suggestion-logo" src="'.concat(this.escapeAttr(t.logo),'" alt="').concat(this.escapeAttr(t.text),'" />\n </div>'):"",e=(o=(o=Dt(t.searchText,e,75,t.intro))?u(o,e):"")?'<span class="o-case-studies-search__suggestion-intro">'.concat(o,"</span>"):"",s=(o=s?this.extractUrlSlug(t.url):"")?'<span class="o-case-studies-search__suggestion-slug">'.concat(this.escapeHtml(o),"</span>"):"",'\n <div class="o-case-studies-search__suggestion o-case-studies-search__suggestion--case-study js-search__suggestion"\n data-index="'.concat(i,'"\n data-type="item"\n data-url="').concat(this.escapeAttr(t.url),'"\n role="option"\n aria-selected="false">\n <div class="o-case-studies-search__suggestion-content">
10\n <span class="o-case-studies-search__suggestion-title">').concat(n).concat(s,"</span>\n ").concat(e,"\n </div>\n ").concat(r,"\n </div>\n "))}},{key:"renderLiveSearchResult",value:function(t,e,i){var e=u(t.text,e),n=this.escapeAttr(t.url),r=t.cover?'<div class="o-live-search-result__thumbnail">\n <img class="o-live-search-result__image" src="'.concat(this.escapeAttr(t.cover),'" alt="').concat(this.escapeAttr(t.text),'" />\n </div>'):"",t=t.date?'<div class="o-live-search-result__date">\n <svg class="o-icon o-icon--16 o-icon--calendar"><use xlink:href="#icon-16_calendar"></use></svg>\n <span>'.concat(this.escapeHtml(t.date),"</span>\n </div>"):"",t=t?'<div class="o-live-search-result__meta-data f-paragraph-small">'.concat(t,"</div>"):"";return'\n <div class="o-live-search-result js-search__suggestion"\n data-index="'.concat(i,'"\n data-type="item"\n data-url="').concat(n,'"\n role="option"\n aria-selected="false">\n <a href="').concat(n,'" class="o-live-search-result__link">\n ').concat(r,'\n <div class="o-live-search-result__content">\n <h3 class="o-live-search-result__title f-paragraph">').concat(e,"</h3>\n ").concat(t,"\n </div>\n </a>\n </div>\n ")}},{key:"renderFilterSuggestion",value:function(t,e,i){var e=u(t.text,e),n=this.getTaxonomyLabel(t.taxonomy);return'\n <div class="o-case-studies-search__suggestion o-case-studies-search__suggestion--filter js-search__suggestion"\n data-index="'.concat(i,'"\n data-type="filter"\n data-taxonomy="').concat(this.escapeAttr(t.taxonomy),'"\n data-slug="').concat(this.escapeAttr(t.slug),'"\n role="option"\n aria-selected="false">\n <div class="o-case-studies-search__suggestion-content">\n <span class="o-case-studies-search__suggestion-title">').concat(e,'</span>\n <span class="o-case-studies-search__suggestion-meta">').concat(this.escapeHtml(n)," (").concat(t.count,')</span>\n </div>\n <span class="o-case-studies-search__suggestion-type">').concat(this.escapeHtml(this.t("filter","Filter")),"</span>\n </div>\n ")}},{key:"renderViewAll",value:function(t){t=this.t("showAllResults","Show all {count} results").replace("{count}",String(t));return'\n <button type="button" class="o-case-studies-search__view-all js-search__view-all">\n <span>'.concat(this.escapeHtml(t),'</span>\n <svg class="o-icon o-icon--16 o-icon--arrow"><use xlink:href="#icon-16_arrow"></use></svg>\n </button>\n ')}},{key:"renderNoResults",value:function(t){var e=this,i=this.findSimilarFilters(t,3),n="";return 0<i.length&&(i=i.map(function(t){return'<button class="o-case-studies-search__suggest-btn js-apply-filter"\n data-taxonomy="'.concat(e.escapeAttr(t.type),'"\n data-slug="').concat(e.escapeAttr(t.slug),'">').concat(e.escapeHtml(t.name),"</button>")}).join(""),n='\n <p class="o-case-studies-search__no-results-suggest">\n '.concat(this.escapeHtml(this.t("trySearchingFor","Try searching for")),':\n </p>\n <div class="o-case-studies-search__no-results-buttons">\n ').concat(i,"\n </div>\n ")),'\n <div class="o-case-studies-search__no-results">\n <p class="o-case-studies-search__no-results-text">\n '.concat(this.escapeHtml(this.t("noResultsFor","No results for")),' "<strong>').concat(this.escapeHtml(t),'</strong>"\n </p>\n ').concat(n,'\n <p class="o-case-studies-search__no-results-tip">\n ').concat(this.escapeHtml(this.t("checkSpelling","Check spelling or try different keywords")),"\n </p>\n </div>\n ")}},{key:"findSimilarFilters",value:function(t){var e,i,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:3;return null!=(e=this.searchData)&&e.taxonomies?(i=t.toLowerCase(),this.searchData.taxonomies.filter(function(t){t=t.name.toLowerCase();return t.startsWith(i.slice(0,2))||t.includes(i)||i.includes(t.slice(0,3))}).sort(function(t,e){return e.count-t.count}).slice(0,n)):[]}},{key:"getTaxonomyLabel",value:function(t){return this.t("taxonomy_".concat(t),t)}},{key:"t",value:function(t,e){return this.vars&&this.vars[t]||e}},{key:"escapeHtml",value:function(t){var e=document.createElement("div");return e.textContent=String(null==t?"":t),e.innerHTML}},{key:"escapeAttr",value:function(t){return this.escapeHtml(t).replace(/"/g,""")}},{key:"extractUrlSlug",value:function(t){if(!t)return"";try{var e=new URL(t,window.location.origin).pathname.split("/").filter(
10Boolean);return e[e.length-1]||""}catch(t){return""}}},{key:"handleSuggestClick",value:function(t){t=$(t.currentTarget).text();this.$input.val(t),this.currentQuery=t,this.filterSuggestions(t)}},{key:"navigateSuggestions",value:function(t){0!==this.suggestions.length&&((t=this.selectedIndex+t)<0?t=this.suggestions.length-1:t>=this.suggestions.length&&(t=0),this.setSelectedIndex(t))}},{key:"setSelectedIndex",value:function(t){this.selectedIndex=t,this.$suggestions.find(".js-search__suggestion").removeClass(this.config.activeClass).attr("aria-selected","false"),0<=t&&this.$suggestions.find('.js-search__suggestion[data-index="'.concat(t,'"]')).addClass(this.config.activeClass).attr("aria-selected","true")}},{key:"selectSuggestion",value:function(t){this.finalizeSearchTracking(),this.emitClickAnalytics(t),"item"===t.type?window.location.href=t.url:"filter"===t.type&&this.applyFilter(t.taxonomy,t.slug,t.text),this.hideSuggestions()}},{key:"emitClickAnalytics",value:function(t){var e=0;"item"===t.type?e=t.id||0:"filter"===t.type&&(e=Math.abs(this.hashCode(t.taxonomy+":"+t.slug))),0<e&&document.dispatchEvent(new CustomEvent("fpSearchResultClicked",{detail:{query:this.currentQuery,resultId:e,resultType:"item"===t.type?this.searchId:t.type,searchId:this.searchId}}))}},{key:"hashCode",value:function(t){for(var e=0,i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i),e&=e;return e}},{key:"applyFilter",value:function(t,e,i){document.dispatchEvent(new CustomEvent(this.eventName("applyFilter"),{detail:{taxonomy:t,slug:e,name:i}})),this.$input.val(""),this.currentQuery="",this.$element.removeClass(this.config.hasValueClass),this.clearSearchFilter()}},{key:"triggerSearch",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];this.finalizeSearchTracking(),this.hideSuggestions(),document.dispatchEvent(new CustomEvent(this.eventName("search"),{detail:{query:t,scroll:e}}))}},{key:"clearSearchFilter",value:function(){document.dispatchEvent(new CustomEvent(this.eventName("searchClear")))}},{key:"showSuggestions",value:function(){this.$suggestions.addClass(this.config.activeClass),this.$suggestions.attr("aria-expanded","true")}},{key:"hideSuggestions",value:function(){this.$suggestions.removeClass(this.config.activeClass),this.$suggestions.attr("aria-expanded","false"),this.selectedIndex=-1}}])&&Rt(t.prototype,e),i&&Rt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i,n,r})();function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||((t,e)=>{var i;if(t)return"string"==typeof t?zt(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zt(t,e):void 0})(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Bt(t,e,i){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ft(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ut(n.key),n)}}function Ut(t){t=((t,e)=>{if("object"!=v(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=v(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==v(t)?t:t+""}var qt=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.$element=$(t),this.$root=this.$element.closest("[data-search-id]"),this.searchId=this.$root.data("search-id")||"",this.$buttons=this.$element.find(".js-post-filters__button"),this.$panel=this.$element.find(".o-post-filters__panel"),this.$dropdown=this.$element.find(".js-post-filters__dropdown"),this.$dropdownSelect=this.$dropdown.find(".js-cu
10stom-select"),this.$dropdownOptions=this.$dropdown.find(".js-custom-select__option"),this.$dropdownTitle=this.$dropdown.find(".js-custom-select__title"),this.allFiltersText=this.$element.find(".js-custom-select__reset").first().data("value")||"",this.bindEvents()}return t=e,(i=[{key:"eventName",value:function(t){var e=this.searchId||"search";return"".concat(e,":").concat(t)}},{key:"bindEvents",value:function(){var e=this;this.$buttons.on("click",function(t){t.preventDefault(),e.handleButtonClick($(t.currentTarget))}),this.$dropdownOptions.on("click",function(t){e.handleDropdownOptionClick($(t.currentTarget))}),document.addEventListener(this.eventName("stateChanged"),function(t){t=t.detail||{};e.syncFromState(t.activeFilters||{})}),window.addEventListener("popstate",function(){e.syncFromUrl()})}},{key:"handleButtonClick",value:function(t){var e=String(null!=(e=t.data("filter"))?e:""),t=String(null!=(t=t.data("taxonomy"))?t:"");"all"!==e&&e?t&&this.dispatchReplaceFilters(Bt({},t,e)):this.dispatchReplaceFilters({}),this.closePanel()}},{key:"closePanel",value:function(){var t;this.$panel&&0!==this.$panel.length&&(this.$panel.addClass("is-hidden"),$("body").removeClass("is-scroll-blocked"),t=this.$panel.attr("id"))&&$('[aria-controls="'.concat(t,'"][aria-expanded]')).attr("aria-expanded","false")}},{key:"handleDropdownOptionClick",value:function(t){var e=String(null!=(e=t.data("filter"))?e:""),i=String(null!=(i=t.data("slug"))?i:""),t=String(null!=(t=t.data("taxonomy"))?t:"");"all"===e?this.dispatchReplaceFilters({}):i&&t&&this.dispatchReplaceFilters(Bt({},t,i))}},{key:"dispatchReplaceFilters",value:function(t){document.dispatchEvent(new CustomEvent(this.eventName("replaceFilters"),{detail:{filters:t}}))}},{key:"syncFromState",value:function(t){for(var o="",s="",e=0,i=Object.entries(t);e<i.length;e++){var n=Mt(i[e],2),r=n[0],n=n[1];if(n){o=String(n),s=String(r);break}}var a=""!==o,l=(this.$buttons.each(function(t,e){var e=$(e),i=String(null!=(i=e.data("filter"))?i:""),n=String(null!=(n=e.data("taxonomy"))?n:"");e.removeClass("is-active"),(!a&&"all"===i||a&&i===o&&n===s)&&e.addClass("is-active")}),this.allFiltersText);this.$dropdownOptions.each(function(t,e){var e=$(e),i=String(null!=(i=e.data("filter"))?i:""),n=String(null!=(n=e.data("slug"))?n:""),r=String(null!=(r=e.data("taxonomy"))?r:"");e.removeClass("is-selected"),a||"all"!==i?a&&n===o&&r===s&&(e.addClass("is-selected"),l=String(null!=(i=e.data("name"))?i:"")):e.addClass("is-selected")}),this.$dropdownTitle.length&&this.$dropdownTitle.text(l),a?this.$dropdownSelect.addClass("is-filled"):this.$dropdownSelect.removeClass("is-filled")}},{key:"syncFromUrl",value:function(){var n=new URL(window.location.href),r={};this.$buttons.each(function(t,e){var i,e=String(null!=(e=$(e).data("taxonomy"))?e:"");e&&(i=n.searchParams.get(e))&&!r[e]&&(r[e]=i)}),this.syncFromState(r)}}])&&Ft(t.prototype,i),n&&Ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n})(),Wt=new Map;function w(t){var e=document.createElement("div");return e.textContent=String(null==t?"":t),e.innerHTML}function S(t){return w(t).replace(/"/g,""")}function Ht(t){var e=S(t.url||"#"),t=w(t.title||"");return'\n <div class="o-search-tile">\n <a href="'.concat(e,'" class="o-search-tile__link">').concat(t,"</a>\n </div>\n ")}function Vt(t,e){"string"==typeof t&&"function"==typeof e&&Wt.set(t,e)}function Yt(t,e,i){var i=2<arguments.length&&void 0!==i?i:"o-case-studies-tiles",n=(t=t,Wt.get(t)||Ht),t=(e||[]).map(function(t){return n(t)}).join(""),e=S(i);return'<div class="'.concat(e,'">').concat(t,"</div>")}function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xt(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}
10finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||Gt(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function Gt(t,e){var i;if(t)return"string"==typeof t?Zt(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Zt(t,e):void 0}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Kt(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Qt(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=te(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Jt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,te(n.key),n)}}function te(t){t=((t,e)=>{if("object"!=_(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=_(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==_(t)?t:t+""}var k="search",ee=(()=>{return t=function t(e){var i=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");this.config=Qt(Qt({},{filtersContainerSelector:".js-search-filters__container",selectSelector:".js-custom-select",optionSelector:".js-custom-select__option",clearAllSelector:".js-custom-select__clear-all",resetSelector:".js-custom-select__reset",resultWrapperSelector:".js-search__result",initialResultSelector:".js-search__initial",summarySelector:".js-search__summary",searchInputSelector:".js-search__input",searchWrapperSelector:".js-search",tilesWrapperClass:"o-case-studies-tiles",disabledClass:"is-disabled",hideClass:"is-hidden",loadingClass:"is-loading",selectedClass:"is-filters-selected",debounceTime:500,mobileBreakpoint:767}),n),this.$element=$(e),this.searchId=this.$element.data("search-id")||"",this.cachePrefix=this.$element.data("cache-prefix")||"",this.tilesWrapperClass=this.$element.data("tiles-wrapper-class")||this.config.tilesWrapperClass,this.taxonomySlugs=(this.$element.data("taxonomy-slugs")||"").split(",").map(function(t){return t.trim()}).filter(Boolean),this.$filtersContainer=this.$element.find(this.config.filtersContainerSelector),this.$selectList=this.$element.find(this.config.selectSelector),this.$options=this.$element.find(this.config.optionSelector),this.$resultWrapper=this.$element.find(this.config.resultWrapperSelector),this.$initialResult=this.$element.find(this.config.initialResultSelector),this.$summary=this.$element.find(this.config.summarySelector),this.$reset=this.$element.find(this.config.resetSelector),this.$clearAll=this.$element.find(this.config.clearAllSelector),this.$searchInput=this.$element.find(this.config.searchInputSelector),this.$searchWrapper=this.$element.find(this.config.searchWrapperSelector),this.searchData=null,this.searchQuery="",this.activeFilters=this.buildInitialFilters(),this.bindEvents(),vt(this.cachePrefix).then(function(t){i.searchData=t,i.applyState({scroll:!1,focusResults:!1})})},(e=[{key:"bindEvents",value:function(){var r=this;this.$options.on("click",function(t){return r.onOptionClick(t.currentTarget)}),$(window).on("resize",l(this.hideFilters.bind(this),this.config.debounceTime)),this.$reset.on("click",function(t){return r.resetFilter(t.currentTarget)}),this.$clearAll.on("click",this.clearAll.bind(this)),document.addEventListener(this.eventName("search"),function(t){t=t.detail||{};r.searchQuery=(t.query||"").trim(),r.syncUrl(),r.applyState({scroll:!1!==t.scroll})}),document.addEventListener(this.eventName("searchClear"),function(){r.searchQuery="",r.syncUrl(),r.applyState({scroll:!1})}),document.addEventListener(this.eventName("applyFilter"),function(t){var e,t=t.detail||{},i=t.taxonomy,n=t.slug,t=t.name;i&&n&&(e=(null==(e=r.searchData)||null==(e=e.slugToPrimary)||null==(e=e[i])?void 0:e[n])||n,r.activeFilters[i]=e,r.syncSelectsFromState(),0===(n=r.$selectList.filter('[data-filter="'.concat(i,'"]'))).find("".concat(r.config.optionSelector,'[data-slug="').concat(e,'"]')).length&&t&&(n.addClass("is-filled"),n.find(".js-search__select-title").text(t)),r.syncUrl(),r.applyState({scroll:!0}))}),document.addEventListener(this.eventName("replaceFilters"),function(t){var t=t.detail&&t.detail.filters||{},n={};Object.entries(t).forEach(function(t){var e,t=Xt(t,2),i=t[0],t=t[1];t&&(e=(null==(e=r.searchData)||null==(e=e.slugToPrimary)||null==(e=e[i])?void 0:e[t])||t,n[i]=e)}),r.activeFilters=n,r.syncSelectsFromState(),r.syncUrl(),r.applyState({scroll:!0})}),window.addEventListener("popstate",function(){r.activeFilters=r.buildInitialFilters(),r.searchQuery=r.readSearchFromUrl(),r.syncSearchInputValue(),r.syncSelectsFromState(),r.applyState({scroll:!1})})}},{key:"eventName",value:function(t){var e=this.searchId||"search";return"".concat(e,":").concat(t)}},{key:"buildInitialFilters",value:function(){var e=this.readUrlParams(),i={};
10return this.taxonomySlugs.forEach(function(t){e[t]&&(i[t]=e[t])}),this.searchQuery=e[k]?String(e[k]).slice(0,100):"",this.syncSearchInputValue(),this.syncSelectsFromState(i),i}},{key:"readUrlParams",value:function(){var t,e={},i=((t,e)=>{var i,n,r,o,s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){r=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(t)||(s=Gt(t))||e&&t&&"number"==typeof t.length)return s&&(t=s),o=0,{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})(new URL(window.location.href).searchParams.entries());try{for(i.s();!(t=i.n()).done;){var n=Xt(t.value,2);e[n[0]]=n[1]}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"readSearchFromUrl",value:function(){var t=this.readUrlParams();return t[k]?String(t[k]).slice(0,100):""}},{key:"syncSearchInputValue",value:function(){this.$searchInput&&0!==this.$searchInput.length&&(this.$searchInput.val(this.searchQuery),this.searchQuery&&this.$searchWrapper&&0<this.$searchWrapper.length?this.$searchWrapper.addClass("has-value"):this.$searchWrapper&&this.$searchWrapper.removeClass("has-value"))}},{key:"syncSelectsFromState",value:function(t){var r=this,o=t||this.activeFilters||{};this.$selectList.each(function(t,e){var e=$(e),i=e.data("filter"),i=o[i],n=e.find(".js-search__select-title");e.find(r.config.optionSelector).removeClass("is-selected"),i?0<(i=e.find("".concat(r.config.optionSelector,'[data-slug="').concat(i,'"]'))).length?(i.addClass("is-selected"),e.addClass("is-filled"),n.html(i.data("name"))):e.removeClass("is-filled"):(e.removeClass("is-filled"),0<(i=e.find(r.config.resetSelector).first()).length&&n.html(i.data("value")))})}},{key:"onOptionClick",value:function(t){var e,t=$(t);!t.hasClass(this.config.disabledClass)&&(e=t.data("slug"),t=t.closest(this.config.selectSelector).data("filter"))&&(this.activeFilters[t]===e?delete this.activeFilters[t]:this.activeFilters[t]=e,this.syncSelectsFromState(),this.syncUrl(),this.applyState({scroll:!0}))}},{key:"resetFilter",value:function(t){t=$(t).data("reset");t&&(delete this.activeFilters[t],this.syncSelectsFromState(),this.syncUrl(),this.applyState({scroll:!1}))}},{key:"clearAll",value:function(){this.activeFilters={},this.searchQuery="",this.syncSelectsFromState(),this.syncSearchInputValue(),this.syncUrl(),document.dispatchEvent(new CustomEvent(this.eventName("cleared"))),this.applyState({scroll:!1})}},{key:"syncUrl",value:function(){var i=this,n=new URL(window.location.href);this.taxonomySlugs.forEach(function(t){n.searchParams.delete(t);var e=i.activeFilters[t];e&&n.searchParams.set(t,e)}),n.searchParams.delete(k),this.searchQuery&&n.searchParams.set(k,this.searchQuery),window.history.replaceState(null,"",n)}},{key:"isStateActive",value:function(){var t=Object.values(this.activeFilters).some(Boolean),e=(this.searchQuery||"").trim().length>=p;return t||e}},{key:"applyState",value:function(){var t,e,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=i.scroll,n=void 0!==n&&n,i=i.focusResults,i=void 0===i||i;this.searchData&&(this.isStateActive()?(t=(e=Tt(this.searchData,this.searchQuery,this.activeFilters)).matched,e=e.availableTaxonomies,this.$resultWrapper.html(Yt(this.searchId,t,this.tilesWrapperClass)),this.$summary.html(this.buildSummary(t.length)),this.$element.addClass(this.config.selectedClass),this.setOptionsAvailability(e),this.stopInitialVideos(),n&&i&&this.scrollToTop()):(this.$element.removeClass(this.config.selectedClass),this.$resultWrapper.empty(),this.$summary&&this.$summary.empty(),this.setOptionsAvailability(null),this.refreshInitialSliders()),this.dispatchStateChanged())}},{key:"stopInitialVideos",value:function(){this.$initialResult.find(".js-youtube-player").trigger("fp:stopVideo")}},{key:"refreshInitialSliders",value:function(){this.$initialResult.find(".js-video-slider").each(function(t,e){e=$(e);e.hasClass("slick-initialized")&&e.slick("setPosition")})}},{key:"dispatchStateChanged",value:function(){document.dispatchEvent(new CustomEvent(this.eventName("stateChanged"),{detail:{activeFilters:Qt({},this.activeFilters),searchQuery:this.searchQuery,active:this.isStateActive()}}))}},{key:"buildSummary",value:function(t){var n=this,e="undefined"!=typeof themeVars&&themeVars.currentLanguage||"en",i=this.getSearchVars(),r=[],o=(this.searchQuery||"").trim(),o=(o&&r.push('<strong>"'.concat(this.escapeHtml(o),'"</strong>
10')),this.taxonomySlugs.forEach(function(t){var e,i=n.activeFilters[t];i&&(t=(e=0===(e=0===(e=n.$element.find("".concat(n.config.selectSelector,'[data-filter="').concat(t,'"] ').concat(n.config.optionSelector,'[data-slug="').concat(i,'"]'))).length?n.$element.find("".concat(n.config.optionSelector,'[data-taxonomy="').concat(t,'"][data-slug="').concat(i,'"]')):e).length?n.$element.find('[data-taxonomy="'.concat(t,'"][data-filter="').concat(i,'"]')):e).data("name"))&&r.push("<strong>".concat(n.escapeHtml(String(t)),"</strong>"))}),this.pluralizeResults(t,e,i)),e=i.forLabel||"for";return"".concat(t," ").concat(this.escapeHtml(o)," ").concat(this.escapeHtml(e),": ").concat(r.join(" "))}},{key:"getSearchVars",value:function(){var t=(this.searchId||"").split(/[-_]/).map(function(t,e){return 0===e?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}).join("")+"SearchVars";return"undefined"!=typeof window&&window[t]||{}}},{key:"pluralizeResults",value:function(t,e,i){i=i&&i.results||{};return e.startsWith("pl")?1===t?i.one||"wynik":1<t&&t<5?i.few||"wyniki":i.many||"wyników":1===t?i.one||"result":i.many||"results"}},{key:"setOptionsAvailability",value:function(o){var s=this;this.$options.each(function(t,e){var i,e=$(e),n=e.closest(s.config.selectSelector).data("filter"),r=e.data("slug");!o||(i=o[n]||[],s.activeFilters[n]===r)||i.includes(r)?e.removeClass(s.config.disabledClass):e.addClass(s.config.disabledClass)})}},{key:"hideFilters",value:function(){$(window).width()>this.config.mobileBreakpoint&&(this.$filtersContainer.hasClass(this.config.hideClass)||this.$filtersContainer.addClass(this.config.hideClass))}},{key:"scrollToTop",value:function(){$("html, body").animate({scrollTop:this.$element.offset().top-200},500)}},{key:"escapeHtml",value:function(t){var e=document.createElement("div");return e.textContent=String(null==t?"":t),e.innerHTML}}])&&Jt(t.prototype,e),i&&Jt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ie(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=O(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=O(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==O(t)?t:t+""))(n.key),n)}}var ne=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.sliderElement=$(t),this.breakpointMedium=e,this.isSimple="simple"===this.sliderElement.data("variant"),this.sliderInit()}return t=i,(e=[{key:"sliderInit",value:function(){this.sliderElement.slick({arrows:!1,dots:!0,speed:500,slidesToShow:2,slidesToScroll:this.isSimple?1:2,fade:!1,infinite:!1,variableWidth:this.isSimple,responsive:[{breakpoint:this.breakpointMedium,settings:{slidesToShow:1,slidesToScroll:1}}]})}}])&&ie(t.prototype,e),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function re(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=E(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=E(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==E(t)?t:t+""))(n.key),n)}}var oe=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.parent=$(t),this.clickedElement=this.parent.find(".js-copy-element"),this.copiedElement=this.parent.find(".js-copied-element"),this.copyClass="is-copied",this.hookEvents()}return t=e,(i=[{key:"hookEvents",value:function(){var e=this;this.clickedElement.on("click",function(t){e.copyText($(t.currentTarget))})}},{key:"copyText",value:function(t){var e=this,i=this.copiedElement.text().trim();navigator.clipboard.writeText(i),t.addClass(this.copyClass),setTimeout(function(){t.removeClass(e.copyClass)},3e3)}}
10])&&re(t.prototype,i),n&&re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n})();function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function ae(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=ce(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function le(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ce(n.key),n)}}function ce(t){t=((t,e)=>{if("object"!=C(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=C(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==C(t)?t:t+""}var ue=(()=>{return t=function t(e){var i=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");if(this.config=ae(ae({},{titleSelector:".js-custom-select__title",placeholderSelector:".js-custom-select__placeholder",optionsSelector:".js-custom-select__option",searchSelector:".js-custom-select__search",resetSelector:".js-custom-select__reset",closeSelector:".js-custom-select__close",openClassName:"is-opened",hiddenClassName:"is-hidden",selectedClassName:"is-selected",filledClassName:"is-filled",clearAllFiltersSelector:".js-custom-select__clear-all",disabledClassName:"is-disabled",debounceTime:300,mobileBreakpoint:767}),n),this.$select=$(e),!this.$select.length)return!1;this.isOpen=!1,this.$title=$(this.$select.find(this.config.titleSelector)),this.$placeholder=$(this.$select.find(this.config.placeholderSelector)),this.$options=$(this.$select.find(this.config.optionsSelector)),this.$search=$(this.$select.find(this.config.searchSelector)),this.$reset=$(this.$select.find(this.config.resetSelector)),this.$clearAllFilters=$(this.config.clearAllFiltersSelector),this.$close=$(this.$select.find(this.config.closeSelector)),this.isFilled=!1,this.allOptionsText=this.$reset.data("value"),$(window).on("resize",l(this.closeOnResize.bind(this),this.config.debounceTime)),$(document).on("click",function(t){(t=$(t.target)).closest(i.$placeholder).length?i.isOpen?i.close():i.open():t.is(i.$search)||t.is(i.$select)||0===t.closest(i.$select).length&&i.close()}),this.$close.on("click",function(){i.close()}),this.$options.on("click",function(t){i.selectOption(t)}),this.$reset.on("click",function(){i.resetOptions()}),this.$clearAllFilters.on("click",function(){i.resetOptions()}),this.$search.on("input",function(){i.filterOptions(i.$search.val().toLowerCase())}),$(document).on("keyup",function(t){27===t.keyCode&&i.close()})},(e=[{key:"open",value:function(){var t=this;this.isOpen||(this.isOpen=!0,this.$select.addClass(this.config.openClassName),$(window).width()>this.config.mobileBreakpoint&&setTimeout(function(){return t.$search.focus()},100))}},{key:"closeOnResize",value:function(){$(window).width()>this.config.mobileBreakpoint&&this.close()}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.$select.removeClass(this.config.openClassName),this.clearSearch())}},{key:"filterOptions",value:function(i){var n=this;this.$options.removeClass(this.config.hiddenClassName),0<i.length&&this.$options.each(function(t,e){e=$(e);-1===e.text().toLowerCase().indexOf(i)&&e.addClass(n.config.hiddenClassName)})}},{key:"selectOption",value:function(t){var t=t.currentTarget,t=$(t);t.hasClass(this.config.disabledClassName)||((t=t.closest(this.config.optionsSelector)).length&&(this.$options.removeClass(this.config.selectedClassName),t.addClass(this.config.selectedClassName),this.$title.text(t.text()),this.isFilled=!0,this.$select.addClass(this.config.filledClassName)),this.close())}},{key:"clearSearch",value:function(){this.$options.removeClass(this.config.hiddenClassName),this.$search.val("")}},{key:"resetOptions",value:function(){this.$options.removeClass(this.config.selectedClassName),this.$title.text(this.allOptionsText),this.isFilled=!1,this.$select.removeClass(this.config.filledClassName),this.close()}}])&&le(t.prototype,e),i&&le(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=T(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=T(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==T(t)?t:t+""))(n.key),n)}}function de(t,e,i){return e&&he(t.prototype,e),i&&he(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var fe=de(function t(e,i,n,r,o){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");
10var s=$(e).closest(".s-employee-carousel");this.prevArrow=s.find(".js-employee-slider--prev"),this.nextArrow=s.find(".js-employee-slider--next"),$(e).slick({arrows:!0,speed:500,slidesToShow:1,slidesToScroll:1,infinite:!1,mobileFirst:!0,variableWidth:!0,prevArrow:this.prevArrow,nextArrow:this.nextArrow,responsive:[{breakpoint:i-1,settings:{slidesToShow:2}},{breakpoint:n-1,settings:{slidesToShow:4}},{breakpoint:r-1,settings:{slidesToShow:5}},{breakpoint:o-1,settings:{slidesToShow:6}}]})}),pe=(t(16),t(2),t(12),t(10),t(19),t(33).a);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function me(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||((t,e)=>{var i;if(t)return"string"==typeof t?ge(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ge(t,e):void 0})(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function ve(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function be(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=we(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ye(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,we(n.key),n)}}function we(t){t=((t,e)=>{if("object"!=x(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=x(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==x(t)?t:t+""}var Se=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=be(be({},{debug:!1}),i),this.$element=$(e),this.$container=this.$element.find(".js-epub-reader__viewer-container"),this.$viewer=this.$element.find(".js-epub-reader__viewer"),this.$prevBtn=this.$element.find(".js-epub-reader__prev"),this.$nextBtn=this.$element.find(".js-epub-reader__next"),this.$paginationButtons=this.$element.find(".js-epub-reader__pagination-buttons");n=this.$element.data("epub-url"),r=me(String(this.$element.data("aspect-ratio")||"16:9").split(":").map(Number),2),i=r[0];this.aspectRatio=r[1]/i,this.autoplay=!0===this.$element.data("autoplay"),this.autoplayInterval=parseInt(this.$element.data("autoplay-interval"),10)||5e3,this.autoplayTimer=null,this.isInViewport=!1,n?this.$viewer.length?this.init(n):this.config.debug&&console.error("EpubReader: Invalid viewer element"):this.config.debug&&console.error("EpubReader: No epub URL provided")},(e=[{key:"init",value:function(t){var e=this;this.book=pe(t),this.book.ready.then(function(){e.calculateDimensions(),e.rendition=e.book.renderTo(e.$viewer[0],{width:e.bookWidth,height:e.bookHeight,spread:"none",allowScriptedContent:!0}),e.rendition.on("rendered",function(){var t=e.$viewer.find("iframe")[0];t&&t.setAttribute("sandbox","allow-same-origin allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms allow-top-navigation-by-user-activation")}),e.rendition.display(),e.setupNavigation(),e.setupLocationTracking(),e.setupKeyboardNavigation(),e.setupResizeHandler(),e.autoplay&&e.setupAutoplay()})}},{key:"calculateDimensions",value:function(){this.bookWidth=this.$container.width(),this.bookHeight=Math.round(this.bookWidth*this.aspectRatio),this.$viewer.css({width:this.bookWidth+"px",height:this.bookHeight+"px"})}},{key:"setupResizeHandler",value:function(){var t,e=this;$(window).on("resize",function(){clearTimeout(t),t=setTimeout(function(){e.rendition&&e.$container&&(e.calculateDimensions(),e.rendition.resize(e.bookWidth,e.bookHeight),e.updateProgress())},250)})}},{key:"setupNavigation",value:function(){var s=this;this.$prevBtn.on("click",function(){s.disableAutoplay(),s.rendition.prev()}),this.$nextBtn.on("click",function(){s.disableAutoplay(),s.rendition.next()}),this.$viewer.on("click",function(t){var e=s.$viewer.find("iframe")[0];if(e&&e.contentWindow)try{var i=e.contentWindow.document.elementFromPoint(t.clientX-e.getBoundingClientRect().left,t.clientY-e.getBoundingClientRect().top);if(i){var n=i.tagName.toLowerCase(),r=["a","button","input","textarea","select","video","audio"].includes(n),o=i.hasAttribute("onclick")||i.onclick;if(r||o)return}}catch(t){s.config.debug&&console.log("Could not check clicked element:",t)}e=s.$viewer[0].getBoundingClientRect(),n=t.clientX-e.left,i=e.width;n<i/3?s.rendition.prev():2*i/3<n&&s.rendition.next()})}},{key:"setupLocationTracking",value:function(){var e=this;this.rendition.on("relocated",function(t){e.updateProgress(t)}),this.rendition.on("displayed",function(){e.updateProgress(e.rendition.currentLocation())})}},{key:"updateProgress",value:function(){var i=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;if(this.rendition&&this.book){var n,e,r,o,t=t||this.rendition.currentLocation();if(t)try{t.start&&(n=this.book.spine)&&n.items&&(e=n.items.length,r=t.start.index+1,o=this.getVisibleCount(),this.$prevBtn.prop("disabled",1===r),this.$nextBtn.prop("disabled",r===e),this.$paginationButtons.length)&&(this.$paginationButtons.empty(),this.getPageNumbers(r,e,o).forEac
10h(function(t){var e;"..."===t?((e=$("<button></button>",{class:"o-pagination__button o-pagination__button--dots",disabled:!0})).append("<span>...</span>"),i.$paginationButtons.append(e)):((e=$("<button></button>",{class:"o-pagination__button"+(t===r?" is-active":""),"aria-label":"Page ".concat(t)})).append("<span>".concat(t,"</span>")),e.on("click",function(){i.disableAutoplay(),i.rendition.display(n.items[t-1].href)}),i.$paginationButtons.append(e))}))}catch(t){this.config.debug&&console.error("Error updating progress:",t)}}}},{key:"getVisibleCount",value:function(){return 1024<=window.innerWidth?9:768<=window.innerWidth?7:5}},{key:"getPageNumbers",value:function(t,e,i){if(e<=i)return Array.from({length:e},function(t,e){return e+1});var n,r=Math.floor((i-5)/2),o=e-1<=t+r;if(t-r<=2)return(n=Array.from({length:i-2},function(t,e){return e+1})).push("..."),n.push(e),n;if(o){for(var s=[1,"..."],a=e-(i-3);a<=e;a++)s.push(a);return s}for(var l=[1,"..."],c=t-r;c<=t+r;c++)l.push(c);return l.push("..."),l.push(e),l}},{key:"setupAutoplay",value:function(){var e=this,t=new IntersectionObserver(function(t){t.forEach(function(t){e.isInViewport=t.isIntersecting,e.isInViewport?e.startAutoplay():e.stopAutoplay()})},{threshold:.5});this.observer=t,this.observer.observe(this.$element[0])}},{key:"startAutoplay",value:function(){var i=this;this.autoplayTimer||(this.autoplayTimer=setInterval(function(){var t,e;i.rendition&&(t=i.rendition.currentLocation())&&t.start&&(e=i.book.spine)&&e.items&&(e.items.length<=t.start.index+1?i.rendition.display(e.items[0].href):i.rendition.next())},this.autoplayInterval))}},{key:"stopAutoplay",value:function(){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null)}},{key:"disableAutoplay",value:function(){this.autoplay=!1,this.stopAutoplay(),this.observer&&(this.observer.disconnect(),this.observer=null)}},{key:"setupKeyboardNavigation",value:function(){var e=this;this.$element.on("keydown",function(t){"ArrowLeft"===t.key||"PageUp"===t.key?(t.preventDefault(),e.rendition.prev()):"ArrowRight"!==t.key&&"PageDown"!==t.key||(t.preventDefault(),e.rendition.next())})}}])&&ye(t.prototype,e),i&&ye(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=j(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=j(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==j(t)?t:t+""))(n.key),n)}}function ke(t,e,i){return e&&_e(t.prototype,e),i&&_e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var Oe=ke(function t(e,i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");$(e).slick({arrows:!1,dots:!0,speed:500,slidesToShow:2,slidesToScroll:2,fade:!1,infinite:!1,responsive:[{breakpoint:i,settings:{slidesToShow:1,slidesToScroll:1}}]})});function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ee(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Ce(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=xe(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEac
10h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Te(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xe(n.key),n)}}function xe(t){t=((t,e)=>{if("object"!=A(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=A(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==A(t)?t:t+""}var je=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config=Ce(Ce({},{hideClass:"is-hidden",startClass:"js-floating-sidebar__start",stopClass:"js-floating-sidebar__stop",debounceTime:50,offset:100}),e),this.$element=$(t),this.$start=$("."+this.config.startClass),this.$stop=$("."+this.config.stopClass),this.$bottom=null,this.hookEvents()}return t=i,(e=[{key:"hookEvents",value:function(){var t=this;this.setStartPosition(),this.setStopPosition(),this.setElementVisibility(),$(window).on("resize",l(function(){t.setStartPosition(),t.setStopPosition(),t.setElementVisibility()},this.config.debounceTime)),$(window).on("scroll",l(function(){t.setElementVisibility()},this.config.debounceTime))}},{key:"setStartPosition",value:function(){this.startPosition=this.$start.length?this.$start.offset().top:null}},{key:"setStopPosition",value:function(){this.stopPosition=this.$stop.length?this.$stop.offset().top:null}},{key:"setElementVisibility",value:function(){var t=$(window).scrollTop(),e=$(window).height(),i=this.isInViewport(this.$start),n=0<this.$stop.length,r=n?this.$stop.offset().top:null;this.$start.length?i&&(!n||t<r)?this.showElement(this.$element):this.hideElement(this.$element):!n||t<r?this.showElement(this.$element):this.hideElement(this.$element),!n&&t+e>=$(document).height()&&this.showElement(this.$element),n&&r-e<=t&&this.hideElement(this.$element)}},{key:"isInViewport",value:function(t){return!!t.length&&t.offset().top<$(window).scrollTop()+$(window).height()-this.config.offset}},{key:"hideElement",value:function(t){$(t).hasClass(this.config.hideClass)||$(t).addClass(this.config.hideClass)}},{key:"showElement",value:function(t){$(t).hasClass(this.config.hideClass)&&$(t).removeClass(this.config.hideClass)}}])&&Te(t.prototype,e),n&&Te(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ae(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=P(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=P(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==P(t)?t:t+""))(n.key),n)}}var Pe=(()=>{function i(t){var e=this;if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.$videoContainer=$(t),this.video=this.$videoContainer.find(".js-youtube-player__video"),this.playButton=this.$videoContainer.find(".js-youtube-player__play"),this.closeButton=this.$videoContainer.find(".js-youtube-player__close"),this.cover=this.$videoContainer.find(".js-youtube-player__cover"),this.parentVideoSlider=this.$videoContainer.closest(".js-video-slider"),this.playingClass="is-playing",this.videoId=$(this.video).data("video"),this.$videoWrapper=this.$videoContainer.closest(".js-video-ratio"),window.isYoutubeApiReady=window.isYoutubeApiReady||!1,$(this.closeButton).hide(),$(this.playButton).on("click",this.playVideo.bind(this)),$(this.closeButton).on("click",this.closeVideo.bind(this)),$(this.$videoContainer).on("fp:stopVideo",this.closeVideo.bind(this)),$(window).on("resize",this.closeVideo.bind(this)),this.$videoWrapper.length&&(this.videoRatio=parseFloat(this.$videoWrapper.data("ratio")),this.setVideo
10Height(),$(window).on("resize",l(this.setVideoHeight.bind(this),100))),$(document).on("keyup",function(t){27===t.keyCode&&e.closeVideo()})}return t=i,(e=[{key:"setVideoHeight",value:function(){this.$videoContainer.css("height",Math.round(this.$videoWrapper.width()*this.videoRatio))}},{key:"prepareVideo",value:function(){var e=this;this.onApiReady(function(){var t={videoId:e.videoId,events:{onReady:function(){e.youtubePlayer.playVideo()},onStateChange:function(t){t.data===YT.PlayerState.ENDED&&e.closeVideo()}},playerVars:{controls:1,rel:0,playsinline:1,modestbranding:1,autoplay:1,start:0,cc_load_policy:1,mute:e.shouldStartMuted()?1:0}};t.origin=window.location.hostname,e.youtubePlayer=new YT.Player($(e.video)[0],t)})}},{key:"shouldStartMuted",value:function(){return 0<this.$videoContainer.closest(".is-sent").length}},{key:"playVideo",value:function(){this.youtubePlayer?this.youtubePlayer.playVideo():this.prepareVideo(),$(this.cover).fadeOut(500),$(this.closeButton).fadeIn(500),this.parentVideoSlider.length&&this.parentVideoSlider.addClass(this.playingClass)}},{key:"closeVideo",value:function(){this.youtubePlayer&&(this.youtubePlayer.pauseVideo(),this.youtubePlayer.seekTo(0),$(this.cover).fadeIn(500),$(this.closeButton).fadeOut(500),this.parentVideoSlider.length)&&this.parentVideoSlider.removeClass(this.playingClass)}},{key:"onApiReady",value:function(t){var e=this;window.isYoutubeApiReady||this.insertAPI(),window.isYoutubeApiReady?t():setTimeout(function(){e.onApiReady(t)},350)}},{key:"insertAPI",value:function(){var t,e;document.querySelector('script[src*="youtube.com/iframe_api"]')||(t=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){"function"==typeof t&&t(),window.isYoutubeApiReady=!0},(e=document.createElement("script")).src="https://www.youtube.com/iframe_api",document.head.append(e))}}])&&Ae(t.prototype,e),n&&Ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ie(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function $e(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Ne(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Re(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ne(n.key),n)}}function Ne(t){t=((t,e)=>{if("object"!=I(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=I(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==I(t)?t:t+""}var De=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config={offset:-50,duration:300,formSelector:".js-form",sentClass:"is-sent"},this.config=$e($e({},this.config),e),this.element=t,this.observeElement()}return t=i,(e=[{key:"observeElement",value:function(){var n=this;new MutationObserver(function(t,e){var i=$(n.element);i.length&&i.is(":visible")&&(n.setFormAsSent(i),e.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}},{key:"setFormAsSent",value:function(){var t,e;$("body").hasClass("elementor-editor-active")||0!==(t=$(this.element).closest(this.config.formSelector)).length&&(e=$(t).offset().top+this.config.offset,$("body, html").animate({scrollTop:e}),$(t).addClass(this.config.sentClass),(e=$(t).find(".js-contact-form__thankyou")).length&&($(t).find(".js-hide-when-sent").hide(),e.removeAttr("hidden")),(e=$(t).find(".js-youtube-player")).length)&&new Pe(e).playVideo()}}])&&Re(t.prototype,e),n&&Re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Me(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?Le(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Be(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ze(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Be(n.key),n)}}function Be(t){t=((t,e)=>{if("object"!=R(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=R(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==R(t)?t:t+""}var Fe=(()=>{function s(t,e,i,n,r,o){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.config=Me(Me({},{stepsElement:".js-framework__steps",stagesElement:".js-framework__stages"}),o),this.breakpointTablet=e,this.breakpointMedium=i,this.breakpointBig=n,this.breakpointLaptop=r,this.$element=$(t),this.$stages=this.$element.find(this.config.stagesElement),this.$steps=this.$element.find(this.config.stepsElement),this.hookEvents()}return t=s,(e=[{key:"hookEvents",value:function(){this.$stages.length&&this.initStages(),this.$steps.length&&this.initSteps()}},{key:"initStages",value:function(){this.$stages.slick({arrows:!1,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[{breakpoint:this.breakpointTablet-1,settings:{variableWidth:!0}},{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:2,variableWidth:!1}},{breakpoint:this.breakpointBig-1,settings:{slidesToShow:3}}]})}},{key:"initSteps",value:function(){this.$steps.slick({arrows:!1,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[{breakpoint:this.breakpointTablet-1,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:this.breakpointBig-1,settings:{slidesToShow:4}},{breakpoint:this.breakpointLaptop-1,settings:{slidesToShow:5}}]})}}])&&ze(t.prototype,e),i&&ze(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function qe(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=He(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function We(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,He(n.key),n)}}function He(t){t=((t,e)=>{if("object"!=N(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=N(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==N(t)?t:t+""}var Ve=(()=>{return t=function t(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");this.config=qe(qe({},{hideClass:"is-hidden",swipeThreshold:10,scrollBlockedClass:"is-scroll-blocked"}),n),this.$element=$(e),this.direction=this.$element.data("swipe-direction")||"right",this.breakpoint=i,this.hookEvents()},(e=[{key:"hookEvents",value:function(){this.$element.on("touchstart",this.onTouchStart.bind(this)),this.$element.on("touchmove",this.onTouchMove.bind(this))}},{key:"onTouchStart",value:function(t){this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY}},{key:"onTouchMove",value:function(t){var e=t.touches[0].clientX,t=t.touches[0].clientY,e=this.startX-e,t=this.startY-t;window.innerWidth>=this.breakpoint||this.$element.hasClass(this.config.hideClass)||(Math.abs(e)>Math.abs(t)&&Math.abs(e)>this.config.swipeThreshold?(0<e&&"left"===this.direction||e<0&&"right"===this.direction)&&this.hideElement():Math.abs(t)>this.config.swipeThreshold&&(0<t&&"up"===this.direction||t<0&&"down"===this.direction)&&this.hideElement())}},{key:"hideElement",value:function(){this.$element.addClass(this.config.hideClass),$("body").removeClass(this.config.scrollBlockedClass)}}])&&We(t.prototype,e),i&&We(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ye(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=D(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=D(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==D(t)?t:t+""))(n.key),n)}}var Xe=(()=>{function r(t,e,i,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.$element=$(t),this.breakpointTablet=e,this.breakpointMedium=i,this.breakpointLaptop=n,this.init()}return t=r,(e=[{key:"init",value:function(){$(this.$element).on("init",function(){$(window).trigger("resize")}),$(this.$element).slick({arrows:!1,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[{breakpoint:this.breakpointTablet-1,settings:{slidesToShow:2}},{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:3}},{breakpoint:this.breakpointLaptop-1,settings:{slidesToShow:4}}]})}}])&&Ye(t.prototype,e),i&&Ye(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ge(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Ze(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?Ge(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Qe(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Ke(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qe(n.key),n)}}function Qe(t){t=((t,e)=>{if("object"!=L(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=L(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==L(t)?t:t+""}var Je=(()=>{return t=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=this,n=t;if(!(i instanceof n))throw new TypeError("Cannot call a class as a function");this.config=Ze(Ze({},{scrolledClass:"is-scrolled",scrollingClass:"is-scrolling",scrollingUpClass:"is-scrollingUp",debounceTime:50}),e),this.$window=$(window),this.$body=$("body"),this.scrollTop=0,this.hookEvents()},(e=[{key:"hookEvents",value:function(){this.setIsScrolled(),this.$window.on("scroll",l(this.checkScroll.bind(this),this.config.debounceTime)),this.$window.on("scroll",l(this.setIsScrolled.bind(this),this.config.debounceTime))}},{key:"checkScroll",value:function(){this.setIsScrollingUp(),this.setIsScrolled()}},{key:"setIsScrollingUp",value:function(){var t=$(document).scrollTop();!this.$body.hasClass(this.config.scrollingClass)&&t<this.scrollTop?this.$body.addClass(this.config.scrollingUpClass):this.$body.removeClass(this.config.scrollingUpClass),this.scrollTop=t}},{key:"setIsScrolled",value:function(){$(document).scrollTop()<50?this.$body.removeClass(this.config.scrolledClass):this.$body.addClass(this.config.scrolledClass)}}])&&Ke(t.prototype,e),i&&Ke(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ti(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function ei(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=ni(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ii(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ni(n.key),n)}}function ni(t){t=((t,e)=>{if("object"!=M(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=M(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==M(t)?t:t+""}var ri=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=ei(ei({},{buttonSelector:".js-languages-menu__button",openedClassName:"is-opened"}),i),this.$element=$(e),this.$button=this.$element.find(this.config.buttonSelector),this.hoverTimeout=null,this.openedByClick=!1,this.init()},(e=[{key:"init",value:function(){var e=this;this.$button.on("click",function(t){t.preventDefault(),t.stopPropagation(),clearTimeout(e.hoverTimeout),e.openedByClick?(e.openedByClick=!1,e.$element.removeClass(e.config.openedClassName)):(e.openedByClick=!0,e.$element.addClass(e.config.openedClassName))}),this.$element.on("mouseenter",function(){e.hoverTimeout=setTimeout(function(){e.$element.addClass(e.config.openedClassName)},50)}),this.$element.on("mouseleave",function(){clearTimeout(e.hoverTimeout),e.openedByClick=!1,e.$element.removeClass(e.config.openedClassName)}),$(document).on("click",function(t){e.$element.is(t.target)||0!==e.$element.has(t.target).length||(e.openedByClick=!1,e.$element.removeClass(e.config.openedClassName))})}}])&&ii(t.prototype,e),i&&ii(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function si(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function ai(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?si(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=ci(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function li(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ci(n.key),n)}}function ci(t){t=((t,e)=>{if("object"!=oi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=oi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==oi(t)?t:t+""}var ui=(()=>{function a(t,e,i,n,r,o){var s=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.$carousel=t,this.isNumbers="numbers"===t.data("type"),this.tabletBreakpoint=e,this.mediumBreakpoint=i,this.bigBreakpoint=n,this.laptopBreakpoint=r,this.fullhdBreakpoint=o,this.$carousel.length&&this.initCarousel(),$(window).on("resize",l(function(){s.manageCarouselOnResize()}))}return t=a,(e=[{key:"returnSettings",value:function(){var t=this.tabletBreakpoint,e=this.mediumBreakpoint,i=this.laptopBreakpoint,n=this.fullhdBreakpoint;return this.isNumbers?{slidesToShow:4,responsive:[{breakpoint:e,settings:{slidesToShow:3}},{breakpoint:t,settings:{slidesToShow:1,centerMode:!0}}]}:{slidesToShow:6,responsive:[{breakpoint:n,settings:{slidesToShow:5}},{breakpoint:i,settings:{slidesToShow:4}},{breakpoint:e,settings:{slidesToShow:3}},{breakpoint:t,settings:{slidesToShow:2}}]}}},{key:"initCarousel",value:function(){var t=ai({arrows:!1,slidesToScroll:1,autoplay:!0,speed:8e3,autoplaySpeed:0,pauseOnHover:!1,pauseOnFocus:!1,draggable:!1,cssEase:"linear"},this.returnSettings());this.$carousel.slick(t)}},{key:"manageCarouselOnResize",value:function(){this.$carousel.hasClass("slick-initialized")&&this.$carousel.slick("unslick"),this.initCarousel()}}])&&li(t.prototype,e),i&&li(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function hi(t){return(hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function di(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function fi(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=mi(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function pi(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mi(n.key),n)}}function mi(t){t=((t,e)=>{if("object"!=hi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=hi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==hi(t)?t:t+""}var gi=(()=>{function n(t,e,i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.config=fi(fi({},{menuHamburgerSelector:".js-menu-hamburger",menuSelector:".js-main-menu__menu",textSelector:".js-text",mobileItemSelector:".js-menu-item--mobile",itemSelector:".js-menu-item",dropdownSelector:".js-menu__dropdown",textSizerMinSelector:".js-text-sizer--min",textSizerMaxSelector:".js-text-sizer--max",openedClass:"is-opened",menuOpenedClass:"is-menu-opened",dropdownOpenedClass:"is-dropdown-opened",debounceTime:50}),i),this.bigBreakpoint=e,this.$menuContainer=$(t),this.$menuHamburger=this.$menuContainer.find(this.config.menuHamburgerSelector),this.$text=this.$menuHamburger.find(this.config.textSelector),this.$textSizerMax=this.$menuHamburger.find(this.config.textSizerMaxSelector),this.textMaxWidth=this.$textSizerMax.width(),this.$textSizerMin=this.$menuHamburger.find(this.config.textSizerMinSelector),this.textMinWidth=this.$textSizerMin.width(),this.$body=$("body"),this.$document=$(document),this.$window=$(window),this.$menu=this.$menuContainer.find(this.config.menuSelector),this.$mobileItems=$(this.$menu.find(this.config.mobileItemSelector)),this.$items=$(this.$menu.find(this.config.itemSelector)),this.$dropdowns=this.$menu.find(this.config.dropdownSelector),this.init()}return t=n,(e=[{key:"init",value:function(){var n=this;this.$menuHamburger.on("click",this.toggleMenu.bind(this)),this.$menu.on("click",function(t){t.stopPropagation(),n.closeMenu()}),this.$mobileItems.each(function(t,e){var i=$(e);i.on("click",function(t){n.$window.outerWidth()>=n.bigBreakpoint||(t.stopPropagation(),t.preventDefault(),n.toggleDropdown(i))})}),this.$items.each(function(t,e){var i=$(e);i.on("mouseenter",function(){n.$window.outerWidth()<n.bigBreakpoint||(i.addClass(n.config.openedClass),n.showDropdown($(i.find(n.config.dropdownSelector))))}),i.on("mouseleave",function(){n.$window.outerWidth()<n.bigBreakpoint||(i.removeClass(n.config.openedClass),n.hideDropdown($(i.find(n.config.dropdownSelector))))})}),this.$document.on("keyup",this.handleEscKey.bind(this)),this.$text.css("width",this.textMinWidth),this.$window.on("resize",l(this.closeMenu.bind(this),this.config.debounceTime))}},{key:"handleEscKey",value:function(t){27===t.keyCode&&this.closeMenu()}},{key:"toggleDropdown",value:function(t){var e=t.siblings(this.config.dropdownSelector);e.hasClass(this.config.openedClass)?(t.removeClass(this.config.openedClass),this.hideDropdown(e)):(this.hideAllDropdowns(),this.showDropdown(e),t.addClass(this.config.openedClass))}},{key:"hideAllDropdowns",value:function(){var i=this;this.$dropdowns.each(function(t,e){e=$(e);i.hideDropdown(e)}
10),this.$mobileItems.each(function(t,e){$(e).removeClass(i.config.openedClass)})}},{key:"showDropdown",value:function(t){t.hasClass(this.config.openedClass)||(t.addClass(this.config.openedClass),this.$body.addClass(this.config.dropdownOpenedClass))}},{key:"hideDropdown",value:function(t){t.hasClass(this.config.openedClass)&&(t.removeClass(this.config.openedClass),this.$body.removeClass(this.config.dropdownOpenedClass))}},{key:"toggleMenu",value:function(){this.$menuHamburger.hasClass(this.config.openedClass)?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){this.$menuHamburger.addClass(this.config.openedClass),this.$menu.addClass(this.config.openedClass),this.$text.css("width",this.textMaxWidth),this.$body.addClass(this.config.menuOpenedClass)}},{key:"closeMenu",value:function(){this.$menuHamburger.removeClass(this.config.openedClass),this.$menu.removeClass(this.config.openedClass),this.$text.css("width",this.textMinWidth),this.$body.removeClass(this.config.menuOpenedClass),this.hideAllDropdowns()}}])&&pi(t.prototype,e),i&&pi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function vi(t){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bi(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=vi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=vi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==vi(t)?t:t+""))(n.key),n)}}var yi=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.defaults={bodyClass:"has-modal-open",overlaySelector:".js-overlay",modalSelector:".js-modal",closeSelector:".js-modal__close",formSelector:".js-modal__form",thankyouSelector:".js-modal__thankyou",headingSelector:".js-modal__heading",textSelector:".js-modal__text",submittedSelector:".submitted-message",triggerAttr:"data-modal",formPlaceholderSelector:".js-elementor-form-placeholder",hsErrorMsgsSelector:".hs-error-msgs",hsErrorRollupSelector:".hs_error_rollup",hsHasErrorClass:"hs-has-error"},this.$modal=$(t),this.modalId=this.$modal.attr("id"),this.modalId&&(this.$triggers=$("["+this.defaults.triggerAttr+'="'+this.modalId+'"]'),this.$closeButton=this.$modal.find(this.defaults.closeSelector),this._previousFocus=null,this._formObserver=null,this.$body=$("body"),this._preventTouchMove=this._preventTouchMove.bind(this),this.$triggers.on("click",this._open.bind(this)),this.$closeButton.on("click",this._close.bind(this)),$(document).on("keydown.modal-"+this.modalId,this._handleKeydown.bind(this)))}return t=e,(i=[{key:"_preventTouchMove",value:function(t){$(t.target).closest(this.defaults.modalSelector).length||t.preventDefault()}},{key:"_open",value:function(){this._previousFocus=document.activeElement,this.$modal.attr("aria-hidden","false"),this.$body.addClass(this.defaults.bodyClass),document.addEventListener("touchmove",this._preventTouchMove,{passive:!1}),$(this.defaults.overlaySelector).one("click.modal-"+this.modalId,this._close.bind(this)),this.$closeButton[0].focus(),this._resetFormState(),this._watchFormSubmission()}},{key:"_close",value:function(){this.$modal.attr("aria-hidden","true"),this.$body.removeClass(this.defaults.bodyClass),document.removeEventListener("touchmove",this._preventTouchMove),$(this.defaults.overlaySelector).off("click.modal-"+this.modalId),this._reset(),this._previousFocus&&$(this._previousFocus).focus()}},{key:"_watchFormSubmission",value:function(){var n,r=this;this.$modal.find(this.defaults.thankyouSelector).length&&(n=this.$modal.find(this.defaults.formSelector)).length&&(this._formObserver=new MutationObserver(function(t,e){var i=n.find(r.defaults.submittedSelector);i.length&&i.is(":visible")&&(e.disconnect(),r._formObserver=null,r._showCustomThankyou())}),this._formObserver.observe(n[0],{childList:!0,subtree:!0}))}},{key:"_showCustomThankyou",value:function(){this.$modal.find(this.defaults.formSelector).hide(),this.$modal.find(this.defaults.headingSelector).hide(),this.$modal.find(this.defaults.textSelector).hide(),this.$modal.find(this.defaults.thankyouSelector).removeAttr("hidden")}},{key:"_resetFormState",value:function(){var t,e=this.$modal.find(this.defaults.formSelector);e.length&&((t=e.find("form")).length?(t[0].reset(),e.find(this.defaults.hsErrorMsgsSelector).hide(),e.find(this.defaults.hsErrorRollupSelector).hide(),e.find("."+this.defaults.hsHasErrorClass).removeClass(this.defaults.hsHasErrorClass)):this._reinitForm())}},{key:"_reinitForm",value:function(){var t,e,i,n,r=this.$modal.find(this.defaults.formSelector);r.length&&(t=r.data("portal-id"),e=r.data("form-id"),window.hbspt)&&t&&e&&(i=r.find(this.defaults.formPlaceholderSelector).detach(),n="js-modal-form-"+this.modalId,r.empty().append(i).append('<div id="'+n+'"></div>'),window.hbspt.forms.create({region:"na1",portalId:String(t),formId:e,target:"#"+n}))}},{key:"_reset",value:function(){this._formObserver&&(this._formObserver.disconnect(),this._formObserver=null);var t=this.$modal.find(this.defaults.thankyouSelector),t=(t.length&&t.attr("hidden",""),this.$modal.find(this.defaults.headingSelector).show(),this.$modal.find(this.defaults.textSelector).show(),this.$modal.find(this.defaults.formSelector));t.length&&t.show(),this._reinitForm()}},{key:"_handleKeydown",value:function(t){"false"===this.$modal.attr("aria-hidden")&&("Escape"===t.key?this._close():"Tab"===t.key&&this._trapFocus(t))}},{key:"_trapFocus",value:function(t){var e,i,n=this.$modal.find('a[href]:visible, button:not([disabled]):visible, input:not([disabled]):visible, select:not([disabled]):visible, textarea:not([disabled]):visible, [tabindex]:not
10([tabindex="-1"]):visible').toArray();n.length&&(e=n[0],n=n[n.length-1],i=document.activeElement,t.shiftKey&&i===e?(t.preventDefault(),n.focus()):t.shiftKey||i!==n||(t.preventDefault(),e.focus()))}}])&&bi(t.prototype,i),n&&bi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n})();function wi(t){return(wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Si(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function _i(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Oi(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Si(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ki(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Oi(n.key),n)}}function Oi(t){t=((t,e)=>{if("object"!=wi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=wi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==wi(t)?t:t+""}var Ei=(()=>{return t=function t(e,i,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=this,s=t;if(!(o instanceof s))throw new TypeError("Cannot call a class as a function");this.config=_i(_i({},{speed:500}),r),this.$element=$(e),this.breakpointBig=i,this.breakpointLaptop=n,this.init()},(e=[{key:"init",value:function(){this.$element.slick({arrows:!0,dots:!1,speed:this.config.speed,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[{breakpoint:this.breakpointBig-1,settings:{slidesToShow:3}},{breakpoint:this.breakpointLaptop-1,settings:{slidesToShow:4}}]})}}])&&ki(t.prototype,e),i&&ki(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Ci(t){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ti(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function xi(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Ai(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Ti(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ji(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ai(n.key),n)}}function Ai(t){t=((t,e)=>{if("object"!=Ci(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Ci(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Ci(t)?t:t+""}var Pi=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=xi(xi({},{animation:"fade",showDots:!1,showArrows:!0,autoplay:!1}),i),this.$element=$(e),this.$navigation=this.$element.siblings(".js-quotations-slider__navigation"),this.prevArrow=this.$navigation.find(".js-quotations-slider__prev"),this.page=this.$navigation.find(".js-quotations-slider__page"),this.nextArrow=this.$navigation.find(".js-quotations-slider__next"),this.animation=this.$element.data("animation")||this.config.animation,this.init()},(e=[{key:"init",value:function(){var t=this;this.$element.slick({slidesToShow:1,slidesToScroll:1,dots:!1,autoplay:!1,arrows:!0,infinite:!0,fade:"fade"===this.animation,prevArrow:this.prevArrow,nextArrow:this.nextArrow}),this.updatePageNumber(),this.$element.on("afterChange",function(){t.updatePageNumber()})}},{key:"updatePageNumber",value:function(){var t=this.$element.slick("slickCurrentSlide")+1,e=this.$element.slick("getSlick").slideCount;this.page.text("".concat(t,"/").concat(e))}}])&&ji(t.prototype,e),i&&ji(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Ii(t){return(Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $i(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Ri(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?$i(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Di(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):$i(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Ni(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Di(n.key),n)}}function Di(t){t=((t,e)=>{if("object"!=Ii(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Ii(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Ii(t)?t:t+""}var Li=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=Ri(Ri({},{debug:!1,sliderSelector:".js-photo-gallery__slider",navSelector:".js-photo-gallery__nav"}),i),this.$galleryContainer=e,this.$slider=$(this.$galleryContainer.find(this.config.sliderSelector)),this.$nav=$(this.$galleryContainer.find(this.config.navSelector)),this.$slider.length&&this.$nav.length?this.initSlider():this.config.debug&&console.error("Photo Gallery: Invalid wrapper element or no items inside")},(e=[{key:"initSlider",value:function(){this.$slider.slick({slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,asNavFor:this.$nav,infinite:!0}),this.$nav.slick({slidesToShow:4,slidesToScroll:1,asNavFor:this.$slider,dots:!1,centerMode:!1,focusOnSelect:!0,infinite:!0})}}])&&Ni(t.prototype,e),i&&Ni(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Mi(t){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zi(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Bi(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Ui(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Fi(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ui(n.key),n)}}function Ui(t){t=((t,e)=>{if("object"!=Mi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Mi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Mi(t)?t:t+""}var qi=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=Bi(Bi({},{debug:!1,featuresSelector:".js-pricing__features",headersSelector:".js-pricing__headers"}),i),this.$element=$(e),this.features=this.$element.find(this.config.featuresSelector),this.headers=this.$element.find(this.config.headersSelector),this.init()},(e=[{key:"init",value:function(){this.headers.slick({slidesToShow:1,slidesToScroll:1,dots:!0,asNavFor:this.features,arrows:!1,infinite:!1,draggable:!1}),this.features.slick({slidesToShow:1,slidesToScroll:1,asNavFor:this.headers,arrows:!1,dots:!1,infinite:!1,draggable:!1})}}])&&Fi(t.prototype,e),i&&Fi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})(),Wi=t(34);function Hi(t){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vi(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=Hi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Hi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==Hi(t)?t:t+""))(n.key),n)}}function Yi(t,e,i){return e&&Vi(t.prototype,e),i&&Vi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var Xi=Yi(function t(e,i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.$parent=$(e),this.canvas=this.$parent.find(".js-rive__canvas")[0],this.riveFile=this.$parent.data("file");var n=new Wi.Rive({src:this.riveFile,canvas:this.canvas,autoplay:!0,stateMachines:"bumpy",onLoad:function(){n.resizeDrawingSurfaceToCanvas()}})});function Gi(t){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zi(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Ki(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?Zi(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Ji(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Qi(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ji(n.key),n)}}function Ji(t){t=((t,e)=>{if("object"!=Gi(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Gi(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Gi(t)?t:t+""}var tn=(()=>{function n(t,e,i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.config=Ki(Ki({},{debounceTime:20,delta:0,offsetScrollUp:200,menuOffset:0,animationTime:200}),i),this.$items=$(t).find(".js-scroll-snap__item"),this.isAnimating=!1,this.lastScrollTop=0,this.breakpoint=e,$(document).on("scroll",l(this.handleScroll.bind(this),this.config.debounceTime))}return t=n,(e=[{key:"handleScroll",value:function(){var n,r=this;this.isAnimating||window.innerWidth<this.breakpoint||(n=$(document).scrollTop(),Math.abs(this.lastScrollTop-n)>=this.config.delta&&(n>this.lastScrollTop?this.$items.each(function(t,e){var e=$(e),i=e.offset().top,e=i+e.outerHeight();if(n<e&&i<n)return r.isAnimating=!0,$("html, body").animate({scrollTop:e-r.config.menuOffset},r.config.animationTime,function(){r.isAnimating=!1}),!1}):this.$items.each(function(t,e){var e=$(e),i=e.offset().top;if(i+e.outerHeight()>n+r.config.offsetScrollUp&&i<n)return r.isAnimating=!0,$("html, body").animate({scrollTop:i-r.config.menuOffset},r.config.animationTime,function(){r.isAnimating=!1}),!1}),this.lastScrollTop=n))}}])&&Qi(t.prototype,e),i&&Qi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function en(t){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function rn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=sn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):nn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function on(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sn(n.key),n)}}function sn(t){t=((t,e)=>{if("object"!=en(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=en(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==en(t)?t:t+""}var an=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.$scrollSpyElement=$(e),this.config=rn(rn({},{debounceTime:50,activeClass:"is-active"}),i),this.$window=$(window),this.$links=$(this.$scrollSpyElement.find("button")),this.hookEvents()},(e=[{key:"hookEvents",value:function(){var e=this;this.checkElements(),this.$window.on("scroll",l(this.checkElements.bind(this),this.config.debounceTime)),this.$scrollSpyElement.on("click",function(t){e.setActiveElement(t)})}},{key:"setActiveElement",value:function(t){var i=this;
10this.$links.each(function(t,e){$(e).removeClass(i.config.activeClass)}),$(t.target).addClass(this.config.activeClass)}},{key:"checkElements",value:function(){var n=this,r=null;this.$links.each(function(t,e){var e=$(e),i=(e.removeClass(n.config.activeClass),e.data("scroll"));i&&n.isInView(i)&&(r=e)}),r&&r.addClass(this.config.activeClass)}},{key:"isInView",value:function(t){var e,i;try{i=$(t)}catch(t){return!1}return 0!==i.length&&(t=$(document).scrollTop(),i=(e=i.offset().top)+i.outerHeight(),e-this.$window.height()/2<=t)&&t<i}}])&&on(t.prototype,e),i&&on(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function ln(t){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,c=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}})(t,e)||((t,e)=>{var i;if(t)return"string"==typeof t?un(t,e):"Map"===(i="Object"===(i={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?un(t,e):void 0})(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function un(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function hn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function dn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=pn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function fn(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pn(n.key),n)}}function pn(t){t=((t,e)=>{if("object"!=ln(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=ln(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==ln(t)?t:t+""}var mn=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.config=dn(dn({},{duration:2e3,barSelector:".js-scale-bar",circleSelector:".js-scale-circle"}),i),this.bar=e.querySelector(this.config.barSelector),this.circle=e.querySelector(this.config.circleSelector),this.bar&&this.circle&&(this.canvas=this.buildGradientCanvas(),this.createObserver())},(e=[{key:"buildGradientCanvas",value:function(){var t=document.createElement("canvas"),e=(t.width=100,t.height=1,t.getContext("2d")),i=e.createLinearGradient(0,0,100,0);return i.addColorStop(0,"#DB3B21"),i.addColorStop(.41,"#DB3B21"),i.addColorStop(.57,"#F5C518"),i.addColorStop(.6,"#F5C518"),i.addColorStop(.74,"#7DE499"),i.addColorStop(.76,"#7DE499"),i.addColorStop(.92,"#07724E"),i.addColorStop(1,"#07724E"),e.fillStyle=i,e.fillRect(0,0,100,1),t}},{key:"getColorAtPercent",value:function(t){t=Math.round(Math.max(0,Math.min(99,t))),t=this.canvas.getContext("2d").getImageData(t,0,1,1).data;return[t[0],t[1],t[2]]}}
10,{key:"darkenColor",value:function(t,e,i){function n(t){return Math.max(0,Math.round(.9*t))}return"rgb(".concat(n(t),", ").concat(n(e),", ").concat(n(i),")")}},{key:"createObserver",value:function(){var i=this;new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(i.animate(),e.unobserve(t.target))})},{threshold:.3}).observe(this.circle)}},{key:"animate",value:function(){var r=this,o=(this.circle.classList.add("is-animated"),performance.now()),s=function(t){var e=r.bar.getBoundingClientRect(),i=r.circle.getBoundingClientRect(),i=(i.left+i.width/2-e.left)/e.width*100,e=cn(r.getColorAtPercent(i),3),i=e[0],n=e[1],e=e[2];r.circle.style.setProperty("--dot-color","rgb(".concat(i,", ").concat(n,", ").concat(e,")")),r.circle.style.setProperty("--dot-color-dark",r.darkenColor(i,n,e)),t-o<r.config.duration&&requestAnimationFrame(s)};requestAnimationFrame(s)}}])&&fn(t.prototype,e),i&&fn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function gn(t){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function bn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=wn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function yn(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wn(n.key),n)}}function wn(t){t=((t,e)=>{if("object"!=gn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=gn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==gn(t)?t:t+""}var Sn=(()=>{return t=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=this,n=t;if(!(i instanceof n))throw new TypeError("Cannot call a class as a function");this.$body=$("body"),this.$window=$(window),this.config=bn(bn({},{offset:-120,submenuOffset:-200,submenuSelector:".js-submenu",scrollingClass:"is-scrolling"}),e),this.scrollTimeout=null,this.userScrolled=!1,this.hookEvents(),this.scrollToHash()},(e=[{key:"hookEvents",value:function(){var e=this;$("[data-scroll]").on("click",function(t){e.scrollTo(t)}),this.$window.on("hashchange",function(){return e.scrollToHash()}),this.$window.on("load",function(){return e.scrollToHashAfterLoad()}),this.$window.one("wheel touchmove keydown",function(){e.userScrolled=!0}),$(this.config.submenuSelector).length&&this.$body.addClass("has-submenu")}},{key:"scrollTo",value:function(t){var e=$($(t.currentTarget).data("scroll")),t=$(t.currentTarget).data("scroll-offset")||this.config.offset;this.scroll(e,t)}},{key:"scrollToHash",value:function(){var t;this.$body.hasClass(this.config.scrollingClass)||(t=this.getHashId())&&(t=document.getElementById(t))&&$(t).is(":visible")&&t.scrollIntoView({block:"start",behavior:"instant"})}},{key:"scrollToHashAfterLoad",value:function(){this.userScrolled||this.scrollToHash()}},{key:"getHashId",value:function(){var e=window.location.hash;if(!e||e.length<2)return"";try{return decodeURIComponent(e.slice(1))}catch(t){return e.slice(1)}}},{key:"getHashOffset",value:function(i){var t=$("[data-scroll][data-scroll-offset]").filter(function(t,e){return $(e).data("scroll")==="#".concat(i)});return t.length?t.first().data("scroll-offset"):$(this.config.submenuSelector).length?this.config.submenuOffset:this.config.offset}},{key:"checkIfIsScrolling",value:function(){var t=this;clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(function(){t.$body.removeClass(t.config.scrollingClass),t.$window.off("scroll",t.checkIfIsScrolling)},50)}},{key:"scroll",value:function(t,e){0!==t.length&&(this.$body.addClass(this.config.scrollingClass),this.$window.on("scroll",this.checkIfIsScrolling.bind(this)),t=t.offset().top,$("body, html").animate({scrollTop:t+e}))}}])&&yn(t.prototype,e),i&&yn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function On(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?kn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Cn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):kn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function En(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Cn(n.key),n)}}function Cn(t){t=((t,e)=>{if("object"!=_n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=_n(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==_n(t)?t:t+""}var Tn=(()=>{return t=function t(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");r={itemSelector:".js-set-height__item",breakpoint:i.medium};this.config=On(On({},r),n),this.$container=$(e),this.breakpoints=i,this.setBreakpoint=this.$container.data("height-breakpoint"),this.setBreakpoint?this.breakpoint=this.breakpoints[this.setBreakpoint]:this.breakpoint=this.config.breakpoint,this.$items=this.$container.find(this.config.itemSelector),this.hookEvents()},(e=[{key:"hookEvents",value:function(){var t=this;this.setHeight(),$(window).on("resize",l(function(){t.setHeight()},50))}},{key:"setHeight",value:function(){var i;window.innerWidth<this.breakpoint?this.$items.css("height","auto"):(this.$items.css("height",""),i=0,this.$items.each(function(t,e){e=$(e).outerHeight();i<e&&(i=e)}),this.$items.css("height",i))}}])&&En(t.prototype,e),i&&En(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function xn(t){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function An(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=In(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):jn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Pn(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,In(n.key),n)}}function In(t){t=((t,e)=>{if("object"!=xn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=xn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==xn(t)?t:t+""}var $n=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config=An(An({},{hideClass:"is-hidden",hideOnEscape:!1,hideOnClickOutside:!1,scrollBlockedClass:"is-scroll-blocked"}),e),this.$element=$(t),this.hideElementData=this.$element.data("hide"),this.showElementData=this.$element.data("show"),this.hideElementIds=[],this.showElementIds=[];e=this.$element.data("hide-on-escape"),t=this.$element.data("hide-on-click-outside");void 0!==e&&(this.config.hideOnEscape=e),void 0!==t&&(this.config.hideOnClickOutside=t),this.hookEvents()}return t=i,(e=[{key:"hookEvents",value:function(){var e=this;this.$element.on("click",function(t){t.stopPropagation(),e.hideElementIds.forEach(function(t){e.hideElement("#"+t)}),e.showElementIds.forEach(function(t){e.showElement("#"+t)})}),this.hideElementData&&(this.hideElementIds=this.hideElementData.split(","),this.config.hideOnEscape)&&$(document).on("keydown",function(t){e.hideOnEscape(t)}),this.showElementData&&(this.showElementIds=this.showElementData.split(","),this.config.hideOnClickOutside)&&$(document).on("click",function(t){e.hideOnClickOutside(t)})}},{key:"hideOnClickOutside",value:function(e){var i=this;this.showElementIds.every(function(t){t=$("#"+t);return!t.is(e.target)&&0===t.has(e.target).length})&&this.showElementIds.forEach(function(t){i.hideElement("#"+t),$("body").removeClass(i.
10config.scrollBlockedClass)})}},{key:"hideOnEscape",value:function(t){var e=this;"Escape"===t.key&&this.hideElementIds.forEach(function(t){e.hideElement("#"+t)})}},{key:"hideElement",value:function(t){$(t).hasClass(this.config.hideClass)||($(t).addClass(this.config.hideClass),this.updateRelatedTriggers(t,!1))}},{key:"showElement",value:function(t){$(t).hasClass(this.config.hideClass)&&($(t).removeClass(this.config.hideClass),this.updateRelatedTriggers(t,!0))}},{key:"updateRelatedTriggers",value:function(t,e){t=$(t).attr("id");t&&$('[aria-controls="'.concat(t,'"][aria-expanded]')).attr("aria-expanded",e?"true":"false")}}])&&Pn(t.prototype,e),n&&Pn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Dn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Mn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Ln(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mn(n.key),n)}}function Mn(t){t=((t,e)=>{if("object"!=Rn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Rn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Rn(t)?t:t+""}var zn=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config=Dn(Dn({},{hideClass:"is-hidden",showClass:"is-visible"}),e),this.$element=$(t),this.$parent=this.$element.parent(),this.hookEvents()}return t=i,(e=[{key:"hookEvents",value:function(){var t=this;this.$element.on("click",function(){t.$parent.removeClass(t.config.hideClass).addClass(t.config.showClass),t.$element.hide()})}}])&&Ln(t.prototype,e),n&&Ln(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Un(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Wn(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Fn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function qn(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wn(n.key),n)}}function Wn(t){t=((t,e)=>{if("object"!=Bn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Bn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Bn(t)?t:t+""}var Hn=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.config=Un(Un({},{autoStart:!0,autoLoadTapes:!0,zoom:2,machine:48}),e),this.$container=$(t),this.containerId=this.$container.attr("id"),this.gameUrl=this.$container.data("game"),this.containerId&&this.gameUrl&&this.hookEvents()}return t=i,(e=[{key:"hookEvents",value:function(){var t,e=this;void 0===window.JSSpeccy?((t=document.createElement("script")).src="/wp-content/themes/future/jsspeccy/jsspeccy.js",t.onload=function(){e.initJSSpeccy()},document.body.appendChild(t)):this.initJSSpeccy(),$(window).on("resize",function(){e.setCanvasSize()})}},{key:"initJSSpeccy",value:function(){void 0!==window.JSSpeccy?(JSSpeccy(document.getElementById(this.containerId),{zoom:this.config.zoom,machine:this.config.machine,autoStart:this.config.autoStart,autoLoadTapes:this.config.autoLoadTapes,openUrl:this.gameUrl}),this.getCanvas()):console.error("JSSpeccy failed to load.")}},{key:"getCanvas",value:function(){var t=this;this.canvas=this.$container.find("canvas"),this.wrapper=this.$container.children("div").eq(1),this.canvas.length||setTimeout(function(){t.getCanvas()},50),this.canvas.length&&(this.setCanvasSize(),$('button[title="Enter full screen mode"]').hide())}},{key:"setCanvasSize",value:function(){var t=this.$container.width(),e=3*t/4;this.canvas.length&&(this.canvas.css("width",t+"px"),this.canvas.css("height",e+"px"),this.wrapper.css("width",t+"px"))}}])&&qn(t.prototype,e),n&&qn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function Vn(t){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yn(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Xn(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?Yn(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=(t=>(t=((t,e)=>{if("object"!=Vn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Vn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==Vn(t)?t:t+""))(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Gn(r,o,s,t){var a,l,t=3<arguments.length&&void 0!==t?t:{};o.length&&(a=Xn(Xn({},{pageClass:"o-slider__page",dotsClass:"o-slider__page--dots",activeClass:"is-active"}),t),(l=function(){var t,i,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r.slick("slickCurrentSlide")+1,e=r.slick("getSlick").slideCount;e<=1?o.html(""):(t=window.matchMedia("(min-width: ".concat(s,"px)")).matches,e=((t,e,i)=>{var n=[];if(e<=i)for(var r=1;r<=e;r++)n.push(r);else{if(i<=5)return t<=3?[1,2,3,"...",e]:e-2<=t?[1,"...",e-2,e-1,e]:[1,"...",t,"...",e];if(t<=4){for(var o=1;o<=7;o++)n.push(o);n.push("..."),n.push(e)}else if(e-3<=t){n.push(1),n.push("...");for(var s=e-6;s<=e;s++)n.push(s)}else{n.push(1),n.push("...");for(var a=t-2;a<=t+2;a++)n.push(a);n.push("..."),n.push(e)}}return n})(n,e,t?9:5),i="",e.forEach(function(t){var e;"..."===t?i+='<button type="button" class="'.concat(a.pageClass," ").concat(a.dotsClass,'" disabled>â¦</button>'):(e=t===n?" ".concat(a.activeClass):"",i+='<button type="button" class="'.concat(a.pageClass).concat(e,'" data-page="').concat(t,'">').concat(t,"</button>"))}),o.html(i))})(),o.on("click","[data-page]",function(t){t=parseInt($(t.currentTarget).attr("data-page"),10);r.slick("slickGoTo",t-1)}),r.on("beforeChange",function(t,e,i,n){l(n+1)}),r.on("setPosition",function(){return l()}))}function Zn(t){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kn(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=Zn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Zn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==Zn(t)?t:t+""))(n.key),n)}}var Qn=(()=>{function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.$element=$(t),this.breakpointTablet=e,this.$navigation=this.$element.siblings(".js-stats-slider__navigation"),this.prevArrow=this.$navigation.find(".js-stats-slider__prev"),this.nextArrow=this.$navigation.find(".js-stats-slider__next"),this.$pages=this.$navigation.find(".js-stats-slider__pages"),this.init()}return t=i,(e=[{key:"init",value:function(){var t=0<this.$navigation.length;this.$element.slick({slidesToShow:1,slidesToScroll:1,infinite:!1,mobileFirst:!0,dots:!1,arrows:t,prevArrow:this.prevArrow,nextArrow:this.nextArrow,variableWidth:!0}),t&&Gn(this.$element,this.$pages,this.breakpointTablet)}}])&&Kn(t.prototype,e),n&&Kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n})();function Jn(t){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tr(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function er(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=nr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEac
10h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function ir(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nr(n.key),n)}}function nr(t){t=((t,e)=>{if("object"!=Jn(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Jn(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Jn(t)?t:t+""}var rr=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.$body=$("body"),this.$window=$(window),this.config=er(er({},{menuHeight:100,scrolledClass:"is-submenu-scrolled",debounceTime:50}),i),this.scrollTimeout=null,this.$submenu=$(e),this.submenuTop=this.$submenu.offset().top-this.config.menuHeight,this.hookEvents()},(e=[{key:"hookEvents",value:function(){this.$window.on("load",this.setIsScrolled.bind(this)),this.$window.on("scroll",l(this.setIsScrolled.bind(this),this.config.debounceTime)),this.$window.on("resize",l(this.setScrollAfterResize.bind(this),this.config.debounceTime))}},{key:"setScrollAfterResize",value:function(){this.submenuTop=this.$submenu.offset().top-this.config.menuHeight,this.setIsScrolled()}},{key:"setIsScrolled",value:function(){$(document).scrollTop()<this.submenuTop?this.$body.removeClass(this.config.scrolledClass):this.$body.addClass(this.config.scrolledClass)}}])&&ir(t.prototype,e),i&&ir(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sr(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function ar(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=cr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function lr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cr(n.key),n)}}function cr(t){t=((t,e)=>{if("object"!=or(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=or(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==or(t)?t:t+""}var ur=(()=>{return t=function t(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");this.config=ar(ar({},{visibilityClass:"is-active",tabElement:".js-tabs__tab",panelElement:".js-tabs__panel",defaultTab:1,scrollOffset:100}),n),this.mobileBreakpoint=i,this.$window=$(window),this.$tabContainer=$(e),this.$tabs=$(this.$tabContainer.find(this.config.tabElement)),this.$panels=$(this.$tabContainer.find(this.config.panelElement)),0!==this.$tabs&&0!==this.$panels&&(this.isCollapsible=!1!==this.$tabContainer.data("collapsible"),this.activeTabId=null,this.enableTabs())},(e=[{key:"enableTabs",value:function(){var n=this;this.initializeActiveTab(),this.$tabs.on("click",function(t){var e=$(t.currentTarget),t=n.isMobile(),i=e.hasClass(n.config.visibilityClass);t&&n.isCollapsible&&i?(n.clearAllTabs(),n.activeTabId=null):t&&n.isCollapsible?0<n.$panels.filter(".is-active").length?(n.clearAllTabs(),setTimeout(function(){n.scrollToTab(e),n.setActiveTab(e)},500)):(n.scrollToTab(e),n.setActiveTab(e)):n.setActiveTab(e)}),this.$window.on("resize",function(){n.handleResize()})}},{key:"isMobile",value:function(){return this.$window.width()<this.mobileBreakpoint}},{key:"initializeActiveTab",value:function(){this.isMobile()&&this.isCollapsible?this.clearAllTabs():this.setActiveTab(this.$tabs.eq(this.config.defaultTab-1))}},{key:"handleResize",value:function(){var t=this.isMobile();null===this.activeTabId&&(t&&this.isCollapsible?this.clearAllTabs():this.$tabs.hasClass(this.config.visibilityClass)||this.setActiveTab(this.$tabs.eq(this.config.defaultTab-1),!1))}},{key:"clearAllTabs",value:function(){this.$tabs.removeClass(this.config.visibilityClass).attr("aria-expanded",!1),this.$panels.removeClass(this.config.visibilityClass).attr("aria-expanded",!1)}},{key:"setActiveTab",value:function(t){var i=this,e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=t.data("controls");e&&(this.activeTabId=n),this.$tabs.each(function(t,e){e=$(e);
10e.data("controls")!==n?(e.removeClass(i.config.visibilityClass),e.attr("aria-expanded",!1)):(e.addClass(i.config.visibilityClass),e.attr("aria-expanded",!0))}),this.$panels.each(function(t,e){e=$(e);e.attr("id")!==n?(e.removeClass(i.config.visibilityClass),e.attr("aria-expanded",!1)):(e.addClass(i.config.visibilityClass),e.attr("aria-expanded",!0))})}},{key:"scrollToTab",value:function(t){var e=this.$tabContainer.offset().top-this.config.scrollOffset;$("html, body").animate({scrollTop:e},400)}}])&&lr(t.prototype,e),i&&lr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function hr(t){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dr(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function fr(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=mr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function pr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mr(n.key),n)}}function mr(t){t=((t,e)=>{if("object"!=hr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=hr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==hr(t)?t:t+""}var gr=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.config=fr({},{tabSelector:".js-tab-selector",singleBoxSelector:".js-single-box",activeClass:"is-active",visibleClass:"is-visible",flippedClass:"is-flipped"}),this.$element=$(t),this.$tabs=this.$element.find(this.config.tabSelector),this.$singleBox=this.$element.find(this.config.singleBoxSelector),this.hookEvents()}return t=e,(i=[{key:"hookEvents",value:function(){var e=this;this.$tabs.on("click",function(t){t=t.currentTarget;e.handleShowTabContent(t)}),this.$singleBox.on("click",function(t){t=t.currentTarget;e.handleBoxFlip(t)}),$(document).on("click",function(t){e.handleOutsideClick(t)}),$(window).on("scroll",l(function(){e.handleScroll()},200))}},{key:"handleShowTabContent",value:function(t){var i=this,n=$(t).data("tabindex");this.$element.find("[data-index-content]").each(function(t,e){$(e).data("index-content")===n?$(e).addClass(i.config.visibleClass):$(e).removeClass(i.config.visibleClass)}),this.$element.find("[data-index-box]").each(function(t,e){$(e).data("index-box")===n?$(e).addClass(i.config.activeClass):$(e).removeClass(i.config.activeClass)})}},{key:"handleBoxFlip",value:function(i){var n=this;this.$singleBox.each(function(t,e){e!==i&&$(e).hasClass(n.config.flippedClass)&&$(e).removeClass(n.config.flippedClass)}),$(i).hasClass(this.config.flippedClass)?$(i).removeClass(this.config.flippedClass):($(i).addClass(this.config.flippedClass),setTimeout(function(){$(i).removeClass(n.config.flippedClass)},6e3))}},{key:"handleOutsideClick",value:function(t){var i=this;$(t.target).closest(this.$singleBox).length||this.$singleBox.each(function(t,e){$(e).hasClass(i.config.flippedClass)&&$(e).removeClass(i.config.flippedClass)})}},{key:"handleScroll",value:function(){var i=this;this.$singleBox.each(function(t,e){$(e).hasClass(i.config.flippedClass)&&$(e).removeClass(i.config.flippedClass)})}}])&&pr(t.prototype,i),n&&pr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n})();function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function br(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function yr(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?br(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Sr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function wr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sr(n.key),n)}}function Sr(t){t=((t,e)=>{if("object"!=vr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=vr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==vr(t)?t:t+""}var _r=(()=>{function s(t,e,i,n,r,o){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.config=yr(yr({},{debounceTime:50,slideClass:"js-tabs-slider__slide"}),o),this.sliderElement=$(t),this.slidesNum=this.sliderElement.find(".".concat(this.config.slideClass)).length,this.activeSlider=!1,this.breakpointTablet=e,this.breakpointMedium=i,this.breakpointBig=n,this.breakpointFullhd=r,this.hookEvents()}return t=s,(e=[{key:"hookEvents",value:function(){this.sliderInit(),$(window).on("resize",l(this.sliderInit.bind(this),this.config.debounceTime))}},{key:"sliderInit",value:function(){!this.activeSlider&&window.innerWidth>=this.breakpointTablet?(window.innerWidth>=this.breakpointTablet?this.activeSlider=!0:this.activeSlider=!1,this.sliderElement.slick({arrows:!1,variableWidth:!0,dots:!0,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0,responsive:[2===this.slidesNum&&{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:2}},3===this.slidesNum&&{breakpoint:this.breakpointMedium-1,settings:{slidesToShow:2}},{breakpoint:this.breakpointBig-1,settings:{slidesToShow:2}},{breakpoint:this.breakpointFullhd-1,settings:{slidesToShow:3}},3===this.slidesNum&&{breakpoint:this.breakpointFullhd-1,settings:{slidesToShow:4}}]})):this.activeSlider&&window.innerWidth<this.breakpointTablet&&(this.sliderElement.slick("unslick"),this.activeSlider=!1)}}])&&wr(t.prototype,e),i&&wr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function kr(t){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Or(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Er(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Tr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Cr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tr(n.key),n)}}function Tr(t){t=((t,e)=>{if("object"!=kr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=kr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==kr(t)?t:t+""}var xr=(()=>{return t=function t(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1024,r=this,o=t;if(!(r instanceof o))throw new TypeError("Cannot call a class as a function");this.config=Er({},{openClass:"is-opened"}),this.index=i,this.$tab=$(e),this.$tabHeading=this.$tab.find(".js-open-tab"),this.tabContent=".js-tab-content",this.tabText=".js-tab-text",this.openedTab=".is-opened",this.animationDuration=2e3,this.breakpoint=n,this.hookEvents()},(e=[{key:"hookEvents",value:function(){var t=this;this.hideTab(),this.$tabHeading.on("click",function(){return t.openTab()}),0===this.index&&$(window).width()>=this.breakpoint&&this.openTab(),this.openOnResize()}},{key:"hideTab",value:function(){this.$tab.find(this.tabContent).hide(),this.$tab.find(this.tabText).hide()}},{key:"openTab",value:function(){this.$tab.hasClass(this.config.openClass)&&$(window).width()>=this.breakpoint||(this.closePreviousTab(),this.$tab.toggleClass(this.config.openClass),this.$tab.find(this.tabText).stop(!0,!0).slideToggle(),$(window).width()>=this.breakpoint?this.$tab.find(this.tabContent).stop(!0,!0).fadeToggle(this.animationDuration):this.$tab.find(this.tabContent).stop(!0,!0).slideToggle())}},{key:"closePreviousTab",value:function(){(!this.$tab.hasClass(this.config.openClass)||$(window).width()>=this.breakpoint)&&($(window).width()>=this.breakpoint?this.$tab.parent().find(this.openedTab).find(this.tabContent).stop(!0,!0).fadeToggle(this.animationDuration):this.$tab.parent().find(this.openedTab).find(this.tabContent).stop(!0,!0).slideToggle(),this.$tab.parent().find(this.openedTab).find(this.tabText).stop(!0,!0).slideToggle(),this.$tab.parent().find(this.openedTab).removeClass(this.config.openClass))}},{key:"openOnResize",value:function(){var t=this;$(window).on("resize",l(function(){$(window).width()>=t.breakpoint&&0===t.index&&t.openTab()},0))}}])&&Cr(t.prototype,e),i&&Cr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function jr(t){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ar(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=jr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=jr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}
10)(t,"string"),"symbol"==jr(t)?t:t+""))(n.key),n)}}var Pr=(()=>{return t=function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1024,n=this,r=t;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");this.$tabsGrid=$(e).find(".js-tabs-grid"),this.intervalDuration=5e3,this.currentIndex=0,this.intervalId=null,this.breakpoint=i,this.initializeTabsGrid(),this.hookEvents()},(e=[{key:"hookEvents",value:function(){this.startTabInterval(),this.manageIntervalOnHover(),this.manageIntervalOnResize()}},{key:"initializeTabsGrid",value:function(){var n=this;this.$tabsGrid.each(function(t,e){var i=new xr(e,t,n.breakpoint);$(e).data("tabsGridInstance",i),$(e).on("click",function(){n.currentIndex=t})})}},{key:"startTabInterval",value:function(){var i=this;!this.intervalId&&$(window).width()>=this.breakpoint&&(this.intervalId=setInterval(function(){var t=i.$tabsGrid,e=t.length;0<e&&((t=$(t[i.currentIndex]).data("tabsGridInstance"))&&t.openTab(),i.currentIndex=(i.currentIndex+1)%e)},this.intervalDuration))}},{key:"stopTabInterval",value:function(){clearInterval(this.intervalId),this.intervalId=null}},{key:"manageIntervalOnHover",value:function(){var t=this;this.$tabsGrid.on("mouseenter",function(){t.stopTabInterval()}).on("mouseleave",function(){t.startTabInterval()})}},{key:"manageIntervalOnResize",value:function(){var t=this;$(window).on("resize",l(function(){$(window).width()>=t.breakpoint?(t.startTabInterval(),t.currentIndex=0):t.stopTabInterval()}))}}])&&Ar(t.prototype,e),i&&Ar(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Ir(t){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $r(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Rr(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Dr(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Nr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dr(n.key),n)}}function Dr(t){t=((t,e)=>{if("object"!=Ir(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Ir(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Ir(t)?t:t+""}var Lr=(()=>{function a(t,e,i,n,r,o,s){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.config=Rr(Rr({},{itemElement:".o-timeline__item"}),s),this.breakpointTablet=e,this.breakpointBig=i,this.breakpointLaptop=n,this.breakpointFullHD=r,this.breakpointQhd=o,this.$sliderElement=$(t),this.items=this.$sliderElement.find(this.config.itemElement),this.$items=$(this.items),this.itemsCount=this.$items.length,this.itemsSize=this.$sliderElement.data("size"),this.activeSlider=!1,this.itemsCount<2||this.hookEvents()}return t=a,(e=[{key:"hookEvents",value:function(){this.sliderInit(),$(window).on("resize",l(this.sliderInit.bind(this),this.config.debounceTime))}},{key:"sliderInit",value:function(){if(this.activeSlider)return"big"===this.itemsSize?window.innerWidth>=this.breakpointBig&&this.itemsCount<3?(this.$sliderElement.slick("unslick"),void(this.activeSlider=!1)):void 0:window.innerWidth>=this.breakpointLaptop?this.itemsCount<5?(this.$sliderElement.slick("unslick"),void(this.activeSlider=!1)):void 0:window.innerWidth>=this.breakpointBig?this.itemsCount<4?(this.$sliderElement.slick("unslick"),void(this.activeSlider=!1)):void 0:window.innerWidth>=this.breakpointTablet&&this.itemsCount<3?(this.$sliderElement.slick("unslick"),void(this.activeSlider=!1)):void 0;if("big"===this.itemsSize){if(window.innerWidth>=this.breakpointBig&&this.itemsCount<3)return}else if(window.innerWidth>=this.breakpointLaptop){if(this.itemsCount<5)return}else if(window.innerWidth>=this.breakpointBig){if(this.itemsCount<4)return}else if(window.innerWidth>=this.breakpointTablet&&this.itemsCount<3)return;var t={dots:this.activeSlider=!0,arrows:!1,speed:500,slidesToShow:1,slidesToScroll:1,fade:!1,infinite:!1,mobileFirst:!0};"big"===this.itemsSize?t.responsive=[{breakpoint:this.breakpointBig-1,settings:{slidesToShow:2}}]:t.responsive=[{breakpoint:this.breakpointTablet-1,settings:{slidesToShow:2}},{breakpoint:this.breakpointBig-1,settings:{slidesToShow:3}},{breakpoint:this.breakpointFullHD-1,settings:{slidesToShow:4}},{breakpoint:this.breakpointQhd-1,settings:{slidesToShow:3}}],this.$sliderElement.slick(t)}}])&&Nr(t.prototype,e),i&&Nr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Mr(t){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zr(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function Br(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
10t%2?zr(Object(r),!0).forEach(function(t){var e,i;e=n,i=r[t=t],(t=Ur(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function Fr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ur(n.key),n)}}function Ur(t){t=((t,e)=>{if("object"!=Mr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Mr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==Mr(t)?t:t+""}var qr=(()=>{return t=function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=this,n=t;if(!(i instanceof n))throw new TypeError("Cannot call a class as a function");this.settings=Br(Br({},{tooltipSelector:".js-tooltip",textSelector:".js-tooltip__text",margin:16,transitionDuration:300}),e),this.hookEvents()},(e=[{key:"hookEvents",value:function(){var e=this;$(document).on("mouseenter",this.settings.tooltipSelector,function(t){return e.setPosition(t.currentTarget)}),$(document).on("mouseleave",this.settings.tooltipSelector,function(t){return e.reset(t.currentTarget)})}},{key:"setPosition",value:function(t){var e,i,n=$(t).find(this.settings.textSelector);n.length&&(i=t.getBoundingClientRect(),n=n.outerWidth(),e=window.innerWidth,e=(i=i.left+i.width/2)+n/2-(e-this.settings.margin),i=this.settings.margin-(i-n/2),(n=0)<e?n=-e:0<i&&(n=i),0!==n)&&t.style.setProperty("--tooltip-x","".concat(n,"px"))}},{key:"reset",value:function(t){setTimeout(function(){return t.style.removeProperty("--tooltip-x")},this.settings.transitionDuration)}}])&&Fr(t.prototype,e),i&&Fr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i})();function Wr(t){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=Wr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Wr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==Wr(t)?t:t+""))(n.key),n)}}function Vr(t,e,i){return e&&Hr(t.prototype,e),i&&Hr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var Yr=Vr(function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.element=$(e),this.element.on("click",function(t){$("body").removeClass("is-scroll-blocked")})});function Xr(t){return(Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(t=>(t=((t,e)=>{if("object"!=Xr(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);if("object"!=Xr(i=i.call(t,e||"default")))return i;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==Xr(t)?t:t+""))(n.key),n)}}function Zr(t,e,i){return e&&Gr(t.prototype,e),i&&Gr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var Kr=Zr(function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");$(e).slick({arrows:!1,dots:!0,fade:!0})});function Qr(t){t=Array.isArray(t.tagsRich)?t.tagsRich:[];return 0===t.length?"":t.map(function(t){var e,i,n;return t&&t.taxonomy&&t.slug?(e=w((t.name||"").replace(/\s+/g,"")),'<a href="'.concat(S((i=t.taxonomy,t=t.slug,(n=new URL(window.location.href)).search="",n.searchParams.set(i,t),n.pathname+n.search)),'" class="o-tag">
10#').concat(e,"</a>")):""}).join("")}function Jr(t,e){e=1<arguments.length&&void 0!==e?e:"";return t?'<img src="'.concat(S(t),'" alt="').concat(S(e),'" loading="lazy" />'):""}function to(t){var e="undefined"!=typeof themeVars&&themeVars.templateUrl||"",t="user"===t?"user_placeholder.png":"cover_placeholder.png";return"".concat(e,"/assets/src/images/").concat(t)}function eo(){var t=w("undefined"!=typeof pressRoomSearchVars&&pressRoomSearchVars.viewItem||"Read more");return'\n <span class="o-post-tile__link-text o-button--tertiary o-button--xs o-button--no-shadow">\n '.concat(t,'\n <svg class="o-icon o-icon--10 o-icon--arrow"><use xlink:href="#icon-10_arrow"></use></svg>\n <svg class="o-icon o-icon--16 o-icon--arrow"><use xlink:href="#icon-16_arrow"></use></svg>\n </span>\n ')}Vt("case-studies",function(t){var e=S(t.url||"#"),i=S(t.title||""),n=w(t.introFull||t.intro||""),r=w("undefined"!=typeof caseStudiesSearchVars&&caseStudiesSearchVars.viewCaseStudy||"View case study");return'\n <div class="o-case-studies-tile">\n <a href="'.concat(e,'" class="o-case-studies-tile__link" aria-label="').concat(i,'"></a>\n <div class="o-case-studies-tile__text">\n <div class="o-case-studies-tile__top">\n <div class="o-case-studies-tile__cover">').concat(Jr(t.cover),'</div>\n <div class="o-case-studies-tile__logo">').concat((i=t).logo?Jr(i.logo,i.title):i.logoText?"<span>".concat(w(i.logoText),"</span>"):"",'</div>\n <div class="o-case-studies-tile__intro">').concat(n,'</div>\n </div>\n <div class="o-case-studies-tile__bottom">\n <div class="o-case-studies-tile__tags">').concat(Qr(t),'</div>\n <a href="').concat(e,'" class="o-button o-button--tertiary o-button--icon-right o-button--xs">\n ').concat(r,'\n <svg class="o-icon o-icon--10 o-icon--arrow"><use xlink:href="#icon-10_arrow"></use></svg>\n <svg class="o-icon o-icon--16 o-icon--arrow"><use xlink:href="#icon-16_arrow"></use></svg>\n </a>\n </div>\n </div>\n </div>\n ')}),Vt("press-room",function(t){var e,i=S(t.url||"#"),n=w(t.title||"");return'\n <div class="o-post-tile">\n <a href="'.concat(i,'">\n ').concat((e=(i=t).cover||to("cover"),i=S(i.title||""),'<div class="o-post-tile__cover-photo"><img src="'.concat(S(e),'" alt="').concat(i,'"></div>')),'\n <div class="o-post-tile__content">\n ').concat((e=t,0===(e=Array.isArray(e.tags)?e.tags:[]).length?"":(e=e.slice(0,2).map(function(t){return'<span class="o-post-tile__tag f-paragraph-small">#'.concat(w(t),"</span>")}).join(""),'<div class="o-post-tile__tags">'.concat(e,"</div>"))),'\n <h3 class="o-post-tile__title f-paragraph">').concat(n,'</h3>\n <div class="o-post-tile__bottom">\n ').concat((i=t,0===(i=Array.isArray(i.authors)?i.authors:[]).length?"":(i=i.slice(0,2).map(function(t){var t=w(t&&t.display_name?t.display_name:""),e=to("user");return'\n <div class="o-post-tile__author">\n <div class="o-post-tile__author-photo">\n <img src="'.concat(S(e),'" alt="user placeholder">\n </div>\n <span>').concat(t,"</span>\n </div>\n ")}).join(""),'<div class="o-post-tile__authors f-paragraph-small">'.concat(i,"</div>"))),'\n <div class="o-post-tile__footer f-paragraph-small">\n <div class="o-post-tile__meta-data">\n ').concat((e=t).date?'\n <div class="o-post-tile__date">\n <svg class="o-icon o-icon--16 o-icon--calendar"><use xlink:href="#icon-16_calendar"></use></svg>\n <span>'.concat(w(e.date),"</span>\n </div>\n "):"","\n </div>\n ").concat(eo(),"\n </div>\n </div>\n </div>\n </a>\n </div>\n ")});$(function(){var t=$("body"),i={small:0,tablet:768,medium:1024,big:1280,laptop:1488,fullhd:1920,qhd:2560};t.svgIconSetLoader({iconsFileUrl:themeVars.templateUrl+"/assets/build/images/icons.svg",iconsVersion:"13.05.2026",debug:themeVars.debug}
10),$(".js-speccy").each(function(t,e){new Hn(e)}),$(".js-photo-gallery").each(function(t,e){new Li($(e))}),$(".js-copy").each(function(t,e){new oe(e)}),$(".js-show-hide").each(function(t,e){new $n(e)}),$(".js-show-items").each(function(t,e){new zn(e)}),$(".js-floating-sidebar").each(function(t,e){new je(e)}),$(".js-hide-on-swipe").each(function(t,e){new Ve(e,i.tablet)});try{new Sn}catch(t){console.error(t.message)}try{$(".js-scrollspy").each(function(t,e){try{new an(e)}catch(t){console.error(t.message)}})}catch(t){console.error(t.message)}try{$(".js-scroll-snap").each(function(t,e){try{new tn(e,i.tablet)}catch(t){console.error(t.message)}})}catch(t){console.error(t.message)}$(".js-modal").each(function(t,e){new yi(e)}),new De(".submitted-message"),$(".js-main-menu").each(function(t,e){new gi(e,i.big)}),$(".js-language-menu").each(function(t,e){new ri(e)}),$(".js-banner-slider").each(function(t,e){new at(e,i.big)}),$(".js-tabs").each(function(t,e){new ur(e,i.medium)}),$(".js-set-height").each(function(t,e){new Tn(e,i)}),new Je,new qr,$(".js-quotations-slider").each(function(t,e){new Pi(e)}),$(".js-youtube-player").each(function(t,e){new Pe(e)}),$(".js-custom-select").each(function(t,e){new ue(e)}),$(".js-video-slider").each(function(t,e){new Kr(e)}),$(".js-events-slider").each(function(t,e){new Oe(e,i.big)}),$(".js-articles-slider").each(function(t,e){new it(e,i.tablet,i.medium,i.laptop)}),$(".js-case-studies-slider").each(function(t,e){new ne(e,i.medium)}),$(".js-employee-slider").each(function(t,e){new fe(e,i.tablet,i.big,i.laptop,i.fullhd)}),$(".js-logo-carousel").each(function(t,e){new ui($(e),i.tablet,i.medium,i.big,i.laptop,i.fullhd)}),$(".js-block-scroll").each(function(t,e){new dt(e)}),$(".js-unblock-scroll").each(function(t,e){new Yr(e)}),$(".js-search-filters").each(function(t,e){new ee(e)}),$(".js-search").each(function(t,e){new Lt(e)}),$(".js-post-filters").each(function(t,e){new qt(e)}),$(".js-timeline").each(function(t,e){new Lr(e,i.tablet,i.big,i.laptop,i.fullhd,i.qhd)}),$(".js-outcome-slider").each(function(t,e){new Ei(e,i.big,i.laptop)}),$(".js-stats-slider").each(function(t,e){new Qn(e,i.tablet)}),$(".js-pricing").each(function(t,e){new qi(e)}),$(".js-image-text-slider").each(function(t,e){new Xe(e,i.tablet,i.medium,i.laptop)}),new K(i.medium),new K(i.medium,{contentElement:".js-outcome"}),$(".js-framework").each(function(t,e){new Fe(e,i.tablet,i.medium,i.big,i.laptop)}),$(".js-submenu").each(function(t,e){new rr(e)}),$(".js-tabs-grid-container").each(function(t,e){new Pr(e,i.medium)}),$(".js-tabs-carousel").each(function(t,e){new gr(e)}),$(".js-tabs-contact").each(function(t,e){new gr(e,i.tablet)}),$(".js-tabs-box").each(function(t,e){new gr(e,i.tablet)}),$(".js-tabs-slider").each(function(t,e){new _r(e,i.tablet,i.medium,i.big,i.fullhd)}),$(".js-blog-posts-slider").each(function(t,e){new pt(e,i.tablet,i.medium,i.big,i.laptop)}),$(".js-rive").each(function(t,e){new Xi(e)}),$(".js-animated-counter").each(function(t,e){new H(e)}),$(".js-scale").each(function(t,e){new mn(e)}),$(".js-epub-reader").each(function(t,e){new Se(e)})})}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.