/*! For license information please see live.js.LICENSE.txt */
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/js/",n(n.s=263)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n(13),i="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function o(t){return void 0===t&&(t={}),function(e,n){(function(t,e,n){if(i&&!Array.isArray(t)&&"function"!=typeof t&&!t.hasOwnProperty("type")&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}})(t,e,n),Object(r.a)((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function a(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,o=e.immediate,a=void 0!==o&&o;return Object(r.a)((function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var r=e.watch;"object"!=typeof r[t]||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:a})}))}},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return zn}));var i=Object.freeze({}),o=Array.isArray;function a(t){return null==t}function s(t){return null!=t}function c(t){return!0===t}function u(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return"function"==typeof t}function f(t){return null!==t&&"object"==typeof t}var d=Object.prototype.toString;function p(t){return"[object Object]"===d.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return s(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function y(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var b=m("slot,component",!0),_=m("key,ref,slot,slot-scope,is");function w(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var O=Object.prototype.hasOwnProperty;function E(t,e){return O.call(t,e)}function S(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var k=/-(\w)/g,C=S((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),T=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,x=S((function(t){return t.replace(A,"-$1").toLowerCase()})),L=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function P(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function R(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n<t.length;n++)t[n]&&R(e,t[n]);return e}function j(t,e,n){}var D=function(t,e,n){return!1},N=function(t){return t};function M(t,e){if(t===e)return!0;var n=f(t),r=f(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return M(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return M(t[n],e[n])}))}catch(t){return!1}}function F(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function U(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var $="data-server-rendered",q=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:j,parsePlatformTagName:N,mustUseProp:D,async:!0,_lifecycleHooks:H},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function K(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^".concat(z.source,".$_\\d]")),Y="__proto__"in{},X="undefined"!=typeof window,Z=X&&window.navigator.userAgent.toLowerCase(),J=Z&&/msie|trident/.test(Z),Q=Z&&Z.indexOf("msie 9.0")>0,tt=Z&&Z.indexOf("edge/")>0;Z&&Z.indexOf("android");var et=Z&&/iphone|ipad|ipod|ios/.test(Z);Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z);var nt,rt=Z&&Z.match(/firefox\/(\d+)/),it={}.watch,ot=!1;if(X)try{var at={};Object.defineProperty(at,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,at)}catch(t){}var st=function(){return void 0===nt&&(nt=!X&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),nt},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"==typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!=typeof Symbol&&ut(Symbol)&&"undefined"!=typeof Reflect&&ut(Reflect.ownKeys);lt="undefined"!=typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=null;function pt(t){void 0===t&&(t=null),t||dt&&dt._scope.off(),dt=t,t&&t._scope.on()}var ht=function(){function t(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),gt=function(t){void 0===t&&(t="");var e=new ht;return e.text=t,e.isComment=!0,e};function vt(t){return new ht(void 0,void 0,void 0,String(t))}function yt(t){var e=new ht(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var mt=0,bt=function(){function t(){this.id=mt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){w(this.subs,t)},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){for(var e=this.subs.slice(),n=0,r=e.length;n<r;n++)e[n].update()},t}();bt.target=null;var _t=[];function wt(t){_t.push(t),bt.target=t}function Ot(){_t.pop(),bt.target=_t[_t.length-1]}var Et=Array.prototype,St=Object.create(Et);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=Et[t];K(St,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var kt=Object.getOwnPropertyNames(St),Ct={},Tt=!0;function At(t){Tt=t}var xt={notify:j,depend:j,addSub:j,removeSub:j},Lt=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?xt:new bt,this.vmCount=0,K(t,"__ob__",this),o(t)){if(!n)if(Y)t.__proto__=St;else for(var r=0,i=kt.length;r<i;r++)K(t,s=kt[r],St[s]);e||this.observeArray(t)}else{var a=Object.keys(t);for(r=0;r<a.length;r++){var s;Rt(t,s=a[r],Ct,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Pt(t[e],!1,this.mock)},t}();function Pt(t,e,n){var r;if(!(!f(t)||Ft(t)||t instanceof ht))return E(t,"__ob__")&&t.__ob__ instanceof Lt?r=t.__ob__:!Tt||!n&&st()||!o(t)&&!p(t)||!Object.isExtensible(t)||t.__v_skip||(r=new Lt(t,e,n)),r}function Rt(t,e,n,r,i,a){var s=new bt,c=Object.getOwnPropertyDescriptor(t,e);if(!c||!1!==c.configurable){var u=c&&c.get,l=c&&c.set;u&&!l||n!==Ct&&2!==arguments.length||(n=t[e]);var f=!i&&Pt(n,!1,a);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return bt.target&&(s.depend(),f&&(f.dep.depend(),o(e)&&Dt(e))),Ft(e)&&!i?e.value:e},set:function(e){var r=u?u.call(t):n;if(U(r,e)){if(l)l.call(t,e);else{if(u)return;if(!i&&Ft(r)&&!Ft(e))return void(r.value=e);n=e}f=!i&&Pt(e,!1,a),s.notify()}}}),s}}function It(t,e,n){if(!Mt(t)){var r=t.__ob__;return o(t)&&h(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&Pt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(Rt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function jt(t,e){if(o(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||Mt(t)||E(t,e)&&(delete t[e],n&&n.dep.notify())}}function Dt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),o(e)&&Dt(e)}function Nt(t){return function(t,e){Mt(t)||Pt(t,e,st())}(t,!0),K(t,"__v_isShallow",!0),t}function Mt(t){return!(!t||!t.__v_isReadonly)}function Ft(t){return!(!t||!0!==t.__v_isRef)}function Bt(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Ft(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];Ft(r)&&!Ft(t)?r.value=t:e[n]=t}})}var Ut=S((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function $t(t,e){function n(){var t=n.fns;if(!o(t))return We(t,null,arguments,e,"v-on handler");for(var r=t.slice(),i=0;i<r.length;i++)We(r[i],null,arguments,e,"v-on handler")}return n.fns=t,n}function qt(t,e,n,r,i,o){var s,u,l,f;for(s in t)u=t[s],l=e[s],f=Ut(s),a(u)||(a(l)?(a(u.fns)&&(u=t[s]=$t(u,o)),c(f.once)&&(u=t[s]=i(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,t[s]=l));for(s in e)a(t[s])&&r((f=Ut(s)).name,e[s],f.capture)}function Ht(t,e,n){var r;t instanceof ht&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function o(){n.apply(this,arguments),w(r.fns,o)}a(i)?r=$t([o]):s(i.fns)&&c(i.merged)?(r=i).fns.push(o):r=$t([i,o]),r.merged=!0,t[e]=r}function Gt(t,e,n,r,i){if(s(e)){if(E(e,n))return t[n]=e[n],i||delete e[n],!0;if(E(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function zt(t){return u(t)?[vt(t)]:o(t)?function t(e,n){var r,i,l,f,d=[];for(r=0;r<e.length;r++)a(i=e[r])||"boolean"==typeof i||(f=d[l=d.length-1],o(i)?i.length>0&&(Vt((i=t(i,"".concat(n||"","_").concat(r)))[0])&&Vt(f)&&(d[l]=vt(f.text+i[0].text),i.shift()),d.push.apply(d,i)):u(i)?Vt(f)?d[l]=vt(f.text+i):""!==i&&d.push(vt(i)):Vt(i)&&Vt(f)?d[l]=vt(f.text+i.text):(c(e._isVList)&&s(i.tag)&&a(i.key)&&s(n)&&(i.key="__vlist".concat(n,"_").concat(r,"__")),d.push(i)));return d}(t):void 0}function Vt(t){return s(t)&&s(t.text)&&!1===t.isComment}function Kt(t,e,n,r,i,a){return(o(n)||u(n))&&(i=r,r=n,n=void 0),c(a)&&(i=2),function(t,e,n,r,i){if(s(n)&&s(n.__ob__))return gt();if(s(n)&&s(n.is)&&(e=n.is),!e)return gt();var a,c;if(o(r)&&l(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=zt(r):1===i&&(r=function(t){for(var e=0;e<t.length;e++)if(o(t[e]))return Array.prototype.concat.apply([],t);return t}(r)),"string"==typeof e){var u=void 0;c=t.$vnode&&t.$vnode.ns||G.getTagNamespace(e),a=G.isReservedTag(e)?new ht(G.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!s(u=Bn(t.$options,"components",e))?new ht(e,n,r,void 0,void 0,t):xn(u,n,t,r,e)}else a=xn(e,n,t,r);return o(a)?a:s(a)?(s(c)&&Wt(a,c),s(n)&&function(t){f(t.style)&&ln(t.style),f(t.class)&&ln(t.class)}(n),a):gt()}(t,e,n,r,i)}function Wt(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),s(t.children))for(var r=0,i=t.children.length;r<i;r++){var o=t.children[r];s(o.tag)&&(a(o.ns)||c(n)&&"svg"!==o.tag)&&Wt(o,e,n)}}function Yt(t,e){var n,r,i,a,c=null;if(o(t)||"string"==typeof t)for(c=new Array(t.length),n=0,r=t.length;n<r;n++)c[n]=e(t[n],n);else if("number"==typeof t)for(c=new Array(t),n=0;n<t;n++)c[n]=e(n+1,n);else if(f(t))if(ft&&t[Symbol.iterator]){c=[];for(var u=t[Symbol.iterator](),l=u.next();!l.done;)c.push(e(l.value,c.length)),l=u.next()}else for(i=Object.keys(t),c=new Array(i.length),n=0,r=i.length;n<r;n++)a=i[n],c[n]=e(t[a],a,n);return s(c)||(c=[]),c._isVList=!0,c}function Xt(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=R(R({},r),n)),i=o(n)||(l(e)?e():e)):i=this.$slots[t]||(l(e)?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Zt(t){return Bn(this.$options,"filters",t,!0)||N}function Jt(t,e){return o(t)?-1===t.indexOf(e):t!==e}function Qt(t,e,n,r,i){var o=G.keyCodes[e]||n;return i&&r&&!G.keyCodes[e]?Jt(i,r):o?Jt(o,t):r?x(r)!==e:void 0===t}function te(t,e,n,r,i){if(n&&f(n)){o(n)&&(n=I(n));var a=void 0,s=function(o){if("class"===o||"style"===o||_(o))a=t;else{var s=t.attrs&&t.attrs.type;a=r||G.mustUseProp(e,s,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=C(o),u=x(o);c in a||u in a||(a[o]=n[o],i&&((t.on||(t.on={}))["update:".concat(o)]=function(t){n[o]=t}))};for(var c in n)s(c)}return t}function ee(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||re(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function ne(t,e,n){return re(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function re(t,e,n){if(o(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&ie(t[r],"".concat(e,"_").concat(r),n);else ie(t,e,n)}function ie(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function oe(t,e){if(e&&p(e)){var n=t.on=t.on?R({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}return t}function ae(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var a=t[i];o(a)?ae(a,e,n):a&&(a.proxy&&(a.fn.proxy=!0),e[a.key]=a.fn)}return r&&(e.$key=r),e}function se(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function ce(t,e){return"string"==typeof t?e+t:t}function ue(t){t._o=ne,t._n=y,t._s=v,t._l=Yt,t._t=Xt,t._q=M,t._i=F,t._m=ee,t._f=Zt,t._k=Qt,t._b=te,t._v=vt,t._e=gt,t._u=ae,t._g=oe,t._d=se,t._p=ce}function le(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(fe)&&delete n[u];return n}function fe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function de(t){return t.isComment&&t.asyncFactory}function pe(t,e,n,r){var o,a=Object.keys(n).length>0,s=e?!!e.$stable:!a,c=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==i&&c===r.$key&&!a&&!r.$hasNormal)return r;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=he(t,n,u,e[u]))}else o={};for(var l in n)l in o||(o[l]=ge(n,l));return e&&Object.isExtensible(e)&&(e._normalized=o),K(o,"$stable",s),K(o,"$key",c),K(o,"$hasNormal",a),o}function he(t,e,n,r){var i=function(){var e=dt;pt(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:zt(n))&&n[0];return pt(e),n&&(!i||1===n.length&&i.isComment&&!de(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function ge(t,e){return function(){return t[e]}}function ve(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};K(e,"_v_attr_proxy",!0),ye(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){return t._listenersProxy||ye(t._listenersProxy={},t.$listeners,i,t,"$listeners"),t._listenersProxy},get slots(){return function(t){return t._slotsProxy||be(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}(t)},emit:L(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Bt(t,e,n)}))}}}function ye(t,e,n,r,i){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,me(t,a,r,i));for(var a in t)a in e||(o=!0,delete t[a]);return o}function me(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function be(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var _e,we=null;function Oe(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),f(t)?e.extend(t):t}function Ee(t){if(o(t))for(var e=0;e<t.length;e++){var n=t[e];if(s(n)&&(s(n.componentOptions)||de(n)))return n}}function Se(t,e){_e.$on(t,e)}function ke(t,e){_e.$off(t,e)}function Ce(t,e){var n=_e;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Te(t,e,n){_e=t,qt(e,n||{},Se,ke,Ce,t),_e=void 0}var Ae=null;function xe(t){var e=Ae;return Ae=t,function(){Ae=e}}function Le(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Pe(t,e){if(e){if(t._directInactive=!1,Le(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Pe(t.$children[n]);Re(t,"activated")}}function Re(t,e,n,r){void 0===r&&(r=!0),wt();var i=dt;r&&pt(t);var o=t.$options[e],a="".concat(e," hook");if(o)for(var s=0,c=o.length;s<c;s++)We(o[s],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&pt(i),Ot()}var Ie=[],je=[],De={},Ne=!1,Me=!1,Fe=0,Be=0,Ue=Date.now;if(X&&!J){var $e=window.performance;$e&&"function"==typeof $e.now&&Ue()>document.createEvent("Event").timeStamp&&(Ue=function(){return $e.now()})}var qe=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function He(){var t,e;for(Be=Ue(),Me=!0,Ie.sort(qe),Fe=0;Fe<Ie.length;Fe++)(t=Ie[Fe]).before&&t.before(),e=t.id,De[e]=null,t.run();var n=je.slice(),r=Ie.slice();Fe=Ie.length=je.length=0,De={},Ne=Me=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Pe(t[e],!0)}(n),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Re(r,"updated")}}(r),ct&&G.devtools&&ct.emit("flush")}var Ge,ze="watcher";"".concat(ze," callback"),"".concat(ze," getter"),"".concat(ze," cleanup");var Ve=function(){function t(t){void 0===t&&(t=!1),this.active=!0,this.effects=[],this.cleanups=[],!t&&Ge&&(this.parent=Ge,this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=Ge;try{return Ge=this,t()}finally{Ge=e}}},t.prototype.on=function(){Ge=this},t.prototype.off=function(){Ge=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}},t}();function Ke(t,e,n){wt();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Ye(t,r,"errorCaptured hook")}}Ye(t,e,n)}finally{Ot()}}function We(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(t){return Ke(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Ke(t,r,i)}return o}function Ye(t,e,n){if(G.errorHandler)try{return G.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Xe(e,null,"config.errorHandler")}Xe(t,e,n)}function Xe(t,e,n){if(!X||"undefined"==typeof console)throw t;console.error(t)}var Ze,Je=!1,Qe=[],tn=!1;function en(){tn=!1;var t=Qe.slice(0);Qe.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ut(Promise)){var nn=Promise.resolve();Ze=function(){nn.then(en),et&&setTimeout(j)},Je=!0}else if(J||"undefined"==typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ze=void 0!==r&&ut(r)?function(){r(en)}:function(){setTimeout(en,0)};else{var rn=1,on=new MutationObserver(en),an=document.createTextNode(String(rn));on.observe(an,{characterData:!0}),Ze=function(){rn=(rn+1)%2,an.data=String(rn)},Je=!0}function sn(t,e){var n;if(Qe.push((function(){if(t)try{t.call(e)}catch(t){Ke(t,e,"nextTick")}else n&&n(e)})),tn||(tn=!0,Ze()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function cn(t){return function(e,n){if(void 0===n&&(n=dt),n)return function(t,e,n){var r=t.$options;r[e]=Dn(r[e],n)}(n,t,e)}}cn("beforeMount"),cn("mounted"),cn("beforeUpdate"),cn("updated"),cn("beforeDestroy"),cn("destroyed"),cn("activated"),cn("deactivated"),cn("serverPrefetch"),cn("renderTracked"),cn("renderTriggered"),cn("errorCaptured");var un=new lt;function ln(t){return function t(e,n){var r,i,a=o(e);if(!(!a&&!f(e)||Object.isFrozen(e)||e instanceof ht)){if(e.__ob__){var s=e.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(r=e.length;r--;)t(e[r],n);else if(Ft(e))t(e.value,n);else for(r=(i=Object.keys(e)).length;r--;)t(e[i[r]],n)}}(t,un),un.clear(),t}var fn=0,dn=function(){function t(t,e,n,r,i){var o;void 0===(o=Ge&&!Ge._vm?Ge:t?t._scope:void 0)&&(o=Ge),o&&o.active&&o.effects.push(this),(this.vm=t)&&i&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="",l(e)?this.getter=e:(this.getter=function(t){if(!W.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;wt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ke(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&ln(t),Ot(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==De[e]&&(t!==bt.target||!t.noRecurse)){if(De[e]=!0,Me){for(var n=Ie.length-1;n>Fe&&Ie[n].id>t.id;)n--;Ie.splice(n+1,0,t)}else Ie.push(t);Ne||(Ne=!0,sn(He))}}(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||f(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');We(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),pn={enumerable:!0,configurable:!0,get:j,set:j};function hn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}var gn={lazy:!0};function vn(t,e,n){var r=!st();l(n)?(pn.get=r?yn(e):mn(n),pn.set=j):(pn.get=n.get?r&&!1!==n.cache?yn(e):mn(n.get):j,pn.set=n.set||j),Object.defineProperty(t,e,pn)}function yn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),bt.target&&e.depend(),e.value}}function mn(t){return function(){return t.call(this,this)}}function bn(t,e,n,r){return p(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function _n(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from;if(a in e._provided)n[o]=e._provided[a];else if("default"in t[o]){var s=t[o].default;n[o]=l(s)?s.call(e):s}}}return n}}var wn=0;function On(t){var e=t.options;if(t.super){var n=On(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&R(t.extendOptions,r),(e=t.options=Fn(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function En(t,e,n,r,a){var s,u=this,l=a.options;E(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var f=c(l._compiled),d=!f;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=_n(l.inject,r),this.slots=function(){return u.$slots||pe(r,t.scopedSlots,u.$slots=le(n,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(r,t.scopedSlots,this.slots())}}),f&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pe(r,t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,i){var a=Kt(s,t,e,n,i,d);return a&&!o(a)&&(a.fnScopeId=l._scopeId,a.fnContext=r),a}:this._c=function(t,e,n,r){return Kt(s,t,e,n,r,d)}}function Sn(t,e,n,r,i){var o=yt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function kn(t,e){for(var n in e)t[C(n)]=e[n]}function Cn(t){return t.name||t.__name||t._componentTag}ue(En.prototype);var Tn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Tn.prepatch(n,n)}else(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}(t,Ae)).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){var a=r.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),u=!!(o||t.$options._renderChildren||c),l=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var f=r.data.attrs||i;t._attrsProxy&&ye(t._attrsProxy,f,l.data&&l.data.attrs||i,t,"$attrs")&&(u=!0),t.$attrs=f,n=n||i;var d=t.$options._parentListeners;if(t._listenersProxy&&ye(t._listenersProxy,n,d||i,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,Te(t,n,d),e&&t.$options.props){At(!1);for(var p=t._props,h=t.$options._propKeys||[],g=0;g<h.length;g++){var v=h[g],y=t.$options.props;p[v]=Un(v,y,e,t)}At(!0),t.$options.propsData=e}u&&(t.$slots=le(o,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Re(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,je.push(e)):Pe(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,Le(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);Re(e,"deactivated")}}(e,!0):e.$destroy())}},An=Object.keys(Tn);function xn(t,e,n,r,u){if(!a(t)){var l=n.$options._base;if(f(t)&&(t=l.extend(t)),"function"==typeof t){var d;if(a(t.cid)&&void 0===(t=function(t,e){if(c(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var n=we;if(n&&s(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),c(t.loading)&&s(t.loadingComp))return t.loadingComp;if(n&&!s(t.owners)){var r=t.owners=[n],i=!0,o=null,u=null;n.$on("hook:destroyed",(function(){return w(r,n)}));var l=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==u&&(clearTimeout(u),u=null))},d=B((function(n){t.resolved=Oe(n,e),i?r.length=0:l(!0)})),p=B((function(e){s(t.errorComp)&&(t.error=!0,l(!0))})),h=t(d,p);return f(h)&&(g(h)?a(t.resolved)&&h.then(d,p):g(h.component)&&(h.component.then(d,p),s(h.error)&&(t.errorComp=Oe(h.error,e)),s(h.loading)&&(t.loadingComp=Oe(h.loading,e),0===h.delay?t.loading=!0:o=setTimeout((function(){o=null,a(t.resolved)&&a(t.error)&&(t.loading=!0,l(!1))}),h.delay||200)),s(h.timeout)&&(u=setTimeout((function(){u=null,a(t.resolved)&&p(null)}),h.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(d=t,l)))return function(t,e,n,r,i){var o=gt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(d,e,n,r,u);e=e||{},On(t),s(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),a=i[r],c=e.model.callback;s(a)?(o(a)?-1===a.indexOf(c):a!==c)&&(i[r]=[c].concat(a)):i[r]=c}(t.options,e);var p=function(t,e,n){var r=e.options.props;if(!a(r)){var i={},o=t.attrs,c=t.props;if(s(o)||s(c))for(var u in r){var l=x(u);Gt(i,c,u,l,!0)||Gt(i,o,u,l,!1)}return i}}(e,t);if(c(t.options.functional))return function(t,e,n,r,a){var c=t.options,u={},l=c.props;if(s(l))for(var f in l)u[f]=Un(f,l,e||i);else s(n.attrs)&&kn(u,n.attrs),s(n.props)&&kn(u,n.props);var d=new En(n,u,a,r,t),p=c.render.call(null,d._c,d);if(p instanceof ht)return Sn(p,n,d.parent,c);if(o(p)){for(var h=zt(p)||[],g=new Array(h.length),v=0;v<h.length;v++)g[v]=Sn(h[v],n,d.parent,c);return g}}(t,p,e,n,r);var h=e.on;if(e.on=e.nativeOn,c(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<An.length;n++){var r=An[n],i=e[r],o=Tn[r];i===o||i&&i._merged||(e[r]=i?Ln(o,i):o)}}(e);var y=Cn(t.options)||u;return new ht("vue-component-".concat(t.cid).concat(y?"-".concat(y):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:p,listeners:h,tag:u,children:r},d)}}}function Ln(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var Pn=j,Rn=G.optionMergeStrategies;function In(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=t[n],i=e[n],E(t,n)?r!==i&&p(r)&&p(i)&&In(r,i):It(t,n,i));return t}function jn(t,e,n){return n?function(){var r=l(e)?e.call(n,n):e,i=l(t)?t.call(n,n):t;return r?In(r,i):i}:e?t?function(){return In(l(e)?e.call(this,this):e,l(t)?t.call(this,this):t)}:e:t}function Dn(t,e){var n=e?t?t.concat(e):o(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Nn(t,e,n,r){var i=Object.create(t||null);return e?R(i,e):i}Rn.data=function(t,e,n){return n?jn(t,e,n):e&&"function"!=typeof e?t:jn(t,e)},H.forEach((function(t){Rn[t]=Dn})),q.forEach((function(t){Rn[t+"s"]=Nn})),Rn.watch=function(t,e,n,r){if(t===it&&(t=void 0),e===it&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var a in R(i,t),e){var s=i[a],c=e[a];s&&!o(s)&&(s=[s]),i[a]=s?s.concat(c):o(c)?c:[c]}return i},Rn.props=Rn.methods=Rn.inject=Rn.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return R(i,t),e&&R(i,e),i},Rn.provide=jn;var Mn=function(t,e){return void 0===e?t:e};function Fn(t,e,n){if(l(e)&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,a={};if(o(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(a[C(i)]={type:null});else if(p(n))for(var s in n)i=n[s],a[C(s)]=p(i)?i:{type:i};t.props=a}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(o(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(p(n))for(var a in n){var s=n[a];r[a]=p(s)?R({from:a},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];l(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Fn(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Fn(t,e.mixins[r],n);var a,s={};for(a in t)c(a);for(a in e)E(t,a)||c(a);function c(r){var i=Rn[r]||Mn;s[r]=i(t[r],e[r],n,r)}return s}function Bn(t,e,n,r){if("string"==typeof n){var i=t[e];if(E(i,n))return i[n];var o=C(n);if(E(i,o))return i[o];var a=T(o);return E(i,a)?i[a]:i[n]||i[o]||i[a]}}function Un(t,e,n,r){var i=e[t],o=!E(n,t),a=n[t],s=Gn(Boolean,i.type);if(s>-1)if(o&&!E(i,"default"))a=!1;else if(""===a||a===x(t)){var c=Gn(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(E(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:l(r)&&"Function"!==qn(e.type)?r.call(t):r}}(r,i,t);var u=Tt;At(!0),Pt(a),At(u)}return a}var $n=/^\s*function (\w+)/;function qn(t){var e=t&&t.toString().match($n);return e?e[1]:""}function Hn(t,e){return qn(t)===qn(e)}function Gn(t,e){if(!o(e))return Hn(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Hn(e[n],t))return n;return-1}function zn(t){this._init(t)}function Vn(t){return t&&(Cn(t.Ctor.options)||t.tag)}function Kn(t,e){return o(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===d.call(t)}(t)&&t.test(e)}function Wn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&Yn(n,o,r,i)}}}function Yn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,w(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=wn++,e._isVue=!0,e.__v_skip=!0,e._scope=new Ve(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Fn(On(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Te(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=le(e._renderChildren,r),t.$scopedSlots=n?pe(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,r,i){return Kt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Kt(t,e,n,r,i,!0)};var o=n&&n.data;Rt(t,"$attrs",o&&o.attrs||i,null,!0),Rt(t,"$listeners",e._parentListeners||i,null,!0)}(e),Re(e,"beforeCreate",void 0,!1),function(t){var e=_n(t.$options.inject,t);e&&(At(!1),Object.keys(e).forEach((function(n){Rt(t,n,e[n])})),At(!0))}(e),function(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Nt({}),i=t.$options._propKeys=[];t.$parent&&At(!1);var o=function(o){i.push(o);var a=Un(o,e,n,t);Rt(r,o,a),o in t||hn(t,"_props",o)};for(var a in e)o(a);At(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=ve(t);pt(t),wt();var i=We(n,null,[t._props||Nt({}),r],t,"setup");if(Ot(),pt(),l(i))e.render=i;else if(f(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var a in i)"__sfc"!==a&&Bt(o,i,a)}else for(var a in i)V(a)||Bt(t,i,a)}}(t),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?j:L(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;p(e=t._data=l(e)?function(t,e){wt();try{return t.call(e,e)}catch(t){return Ke(t,e,"data()"),{}}finally{Ot()}}(e,t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&E(r,o)||V(o)||hn(t,"_data",o)}var a=Pt(e);a&&a.vmCount++}(t);else{var n=Pt(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=st();for(var i in e){var o=e[i],a=l(o)?o:o.get;r||(n[i]=new dn(t,a||j,j,gn)),i in t||vn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==it&&function(t,e){for(var n in e){var r=e[n];if(o(r))for(var i=0;i<r.length;i++)bn(t,n,r[i]);else bn(t,n,r)}}(t,e.watch)}(e),function(t){var e=t.$options.provide;if(e){var n=l(e)?e.call(t):e;if(!f(n))return;for(var r=function(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}(t),i=ft?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}(e),Re(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(zn),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=It,t.prototype.$delete=jt,t.prototype.$watch=function(t,e,n){var r=this;if(p(e))return bn(r,t,e,n);(n=n||{}).user=!0;var i=new dn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');wt(),We(e,r,[i.value],r,o),Ot()}return function(){i.teardown()}}}(zn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(o(t))for(var i=0,a=t.length;i<a;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var a,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var c=s.length;c--;)if((a=s[c])===e||a.fn===e){s.splice(c,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?P(n):n;for(var r=P(arguments,1),i='event handler for "'.concat(t,'"'),o=0,a=n.length;o<a;o++)We(n[o],e,r,e,i)}return e}}(zn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=xe(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Re(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||w(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Re(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(zn),function(t){ue(t.prototype),t.prototype.$nextTick=function(t){return sn(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&e._isMounted&&(e.$scopedSlots=pe(e.$parent,i.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&be(e._slotsProxy,e.$scopedSlots)),e.$vnode=i;try{pt(e),we=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Ke(n,e,"render"),t=e._vnode}finally{we=null,pt()}return o(t)&&1===t.length&&(t=t[0]),t instanceof ht||(t=gt()),t.parent=i,t}}(zn);var Xn=[String,RegExp,Array],Zn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Xn,exclude:Xn,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;e[i]={name:Vn(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&Yn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Yn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Wn(t,(function(t){return Kn(e,t)}))})),this.$watch("exclude",(function(e){Wn(t,(function(t){return!Kn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ee(t),n=e&&e.componentOptions;if(n){var r=Vn(n),i=this.include,o=this.exclude;if(i&&(!r||!Kn(i,r))||o&&r&&Kn(o,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,w(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return G}};Object.defineProperty(t,"config",e),t.util={warn:Pn,extend:R,mergeOptions:Fn,defineReactive:Rt},t.set=It,t.delete=jt,t.nextTick=sn,t.observable=function(t){return Pt(t),t},t.options=Object.create(null),q.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,Zn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=P(arguments,1);return n.unshift(this),l(t.install)?t.install.apply(t,n):l(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Fn(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=Cn(t)||Cn(n.options),a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Fn(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)hn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)vn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,q.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=R({},a.options),i[r]=a,a}}(t),function(t){q.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&l(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(zn),Object.defineProperty(zn.prototype,"$isServer",{get:st}),Object.defineProperty(zn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(zn,"FunctionalRenderContext",{value:En}),zn.version="2.7.10";var Jn=m("style,class"),Qn=m("input,textarea,option,select,progress"),tr=function(t,e,n){return"value"===n&&Qn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},er=m("contenteditable,draggable,spellcheck"),nr=m("events,caret,typing,plaintext-only"),rr=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ir="http://www.w3.org/1999/xlink",or=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ar=function(t){return or(t)?t.slice(6,t.length):""},sr=function(t){return null==t||!1===t};function cr(t,e){return{staticClass:ur(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function ur(t,e){return t?e?t+" "+e:t:e||""}function lr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)s(e=lr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):f(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var fr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},dr=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),pr=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),hr=function(t){return dr(t)||pr(t)};function gr(t){return pr(t)?"svg":"math"===t?"math":void 0}var vr=Object.create(null),yr=m("text,number,password,search,email,tel,url");function mr(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}var br=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(fr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),_r={create:function(t,e){wr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(wr(t,!0),wr(e))},destroy:function(t){wr(t,!0)}};function wr(t,e){var n=t.data.ref;if(s(n)){var r=t.context,i=t.componentInstance||t.elm,a=e?null:i,c=e?void 0:i;if(l(n))We(n,r,[a],r,"template ref function");else{var u=t.data.refInFor,f="string"==typeof n||"number"==typeof n,d=Ft(n),p=r.$refs;if(f||d)if(u){var h=f?p[n]:n.value;e?o(h)&&w(h,i):o(h)?h.includes(i)||h.push(i):f?(p[n]=[i],Or(r,n,p[n])):n.value=[i]}else if(f){if(e&&p[n]!==i)return;p[n]=c,Or(r,n,a)}else if(d){if(e&&n.value!==i)return;n.value=a}}}}function Or(t,e,n){var r=t._setupState;r&&E(r,e)&&(Ft(r[e])?r[e].value=n:r[e]=n)}var Er=new ht("",{},[]),Sr=["create","activate","update","remove","destroy"];function kr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=s(n=t.data)&&s(n=n.attrs)&&n.type,i=s(n=e.data)&&s(n=n.attrs)&&n.type;return r===i||yr(r)&&yr(i)}(t,e)||c(t.isAsyncPlaceholder)&&a(e.asyncFactory.error))}function Cr(t,e,n){var r,i,o={};for(r=e;r<=n;++r)s(i=t[r].key)&&(o[i]=r);return o}var Tr={create:Ar,update:Ar,destroy:function(t){Ar(t,Er)}};function Ar(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Er,a=e===Er,s=Lr(t.data.directives,t.context),c=Lr(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Rr(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(Rr(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)Rr(u[n],"inserted",e,t)};o?Ht(e,"insert",f):f()}if(l.length&&Ht(e,"postpatch",(function(){for(var n=0;n<l.length;n++)Rr(l[n],"componentUpdated",e,t)})),!o)for(n in s)c[n]||Rr(s[n],"unbind",t,t,a)}(t,e)}var xr=Object.create(null);function Lr(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=xr),i[Pr(r)]=r,e._setupState&&e._setupState.__sfc){var o=r.def||Bn(e,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||Bn(e.$options,"directives",r.name)}return i}function Pr(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Rr(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Ke(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Ir=[_r,Tr];function jr(t,e){var n=e.componentOptions;if(!(s(n)&&!1===n.Ctor.options.inheritAttrs||a(t.data.attrs)&&a(e.data.attrs))){var r,i,o=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(r in(s(l.__ob__)||c(l._v_attr_proxy))&&(l=e.data.attrs=R({},l)),l)i=l[r],u[r]!==i&&Dr(o,r,i,e.data.pre);for(r in(J||tt)&&l.value!==u.value&&Dr(o,"value",l.value),u)a(l[r])&&(or(r)?o.removeAttributeNS(ir,ar(r)):er(r)||o.removeAttribute(r))}}function Dr(t,e,n,r){r||t.tagName.indexOf("-")>-1?Nr(t,e,n):rr(e)?sr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):er(e)?t.setAttribute(e,function(t,e){return sr(e)||"false"===e?"false":"contenteditable"===t&&nr(e)?e:"true"}(e,n)):or(e)?sr(n)?t.removeAttributeNS(ir,ar(e)):t.setAttributeNS(ir,e,n):Nr(t,e,n)}function Nr(t,e,n){if(sr(n))t.removeAttribute(e);else{if(J&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Mr={create:jr,update:jr};function Fr(t,e){var n=e.elm,r=e.data,i=t.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var o=function(t){for(var e=t.data,n=t,r=t;s(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=cr(r.data,e));for(;s(n=n.parent);)n&&n.data&&(e=cr(e,n.data));return function(t,e){return s(t)||s(e)?ur(t,lr(e)):""}(e.staticClass,e.class)}(e),c=n._transitionClasses;s(c)&&(o=ur(o,lr(c))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Br,Ur,$r,qr,Hr,Gr,zr={create:Fr,update:Fr},Vr=/[\w).+\-_$\]]/;function Kr(t){var e,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(c)96===e&&92!==n&&(c=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||l||f||d){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===e){for(var h=r-1,g=void 0;h>=0&&" "===(g=t.charAt(h));h--);g&&Vr.test(g)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&v(),o)for(r=0;r<o.length;r++)i=Wr(i,o[r]);return i}function Wr(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var r=e.slice(0,n),i=e.slice(n+1);return'_f("'.concat(r,'")(').concat(t).concat(")"!==i?","+i:i)}function Yr(t,e){console.error("[Vue compiler]: ".concat(t))}function Xr(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function Zr(t,e,n,r,i){(t.props||(t.props=[])).push(ai({name:e,value:n,dynamic:i},r)),t.plain=!1}function Jr(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(ai({name:e,value:n,dynamic:i},r)),t.plain=!1}function Qr(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(ai({name:e,value:n},r))}function ti(t,e,n,r,i,o,a,s){(t.directives||(t.directives=[])).push(ai({name:e,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function ei(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function ni(t,e,n,r,o,a,s,c){var u;(r=r||i).right?c?e="(".concat(e,")==='click'?'contextmenu':(").concat(e,")"):"click"===e&&(e="contextmenu",delete r.right):r.middle&&(c?e="(".concat(e,")==='click'?'mouseup':(").concat(e,")"):"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=ei("!",e,c)),r.once&&(delete r.once,e=ei("~",e,c)),r.passive&&(delete r.passive,e=ei("&",e,c)),r.native?(delete r.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=ai({value:n.trim(),dynamic:c},s);r!==i&&(l.modifiers=r);var f=u[e];Array.isArray(f)?o?f.unshift(l):f.push(l):u[e]=f?o?[l,f]:[f,l]:l,t.plain=!1}function ri(t,e,n){var r=ii(t,":"+e)||ii(t,"v-bind:"+e);if(null!=r)return Kr(r);if(!1!==n){var i=ii(t,e);if(null!=i)return JSON.stringify(i)}}function ii(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var i=t.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===e){i.splice(o,1);break}return n&&delete t.attrsMap[e],r}function oi(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}function ai(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function si(t,e,n){var r=n||{},i=r.number,o="$$v",a=o;r.trim&&(a="(typeof ".concat(o," === 'string'")+"? ".concat(o,".trim()")+": ".concat(o,")")),i&&(a="_n(".concat(a,")"));var s=ci(e,a);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat(o,") {").concat(s,"}")}}function ci(t,e){var n=function(t){if(t=t.trim(),Br=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<Br-1)return(qr=t.lastIndexOf("."))>-1?{exp:t.slice(0,qr),key:'"'+t.slice(qr+1)+'"'}:{exp:t,key:null};for(Ur=t,qr=Hr=Gr=0;!li();)fi($r=ui())?pi($r):91===$r&&di($r);return{exp:t.slice(0,Hr),key:t.slice(Hr+1,Gr)}}(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function ui(){return Ur.charCodeAt(++qr)}function li(){return qr>=Br}function fi(t){return 34===t||39===t}function di(t){var e=1;for(Hr=qr;!li();)if(fi(t=ui()))pi(t);else if(91===t&&e++,93===t&&e--,0===e){Gr=qr;break}}function pi(t){for(var e=t;!li()&&(t=ui())!==e;);}var hi;function gi(t,e,n){var r=hi;return function i(){var o=e.apply(null,arguments);null!==o&&mi(t,i,n,r)}}var vi=Je&&!(rt&&Number(rt[1])<=53);function yi(t,e,n,r){if(vi){var i=Be,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}hi.addEventListener(t,e,ot?{capture:n,passive:r}:n)}function mi(t,e,n,r){(r||hi).removeEventListener(t,e._wrapper||e,n)}function bi(t,e){if(!a(t.data.on)||!a(e.data.on)){var n=e.data.on||{},r=t.data.on||{};hi=e.elm||t.elm,function(t){if(s(t.__r)){var e=J?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}s(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),qt(n,r,yi,mi,gi,e.context),hi=void 0}}var _i,wi={create:bi,update:bi,destroy:function(t){return bi(t,Er)}};function Oi(t,e){if(!a(t.data.domProps)||!a(e.data.domProps)){var n,r,i=e.elm,o=t.data.domProps||{},u=e.data.domProps||{};for(n in(s(u.__ob__)||c(u._v_attr_proxy))&&(u=e.data.domProps=R({},u)),o)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var l=a(r)?"":String(r);Ei(i,l)&&(i.value=l)}else if("innerHTML"===n&&pr(i.tagName)&&a(i.innerHTML)){(_i=_i||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var f=_i.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;f.firstChild;)i.appendChild(f.firstChild)}else if(r!==o[n])try{i[n]=r}catch(t){}}}}function Ei(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(s(r)){if(r.number)return y(n)!==y(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Si={create:Oi,update:Oi},ki=S((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Ci(t){var e=Ti(t.style);return t.staticStyle?R(t.staticStyle,e):e}function Ti(t){return Array.isArray(t)?I(t):"string"==typeof t?ki(t):t}var Ai,xi=/^--/,Li=/\s*!important$/,Pi=function(t,e,n){if(xi.test(e))t.style.setProperty(e,n);else if(Li.test(n))t.style.setProperty(x(e),n.replace(Li,""),"important");else{var r=Ii(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Ri=["Webkit","Moz","ms"],Ii=S((function(t){if(Ai=Ai||document.createElement("div").style,"filter"!==(t=C(t))&&t in Ai)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Ri.length;n++){var r=Ri[n]+e;if(r in Ai)return r}}));function ji(t,e){var n=e.data,r=t.data;if(!(a(n.staticStyle)&&a(n.style)&&a(r.staticStyle)&&a(r.style))){var i,o,c=e.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},f=u||l,d=Ti(e.data.style)||{};e.data.normalizedStyle=s(d.__ob__)?R({},d):d;var p=function(t,e){for(var n,r={},i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ci(i.data))&&R(r,n);(n=Ci(t.data))&&R(r,n);for(var o=t;o=o.parent;)o.data&&(n=Ci(o.data))&&R(r,n);return r}(e);for(o in f)a(p[o])&&Pi(c,o,"");for(o in p)(i=p[o])!==f[o]&&Pi(c,o,null==i?"":i)}}var Di={create:ji,update:ji},Ni=/\s+/;function Mi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ni).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Fi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ni).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Bi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&R(e,Ui(t.name||"v")),R(e,t),e}return"string"==typeof t?Ui(t):void 0}}var Ui=S((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),$i=X&&!Q,qi="transition",Hi="animation",Gi="transition",zi="transitionend",Vi="animation",Ki="animationend";$i&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gi="WebkitTransition",zi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Vi="WebkitAnimation",Ki="webkitAnimationEnd"));var Wi=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Yi(t){Wi((function(){Wi(t)}))}function Xi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Mi(t,e))}function Zi(t,e){t._transitionClasses&&w(t._transitionClasses,e),Fi(t,e)}function Ji(t,e,n){var r=to(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===qi?zi:Ki,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),t.addEventListener(s,l)}var Qi=/\b(transform|all)(,|$)/;function to(t,e){var n,r=window.getComputedStyle(t),i=(r[Gi+"Delay"]||"").split(", "),o=(r[Gi+"Duration"]||"").split(", "),a=eo(i,o),s=(r[Vi+"Delay"]||"").split(", "),c=(r[Vi+"Duration"]||"").split(", "),u=eo(s,c),l=0,f=0;return e===qi?a>0&&(n=qi,l=a,f=o.length):e===Hi?u>0&&(n=Hi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?qi:Hi:null)?n===qi?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===qi&&Qi.test(r[Gi+"Property"])}}function eo(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return no(e)+no(t[n])})))}function no(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ro(t,e){var n=t.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Bi(t.data.transition);if(!a(r)&&!s(n._enterCb)&&1===n.nodeType){for(var i=r.css,o=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,p=r.appearClass,h=r.appearToClass,g=r.appearActiveClass,v=r.beforeEnter,m=r.enter,b=r.afterEnter,_=r.enterCancelled,w=r.beforeAppear,O=r.appear,E=r.afterAppear,S=r.appearCancelled,k=r.duration,C=Ae,T=Ae.$vnode;T&&T.parent;)C=T.context,T=T.parent;var A=!C._isMounted||!t.isRootInsert;if(!A||O||""===O){var x=A&&p?p:c,L=A&&g?g:d,P=A&&h?h:u,R=A&&w||v,I=A&&l(O)?O:m,j=A&&E||b,D=A&&S||_,N=y(f(k)?k.enter:k),M=!1!==i&&!Q,F=ao(I),U=n._enterCb=B((function(){M&&(Zi(n,P),Zi(n,L)),U.cancelled?(M&&Zi(n,x),D&&D(n)):j&&j(n),n._enterCb=null}));t.data.show||Ht(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),I&&I(n,U)})),R&&R(n),M&&(Xi(n,x),Xi(n,L),Yi((function(){Zi(n,x),U.cancelled||(Xi(n,P),F||(oo(N)?setTimeout(U,N):Ji(n,o,U)))}))),t.data.show&&(e&&e(),I&&I(n,U)),M||F||U()}}}function io(t,e){var n=t.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Bi(t.data.transition);if(a(r)||1!==n.nodeType)return e();if(!s(n._leaveCb)){var i=r.css,o=r.type,c=r.leaveClass,u=r.leaveToClass,l=r.leaveActiveClass,d=r.beforeLeave,p=r.leave,h=r.afterLeave,g=r.leaveCancelled,v=r.delayLeave,m=r.duration,b=!1!==i&&!Q,_=ao(p),w=y(f(m)?m.leave:m),O=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Zi(n,u),Zi(n,l)),O.cancelled?(b&&Zi(n,c),g&&g(n)):(e(),h&&h(n)),n._leaveCb=null}));v?v(E):E()}function E(){O.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),b&&(Xi(n,c),Xi(n,l),Yi((function(){Zi(n,c),O.cancelled||(Xi(n,u),_||(oo(w)?setTimeout(O,w):Ji(n,o,O)))}))),p&&p(n,O),b||_||O())}}function oo(t){return"number"==typeof t&&!isNaN(t)}function ao(t){if(a(t))return!1;var e=t.fns;return s(e)?ao(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function so(t,e){!0!==e.data.show&&ro(e)}var co=function(t){var e,n,r={},i=t.modules,l=t.nodeOps;for(e=0;e<Sr.length;++e)for(r[Sr[e]]=[],n=0;n<i.length;++n)s(i[n][Sr[e]])&&r[Sr[e]].push(i[n][Sr[e]]);function f(t){var e=l.parentNode(t);s(e)&&l.removeChild(e,t)}function d(t,e,n,i,o,a,u){if(s(t.elm)&&s(a)&&(t=a[u]=yt(t)),t.isRootInsert=!o,!function(t,e,n,i){var o=t.data;if(s(o)){var a=s(t.componentInstance)&&o.keepAlive;if(s(o=o.hook)&&s(o=o.init)&&o(t,!1),s(t.componentInstance))return p(t,e),h(n,t.elm,i),c(a)&&function(t,e,n,i){for(var o,a=t;a.componentInstance;)if(s(o=(a=a.componentInstance._vnode).data)&&s(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Er,a);e.push(a);break}h(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var f=t.data,d=t.children,v=t.tag;s(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),b(t),g(t,d,e),s(f)&&y(t,e),h(n,t.elm,i)):c(t.isComment)?(t.elm=l.createComment(t.text),h(n,t.elm,i)):(t.elm=l.createTextNode(t.text),h(n,t.elm,i))}}function p(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,e),b(t)):(wr(t),e.push(t))}function h(t,e,n){s(t)&&(s(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function g(t,e,n){if(o(e))for(var r=0;r<e.length;++r)d(e[r],n,t.elm,null,!0,e,r);else u(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return s(t.tag)}function y(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Er,t);s(e=t.data.hook)&&(s(e.create)&&e.create(Er,t),s(e.insert)&&n.push(t))}function b(t){var e;if(s(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)s(e=n.context)&&s(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;s(e=Ae)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function _(t,e,n,r,i,o){for(;r<=i;++r)d(n[r],o,t,e,!1,n,r)}function w(t){var e,n,i=t.data;if(s(i))for(s(e=i.hook)&&s(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(s(e=t.children))for(n=0;n<t.children.length;++n)w(t.children[n])}function O(t,e,n){for(;e<=n;++e){var r=t[e];s(r)&&(s(r.tag)?(E(r),w(r)):f(r.elm))}}function E(t,e){if(s(e)||s(t.data)){var n,i=r.remove.length+1;for(s(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&f(t)}return n.listeners=e,n}(t.elm,i),s(n=t.componentInstance)&&s(n=n._vnode)&&s(n.data)&&E(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);s(n=t.data.hook)&&s(n=n.remove)?n(t,e):e()}else f(t.elm)}function S(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(s(o)&&kr(t,o))return i}}function k(t,e,n,i,o,u){if(t!==e){s(e.elm)&&s(i)&&(e=i[o]=yt(e));var f=e.elm=t.elm;if(c(t.isAsyncPlaceholder))s(e.asyncFactory.resolved)?A(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(c(e.isStatic)&&c(t.isStatic)&&e.key===t.key&&(c(e.isCloned)||c(e.isOnce)))e.componentInstance=t.componentInstance;else{var p,h=e.data;s(h)&&s(p=h.hook)&&s(p=p.prepatch)&&p(t,e);var g=t.children,y=e.children;if(s(h)&&v(e)){for(p=0;p<r.update.length;++p)r.update[p](t,e);s(p=h.hook)&&s(p=p.update)&&p(t,e)}a(e.text)?s(g)&&s(y)?g!==y&&function(t,e,n,r,i){for(var o,c,u,f=0,p=0,h=e.length-1,g=e[0],v=e[h],y=n.length-1,m=n[0],b=n[y],w=!i;f<=h&&p<=y;)a(g)?g=e[++f]:a(v)?v=e[--h]:kr(g,m)?(k(g,m,r,n,p),g=e[++f],m=n[++p]):kr(v,b)?(k(v,b,r,n,y),v=e[--h],b=n[--y]):kr(g,b)?(k(g,b,r,n,y),w&&l.insertBefore(t,g.elm,l.nextSibling(v.elm)),g=e[++f],b=n[--y]):kr(v,m)?(k(v,m,r,n,p),w&&l.insertBefore(t,v.elm,g.elm),v=e[--h],m=n[++p]):(a(o)&&(o=Cr(e,f,h)),a(c=s(m.key)?o[m.key]:S(m,e,f,h))?d(m,r,t,g.elm,!1,n,p):kr(u=e[c],m)?(k(u,m,r,n,p),e[c]=void 0,w&&l.insertBefore(t,u.elm,g.elm)):d(m,r,t,g.elm,!1,n,p),m=n[++p]);f>h?_(t,a(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&O(e,f,h)}(f,g,y,n,u):s(y)?(s(t.text)&&l.setTextContent(f,""),_(f,null,y,0,y.length-1,n)):s(g)?O(g,0,g.length-1):s(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),s(h)&&s(p=h.hook)&&s(p=p.postpatch)&&p(t,e)}}}function C(t,e,n){if(c(n)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var T=m("attrs,class,staticClass,staticStyle,key");function A(t,e,n,r){var i,o=e.tag,a=e.data,u=e.children;if(r=r||a&&a.pre,e.elm=t,c(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(a)&&(s(i=a.hook)&&s(i=i.init)&&i(e,!0),s(i=e.componentInstance)))return p(e,n),!0;if(s(o)){if(s(u))if(t.hasChildNodes())if(s(i=a)&&s(i=i.domProps)&&s(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,d=0;d<u.length;d++){if(!f||!A(f,u[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else g(e,u,n);if(s(a)){var h=!1;for(var v in a)if(!T(v)){h=!0,y(e,n);break}!h&&a.class&&ln(a.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!a(e)){var o,u=!1,f=[];if(a(t))u=!0,d(e,f);else{var p=s(t.nodeType);if(!p&&kr(t,e))k(t,e,f,null,null,i);else{if(p){if(1===t.nodeType&&t.hasAttribute($)&&(t.removeAttribute($),n=!0),c(n)&&A(t,e,f))return C(e,f,!0),t;o=t,t=new ht(l.tagName(o).toLowerCase(),{},[],void 0,o)}var h=t.elm,g=l.parentNode(h);if(d(e,f,h._leaveCb?null:g,l.nextSibling(h)),s(e.parent))for(var y=e.parent,m=v(e);y;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](y);if(y.elm=e.elm,m){for(var _=0;_<r.create.length;++_)r.create[_](Er,y);var E=y.data.hook.insert;if(E.merged)for(var S=1;S<E.fns.length;S++)E.fns[S]()}else wr(y);y=y.parent}s(g)?O([t],0,0):s(t.tag)&&w(t)}}return C(e,f,u),e.elm}s(t)&&w(t)}}({nodeOps:br,modules:[Mr,zr,wi,Si,Di,X?{create:so,activate:so,remove:function(t,e){!0!==t.data.show?io(t,e):e()}}:{}].concat(Ir)});Q&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&yo(t,"input")}));var uo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ht(n,"postpatch",(function(){uo.componentUpdated(t,e,n)})):lo(t,e,n.context),t._vOptions=[].map.call(t.options,ho)):("textarea"===n.tag||yr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",go),t.addEventListener("compositionend",vo),t.addEventListener("change",vo),Q&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){lo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ho);i.some((function(t,e){return!M(t,r[e])}))&&(t.multiple?e.value.some((function(t){return po(t,i)})):e.value!==e.oldValue&&po(e.value,i))&&yo(t,"change")}}};function lo(t,e,n){fo(t,e,n),(J||tt)&&setTimeout((function(){fo(t,e,n)}),0)}function fo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=F(r,ho(a))>-1,a.selected!==o&&(a.selected=o);else if(M(ho(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function po(t,e){return e.every((function(e){return!M(e,t)}))}function ho(t){return"_value"in t?t._value:t.value}function go(t){t.target.composing=!0}function vo(t){t.target.composing&&(t.target.composing=!1,yo(t.target,"input"))}function yo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mo(t){return!t.componentInstance||t.data&&t.data.transition?t:mo(t.componentInstance._vnode)}var bo={model:uo,show:{bind:function(t,e,n){var r=e.value,i=(n=mo(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ro(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mo(n)).data&&n.data.transition?(n.data.show=!0,r?ro(n,(function(){t.style.display=t.__vOriginalDisplay})):io(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},_o={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function wo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?wo(Ee(e.children)):t}function Oo(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[C(r)]=i[r];return e}function Eo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var So=function(t){return t.tag||de(t)},ko=function(t){return"show"===t.name},Co={name:"transition",props:_o,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(So)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=wo(i);if(!o)return i;if(this._leaving)return Eo(t,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Oo(this),c=this._vnode,l=wo(c);if(o.data.directives&&o.data.directives.some(ko)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!de(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},s);if("out-in"===r)return this._leaving=!0,Ht(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Eo(t,i);if("in-out"===r){if(de(o))return c;var d,p=function(){d()};Ht(s,"afterEnter",p),Ht(s,"enterCancelled",p),Ht(f,"delayLeave",(function(t){d=t}))}}return i}}},To=R({tag:String,moveClass:String},_o);function Ao(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function xo(t){t.data.newPos=t.elm.getBoundingClientRect()}function Lo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}delete To.mode;var Po={Transition:Co,TransitionGroup:{props:To,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Oo(this),s=0;s<i.length;s++)(l=i[s]).tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a);if(r){var c=[],u=[];for(s=0;s<r.length;s++){var l;(l=r[s]).data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Ao),t.forEach(xo),t.forEach(Lo),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Xi(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(zi,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(zi,t),n._moveCb=null,Zi(n,e))})}})))},methods:{hasMove:function(t,e){if(!$i)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Fi(n,t)})),Mi(n,e),n.style.display="none",this.$el.appendChild(n);var r=to(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};zn.config.mustUseProp=tr,zn.config.isReservedTag=hr,zn.config.isReservedAttr=Jn,zn.config.getTagNamespace=gr,zn.config.isUnknownElement=function(t){if(!X)return!0;if(hr(t))return!1;if(t=t.toLowerCase(),null!=vr[t])return vr[t];var e=document.createElement(t);return t.indexOf("-")>-1?vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:vr[t]=/HTMLUnknownElement/.test(e.toString())},R(zn.options.directives,bo),R(zn.options.components,Po),zn.prototype.__patch__=X?co:j,zn.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=gt),Re(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Re(t,"beforeUpdate")}},!0),n=!1;var i=t._preWatchers;if(i)for(var o=0;o<i.length;o++)i[o].run();return null==t.$vnode&&(t._isMounted=!0,Re(t,"mounted")),t}(this,t=t&&X?mr(t):void 0,e)},X&&setTimeout((function(){G.devtools&&ct&&ct.emit("init",zn)}),0);var Ro,Io=/\{\{((?:.|\r?\n)+?)\}\}/g,jo=/[-.*+?^${}()|[\]\/\\]/g,Do=S((function(t){var e=t[0].replace(jo,"\\$&"),n=t[1].replace(jo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),No={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=ii(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=ri(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}},Mo={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=ii(t,"style");n&&(t.staticStyle=JSON.stringify(ki(n)));var r=ri(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}},Fo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Bo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Uo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),$o=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,qo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ho="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(z.source,"]*"),Go="((?:".concat(Ho,"\\:)?").concat(Ho,")"),zo=new RegExp("^<".concat(Go)),Vo=/^\s*(\/?)>/,Ko=new RegExp("^<\\/".concat(Go,"[^>]*>")),Wo=/^<!DOCTYPE [^>]+>/i,Yo=/^<!\--/,Xo=/^<!\[/,Zo=m("script,style,textarea",!0),Jo={},Qo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},ta=/&(?:lt|gt|quot|amp|#39);/g,ea=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,na=m("pre,textarea",!0),ra=function(t,e){return t&&na(t)&&"\n"===e[0]};function ia(t,e){var n=e?ea:ta;return t.replace(n,(function(t){return Qo[t]}))}var oa,aa,sa,ca,ua,la,fa,da,pa=/^@|^v-on:/,ha=/^v-|^@|^:|^#/,ga=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,va=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ya=/^\(|\)$/g,ma=/^\[.*\]$/,ba=/:(.*)$/,_a=/^:|^\.|^v-bind:/,wa=/\.[^.\]]+(?=[^\]]*$)/g,Oa=/^v-slot(:|$)|^#/,Ea=/[\r\n]/,Sa=/[ \f\t\r\n]+/g,ka=S((function(t){return(Ro=Ro||document.createElement("div")).innerHTML=t,Ro.textContent})),Ca="_empty_";function Ta(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ja(e),rawAttrsMap:{},parent:n,children:[]}}function Aa(t,e){oa=e.warn||Yr,la=e.isPreTag||D,fa=e.mustUseProp||D,da=e.getTagNamespace||D;e.isReservedTag;sa=Xr(e.modules,"transformNode"),ca=Xr(e.modules,"preTransformNode"),ua=Xr(e.modules,"postTransformNode"),aa=e.delimiters;var n,r,i=[],o=!1!==e.preserveWhitespace,a=e.whitespace,s=!1,c=!1;function u(t){if(l(t),s||t.processed||(t=xa(t,e)),i.length||t===n||n.if&&(t.elseif||t.else)&&Pa(n,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,(u=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&u.if&&Pa(u,{exp:a.elseif,block:a});else{if(t.slotScope){var o=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=t}r.children.push(t),t.parent=r}var a,u;t.children=t.children.filter((function(t){return!t.slotScope})),l(t),t.pre&&(s=!1),la(t.tag)&&(c=!1);for(var f=0;f<ua.length;f++)ua[f](t,e)}function l(t){if(!c)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,r,i=[],o=e.expectHTML,a=e.isUnaryTag||D,s=e.canBeLeftOpenTag||D,c=0,u=function(){if(n=t,r&&Zo(r)){var u=0,d=r.toLowerCase(),p=Jo[d]||(Jo[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i"));O=t.replace(p,(function(t,n,r){return u=r.length,Zo(d)||"noscript"===d||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ra(d,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""})),c+=t.length-O.length,t=O,f(d,c-u,c)}else{var h=t.indexOf("<");if(0===h){if(Yo.test(t)){var g=t.indexOf("--\x3e");if(g>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,g),c,c+g+3),l(g+3),"continue"}if(Xo.test(t)){var v=t.indexOf("]>");if(v>=0)return l(v+2),"continue"}var y=t.match(Wo);if(y)return l(y[0].length),"continue";var m=t.match(Ko);if(m){var b=c;return l(m[0].length),f(m[1],b,c),"continue"}var _=function(){var e=t.match(zo);if(e){var n={tagName:e[1],attrs:[],start:c};l(e[0].length);for(var r=void 0,i=void 0;!(r=t.match(Vo))&&(i=t.match(qo)||t.match($o));)i.start=c,l(i[0].length),i.end=c,n.attrs.push(i);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=c,n}}();if(_)return function(t){var n=t.tagName,c=t.unarySlash;o&&("p"===r&&Uo(n)&&f(r),s(n)&&r===n&&f(n));for(var u=a(n)||!!c,l=t.attrs.length,d=new Array(l),p=0;p<l;p++){var h=t.attrs[p],g=h[3]||h[4]||h[5]||"",v="a"===n&&"href"===h[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[p]={name:h[1],value:ia(g,v)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:t.start,end:t.end}),r=n),e.start&&e.start(n,d,u,t.start,t.end)}(_),ra(_.tagName,t)&&l(1),"continue"}var w=void 0,O=void 0,E=void 0;if(h>=0){for(O=t.slice(h);!(Ko.test(O)||zo.test(O)||Yo.test(O)||Xo.test(O)||(E=O.indexOf("<",1))<0);)h+=E,O=t.slice(h);w=t.substring(0,h)}h<0&&(w=t),w&&l(w.length),e.chars&&w&&e.chars(w,c-w.length,c)}if(t===n)return e.chars&&e.chars(t),"break"};t&&"break"!==u(););function l(e){c+=e,t=t.substring(e)}function f(t,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),t)for(s=t.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)e.end&&e.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}f()}(t,{warn:oa,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,l,f){var d=r&&r.ns||da(t);J&&"svg"===d&&(o=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Da.test(r.name)||(r.name=r.name.replace(Na,""),e.push(r))}return e}(o));var p,h=Ta(t,o,r);d&&(h.ns=d),"style"!==(p=h).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||st()||(h.forbidden=!0);for(var g=0;g<ca.length;g++)h=ca[g](h,e)||h;s||(function(t){null!=ii(t,"v-pre")&&(t.pre=!0)}(h),h.pre&&(s=!0)),la(h.tag)&&(c=!0),s?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(h):h.processed||(La(h),function(t){var e=ii(t,"v-if");if(e)t.if=e,Pa(t,{exp:e,block:t});else{null!=ii(t,"v-else")&&(t.else=!0);var n=ii(t,"v-else-if");n&&(t.elseif=n)}}(h),function(t){null!=ii(t,"v-once")&&(t.once=!0)}(h)),n||(n=h),a?u(h):(r=h,i.push(h))},end:function(t,e,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],u(o)},chars:function(t,e,n){if(r&&(!J||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,u=r.children;if(t=c||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:ka(t):u.length?a?"condense"===a&&Ea.test(t)?"":" ":o?" ":"":""){c||"condense"!==a||(t=t.replace(Sa," "));var l=void 0,f=void 0;!s&&" "!==t&&(l=function(t,e){var n=e?Do(e):Io;if(n.test(t)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(i=r.index)>c&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=Kr(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=i+r[0].length}return c<t.length&&(s.push(o=t.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(t,aa))?f={type:2,expression:l.expression,tokens:l.tokens,text:t}:" "===t&&u.length&&" "===u[u.length-1].text||(f={type:3,text:t}),f&&u.push(f)}}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};r.children.push(i)}}}),n}function xa(t,e){var n;!function(t){var e=ri(t,"key");e&&(t.key=e)}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=ri(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=ii(t,"scope"),t.slotScope=e||ii(t,"slot-scope")):(e=ii(t,"slot-scope"))&&(t.slotScope=e);var n,r=ri(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Jr(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){if(n=oi(t,Oa)){var i=Ra(n),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=n.value||Ca}}else if(n=oi(t,Oa)){var s=t.scopedSlots||(t.scopedSlots={}),c=Ra(n),u=c.name,l=(a=c.dynamic,s[u]=Ta("template",[],t));l.slotTarget=u,l.slotTargetDynamic=a,l.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=l,!0})),l.slotScope=n.value||Ca,t.children=[],t.plain=!1}}(t),"slot"===(n=t).tag&&(n.slotName=ri(n,"name")),function(t){var e;(e=ri(t,"is"))&&(t.component=e),null!=ii(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r<sa.length;r++)t=sa[r](t,e)||t;return function(t){var e,n,r,i,o,a,s,c,u=t.attrsList;for(e=0,n=u.length;e<n;e++)if(r=i=u[e].name,o=u[e].value,ha.test(r))if(t.hasBindings=!0,(a=Ia(r.replace(ha,"")))&&(r=r.replace(wa,"")),_a.test(r))r=r.replace(_a,""),o=Kr(o),(c=ma.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=ci(o,"$event"),c?ni(t,'"update:"+('.concat(r,")"),s,null,!1,0,u[e],!0):(ni(t,"update:".concat(C(r)),s,null,!1,0,u[e]),x(r)!==C(r)&&ni(t,"update:".concat(x(r)),s,null,!1,0,u[e])))),a&&a.prop||!t.component&&fa(t.tag,t.attrsMap.type,r)?Zr(t,r,o,u[e],c):Jr(t,r,o,u[e],c);else if(pa.test(r))r=r.replace(pa,""),(c=ma.test(r))&&(r=r.slice(1,-1)),ni(t,r,o,a,!1,0,u[e],c);else{var l=(r=r.replace(ha,"")).match(ba),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),ma.test(f)&&(f=f.slice(1,-1),c=!0)),ti(t,r,i,o,f,c,a,u[e])}else Jr(t,r,JSON.stringify(o),u[e]),!t.component&&"muted"===r&&fa(t.tag,t.attrsMap.type,r)&&Zr(t,r,"true",u[e])}(t),t}function La(t){var e;if(e=ii(t,"v-for")){var n=function(t){var e=t.match(ga);if(e){var n={};n.for=e[2].trim();var r=e[1].trim().replace(ya,""),i=r.match(va);return i?(n.alias=r.replace(va,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(e);n&&R(t,n)}}function Pa(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Ra(t){var e=t.name.replace(Oa,"");return e||"#"!==t.name[0]&&(e="default"),ma.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function Ia(t){var e=t.match(wa);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function ja(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}var Da=/^xmlns:NS\d+/,Na=/^NS\d+:/;function Ma(t){return Ta(t.tag,t.attrsList.slice(),t.parent)}var Fa,Ba,Ua=[No,Mo,{preTransformNode:function(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=ri(t,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=ii(t,"v-if",!0),o=i?"&&(".concat(i,")"):"",a=null!=ii(t,"v-else",!0),s=ii(t,"v-else-if",!0),c=Ma(t);La(c),Qr(c,"type","checkbox"),xa(c,e),c.processed=!0,c.if="(".concat(r,")==='checkbox'")+o,Pa(c,{exp:c.if,block:c});var u=Ma(t);ii(u,"v-for",!0),Qr(u,"type","radio"),xa(u,e),Pa(c,{exp:"(".concat(r,")==='radio'")+o,block:u});var l=Ma(t);return ii(l,"v-for",!0),Qr(l,":type",r),xa(l,e),Pa(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}],$a={expectHTML:!0,modules:Ua,directives:{model:function(t,e,n){var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return si(t,r,i),!1;if("select"===o)!function(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),o="var $$selectedVal = ".concat(i,";");ni(t,"change",o="".concat(o," ").concat(ci(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),null,!0)}(t,r,i);else if("input"===o&&"checkbox"===a)!function(t,e,n){var r=n&&n.number,i=ri(t,"value")||"null",o=ri(t,"true-value")||"true",a=ri(t,"false-value")||"false";Zr(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(i,")>-1")+("true"===o?":(".concat(e,")"):":_q(".concat(e,",").concat(o,")"))),ni(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(ci(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(ci(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(ci(e,"$$c"),"}"),null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=ri(t,"value")||"null";i=r?"_n(".concat(i,")"):i,Zr(t,"checked","_q(".concat(e,",").concat(i,")")),ni(t,"change",ci(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n(".concat(l,")"));var f=ci(e,l);c&&(f="if($event.target.composing)return;".concat(f)),Zr(t,"value","(".concat(e,")")),ni(t,u,f,null,!0),(s||a)&&ni(t,"blur","$forceUpdate()")}(t,r,i);else if(!G.isReservedTag(o))return si(t,r,i),!1;return!0},text:function(t,e){e.value&&Zr(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&Zr(t,"innerHTML","_s(".concat(e.value,")"),e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Fo,mustUseProp:tr,canBeLeftOpenTag:Bo,isReservedTag:hr,getTagNamespace:gr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(Ua)},qa=S((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function Ha(t,e){t&&(Fa=qa(e.staticKeys||""),Ba=e.isReservedTag||D,function t(e){if(e.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||b(t.tag)||!Ba(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Fa))))}(e),1===e.type){if(!Ba(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(n=1,r=e.ifConditions.length;n<r;n++){var o=e.ifConditions[n].block;t(o),o.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(r=1,i=e.ifConditions.length;r<i;r++)t(e.ifConditions[r].block,n)}}(t,!1))}var Ga=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,za=/\([^)]*?\);*$/,Va=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ka={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Wa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ya=function(t){return"if(".concat(t,")return null;")},Xa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ya("$event.target !== $event.currentTarget"),ctrl:Ya("!$event.ctrlKey"),shift:Ya("!$event.shiftKey"),alt:Ya("!$event.altKey"),meta:Ya("!$event.metaKey"),left:Ya("'button' in $event && $event.button !== 0"),middle:Ya("'button' in $event && $event.button !== 1"),right:Ya("'button' in $event && $event.button !== 2")};function Za(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=Ja(t[o]);t[o]&&t[o].dynamic?i+="".concat(o,",").concat(a,","):r+='"'.concat(o,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function Ja(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map((function(t){return Ja(t)})).join(","),"]");var e=Va.test(t.value),n=Ga.test(t.value),r=Va.test(t.value.replace(za,""));if(t.modifiers){var i="",o="",a=[],s=function(e){if(Xa[e])o+=Xa[e],Ka[e]&&a.push(e);else if("exact"===e){var n=t.modifiers;o+=Ya(["ctrl","shift","alt","meta"].filter((function(t){return!n[t]})).map((function(t){return"$event.".concat(t,"Key")})).join("||"))}else a.push(e)};for(var c in t.modifiers)s(c);a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(Qa).join("&&"),")return null;")}(a)),o&&(i+=o);var u=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):r?"return ".concat(t.value):t.value;return"function($event){".concat(i).concat(u,"}")}return e||n?t.value:"function($event){".concat(r?"return ".concat(t.value):t.value,"}")}function Qa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=Ka[t],r=Wa[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var ts={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:j},es=function(t){this.options=t,this.warn=t.warn||Yr,this.transforms=Xr(t.modules,"transformCode"),this.dataGenFns=Xr(t.modules,"genData"),this.directives=R(R({},ts),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ns(t,e){var n=new es(e),r=t?"script"===t.tag?"null":rs(t,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function rs(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return is(t,e);if(t.once&&!t.onceProcessed)return os(t,e);if(t.for&&!t.forProcessed)return ss(t,e);if(t.if&&!t.ifProcessed)return as(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=fs(t,e),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=t.attrs||t.dynamicAttrs?hs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:C(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=",".concat(o)),a&&(i+="".concat(o?"":",null",",").concat(a)),i+")"}(t,e);var n=void 0;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:fs(e,n,!0);return"_c(".concat(t,",").concat(cs(e,n)).concat(r?",".concat(r):"",")")}(t.component,t,e);else{var r=void 0,i=e.maybeComponent(t);(!t.plain||t.pre&&i)&&(r=cs(t,e));var o=void 0,a=e.options.bindings;i&&a&&!1!==a.__isScriptSetup&&(o=function(t,e){var n=C(e),r=T(n),i=function(i){return t[e]===i?e:t[n]===i?n:t[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var a=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");return a||void 0}(a,t.tag)),o||(o="'".concat(t.tag,"'"));var s=t.inlineTemplate?null:fs(t,e,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var c=0;c<e.transforms.length;c++)n=e.transforms[c](t,n);return n}return fs(t,e)||"void 0"}function is(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(rs(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function os(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return as(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(rs(t,e),",").concat(e.onceId++,",").concat(n,")"):rs(t,e)}return is(t,e)}function as(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"(".concat(o.exp,")?").concat(a(o.block),":").concat(t(e,n,r,i)):"".concat(a(o.block));function a(t){return r?r(t,n):t.once?os(t,n):rs(t,n)}}(t.ifConditions.slice(),e,n,r)}function ss(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?",".concat(t.iterator1):"",s=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(o).concat(a).concat(s,"){")+"return ".concat((n||rs)(t,e))+"})"}function cs(t,e){var n="{",r=function(t,e){var n=t.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(c=!0,s+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}return c?s.slice(0,-1)+"]":void 0}}(t,e);r&&(n+=r+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:".concat(hs(t.attrs),",")),t.props&&(n+="domProps:".concat(hs(t.props),",")),t.events&&(n+="".concat(Za(t.events,!1),",")),t.nativeEvents&&(n+="".concat(Za(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(function(t,e,n){var r=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||us(n)})),i=!!t.if;if(!r)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==Ca||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(e).map((function(t){return ls(e[t],n)})).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=ns(n,e.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(t){return"function(){".concat(t,"}")})).join(","),"]}")}}(t,e);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(hs(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function us(t){return 1===t.type&&("slot"===t.tag||t.children.some(us))}function ls(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return as(t,e,ls,"null");if(t.for&&!t.forProcessed)return ss(t,e,ls);var r=t.slotScope===Ca?"":String(t.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(fs(t,e)||"undefined",":undefined"):fs(t,e)||"undefined":rs(t,e),"}"),o=r?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function fs(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return"".concat((r||rs)(a,e)).concat(s)}var c=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(ds(i)||i.ifConditions&&i.ifConditions.some((function(t){return ds(t.block)}))){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(o,e.maybeComponent):0,u=i||ps;return"[".concat(o.map((function(t){return u(t,e)})).join(","),"]").concat(c?",".concat(c):"")}}function ds(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function ps(t,e){return 1===t.type?rs(t,e):3===t.type&&t.isComment?function(t){return"_e(".concat(JSON.stringify(t.text),")")}(t):function(t){return"_v(".concat(2===t.type?t.expression:gs(JSON.stringify(t.text)),")")}(t)}function hs(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],o=gs(i.value);i.dynamic?n+="".concat(i.name,",").concat(o,","):e+='"'.concat(i.name,'":').concat(o,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function gs(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function vs(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),j}}function ys(t){var e=Object.create(null);return function(n,r,i){(r=R({},r)).warn,delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var a=t(n,r),s={},c=[];return s.render=vs(a.render,c),s.staticRenderFns=a.staticRenderFns.map((function(t){return vs(t,c)})),e[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var ms,bs,_s=(ms=function(t,e){var n=Aa(t.trim(),e);!1!==e.optimize&&Ha(n,e);var r=ns(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=R(Object.create(t.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(t,e,n){(n?o:i).push(t)};var s=ms(e.trim(),r);return s.errors=i,s.tips=o,s}return{compile:e,compileToFunctions:ys(e)}})($a).compileToFunctions;function ws(t){return(bs=bs||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',bs.innerHTML.indexOf("&#10;")>0}var Os=!!X&&ws(!1),Es=!!X&&ws(!0),Ss=S((function(t){var e=mr(t);return e&&e.innerHTML})),ks=zn.prototype.$mount;zn.prototype.$mount=function(t,e){if((t=t&&mr(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=_s(r,{outputSourceRange:!1,shouldDecodeNewlines:Os,shouldDecodeNewlinesForHref:Es,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ks.call(this,t,e)},zn.compile=_s}).call(this,n(27),n(142).setImmediate)},function(t,e,n){"use strict";n.d(e,"l",(function(){return r})),n.d(e,"Y",(function(){return i})),n.d(e,"P",(function(){return o})),n.d(e,"O",(function(){return a})),n.d(e,"N",(function(){return s})),n.d(e,"ub",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"m",(function(){return l})),n.d(e,"n",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"s",(function(){return g})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"t",(function(){return m})),n.d(e,"u",(function(){return b})),n.d(e,"db",(function(){return _})),n.d(e,"r",(function(){return w})),n.d(e,"pb",(function(){return O})),n.d(e,"ob",(function(){return E})),n.d(e,"rb",(function(){return S})),n.d(e,"h",(function(){return k})),n.d(e,"j",(function(){return C})),n.d(e,"i",(function(){return T})),n.d(e,"k",(function(){return A})),n.d(e,"f",(function(){return x})),n.d(e,"qb",(function(){return L})),n.d(e,"Q",(function(){return P})),n.d(e,"A",(function(){return R})),n.d(e,"B",(function(){return I})),n.d(e,"cb",(function(){return j})),n.d(e,"X",(function(){return D})),n.d(e,"w",(function(){return N})),n.d(e,"wb",(function(){return M})),n.d(e,"z",(function(){return F})),n.d(e,"vb",(function(){return B})),n.d(e,"Z",(function(){return U})),n.d(e,"K",(function(){return $})),n.d(e,"I",(function(){return q})),n.d(e,"J",(function(){return H})),n.d(e,"bb",(function(){return G})),n.d(e,"hb",(function(){return z})),n.d(e,"ib",(function(){return V})),n.d(e,"kb",(function(){return K})),n.d(e,"lb",(function(){return W})),n.d(e,"jb",(function(){return Y})),n.d(e,"H",(function(){return X})),n.d(e,"S",(function(){return Z})),n.d(e,"fb",(function(){return J})),n.d(e,"gb",(function(){return Q})),n.d(e,"R",(function(){return tt})),n.d(e,"W",(function(){return et})),n.d(e,"V",(function(){return nt})),n.d(e,"U",(function(){return rt})),n.d(e,"T",(function(){return it})),n.d(e,"F",(function(){return ot})),n.d(e,"G",(function(){return at})),n.d(e,"E",(function(){return st})),n.d(e,"ab",(function(){return ct})),n.d(e,"v",(function(){return ut})),n.d(e,"eb",(function(){return lt})),n.d(e,"C",(function(){return ft})),n.d(e,"D",(function(){return dt})),n.d(e,"sb",(function(){return pt})),n.d(e,"tb",(function(){return ht})),n.d(e,"x",(function(){return gt})),n.d(e,"y",(function(){return vt})),n.d(e,"M",(function(){return yt})),n.d(e,"mb",(function(){return mt})),n.d(e,"L",(function(){return bt})),n.d(e,"yb",(function(){return _t})),n.d(e,"xb",(function(){return wt})),n.d(e,"nb",(function(){return Ot})),n.d(e,"o",(function(){return Et})),n.d(e,"q",(function(){return St})),n.d(e,"p",(function(){return kt}));var r="ADD_NOTIFICATION",i="REMOVE_NOTIFICATION",o="NOTIFICATION",a="MENU_POSITION_SUCCESS",s="MENU_INDEX_SUCCESS",c="UPDATE_MENU_SUCCESS",u="ACTIVATE_OVERLAY",l="ADVANCED_PAGE_SETTINGS",f="ADVANCED_TEXT_ITEM_SETTINGS",d="ACTIVATE_EASTER_EGG",p="ACTIVATE_THEME",h="ACTIVATE_INFO_MODAL",g="CLOSE_INFO_MODAL",v="ACTIVATE_MODAL",y="ACTIVATE_MODAL_DATA",m="CLOSE_MODAL",b="CLOSE_MODALS",_="SELECT_SET",w="BACK_MODAL",O="TOGGLE_ORGANIZER",E="TOGGLE_MOBILE_ACTIVE",S="TOGGLE_UNSAVED_CHANGES",k="ACTIVE_COLORPICKER",C="ACTIVE_TEXTEDITOR",T="ACTIVE_SIDEBAR_TEXTEDITOR",A="ACTIVE_TEXTEDITOR_TOOLBAR",x="ACTIVATE_SITE_TAB",L="TOGGLE_UI",P="PAGE_CHANGE",R="DRAGGED_IMAGE",I="DRAGOVER_SET_ID",j="SELECTED_COLOR",D="PREFERENCES_UPDATE_SUCCESS",N="CREATE_SET_SUCCESS",M="UPDATE_SET_SUCCESS",F="DELETE_SET_SUCCESS",B="UPDATE_SET_FIELD",U="REMOVE_SET_IMAGES",$="FETCH_SET_SUCCESS",q="FETCH_SETS_REQUEST",H="FETCH_SETS_SUCCESS",G="RESET_UNSAVED_SITE",z="SET_SITE_ATTRIBUTE",V="SET_SITE_ATTRIBUTES",K="SITE_UPDATE_SUCCESS",W="SOCKET_SITE_VALIDATE_DOMAIN",Y="SITE_REMOVE_DOMAIN_SUCCESS",X="FETCH_PAGE_SUCCES",Z="PAGE_CREATE_SUCCESS",J="SET_PAGE_ATTRIBUTE",Q="SET_PAGE_IMAGE_ATTRIBUTE",tt="PAGE_CREATE_REQUEST",et="PAGE_UPDATE_SUCCESS",nt="PAGE_UPDATE_ATTRIBUTE_SUCCESS",rt="PAGE_PUBLISH_SUCCESS",it="PAGE_DELETE_SUCCESS",ot="FETCH_INDEX_PAGE_REQUEST",at="SOCKET_PAGE_INDEX",st="FETCH_INDEX_PAGE_FAILURE",ct="RESET_UNSAVED_PAGES",ut="CREATE_IMAGE",lt="SET_IMAGE_ATTRIBUTE",ft="FETCH_IMAGES_REQUEST",dt="FETCH_IMAGES_SUCCESS",pt="UPDATE_IMAGE_REQUEST",ht="UPDATE_IMAGE_SUCCESS",gt="DELETE_IMAGE_REQUEST",vt="DELETE_IMAGE_SUCCESS",yt="IMAGE_UPLOADED",mt="SOCKET_IMAGE_STATUS",bt="FETCH_USER_SUCCESS",_t="USER_UPDATE_SUCCESS",wt="UPDATE_SUBCRIPTION_SUCCESS",Ot="SUBSCRIPTION_VALIDATE_COUPON_SUCCESS",Et="ASSET_CREATE_SUCCESS",St="ASSET_UPDATE_FONT",kt="ASSET_DELETE_SUCCESS"},function(t,e,n){"use strict";function r(t){return t.reduce((function(t,e){return t[e]=e,t}),Object.create(null))}n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"h",(function(){return s})),n.d(e,"o",(function(){return c})),n.d(e,"s",(function(){return u})),n.d(e,"t",(function(){return l})),n.d(e,"u",(function(){return f})),n.d(e,"x",(function(){return d})),n.d(e,"y",(function(){return p})),n.d(e,"D",(function(){return h})),n.d(e,"z",(function(){return g})),n.d(e,"A",(function(){return v})),n.d(e,"B",(function(){return y})),n.d(e,"C",(function(){return m})),n.d(e,"i",(function(){return b})),n.d(e,"F",(function(){return _})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return O})),n.d(e,"f",(function(){return E})),n.d(e,"g",(function(){return S})),n.d(e,"j",(function(){return k})),n.d(e,"l",(function(){return C})),n.d(e,"n",(function(){return T})),n.d(e,"p",(function(){return A})),n.d(e,"w",(function(){return x})),n.d(e,"E",(function(){return L})),n.d(e,"m",(function(){return P})),n.d(e,"b",(function(){return R})),n.d(e,"q",(function(){return I})),n.d(e,"r",(function(){return j})),n.d(e,"G",(function(){return D})),n.d(e,"H",(function(){return N})),n.d(e,"v",(function(){return M})),n.d(e,"k",(function(){return F}));var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=r(["Top","Center","Bottom"]),a=r(["Left","Center","Right","Justified"]),s=r(["auto","1:1","5:4","4:3","3:2","16:9","2:1"]),c=(r(["1:1","1:2","2:1","2:3","3:1","3:2","3:4","4:1","4:3","4:5","5:2","5:4","8:3","8:5","9:8","9:16","16:9","32:9"]),r(["photo","video"]),r(["None","Image"])),u=r(["One","Two","Three","Four","Five","Six"]),l=r(["contain","cover","full"]),f=r(["Landscape","Portrait"]),d=r(["Default","S","M","L","Full"]),p=r(["XS","S","M","L","XL"]),h=r(["S","M","L","XL"]),g=r(["S","M","L","Full"]),v=r(["None","S","M","L"]),y=r(["S","M","L"]),m=r(["None","One","Two","Three","Four"]),b=(r(["One","Two"]),y),_=r(["Left","Center","Right"]),w=r(["1/1","1/2"]),O=r(["Equalheight","Contained","Irregular"]),E=r(["Contained","Cover","Rows","Columns","Irregular"]),S=r(["cover","grid","row","slideshow","image"]),k=r(["Grid","Text","Blog"]),C=r(["Blocks","Horizontal","Corner","Vertical"]),T=r(["Text","Image"]),A=r(["link","overlay","page","submenu"]),x=i(i({},r(["text","stacked","index","link"])),S),L=(r(["logo","icon","icon_small","icon_large","font_regular","font_italic","font_bold"]),r(["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid"]),r(["month","year"]),r(["page","menu","design","settings"])),P=r(["none","underline","under"]),R=r(["default","dot","circle","text"]),I=r(["default","panel"]),j=r(["default","error","alert"]),D=r(["arrow","circle"]),N=r(["before","after"]),M=r(["none","facebook","instagram","linkedin","mail","pinterest","twitter"]),F=r(["row","rowReverse","column","columnReverse"])},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=new(n(1).a)},function(t,e,n){"use strict";n.d(e,"F",(function(){return r})),n.d(e,"E",(function(){return i})),n.d(e,"r",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"q",(function(){return s})),n.d(e,"O",(function(){return c})),n.d(e,"P",(function(){return u})),n.d(e,"N",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"o",(function(){return d})),n.d(e,"A",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"u",(function(){return g})),n.d(e,"w",(function(){return v})),n.d(e,"x",(function(){return y})),n.d(e,"y",(function(){return m})),n.d(e,"v",(function(){return b})),n.d(e,"t",(function(){return _})),n.d(e,"e",(function(){return w})),n.d(e,"h",(function(){return O})),n.d(e,"p",(function(){return E})),n.d(e,"z",(function(){return S})),n.d(e,"k",(function(){return k})),n.d(e,"l",(function(){return C})),n.d(e,"c",(function(){return T})),n.d(e,"f",(function(){return A})),n.d(e,"R",(function(){return x})),n.d(e,"s",(function(){return L})),n.d(e,"C",(function(){return P})),n.d(e,"i",(function(){return R})),n.d(e,"Q",(function(){return I})),n.d(e,"m",(function(){return j})),n.d(e,"J",(function(){return D})),n.d(e,"H",(function(){return N})),n.d(e,"I",(function(){return M})),n.d(e,"G",(function(){return F})),n.d(e,"L",(function(){return B})),n.d(e,"K",(function(){return U})),n.d(e,"M",(function(){return $})),n.d(e,"D",(function(){return q})),n.d(e,"B",(function(){return H})),n.d(e,"n",(function(){return G})),n.d(e,"S",(function(){return z})),n.d(e,"U",(function(){return V})),n.d(e,"T",(function(){return K})),n.d(e,"a",(function(){return W})),n.d(e,"b",(function(){return Y}));var r="SOCKET_PUSH",i="SOCKET_NOTIFICATION",o="NOTIFICATION",a="FETCH_IMAGES",s="MOVE_IMAGES",c="UPDATE_IMAGE",u="UPDATE_IMAGE_AND_FETCH",l="UPDATE_COVER_IMAGE",f="DELETE_IMAGE",d="IMAGE_STATUS",p="SET_MENU_POSITION",h="FETCH_PAGE",g="PAGE_CREATE",v="PAGE_UPDATE",y="PAGE_UPDATE_AND_FETCH",m="PAGE_UPDATE_ATTRIBUTE",b="PAGE_PUBLISH",_="PAGE_BATCH_UPDATE",w="DELETE_PAGE",O="FETCH_INDEX_PAGE",E="INDEX_PAGE_CREATE",S="PREFERENCES_UPDATE",k="FETCH_SET",C="FETCH_SETS",T="CREATE_SET",A="DELETE_SET",x="UPDATE_SET",L="ORDER_SET",P="SITE_UPDATE",R="FETCH_MENU",I="UPDATE_MENU",j="FETCH_SUBCRIPTION",D="SUBSCRIPTION_CREATE",N="SUBSCRIPTION_CANCEL",M="SUBSCRIPTION_CHANGE",F="SUBSCRIPTION_BILLING_INFO",B="SUBSCRIPTION_UPDATE_BILLING_INFO",U="SUBSCRIPTION_INVOICES",$="SUBSCRIPTION_VALIDATE_COUPON",q="SITE_VALIDATE_DOMAIN",H="SITE_REMOVE_DOMAIN",G="FETCH_USER",z="USER_UPDATE",V="USER_UPDATE_PASSWORD",K="USER_UPDATE_EMAIL",W="ASSET_CREATE",Y="ASSET_DELETE"},function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return h})),n.d(e,"d",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"e",(function(){return y}));var r="0 0 70 48",i="0 0 32 32",o={account:{svg:'<path d="M5.75 5.02021441C5.75 2.68836826 7.58580926 1 10.0200658 1 12.4141908 1 14.25 2.68836826 14.25 5.02021441 14.25 7.31163174 12.4141908 9 10.0200658 9 7.58580926 9 5.75 7.31163174 5.75 5.02021441M5.2699094 12.4018797C5.53901337 11.3558623 6.60031455 10.5 7.62889319 10.5L12.3711689 10.5C13.3995917 10.5 14.4610488 11.3558623 14.7299969 12.4018797L15.937303 17.0981203C16.2062511 18.1441377 15.5846786 19 14.5564116 19L5.44365053 19C4.41522771 19 3.7936552 18.1441377 4.06275917 17.0981203L5.2699094 12.4018797z"/>'},cross:{svg:'<polygon points="18.043 3.83 11.82 10.052 18.043 16.275 16.275 18.043 10.052 11.82 3.83 18.043 2.063 16.275 8.284 10.052 2.063 3.83 3.83 2.063 10.052 8.284 16.275 2.063"/>'},crossSmall:{svg:'<polygon points="16.92 5.199 12.12 9.998 16.937 14.815 14.815 16.937 9.999 12.12 5.182 16.937 3.061 14.815 7.877 9.998 3.077 5.199 5.199 3.077 9.999 7.877 14.799 3.077"/>'},info:{svg:'<path d="M12.25,6 L12.25,20 L7.75,20 L7.75,6 L12.25,6 Z M9.98604061,0 C11.5494924,0 12.75,1.12432432 12.75,2.61405405 C12.75,4.10378378 11.5494924,5.2 9.98604061,5.2 C8.42258883,5.2 7.25,4.10378378 7.25,2.61405405 C7.25,1.12432432 8.42258883,0 9.98604061,0 Z"/>'},play:{svg:'<polygon points="20 10 0 20 0 0"/>'},organizer:{svg:'<polygon points="2.5 4.15 2.5 6.15 17.5 6.15 17.5 4.15"/>\n    <polygon points="4.5 .95 4.5 2.95 15.5 2.95 15.5 .95"/>\n    <path d="M19,7.45 L19,18.95 L1,18.95 L1,7.45 L19,7.45 Z M17,9.45 L3,9.45 L3,16.95 L17,16.95 L17,9.45 Z"/>'},plus:{svg:'<polygon points="11.25 2 11.25 8.75 18 8.75 18 11.25 11.25 11.25 11.25 18 8.75 18 8.75 11.25 2 11.25 2 8.75 8.75 8.75 8.75 2"/>'},arrowUp:{svg:'<polygon points="17.5 15 10 5 2.5 15"/>'},arrowDown:{svg:'<polygon points="17.5 5 10 15 2.5 5"/>'},arrowLeft:{svg:'<polygon points="15 2.5 5 10 15 17.5"/>'},arrowRight:{svg:'<polygon points="5 17.5 15 10 5 2.5"/>'},hyperLink:{svg:'<polygon class="hyperlink" points="17.5 2.5 17.5 10 15.5 10 15.5 5.91 8.304 13.107 6.89 11.692 14.082 4.5 10 4.5 10 2.5"/>\n    <polygon points="17.5 17.5 2.5 17.5 2.5 2.5 7.5 2.5 7.5 4.5 4.5 4.5 4.5 15.5 15.5 15.5 15.5 12.5 17.5 12.5"/>'},verticalDots:{svg:'<rect width="3" height="3" x="8.5" y="2.5"/>\n    <rect width="3" height="3" x="8.5" y="8.5"/>\n    <rect width="3" height="3" x="8.5" y="14.5"/>'},home:{svg:'<polygon points="10 3 10.73 3.75 16 8.611 16 17 11.8 17 11.8 11 8.3 11 8.3 17 4 17 4 8.611 9.165 3.75"/>'},pencil:{svg:'<path d="M17.0547204,5.98305212 C17.3706488,5.66712378 17.3706488,5.15677799 17.0547204,4.84084965 L15.1591503,2.94527959 C14.843222,2.62935125 14.3328762,2.62935125 14.0169479,2.94527959 L12.5345149,4.42771259 L15.5722874,7.46548512 L17.0547204,5.98305212 Z"/>\n    <polygon points="2.708 14.254 2.708 17.292 5.746 17.292 14.706 8.332 11.668 5.294"/>'},questionMark:{svg:'<path d="M11.125,14.76 L11.125,17 L8.875,17 L8.875,14.76 L11.125,14.76 Z M10,3 C12.48625,3 14.5,5.0048 14.5,7.48 C14.5,10.28 11.125,10.56 11.125,13.08 L8.875,13.08 C8.875,9.44 12.25,9.72 12.25,7.48 C12.25,6.248 11.2375,5.24 10,5.24 C8.7625,5.24 7.75,6.248 7.75,7.48 L5.5,7.48 C5.5,5.0048 7.51375,3 10,3 Z"/>'},color:{svg:'<path d="M14.0116535 10.4376225L6.14885664 2.60416667 4.9087511 3.83964461 7.00197889 5.92506127 2.47251539 10.4376225C1.95360598 10.9545956 1.95360598 11.7870098 2.47251539 12.2952206L7.30980651 17.1144608C7.56486368 17.3685662 7.90787159 17.5 8.24208443 17.5 8.57629727 17.5 8.91930519 17.3685662 9.17436236 17.1144608L14.0116535 12.2952206C14.5305629 11.7870098 14.5305629 10.9545956 14.0116535 10.4376225L14.0116535 10.4376225zM4.02924362 11.3664216L8.24208443 7.16930147 12.4549252 11.3664216 4.02924362 11.3664216zM16.1576517 12.6807598C16.1576517 12.6807598 14.3986368 14.5821691 14.3986368 15.747549 14.3986368 16.7113971 15.1901935 17.5 16.1576517 17.5 17.1251099 17.5 17.9166667 16.7113971 17.9166667 15.747549 17.9166667 14.5821691 16.1576517 12.6807598 16.1576517 12.6807598z"/>'}},a={bold:{svg:'<path d="M5.10416667,3.33333333 L11.0392442,3.33333333 C13.1758721,3.33333333 14.8376938,4.99047619 14.8376938,7.14285714 C14.8376938,8.11428571 14.1919574,9.16190476 13.2708333,9.8 C14.4958333,10.3714286 15.3125,11.6095238 15.3125,13.0571429 C15.3125,14.9834101 13.8717769,16.5618255 11.9800748,16.6616543 L11.789438,16.6666667 L5.10416667,16.6666667 L5.10416667,3.33333333 Z M11.2708333,11.4583333 L7.91666667,11.4583333 L7.91666667,14.2708333 L11.2708333,14.2708333 C12.06625,14.2708333 12.7083333,13.6427083 12.7083333,12.8645833 C12.7083333,12.1322304 12.1395675,11.5327494 11.4095098,11.4647563 L11.2708333,11.4583333 Z M10.7638889,5.72916667 L7.91666667,5.72916667 L7.91666667,8.54166667 L10.7638889,8.54166667 C11.5516204,8.54166667 12.1875,7.91354167 12.1875,7.13541667 C12.1875,6.35729167 11.5516204,5.72916667 10.7638889,5.72916667 Z"/>'},italic:{svg:'<polygon points="8.08 3.333 8.08 6.19 10.185 6.19 6.928 13.81 4.271 13.81 4.271 16.667 11.89 16.667 11.89 13.81 9.785 13.81 13.042 6.19 15.699 6.19 15.699 3.333"/>'},underline:{svg:'<path d="M15.8333333,16.6666667 L15.8333333,18.3333333 L4.16666667,18.3333333 L4.16666667,16.6666667 L15.8333333,16.6666667 Z M7.08333333,3.33333333 L7.08333333,10 C7.08333333,11.6083333 8.39166667,12.9166667 10,12.9166667 C11.5508929,12.9166667 12.8228316,11.7001169 12.9117062,10.1711275 L12.9166667,10 L12.9166667,3.33333333 L15,3.33333333 L15,10 C15,12.7583333 12.7583333,15 10,15 C7.31425439,15 5.11834026,12.8747634 5.00462577,10.2166583 L5,10 L5,3.33333333 L7.08333333,3.33333333 Z"/>'},link:{svg:'<path d="M9.0625,5.41666667 L9.0625,7.15833333 L5.40509259,7.15833333 C3.84155093,7.15833333 2.57060185,8.4325 2.57060185,10 C2.57060185,11.5094444 3.74914996,12.7468816 5.23261953,12.836473 L5.40509259,12.8416667 L9.0625,12.8416667 L9.0625,14.5833333 L5.40509259,14.5833333 C2.88148148,14.5833333 0.833333333,12.53 0.833333333,10 C0.833333333,7.54228571 2.7661164,5.53438912 5.18998415,5.42165846 L5.40509259,5.41666667 L9.0625,5.41666667 Z M10.9375,5.41666667 L14.5949074,5.41666667 C17.1185185,5.41666667 19.1666667,7.47 19.1666667,10 C19.1666667,12.4577143 17.2338836,14.4656109 14.8100159,14.5783415 L14.5949074,14.5833333 L10.9375,14.5833333 L10.9375,12.8416667 L14.5949074,12.8416667 C16.1584491,12.8416667 17.4293981,11.5675 17.4293981,10 C17.4293981,8.49055556 16.25085,7.25311843 14.7673805,7.16352699 L14.5949074,7.15833333 L10.9375,7.15833333 L10.9375,5.41666667 L14.5949074,5.41666667 L10.9375,5.41666667 Z M13.6458333,9.0625 L13.6458333,10.9375 L6.35416667,10.9375 L6.35416667,9.0625 L13.6458333,9.0625 Z"/>'},color:o.color,clear:{svg:'<path d="M13,3 L13,5.5 L8.25,5.5 L8.25,17 L5.75,17 L5.75,5.5 L1,5.5 L1,3 L13,3 Z M17.3756115,9.57165043 L18.4362716,10.6323106 L15.7846212,13.283961 L18.4362716,15.9356115 L17.3756115,16.9962716 L14.723961,14.3446212 L12.0723106,16.9962716 L11.0116504,15.9356115 L13.6633009,13.283961 L11.0116504,10.6323106 L12.0723106,9.57165043 L14.723961,12.2233009 L17.3756115,9.57165043 Z"/>'}},s={center:{svg:'<path d="M19,16 L19,18 L1,18 L1,16 L19,16 Z M15,9 L15,11 L5,11 L5,9 L15,9 Z M19,2 L19,4 L1,4 L1,2 L19,2 Z"/>'},left:{svg:'<path d="M13,16 L13,18 L1,18 L1,16 L13,16 Z M11,9 L11,11 L1,11 L1,9 L11,9 Z M19,2 L19,4 L1,4 L1,2 L19,2 Z"/>'},justify:{svg:'<path d="M19,16 L19,18 L1,18 L1,16 L19,16 Z M19,9 L19,11 L1,11 L1,9 L19,9 Z M19,2 L19,4 L1,4 L1,2 L19,2 Z"/>'},right:{svg:'<path d="M19,16 L19,18 L7,18 L7,16 L19,16 Z M19,9 L19,11 L9,11 L9,9 L19,9 Z M19,2 L19,4 L1,4 L1,2 L19,2 Z"/>'}},c={Left:s.left,Center:s.center,Right:s.right},u={textBlock:{svg:'<path d="M70,25.5 L70,48 L0,48 L0,25.5 L70,25.5 Z M26.6666667,28.9615385 L13.3333333,44.5384615 L52,44.5384615 L42,34.1538462 L36.235,40.14 L26.6666667,28.9615385 Z M53,27.2307692 C50.9749559,27.2307692 49.3333333,28.9355311 49.3333333,31.0384615 C49.3333333,33.1413919 50.9749559,34.8461538 53,34.8461538 C55.0250441,34.8461538 56.6666667,33.1413919 56.6666667,31.0384615 C56.6666667,28.9355311 55.0250441,27.2307692 53,27.2307692 Z M70,0 L70,22.5 L0,22.5 L0,0 L70,0 Z M54.0091815,17.3076923 L13.3333333,17.3076923 L13.3333333,19.0384615 L54.0091815,19.0384615 L54.0091815,17.3076923 Z M48.198346,13.8461538 L13.3333333,13.8461538 L13.3333333,15.5769231 L48.198346,15.5769231 L48.198346,13.8461538 Z M56.6666667,10.3846154 L13.3333333,10.3846154 L13.3333333,12.1153846 L56.6666667,12.1153846 L56.6666667,10.3846154 Z M41.3333333,3.46153846 L13.3333333,3.46153846 L13.3333333,5.19230769 L41.3333333,5.19230769 L41.3333333,3.46153846 Z"/>',viewbox:r},image:{svg:'<path d="M70,0 L70,48 L0,48 L0,0 L70,0 Z M26,4.8 L3.33333333,44.5714286 L66.6666667,44.5714286 L44,17.1428571 L37.5093333,24.9955714 L26,4.8 Z M59.1821625,3.42857143 C55.048585,3.42857143 51.6976584,6.87523883 51.6976584,11.1269185 C51.6976584,15.3785982 55.048585,18.8252656 59.1821625,18.8252656 C63.31574,18.8252656 66.6666667,15.3785982 66.6666667,11.1269185 C66.6666667,6.87523883 63.31574,3.42857143 59.1821625,3.42857143 Z"/>',viewbox:r},slideshow:{svg:'<path d="M60,4 L60,44 L9,44 L9,4 L60,4 Z M64,19 L70,24 L64,29 L64,19 Z M6,19 L6,29 L0,24 L6,19 Z"/>',viewbox:r},grid:{svg:'<path d="M45.6599998,25.5 L45.6599998,48 L24.3299999,48 L24.3299999,25.5 L45.6599998,25.5 Z M69.9999981,25.5 L69.9999981,48 L48.6699982,48 L48.6699982,25.5 L69.9999981,25.5 Z M21.3299999,25.5 L21.3299999,48 L1.77635684e-15,48 L1.77635684e-15,25.5 L21.3299999,25.5 Z M21.3299999,0 L21.3299999,22.5 L1.77635684e-15,22.5 L1.77635684e-15,0 L21.3299999,0 Z M45.6599998,0 L45.6599998,22.5 L24.3299999,22.5 L24.3299999,0 L45.6599998,0 Z M69.9999981,0 L69.9999981,22.5 L48.6699982,22.5 L48.6699982,0 L69.9999981,0 Z"/>',viewbox:r},gridColumns:{svg:'<path d="M45.6599998,0 L45.6599998,48 L24.3299999,48 L24.3299999,0 L45.6599998,0 Z M21,0.0112498696 L21,47.9887501 L0,47.9887501 L0,0.0112498696 L21,0.0112498696 Z M69.9999981,0 L69.9999981,45 L48.6699982,45 L48.6699982,0 L69.9999981,0 Z"/>',viewbox:r},gridContained:{svg:'<path d="M69.9999981,25.5 L69.9999981,48 L48.6699982,48 L48.6699982,25.5 L69.9999981,25.5 Z M21.3299999,25.5 L21.3299999,48 L1.77635684e-15,48 L1.77635684e-15,25.5 L21.3299999,25.5 Z M45.6599998,25.5 L45.6599998,36.75 L24.3299999,36.75 L24.3299999,25.5 L45.6599998,25.5 Z M69.9999981,0 L69.9999981,22.5 L48.6699982,22.5 L48.6699982,0 L69.9999981,0 Z M21.3299999,0 L21.3299999,11.25 L1.77635684e-15,11.25 L1.77635684e-15,0 L21.3299999,0 Z M45.6599998,0 L45.6599998,11.25 L24.3299999,11.25 L24.3299999,0 L45.6599998,0 Z"/>',viewbox:r},gridIrregular:{svg:'<path d="M70,28 L70,48 L50,48 L50,28 L70,28 Z M14,33 L14,48 L0,48 L0,33 L14,33 Z M39,22 L39,41 L24,41 L24,22 L39,22 Z M18,0 L18,18 L0,18 L0,0 L18,0 Z M58,0 L58,16 L43,16 L43,0 L58,0 Z"/>',viewbox:r},gridRows:{svg:'<path d="M63,34 L63,48 L0,48 L0,34 L63,34 Z M70,17 L70,31 L0,31 L0,17 L70,17 Z M70,5.32907052e-15 L70,14 L0,14 L0,5.32907052e-15 L70,5.32907052e-15 Z"/>',viewbox:r},text:{svg:'<path d="M55.4548571,0 L55.4548571,48 L14,48 L14,0 L55.4548571,0 Z M48.9090286,39.2729143 L18.3638857,39.2729143 L18.3638857,41.4548571 L48.9090286,41.4548571 L48.9090286,39.2729143 Z M47.8180571,33.8180571 L18.3638857,33.8180571 L18.3638857,36 L47.8180571,36 L47.8180571,33.8180571 Z M48.9090286,28.3638857 L18.3638857,28.3638857 L18.3638857,30.5451429 L48.9090286,30.5451429 L48.9090286,28.3638857 Z M48.9090286,22.9090286 L18.3638857,22.9090286 L18.3638857,25.0909714 L48.9090286,25.0909714 L48.9090286,22.9090286 Z M48.9090286,17.4548571 L18.3638857,17.4548571 L18.3638857,19.6361143 L48.9090286,19.6361143 L48.9090286,17.4548571 Z M41.2729143,6.54514286 L18.3632,6.54514286 L18.3638857,8.72708571 L41.2729143,8.72708571 L41.2729143,6.54514286 Z"/>',viewbox:r},oneColumn:{svg:'<polygon points="32 0 32 48 0 48 0 0"/>',viewbox:r},twoColumns:{svg:'<path d="M32,0 L32,48 L0,48 L0,0 L32,0 Z M70,0 L70,48 L38,48 L38,0 L70,0 Z"/>',viewbox:r},wideColumn:{svg:'<polygon points="70 0 70 48 0 48 0 0"/>',viewbox:r},link:{svg:'<path d="M57,24.0556598 C57.0026243,22.9516328 56.0927338,22.0462068 54.9780153,22.043602 L49.1660578,22.0328482 C48.7718042,20.0691228 47.8032522,18.3245793 46.4348566,16.9628979 C44.6858163,15.2224395 42.2382286,14.0626948 39.6319215,14.0195891 L30.7415672,14 C25.8602203,13.9858105 21.779242,17.4134787 20.83493,21.9701799 L15.0229724,21.9594261 C13.9082539,21.9568213 13.0026437,22.8495233 13,23.9535503 C12.997985,24.5055621 13.2223091,25.0050923 13.5868349,25.3678295 C13.9513607,25.7305667 14.4546642,25.9550939 15.0127371,25.956398 L20.8246947,25.9671518 C21.2189482,27.9308772 22.1960438,29.6839224 23.5644394,31.0456038 C25.3265514,32.7990697 27.9064407,33.9819325 30.6939506,33.9884462 L39.2491852,34 C44.1305321,34.0141895 48.2115104,30.5865213 49.1558225,26.0298201 L54.9763236,26.0490756 C56.091754,26.0523888 56.9973643,25.1596868 57,24.0556598 Z M43.5447801,28.2565813 C42.3988184,29.3862089 40.8758353,30.0060542 39.2587086,30.0022926 L30.7034739,29.9907658 C29.0834992,29.9841531 27.5065292,29.3005194 26.4257672,28.2250603 C25.7807274,27.5831855 25.3229733,26.8116958 25.0266485,25.9797979 L29.2258958,25.9302386 C30.3406143,25.9328434 31.2462245,25.0401414 31.2488546,23.9361144 C31.3112896,22.8915989 30.4099426,21.9946746 29.2952242,21.9920698 L25.0361718,21.9821175 C25.3307476,21.1516003 25.7950202,20.3850924 26.4459723,19.7434187 C27.5919341,18.6137911 29.1149171,17.9939458 30.7320439,17.9977246 L39.2360171,17.9582243 C40.8531439,17.9620031 42.4329618,18.6484707 43.5735288,19.7834413 C44.2185686,20.4253161 44.6741868,21.1946804 44.9697997,22.0258699 L40.6236755,22.0185414 C39.508957,22.0159366 38.6033468,22.9086386 38.6007167,24.0126656 C38.5994001,24.5653859 38.8237241,25.0649161 39.1882499,25.4276533 C39.5499279,25.7875566 40.0539434,26.0127923 40.6113043,26.0133879 L44.9545806,26.0178825 C44.6933683,26.7567497 44.2969495,27.4439222 43.7548968,28.0381733 L43.5447801,28.2565813 Z"/>',viewbox:r},subMenu:{svg:'<path d="M66.6666667,32.3333333 L66.6666667,35 L16.6666667,35 L16.6666667,32.3333333 L66.6666667,32.3333333 Z M66.6666667,26 L66.6666667,28.6666667 L16.6666667,28.6666667 L16.6666667,26 L66.6666667,26 Z M66.6666667,19.6666667 L66.6666667,22.3333333 L16.6666667,22.3333333 L16.6666667,19.6666667 L66.6666667,19.6666667 Z M43.3333333,11.6666667 L43.3333333,14.3333333 L3.33333333,14.3333333 L3.33333333,11.6666667 L43.3333333,11.6666667 Z"/>',viewbox:r},row:{svg:'<path d="M24.5 12.5h21.33V35H24.5zM49 17.75h21.33v12.5H49zM0 15.25h21.33v17.5H0z"/>',viewbox:r},rowEqualheight:{svg:'<path d="M70,14 L70,35 L49,35 L49,14 L70,14 Z M21,14 L21,35 L0,35 L0,14 L21,14 Z M46,14 L46,35 L24,35 L24,14 L46,14 Z"/>',viewbox:r},rowContained:{svg:'<path d="M24.5 12.5h21.33V35H24.5zM49 17.75h21.33v12.5H49zM0 15.25h21.33v17.5H0z"/>',viewbox:r},rowEquaIrregular:{svg:'<path d="M0 25.5h21.33V48H0zM24.5 0h21.33v12.5H24.5zM49 17h21.33v17.5H49z"/>',viewbox:r},snake:{svg:'<path fill="#ffea00" stroke="none" d="M58 0h12v12H58z"/>\n    <path fill="#3951a7" stroke="none" d="M0 0h12v48H0z"/>\n    <path fill="#3951a7" stroke="none" d="M0 0h46v12H0z"/>',viewbox:r}},l={One:u.oneColumn,Two:u.twoColumns},f={Contained:u.gridContained,Cover:u.grid,Rows:u.gridRows,Columns:u.gridColumns,Irregular:u.gridIrregular},d={Equalheight:u.rowEqualheight,Contained:u.rowContained,Irregular:u.rowEquaIrregular},p={circle:{svg:'<path d="M10,3 C6.13400675,3 3,6.13400675 3,10 C3,13.8659932 6.13400675,17 10,17 C13.8659932,17 17,13.8659932 17,10 C17,6.13400675 13.8659932,3 10,3 Z"/>'},arrow:o.arrowDown},h={snake:u.snake},g={arrowLeft:{svg:'<polygon points="0 10 10.594 0 12 1.327 2.812 10 12 18.673 10.594 20"/>'},arrowRight:{svg:'<polygon points="20 10 9.406 20 8 18.673 17.188 10 8 1.327 9.406 0"/>'},arrowDown:{svg:'<polygon points="10 16 0 5.406 1.327 4 10 13.188 18.673 4 20 5.406"/>'},arrowUp:{svg:'<polygon points="10 4 20 14.594 18.673 16 10 6.812 1.327 16 0 14.594"/>'},readMore:{svg:'<path d="M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z" />'}},v={maximize:{svg:'<path d="M6,20 L6,26 L12,26 L12,30 L2,30 L2,20 L6,20 Z M30,2 L30,12 L26,12 L26,6 L20,6 L20,2 L30,2 Z"/>',viewbox:i},minimize:{svg:'<path d="M14,18 L14,28 L10,28 L10.001,22 L4,22 L4,18 L14,18 Z M22,4 L22,10 L28,10 L28,14 L18,14 L18,4 L22,4 Z"/>',viewbox:i},play:{svg:'<polygon points="32 16 0 32 0 0"/>',viewbox:i},pause:{svg:'<path d="M28,3 L28,29 L21,29 L21,3 L28,3 Z M11,3 L11,29 L4,29 L4,3 L11,3 Z"/>',viewbox:i},volume:{svg:'<polygon points="27 2 27 30 17.571 24 5 24 5 8 17.571 8"/>',viewbox:i},muted:{svg:'<path d="M26.9996476,11.469 L27,30 L17.571,24 L7.70364764,24 L26.9996476,11.469 Z M27,2 L26.9996476,7.892 L4.99964764,22.179 L5,8 L17.571,8 L27,2 Z"/>',viewbox:i}},y={none:o.cross,facebook:{svg:'<path d="M19.9984167,9.99925 C19.9984167,4.4768 15.5216667,0 9.99925,0 C4.4768,0 0,4.4768 0,9.99925 C0,14.9901667 3.21974167,19.2498333 8,20 L8,13 L6,13 L6,10 L8,10 L7.98836488,8.82063038 C7.98836488,6.31457205 9.41025262,4.10609651 11.6942526,4.10609651 C12.7882526,4.10609651 14,4.5 14,4.5 L14,6.82063038 L12.7371748,6.82063038 C11.4950082,6.82063038 10.9883649,7.62994277 10.9883649,8.4207011 L11,10 L14,10 L13.5,13 L11,13 L11,20 C15.7803333,19.2498333 19.9984167,14.9901667 19.9984167,9.99925 Z"/>'},instagram:{svg:'<path d="M14,0 L6,0 C2.6862915,0 0,2.6862915 0,6 L0,14 C0,17.3137085 2.6862915,20 6,20 L14,20 C17.3137085,20 20,17.3137085 20,14 L20,6 C20,2.6862915 17.3137085,0 14,0 Z M6,2 L14,2 C16.209139,2 18,3.790861 18,6 L18,14 C18,16.209139 16.209139,18 14,18 L6,18 C3.790861,18 2,16.209139 2,14 L2,6 C2,3.790861 3.790861,2 6,2 Z"/>\n    <path d="M5.98054824 7.97696152C5.10777241 9.71097185 5.44540904 11.8092205 6.81809427 13.1819057 8.1907795 14.554591 10.2890281 14.8922276 12.0230385 14.0194518 13.7570488 13.1466759 14.7358714 11.2602634 14.4511192 9.33999113 14.1603606 7.37921453 12.6207855 5.83963937 10.6600089 5.54888084 8.73973659 5.26412859 6.85332406 6.24295119 5.98054824 7.97696152zM10.37303 7.4841685C11.4812951 7.64851028 12.3514897 8.51870494 12.5158315 9.62696997 12.6767784 10.7123413 12.1235309 11.7785744 11.1434381 12.2718825 10.1633453 12.7651906 8.97737864 12.5743525 8.20151308 11.7984869 7.42564752 11.0226214 7.23480942 9.83665473 7.72811749 8.85656193 8.22142557 7.87646914 9.28765874 7.32322158 10.37303 7.4841685zM14.959 4.05C15.5112847 4.05 15.959 4.49771525 15.959 5.05 15.959 5.56283584 15.5729598 5.98550716 15.0756211 6.04327227L14.959 6.05C14.3977153 6.05 13.95 5.60228475 13.95 5.05 13.95 4.53716416 14.3360402 4.11449284 14.8333789 4.05672773L14.959 4.05z"/>'},linkedin:{svg:'<path d="M17.0391667,17.0433333 L14.0775,17.0433333 L14.0775,12.4025 C14.0775,11.2958333 14.055,9.87166667 12.5341667,9.87166667 C10.99,9.87166667 10.7541667,11.0758333 10.7541667,12.3208333 L10.7541667,17.0433333 L7.7925,17.0433333 L7.7925,7.5 L10.6375,7.5 L10.6375,8.80083333 L10.6758333,8.80083333 C11.0733333,8.05083333 12.04,7.25916667 13.4841667,7.25916667 C16.485,7.25916667 17.04,9.23416667 17.04,11.805 L17.04,17.0433333 L17.0391667,17.0433333 Z M4.4475,6.19416667 C3.49416667,6.19416667 2.72833333,5.4225 2.72833333,4.47333333 C2.72833333,3.525 3.495,2.75416667 4.4475,2.75416667 C5.3975,2.75416667 6.1675,3.525 6.1675,4.47333333 C6.1675,5.4225 5.39666667,6.19416667 4.4475,6.19416667 Z M5.9325,17.0433333 L2.9625,17.0433333 L2.9625,7.5 L5.9325,7.5 L5.9325,17.0433333 Z M18.5208333,0 L1.47583333,0 C0.66,0 0,0.645 0,1.44083333 L0,18.5591667 C0,19.3558333 0.66,20 1.47583333,20 L18.5183333,20 C19.3333333,20 20,19.3558333 20,18.5591667 L20,1.44083333 C20,0.645 19.3333333,0 18.5183333,0 L18.5208333,0 Z"/>'},mail:{svg:'<path d="M20,4.863 L20,18 L-0.000125496954,18 L-0.000125496954,4.864 L7.87867966,12.7427849 C9.05025253,13.9143578 10.9497475,13.9143578 12.1213203,12.7427849 L20,4.863 Z M20,2 L20,2.035 L10.7071068,11.3285713 C10.3165825,11.7190956 9.68341751,11.7190956 9.29289322,11.3285713 L-0.000125496954,2.035 L-0.000125496954,2 L20,2 Z"/>'},pinterest:{svg:'<path d="M10.0141667,0 C4.49666667,0 0.0241666667,4.4725 0.0241666667,9.98916667 C0.0241666667,14.2216667 2.65583333,17.8366667 6.3725,19.2908333 C6.285,18.5 6.20666667,17.2883333 6.40666667,16.425 C6.58916667,15.6441667 7.57833333,11.4608333 7.57833333,11.4608333 C7.57833333,11.4608333 7.27916667,10.8608333 7.27916667,9.97666667 C7.27916667,8.59083333 8.085,7.55083333 9.08583333,7.55083333 C9.93916667,7.55083333 10.3508333,8.19166667 10.3508333,8.9575 C10.3508333,9.815 9.80666667,11.0966667 9.52416667,12.2841667 C9.28666667,13.2783333 10.0241667,14.0883333 11.0033333,14.0883333 C12.7766667,14.0883333 14.1433333,12.2175 14.1433333,9.51583333 C14.1433333,7.13166667 12.4241667,5.45833333 9.97,5.45833333 C7.12833333,5.45833333 5.4625,7.59333333 5.4625,9.79083333 C5.4625,10.6516667 5.79083333,11.5766667 6.20333333,12.075 C6.28583333,12.175 6.29666667,12.2625 6.27416667,12.3625 C6.19916667,12.675 6.03,13.3616667 5.99583333,13.4983333 C5.95166667,13.6858333 5.8525,13.7241667 5.66166667,13.6358333 C4.41583333,13.0608333 3.63416667,11.2375 3.63416667,9.76416667 C3.63416667,6.6175 5.92416667,3.72083333 10.2341667,3.72083333 C13.6991667,3.72083333 16.3941667,6.19333333 16.3941667,9.49 C16.3941667,12.9358333 14.2216667,15.7083333 11.2,15.7083333 C10.1883333,15.7083333 9.23833333,15.1841667 8.90166667,14.5591667 L8.2775,16.9325 C8.05333333,17.8033333 7.44083333,18.8925 7.02916667,19.5541667 C7.965,19.8416667 8.95083333,20 9.9875,20 C15.4933333,20 19.975,15.5291667 19.975,10.0108333 C19.975,4.49166667 15.4933333,0.0216666667 9.9875,0.0216666667 L10.0141667,0 Z"/>'},twitter:{svg:'<path d="M19.1632,4.0552 C18.4552,4.3664 17.6992,4.5784 16.9032,4.6752 C17.7144,4.1864 18.3384,3.416 18.6336,2.4968 C17.8728,2.9408 17.0296,3.264 16.132,3.444 C15.4152,2.6768 14.3936,2.1968 13.2592,2.1968 C11.0856,2.1968 9.3232,3.9592 9.3232,6.1304 C9.3232,6.4424 9.3592,6.7424 9.4248,7.0296 C6.1528,6.8752 3.2528,5.304 1.312,2.9288 C0.9704,3.5064 0.7792,4.1776 0.7792,4.9088 C0.7792,6.2768 1.4752,7.4792 2.5296,8.1856 C1.884,8.1648 1.2768,7.9872 0.7472,7.6928 L0.7472,7.7416 C0.7472,9.6496 2.1016,11.2408 3.904,11.6032 C3.5736,11.692 3.2248,11.74 2.8672,11.74 C2.616,11.74 2.3752,11.716 2.1344,11.6712 C2.6392,13.2336 4.0904,14.3728 5.8176,14.4048 C4.4736,15.46 2.7704,16.0888 0.936,16.0888 C0.624,16.0888 0.3128,16.0704 0,16.0352 C1.7512,17.1504 3.8144,17.8024 6.0456,17.8024 C13.2888,17.8024 17.2448,11.8056 17.2448,6.6136 C17.2448,6.4464 17.2448,6.2776 17.2328,6.1096 C18.0016,5.5584 18.6728,4.8616 19.2008,4.0712 L19.1632,4.0552 Z"/>'}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return c}));var r=n(1),i=function(t,e,n,r){return e?r.pages.find((function(e){return e.id===t})):n.getters.getPageById(t)},o=function(t){return"viewer"===r.a.prototype.$myrouter.currentRoute.name?"viewer":t},a=function(t,e,n){var r="Default"===t?e.contentSize:t;return"viewer"===o(n.type)?r:function(t,e){if(e)return e.contentSizeTypeText?e.contentTextSize:t}(r,n)},s=function(t){switch(o(null==t?void 0:t.type)){case"grid":case"index":return t.contentSize;case"row":return t.horizontalscrollSize;default:return t.slideshowSize}},c=function(t,e){var n=t.backgroundColor,r=e.backgroundColor,i=e.showContentBackground;return""+(n?r!==n&&i:i)}},function(t,e,n){"use strict";function r(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,a){return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,a,s){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,a,s,c){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,a,s,c,u){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,a,s,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function i(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function o(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function a(t){return function e(n){return 0===arguments.length||o(n)?e:t.apply(this,arguments)}}function s(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return o(n)?e:a((function(e){return t(n,e)}));default:return o(n)&&o(r)?e:o(n)?a((function(e){return t(e,r)})):o(r)?a((function(e){return t(n,e)})):t(n,r)}}}function c(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return o(n)?e:s((function(e,r){return t(n,e,r)}));case 2:return o(n)&&o(r)?e:o(n)?s((function(e,n){return t(e,r,n)})):o(r)?s((function(e,r){return t(n,e,r)})):a((function(e){return t(n,r,e)}));default:return o(n)&&o(r)&&o(i)?e:o(n)&&o(r)?s((function(e,n){return t(e,n,i)})):o(n)&&o(i)?s((function(e,n){return t(e,r,n)})):o(r)&&o(i)?s((function(e,r){return t(n,e,r)})):o(n)?a((function(e){return t(e,r,i)})):o(r)?a((function(e){return t(n,e,i)})):o(i)?a((function(e){return t(n,r,e)})):t(n,r,i)}}}n.d(e,"b",(function(){return w})),n.d(e,"f",(function(){return S})),n.d(e,"c",(function(){return k})),n.d(e,"h",(function(){return C})),n.d(e,"e",(function(){return x})),n.d(e,"g",(function(){return L})),n.d(e,"a",(function(){return P})),n.d(e,"d",(function(){return R}));var u=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},l=a((function(t){return!!u(t)||!!t&&"object"==typeof t&&!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))})),f=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),d=s((function(t,e){return r(t.length,(function(){return t.apply(e,arguments)}))}));function p(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function h(t,e,n,r){return t["@@transducer/result"](n[r](d(t["@@transducer/step"],t),e))}var g="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";var v=c((function(t,e,n){if("function"==typeof t&&(t=function(t){return new f(t)}(t)),l(n))return function(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return h(t,e,n,"fantasy-land/reduce");if(null!=n[g])return p(t,e,n[g]());if("function"==typeof n.next)return p(t,e,n);if("function"==typeof n.reduce)return h(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}));function y(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return u(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var m=a(y("tail",c(y("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})))(1,1/0)));function b(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,v(i,arguments[0],m(arguments)))}var _=n(16),w=b(_.a.convert,_.a.invert,_.a.toCss),O=b(_.a.transparentizeFromString,_.a.toCss),E=(b(_.a.darken,_.a.toCss),b(_.a.brighten,_.a.toCss),function(t,e,n){return"linear-gradient("+e+"deg, "+n.map((function(e){return O(t,e.alpha)+" "+e.position})).join(",")+")"}),S=function(t){return O(t,1)},k=function(t,e,n){return{backgroundImage:E(t,e,n)}},C=function(t){return.01*(100-t)},T=function(t,e){return e?w(t):t},A=function(t){var e=t.layout,n=t.showContentBackground;return"Corner"!==e&&n},x=function(t){var e=t.layout,n=t.showContentBackground,r=t.contentBackgroundColor,i=t.backgroundColor;return A({layout:e,showContentBackground:n})?r:i},L=function(t){var e=t.layout,n=t.showContentBackground,r=t.contentTextColor,i=t.textColor;return A({layout:e,showContentBackground:n})?r:i},P=function(t,e,n){return O(T(t,e),n||1)},R=function(t,e,n){return t?O(T(t,e),n?C(n):1):""}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return B})),n.d(e,"e",(function(){return H})),n.d(e,"f",(function(){return Y.a})),n.d(e,"g",(function(){return X.a})),n.d(e,"h",(function(){return rt})),n.d(e,"i",(function(){return Z.a})),n.d(e,"j",(function(){return ut})),n.d(e,"k",(function(){return gt})),n.d(e,"l",(function(){return St})),n.d(e,"m",(function(){return Lt})),n.d(e,"n",(function(){return Pt.a})),n.d(e,"o",(function(){return Mt})),n.d(e,"p",(function(){return Gt})),n.d(e,"q",(function(){return Xt})),n.d(e,"r",(function(){return Zt.a})),n.d(e,"s",(function(){return re})),n.d(e,"t",(function(){return ge})),n.d(e,"u",(function(){return we})),n.d(e,"v",(function(){return Te})),n.d(e,"w",(function(){return Ie})),n.d(e,"x",(function(){return Be})),n.d(e,"y",(function(){return ze})),n.d(e,"z",(function(){return Ve.a}));var r,i=n(38),o=n(1),a=n(0),s=n(8),c=n(16),u=n(6),l=n(72),f=n.n(l),d=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=u.l,e}return d(e,t),Object.defineProperty(e.prototype,"isActive",{get:function(){return console.log("value",this.value),this.index&&this.activeIndex?this.index===this.activeIndex:!(!this.value||!this.activeValue)&&this.value===this.activeValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showColorButtonIcon",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsBorder",{get:function(){return"light"===c.a.colorDarkness(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variant",{get:function(){return"panel"+("2"===this.size?"":" default fullheight")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonColorCss",{get:function(){return{"--clear-button-color":Object(s.b)(this.value)}},enumerable:!1,configurable:!0}),e.prototype.colorItemClick=function(){this.$emit("colorItemClick",this.value,this.index)},e.prototype.colorItemClear=function(){this.$emit("colorItemClear","",this.index)},p([Object(a.b)({type:String,required:!1}),h("design:type",String)],e.prototype,"label",void 0),p([Object(a.b)({type:String,required:!1}),h("design:type",String)],e.prototype,"icon",void 0),p([Object(a.b)({type:String,required:!1}),h("design:type",String)],e.prototype,"value",void 0),p([Object(a.b)({type:Number,required:!1}),h("design:type",Number)],e.prototype,"index",void 0),p([Object(a.b)({type:String,required:!1}),h("design:type",String)],e.prototype,"activeValue",void 0),p([Object(a.b)({type:Number,required:!1}),h("design:type",Number)],e.prototype,"activeIndex",void 0),p([Object(a.b)({type:Boolean,default:!1}),h("design:type",Boolean)],e.prototype,"isset",void 0),p([Object(a.b)(),h("design:type",String)],e.prototype,"size",void 0),p([Object(a.b)({type:Boolean,default:!1}),h("design:type",Boolean)],e.prototype,"canClearColor",void 0),p([f.a,Object(a.a)({name:"ColorItem"})],e)}(o.a),v=n(10),y=n.n(v),m=n(4),b=n(73),_=n.n(b),w=!1,O=120,E=void 0,S=void 0,k=function(t){S&&w&&t.offsetX>10&&t.offsetX<280&&(S.style.left=t.offsetX-10+"px")},C=function(t){var e=t.offsetX-10-135,n=t.offsetY-10-135,r=Math.atan2(n,e),i=135+Math.cos(r)*O,o=135+Math.sin(r)*O;E&&w&&(E.style.left=Math.round(i)+"px",E.style.top=Math.round(o)+"px",E.style.display="block")},T=function(t){E=document.querySelector("#js-dot");var e=document.querySelector("#js-colorwheel");e&&(e.addEventListener("mousemove",C,!1),e.addEventListener("mousedown",C,!1)),t&&function(t){var e=y()(t).get("hcl.h");e*=Math.PI/180;var n=135+Math.cos(e)*O,r=135+Math.sin(e)*O;E&&(E.style.left=Math.round(n)+"px",E.style.top=Math.round(r)+"px",isNaN(e)&&(E.style.display="none"))}(t),S=document.querySelector("#js-chroma-dot");var n=document.querySelector("#js-chroma");n&&(n.addEventListener("mousemove",k,!1),n.addEventListener("mousedown",k,!1)),t&&function(t){var e=y()(t).get("hcl.c")/100*270;e>270&&(e=270),S&&(S.style.left=e+"px")}(t)},A=function(t,e,n,r,i){var o=t.createLinearGradient(20,20,200,20);o.addColorStop(0,"grey"),o.addColorStop(1,r),t.fillStyle=o,t.fillRect(0,0,290,e)},x=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},P=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colorpickercanvas=!1,e.colorCircleRadius=145,e.colorCircleRadiusMiddle=90,e.colorCircleRadiusCenter=50,e.saturationScaleHeight=50,e.paletteBrightness=[],e.numberOfColorsInBrightness=35,e.selectedColor="#ff0000",e.activeColorItemIndex=0,e.dragging=!1,e}return x(e,t),Object.defineProperty(e.prototype,"activeColorItem",{get:function(){return this.activeColorItemIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hexColor",{get:function(){return this.createdColor},enumerable:!1,configurable:!0}),e.prototype.updatePickerDraggingState=function(){var t;t=this.dragging,w=t},e.prototype.startSelectColorOnCanvas=function(){this.dragging=!0,this.selectColorOnCanvas(event),this.updatePickerDraggingState(),this.colorpickercanvas.style.cursor="-webkit-grab"},e.prototype.endSelectColorOnCanvas=function(){this.dragging=!1,this.updatePickerDraggingState(),this.colorpickercanvas.style.cursor="default"},e.prototype.startSelectColorOnChromaCanvas=function(){this.dragging=!0,this.updatePickerDraggingState(),this.colorpickerChromaCanvas.style.cursor="-webkit-grab"},e.prototype.endSelectColorOnSaturationCanvas=function(t){this.selectColorOnChromaCanvas(t),this.dragging=!1,this.updatePickerDraggingState(),this.colorpickerChromaCanvas.style.cursor="default"},e.prototype.getColorFromImageData=function(t,e,n){var r=t.getImageData(e,n,1,1).data;return y()(r[0],r[1],r[2]).hex()},e.prototype.clearCircleCanvas=function(){this.colorpickercanvascontext.clearRect(0,0,this.colorpickercanvas.width,this.colorpickercanvas.height)},e.prototype.inCirlce=function(t,e,n,r,i){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))<i},e.prototype.selectColorOnCanvas=function(t){var e=2*t.layerX,n=2*t.layerY,r=this.inCirlce(2*this.colorCircleRadius,2*this.colorCircleRadius,e,n,2*this.colorCircleRadius),i=this.inCirlce(2*this.colorCircleRadius,2*this.colorCircleRadius,e,n,this.colorCircleRadiusMiddle+10),o=this.inCirlce(2*this.colorCircleRadius,2*this.colorCircleRadius,e,n,2*this.colorCircleRadiusCenter);if(this.dragging&&r&&(!i||o)){var a=this.getColorFromImageData(this.colorpickercanvascontext,e,n);this.selectedColor=a,this.updatePicker(t,null)}},e.prototype.selectColorOnChromaCanvas=function(t){if(this.dragging){var e=t.layerX-10,n=t.layerY,r=this.getColorFromImageData(this.colorpickerChromaCanvasContext,e,n);"#ffffff"!==r&&(this.selectSaturation(r),this.updatePicker(null,t))}},e.prototype.selectColorInBrightness=function(t,e){this.activeColorItemIndex=e,this.selectedBrightness=y()(t).get("hcl.l"),this.createdColor=t},e.prototype.createColorFromHCL=function(){var t=y()(this.selectedColor).get("hcl.h");this.createdColor=y()(t,this.selectedSaturation,this.selectedBrightness,"hcl").hex()},e.prototype.makeBrightness=function(){var t=y()(this.selectedColor).get("hcl.h"),e=y()(t,this.selectedSaturation,50,"hcl").hex();e="#ffffff"===this.selectedColor?"#ffffff":e,this.paletteBrightness=c.a.paletteLightness(e,this.numberOfColorsInBrightness).reverse()},e.prototype.selectSaturation=function(t){this.selectedSaturation=y()(t).get("hcl.c")},e.prototype.updatePicker=function(t,e){this.createColorFromHCL(),A(this.colorpickerChromaCanvasContext,this.saturationScaleHeight,this.selectedSaturation,this.selectedColor),this.makeBrightness()},e.prototype.drawSaturationScale=function(){A(this.colorpickerChromaCanvasContext,this.saturationScaleHeight,0,this.selectedColor)},e.prototype.drawColorwheel=function(){!function(t,e,n,r,i){var o=e,a=e,s=0,c=0,u=0;for(T(n),s=0;s<=360;s+=1){var l=(s-2)*Math.PI/180,f=s*Math.PI/180;1===u&&(c=s,u=0),u=1+u,t.beginPath(),t.moveTo(o,a),t.arc(o,a,e,l,f,!1);var d=t.createRadialGradient(o,a,0,o,a,e),p=y()(c,10,100,"hcl").hex(),h=y()(c,100,60,"hcl").hex();d.addColorStop(0,p),d.addColorStop(1,h),t.fillStyle=d,t.fill(),t.closePath()}t.beginPath(),t.moveTo(o,a),t.arc(o,a,98,0,360,!1),t.fillStyle="rgb(235, 235, 235)",t.fill(),t.closePath(),t.beginPath(),t.moveTo(o,a),t.arc(o,a,50,0,360,!1),t.fillStyle="white",t.fill(),t.closePath()}(this.colorpickercanvascontext,this.colorCircleRadius,this.selectedColor,this.selectedColor)},e.prototype.initColor=function(t){this.selectedColor=t||this.color,this.createdColor=this.selectedColor,this.selectedBrightness=y()(this.selectedColor).get("hcl.l"),this.selectedSaturation=y()(this.selectedColor).get("hcl.c")},e.prototype.init=function(t){this.colorpickercanvas=this.$refs.colorpickercanvas,this.colorpickercanvascontext=this.colorpickercanvas.getContext("2d"),this.colorpickercanvascontext.scale(2,2),this.colorpickerChromaCanvas=this.$refs.colorpickerChromaCanvas,this.colorpickerChromaCanvasContext=this.colorpickerChromaCanvas.getContext("2d"),this.initColor(t),this.drawColorwheel(),this.drawSaturationScale(),this.makeBrightness()},e.prototype.revert=function(t){this.initColor(t),this.drawColorwheel(),this.updatePicker()},e.prototype.mounted=function(){var t=this;this.updateInterval=setInterval((function(){t.createdColor!==t.currentColor&&(m.a.$emit("COLOR_PICKER_COLOR_CHANGE",t.createdColor),t.currentColor=t.createdColor)}),50),m.a.$on("COLOR_PICKER_RESET",this.revert),this.init()},e.prototype.beforeDestroy=function(){clearInterval(this.updateInterval)},L([Object(a.b)(),P("design:type",String)],e.prototype,"color",void 0),L([_.a,Object(a.a)({name:"ColorPickerComponent",components:{"color-item":g,"title-item":ze}})],e)}(o.a),I=n(11),j=n(74),D=n.n(j),N=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},F=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=u.l,e}return N(e,t),Object.defineProperty(e.prototype,"treatsButtonActive",{get:function(){return this.$store.getters.treatsButtonActive()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttonLabel",{get:function(){return this.$store.getters.isActiveModal("newpage")?"create":this.activePanel("design")?this.MESSAGES.PUBLISH_SITE_CHANGES:this.MESSAGES.PUBLISH_CHANGES},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settingsOpen",{get:function(){return this.activePanel("settings")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newpageFirstuseStyle",{get:function(){return this.newPageFirstUseButtonOpen?void 0:{flexDirection:"row-reverse"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newPageFirstUseButtonOpen",{get:function(){return this.firstUse&&this.newpagebutton},enumerable:!1,configurable:!0}),e.prototype.newPageModal=function(){this.isBlogPage()?this.openModal("newpageitem"):this.openModal("newpage")},e.prototype.openTreats=function(){this.$store.state.ui.treatsButtonActive=!1,this.openModal("treats");var t=document.getElementById("js-ui-Content");t&&t.scrollTo(0,0)},M([Object(a.b)({type:Boolean,required:!1,default:!1}),F("design:type",Boolean)],e.prototype,"newpagebutton",void 0),M([D.a,Object(a.a)({})],e)}(I.a),U=n(75),$=n.n(U),q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return q(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([$.a,Object(a.a)({})],e)}(o.a),G=n(76),z=n.n(G),V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},W=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Y=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}V(e,t),e.prototype.selectGridItem=function(t){this.$emit("selectGridItem",this.name,this.value,this.altvalue,t)},Object.defineProperty(e.prototype,"getIcon",{get:function(){return this.icon?this.icon.toLowerCase():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.altvalue?this.value===this.activeValue&&this.altvalue===this.secondaryActiveValue:this.value===this.activeValue},enumerable:!1,configurable:!0}),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"label",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"icon",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"name",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"value",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"altvalue",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"activeValue",void 0),K([Object(a.b)(String),W("design:type",Object)],e.prototype,"secondaryActiveValue",void 0),K([Object(a.b)(Boolean),W("design:type",Boolean)],e.prototype,"large",void 0),e=K([z.a,Object(a.a)({name:"GridItemComponent"})],e)}(o.a),n(39)),X=n(23),Z=n(30),J=n(80),Q=n.n(J),tt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},nt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.date=new Date(e.value),e.inputDate=e.value,e}return tt(e,t),e.prototype.valid=function(t){return!!t.match(/20[0-9][0-9]-(0[1-9]|[1][0-2])-([0-2][0-9]|3[0-1]) ([0-1][0-9]|2[0-3]):[0-5][0-9]/)},e.prototype.isoDate=function(t){return new Date(t).toISOString()},e.prototype.dateString=function(){var t=new Date(this.value),e=new Intl.DateTimeFormat("en",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).formatToParts(t),n=e[0].value,r=e[2].value;return e[4].value+"-"+n+"-"+r+" "+e[6].value+":"+e[8].value},e.prototype.getInputDate=function(t){this.inputDate=t,this.valid(this.inputDate)&&16===this.inputDate.length&&this.$emit("inputDateUpdate",this.name,this.isoDate(this.inputDate))},e.prototype.onEnter=function(){this.valid(this.inputDate)&&16===this.inputDate.length&&this.$emit("inputDateUpdateEnter",this.name,this.isoDate(this.inputDate))},et([Object(a.b)({type:String,required:!0}),nt("design:type",String)],e.prototype,"name",void 0),et([Object(a.b)({type:String,required:!0}),nt("design:type",String)],e.prototype,"value",void 0),et([Q.a,Object(a.a)({name:"InputDateComponent"})],e)}(Z.a),it=n(81),ot=n.n(it),at=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ct=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return at(e,t),e.prototype.getInputFile=function(t){this.$emit("input-file-update",this.name,t,this.target)},st([Object(a.b)(String),ct("design:type",String)],e.prototype,"name",void 0),st([Object(a.b)(String),ct("design:type",String)],e.prototype,"label",void 0),st([Object(a.b)(String),ct("design:type",String)],e.prototype,"placeholder",void 0),st([Object(a.b)(String),ct("design:type",String)],e.prototype,"value",void 0),st([Object(a.b)(String),ct("design:type",String)],e.prototype,"target",void 0),st([Object(a.b)({type:Boolean,required:!1,default:!1}),ct("design:type",Boolean)],e.prototype,"focus",void 0),st([Object(a.b)({type:String,required:!0,default:"image/svg+xml, image/png, image/jpeg, image/jpg, image/gif"}),ct("design:type",String)],e.prototype,"filetypes",void 0),st([ot.a,Object(a.a)({name:"InputFileComponent"})],e)}(o.a),lt=n(82),ft=n.n(lt),dt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ht=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dt(e,t),e.prototype.getInputText=function(t){this.$emit("inputTextUpdate",this.name,t)},pt([Object(a.b)(String),ht("design:type",Object)],e.prototype,"name",void 0),pt([Object(a.b)(String),ht("design:type",Object)],e.prototype,"label",void 0),pt([Object(a.b)(String),ht("design:type",Object)],e.prototype,"placeholder",void 0),pt([Object(a.b)(String),ht("design:type",Object)],e.prototype,"value",void 0),pt([Object(a.b)(String),ht("design:type",Object)],e.prototype,"required",void 0),pt([ft.a,Object(a.a)({})],e)}(o.a),vt=n(83),yt=n.n(vt),mt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bt=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}mt(e,t),e=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([yt.a,Object(a.a)({})],e)}(o.a),n(84)),_t=n.n(bt),wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ot=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Et=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},St=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isVisible=!0,e.UiBaseIcons=u.l,e}return wt(e,t),Object.defineProperty(e.prototype,"isActive",{get:function(){return!(!this.value||!this.activeValue)&&this.value===this.activeValue},enumerable:!1,configurable:!0}),e.prototype.listItemClick=function(){var t=this;setTimeout((function(){t.$emit("listItemClick",t.value)}),100)},e.prototype.lazyLoaderCallback=function(t){for(var e=0,n=t;e<n.length;e++)n[e].intersectionRatio>0&&(this.isVisible=!0,this.intersectionObserver.unobserve(this.$el))},e.prototype.mounted=function(){if(this.intersectionRoot){this.isVisible=!1;var t={root:document.querySelector(this.intersectionRoot)||null,rootMargin:"0px 0px 500px 0px",threshold:.01};this.intersectionObserver=new IntersectionObserver(this.lazyLoaderCallback,t),this.$el&&this.intersectionObserver.observe(this.$el)}},Ot([Object(a.b)(String),Et("design:type",Object)],e.prototype,"label",void 0),Ot([Object(a.b)(String),Et("design:type",Object)],e.prototype,"value",void 0),Ot([Object(a.b)(String),Et("design:type",Object)],e.prototype,"activeValue",void 0),Ot([Object(a.b)({type:String,default:""}),Et("design:type",String)],e.prototype,"intersectionRoot",void 0),Ot([Object(a.b)(Object),Et("design:type",Object)],e.prototype,"icon",void 0),Ot([Object(a.b)(String),Et("design:type",String)],e.prototype,"image",void 0),Ot([Object(a.b)(Boolean),Et("design:type",Boolean)],e.prototype,"large",void 0),Ot([Object(a.b)(Boolean),Et("design:type",Boolean)],e.prototype,"clickThrough",void 0),Ot([_t.a,Object(a.a)({components:{}})],e)}(o.a),kt=n(85),Ct=n.n(kt),Tt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},xt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tt(e,t),e.prototype.getInputText=function(t){this.updateSite("title",t)},e.prototype.onEnter=function(t){this.updateSite("title",t)},e.prototype.editSiteTitle=function(t){this.updateSite("title",t)},e.prototype.chooseFile=function(t){var e,n;null===(n=null===(e=t.target.nextElementSibling)||void 0===e?void 0:e.querySelector(".ui-InputFile-Input"))||void 0===n||n.click()},e.prototype.editSrc=function(t,e,n){var r=this,i=e[0],o=new FileReader;o.addEventListener("load",(function(t){2===t.target.readyState&&r.createAsset(n,o.result)}),!1),o.readAsDataURL(i)},e.prototype.fontWeightBold=function(){if(this.getSite.logotypeBold)return"bold"},At([Object(a.b)(String),xt("design:type",String)],e.prototype,"font",void 0),At([Object(a.b)(String),xt("design:type",String)],e.prototype,"type",void 0),At([Object(a.b)(String),xt("design:type",String)],e.prototype,"target",void 0),At([Object(a.b)(String),xt("design:type",String)],e.prototype,"src",void 0),At([Object(a.b)(String),xt("design:type",String)],e.prototype,"filetypes",void 0),At([Ct.a,Object(a.a)({name:"LogotypeItemComponent",components:{"input-file":ut}})],e)}(I.a),Pt=(n(40),n(31)),Rt=n(88),It=n.n(Rt),jt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Nt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return jt(e,t),e.prototype.iconSize=function(){return"mediumIcons"===this.variant?{width:70,height:48}:{width:20,height:20}},e.prototype.selectOption=function(t,e){this.isInactive(t)||this.$emit("setOptionSelector",this.name,t,e)},e.prototype.isOptionSelected=function(t){return this.activeKey===t},e.prototype.tooltipValue=function(t){return this.icons?t:""},e.prototype.uiValue=function(t,e){return this.mapping?this.mapping[t]:e},e.prototype.isInactive=function(t){return!!this.inactive&&this.inactive.includes(t)},Dt([Object(a.b)({type:String,required:!0}),Nt("design:type",String)],e.prototype,"name",void 0),Dt([Object(a.b)(String),Nt("design:type",String)],e.prototype,"label",void 0),Dt([Object(a.b)(String),Nt("design:type",String)],e.prototype,"icon",void 0),Dt([Object(a.b)({type:String,default:"default"}),Nt("design:type",String)],e.prototype,"variant",void 0),Dt([Object(a.b)([Array,Object]),Nt("design:type",Object)],e.prototype,"config",void 0),Dt([Object(a.b)(Object),Nt("design:type","function"==typeof(n="undefined"!=typeof Record&&Record)?n:Object)],e.prototype,"icons",void 0),Dt([Object(a.b)([Array,Object]),Nt("design:type",Object)],e.prototype,"mapping",void 0),Dt([Object(a.b)({type:Array}),Nt("design:type",Array)],e.prototype,"inactive",void 0),Dt([Object(a.b)([String,Number]),Nt("design:type",Object)],e.prototype,"activeKey",void 0),Dt([It.a,Object(a.a)({name:"OptionSelector"})],e)}(o.a),Ft=n(50),Bt=n(90),Ut=n.n(Bt),$t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Ht=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $t(e,t),e.prototype.optionToggle=function(){this.$emit("option-toggle",this.name,!this.value)},qt([Object(a.b)({type:String,required:!0}),Ht("design:type",String)],e.prototype,"name",void 0),qt([Object(a.b)({type:Boolean,required:!0}),Ht("design:type",Boolean)],e.prototype,"value",void 0),qt([Ut.a,Object(a.a)({name:"OptionToggle",inheritAttrs:!1,components:{toggle:Ft.a}})],e)}(I.a),zt=n(91),Vt=n.n(zt),Kt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Yt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=u.l,e}return Kt(e,t),e.prototype.closeOverlay=function(){this.$emit("closeOverlay")},e.prototype.hasOutsideClick=function(){return this.closeOnOutsideClick?"click":null},e.prototype.hasFooter=function(){return this.$slots.hasOwnProperty("footer")},e.prototype.hasHeader=function(){return this.$slots.hasOwnProperty("header")},e.prototype.mounted=function(){var t=this;this.keyEvent=document.addEventListener("keydown",(function(e){27===e.keyCode&&t.closeOverlay()}))},e.prototype.beforeDestroy=function(){this.keyEvent&&removeEventListener("keydown",this.keyEvent)},Wt([Object(a.b)({type:Boolean,default:!1}),Yt("design:type",Boolean)],e.prototype,"closeOnOutsideClick",void 0),Wt([Object(a.b)({type:String,default:""}),Yt("design:type",String)],e.prototype,"contentHeight",void 0),Wt([Object(a.b)({type:String,default:""}),Yt("design:type",String)],e.prototype,"contentWidth",void 0),Wt([Vt.a,Object(a.a)({name:"Overlay",components:{}})],e)}(I.a),Zt=n(41),Jt=n(94),Qt=n.n(Jt),te=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ee=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ne=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return te(e,t),e.prototype.toggle=function(){this.$emit("radioToggle",!this.isActive)},ee([Object(a.b)(Boolean),ne("design:type",Boolean)],e.prototype,"isActive",void 0),ee([Object(a.b)(String),ne("design:type",String)],e.prototype,"title",void 0),ee([Qt.a,Object(a.a)({name:"RadioButtonComponent"})],e)}(o.a),ie=n(95),oe=n.n(ie),ae=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ce=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ue=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}ae(e,t),se([Object(a.b)(String),ce("design:type",Object)],e.prototype,"placeholder",void 0),e=se([oe.a,Object(a.a)({})],e)}(o.a),n(2)),le=n(96),fe=n.n(le),de=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},he=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ge=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=u.l,e.TypesIcons=u.k,e.coverSrc=null,e.draggedOver=!1,e.editSetId="",e.isVisible=!1,e}return de(e,t),e.prototype.deleteSet=function(t){this.$emit("deleteSet",t)},e.prototype.dragDrop=function(t){var e;t.dataTransfer&&(e=t.dataTransfer.getData("text/plain"),console.log("DATA:",e)),this.$emit("moveImageToSet",this.set.id,e),this.draggedOver=!1,this.setCursor("pointer")},e.prototype.editSet=function(t){this.$emit("activeEditSetId",t.id)},e.prototype.editSetTitle=function(t,e){this.$emit("editSetTitle",this.set.id,t,e)},e.prototype.editSetEnter=function(t){var e=this;setTimeout((function(){e.$emit("activeEditSetId",t.id)}),200)},e.prototype.selectSet=function(t){this.$emit("selectSet",t)},e.prototype.setEditActive=function(t){return this.activeEditSetId===t},Object.defineProperty(e.prototype,"setActive",{get:function(){return this.isActiveSet},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t){return!!(this.isVisible&&t.cover_image&&t.cover_image.src)&&("photo"===t.cover_image.type?t.cover_image.src+"?s=S":t.cover_image.src.poster)},e.prototype.setCursor=function(t){Array.from(document.getElementsByClassName("ui-Organizer-Item")).forEach((function(e){e.style.cursor=t}))},e.prototype.dragEnter=function(){},e.prototype.receivedDrop=function(){},e.prototype.dragLeave=function(){this.draggedOver=!1,this.setCursor("pointer")},e.prototype.dragOver=function(){this.draggedOver||(this.$store.commit(ue.B,this.set.id),this.setCursor("copy"),this.draggedOver=!0)},e.prototype.lazyLoaderCallback=function(t){for(var e=0,n=t;e<n.length;e++)n[e].intersectionRatio>0&&(this.isVisible=!0,this.intersectionObserver.unobserve(this.$el))},e.prototype.mounted=function(){if(this.intersectionRoot){this.isVisible=!1;var t={root:document.querySelector(this.intersectionRoot)||null,rootMargin:"0px 0px 500px 0px",threshold:.01};this.intersectionObserver=new IntersectionObserver(this.lazyLoaderCallback,t),this.$el&&this.intersectionObserver.observe(this.$el)}},pe([Object(a.b)({required:!0}),he("design:type",Object)],e.prototype,"set",void 0),pe([Object(a.b)(Boolean),he("design:type",Boolean)],e.prototype,"isActiveSet",void 0),pe([Object(a.b)(String),he("design:type",Object)],e.prototype,"activeSetId",void 0),pe([Object(a.b)(String),he("design:type",Object)],e.prototype,"activeEditSetId",void 0),pe([Object(a.b)({type:String,default:null}),he("design:type",Object)],e.prototype,"intersectionRoot",void 0),pe([fe.a,Object(a.a)({name:"SetListItemComponent",components:{}})],e)}(o.a),ve=n(97),ye=n.n(ve),me=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},_e=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return me(e,t),be([Object(a.b)(String),_e("design:type",String)],e.prototype,"message",void 0),be([ye.a,Object(a.a)({})],e)}(o.a),Oe=n(98),Ee=n.n(Oe),Se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ke=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Ce=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Se(e,t),e.prototype.subtitleClick=function(){this.$emit("subtitleClick",this.label)},ke([Object(a.b)({type:String,required:!0}),Ce("design:type",Object)],e.prototype,"label",void 0),ke([Object(a.b)(String),Ce("design:type",String)],e.prototype,"size",void 0),ke([Ee.a,Object(a.a)({name:"SubtitleItem",components:{}})],e)}(o.a),Ae=n(99),xe=n.n(Ae),Le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pe=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Re=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Le(e,t),e.prototype.tabClick=function(){this.$emit("select-tab",this.name)},Object.defineProperty(e.prototype,"isActive",{get:function(){return this.name===this.activeValue},enumerable:!1,configurable:!0}),Pe([Object(a.b)(String),Re("design:type",String)],e.prototype,"label",void 0),Pe([Object(a.b)(String),Re("design:type",String)],e.prototype,"name",void 0),Pe([Object(a.b)(String),Re("design:type",String)],e.prototype,"activeValue",void 0),Pe([Object(a.b)(Boolean),Re("design:type",Boolean)],e.prototype,"divider",void 0),Pe([xe.a,Object(a.a)({})],e)}(o.a),je=n(100),De=n.n(je),Ne=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Fe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ne(e,t),Me([Object(a.b)(String),Fe("design:type",Boolean)],e.prototype,"active",void 0),Me([De.a,Object(a.a)({})],e)}(o.a),Ue=n(101),$e=n.n(Ue),qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),He=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Ge=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ze=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qe(e,t),e.prototype.toggleEmit=function(){this.$emit("toggleClick")},He([Object(a.b)({type:String,required:!0}),Ge("design:type",Object)],e.prototype,"label",void 0),He([Object(a.b)({type:String}),Ge("design:type",Object)],e.prototype,"toggleTitle",void 0),He([Object(a.b)({type:Boolean,required:!1}),Ge("design:type",Object)],e.prototype,"toggleActive",void 0),He([Object(a.b)({type:Boolean,default:!1,required:!1}),Ge("design:type",Object)],e.prototype,"hasToggle",void 0),He([$e.a,Object(a.a)({name:"TitleItem",components:{}})],e)}(I.a),Ve=n(47)},function(t,e,n){t.exports=function(){"use strict";for(var t=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t<e?e:t>n?n:t},e={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n<r.length;n+=1){var i=r[n];e["[object "+i+"]"]=i.toLowerCase()}var o=function(t){return e[Object.prototype.toString.call(t)]||"object"},a=Math.PI,s={clip_rgb:function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},limit:t,type:o,unpack:function(t,e){return void 0===e&&(e=null),t.length>=3?Array.prototype.slice.call(t):"object"==o(t[0])&&e?e.split("").filter((function(e){return void 0!==t[0][e]})).map((function(e){return t[0][e]})):t[0]},last:function(t){if(t.length<2)return null;var e=t.length-1;return"string"==o(t[e])?t[e].toLowerCase():null},PI:a,TWOPI:2*a,PITHIRD:a/3,DEG2RAD:a/180,RAD2DEG:180/a},c={format:{},autodetect:[]},u=s.last,l=s.clip_rgb,f=s.type,d=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=this;if("object"===f(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var r=u(t),i=!1;if(!r){i=!0,c.sorted||(c.autodetect=c.autodetect.sort((function(t,e){return e.p-t.p})),c.sorted=!0);for(var o=0,a=c.autodetect;o<a.length;o+=1){var s=a[o];if(r=s.test.apply(s,t))break}}if(!c.format[r])throw new Error("unknown format: "+t);var d=c.format[r].apply(null,i?t:t.slice(0,-1));n._rgb=l(d),3===n._rgb.length&&n._rgb.push(1)};d.prototype.toString=function(){return"function"==f(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var p=d,h=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(h.Color,[null].concat(t)))};h.Color=p,h.version="2.0.3";var g=h,v=s.unpack,y=Math.max,m=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=v(t,"rgb"),r=n[0],i=n[1],o=n[2],a=1-y(r/=255,y(i/=255,o/=255)),s=a<1?1/(1-a):0;return[(1-r-a)*s,(1-i-a)*s,(1-o-a)*s,a]},b=s.unpack,_=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=b(t,"cmyk"))[0],r=t[1],i=t[2],o=t[3],a=t.length>4?t[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},w=s.unpack,O=s.type;p.prototype.cmyk=function(){return m(this._rgb)},g.cmyk=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["cmyk"])))},c.format.cmyk=_,c.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=w(t,"cmyk"),"array"===O(t)&&4===t.length)return"cmyk"}});var E=s.unpack,S=s.last,k=function(t){return Math.round(100*t)/100},C=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=E(t,"hsla"),r=S(t)||"lsa";return n[0]=k(n[0]||0),n[1]=k(100*n[1])+"%",n[2]=k(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},T=s.unpack,A=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=T(t,"rgba"))[0],r=t[1],i=t[2];n/=255,r/=255,i/=255;var o,a,s=Math.min(n,r,i),c=Math.max(n,r,i),u=(c+s)/2;return c===s?(o=0,a=Number.NaN):o=u<.5?(c-s)/(c+s):(c-s)/(2-c-s),n==c?a=(r-i)/(c-s):r==c?a=2+(i-n)/(c-s):i==c&&(a=4+(n-r)/(c-s)),(a*=60)<0&&(a+=360),t.length>3&&void 0!==t[3]?[a,o,u,t[3]]:[a,o,u]},x=s.unpack,L=s.last,P=Math.round,R=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=x(t,"rgba"),r=L(t)||"rgb";return"hsl"==r.substr(0,3)?C(A(n),r):(n[0]=P(n[0]),n[1]=P(n[1]),n[2]=P(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},I=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,j=/^#?([A-Fa-f0-9]{8})$/,D=function(t){if(t.match(I)){4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(j)){9===t.length&&(t=t.substr(1));var n=parseInt(t,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+t)},N=s.unpack,M=Math.round,F=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r,i,o,a=(e=N(e,"hsl"))[0],s=e[1],c=e[2];if(0===s)r=i=o=255*c;else{var u=[0,0,0],l=[0,0,0],f=c<.5?c*(1+s):c+s-c*s,d=2*c-f,p=a/360;u[0]=p+1/3,u[1]=p,u[2]=p-1/3;for(var h=0;h<3;h++)u[h]<0&&(u[h]+=1),u[h]>1&&(u[h]-=1),6*u[h]<1?l[h]=d+6*(f-d)*u[h]:2*u[h]<1?l[h]=f:3*u[h]<2?l[h]=d+(f-d)*(2/3-u[h])*6:l[h]=d;r=(t=[M(255*l[0]),M(255*l[1]),M(255*l[2])])[0],i=t[1],o=t[2]}return e.length>3?[r,i,o,e[3]]:[r,i,o,1]},B={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},U=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,$=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,q=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,H=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,G=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,z=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,V=Math.round,K=function(t){if(t=t.toLowerCase().trim(),B[t])return D(B[t]);var e;if(e=t.match(U)){for(var n=e.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match($)){for(var i=e.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(e=t.match(q)){for(var a=e.slice(1,4),s=0;s<3;s++)a[s]=V(2.55*a[s]);return a[3]=1,a}if(e=t.match(H)){for(var c=e.slice(1,5),u=0;u<3;u++)c[u]=V(2.55*c[u]);return c[3]=+c[3],c}if(e=t.match(G)){var l=e.slice(1,4);l[1]*=.01,l[2]*=.01;var f=F(l);return f[3]=1,f}if(e=t.match(z)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var p=F(d);return p[3]=+e[4],p}};K.test=function(t){return U.test(t)||$.test(t)||q.test(t)||H.test(t)||G.test(t)||z.test(t)};var W=K,Y=s.type;p.prototype.css=function(t){return R(this._rgb,t)},g.css=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["css"])))},c.format.css=W,c.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===Y(t)&&W.test(t))return"css"}});var X=s.unpack;c.format.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=X(t,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},g.gl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["gl"])))},p.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var Z=s.unpack,J=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=Z(t,"rgb"),i=r[0],o=r[1],a=r[2],s=Math.min(i,o,a),c=Math.max(i,o,a),u=c-s,l=100*u/255,f=s/(255-u)*100;return 0===u?n=Number.NaN:(i===c&&(n=(o-a)/u),o===c&&(n=2+(a-i)/u),a===c&&(n=4+(i-o)/u),(n*=60)<0&&(n+=360)),[n,l,f]},Q=s.unpack,tt=Math.floor,et=function(){for(var t,e,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var c,u,l,f=(a=Q(a,"hcg"))[0],d=a[1],p=a[2];p*=255;var h=255*d;if(0===d)c=u=l=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var g=tt(f/=60),v=f-g,y=p*(1-d),m=y+h*(1-v),b=y+h*v,_=y+h;switch(g){case 0:c=(t=[_,b,y])[0],u=t[1],l=t[2];break;case 1:c=(e=[m,_,y])[0],u=e[1],l=e[2];break;case 2:c=(n=[y,_,b])[0],u=n[1],l=n[2];break;case 3:c=(r=[y,m,_])[0],u=r[1],l=r[2];break;case 4:c=(i=[b,y,_])[0],u=i[1],l=i[2];break;case 5:c=(o=[_,y,m])[0],u=o[1],l=o[2]}}return[c,u,l,a.length>3?a[3]:1]},nt=s.unpack,rt=s.type;p.prototype.hcg=function(){return J(this._rgb)},g.hcg=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hcg"])))},c.format.hcg=et,c.autodetect.push({p:1,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=nt(t,"hcg"),"array"===rt(t)&&3===t.length)return"hcg"}});var it=s.unpack,ot=s.last,at=Math.round,st=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=it(t,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],s=ot(t)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var c="000000"+((r=at(r))<<16|(i=at(i))<<8|(o=at(o))).toString(16);c=c.substr(c.length-6);var u="0"+at(255*a).toString(16);switch(u=u.substr(u.length-2),s.toLowerCase()){case"rgba":return"#"+c+u;case"argb":return"#"+u+c;default:return"#"+c}},ct=s.type;p.prototype.hex=function(t){return st(this._rgb,t)},g.hex=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hex"])))},c.format.hex=D,c.autodetect.push({p:4,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===ct(t)&&[3,4,6,7,8,9].includes(t.length))return"hex"}});var ut=s.unpack,lt=s.TWOPI,ft=Math.min,dt=Math.sqrt,pt=Math.acos,ht=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=ut(t,"rgb"),i=r[0],o=r[1],a=r[2],s=ft(i/=255,o/=255,a/=255),c=(i+o+a)/3,u=c>0?1-s/c:0;return 0===u?n=NaN:(n=(i-o+(i-a))/2,n/=dt((i-o)*(i-o)+(i-a)*(o-a)),n=pt(n),a>o&&(n=lt-n),n/=lt),[360*n,u,c]},gt=s.unpack,vt=s.limit,yt=s.TWOPI,mt=s.PITHIRD,bt=Math.cos,_t=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=gt(t,"hsi"))[0],a=t[1],s=t[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*bt(yt*o)/bt(mt-yt*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*bt(yt*(o-=1/3))/bt(mt-yt*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*bt(yt*(o-=2/3))/bt(mt-yt*o))/3)),[255*(n=vt(s*n*3)),255*(r=vt(s*r*3)),255*(i=vt(s*i*3)),t.length>3?t[3]:1]},wt=s.unpack,Ot=s.type;p.prototype.hsi=function(){return ht(this._rgb)},g.hsi=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hsi"])))},c.format.hsi=_t,c.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=wt(t,"hsi"),"array"===Ot(t)&&3===t.length)return"hsi"}});var Et=s.unpack,St=s.type;p.prototype.hsl=function(){return A(this._rgb)},g.hsl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hsl"])))},c.format.hsl=F,c.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Et(t,"hsl"),"array"===St(t)&&3===t.length)return"hsl"}});var kt=s.unpack,Ct=Math.min,Tt=Math.max,At=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=kt(t,"rgb"))[0],a=t[1],s=t[2],c=Ct(o,a,s),u=Tt(o,a,s),l=u-c;return i=u/255,0===u?(n=Number.NaN,r=0):(r=l/u,o===u&&(n=(a-s)/l),a===u&&(n=2+(s-o)/l),s===u&&(n=4+(o-a)/l),(n*=60)<0&&(n+=360)),[n,r,i]},xt=s.unpack,Lt=Math.floor,Pt=function(){for(var t,e,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var c,u,l,f=(a=xt(a,"hsv"))[0],d=a[1],p=a[2];if(p*=255,0===d)c=u=l=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Lt(f/=60),g=f-h,v=p*(1-d),y=p*(1-d*g),m=p*(1-d*(1-g));switch(h){case 0:c=(t=[p,m,v])[0],u=t[1],l=t[2];break;case 1:c=(e=[y,p,v])[0],u=e[1],l=e[2];break;case 2:c=(n=[v,p,m])[0],u=n[1],l=n[2];break;case 3:c=(r=[v,y,p])[0],u=r[1],l=r[2];break;case 4:c=(i=[m,v,p])[0],u=i[1],l=i[2];break;case 5:c=(o=[p,v,y])[0],u=o[1],l=o[2]}}return[c,u,l,a.length>3?a[3]:1]},Rt=s.unpack,It=s.type;p.prototype.hsv=function(){return At(this._rgb)},g.hsv=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hsv"])))},c.format.hsv=Pt,c.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Rt(t,"hsv"),"array"===It(t)&&3===t.length)return"hsv"}});var jt=18,Dt=.95047,Nt=1,Mt=1.08883,Ft=.137931034,Bt=.206896552,Ut=.12841855,$t=.008856452,qt=s.unpack,Ht=Math.pow,Gt=function(t){return(t/=255)<=.04045?t/12.92:Ht((t+.055)/1.055,2.4)},zt=function(t){return t>$t?Ht(t,1/3):t/Ut+Ft},Vt=function(t,e,n){return t=Gt(t),e=Gt(e),n=Gt(n),[zt((.4124564*t+.3575761*e+.1804375*n)/Dt),zt((.2126729*t+.7151522*e+.072175*n)/Nt),zt((.0193339*t+.119192*e+.9503041*n)/Mt)]},Kt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=qt(t,"rgb"),r=n[0],i=n[1],o=n[2],a=Vt(r,i,o),s=a[0],c=a[1],u=116*c-16;return[u<0?0:u,500*(s-c),200*(c-a[2])]},Wt=s.unpack,Yt=Math.pow,Xt=function(t){return 255*(t<=.00304?12.92*t:1.055*Yt(t,1/2.4)-.055)},Zt=function(t){return t>Bt?t*t*t:Ut*(t-Ft)},Jt=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r,i,o=(t=Wt(t,"lab"))[0],a=t[1],s=t[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(s)?r:r-s/200,r=Nt*Zt(r),n=Dt*Zt(n),i=Mt*Zt(i),[Xt(3.2404542*n-1.5371385*r-.4985314*i),Xt(-.969266*n+1.8760108*r+.041556*i),Xt(.0556434*n-.2040259*r+1.0572252*i),t.length>3?t[3]:1]},Qt=s.unpack,te=s.type;p.prototype.lab=function(){return Kt(this._rgb)},g.lab=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["lab"])))},c.format.lab=Jt,c.autodetect.push({p:2,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=Qt(t,"lab"),"array"===te(t)&&3===t.length)return"lab"}});var ee=s.unpack,ne=s.RAD2DEG,re=Math.sqrt,ie=Math.atan2,oe=Math.round,ae=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ee(t,"lab"),r=n[0],i=n[1],o=n[2],a=re(i*i+o*o),s=(ie(o,i)*ne+360)%360;return 0===oe(1e4*a)&&(s=Number.NaN),[r,a,s]},se=s.unpack,ce=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=se(t,"rgb"),r=n[0],i=n[1],o=n[2],a=Kt(r,i,o),s=a[0],c=a[1],u=a[2];return ae(s,c,u)},ue=s.unpack,le=s.DEG2RAD,fe=Math.sin,de=Math.cos,pe=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ue(t,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,de(o*=le)*i,fe(o)*i]},he=s.unpack,ge=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=(t=he(t,"lch"))[0],r=t[1],i=t[2],o=pe(n,r,i),a=o[0],s=o[1],c=o[2],u=Jt(a,s,c);return[u[0],u[1],u[2],t.length>3?t[3]:1]},ve=s.unpack,ye=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ve(t,"hcl").reverse();return ge.apply(void 0,n)},me=s.unpack,be=s.type;p.prototype.lch=function(){return ce(this._rgb)},p.prototype.hcl=function(){return ce(this._rgb).reverse()},g.lch=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["lch"])))},g.hcl=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["hcl"])))},c.format.lch=ge,c.format.hcl=ye,["lch","hcl"].forEach((function(t){return c.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(e=me(e,t),"array"===be(e)&&3===e.length)return t}})}));var _e=s.type;p.prototype.name=function(){for(var t=st(this._rgb,"rgb"),e=0,n=Object.keys(B);e<n.length;e+=1){var r=n[e];if(B[r]===t)return r.toLowerCase()}return t},c.format.named=function(t){if(t=t.toLowerCase(),B[t])return D(B[t]);throw new Error("unknown color name: "+t)},c.autodetect.push({p:5,test:function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===_e(t)&&B[t.toLowerCase()])return"named"}});var we=s.unpack,Oe=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=we(t,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},Ee=s.type,Se=s.type;p.prototype.num=function(){return Oe(this._rgb)},g.num=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["num"])))},c.format.num=function(t){if("number"==Ee(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},c.autodetect.push({p:5,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(1===t.length&&"number"===Se(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var ke=s.unpack,Ce=s.type,Te=Math.round;p.prototype.rgb=function(t){return void 0===t&&(t=!0),!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Te)},p.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map((function(e,n){return n<3?!1===t?e:Te(e):e}))},g.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["rgb"])))},c.format.rgb=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=ke(t,"rgba");return void 0===n[3]&&(n[3]=1),n},c.autodetect.push({p:3,test:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(t=ke(t,"rgba"),"array"===Ce(t)&&(3===t.length||4===t.length&&"number"==Ce(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var Ae=Math.log,xe=function(t){var e,n,r,i=t/100;return i<66?(e=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*Ae(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*Ae(r)):(e=351.97690566805693+.114206453784165*(e=i-55)-40.25366309332127*Ae(e),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*Ae(n),r=255),[e,n,r,1]},Le=s.unpack,Pe=Math.round,Re=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n,r=Le(t,"rgb"),i=r[0],o=r[2],a=1e3,s=4e4,c=.4;s-a>c;){var u=xe(n=.5*(s+a));u[2]/u[0]>=o/i?s=n:a=n}return Pe(n)};p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return Re(this._rgb)},g.temp=g.kelvin=g.temperature=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return new(Function.prototype.bind.apply(p,[null].concat(t,["temp"])))},c.format.temp=c.format.kelvin=c.format.temperature=xe;var Ie=s.type;p.prototype.alpha=function(t,e){return void 0===e&&(e=!1),void 0!==t&&"number"===Ie(t)?e?(this._rgb[3]=t,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(t){void 0===t&&(t=1);var e=this.lab();return e[0]-=jt*t,new p(e,"lab").alpha(this.alpha(),!0)},p.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(t){var e=t.split("."),n=e[0],r=e[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var je=s.type,De=Math.pow;p.prototype.luminance=function(t){if(void 0!==t&&"number"===je(t)){if(0===t)return new p([0,0,0,this._rgb[3]],"rgb");if(1===t)return new p([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n=20,r=function(e,i){var o=e.interpolate(i,.5,"rgb"),a=o.luminance();return Math.abs(t-a)<1e-7||!n--?o:a>t?r(e,o):r(o,i)},i=(e>t?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(i.concat([this._rgb[3]]))}return Ne.apply(void 0,this._rgb.slice(0,3))};var Ne=function(t,e,n){return.2126*(t=Me(t))+.7152*(e=Me(e))+.0722*Me(n)},Me=function(t){return(t/=255)<=.03928?t/12.92:De((t+.055)/1.055,2.4)},Fe={},Be=s.type,Ue=function(t,e,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(Fe[o]||r.length||(o=Object.keys(Fe)[0]),!Fe[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Be(t)&&(t=new p(t)),"object"!==Be(e)&&(e=new p(e)),Fe[o](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};p.prototype.mix=p.prototype.interpolate=function(t,e){void 0===e&&(e=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ue.apply(void 0,[this,t,e].concat(n))},p.prototype.premultiply=function(t){void 0===t&&(t=!1);var e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new p([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},p.prototype.saturate=function(t){void 0===t&&(t=1);var e=this.lch();return e[1]+=jt*t,e[1]<0&&(e[1]=0),new p(e,"lch").alpha(this.alpha(),!0)},p.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var $e=s.type;p.prototype.set=function(t,e,n){void 0===n&&(n=!1);var r=t.split("."),i=r[0],o=r[1],a=this[i]();if(o){var s=i.indexOf(o);if(s>-1){if("string"==$e(e))switch(e.charAt(0)){case"+":case"-":a[s]+=+e;break;case"*":a[s]*=+e.substr(1);break;case"/":a[s]/=+e.substr(1);break;default:a[s]=+e}else{if("number"!==$e(e))throw new Error("unsupported value for Color.set");a[s]=e}var c=new p(a,i);return n?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+o+" in mode "+i)}return a};Fe.rgb=function(t,e,n){var r=t._rgb,i=e._rgb;return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var qe=Math.sqrt,He=Math.pow;Fe.lrgb=function(t,e,n){var r=t._rgb,i=r[0],o=r[1],a=r[2],s=e._rgb,c=s[0],u=s[1],l=s[2];return new p(qe(He(i,2)*(1-n)+He(c,2)*n),qe(He(o,2)*(1-n)+He(u,2)*n),qe(He(a,2)*(1-n)+He(l,2)*n),"rgb")};Fe.lab=function(t,e,n){var r=t.lab(),i=e.lab();return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var Ge=function(t,e,n,r){var i,o,a,s,c,u,l,f,d,h,g,v;return"hsl"===r?(a=t.hsl(),s=e.hsl()):"hsv"===r?(a=t.hsv(),s=e.hsv()):"hcg"===r?(a=t.hcg(),s=e.hcg()):"hsi"===r?(a=t.hsi(),s=e.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=t.hcl(),s=e.hcl()),"h"===r.substr(0,1)&&(c=(i=a)[0],l=i[1],d=i[2],u=(o=s)[0],f=o[1],h=o[2]),isNaN(c)||isNaN(u)?isNaN(c)?isNaN(u)?v=Number.NaN:(v=u,1!=d&&0!=d||"hsv"==r||(g=f)):(v=c,1!=h&&0!=h||"hsv"==r||(g=l)):v=c+n*(u>c&&u-c>180?u-(c+360):u<c&&c-u>180?u+360-c:u-c),void 0===g&&(g=l+n*(f-l)),new p([v,g,d+n*(h-d)],r)},ze=function(t,e,n){return Ge(t,e,n,"lch")};Fe.lch=ze,Fe.hcl=ze;Fe.num=function(t,e,n){var r=t.num(),i=e.num();return new p(r+n*(i-r),"num")};Fe.hcg=function(t,e,n){return Ge(t,e,n,"hcg")};Fe.hsi=function(t,e,n){return Ge(t,e,n,"hsi")};Fe.hsl=function(t,e,n){return Ge(t,e,n,"hsl")};Fe.hsv=function(t,e,n){return Ge(t,e,n,"hsv")};var Ve=s.clip_rgb,Ke=Math.pow,We=Math.sqrt,Ye=Math.PI,Xe=Math.cos,Ze=Math.sin,Je=Math.atan2,Qe=function(t){for(var e=1/t.length,n=[0,0,0,0],r=0,i=t;r<i.length;r+=1){var o=i[r]._rgb;n[0]+=Ke(o[0],2)*e,n[1]+=Ke(o[1],2)*e,n[2]+=Ke(o[2],2)*e,n[3]+=o[3]*e}return n[0]=We(n[0]),n[1]=We(n[1]),n[2]=We(n[2]),n[3]>.9999999&&(n[3]=1),new p(Ve(n))},tn=s.type,en=Math.pow,nn=function(t){var e="rgb",n=g("#ccc"),r=0,i=[0,1],o=[],a=[0,0],s=!1,c=[],u=!1,l=0,f=1,d=!1,p={},h=!0,v=1,y=function(t){if((t=t||["#fff","#000"])&&"string"===tn(t)&&g.brewer&&g.brewer[t.toLowerCase()]&&(t=g.brewer[t.toLowerCase()]),"array"===tn(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var e=0;e<t.length;e++)t[e]=g(t[e]);o.length=0;for(var n=0;n<t.length;n++)o.push(n/(t.length-1))}return _(),c=t},m=function(t){return t},b=function(t,r){var i,u;if(null==r&&(r=!1),isNaN(t)||null===t)return n;u=r?t:s&&s.length>2?function(t){if(null!=s){for(var e=s.length-1,n=0;n<e&&t>=s[n];)n++;return n-1}return 0}(t)/(s.length-2):f!==l?(t-l)/(f-l):1,r||(u=m(u)),1!==v&&(u=en(u,v)),u=a[0]+u*(1-a[0]-a[1]),u=Math.min(1,Math.max(0,u));var d=Math.floor(1e4*u);if(h&&p[d])i=p[d];else{if("array"===tn(c))for(var y=0;y<o.length;y++){var b=o[y];if(u<=b){i=c[y];break}if(u>=b&&y===o.length-1){i=c[y];break}if(u>b&&u<o[y+1]){u=(u-b)/(o[y+1]-b),i=g.interpolate(c[y],c[y+1],u,e);break}}else"function"===tn(c)&&(i=c(u));h&&(p[d]=i)}return i},_=function(){return p={}};y(t);var w=function(t){var e=g(b(t));return u&&e[u]?e[u]():e};return w.classes=function(t){if(null!=t){if("array"===tn(t))s=t,i=[t[0],t[t.length-1]];else{var e=g.analyze(i);s=0===t?[e.min,e.max]:g.limits(e,"e",t)}return w}return s},w.domain=function(t){if(!arguments.length)return i;l=t[0],f=t[t.length-1],o=[];var e=c.length;if(t.length===e&&l!==f)for(var n=0,r=Array.from(t);n<r.length;n+=1){var a=r[n];o.push((a-l)/(f-l))}else for(var s=0;s<e;s++)o.push(s/(e-1));return i=[l,f],w},w.mode=function(t){return arguments.length?(e=t,_(),w):e},w.range=function(t,e){return y(t),w},w.out=function(t){return u=t,w},w.spread=function(t){return arguments.length?(r=t,w):r},w.correctLightness=function(t){return null==t&&(t=!0),d=t,_(),m=d?function(t){for(var e=b(0,!0).lab()[0],n=b(1,!0).lab()[0],r=e>n,i=b(t,!0).lab()[0],o=e+(n-e)*t,a=i-o,s=0,c=1,u=20;Math.abs(a)>.01&&u-- >0;)r&&(a*=-1),a<0?(s=t,t+=.5*(c-t)):(c=t,t+=.5*(s-t)),a=(i=b(t,!0).lab()[0])-o;return t}:function(t){return t},w},w.padding=function(t){return null!=t?("number"===tn(t)&&(t=[t,t]),a=t,w):a},w.colors=function(e,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=c.slice(0);else if(1===e)r=[w(.5)];else if(e>1){var o=i[0],a=i[1]-o;r=rn(0,e,!1).map((function(t){return w(o+t/(e-1)*a)}))}else{t=[];var u=[];if(s&&s.length>2)for(var l=1,f=s.length,d=1<=f;d?l<f:l>f;d?l++:l--)u.push(.5*(s[l-1]+s[l]));else u=i;r=u.map((function(t){return w(t)}))}return g[n]&&(r=r.map((function(t){return t[n]()}))),r},w.cache=function(t){return null!=t?(h=t,w):h},w.gamma=function(t){return null!=t?(v=t,w):v},w.nodata=function(t){return null!=t?(n=g(t),w):n},w};function rn(t,e,n){for(var r=[],i=t<e,o=n?i?e+1:e-1:e,a=t;i?a<o:a>o;i?a++:a--)r.push(a);return r}var on=function(t){var e,n,r,i,o,a,s;if(2===(t=t.map((function(t){return new p(t)}))).length)e=t.map((function(t){return t.lab()})),o=e[0],a=e[1],i=function(t){var e=[0,1,2].map((function(e){return o[e]+t*(a[e]-o[e])}));return new p(e,"lab")};else if(3===t.length)n=t.map((function(t){return t.lab()})),o=n[0],a=n[1],s=n[2],i=function(t){var e=[0,1,2].map((function(e){return(1-t)*(1-t)*o[e]+2*(1-t)*t*a[e]+t*t*s[e]}));return new p(e,"lab")};else if(4===t.length){var c;r=t.map((function(t){return t.lab()})),o=r[0],a=r[1],s=r[2],c=r[3],i=function(t){var e=[0,1,2].map((function(e){return(1-t)*(1-t)*(1-t)*o[e]+3*(1-t)*(1-t)*t*a[e]+3*(1-t)*t*t*s[e]+t*t*t*c[e]}));return new p(e,"lab")}}else if(5===t.length){var u=on(t.slice(0,3)),l=on(t.slice(2,5));i=function(t){return t<.5?u(2*t):l(2*(t-.5))}}return i},an=function(t,e,n){if(!an[n])throw new Error("unknown blend mode "+n);return an[n](t,e)},sn=function(t){return function(e,n){var r=g(n).rgb(),i=g(e).rgb();return g.rgb(t(r,i))}},cn=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}};an.normal=sn(cn((function(t){return t}))),an.multiply=sn(cn((function(t,e){return t*e/255}))),an.screen=sn(cn((function(t,e){return 255*(1-(1-t/255)*(1-e/255))}))),an.overlay=sn(cn((function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))}))),an.darken=sn(cn((function(t,e){return t>e?e:t}))),an.lighten=sn(cn((function(t,e){return t>e?t:e}))),an.dodge=sn(cn((function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t}))),an.burn=sn(cn((function(t,e){return 255*(1-(1-e/255)/(t/255))})));for(var un=an,ln=s.type,fn=s.clip_rgb,dn=s.TWOPI,pn=Math.pow,hn=Math.sin,gn=Math.cos,vn=Math.floor,yn=Math.random,mn=Math.log,bn=Math.pow,_n=Math.floor,wn=Math.abs,On=function(t,e){void 0===e&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(t)&&(t=Object.values(t)),t.forEach((function(t){e&&"object"===o(t)&&(t=t[e]),null==t||isNaN(t)||(n.values.push(t),n.sum+=t,t<n.min&&(n.min=t),t>n.max&&(n.max=t),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(t,e){return En(n,t,e)},n},En=function(t,e,n){void 0===e&&(e="equal"),void 0===n&&(n=7),"array"==o(t)&&(t=On(t));var r=t.min,i=t.max,a=t.values.sort((function(t,e){return t-e}));if(1===n)return[r,i];var s=[];if("c"===e.substr(0,1)&&(s.push(r),s.push(i)),"e"===e.substr(0,1)){s.push(r);for(var c=1;c<n;c++)s.push(r+c/n*(i-r));s.push(i)}else if("l"===e.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var u=Math.LOG10E*mn(r),l=Math.LOG10E*mn(i);s.push(r);for(var f=1;f<n;f++)s.push(bn(10,u+f/n*(l-u)));s.push(i)}else if("q"===e.substr(0,1)){s.push(r);for(var d=1;d<n;d++){var p=(a.length-1)*d/n,h=_n(p);if(h===p)s.push(a[h]);else{var g=p-h;s.push(a[h]*(1-g)+a[h+1]*g)}}s.push(i)}else if("k"===e.substr(0,1)){var v,y=a.length,m=new Array(y),b=new Array(n),_=!0,w=0,O=null;(O=[]).push(r);for(var E=1;E<n;E++)O.push(r+E/n*(i-r));for(O.push(i);_;){for(var S=0;S<n;S++)b[S]=0;for(var k=0;k<y;k++)for(var C=a[k],T=Number.MAX_VALUE,A=void 0,x=0;x<n;x++){var L=wn(O[x]-C);L<T&&(T=L,A=x),b[A]++,m[k]=A}for(var P=new Array(n),R=0;R<n;R++)P[R]=null;for(var I=0;I<y;I++)null===P[v=m[I]]?P[v]=a[I]:P[v]+=a[I];for(var j=0;j<n;j++)P[j]*=1/b[j];_=!1;for(var D=0;D<n;D++)if(P[D]!==O[D]){_=!0;break}O=P,++w>200&&(_=!1)}for(var N={},M=0;M<n;M++)N[M]=[];for(var F=0;F<y;F++)N[v=m[F]].push(a[F]);for(var B=[],U=0;U<n;U++)B.push(N[U][0]),B.push(N[U][N[U].length-1]);B=B.sort((function(t,e){return t-e})),s.push(B[0]);for(var $=1;$<B.length;$+=2){var q=B[$];isNaN(q)||-1!==s.indexOf(q)||s.push(q)}}return s},Sn={analyze:On,limits:En},kn=Math.sqrt,Cn=Math.atan2,Tn=Math.abs,An=Math.cos,xn=Math.PI,Ln={cool:function(){return nn([g.hsl(180,1,.9),g.hsl(250,.7,.4)])},hot:function(){return nn(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Pn={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Rn=0,In=Object.keys(Pn);Rn<In.length;Rn+=1){var jn=In[Rn];Pn[jn.toLowerCase()]=Pn[jn]}var Dn=Pn;return g.average=function(t,e){void 0===e&&(e="lrgb");var n=t.length;if(t=t.map((function(t){return new p(t)})),"lrgb"===e)return Qe(t);for(var r=t.shift(),i=r.get(e),o=[],a=0,s=0,c=0;c<i.length;c++)if(i[c]=i[c]||0,o.push(isNaN(i[c])?0:1),"h"===e.charAt(c)&&!isNaN(i[c])){var u=i[c]/180*Ye;a+=Xe(u),s+=Ze(u)}var l=r.alpha();t.forEach((function(t){var n=t.get(e);l+=t.alpha();for(var r=0;r<i.length;r++)if(!isNaN(n[r]))if(o[r]++,"h"===e.charAt(r)){var c=n[r]/180*Ye;a+=Xe(c),s+=Ze(c)}else i[r]+=n[r]}));for(var f=0;f<i.length;f++)if("h"===e.charAt(f)){for(var d=Je(s/o[f],a/o[f])/Ye*180;d<0;)d+=360;for(;d>=360;)d-=360;i[f]=d}else i[f]=i[f]/o[f];return l/=n,new p(i,e).alpha(l>.99999?1:l,!0)},g.bezier=function(t){var e=on(t);return e.scale=function(){return nn(e)},e},g.blend=un,g.cubehelix=function(t,e,n,r,i){void 0===t&&(t=300),void 0===e&&(e=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===ln(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var s=function(s){var c=dn*((t+120)/360+e*s),u=pn(i[0]+o*s,r),l=(0!==a?n[0]+s*a:n)*u*(1-u)/2,f=gn(c),d=hn(c);return g(fn([255*(u+l*(-.14861*f+1.78277*d)),255*(u+l*(-.29227*f-.90649*d)),255*(u+l*(1.97294*f)),1]))};return s.start=function(e){return null==e?t:(t=e,s)},s.rotations=function(t){return null==t?e:(e=t,s)},s.gamma=function(t){return null==t?r:(r=t,s)},s.hue=function(t){return null==t?n:("array"===ln(n=t)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(t){return null==t?i:("array"===ln(t)?(i=t,o=t[1]-t[0]):(i=[t,t],o=0),s)},s.scale=function(){return g.scale(s)},s.hue(n),s},g.mix=g.interpolate=Ue,g.random=function(){for(var t="#",e=0;e<6;e++)t+="0123456789abcdef".charAt(vn(16*yn()));return new p(t,"hex")},g.scale=nn,g.analyze=Sn.analyze,g.contrast=function(t,e){t=new p(t),e=new p(e);var n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},g.deltaE=function(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=1),t=new p(t),e=new p(e);for(var i=Array.from(t.lab()),o=i[0],a=i[1],s=i[2],c=Array.from(e.lab()),u=c[0],l=c[1],f=c[2],d=kn(a*a+s*s),h=kn(l*l+f*f),g=o<16?.511:.040975*o/(1+.01765*o),v=.0638*d/(1+.0131*d)+.638,y=d<1e-6?0:180*Cn(s,a)/xn;y<0;)y+=360;for(;y>=360;)y-=360;var m=y>=164&&y<=345?.56+Tn(.2*An(xn*(y+168)/180)):.36+Tn(.4*An(xn*(y+35)/180)),b=d*d*d*d,_=kn(b/(b+1900)),w=v*(_*m+1-_),O=d-h,E=a-l,S=s-f,k=(o-u)/(n*g),C=O/(r*v);return kn(k*k+C*C+(E*E+S*S-O*O)/(w*w))},g.distance=function(t,e,n){void 0===n&&(n="lab"),t=new p(t),e=new p(e);var r=t.get(n),i=e.get(n),o=0;for(var a in r){var s=(r[a]||0)-(i[a]||0);o+=s*s}return Math.sqrt(o)},g.limits=Sn.limits,g.valid=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];try{return new(Function.prototype.bind.apply(p,[null].concat(t))),!0}catch(t){return!1}},g.scales=Ln,g.colors=B,g.brewer=Dn,g}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r,i=n(13),o=n(12),a=n(15),s=n(5),c=n(2),u=n(17),l=n(49),f=n(8),d=n(3),p=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.configInit=a.a,e.coverConfig=a.b,e.imagegridConfig=a.e,e.imagePageTypes=a.d,e.imagePageSwitchTypes=a.c,e.indexConfig=a.f,e.indexTypesConfig=a.g,e.MESSAGES=u.a,e.pageConfig=a.i,e.pageTypesConfig=a.l,e.scrollConfig=a.m,e.siteConfig=a.n,e.slideshowConfig=a.o,e.textConfig=a.p,e.pageIconsConfig=a.j,e.timeoutStarted=!1,e.tagInput="",e.AllTags=[],e.allTextTags=[],e}return p(e,t),Object.defineProperty(e.prototype,"getSite",{get:function(){return this.$store.getters.getSite()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getPage",{get:function(){return this.$store.getters.getCurrentPage()||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getPageOrItemPage",{get:function(){return this.getItemPage?this.getItemPage:this.getPage},enumerable:!1,configurable:!0}),e.prototype.getPageById=function(t){return this.$store.getters.getPageById(t)},Object.defineProperty(e.prototype,"getItemPage",{get:function(){return this.$store.getters.getCurrentItemPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItemPage",{get:function(){return this.$route.params.item_page_id},enumerable:!1,configurable:!0}),e.prototype.pageData=function(t){return this.$store.getters.getPageById(t)},Object.defineProperty(e.prototype,"pageChildren",{get:function(){var t=this;return this.getPage&&this.getPage.childIds&&null!==this.getPage.childIds?this.getPage.childIds.map((function(e){return t.pageData(e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageSet",{get:function(){if(this.getPageOrItemPage.setId)return this.getSetById(this.getPageOrItemPage.setId)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstUse",{get:function(){return this.$store.getters.getPages().length<=o.c},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){var t;return(null===(t=this.$store.getters.getUser())||void 0===t?void 0:t.preferences.theme)||o.b},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unsavedSiteChanges",{get:function(){return this.$store.getters.getUnsavedSite()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemPage",{get:function(){return Boolean(this.getItemPage)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBackgroundColor",{get:function(){return this.isItemPage?this.getItemPage.backgroundColor||this.getPageById(this.getItemPage.parent_id).backgroundColor||Object(f.e)(this.getSite):this.getPage.backgroundColor||Object(f.a)(Object(f.e)(this.getSite),this.getPage.invertColors)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTextColor",{get:function(){return this.isItemPage?this.getItemPage.textColor||this.getPageById(this.getItemPage.parent_id).textColor||Object(f.a)(Object(f.g)(this.getSite),this.getItemPage.invertColors):this.getPage.textColor||Object(f.a)(Object(f.g)(this.getSite),this.getPage.invertColors)},enumerable:!1,configurable:!0}),e.prototype.getAsset=function(t){var e;return null===(e=this.getSite.assets)||void 0===e?void 0:e.find((function(e){return e.type===t}))},e.prototype.getSetById=function(t){return this.$store.getters.getSetById(t)},e.prototype.isCollectionPage=function(){return this.getPage&&"index"===this.getPage.type&&!this.getPage.stacked&&"submenu"!==this.getPage.menu_representation},e.prototype.isSubmenuType=function(){return"index"===this.getPage.type&&"submenu"===this.getPage.menu_representation},e.prototype.isCollectionOrStacked=function(){return Boolean("index"===this.getPage.type||this.isStackPage())},e.prototype.isStackPage=function(){return this.getPage.stacked},e.prototype.isBlogPage=function(){return this.isStackPage()&&this.getPage.indexLayout===d.j.Blog},e.prototype.isImagePage=function(t){return!!t&&this.imagePageTypes.includes(t)},e.prototype.isPageType=function(t){return this.getPage.subtype?t===this.getPage.subtype:"collection"===t?this.isCollectionPage():"submenu"===t?this.isSubmenuType():t===this.getPage.type},e.prototype.showImageDetails=function(){return!(this.isCollectionPage()||this.isStackPage())},e.prototype.currentPageId=function(t){var e;return"string"!=typeof t?(null===(e=this.getItemPage)||void 0===e?void 0:e.id)||this.getPage.id:void 0!==t?t:void 0},e.prototype.currentBlankPageLayout=function(){return this.isStackPage()?this.getPage.indexLayout:""},e.prototype.isBlankPageGrid=function(){return"Grid"===this.currentBlankPageLayout()},e.prototype.updateParentPage=function(t,e){this.updatePage(t,e,this.getPage.id)},e.prototype.updatePage=function(t,e,n){console.log("updatePage",t,e,n),this.$store.commit(c.fb,{pageId:this.currentPageId(n),key:t,value:e}),this.$store.commit(c.rb,!0)},e.prototype.updatePageAutoplay=function(t,e,n){console.log("updatePageAutoplay",t,e,n),this.$store.commit(c.fb,{pageId:this.currentPageId(n),key:"videoControls",value:!0}),this.updatePage(t,e,n)},e.prototype.dispatchPageAttribute=function(t,e){var n=this;t&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){return n.$store.dispatch(s.y,{page:n.getPageById(t),changes:e})}),500))},e.prototype.updateSite=function(t,e){this.$store.commit(c.hb,{key:t,value:e}),this.$store.commit(c.rb,!0)},e.prototype.updateSiteAttributes=function(t,e,n){var r;this.$store.commit(c.ib,((r={})[t]=e,r.layoutVariation=n,r)),this.$store.commit(c.rb,!0)},e.prototype.createAsset=function(t,e){this.$store.dispatch(s.a,{type:t,data:e})},e.prototype.deleteAsset=function(t){this.$store.dispatch(s.b,{type:t})},e.prototype.setPageTitle=function(t,e,n){this.updateMenu(t,e,n),this.dispatchPageAttribute(this.currentPageId(n),{title:e})},e.prototype.updateMenu=function(t,e,n){this.$store.getters.getMenuItemById(this.currentPageId(n))[t]=e},e.prototype.openModal=function(t,e){this.$store.commit(c.c,t);var n={};n[t]=e,e&&this.$store.commit(c.d,n)},e.prototype.closeModal=function(){this.$store.commit(c.t),this.$store.commit(c.d,{})},e.prototype.closeModals=function(){this.$store.commit(c.u),this.$store.commit(c.d,{})},e.prototype.openInfoModal=function(t){this.$store.commit(c.b,t)},e.prototype.isModalOpen=function(t){return this.$store.getters.activeModals().includes(t)},e.prototype.notification=function(t,e){this.$store.dispatch(c.P,{message:t,error:e})},e.prototype.activePanel=function(t){return this.$store.getters.activeSiteEditTab()===t},e.prototype.textEditToolbarFocusToggle=function(){var t=!this.$store.getters.activeTextEditorToolbar();this.$store.commit(c.k,t)},e.prototype.lastSetId=function(){var t=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(this.$store.state.sets).reverse();return t.length>0?t[t.length-1].id:void 0},e.prototype.openColorPicker=function(t){this.$store.commit(c.h,t),this.$store.commit(c.c,"colorpicker")},e.prototype.openOrganizer=function(t){this.closeModals();var e;e=t?{id:this.getPage.id,set_id:t,page_item_id:this.getItemPage&&this.getItemPage.id}:this.getPage.setId?{id:this.getPage.id,set_id:this.getPage.setId}:{id:this.getPage.id,set_id:this.lastSetId()},this.$router.push({name:"organizer",params:e}).catch()},e.prototype.publish=function(){this.$store.dispatch(s.v,{page:this.getPageOrItemPage}).then()},e.prototype.fetchTags=function(){var t=this,e=this.$store.getters.getPages();null==e||e.forEach((function(e){var n=e.tags;return null==n?void 0:n.some((function(e){var n=e.text;t.allTextTags.includes(n)||(t.allTextTags.push(n),t.AllTags.push({text:n}))}))}))},Object.defineProperty(e.prototype,"tag",{get:function(){return this.tagInput},set:function(t){this.tagInput=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.getPageOrItemPage.tags||[]},set:function(t){this.updatePage("tags",this.toLower(t))},enumerable:!1,configurable:!0}),e.prototype.toLower=function(t){return null==t?void 0:t.map((function(t){return t.text=t.text.toLowerCase(),t}))},e.prototype.tagAutocomplete=function(){var t,e,n,r=this;return(null===(t=this.tagInput)||void 0===t?void 0:t.length)<1?[]:(0===(null===(e=this.AllTags)||void 0===e?void 0:e.length)&&this.fetchTags(),null===(n=this.AllTags)||void 0===n?void 0:n.filter((function(t){return-1!==t.text.indexOf(r.tag)})))},e.prototype.fotomatDomain=function(){return"https://"+this.$store.getters.getLiveDomain()+"."+o.h},e.prototype.customDomain=function(){return this.getSite.domains.length>0&&this.getSite.domainName},e.prototype.pagePath=function(){var t,e=this.getPage;return e.homepage?"/":"overlay"===e.menu_representation?"/"+e.path.slice(0,-((null===(t=e.slug)||void 0===t?void 0:t.length)||0))+"overlay/"+e.path:"/"+e.path},e.prototype.pageUrl=function(){return this.customDomain()?"https://"+this.customDomain()+this.pagePath():this.fotomatDomain()+this.pagePath()},e.prototype.openLivePage=function(){var t=this.getSite.liveUntil?this.pageUrl():o.o+"?url="+this.pageUrl();window.open(t,"_blank")},e.prototype.deletePage=function(t){var e;if(void 0!==t){var n=this.getPageById(t);if(n){var r=this.getPageById(n.parent_id);if("index"===n.type&&!n.stacked&&n.childIds&&n.childIds.length>0){var i=u.a.DELETE_INDEX_PAGE_WARNING+" "+n.title;window.alert(i)}else i=u.a.DELETE_PAGE_MESSAGE+" "+n.title+"?",r&&r.stacked&&(i=u.a.DELETE_PAGE_ITEM_MESSAGE),window.confirm(i)&&(this.$store.dispatch(s.e,{siteId:this.getSite.id,pageId:t}),(null===(e=this.getPage)||void 0===e?void 0:e.id)===n.id&&this.$router.push({name:"homepage"}).catch())}}},e.prototype.hasAsset=function(t){var e;return!!(null===(e=this.getAsset(t))||void 0===e?void 0:e.src)},function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([Object(i.b)({name:"AdminBaseComponent"})],e)}(Object(i.c)(l.a))},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"s",(function(){return i})),n.d(e,"r",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"i",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"w",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"j",(function(){return g})),n.d(e,"f",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"v",(function(){return m})),n.d(e,"t",(function(){return b})),n.d(e,"u",(function(){return _})),n.d(e,"o",(function(){return w})),n.d(e,"y",(function(){return O})),n.d(e,"z",(function(){return E})),n.d(e,"A",(function(){return S})),n.d(e,"x",(function(){return k})),n.d(e,"g",(function(){return C})),n.d(e,"l",(function(){return T})),n.d(e,"q",(function(){return A})),n.d(e,"d",(function(){return x}));var r="AW-1067793808",i="pk_live_tu2OUPk4qzZXAQ65IKDY4NPa",o=["card"],a="35b58ca8-9420-4807-b9a5-6b1609b7f7b8",s="dark",c=8,u="onfotomat.com",l=5,f=.9,d=.95,p=.9,h=.94,g=.8,v=20,y=14,m="https://support.onfotomat.com/micro-tutorials",b=m+"/custom-domain",_="support@onfotomat.com",w="/sign",O=["auto","dark","light","destijl"],E=500,S={small:750,medium:1366},k=[{alpha:0,position:"0%"},{alpha:1,position:"100%"}],C={XXS:512,XS:768,S:1024,M:1536,L:2048},T=!1,A=!1,x={cover_image:!0,duration:10,filesize:0,height:708,hidden:!1,id:"e5ee04c0-f7a7-43d9-9f1e-b682a15d799d",orientation:"Landscape",original_filename:"",poster_position:0,position:0,private:!1,set_id:"",src:{hls:"https://stream.mux.com/nlruImsCYuWHyFnuzndio7RKa3qURXEU.m3u8",poster:"https://image.mux.com/nlruImsCYuWHyFnuzndio7RKa3qURXEU/thumbnail.jpg?time=0.0"},status:"ready",type:"video",weight:3,width:1260}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return f}));var r=n(1);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 o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function s(t,e){c(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){c(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){c(t,e,n)}))}function c(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var i=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,i,t,n):Reflect.defineMetadata(r,i,t)}))}var u={__proto__:[]}instanceof Array;function l(t){return function(e,n,r){var i="function"==typeof e?e:e.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(e){return t(e,n,r)}))}}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.a.extend({mixins:e})}function d(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var i={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(i[t]=r[t])})),i}var p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(p.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"==typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return o({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return d(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var c=Object.getPrototypeOf(t.prototype),u=c instanceof r.a?c.constructor:r.a,l=u.extend(e);return v(l,t,u),a()&&s(l,t),l}var g={prototype:!0,arguments:!0,callee:!0,caller:!0};function v(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!g[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var a,s,c=Object.getOwnPropertyDescriptor(e,r);if(!u){if("cid"===r)return;var l=Object.getOwnPropertyDescriptor(n,r);if(s=i(a=c.value),null!=a&&("object"===s||"function"===s)&&l&&l.value===c.value)return}Object.defineProperty(t,r,c)}}}))}function y(t){return"function"==typeof t?h(t):function(e){return h(e,t)}}y.registerHooks=function(t){p.push.apply(p,function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t))},e.b=y},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c}));var r=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/,i=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o=function(t,e,n){return n?t?t.split("/"):void 0:e},a=function(t,e){var n=null==t?void 0:t.params.overlay_page_id;if(void 0!==n){var r=Array.isArray(n)?n.join("/"):n;return r===(null==e?void 0:e.path)||r===e.id}return!1},s=function(t){return(e=t)?null!==e.match(i)?"mailto:"+e:null!==e.match(r)?e:"":"";var e},c=function(t,e,n){return"small"===n&&"overlay"===(null==t?void 0:t.menu_representation)?"page":(null==e?void 0:e.params.overlay_page_id)===(null==t?void 0:t.path)?"overlay":null==t?void 0:t.menu_representation}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"n",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"o",(function(){return d})),n.d(e,"p",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"l",(function(){return g})),n.d(e,"k",(function(){return v})),n.d(e,"g",(function(){return y})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return b})),n.d(e,"j",(function(){return _}));var r=n(6),i=n(3),o={columns:Object.values(i.y),layouts:Object.values(i.l),layoutVariations:Object.values(i.s),textColumns:["One","Two"]},a={blockGutters:Object.values(i.A),contentSize:Object.values(i.z),contentAlignment:Object.values(i.d).filter((function(t){return"Right"!==t})).filter((function(t){return"Justified"!==t})),showContentBackground:[{label:"Enabled",value:!0},{label:"Disabled",value:!1}],typographySizes:Object.values(i.B),logoType:Object.values(i.n),logoSize:Object.values(i.y).filter((function(t){return"XS"!==t})),linkDecoration:Object.values(i.m),cursor:Object.values(i.b).filter((function(t){return"text"!==t}))},s={alignment:Object.values(i.d).filter((function(t){return"Justified"!==t})),contentSize:Object.values(i.x),contentSizeTypeText:[!0,!1],contentTextSize:Object.values(i.C),descriptionAlignment:Object.values(i.d).filter((function(t){return"Justified"!==t})),layoutDirection:Object.values(i.k),rowDescriptionAlignment:Object.values(i.a),textVerticalAlignment:Object.values(i.a),viewerImageTitleEnabled:[!0,!1],viewerBackstoryEnabled:[!0,!1],viewerCaption:[!0,!1],viewerCount:[!0,!1],viewerSize:Object.values(i.x)},c={coverTextSize:Object.values(i.B),coverMediaSize:Object.values(i.x),coverMediaFit:Object.values(i.t),coverMediaAutoPlay:[!0,!1],coverMediaNavigation:[!0,!1]},u={coverMediaFit:Object.values(i.t),imagegridAlignments:Object.values(i.a),imagegridCaptionEnabled:[!0,!1],imagegridColumns:Object.values(i.y),imagegridLayouts:Object.values(i.f),imagegridGutters:Object.values(i.A),imagegridHorizontalAlign:Object.values(i.d).filter((function(t){return"Center"!==t&&"Right"!==t})),imagegridRatios:Object.values(i.h),imagegridRatioOrientation:Object.values(i.u),imagegridViewerEnabled:[!0,!1]},l={indexLayouts:Object.values(i.j),indexTextMediaSize:Object.values(i.A),indexTextSize:Object.values(i.y).filter((function(t){return"XS"!==t})),indexTextLayouts:Object.values(i.F),indexTextVerticalAlignment:Object.values(i.a),indexGridItemWidth:Object.values(i.c),indexGridItemGrow:[!0,!1]},f={horizontalscrollAligns:Object.values(i.a),horizontalCaptionEnabled:[!0,!1],horizontalscrollGutters:Object.values(i.A),horizontalscrollSizes:Object.values(i.x),horizontalscrollTypes:Object.values(i.e),horizontalViewerEnabled:[!0,!1]},d={showDescription:[{label:"show",value:!0},{label:"hide",value:!1}],slideshowShowCaption:[{label:"Show",value:!0},{label:"Hide",value:!1}],slideshowShowCount:[{label:"Show",value:!0},{label:"Hide",value:!1}],slideshowSize:Object.values(i.x),slideshowRatio:["auto","4:3","16:9"],coverMediaFit:Object.values(i.t)},p={textImageEnabled:[{label:"show",value:!0},{label:"hide",value:!1}],textMedia:Object.values(i.o)},h={200:"Saved",204:"Deleted",422:"Could not process call",500:"Something went wrong on the server"},g={grid:{name:"grid",icon:r.k.grid},row:{name:"row",icon:r.k.row},slideshow:{name:"slideshow",icon:r.k.slideshow},cover:{name:"cover",icon:r.k.image},text:{name:"blank",icon:r.k.textBlock},index:{name:"page collection",icon:r.k.gridContained},submenu:{name:"sub-menu",icon:r.k.subMenu},link:{name:"external link",icon:r.k.link}},v={text:{name:"text",icon:r.k.text},image:{name:"image",icon:r.k.image},slideshow:{name:"slideshow",icon:r.k.slideshow},grid:{name:"grid",icon:r.k.grid}},y={Text:{name:"text",icon:r.k.text},Grid:{name:"grid",icon:r.k.grid}},m=Object.values(i.g),b=Object.values(i.g).filter((function(t){return"cover"!==t&&"image"!==t})),_=Object.values(i.v)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(10),i=n.n(r),o=n(70),a=n.n(o),s=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},c=function(){function t(){}return t.hexInput=function(t){return/(^#?[\da-f]{6}$)|(^#?[\da-f]{3}$)/i.test(t)},t.isCoolColor=function(t){if(!this.hexInput(t))return!1;var e=i()(t).get("hsl.h");return e>60&&e<300},t.isLowKeyValue=function(t){if(!this.hexInput(t))return!1;var e=i()(t).get("hsl.h");return e>30&&e>140},t.colorDarkness=function(t){if(this.hexInput(t)){var e=i()(t).luminance();switch(!0){case e>=.65:return"light";case e>.15:return"neutral";default:return"dark"}}},t.colorLuminance=function(t){var e=i()(t).get("hsl.l");switch(!0){case e>=.6:return"light";case e>.25:return"neutral";default:return"dark"}},t.highestContrastIndex=function(t,e){return e.map((function(e){return i.a.contrast(t,e)})).reduce((function(t,e,n,r){return e>r[t]?n:t}),0)},t.mostReadableTextColor=function(t,e){var n=this.readableColors(t,e),r=[],i=0;if(n.length>2){for(;i<4;){var o=this.highestContrastIndex(t,n);r.push(n[o]),n.splice(o,1),i++}return r}return n[this.highestContrastIndex(t,n)]},t.readableColors=function(t,e){var n=this;return Array.isArray(e)?e.filter((function(e){return i.a.contrast(t,e)>=n.readableContrast})):i.a.contrast(t,e)>=this.readableContrast},t.complementaryColor=function(t){if(!this.hexInput(t))throw new Error("unknown color #{color}");var e=(i()(t).get("hsl.h")+180)%360;return i()(t).set("hsl.h",e)},t.mixComplementary=function(t,e){return i.a.mix(t,this.complementaryColor(t),e)},t.contrastingTextColor=function(t,e,n){if(void 0===n&&(n=0),this.hexInput(t),this.readableColors(t,e))return e;var r;switch(this.colorDarkness(t)){case"light":case"neutral":r=i()(e).darken(.5).hex();break;case"dark":r=i()(e).brighten(.5).hex();break;default:r=e}return!this.readableColors(t,r)&&n<20?(n++,this.contrastingTextColor(t,r,n)):r},t.makeDarkerOrLighter=function(t,e,n){var r=i()(t).get("hsl.l");return i()(e).get("hsl.l")>r?i()(n).brighten(1).hex():i()(n).darken(1).hex()},t.closeHueVariants=function(t){if(!this.hexInput(t))return[];for(var e=[],n=[],r=1,o=i()(t).get("hsl.h");r<=6;){var a=i()(t).set("hsl.h",o+2*r);e.push(a.hex());var c=i()(t).set("hsl.h",o-2*r);n.push(c.hex()),r++}return s(n,e)},t.paletteColorVariations=function(t){return this.closeHueVariants(t)},t.makeSLRange=function(t,e,n,r,o,a){void 0===n&&(n=14),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=100);for(var s=a/n,c=[],u=0;u<=n;){var l=i()(e).set(t,0+u*s);c.push(l.hex()),u++}return r>0&&c.splice(0,r),o>0&&c.splice(-1,o),c},t.paletteLightness=function(t,e,n,r){return void 0===e&&(e=14),void 0===n&&(n=0),void 0===r&&(r=0),this.makeSLRange("hcl.l",t,e,n,r,140).filter((function(t,e,n){return e===n.indexOf(t)}))},t.paletteSaturation=function(t,e,n,r){return void 0===e&&(e=14),void 0===n&&(n=0),void 0===r&&(r=0),this.makeSLRange("hcl.c",t,e,n,r).filter((function(e){return e!==t}))},t.paletteIntensity=function(t){var e=i.a.scale([t,i()(t).saturate(2)]).colors(4).reverse(),n=i.a.scale([t,i()(t).saturate(-2)]).colors(4);return s(e,n)},t.paletteTemperature=function(t){return[]},t.paletteComplementary=function(t){return[]},t.colorWheel=function(t,e,n){void 0===t&&(t=20),void 0===e&&(e=50),void 0===n&&(n=50);for(var r=[],o=0,a=t;o<=18&&o*a<=360;)r.push(i()(o*a,e,n,"hcl").hex()),o++;return r.shift(),r},t.readableContrast=10,t.convert=function(t){return i()(t)},t.invert=function(e){return t.convert(a()(t.toRgb(e)))},t.transparentize=function(t,e){return t.alpha(e)},t.transparentizeFromString=function(e,n){return t.transparentize(t.convert(e),n)},t.darken=function(e,n){return t.convert(e).darken(n)},t.brighten=function(e,n){return t.convert(e).brighten(n)},t.toRgb=function(t){return t.rgba()},t.toCss=function(t){return t.css()},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={CONNECTION_CHANNEL_ERROR:"Connection error",CONNECTION_CHANNEL_TIMEOUT:"Connection timed out",CONNECTION_SOCKET_CLOSED:"Connection unavailable",OFFLINE_NOTICE:"Internet connection is offline",ONLINE_NOTICE:"Internet connection is online",CONTENT_SIZE:"For this page 'Content Size' is set on the Page.",COVER_IMAGE_IS_SET:"Cover image changed",DELETE_INDEX_PAGE_WARNING:"Remove all pages to delete",DELETE_PAGE_ITEM_MESSAGE:"Do you want to delete the selected item?",DELETE_PAGE_MESSAGE:"Do you want to delete page",DNS_INVALID:"Domain DNS isn’t set up properly.",DNS_VALID:"All set. Your domain goes live.",COUPON_VALID:"Discount applied",COUPON_INVALID:"Invalid coupon",EDIT_BILLING_DETAILS:"Edit Billing",ENTER_BILLING_DETAILS:"Enter Billing Details",FILL_OUT_ALL_FIELDS:"Please fill out all fields",GA_NOT_VALID:"Google Analytics ID not valid",HIDE_IMAGE:"Image hidden",MENU_MAX_DEPTH:"Menus go max 2 deep.",MENU_SUBMENU_CONSTRAINT:"Can't add a Submenu here.",NEED_SUPPORT:'Need help? Visit our&nbsp;<a href="https://support.onfotomat.com" target="_blank">support site.</a>',PAGE_CREATED:"Page is created",PAGE_UNSAVED_CHANGES:"has unsaved changes",PAGE_UPDATED:"Changes saved",PAYMENT_GATEWAY_ERROR:"ERROR: Could not contact Payment Gateway . Please contact support@onfotomat.com.",PUBLISH_CHANGES:"save changes",PUBLISH_SITE_CHANGES:"save site changes",PUBLISHED_IMAGE:"Image online",PUBLISHED_PAGE:"Online",SAVED:"Changes saved",SITE_UNSAVED_CHANGES:"Site has unsaved changes",SITE_UPDATED:"Changes saved",SUBSCRIPTION_STATUS_ACTIVE:"Your site is live!",SUBSCRIPTION_STATUS_NONE:"Your site is Private. Subscribe to go Public.",SUBSCRIPTION_CREATED:"Thanks for subscribing!",SUBSCRIPTION_PAYMENT_FAILED:"Payment failed.",SUBSCRIPTION_CANCELED:"Subscription cancelled",SUBSCRIPTION_INTERVAL_CHANGED:"Subscription plan changed",UNHIDE_IMAGE:"Image visible ",UNPUBLISHED_IMAGE:"Image offline",UNPUBLISHED_PAGE:"Offline"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r,i=n(1),o=n(0),a=n(22),s=n(52),c=n.n(s),u=n(3),l=n(12),f=(n(59),n(4)),d=n(6),p=n(9),h=n(103),g=n.n(h),v=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.site=e.$liveSite?e.$initialdata.site:e.$store.getters.getSite(),e.VideoPlayerIcons=d.m,e.loading=!0,e.minMaxIcon=e.VideoPlayerIcons.maximize,e.playPauseIcon=e.VideoPlayerIcons.play,e.playing=!1,e.showPoster=!0,e.volumeIcon=e.VideoPlayerIcons.volume,e.bottomControlsVisible=!1,e.controlsActivity=!1,e.controlsVisible=!1,e.currentPercentage=0,e.currentVolume=1,e.displaySeekTime="0:00",e.displayTime="0:00",e.isLong=!1,e.isMuted=!1,e.saveVolume=0,e.scrubBarActivity=!1,e.seekPosition=0,e.seekTimePercentage=0,e.seeking=!1,e.userActive=!1,e.userActivity=!1,e.videoDuration=0,e.videoIconVisible=!1,e.isFullscreen=!1,e.fullscreenSupported=!1,e.fullScreenEnabled=!!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled||document.createElement("video").webkitFullscreenEnabled||document.createElement("video").webkitEnterFullscreen),e}return v(e,t),e.prototype.boolToString=function(t){if(this.autoplay)return t},e.prototype.showControls=function(){this.controlsVisible=this.controlsEnabled},e.prototype.hideControls=function(){this.controlsVisible=this.showPoster||this.seeking},e.prototype.play=function(){this.videoEl.play()},e.prototype.pause=function(){this.videoEl.pause()},e.prototype.togglePlay=function(){this.playing?this.pause():this.play()},e.prototype.toggleAutoplay=function(){this.autoplay?this.play():this.pause()},e.prototype.calculatePercentage=function(t){return t/this.videoDuration*100},e.prototype.formatTime=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600),s="-",c="-",u="-";return isNaN(t)&&t===1/0||(u=i>0||a>0?i+":":"",c=((i||o>=10)&&r<10?"0"+r:""+r)+":",s=n<10?"0"+n:""+n),u+c+s},e.prototype.setVideoIcon=function(){this.videoIconVisible=!this.autoplay&&this.showVideoIcon},e.prototype.initializeVideo=function(){this.setVideoIcon(),this.autoplay||this.showControls(),this.autoplay&&this.mute(),this.showPoster=!this.autoplay,this.videoDuration=this.videoEl.duration,this.loading=!1,this.isLong=Math.floor(this.videoDuration/3600)>0,this.displayTime=this.formatTime(this.videoDuration,this.videoDuration),this.bottomControlsVisible=this.seeking||this.compactUi||this.autoplay},e.prototype.updateSeekPosition=function(t){var e=t.target;this.seekPosition=t.offsetX/e.clientWidth*this.videoDuration,this.displaySeekTime=this.formatTime(this.seekPosition,this.videoDuration),this.seekTimePercentage=this.calculatePercentage(this.seekPosition)},e.prototype.startSeeking=function(){this.seeking=!0,this.seekPosition=this.seekPosition+1e-6},e.prototype.endSeeking=function(){this.seeking=!1},e.prototype.seek=function(){var t=this;this.currentPercentage=this.calculatePercentage(this.seekPosition),this.seekActivityTimeout&&clearTimeout(this.seekActivityTimeout),cancelAnimationFrame(this.progressBarAnimationFrame),this.seekActivityTimeout=setTimeout((function(){t.videoEl.currentTime=t.seekPosition,t.updateProgress()}),200)},e.prototype.nullVolume=function(){this.saveVolume=this.currentVolume,this.currentVolume=0},e.prototype.restoreVolume=function(){this.currentVolume=this.saveVolume},e.prototype.toggleMute=function(){this.isMuted=!this.isMuted,this.isMuted?this.nullVolume():this.restoreVolume(),this.volumeEl.value=""+this.currentVolume,this.volumeIcon=this.isMuted?this.VideoPlayerIcons.muted:this.VideoPlayerIcons.volume},e.prototype.mute=function(){this.isMuted=!0,this.nullVolume(),this.volumeEl.value=""+this.currentVolume,this.volumeIcon=this.VideoPlayerIcons.muted},e.prototype.updateVolume=function(t){var e=t.target;this.currentVolume=e?parseFloat(null==e?void 0:e.value):0,this.isMuted=!1},e.prototype.fullscreenButtonIcon=function(t){this.minMaxIcon=t?this.VideoPlayerIcons.minimize:this.VideoPlayerIcons.maximize},e.prototype.updateProgress=function(){this.currentPercentage=this.calculatePercentage(this.videoEl.currentTime),this.displayTime=this.formatTime(this.videoEl.currentTime,this.videoDuration),this.progressBarAnimationFrame=requestAnimationFrame(this.updateProgress)},e.prototype.pointerMove=function(){this.userActivity=!0},e.prototype.checkActivity=function(){var t=this;this.activityCheckTimeout=setInterval((function(){(t.userActivity||t.controlsActivity)&&(t.userActivity=!1,t.controlsActivity=!1,!1===t.userActive&&(t.userActive=!0),clearTimeout(t.inactivityTimeout),t.inactivityTimeout=setTimeout((function(){t.controlsActivity||t.userActivity||(t.controlsActivity=!1,t.userActive=!1)}),2e3))}),250)},e.prototype.controlsPointerOver=function(){this.controlsActivity=!0},e.prototype.controlsPointerLeave=function(){this.controlsActivity=!1},e.prototype.scrubPointerOver=function(){this.scrubBarActivity=!0},e.prototype.scrubPointerLeave=function(){this.endSeeking(),this.scrubBarActivity=!1},e.prototype.handleFullscreen=function(){this.isFullScreen()?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.setFullscreenData(!1)):(this.$el.requestFullscreen?this.$el.requestFullscreen():this.$el.mozRequestFullScreen?this.$el.mozRequestFullScreen():this.$el.webkitRequestFullScreen?this.$el.webkitRequestFullScreen():this.videoEl.webkitEnterFullscreen?this.videoEl.webkitEnterFullscreen():this.videoEl.enterFullscreen?this.videoEl.enterFullscreen():this.$el.msRequestFullscreen&&this.$el.msRequestFullscreen(),this.setFullscreenData(!0))},e.prototype.isFullScreen=function(){return!!(document.fullScreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)},e.prototype.setFullscreenData=function(t){this.$el.setAttribute("data-fullscreen",""+t),this.fullscreenButtonIcon(t)},e.prototype.mounted=function(){var t=this;this.videoIconVisible=this.showVideoIcon,this.setVideoIcon(),this.$nextTick((function(){t.videoEl=t.$el.querySelector("video"),t.volumeEl=t.$el.querySelector(".video-Volume"),t.checkActivity(),t.videoEl.addEventListener("webkitendfullscreen",(function(){t.setFullscreenData(!!document.webkitIsFullScreen)}))})),document.addEventListener("fullscreenchange",(function(){t.setFullscreenData(!(!document.fullScreen&&!document.fullscreenElement))})),document.addEventListener("webkitfullscreenchange",(function(){t.setFullscreenData(!!document.webkitIsFullScreen)})),document.addEventListener("mozfullscreenchange",(function(){t.setFullscreenData(!!document.mozFullScreen)})),document.addEventListener("msfullscreenchange",(function(){t.setFullscreenData(!!document.msFullscreenElement)}))},e.prototype.onVideoAutoplayChanged=function(){this.toggleAutoplay(),this.showPoster=!this.autoplay,this.hideControls(),this.setVideoIcon()},e.prototype.onPlayingChanged=function(){this.playPauseIcon=this.playing?this.VideoPlayerIcons.pause:this.VideoPlayerIcons.play,this.playing&&(this.showPoster=!1),this.playing||this.autoplay||this.showControls(),this.bottomControlsVisible=!this.minimalControls&&!this.showPoster,this.updateProgress(),this.playing||cancelAnimationFrame(this.progressBarAnimationFrame)},e.prototype.onUserActivity=function(){this.userActive?this.showControls():this.hideControls()},e.prototype.onControlsEnabledChanged=function(){this.playing||this.showControls()},e.prototype.onIsMutedChanged=function(){this.videoEl.muted=this.isMuted},e.prototype.onCurrentVolumeChanged=function(){this.videoEl.volume=this.currentVolume},e.prototype.onSeekPositionChanged=function(){!this.seeking||this.seek()},y([Object(o.b)({type:Boolean,default:!0}),m("design:type",Boolean)],e.prototype,"controlsEnabled",void 0),y([Object(o.b)({type:Boolean,default:!1}),m("design:type",Boolean)],e.prototype,"minimalControls",void 0),y([Object(o.b)({type:Boolean,default:!1}),m("design:type",Boolean)],e.prototype,"compactUi",void 0),y([Object(o.b)({type:Boolean,default:!0}),m("design:type",Boolean)],e.prototype,"autoplay",void 0),y([Object(o.b)({type:String,default:""}),m("design:type",String)],e.prototype,"poster",void 0),y([Object(o.b)({type:Boolean,default:!1}),m("design:type",Boolean)],e.prototype,"showVideoIcon",void 0),y([Object(o.c)("autoplay"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onVideoAutoplayChanged",null),y([Object(o.c)("playing"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onPlayingChanged",null),y([Object(o.c)("userActive"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onUserActivity",null),y([Object(o.c)("controlsEnabled"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onControlsEnabledChanged",null),y([Object(o.c)("isMuted"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onIsMutedChanged",null),y([Object(o.c)("currentVolume"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onCurrentVolumeChanged",null),y([Object(o.c)("seekPosition"),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],e.prototype,"onSeekPositionChanged",null),y([g.a,Object(o.a)({name:"VideoPlayerComponent",components:{"icon-base":p.g},inheritAttrs:!1})],e)}(i.a),_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(){return(w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},O=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},E=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.imageData={id:"",set_id:"",type:"photo",status:"",width:0,height:0,original_filename:"",position:0,src:"",weight:0},e.itemHeight="",e.itemWidth="",e.src="",e.intersected=!1,e.isLoading=!0,e.isPlaceholder=!1,e.itemResizeObserver=void 0,e.hls=void 0,e}return _(e,t),e.prototype.imgTemplate=function(){return this.$createElement("img",{class:{hyperimage:!0,loading:this.isLoading,placeholder:this.isPlaceholder},key:this.imageId,attrs:{id:this.domId,src:this.imgSrc,alt:this.imageData.name,"data-image-id":this.imageId,"data-image-size":this.size,"data-status":this.status,"data-js-stack-select":"data-js-stack-select"}})},e.prototype.hasDimensions=function(){return this.itemWidthHeightStyles.height.length>0||this.itemWidthHeightStyles.width.length>0},e.prototype.posterImage=function(){return this.scaleVideo?this.hasDimensions()?this.image.src.poster:this.placeholderCoverImage(1,1):this.image.src.poster},e.prototype.videoTemplate=function(){return this.$createElement(b,{key:this.image.id,ref:"videoTemplate",attrs:{compactUi:this.compactUi,minimalControls:this.minimalControls,style:this.itemWidthHeightStyles,autoplay:this.videoAutoplay,id:this.domId,playsinline:!0,poster:this.posterImage(),controlsEnabled:this.videoControlsEnabled,preload:"metadata",showVideoIcon:this.showVideoIcon,"data-image-id":this.image.id,"data-image-size":this.size,"data-js-stack-select":"data-js-stack-select","data-poster-position":this.image.poster_position,"data-src":this.videoSrc,"data-status":this.status}})},e.prototype.render=function(){switch(this.imageData.type){case"photo":return this.imgTemplate();case"video":return this.inlinevideo?this.videoTemplate():this.imgTemplate()}},Object.defineProperty(e.prototype,"imageId",{get:function(){return this.imageData?this.imageData.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"domId",{get:function(){return this.name+this.imageData.type+this.imageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imgSrc",{get:function(){return this.src||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemWidthHeightStyles",{get:function(){return{width:this.itemWidth,height:this.itemHeight}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoSrc",{get:function(){return this.intersected?this.imageData.src.hls:""},enumerable:!1,configurable:!0}),e.prototype.stringOrBooleanAttr=function(t,e){return!!e&&t},e.prototype.placeholder=function(t,e,n){return"data:image/svg+xml;utf8, %3Csvg width='"+t+"' height='"+e+"' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill-opacity='0.07' fill='"+encodeURIComponent(n||"grey")+"'%3E%3C/rect%3E%3C/svg%3E"},e.prototype.placeholderCoverImage=function(t,e){return"data:image/svg+xml;utf8, %3Csvg width='"+t/10+"' height='"+e/10+"' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill-opacity='0.15' fill='grey'%3E%3C/rect%3E%3Ctext y='50'%3E%3Ctspan x='50%25' y='50%25' text-anchor='middle' style='font-size: 36px; font-family: Arial;' fill='grey'%3ENo cover image set%3C/tspan%3E%3C/text%3E%3C/svg%3E"},e.prototype.itemResizer=function(t,e){var n=this,r=this.imageData.width,i=this.imageData.height;this.itemResizeObserver=new a.a((function(t){window.requestAnimationFrame((function(){if(Array.isArray(t)&&t.length)for(var o=0,a=t;o<a.length;o++){var s=a[o].contentRect,c=s.width,u=s.height,l=u||e.offsetHeight,f=c,d=f/r,p=r/i;0===u&&(l=e.offsetHeight>0?e.offsetHeight:f*p);var h=l/i;d*i<l||n.scaleVideoWidthOnly?(n.itemWidth=f+"px",n.itemHeight=d*i+"px"):(n.itemWidth=h*r+"px",n.itemHeight=l+"px")}}))})),this.itemResizeObserver.observe(e)},Object.defineProperty(e.prototype,"hlsSupport",{get:function(){return this.$hlsSupport},enumerable:!1,configurable:!0}),e.prototype.loadPosterImage=function(){var t=this;this.imageData&&(this.src=this.placeholder(this.imageData.width,this.imageData.height),this.imgLoader=new Image,this.imgLoader.onload=function(){t.src=t.imageData.src.poster,t.isLoading=!1},this.isLoading=!0,this.imgLoader.src=this.imageData.src.poster)},e.prototype.videoIntersectionCallback=function(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];r.intersectionRatio>=this.intersectionTreshold?this.videoAutoplay&&r.target.play().catch((function(){})):r.target.pause()}},e.prototype.loadVideo=function(){var t=this;if(this.inlinevideo){this.videoEl=this.$el.querySelector("video");var e=this.$el.parentElement,n=this.videoSrc;if(!this.$hlsSupport&&c.a.isSupported()){var r=new c.a;r.loadSource(n),setTimeout((function(){r.attachMedia(t.videoEl)}),200),this.hls=r,this.videoAutoplay&&(this.videoEl.muted=!0)}else this.videoEl&&(this.videoEl.src=this.videoSrc);this.scaleVideo&&e&&this.itemResizer(this.videoEl,e);var i={root:null,rootMargin:"0px",threshold:this.intersectionTreshold},o=new IntersectionObserver(this.videoIntersectionCallback,i);this.videoEl instanceof Element&&o.observe(this.videoEl),this.videoEl.addEventListener("ended",(function(){t.videoAutoplay||(t.videoEl.currentTime=0)})),this.videoAutoplay&&this.videoEl.addEventListener("timeupdate",(function(e){var n=e.target.currentTime/e.target.duration*100;n>Math.round(1)&&(t.videoStarted=!0),0===Math.round(n)&&t.videoStarted&&(t.videoStarted=!1,f.a.$emit("VIDEO_ENDED",t.image.id))}))}else this.loadPosterImage()},e.prototype.loadPlaceHolder=function(){this.imageData.coverPlaceholder?this.src=this.placeholderCoverImage(this.imageData.width,this.imageData.height):this.src=this.placeholder(this.imageData.width,this.imageData.height,this.imageData.color)},e.prototype.imageSizeDpr1=function(t,e){var n=t.findIndex((function(t){return t>=e}));return t[n]},e.prototype.imageSizeClosest=function(t,e){return t.reduce((function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}))},e.prototype.photoSourceSize=function(){var t=l.g,e=window.devicePixelRatio||1,n=this.$el.clientWidth*e,r=Object.values(t),i=1===e?this.imageSizeDpr1(r,n):this.imageSizeClosest(r,n);return Object.keys(t)[Object.values(t).indexOf(i)]},e.prototype.photoSourceQuery=function(t){var e,n=t||this.photoSourceSize(),r=(e={s:"L"!==n||this.ratio?n:null,r:this.ratio},Object.keys(e).map((function(t){return e[t]?t+"="+e[t]:null})).filter(Boolean).join("&"));return r?"?"+r:""},e.prototype.photoSizeProp=function(){var t=this.photoSourceQuery(this.size||"M");return""+this.imageData.src+t},e.prototype.photoSource=function(){return this.dynamicSizeAndDpr?""+this.imageData.src+this.photoSourceQuery():this.photoSizeProp()},e.prototype.loadPhoto=function(){var t=this;if("placeholder"===this.imageData.id)return this.isLoading=!1,void(this.isPlaceholder=!0);this.imgLoader=new Image,this.imgLoader.src=this.photoSource(),this.imgLoader.complete||this.loadPlaceHolder(),this.imgLoader.onload=function(){t.src=t.photoSource(),t.isLoading=!1}},e.prototype.loadAsset=function(){var t=this;switch(this.imageData.type){case"photo":this.loadPhoto();break;case"video":"ready"===this.imageData.status?this.$nextTick((function(){return t.loadVideo()})):this.loadPlaceHolder();break;default:return}},e.prototype.lazyLoaderCallback=function(t){for(var e=0,n=t;e<n.length;e++)n[e].intersectionRatio>0&&(this.intersected=!0,this.loadAsset(),this.$el instanceof Element&&this.imageObserver.unobserve(this.$el))},e.prototype.setupLazyLoader=function(t){var e=2*window.innerHeight,n={root:t,rootMargin:"0px "+2*window.innerWidth+"px "+e+"px 0px",threshold:.01};this.imageObserver=new IntersectionObserver(this.lazyLoaderCallback,n),this.$el instanceof Element&&this.imageObserver.observe(this.$el)},e.prototype.initLazyLoader=function(){var t=this.lazyLoadRoot?document.querySelector(this.lazyLoadRoot):null;this.setupLazyLoader(t)},e.prototype.resetSizes=function(){this.itemWidth="",this.itemHeight=""},e.prototype.destroyHls=function(){this.hls&&(this.hls.destroy(),this.hls=void 0)},e.prototype.init=function(){var t=this;this.imageData=w({},this.image),this.imageSizeData=this.size,this.imageData&&(this.resetSizes(),this.destroyHls(),this.usePlaceholder&&this.loadPlaceHolder(),this.lazyLoad||(this.intersected=!0,this.loadAsset()),this.$nextTick((function(){t.lazyLoad&&setTimeout((function(){return t.initLazyLoader()}),100),t.fullScreen&&t.$el.addEventListener("click",t.handleFullScreen)})))},e.prototype.onImageChange=function(){this.$el instanceof Element&&this.imageObserver&&this.imageObserver.unobserve(this.$el),this.imageData&&this.image.status!==this.imageData.status&&"ready"===this.image.status&&(this.imageData.status=this.image.status,this.imageData.src=this.image.src,this.loadAsset()),!this.inlinevideo&&this.imageData&&this.image.poster_position!==this.imageData.poster_position&&(this.imageData.poster_position=this.image.poster_position,this.imageData.src=this.image.src,this.loadPosterImage()),this.image.id!==this.imageData.id&&this.init()},e.prototype.onSizeChange=function(){this.imageSizeData!==this.size&&(this.imageSizeData=this.size,this.loadAsset())},e.prototype.onRatioChange=function(){this.imageRatioData!==this.ratio&&(this.imageRatioData=this.ratio,this.loadAsset())},e.prototype.launchIntoFullscreen=function(t){t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitEnterFullScreen?t.webkitEnterFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},e.prototype.handleFullScreen=function(){var t=this.$el.querySelector("video");this.launchIntoFullscreen(t)},e.prototype.onFullScreenChange=function(){this.fullScreen&&"video"===this.imageData.type&&this.$el.addEventListener("click",this.handleFullScreen)},e.prototype.beforeUpdate=function(){this.imageData&&this.image.status!==this.imageData.status&&"preview"===this.image.status&&(this.imageData.preview=this.image.preview,this.imageData.preview&&(this.src=this.imageData.preview)),this.$liveSite&&this.$el.addEventListener("contextmenu",(function(t){t.preventDefault()}))},e.prototype.handleResize=function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){!t.isLoading&&t.windowSize<window.innerWidth&&(t.loadPhoto(),t.windowSize=window.innerWidth)}),200)},e.prototype.created=function(){this.imageData=this.image,this.imageSizeData=this.size,this.imageRatioData=this.ratio},e.prototype.mounted=function(){this.init(),this.dynamicSizeAndDpr&&(this.windowSize=window.innerWidth,window.addEventListener("resize",this.handleResize))},e.prototype.beforeDestroy=function(){this.itemResizeObserver&&(this.itemResizeObserver.disconnect(),this.itemResizeObserver=void 0),this.destroyHls(),this.$el.removeEventListener("contextmenu",(function(t){t.preventDefault()})),this.$el.removeEventListener("click",this.handleFullScreen)},O([Object(o.b)({type:String,required:!0}),E("design:type",String)],e.prototype,"name",void 0),O([Object(o.b)(Object),E("design:type",Object)],e.prototype,"image",void 0),O([Object(o.b)(String),E("design:type",String)],e.prototype,"status",void 0),O([Object(o.b)({type:String,default:u.i.M}),E("design:type",String)],e.prototype,"size",void 0),O([Object(o.b)({type:String,required:!1}),E("design:type",String)],e.prototype,"ratio",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"dynamicSizeAndDpr",void 0),O([Object(o.b)({type:Boolean,default:!0}),E("design:type",Boolean)],e.prototype,"inlinevideo",void 0),O([Object(o.b)({type:Boolean,default:!0}),E("design:type",Boolean)],e.prototype,"videoAutoplay",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"scaleVideo",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"videoControlsEnabled",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"scaleVideoWidthOnly",void 0),O([Object(o.b)({type:Number,default:1}),E("design:type",Number)],e.prototype,"intersectionTreshold",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"lazyLoad",void 0),O([Object(o.b)({type:String,default:null}),E("design:type",Object)],e.prototype,"lazyLoadRoot",void 0),O([Object(o.b)({type:Boolean,default:!0}),E("design:type",Boolean)],e.prototype,"usePlaceholder",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"fullScreen",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"minimalControls",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"compactUi",void 0),O([Object(o.b)({type:Boolean,default:!1}),E("design:type",Boolean)],e.prototype,"showVideoIcon",void 0),O([Object(o.c)("image"),E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],e.prototype,"onImageChange",null),O([Object(o.c)("size"),E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],e.prototype,"onSizeChange",null),O([Object(o.c)("ratio"),E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],e.prototype,"onRatioChange",null),O([Object(o.c)("fullScreen"),E("design:type",Function),E("design:paramtypes",[]),E("design:returntype",void 0)],e.prototype,"onFullScreenChange",null),O([Object(o.a)({name:"ImageLoader"})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3),i=function(t){return t.orientation===r.u.Landscape?"landscape":"portrait"}},function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s}));var r={assets:"assets",background_color:"backgroundColor",content_alignment:"contentAlignment",content_background_color:"contentBackgroundColor",content_background_enabled:"showContentBackground",content_size:"contentSize",content_text_color:"contentTextColor",cursor:"cursor",custom_font_styles:"customFontStyles",domain:"domainName",domains:"domains",ga_id:"ga_id",gtm_id:"gtm_id",highlight_color:"highlightColor",highlight_transparency:"highlightTransparency",homepage_id:"homepage_id",icon_src:"iconSrc",id:"id",layout:"layout",layout_columns_gutter:"blockGutters",layout_variation:"layoutVariation",link_active_color:"linkActiveColor",link_color:"linkColor",link_decoration:"linkDecoration",live_until:"liveUntil",logo_size:"logoSize",logo_type:"logoType",logotype_bold:"logotypeBold",logotype_color:"logotypeColor",logotype_wrap:"logotypeWrap",metadata:"metadata",mobile_header_enabled:"mobileHeaderEnabled",page_transition:"pageTransition",public:"public",subdomain:"subdomain",text_color:"textColor",title:"title",typography_font:"typography",typography_size:"typographySize",typography_size_mono:"typographySizeMono",video_player_ui_background_color:"videoPlayerUiBackgroundColor",video_player_ui_color:"videoPlayerUiColor"},i={alignment:"alignment",background_color:"backgroundColor",browser_title:"browser_title",child_ids:"childIds",content_size:"contentSize",content_size_type_text:"contentSizeTypeText",content_text_size:"contentTextSize",cover_image:"cover_image",cover_media_autoplay:"coverMediaAutoPlay",cover_media_fit:"coverMediaFit",cover_media_navigation:"coverMediaNavigation",cover_media_size:"coverMediaSize",cover_text_color:"coverTextColor",cover_text_size:"coverTextSize",cta_label:"ctaLabel",cta_overlay:"ctaOverlay",cta_page_id:"ctaPageId",cta_url:"ctaUrl",description_alignment:"descriptionAlignment",description_content:"descriptionContent",description_enabled:"showDescription",do_not_index:"doNotIndex",hide_text_in_menu:"hideTextInMenu",horizontal_viewer_enabled:"horizontalViewerEnabled",horizontalscroll_align:"horizontalscrollAlign",horizontalscroll_caption_enabled:"horizontalCaptionEnabled",horizontalscroll_gutters:"horizontalscrollGutters",horizontalscroll_layout:"horizontalscrollType",horizontalscroll_size:"horizontalscrollSize",icon:"icon",id:"id",image:"image",image_id:"image_id",image_item_caption_enabled:"imageItemItemCaptionEnabled",imagegrid_align:"imagegridAlign",imagegrid_caption_enabled:"imagegridCaptionEnabled",imagegrid_columns:"imagegridColumns",imagegrid_gutters:"imagegridGutters",imagegrid_horizontal_align:"imagegridHorizontalAlign",imagegrid_layout:"imagegridLayout",imagegrid_ratio:"imagegridRatio",imagegrid_ratio_orientation:"imagegridRatioOrientation",imagerid_viewer_enabled:"imagegridViewerEnabled",index_caption_enabled:"indexCaptionEnabled",index_grid_item_grow:"indexGridItemGrow",index_grid_item_width:"indexGridItemWidth",index_layout:"indexLayout",index_text_layout:"indexTextLayout",index_text_media_size:"indexTextMediaSize",index_text_size:"indexTextSize",index_text_vertical_alignment:"indexTextVerticalAlignment",invert_colors:"invertColors",layout_direction:"layoutDirection",link_page_url:"link_page_url",location:"location",logo_disabled:"logoDisabled",menu_disabled:"menuDisabled",menu_id:"menu_id",menu_representation:"menu_representation",meta_description:"meta_description",page_title:"pageTitle",parent_id:"parent_id",part_of_stacked_page:"part_of_stacked_page",path:"path",position:"position",published:"published",published_at:"published_at",rank:"rank",row_description_alignment:"rowDescriptionAlignment",set_id:"setId",site_id:"site_id",slideshow_ratio:"slideshowRatio",slideshow_show_backstory_enabled:"slideshowShowBackstoryEnabled",slideshow_show_caption_enabled:"slideshowShowCaption",slideshow_item_caption_enabled:"slideshowItemCaptionEnabled",slideshow_show_count_enabled:"slideshowShowCount",slideshow_show_image_title_enabled:"slideshowShowImageTitleEnabled",slideshow_size:"slideshowSize",slideshow_transition:"slideshowTransition",slug:"slug",stacked:"stacked",subtype:"subtype",summary:"summary",tags:"tags",text_color:"textColor",text_columns:"textColumns",text_content1:"textContent1",text_content2:"textContent2",text_enabled:"textEnabled",text_image_enabled:"textImageEnabled",text_media:"textMedia",text_media_video_url:"textMediaVideoURL",text_vertical_alignment:"textVerticalAlignment",title:"title",type:"type",video_autoplay:"videoAutoplay",video_controls:"videoControls",video_loop:"videoLoop",viewer_backstory_enabled:"viewerBackstoryEnabled",viewer_caption_enabled:"viewerCaption",viewer_count_enabled:"viewerCount",viewer_image_title_enabled:"viewerImageTitleEnabled",viewer_size:"viewerSize",viewer_video_autoplay:"viewerVideoAutoplay",order_date:"orderDate"},o=function(t,e){var n={},r=t?Object.entries(t):void 0;return null==r||r.forEach((function(t){n[e[t[0]]]=t[1]})),n},a=function(t,e){return t||e?o(t,e):{}},s=function(t,e){return t||e?(n=e,e=Object.keys(n).reduce((function(t,e){var r=n[e];return t[r]=t[r]||[],t[r].push(e),t}),{}),o(t,e)):{};var n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e,n){var r=[[8,6],[6,8]],i=Array.from(Array(t).keys()),o=function(){for(var t="#",e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t};return i.map((function(){var t=r[Math.floor(Math.random()*r.length)];return{id:"placeholder",src:"",width:1e3*t[0],height:1e3*t[1],type:"photo",coverPlaceholder:e,color:n?o():"grey"}}))}},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&c()}function s(){o(a)}function c(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,20);i=t}return c}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),u=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},l=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},f=v(0,0,0,0);function d(t){return parseFloat(t)||0}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}var h="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof l(t).SVGGraphicsElement}:function(t){return t instanceof l(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return r?h(t)?function(t){var e=t.getBBox();return v(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var r=l(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=d(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=d(r.width),c=d(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=p(r,"left","right")+o),Math.round(c+a)!==n&&(c-=p(r,"top","bottom")+a)),!function(t){return t===l(t).document.documentElement}(t)){var u=Math.round(s+o)-e,h=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(h)&&(c-=h)}return v(i.left,i.top,s,c)}(t):f}function v(t,e,n,r){return{x:t,y:e,width:n,height:r}}var y=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),m=function(t,e){var n,r,i,o,a,s,c,l=(r=(n=e).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);u(this,{target:t,contentRect:l})},b=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new m(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,w=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(e,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){w.prototype[t]=function(){var e;return(e=_.get(this))[t].apply(e,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:w;e.a=O}).call(this,n(27))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r,i=n(1),o=n(0),a=n(78),s=n.n(a),c=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),Object.defineProperty(e.prototype,"svg",{get:function(){return this.icon.svg},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewbox",{get:function(){return("viewbox"in this.icon?this.icon.viewbox:"")||"0 0 20 20"},enumerable:!1,configurable:!0}),u([Object(o.b)({type:Number,default:20}),l("design:type",Number)],e.prototype,"width",void 0),u([Object(o.b)({type:Number,default:20}),l("design:type",Number)],e.prototype,"height",void 0),u([Object(o.b)({type:String,default:"currentColor"}),l("design:type",String)],e.prototype,"fill",void 0),u([Object(o.b)({type:Object,required:!0}),l("design:type",Object)],e.prototype,"icon",void 0),u([Object(o.b)({type:String,default:""}),l("design:type",String)],e.prototype,"label",void 0),u([s.a,Object(o.a)({name:"IconBaseComponent"})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r={HelveticaNeue:{name:"HelveticaNeue",displayName:"Helvetica Neue",CSSName:"Helvetica Neue",family:"sans"},GTAmerica:{name:"GTAmerica",displayName:"GT America",CSSName:"GT America",family:"sans"},IBMPlexSans:{name:"IBMPlexSans",displayName:"Plex",CSSName:"IBM Plex Sans",family:"sans"},Lato:{name:"Lato",displayName:"Lato",CSSName:"Lato",family:"sans"},Jost:{name:"Jost",displayName:"Jost",CSSName:"Jost*",family:"sans"},GTWalsheim:{name:"GTWalsheim",displayName:"GT Walsheim",CSSName:"GT Walsheim",family:"sans"},GTHaptik:{name:"GTHaptik",displayName:"GT Haptik",CSSName:"GT Haptik",family:"sans",selected:!0},GTPressura:{name:"GTPressura",displayName:"GT Pressura",CSSName:"GT Pressura",family:"sans",selected:!0},BentonSans:{name:"BentonSans",displayName:"Benton Sans",CSSName:"Benton Sans RE",family:"sans"},Scout:{name:"Scout",displayName:"Scout",CSSName:"Scout RE",family:"sans"},CrimsonText:{name:"CrimsonText",displayName:"Crimson Text",CSSName:"Crimson Text",family:"serif"},Times:{name:"Times",displayName:"Times New Roman",CSSName:"Times New Roman",family:"serif"},Palatino:{name:"Palatino",displayName:"Palatino",CSSName:"Palatino",family:"serif"},Spectral:{name:"Spectral",displayName:"Spectral",CSSName:"Spectral",family:"serif"},LibreBaskerville:{name:"LibreBaskerville",displayName:"Baskerville",CSSName:"Libre Baskerville",family:"serif"},Giza:{name:"Giza",displayName:"Giza",CSSName:"Giza RE",family:"serif"},CustomFont:{name:"CustomFont",displayName:"Custom Font",CSSName:"CustomFont",family:"sans-serif"}},i={name:"HelveticaNeue"},o={untitledSans:{name:"untitledSans",displayName:"Untitled Sans",CSSName:"Untitled Sans",family:"sans"},Graphik:{name:"Graphik",displayName:"Graphik",CSSName:"Graphik",family:"sans"},ProximaNova:{name:"ProximaNova",displayName:"Proxima Nova",CSSName:"ProximaNova",family:"sans"}}},function(t,e,n){(function(e){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),c=n(47),u=n(48),l=n(49),f=n(12),d=n(32),p=n(33),h=n(31),g=n(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:c.default,Inline:s.default,Text:l.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=v},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},c={},u={},l={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),"string"==typeof t)n=l[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=l.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?n=l.block:t&a.LEVEL&a.INLINE&&(n=l.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=c[r[i]])break;n=n||u[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o("Unable to create "+t+" blot");var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(l[r.blotName||r.attrName]=r,"string"==typeof r.keyName)s[r.keyName]=r;else if(null!=r.className&&(c[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(t){null!=u[t]&&null!=r.className||(u[t]=r)}))}return r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),c=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};c.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},c.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},c.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},c.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},c.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},c.prototype.filter=function(t){return this.ops.filter(t)},c.prototype.forEach=function(t){this.ops.forEach(t)},c.prototype.map=function(t){return this.ops.map(t)},c.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},c.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},c.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},c.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},c.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new c(n)},c.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}for(var u=new c(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var l=Math.min(e.peekLength(),n.peekLength()),f=e.next(l),d=n.next(l);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=l:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&i(u.ops[u.ops.length-1],p)){var g=new c(e.rest());return u.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&u.push(d)}return u.chop()},c.prototype.concat=function(t){var e=new c(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},c.prototype.diff=function(t,e){if(this.ops===t.ops)return new c;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new c,u=r(n[0],n[1],e),l=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,l.peekLength()),l.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(l.peekLength(),f.peekLength(),e);var s=l.next(n),c=f.next(n);i(s.insert,c.insert)?o.retain(n,a.attributes.diff(s.attributes,c.attributes)):o.push(c).delete(n)}e-=n}})),o.chop()},c.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new c,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new c}}r.length()>0&&t(r,{},i)},c.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s.delete)continue;u.delete?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},c.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=c},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return void 0===e||n.call(t,e)},c=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,l,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(e=arguments[d]))for(n in e)r=u(f,n),f!==(i=u(e,n))&&(h&&i&&(s(i)||(o=a(i)))?(o?(o=!1,l=r&&a(r)?r:[]):l=r&&s(r)?r:{},c(f,{name:n,newValue:t(h,l,i)})):void 0!==i&&c(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),c=f(n(16)),u=f(n(6)),l=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(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)}var g=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=s.default.create(v.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(s.default.Embed);g.scope=s.default.Scope.BLOCK_BLOT;var v=function(t){function e(t){d(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return h(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),y(e))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:y(t.parent,e))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,s.default.Embed,l.default],e.bubbleFormats=y,e.BlockEmbed=g,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=v(n(2)),s=v(n(14)),c=v(n(8)),u=v(n(9)),l=v(n(0)),f=n(15),d=v(f),p=v(n(3)),h=v(n(10)),g=v(n(34));function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),_=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m(this,t),this.options=w(e,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=l.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(t){t===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(c.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;O.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),h.default.level(t)}},{key:"find",value:function(t){return t.__quill||l.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&b.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||b.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?l.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return O.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(l.default.query(t,l.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,c.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,c=E(t,e,n,r,o),u=i(c,4);return t=u[0],e=u[1],a=u[2],o=u[3],O.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,c=E(t,e,n,r,o),u=i(c,4);return t=u[0],e=u[1],a=u[2],o=u[3],O.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return O.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,c=E(t,0,n,r,o),u=i(c,4);return t=u[0],a=u[2],o=u[3],O.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return O.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=E(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return O.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function w(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==_.DEFAULTS.theme){if(e.theme=_.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=g.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=_.import("modules/"+e);return null==n?b.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},_.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function O(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===c.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=S(i,s,e):0!==r&&(i=S(i,n,r,e)),this.setSelection(i,c.default.sources.SILENT)),s.length()>0){var u,l,f=[c.default.events.TEXT_CHANGE,s,o,e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(f)),e!==c.default.sources.SILENT&&(l=this.emitter).emit.apply(l,f)}return s}function E(t,e,n,i,o){var a={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=i,i=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||c.default.sources.API]}function S(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var u=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==c.default.sources.USER)})),l=i(u,2);o=l[0],s=l[1]}else{var d=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===c.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=c.default.events,_.sources=c.default.sources,_.version="1.3.7",_.imports={delta:a.default,parchment:l.default,"core/module":u.default,"core/theme":g.default},e.expandConfig=w,e.overload=E,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(t,n);o&&s.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);l.allowedChildren=[l,a.default.Embed,o.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=l},function(t,e,n){"use strict";var r;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(((r=n(0))&&r.__esModule?r:{default:r}).default.Text);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var c=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(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)}(e,t),r(e,[{key:"emit",value:function(){s.log.apply(s,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var u,l;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(c(t)){if(!c(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=i(t),d=i(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(l=f[u],!a(t[l],e[l],n))return!1;return typeof t==typeof e}(t,e,n))};function s(t){return null==t}function c(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),c=f(n(4)),u=f(n(6)),l=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(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)}var g=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),e}(u.default);g.blotName="code",g.tagName="CODE";var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(l.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,c=o-a+1,u=this.isolate(a,c),l=u.next;u.format(r,i),l instanceof e&&l.formatAt(0,t-a+n-c,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(l.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(c.default);v.blotName="code-block",v.tagName="PRE",v.TAB="  ",e.Code=g,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=y(n(2)),s=y(n(20)),c=y(n(0)),u=y(n(13)),l=y(n(24)),f=n(4),d=y(f),p=y(n(16)),h=y(n(21)),g=y(n(11)),v=y(n(3));function y(t){return t&&t.__esModule?t:{default:t}}var m=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,h.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,h.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new a.default)}(t)).reduce((function(t,a){var u=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),t>=o&&!p.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,p);var h=e.scroll.line(t),g=i(h,2),y=g[0],m=g[1],b=(0,v.default)({},(0,f.bubbleFormats)(y));if(y instanceof d.default){var _=y.descendant(c.default.Leaf,m),w=i(_,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(w))}l=s.default.attributes.diff(b,l)||{}}else if("object"===r(a.insert)){var O=Object.keys(a.insert)[0];if(null==O)return t;e.scroll.insertAt(t,O,a.insert[O])}o+=u}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,u,n,l[n])})),t+u}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof u.default){var s=t-e.offset(n.scroll),c=e.newlineIndex(s+a)-s+1;e.formatAt(s,c,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,h.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof d.default?n.push(e):e instanceof c.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(c.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=_((0,f.bubbleFormats)(n),e)}return e}));return v.default.apply(v.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===d.default.blotName&&!(t.children.length>1)&&t.children.head instanceof p.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],c=o[1],l=0,f=new a.default;null!=s&&(l=s instanceof u.default?s.newlineIndex(c)-c+1:s.length()-c,f=s.delta().slice(c,c+l-1).insert("\n"));var d=this.getContents(t,e+l).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(t).concat(d);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(m)&&c.default.find(e[0].target)){var i=c.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),u=e[0].oldValue.replace(l.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(i.value()),h=(new a.default).retain(s).concat(d.diff(p,n));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,g.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function _(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n(0)),a=u(n(21)),s=u(n(11)),c=u(n(8));function u(t){return t&&t.__esModule?t:{default:t}}function l(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=(0,u(n(10)).default)("quill:selection"),p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},h=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)})),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.TEXT_CHANGE&&e.length()>0&&r.update(c.default.sources.SILENT)})),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(c.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(c.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],c=a[1];if(null==s)return null;var u=s.position(c,!0),l=r(u,2);i=l[0],c=l[1];var f=document.createRange();if(e>0){f.setStart(i,c);var d=this.scroll.leaf(t+e),p=r(d,2);if(s=p[0],c=p[1],null==s)return null;var h=s.position(c,!0),g=r(h,2);return i=g[0],c=g[1],f.setEnd(i,c),f.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(c<i.data.length?(f.setStart(i,c),f.setEnd(i,c+1)):(f.setStart(i,c-1),f.setEnd(i,c),v="right"),y=f.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),c>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),c=s.offset(e.scroll);return 0===a?c:s instanceof o.default.Container?c+s.length():c+s.index(i,a)})),a=Math.min(Math.max.apply(Math,l(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(l(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(t){if(!g(this.root,t.startContainer)||!t.collapsed&&!g(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),c=r(s,2),u=c[0],l=c[1],f=u.position(l,0!==n),d=r(f,2);a=d[0],l=d[1],i.push(a,l)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var c=this.scroll.line(Math.min(e.index+e.length,i));s=r(c,1)[0]}if(null!=a&&null!=s){var u=t.getBoundingClientRect();n.top<u.top?t.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(t.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e&&(n=e,e=!1),d.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,l(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],u=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var l;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[c.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(l=this.emitter).emit.apply(l,[c.default.events.EDITOR_CHANGE].concat(d)),t!==c.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),t}();function g(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=n(0))&&r.__esModule?r:{default:r}).default.Embed);s.blotName="break",s.tagName="BR",e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),a=n(30),s=n(1),c=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=u(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var r=u(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(a.default);function u(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=n(31),s=n(17),c=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new a.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=c.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(s.default);e.default=u},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(t){n=function(){}}try{r=Set}catch(t){r=function(){}}try{i=Promise}catch(t){i=function(){}}function o(a,c,u,l,f){"object"==typeof c&&(u=c.depth,l=c.prototype,f=c.includeNonEnumerable,c=c.circular);var d=[],p=[],h=void 0!==e;return void 0===c&&(c=!0),void 0===u&&(u=1/0),function a(u,g){if(null===u)return null;if(0===g)return u;var v,y;if("object"!=typeof u)return u;if(t(u,n))v=new n;else if(t(u,r))v=new r;else if(t(u,i))v=new i((function(t,e){u.then((function(e){t(a(e,g-1))}),(function(t){e(a(t,g-1))}))}));else if(o.__isArray(u))v=[];else if(o.__isRegExp(u))v=new RegExp(u.source,s(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(o.__isDate(u))v=new Date(u.getTime());else{if(h&&e.isBuffer(u))return v=e.allocUnsafe?e.allocUnsafe(u.length):new e(u.length),u.copy(v),v;t(u,Error)?v=Object.create(u):void 0===l?(y=Object.getPrototypeOf(u),v=Object.create(y)):(v=Object.create(l),y=l)}if(c){var m=d.indexOf(u);if(-1!=m)return p[m];d.push(u),p.push(v)}for(var b in t(u,n)&&u.forEach((function(t,e){var n=a(e,g-1),r=a(t,g-1);v.set(n,r)})),t(u,r)&&u.forEach((function(t){var e=a(t,g-1);v.add(e)})),u){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=a(u[b],g-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(b=0;b<w.length;b++){var O=w[b];(!(S=Object.getOwnPropertyDescriptor(u,O))||S.enumerable||f)&&(v[O]=a(u[O],g-1),S.enumerable||Object.defineProperty(v,O,{enumerable:!1}))}}if(f){var E=Object.getOwnPropertyNames(u);for(b=0;b<E.length;b++){var S,k=E[b];(S=Object.getOwnPropertyDescriptor(u,k))&&S.enumerable||(v[k]=a(u[k],g-1),Object.defineProperty(v,k,{enumerable:!1}))}}return v}(a,u)}function a(t){return Object.prototype.toString.call(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=function(t){return"object"==typeof t&&"[object Date]"===a(t)},o.__isArray=function(t){return"object"==typeof t&&"[object Array]"===a(t)},o.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===a(t)},o.__getRegExpFlags=s,o}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),s=p(n(8)),c=n(4),u=p(c),l=p(n(16)),f=p(n(13)),d=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function h(t){return t instanceof u.default||t instanceof c.BlockEmbed}var g=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(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)}(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],u=a[1],d=this.line(t+n),p=r(d,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=p&&s!==p&&u>0){if(s instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var v=p.children.head instanceof l.default?null:p.children.head;s.moveChildren(p,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(h,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){h(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[u.default,c.BlockEmbed,d.default],e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=g(n(21)),s=g(n(11)),c=g(n(3)),u=g(n(2)),l=g(n(20)),f=g(n(0)),d=g(n(5)),p=g(n(10)),h=g(n(9));function g(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=(0,p.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},S),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0},O)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:e.keys.DELETE},{collapsed:!1},E),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(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)}(e,t),o(e,null,[{key:"match",value:function(t,e){return e=T(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=T(t);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var c=t.quill.getSelection();if(null!=c&&t.quill.hasFocus()){var u=t.quill.getLine(c.index),l=i(u,2),d=l[0],p=l[1],h=t.quill.getLeaf(c.index),g=i(h,2),v=g[0],y=g[1],m=0===c.length?[v,y]:t.quill.getLeaf(c.index+c.length),b=i(m,2),_=b[0],w=b[1],O=v instanceof f.default.Text?v.value().slice(0,y):"",E=_ instanceof f.default.Text?_.value().slice(w):"",S={collapsed:0===c.length,empty:0===c.length&&d.length()<=1,format:t.quill.getFormat(c),offset:p,prefix:O,suffix:E};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==S.collapsed)return!1;if(null!=e.empty&&e.empty!==S.empty)return!1;if(null!=e.offset&&e.offset!==S.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==S.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=S.format[t]:!1===e.format[t]?null==S.format[t]:(0,s.default)(e.format[t],S.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(S.prefix)||null!=e.suffix&&!e.suffix.test(S.suffix)||!0===e.handler.call(t,c,S))}))&&n.preventDefault()}}}}))}}]),e}(h.default);function _(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return v(n={key:t,shiftKey:e,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var c=r.formats(),u=this.quill.getFormat(t.index-1,1);o=l.default.attributes.diff(c,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function O(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var c=this.quill.getLine(t.index+1),u=i(c,1)[0];if(u){var f=s.formats(),p=this.quill.getFormat(t.index,1);r=l.default.attributes.diff(f,p)||{},o=u.length()}}this.quill.deleteText(t.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,d.default.sources.USER)}}function E(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=l.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,d.default.sources.USER),this.quill.setSelection(t.index,d.default.sources.SILENT),this.quill.focus()}function S(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],d.default.sources.USER))}))}function k(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),c=s[0],u=s[1];if(null!=c){var l=this.quill.getIndex(c),p=c.newlineIndex(u,!0)+1,h=c.newlineIndex(l+u+o),g=c.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(e,i){t?(c.insertAt(p+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(c.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=e.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function C(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],d.default.sources.USER)}}}function T(t){if("string"==typeof t||"number"==typeof t)return T({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[m]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:C("bold"),italic:C("italic"),underline:C("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new u.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,d.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,c.default)({},r.formats(),{list:"checked"}),s=(new u.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new u.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(t.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var c=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(t.index," ",d.default.sources.USER),this.quill.history.cutoff();var l=(new u.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:c});this.quill.updateContents(l,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new u.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=s(n(0)),a=s(n(7));function s(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(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)}(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var i=this,a=0;null!=i&&i.statics.scope!==o.default.Scope.BLOCK_BLOT;)a+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=e.CONTENTS.length,i.optimize(),i.formatAt(a,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var c=[t,n.start.offset,n.end.offset];r=c[0],i=c[1],s=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(o.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([i,s].map((function(t){return Math.max(0,Math.min(r.data.length,t-1))})),2);return i=l[0],s=l[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(o.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(r.default.Container);u.allowedChildren=[o.default,i.BlockEmbed,u],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=(r=n(0))&&r.__esModule?r:{default:r};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"value",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join(""):n}}]),e}(o.default.Attributor.Style),u=new o.default.Attributor.Class("color","ql-color",{scope:o.default.Scope.INLINE}),l=new c("color","color",{scope:o.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=u,e.ColorStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=n(6))&&r.__esModule?r:{default:r}).default);function u(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=c,e.sanitize=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var c=0;function u(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var l=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),a=y(o),s=y(n(16)),c=y(n(25)),u=y(n(24)),l=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),g=y(n(42)),v=y(n(23));function y(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":c.default,"blots/cursor":u.default,"blots/embed":l.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":v.default}),r.default.register(a.default,s.default,u.default,f.default,d.default,p.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var s="\ufeff",c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(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)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(s).join("");if(t===this.leftGuard)if(this.prev instanceof o.default){var a=this.prev.length();this.prev.insertAt(a,r),e={startNode:this.prev.domNode,startOffset:a+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=s,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(i.default.Embed);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,i=(r=n(0))&&r.__esModule?r:{default:r},o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",o),s=new i.default.Attributor.Class("align","ql-align",o),c=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=a,e.AlignClass=s,e.AlignStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,i=(r=n(0))&&r.__esModule?r:{default:r},o=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,i=(r=n(0))&&r.__esModule?r:{default:r},o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",o),s=new i.default.Attributor.Class("direction","ql-direction",o),c=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=a,e.DirectionClass=s,e.DirectionStyle=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=(r=n(0))&&r.__esModule?r:{default:r};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c={scope:o.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new o.default.Attributor.Class("font","ql-font",c),l=new(function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"value",value:function(t){return function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(o.default.Attributor.Style))("font","font-family",c);e.FontStyle=l,e.FontClass=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,i=(r=n(0))&&r.__esModule?r:{default:r},o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(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)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=c(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(a(n(9)).default);function c(t){var e=t.reduce((function(t,e){return t+(e.delete||0)}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=p(n(3)),o=p(n(2)),a=p(n(8)),s=p(n(23)),c=p(n(34)),u=p(n(59)),l=p(n(60)),f=p(n(28)),d=p(n(61));function p(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(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)}var y=[!1,"center","right","justify"],m=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],_=["1","2","3",!1],w=["small",!1,"large","huge"],O=function(t){function e(t,n){h(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return v(e,t),r(e,[{key:"addModule",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&S(t,y),new l.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&S(t,m,"background"===n?"#ffffff":"#000000"),new u.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?S(t,b):t.classList.contains("ql-header")?S(t,_):t.classList.contains("ql-size")&&S(t,w)),new f.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(c.default);O.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new o.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(t){function e(t,n){h(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return v(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){s.default.match(e,"enter")?(t.save(),e.preventDefault()):s.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(d.default);function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=E,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=t-i[1],s=this.iterator(o);(r=s())&&a<t+e;){var c=r.length();t>a?n(r,t-a,Math.min(e,a+c-t)):n(r,0,Math.min(c,t+e-a)),a+=c}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)e.push(i.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[a.DATA_KEY].mutations&&(t.domNode[a.DATA_KEY].mutations=[]),e&&s(t.parent))},c=function(t){null!=t.domNode[a.DATA_KEY]&&null!=t.domNode[a.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(c),t.optimize(n))},u=e,l=0;u.length>0;l+=1){if(l>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(t){var e=a.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(a.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=a.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(c),i=(u=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)e.push(i.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=a.find(t.target,!0);return null==e?null:null==e.domNode[a.DATA_KEY].mutations?(e.domNode[a.DATA_KEY].mutations=[t],e):(e.domNode[a.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[a.DATA_KEY]&&t.update(t.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=c},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var r=a.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=a.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=a.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=a.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=a.Scope.INLINE_BLOT,e}(o.default);e.default=s},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1;function r(t,e,s){if(t==e)return t?[[0,t]]:[];(s<0||t.length<s)&&(s=null);var u=o(t,e),l=t.substring(0,u);u=a(t=t.substring(u),e=e.substring(u));var f=t.substring(t.length-u),d=function(t,e){var s;if(!t)return[[1,e]];if(!e)return[[n,t]];var c=t.length>e.length?t:e,u=t.length>e.length?e:t,l=c.indexOf(u);if(-1!=l)return s=[[1,c.substring(0,l)],[0,u],[1,c.substring(l+u.length)]],t.length>e.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,t],[1,e]];var f=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,s,c,u=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";-1!=(l=e.indexOf(u,l+1));){var d=o(t.substring(n),e.substring(l)),p=a(t.substring(0,n),e.substring(0,l));f.length<p+d&&(f=e.substring(l-p,l)+e.substring(l,l+d),r=t.substring(0,n-p),i=t.substring(n+d),s=e.substring(0,l-p),c=e.substring(l+d))}return 2*f.length>=t.length?[r,i,s,c,f]:null}var s,c,u,l,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));return d||p?(s=p?d&&d[4].length>p[4].length?d:p:d,t.length>e.length?(c=s[0],u=s[1],l=s[2],f=s[3]):(l=s[0],f=s[1],c=s[2],u=s[3]),[c,u,l,f,s[4]]):null}(t,e);if(f){var d=f[0],p=f[1],h=f[2],g=f[3],v=f[4],y=r(d,h),m=r(p,g);return y.concat([[0,v]],m)}return function(t,e){for(var r=t.length,o=e.length,a=Math.ceil((r+o)/2),s=a,c=2*a,u=new Array(c),l=new Array(c),f=0;f<c;f++)u[f]=-1,l[f]=-1;u[s+1]=0,l[s+1]=0;for(var d=r-o,p=d%2!=0,h=0,g=0,v=0,y=0,m=0;m<a;m++){for(var b=-m+h;b<=m-g;b+=2){for(var _=s+b,w=(C=b==-m||b!=m&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-b;C<r&&w<o&&t.charAt(C)==e.charAt(w);)C++,w++;if(u[_]=C,C>r)g+=2;else if(w>o)h+=2;else if(p&&(S=s+d-b)>=0&&S<c&&-1!=l[S]&&C>=(E=r-l[S]))return i(t,e,C,w)}for(var O=-m+v;O<=m-y;O+=2){for(var E,S=s+O,k=(E=O==-m||O!=m&&l[S-1]<l[S+1]?l[S+1]:l[S-1]+1)-O;E<r&&k<o&&t.charAt(r-E-1)==e.charAt(o-k-1);)E++,k++;if(l[S]=E,E>r)y+=2;else if(k>o)v+=2;else if(!p){var C;if((_=s+d-O)>=0&&_<c&&-1!=u[_]&&(w=s+(C=u[_])-_,C>=(E=r-E)))return i(t,e,C,w)}}}return[[n,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&d.unshift([0,l]),f&&d.push([0,f]),function t(e){e.push([0,""]);for(var r,i=0,s=0,c=0,u="",l="";i<e.length;)switch(e[i][0]){case 1:c++,l+=e[i][1],i++;break;case n:s++,u+=e[i][1],i++;break;case 0:s+c>1?(0!==s&&0!==c&&(0!==(r=o(l,u))&&(i-s-c>0&&0==e[i-s-c-1][0]?e[i-s-c-1][1]+=l.substring(0,r):(e.splice(0,0,[0,l.substring(0,r)]),i++),l=l.substring(r),u=u.substring(r)),0!==(r=a(l,u))&&(e[i][1]=l.substring(l.length-r)+e[i][1],l=l.substring(0,l.length-r),u=u.substring(0,u.length-r))),0===s?e.splice(i-c,s+c,[1,l]):0===c?e.splice(i-s,s+c,[n,u]):e.splice(i-s-c,s+c,[n,u],[1,l]),i=i-s-c+(s?1:0)+(c?1:0)+1):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,s=0,u="",l=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&t(e)}(d),null!=s&&(d=function(t,e){var r=function(t,e){if(0===e)return[0,t];for(var r=0,i=0;i<t.length;i++){var o=t[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(e===a)return[i+1,t];if(e<a){t=t.slice();var s=e-r,c=[o[0],o[1].slice(0,s)],u=[o[0],o[1].slice(s)];return t.splice(i,1,c,u),[i+1,t]}r=a}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=r[1],o=r[0],a=i[o],s=i[o+1];if(null==a)return t;if(0!==a[0])return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(o,2,s,a),c(i,o,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(o,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(o+2,0,[s[0],u]),c(i,o,3)}return t}(d,s)),function(t){for(var e=!1,r=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},o=2;o<t.length;o+=1)0===t[o-2][0]&&i(t[o-2][1])&&t[o-1][0]===n&&r(t[o-1][1])&&1===t[o][0]&&r(t[o][1])&&(e=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!e)return t;var a=[];for(o=0;o<t.length;o+=1)t[o][1].length>0&&a.push(t[o]);return a}(d)}function i(t,e,n,i){var o=t.substring(0,n),a=e.substring(0,i),s=t.substring(n),c=e.substring(i),u=r(o,a),l=r(s,c);return u.concat(l)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}var s=r;function c(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}s.INSERT=1,s.DELETE=n,s.EQUAL=0,t.exports=s},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==e||o&&!s[c].once||n&&s[c].context!==n)&&u.push(s[c]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=b(n(3)),s=b(n(2)),c=b(n(0)),u=b(n(5)),l=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),g=n(26),v=n(38),y=n(39),m=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,l.default)("quill:clipboard"),O="__ql-matcher",E=[[Node.TEXT_NODE,N],[Node.TEXT_NODE,j],["br",function(t,e){return x(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===A(t).fontStyle&&(n.italic=!0),r.fontWeight&&(A(t).fontWeight.startsWith("bold")||parseInt(A(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=T(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=c.default.query(t);if(null==n||"list-item"!==n.blotName||!x(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(c.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new s.default}]],S=[d.AlignAttribute,v.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),k=[d.AlignStyle,p.BackgroundStyle,g.ColorStyle,v.DirectionStyle,y.FontStyle,m.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),C=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==D)&&r.addMatcher(o,a)})),r}return function(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)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,_({},h.default.blotName,e[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],c=o[1],u=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[O]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,c);return x(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,u.default.sources.USER),e.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[O]=t[O]||[],t[O].push(s)}))}})),[e,n]}}]),e}(f.default);function T(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return T(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},_({},e,n),r.attributes))}),new s.default)}function A(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function x(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function L(t){if(0===t.childNodes.length)return!1;var e=A(t);return["block","list-item"].indexOf(e.display)>-1}function P(t,e,n){return T(n,t,!0)}function R(t,e){var n=c.default.Attributor.Attribute.keys(t),r=c.default.Attributor.Class.keys(t),i=c.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=c.default.query(e,c.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=S[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=k[e])||n.attrName!==e&&n.keyName!==e||(n=k[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=T(e,o)),e}function I(t,e){var n=c.default.query(t);if(null==n)return e;if(n.prototype instanceof c.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=T(e,n.blotName,n.formats(t)));return e}function j(t,e){return x(e,"\n")||(L(t)||e.length()>0&&t.nextSibling&&L(t.nextSibling))&&e.insert("\n"),e}function D(t,e){if(L(t)&&null!=t.nextElementSibling&&!x(e,"\n\n")){var n=t.offsetHeight+parseFloat(A(t).marginTop)+parseFloat(A(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function N(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!A(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&L(t.parentNode)||null!=t.previousSibling&&L(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&L(t.parentNode)||null!=t.nextSibling&&L(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}C.DEFAULTS={matchers:[],matchVisual:!0},e.default=C,e.matchAttributor=R,e.matchBlot=I,e.matchNewline=j,e.matchSpacing=D,e.matchText=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0};function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=n(6))&&r.__esModule?r:{default:r}).default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(2)),a=l(n(0)),s=l(n(5)),c=l(n(10)),u=l(n(9));function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=(0,c.default)("quill:toolbar"),p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");g(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)})),o):(i=d.error("Container required for toolbar",o.options),f(o,i))}return function(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)}(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var c=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var u=t.options[t.selectedIndex];c=!u.hasAttribute("selected")&&(u.value||!1)}else c=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var l=e.quill.selection.getRange(),f=r(l,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,c);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(c=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,c)),s.default.sources.USER)}else e.quill.format(n,c,s.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var c=e[o];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+c+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(u.default);function h(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function g(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)h(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):h(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=p,e.addControls=g},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(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)}(e,t),i(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(((r=n(28))&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(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)}(e,t),i(e,[{key:"selectItem",value:function(t,n){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=n(28))&&r.__esModule?r:{default:r}).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=d(n(3)),a=d(n(8)),s=n(43),c=d(s),u=d(n(27)),l=n(15),f=d(n(41));function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(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)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,n){p(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return g(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),f.default),this.tooltip=new m(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(c.default);y.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var m=function(t){function e(t,n){p(this,e);var r=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return g(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,a.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(e,n,r){if(null!=e){if(0===e.length&&r===a.default.sources.USER){var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.quill.scroll.descendant(u.default,e.index),2),o=i[0],s=i[1];if(null!=o){t.linkRange=new l.Range(e.index-s,o.length());var c=u.default.formats(o.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(s.BaseTooltip);m.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=D(n(29)),i=n(36),o=n(38),a=n(64),s=D(n(65)),c=D(n(66)),u=n(67),l=D(u),f=n(37),d=n(26),p=n(39),h=n(40),g=D(n(56)),v=D(n(68)),y=D(n(27)),m=D(n(69)),b=D(n(70)),_=D(n(71)),w=D(n(72)),O=D(n(73)),E=n(13),S=D(E),k=D(n(74)),C=D(n(75)),T=D(n(57)),A=D(n(41)),x=D(n(28)),L=D(n(59)),P=D(n(60)),R=D(n(61)),I=D(n(108)),j=D(n(62));function D(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":S.default,"formats/header":c.default,"formats/list":l.default,"formats/bold":g.default,"formats/code":E.Code,"formats/italic":v.default,"formats/link":y.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":O.default,"formats/list/item":u.ListItem,"modules/formula":k.default,"modules/syntax":C.default,"modules/toolbar":T.default,"themes/bubble":I.default,"themes/snow":j.default,"ui/icons":A.default,"ui/picker":x.default,"ui/icon-picker":P.default,"ui/color-picker":L.default,"ui/tooltip":R.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r};function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=new(function(t){function e(){return s(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class))("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=u},function(t,e,n){"use strict";var r;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(((r=n(4))&&r.__esModule?r:{default:r}).default);a.blotName="blockquote",a.tagName="blockquote",e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=n(4))&&r.__esModule?r:{default:r}).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=c(n(0)),a=c(n(4)),s=c(n(25));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(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)}var d=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==p.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(t){function e(t){u(this,e);var n=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof d)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],e.ListItem=d,e.default=p},function(t,e,n){"use strict";var r;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(((r=n(56))&&r.__esModule?r:{default:r}).default);a.blotName="italic",a.tagName=["EM","I"],e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=n(6))&&r.__esModule?r:{default:r}).default);s.blotName="script",s.tagName=["SUB","SUP"],e.default=s},function(t,e,n){"use strict";var r;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(((r=n(6))&&r.__esModule?r:{default:r}).default);a.blotName="strike",a.tagName="S",e.default=a},function(t,e,n){"use strict";var r;function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),e}(((r=n(6))&&r.__esModule?r:{default:r}).default);a.blotName="underline",a.tagName="U",e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r},s=n(27);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=["alt","height","width"],f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);f.blotName="image",f.tagName="IMG",e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=(r=n(27))&&r.__esModule?r:{default:r};function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=["height","width"],f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(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)}(e,t),i(e,[{key:"format",value:function(t,n){l.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return l.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(35)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(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)}var f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),r(e,null,[{key:"create",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var d=function(t){function e(){c(this,e);var t=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return l(e,t),r(e,null,[{key:"register",value:function(){o.default.register(f,!0)}}]),e}(a.default);e.FormulaBlot=f,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(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)}var f=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);f.className="ql-syntax";var d=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(t){function e(t,n){c(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return l(e,t),r(e,null,[{key:"register",value:function(){o.default.register(d,!0),o.default.register(f,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=d,e.default=p},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(3)),a=f(n(8)),s=n(43),c=f(s),u=n(15),l=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(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)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(t){function e(t,n){d(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return h(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new y(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),l.default)}}]),e}(c.default);v.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var y=function(t){function e(t,n){d(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],c=r.quill.getIndex(s),l=Math.min(s.length()-1,e.index+e.length-c),f=r.quill.getBounds(new u.Range(c,l));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);y.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=y,e.default=v},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n(144).Buffer)},function(t,e,n){"use strict";var r=n(48);n.d(e,"a",(function(){return r.a}));var i=n(45);n.d(e,"b",(function(){return i.a}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r,i=n(1),o=n(0),a=n(25),s=n.n(a),c=n(2),u=n(4),l=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.create=function(e){var n=t.create.call(this);return n.setAttribute("data-page-id",e.id),n.setAttribute("data-overlay",e.overlay),n.setAttribute("data-internal-link",!0),n},e.formats=function(t){var e={id:"",overlay:!1};return e.overlay=t.getAttribute("data-overlay"),e.id=t.getAttribute("data-page-id"),e},e}(s.a.import("blots/inline"));f.blotName="fotomat-link",f.tagName="span",f.className="editorLink";var d=f,p=n(69),h=n.n(p),g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(){return(v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},y=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};s.a.register(d,!0);var b=function(){return{modules:{toolbar:!1},theme:!1,formats:["bold","italic","link","underline","header","align","color","list","indent","strike","fotomat-link"],placeholder:"Start writing here.."}},_={align:!1,bold:!0,color:!1,direction:!1,header:!1,font:!1,indent:!1,italic:!1,link:!0,list:!0,size:!1,strike:!1},w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.focused=!1,e.currentRange=null,e.currentFormats={},e}return g(e,t),e.prototype.scrollingContainer=function(){return this.$refs[this.quillInstance].closest(".text-Item_Content")||void 0},e.prototype.editorConfig=function(){var t=v({},this.config);return this.placeholder&&(t.placeholder=this.placeholder),t.scrollingContainer=this.scrollingContainer(),t},e.prototype.emitEditorSelected=function(){this.$emit("editorSelected",this.focused)},e.prototype.updated=function(){this.content&&this.editor&&this.editor.setContents(this.content)},Object.defineProperty(e.prototype,"isActive",{get:function(){return this.editorId===this.activeTextEditor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeTextEditor",{get:function(){if(!this.$liveSite)return this.sidebar?this.$store.getters.activeSidebarTextEditor():this.$store.getters.activeTextEditor()},enumerable:!1,configurable:!0}),e.prototype.setActiveEditor=function(t){if(t)return this.$store.commit(c.j,""),void this.$store.commit(c.i,"");this.sidebar?this.$store.commit(c.i,this.editorId):this.$store.commit(c.j,this.editorId)},Object.defineProperty(e.prototype,"activeTextEditorToolbar",{get:function(){return this.$store.getters.activeTextEditorToolbar()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quillInstance",{get:function(){return"quill"+this.editorId},enumerable:!1,configurable:!0}),e.prototype.handleSelection=function(t){null!==t&&(this.currentRange=t,this.currentFormats=this.editor.getFormat(t))},e.prototype.disable=function(){var t=this;setTimeout((function(){t.setActiveEditor(!0),t.focused=!1,t.editor.off("selection-change",t.handleSelection),t.emitEditorSelected()}),100)},e.prototype.focusEditor=function(){var t=this;this.setActiveEditor(),"page"!==this.$store.getters.activeSiteEditTab()&&this.$store.commit(c.f,"page"),this.focused||(this.focused=!0,this.emitEditorSelected()),this.editor.focus(),this.editor.on("text-change",(function(e,n){t.$emit("textChange",t.editor.getContents(),t.name)})),this.editor.on("selection-change",this.handleSelection),this.editor.getSelection()&&(this.getSetFormats(),this.selectLink())},e.prototype.selectLink=function(){var t;if(null!==this.currentRange){if(!this.currentFormats.hasOwnProperty("link")&&!this.currentFormats.hasOwnProperty("fotomat-link"))return;var e=this.editor.getLeaf(this.currentRange.index),n=e[0],r=e[1];this.editor.setSelection(this.currentRange.index-r,null===(t=null==n?void 0:n.domNode)||void 0===t?void 0:t.length,"user")}},e.prototype.getSetFormats=function(){null!==this.currentRange&&(this.currentFormats=this.editor.getFormat(this.currentRange),u.a.$emit("TEXTEDITOR_SELECTED_FORMAT",this.currentFormats))},e.prototype.filterAttributesOnPaste=function(t){var e=t;return Object.keys(_).forEach((function(t){e&&e[t]&&!_[t]&&delete e[t]})),e},e.prototype.quillLink=function(){var t=s.a.import("formats/link");t.tagName="span",t.className="editorLink",s.a.register(t,!0)},e.prototype.init=function(){var t=this;this.$refs[this.quillInstance]&&(this.quillLink(),this.editor=new s.a(this.$refs[this.quillInstance],v(v({},this.editorConfig()),{readOnly:!1})),this.editor.clipboard.addMatcher(Node.ELEMENT_NODE,(function(e,n){var r=[];return n.ops.forEach((function(e){e.insert&&"string"==typeof e.insert&&r.push({insert:e.insert,attributes:t.filterAttributesOnPaste(e.attributes)})})),n.ops=r,n})),"delta"!==this.output?this.editor.clipboard.dangerouslyPasteHTML(this.content):this.editor.setContents(this.content),this.editor.keyboard.addBinding({key:"X",shortKey:!0,shiftKey:!0},(function(){t.editor.format("strike",t.inFormat("strike","s"))})),this.formats.map((function(e){t.editor.format(e.name,e.options)})))},e.prototype.inFormat=function(t,e){return!this.currentFormats[t]&&e},e.prototype.format=function(t,e){if(this.isActive&&null!==this.currentRange){switch(t){case"align":this.editor.format("align",e);break;case"bold":this.editor.format("bold",this.inFormat("bold","strong")),this.editor.format("italic",this.inFormat("italic",""));break;case"italic":this.editor.format("italic",this.inFormat("italic","em")),this.editor.format("bold",this.inFormat("bold",""));break;case"underline":this.editor.format("underline",this.inFormat("underline","u"));break;case"header":this.editor.format("header",e);break;case"clean":this.editor.removeFormat(this.currentRange.index,this.currentRange.length);break;default:return}this.getSetFormats()}},e.prototype.removeFormat=function(t){var e,n;this.currentFormats[t]&&null!==this.currentRange&&this.editor.removeFormat(null===(e=this.currentRange)||void 0===e?void 0:e.index,null===(n=this.currentRange)||void 0===n?void 0:n.length)},e.prototype.formatText=function(t,e){null!==this.currentRange&&this.editor.formatText(this.currentRange.index,this.currentRange.length,t,e)},e.prototype.finishFormat=function(){null!==this.currentRange&&this.editor.setSelection(this.currentRange.index,this.currentRange.length)},e.prototype.formatExternalURL=function(t){this.isActive&&(this.removeFormat("fotomat-link"),this.formatText("link",t),this.finishFormat())},e.prototype.formatInternalURL=function(t){this.isActive&&(this.removeFormat("link"),this.formatText("fotomat-link",{id:t.id,overlay:t.overlay}),this.finishFormat())},e.prototype.clearInternalURL=function(){this.removeFormat("fotomat-link"),this.finishFormat()},e.prototype.formatColor=function(t){this.isActive&&"textEditor"===this.$store.getters.activeColorPicker()&&this.isActive&&this.editor.format("color",t)},e.prototype.textEditModalOpen=function(){var t=this.$store.getters.activeModals();return t.includes("blank-page-text")||t.includes("colorpicker")||t.includes("pages")||this.$store.getters.activeTextEditorToolbar()},e.prototype.disableByClickOutside=function(){this.isActive&&(this.textEditModalOpen()||this.disable())},e.prototype.mounted=function(){var t=this;this.$liveSite||(u.a.$on("TEXTEDITOR_TOOLBAR_FORMAT",this.format),u.a.$on("TEXTEDITOR_TOOLBAR_LINK_URL",this.formatExternalURL),u.a.$on("ADD_INTERNAL_LINK_URL",this.formatInternalURL),u.a.$on("CLEAR_INTERNAL_URL",this.clearInternalURL),u.a.$on("COLOR_PICKER_COLOR_CHANGE",this.formatColor),u.a.$on("TEXTEDITOR_DESELECT",this.disable),setTimeout((function(){t.init()}),100),this.$nextTick((function(){t.$el.addEventListener("focusout",t.disableByClickOutside)})))},e.prototype.beforeDestroy=function(){this.$el.removeEventListener("focusout",this.disableByClickOutside,!0),this.setActiveEditor(!0),u.a.$off("TEXTEDITOR_TOOLBAR_FORMAT",this.format),u.a.$off("TEXTEDITOR_TOOLBAR_LINK_URL",this.formatExternalURL),u.a.$off("ADD_INTERNAL_LINK_URL",this.formatInternalURL),u.a.$off("CLEAR_INTERNAL_URL",this.clearInternalURL),u.a.$off("COLOR_PICKER_COLOR_CHANGE",this.formatColor),u.a.$off("TEXTEDITOR_DESELECT",this.disable)},y([Object(o.b)({type:String,required:!0}),m("design:type",String)],e.prototype,"editorId",void 0),y([Object(o.b)(Number),m("design:type",Number)],e.prototype,"position",void 0),y([Object(o.b)([Object,String]),m("design:type",Object)],e.prototype,"content",void 0),y([Object(o.b)({default:b}),m("design:type",Object)],e.prototype,"config",void 0),y([Object(o.b)({default:function(){return[]}}),m("design:type",Array)],e.prototype,"formats",void 0),y([Object(o.b)({default:"delta"}),m("design:type",String)],e.prototype,"output",void 0),y([Object(o.b)({type:String,required:!0}),m("design:type",String)],e.prototype,"name",void 0),y([Object(o.b)({type:Boolean,default:!1}),m("design:type",Boolean)],e.prototype,"sidebar",void 0),y([Object(o.b)({type:String}),m("design:type",String)],e.prototype,"placeholder",void 0),y([h.a,Object(o.a)({name:"QuillEditorComponent",inheritAttrs:!1})],e)}(i.a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r,i=n(1),o=n(0),a=n(6),s=n(79),c=n.n(s),u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=a.l,e.typing=!1,e.updatedValue="",e}return u(e,t),e.prototype.inputValue=function(){return this.updatedValue},e.prototype.getInputText=function(t){this.isTyping(),this.$emit("inputTextUpdate",this.name,t)},e.prototype.onEnter=function(t){this.$emit("inputTextUpdateEnter",this.name,t)},e.prototype.clear=function(){this.$emit("clear")},e.prototype.isTyping=function(){var t=this;this.typing=!0,this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.typing=!1}),1e3)},e.prototype.onValueChanged=function(){this.typing||(this.updatedValue=this.value)},e.prototype.mounted=function(){this.updatedValue=this.value,this.focus&&this.$el.childNodes[0].focus(),this.updatedValue=this.value},l([Object(o.b)(String),f("design:type",String)],e.prototype,"name",void 0),l([Object(o.b)(String),f("design:type",String)],e.prototype,"label",void 0),l([Object(o.b)(String),f("design:type",String)],e.prototype,"placeholder",void 0),l([Object(o.b)(String),f("design:type",String)],e.prototype,"value",void 0),l([Object(o.b)({type:String,default:"text"}),f("design:type",String)],e.prototype,"type",void 0),l([Object(o.b)({type:String}),f("design:type",String)],e.prototype,"pattern",void 0),l([Object(o.b)({type:Boolean,required:!1,default:!1}),f("design:type",Boolean)],e.prototype,"focus",void 0),l([Object(o.b)({type:Boolean,required:!1,default:!1}),f("design:type",Boolean)],e.prototype,"disabled",void 0),l([Object(o.b)({type:Boolean,required:!1,default:!1}),f("design:type",Boolean)],e.prototype,"clearOption",void 0),l([Object(o.c)("value"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],e.prototype,"onValueChanged",null),l([c.a,Object(o.a)({name:"InputFieldComponent"})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r,i=n(1),o=n(0),a=n(3),s=n(6),c=n(35),u=n(87),l=n.n(u),f=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=s.l,e}return f(e,t),Object.defineProperty(e.prototype,"cssClass",{get:function(){return["ui-Note_Layout-"+this.layout,"ui-Note_Variant-"+this.variant,this.dismissible?"ui-Note_Dismissible":""]},enumerable:!1,configurable:!0}),e.prototype.close=function(){this.$emit("closeNote",this.name)},d([Object(o.b)({type:String,default:"default",validator:function(t){return Object(c.a)(t,a.q)}}),p("design:type",Object)],e.prototype,"layout",void 0),d([Object(o.b)({type:String,default:"default",validator:function(t){return Object(c.a)(t,a.r)}}),p("design:type",Object)],e.prototype,"variant",void 0),d([Object(o.b)({type:Boolean,default:!1}),p("design:type",Boolean)],e.prototype,"dismissible",void 0),d([Object(o.b)({type:String,required:!0}),p("design:type",String)],e.prototype,"name",void 0),d([l.a,Object(o.a)({name:"NoteComponent",components:{}})],e)}(i.a)},function(t,e,n){t.exports=function(){"use strict";function t(e){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})(e)}function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var n=.1,r="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function s(t,e,n){return((i(e,n)*t+o(e,n))*t+a(e))*t}function c(t,e,n){return 3*i(e,n)*t*t+2*o(e,n)*t+a(e)}function u(t,e,n,r,i){var o,a,c=0;do{(o=s(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a}while(Math.abs(o)>1e-7&&++c<10);return a}function l(t,e,n,r){for(var i=0;i<4;++i){var o=c(e,n,r);if(0===o)return e;e-=(s(e,n,r)-t)/o}return e}function f(t){return t}var d=function(t,e,i,o){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===o)return f;for(var a=r?new Float32Array(11):new Array(11),d=0;d<11;++d)a[d]=s(d*n,t,i);function p(e){for(var r=0,o=1;10!==o&&a[o]<=e;++o)r+=n;--o;var s=r+(e-a[o])/(a[o+1]-a[o])*n,f=c(s,t,i);return f>=.001?l(e,s,t,i):0===f?s:u(e,r,r+n,t,i)}return function(t){return 0===t?0:1===t?1:s(p(t),e,o)}},p={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},h=!1;try{var g=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,g)}catch(t){}var v=function(t){return"string"!=typeof t?t:document.querySelector(t)},y=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++)t.addEventListener(e[i],n,!!h&&r)},m=function(t,e,n){e instanceof Array||(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],n)},b=function(t){var e=0,n=0;do{e+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:n}},_=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],w={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function O(t){w=e({},w,t)}var E=function(){var e,n,r,i,o,a,s,c,u,l,f,h,g,O,E,S,k,C,T,A,x,L,P,R,I,j,D,N=function(t){c&&(P=t,A=!0)};function M(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function F(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function B(){x=b(n),L=b(e),h&&(E=L.left-x.left+a,C=E-O),g&&(k=L.top-x.top+a,T=k-S)}function U(t){if(A)return $();I||(I=t),o||B(),j=t-I,D=Math.min(j/r,1),D=R(D),q(n,S+T*D,O+C*D),j<r?window.requestAnimationFrame(U):$()}function $(){A||q(n,k,E),I=!1,m(n,_,N),A&&f&&f(P,e),!A&&l&&l(e)}function q(t,e,n){g&&(t.scrollTop=e),h&&(t.scrollLeft=n),"body"===t.tagName.toLowerCase()&&(g&&(document.documentElement.scrollTop=e),h&&(document.documentElement.scrollLeft=n))}return function(m,b){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===t(b)?E=b:"number"==typeof b&&(E.duration=b),!(e=v(m)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+m);if(n=v(E.container||w.container),r=E.hasOwnProperty("duration")?E.duration:w.duration,o=E.hasOwnProperty("lazy")?E.lazy:w.lazy,i=E.easing||w.easing,a=E.hasOwnProperty("offset")?E.offset:w.offset,s=E.hasOwnProperty("force")?!1!==E.force:w.force,c=E.hasOwnProperty("cancelable")?!1!==E.cancelable:w.cancelable,u=E.onStart||w.onStart,l=E.onDone||w.onDone,f=E.onCancel||w.onCancel,h=void 0===E.x?w.x:E.x,g=void 0===E.y?w.y:E.y,"function"==typeof a&&(a=a(e,n)),O=F(n),S=M(n),B(),A=!1,!s){var x="body"===n.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:n.offsetHeight,L=S,I=L+x,j=k-a,D=j+e.offsetHeight;if(j>=L&&D<=I)return void(l&&l(e))}if(u&&u(e),T||C)return"string"==typeof i&&(i=p[i]||p.ease),R=d.apply(d,i),y(n,_,N,{passive:!0}),window.requestAnimationFrame(U),function(){P=null,A=!0};l&&l(e)}},S=E(),k=[];function C(t){var e=function(t){for(var e=0;e<k.length;++e)if(k[e].el===t)return k[e]}(t);return e||(k.push(e={el:t,binding:{}}),e)}function T(t){var e=C(this).binding;if(e.value){if(t.preventDefault(),"string"==typeof e.value)return S(e.value);S(e.value.el||e.value.element,e.value)}}var A={bind:function(t,e){C(t).binding=e,y(t,"click",T)},unbind:function(t){(function(t){for(var e=0;e<k.length;++e)if(k[e].el===t)return k.splice(e,1),!0})(t),m(t,"click",T)},update:function(t,e){C(t).binding=e}},x={bind:A.bind,unbind:A.unbind,update:A.update,beforeMount:A.bind,unmounted:A.unbind,updated:A.update,scrollTo:S,bindings:k},L=function(t,e){e&&O(e),t.directive("scroll-to",x),(t.config.globalProperties||t.prototype).$scrollTo=x.scrollTo};return"undefined"!=typeof window&&window.Vue&&(window.VueScrollTo=x,window.VueScrollTo.setDefaults=O,window.VueScrollTo.scroller=E,window.Vue.use&&window.Vue.use(L)),x.install=L,x}()},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid-Contained grid-Cover grid-Irregular",attrs:{"data-imagegrid-ratio":t.orientation}},[t._l(t.getGridImages,(function(e,r){return n("figure",{key:r,staticClass:"grid-Item image-Item_Content",class:t.imageWeightClass(e),attrs:{"data-unpublished":t.published(e),"data-object-fit-support":t.supportsObjectFit||"false"}},[e?n("div",{staticClass:"grid-Image",style:t.objectFitFallbackImage(e)},[n("div",{staticClass:"grid-Image_Figure",attrs:{"data-object-fit-support":t.supportsObjectFit||"false"}},[n("navigation-link",{staticClass:"grid-Item_ViewerLink",attrs:{route:t.routeLink(e,r),url:t.externalLink(e)}}),t._v(" "),n("image-loader",{key:"column_item_image_loader_"+e.id+"_"+r,attrs:{dynamicSizeAndDpr:!0,fullScreen:t.fullScreen(),image:e,intersectionTreshold:.25,lazyLoad:!0,lazyLoadRoot:t.lazyLoadContainer,ratio:t.orientation,scaleVideo:t.scaleVideo,showVideoIcon:t.showVideoIcon(),size:t.imageSize,videoAutoplay:t.page.videoAutoplay,videoControlsEnabled:t.showVideoControls(),name:"grid"}})],1)]):t._e(),t._v(" "),e&&t.page.imagegridCaptionEnabled?n("caption-item",{staticClass:"grid-Item_Caption",attrs:{title:e.name,description:e.description,"page-id":e.id,"show-placeholders":t.showCaptionPlaceholders}}):t._e()],1)})),t._v(" "),n("div",{staticClass:"grid-Item placeholder"}),t._v(" "),n("div",{staticClass:"grid-Item placeholder"}),t._v(" "),n("div",{staticClass:"grid-Item placeholder"}),t._v(" "),n("div",{staticClass:"grid-Item placeholder"}),t._v(" "),n("div",{staticClass:"grid-Item placeholder"})],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e,n){return void 0===n&&(n=""),t?t.substring(0,e)+(t.length>e?n:""):""}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e){return Object.values(e).includes(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(1),o=n(0),a=n(4),s=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.counter=0,e.autoPlayIndex=0,e.autoPlayerDestroyed=!1,e}return s(e,t),Object.defineProperty(e.prototype,"total",{get:function(){return this.images&&this.images.length||0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoplay",{get:function(){return this.page.coverMediaAutoPlay},enumerable:!1,configurable:!0}),e.prototype.imageAtIndex=function(){return this.images&&this.images[0]?this.images[this.index()]||this.images[0]:void 0},e.prototype.index=function(){var t=this.counter%this.total;return Math.floor(t>=0?t:t+this.total)},e.prototype.destroyAutoplayer=function(){this.autoPlayerDestroyed=!0,this.autoPlaytimer&&clearInterval(this.autoPlaytimer)},e.prototype.isVideoItem=function(){return"video"===this.images[this.index()].type},e.prototype.autoplayer=function(){var t=this;this.autoplay?this.autoPlaytimer=setInterval((function(){console.log("--autoplayer-interval, video:",t.isVideoItem()),"organizer"===t.$route.name||t.isVideoItem()||t.next(!0)}),3e3):this.autoPlaytimer&&clearInterval(this.autoPlaytimer)},e.prototype.emitImageAtIndex=function(t){void 0===t&&(t=!1),a.a.$emit("IMAGE_AT_INDEX",{pageId:this.page&&this.page.id||void 0,image:this.imageAtIndex(),index:this.index(),total:this.total,autoplay:t})},e.prototype.updateRoute=function(){if("viewer"===this.$route.name){var t=c({},this.$route);t.params.image_index=this.index().toString(),this.$router.replace(t)}},e.prototype.next=function(t){void 0===t&&(t=!1),this.counter+=1,this.emitImageAtIndex(t),this.updateRoute(),this.videoEndCallbackReceived=""},e.prototype.previous=function(){this.counter-=1,this.emitImageAtIndex(),this.updateRoute()},function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([Object(o.a)({name:"SlideshowNavigationComponent"})],e)}(i.a)},function(t,e,n){"use strict";function r(t,e,n){n=void 0!==n?n:[],e=void 0!==e?e:{id:null};var i=t.filter((function(t){return t.parentId===e.id}));return 0!==i.length&&(null===e.id?n=i:e.children=i,i.forEach((function(e){r(t,e)}))),n}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r,i=n(1),o=n(0),a=n(71),s=n.n(a),c=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.buttonClick=function(t){this.$emit("buttonClick",this.label,t)},u([Object(o.b)(String),l("design:type",String)],e.prototype,"label",void 0),u([Object(o.b)(Boolean),l("design:type",Boolean)],e.prototype,"disabled",void 0),u([Object(o.b)(String),l("design:type",String)],e.prototype,"icon",void 0),u([s.a,Object(o.a)({})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(1),o=n(0),a=n(77),s=n.n(a),c=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([s.a,Object(o.a)({})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r,i=n(1),o=n(0),a=n(39),s=n(9),c=n(2),u=n(6),l=n(86),f=n.n(l),d=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=u.l,e}return d(e,t),e.prototype.close=function(){this.$emit("closeModal")},e.prototype.backModal=function(){this.$store.commit(c.r)},p([Object(o.b)(String),h("design:type",Object)],e.prototype,"type",void 0),p([f.a,Object(o.a)({components:{"button-item":s.a,"header-element":a.a}})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r,i=n(0),o=n(43),a=n(11),s=n(4),c=n(2),u=n(3),l=n(6),f=n(93),d=n.n(f),p=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},g=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},v={S:"5",M:!1,L:"2",XL:"1"},y={left:"",center:"center",right:"right",justify:"justify"},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EventBus=s.a,e.FONTSIZES=v,e.ALIGNS=y,e.TextAlignmentIcons=l.f,e.TextFormattingIcons=l.h,e.TextColumnsIcons=l.g,e.UiBaseIcons=l.l,e.showLinkEdit=!1,e.url="",e.internalLinkId="",e.overlayLink=!1,e.selectedFormatting={},e}return p(e,t),Object.defineProperty(e.prototype,"sizeOptions",{get:function(){return u.D},enumerable:!1,configurable:!0}),e.prototype.activeFormatting=function(t){var e=this;if("align"===t)return this.selectedFormatting[t]?this.selectedFormatting[t]:"left";if("header"===t&&this.selectedFormatting[t]){var n=Object.entries(v).find((function(n){return n[1]===e.selectedFormatting[t].toString()}));if(n)return n[0]}return this.selectedFormatting[t]||""},Object.defineProperty(e.prototype,"showDescriptionAlignment",{get:function(){return!this.getPage.stacked&&"cover"!==this.getPage.type&&"row"!==this.getPage.type&&"slideshow"!==this.getPage.type&&"Vertical"!==this.getSite.layout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showRowDescriptionAlignment",{get:function(){return!this.getPage.stacked&&"row"===this.getPage.type},enumerable:!1,configurable:!0}),e.prototype.format=function(t,e){s.a.$emit("TEXTEDITOR_TOOLBAR_FORMAT",t,e)},e.prototype.formatFontSize=function(t,e,n){this.format("header",v[e])},e.prototype.formatAlign=function(t,e,n){this.format("align",y[e])},e.prototype.formatLink=function(){this.showLinkEdit=!0},e.prototype.urlValue=function(){return this.url},e.prototype.resetUrlField=function(){this.url="",this.clearInternalURL()},e.prototype.initLinkEditInput=function(t){t.link||t["fotomat-link"]?this.formatLink():this.showLinkEdit=!1},e.prototype.selectFormat=function(t){this.selectedFormatting=t,this.initLinkEditInput(t),this.resetUrlField(),t.link&&(this.url=t.link,this.clearInternalURL()),t["fotomat-link"]&&(this.internalLinkId=t["fotomat-link"].id,this.overlayLink="false"!==t["fotomat-link"].overlay);var e=this.$store.getters.getCurrentItemPage()||this.$store.getters.getCurrentPage();!e||this.$store.commit(c.cb,t.color||e.textColor)},e.prototype.toolbarLinkUrl=function(t,e){s.a.$emit("TEXTEDITOR_TOOLBAR_LINK_URL",e)},e.prototype.internalLinkUrl=function(t){this.internalLinkId=t.id,this.overlayLink=t.overlay},e.prototype.clearInternalURL=function(){this.internalLinkId="",this.overlayLink=!1},e.prototype.mounted=function(){s.a.$on("TEXTEDITOR_SELECTED_FORMAT",this.selectFormat),s.a.$on("ADD_LINK_URL_ON_ENTER",this.toolbarLinkUrl),s.a.$on("ADD_INTERNAL_LINK_URL",this.internalLinkUrl),s.a.$on("CLEAR_INTERNAL_URL",this.clearInternalURL)},e.prototype.beforeDestroy=function(){s.a.$off("TEXTEDITOR_SELECTED_FORMAT",this.selectFormat),s.a.$off("ADD_LINK_URL_ON_ENTER",this.toolbarLinkUrl),s.a.$off("ADD_INTERNAL_LINK_URL",this.internalLinkUrl),s.a.$off("CLEAR_INTERNAL_URL",this.clearInternalURL)},h([Object(i.b)({type:Boolean,default:!1}),g("design:type",Boolean)],e.prototype,"minimal",void 0),h([Object(i.b)({type:String,required:!0}),g("design:type",String)],e.prototype,"name",void 0),h([d.a,Object(i.a)({name:"EditorToolbarComponent",components:{"add-link":o.a}})],e)}(a.a)},function(t,e,n){function r(t){return-1!==t.type.indexOf("mouse")?t.clientX:t.touches[0].clientX}function i(t){return-1!==t.type.indexOf("mouse")?t.clientY:t.touches[0].clientY}var o=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),a={install:function(t,e){var n=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:""},e);function a(t){var e=this.$$touchObj,n=t.type.indexOf("touch")>=0,o=t.type.indexOf("mouse")>=0,a=this;n&&(e.lastTouchStartTime=t.timeStamp),o&&e.lastTouchStartTime&&t.timeStamp-e.lastTouchStartTime<350||e.touchStarted||(p(this),e.touchStarted=!0,e.touchMoved=!1,e.swipeOutBounded=!1,e.startX=r(t),e.startY=i(t),e.currentX=0,e.currentY=0,e.touchStartTime=t.timeStamp,e.touchHoldTimer=setTimeout((function(){d(t,a,"touchhold")}),e.options.touchHoldTolerance),d(t,this,"start"))}function s(t){var e=this.$$touchObj;if(e.currentX=r(t),e.currentY=i(t),e.touchMoved){if(!e.swipeOutBounded){var n=e.options.swipeTolerance;e.swipeOutBounded=Math.abs(e.startX-e.currentX)>n&&Math.abs(e.startY-e.currentY)>n}}else{var o=e.options.tapTolerance;e.touchMoved=Math.abs(e.startX-e.currentX)>o||Math.abs(e.startY-e.currentY)>o,e.touchMoved&&(g(e),d(t,this,"moved"))}e.touchMoved&&d(t,this,"moving")}function c(){var t=this.$$touchObj;g(t),h(this),t.touchStarted=t.touchMoved=!1,t.startX=t.startY=0}function u(t){var e=this.$$touchObj,n=t.type.indexOf("touch")>=0,r=t.type.indexOf("mouse")>=0;if(n&&(e.lastTouchEndTime=t.timeStamp),g(e),e.touchStarted=!1,h(this),!(r&&e.lastTouchEndTime&&t.timeStamp-e.lastTouchEndTime<350))if(d(t,this,"end"),e.touchMoved){if(!e.swipeOutBounded){var i,o=e.options.swipeTolerance;i=Math.abs(e.startX-e.currentX)<o?e.startY>e.currentY?"top":"bottom":e.startX>e.currentX?"left":"right",e.callbacks["swipe."+i]?d(t,this,"swipe."+i,i):d(t,this,"swipe",i)}}else e.callbacks.longtap&&t.timeStamp-e.touchStartTime>e.options.longTapTimeInterval?(t.cancelable&&t.preventDefault(),d(t,this,"longtap")):d(t,this,"tap")}function l(){p(this)}function f(){h(this)}function d(t,e,n,r){var i=e.$$touchObj.callbacks[n]||[];if(0===i.length)return null;for(var o=0;o<i.length;o++){var a=i[o];a.modifiers.stop&&t.stopPropagation(),a.modifiers.prevent&&t.preventDefault(),a.modifiers.self&&t.target!==t.currentTarget||"function"==typeof a.value&&(r?a.value(r,t):a.value(t))}}function p(t){var e=t.$$touchObj.options.touchClass;e&&t.classList.add(e)}function h(t){var e=t.$$touchObj.options.touchClass;e&&t.classList.remove(e)}function g(t){t.touchHoldTimer&&(clearTimeout(t.touchHoldTimer),t.touchHoldTimer=null)}function v(t,e){var r=t.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:n};return e&&(r.options=Object.assign({},r.options,e)),t.$$touchObj=r,t.$$touchObj}t.directive("touch",{bind:function(t,e){var n=v(t),r=!!o&&{passive:!0},i=e.arg||"tap";switch(i){case"swipe":var d=e.modifiers;if(d.left||d.right||d.top||d.bottom){for(var p in e.modifiers)if(["left","right","top","bottom"].indexOf(p)>=0){var h="swipe."+p;n.callbacks[h]=n.callbacks[h]||[],n.callbacks[h].push(e)}}else n.callbacks.swipe=n.callbacks.swipe||[],n.callbacks.swipe.push(e);break;case"start":case"moving":e.modifiers.disablePassive&&(r=!1);default:n.callbacks[i]=n.callbacks[i]||[],n.callbacks[i].push(e)}n.hasBindTouchEvents||(t.addEventListener("touchstart",a,r),t.addEventListener("touchmove",s,r),t.addEventListener("touchcancel",c),t.addEventListener("touchend",u),n.options.disableClick||(t.addEventListener("mousedown",a),t.addEventListener("mousemove",s),t.addEventListener("mouseup",u),t.addEventListener("mouseenter",l),t.addEventListener("mouseleave",f)),n.hasBindTouchEvents=!0)},unbind:function(t){t.removeEventListener("touchstart",a),t.removeEventListener("touchmove",s),t.removeEventListener("touchcancel",c),t.removeEventListener("touchend",u),t.$$touchObj&&!t.$$touchObj.options.disableClick&&(t.removeEventListener("mousedown",a),t.removeEventListener("mousemove",s),t.removeEventListener("mouseup",u),t.removeEventListener("mouseenter",l),t.removeEventListener("mouseleave",f)),delete t.$$touchObj}}),t.directive("touch-class",{bind:function(t,e){v(t,{touchClass:e.value})}}),t.directive("touch-options",{bind:function(t,e){v(t,e.value)}})}};t.exports=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r,i=n(0),o=n(30),a=n(38),s=n(4),c=n(11),u=n(14),l=n(92),f=n.n(l),d=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},h=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.isInternalLink=function(){var t;return(null===(t=this.internalLinkId)||void 0===t?void 0:t.length)>0},e.prototype.event=function(t){return(this.isCta?"CTA_":"")+t},e.prototype.setUrl=function(t,e){s.a.$emit("ADD_LINK_URL",this.name,Object(u.a)(e))},e.prototype.setUrlOnEnter=function(t,e){s.a.$emit(this.event("ADD_LINK_URL_ON_ENTER"),this.name,Object(u.a)(e))},e.prototype.setOverlay=function(){s.a.$emit(this.event("ADD_INTERNAL_LINK_URL"),{id:this.internalLinkId,overlay:!this.overlayLink})},e.prototype.setLabel=function(t,e){s.a.$emit(this.event("ADD_LINK_LABEL"),this.name,e)},e.prototype.setLabelOnEnter=function(t,e){s.a.$emit(this.event("ADD_LINK_LABEL_ON_ENTER"),this.name,e)},e.prototype.clearUrl=function(){s.a.$emit(this.event("CLEAR_INTERNAL_URL"))},e.prototype.internalLinkPageTitle=function(){var t;return null===(t=this.getPageById(this.internalLinkId))||void 0===t?void 0:t.title},e.prototype.overlayLinkToggle=function(){var t;return(null===(t=this.internalLinkId)||void 0===t?void 0:t.length)>0},e.prototype.internalLink=function(t){s.a.$emit(this.event("ADD_INTERNAL_LINK_URL"),{id:t,overlay:!1})},e.prototype.openPagesModal=function(){s.a.$emit("OPEN_PAGES_MODAL",this.name)},e.prototype.mounted=function(){s.a.$on("PAGE_MODAL_CHOOSE_PAGE",this.internalLink)},p([Object(i.b)({type:String,required:!0}),h("design:type",String)],e.prototype,"name",void 0),p([Object(i.b)(String),h("design:type",String)],e.prototype,"label",void 0),p([Object(i.b)(String),h("design:type",String)],e.prototype,"url",void 0),p([Object(i.b)(String),h("design:type",String)],e.prototype,"internalLinkId",void 0),p([Object(i.b)({type:Boolean,default:!1}),h("design:type",Boolean)],e.prototype,"isCta",void 0),p([Object(i.b)({type:Boolean,default:!1}),h("design:type",Boolean)],e.prototype,"overlayLink",void 0),p([Object(i.b)(String),h("design:type",String)],e.prototype,"urlInputLabel",void 0),p([Object(i.b)(String),h("design:type",String)],e.prototype,"labelInputLabel",void 0),p([f.a,Object(i.a)({name:"AddLinkComponent",components:{"input-field":o.a,"button-item":a.a}})],e)}(c.a)},function(t,e,n){var r;!function(){"use strict";var n=/([^\s])\s+([^\s]+)\s*$/,i=/-/g,o=a.replacements={unicode:{space:" ",hyphen:"‑"},html:{space:"&nbsp;",hyphen:"&#8209;"},ascii:{space:"_",hyphen:"~"}};function a(t,e){if("string"!=typeof t)return t;switch(typeof e){case"object":if(null==e.space||null==e.hyphen)throw new TypeError("widont: Must provide `space` & `hyphen` replacements");break;case"string":if(!(e in o))throw new TypeError("widont: Unknown replacements `"+e+"`");e=o[e];break;default:e=o.unicode}return t.replace(n,(function(t,n,r){return r.indexOf("-")>=0?n+" "+r.replace(i,e.hyphen):n+e.space+r}))}t.exports?(a.default=a,t.exports=a):void 0===(r=function(){return a}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){this.children=null,this.hideTextInMenu=t.hide_text_in_menu,this.homepage=t.homepage,this.icon=t.icon,this.id=t.id,this.link_page_url=t.link_page_url,this.menu_representation=t.menu_representation,this.parentId=t.parent_id,this.path=t.path,this.position=t.position,this.published_at=t.published_at,this.slug=t.slug,this.stacked=t.stacked,this.title=t.title||t.id,this.type=t.type}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){(function(e){t.exports=e.Phoenix=n(2)}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}n.r(e),n.d(e,"Channel",(function(){return A})),n.d(e,"Serializer",(function(){return x})),n.d(e,"Socket",(function(){return L})),n.d(e,"LongPoll",(function(){return P})),n.d(e,"Ajax",(function(){return R})),n.d(e,"Presence",(function(){return I}));var f="undefined"!=typeof self?self:null,d="undefined"!=typeof window?window:null,p=f||d||void 0,h="closed",g="errored",v="joined",y="joining",m="leaving",b="phx_close",_="phx_error",w="phx_join",O="phx_reply",E="phx_leave",S=[b,_,w,O,E],k="websocket",C=function(t){return"function"==typeof t?t:function(){return t}},T=function(){function t(e,n,r,i){c(this,t),this.channel=e,this.event=n,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=i,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}return l(t,[{key:"resend",value:function(t){this.timeout=t,this.reset(),this.send()}},{key:"send",value:function(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}},{key:"receive",value:function(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}},{key:"reset",value:function(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}},{key:"matchReceive",value:function(t){var e=t.status,n=t.response;t.ref,this.recHooks.filter((function(t){return t.status===e})).forEach((function(t){return t.callback(n)}))}},{key:"cancelRefEvent",value:function(){this.refEvent&&this.channel.off(this.refEvent)}},{key:"cancelTimeout",value:function(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}},{key:"startTimeout",value:function(){var t=this;this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(function(e){t.cancelRefEvent(),t.cancelTimeout(),t.receivedResp=e,t.matchReceive(e)})),this.timeoutTimer=setTimeout((function(){t.trigger("timeout",{})}),this.timeout)}},{key:"hasReceived",value:function(t){return this.receivedResp&&this.receivedResp.status===t}},{key:"trigger",value:function(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}}]),t}(),A=function(){function t(e,n,r){var i=this;c(this,t),this.state=h,this.topic=e,this.params=C(n||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new T(this,w,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new j((function(){i.socket.isConnected()&&i.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((function(){return i.rejoinTimer.reset()}))),this.stateChangeRefs.push(this.socket.onOpen((function(){i.rejoinTimer.reset(),i.isErrored()&&i.rejoin()}))),this.joinPush.receive("ok",(function(){i.state=v,i.rejoinTimer.reset(),i.pushBuffer.forEach((function(t){return t.send()})),i.pushBuffer=[]})),this.joinPush.receive("error",(function(){i.state=g,i.socket.isConnected()&&i.rejoinTimer.scheduleTimeout()})),this.onClose((function(){i.rejoinTimer.reset(),i.socket.hasLogger()&&i.socket.log("channel","close ".concat(i.topic," ").concat(i.joinRef())),i.state=h,i.socket.remove(i)})),this.onError((function(t){i.socket.hasLogger()&&i.socket.log("channel","error ".concat(i.topic),t),i.isJoining()&&i.joinPush.reset(),i.state=g,i.socket.isConnected()&&i.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(function(){i.socket.hasLogger()&&i.socket.log("channel","timeout ".concat(i.topic," (").concat(i.joinRef(),")"),i.joinPush.timeout),new T(i,E,C({}),i.timeout).send(),i.state=g,i.joinPush.reset(),i.socket.isConnected()&&i.rejoinTimer.scheduleTimeout()})),this.on(O,(function(t,e){i.trigger(i.replyEventName(e),t)}))}return l(t,[{key:"join",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}},{key:"onClose",value:function(t){this.on(b,t)}},{key:"onError",value:function(t){return this.on(_,(function(e){return t(e)}))}},{key:"on",value:function(t,e){var n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}},{key:"off",value:function(t,e){this.bindings=this.bindings.filter((function(n){return!(n.event===t&&(void 0===e||e===n.ref))}))}},{key:"canPush",value:function(){return this.socket.isConnected()&&this.isJoined()}},{key:"push",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(!this.joinedOnce)throw new Error("tried to push '".concat(t,"' to '").concat(this.topic,"' before joining. Use channel.join() before pushing events"));var r=new T(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}},{key:"leave",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=m;var n=function(){t.socket.hasLogger()&&t.socket.log("channel","leave ".concat(t.topic)),t.trigger(b,"leave")},r=new T(this,E,C({}),e);return r.receive("ok",(function(){return n()})).receive("timeout",(function(){return n()})),r.send(),this.canPush()||r.trigger("ok",{}),r}},{key:"onMessage",value:function(t,e,n){return e}},{key:"isLifecycleEvent",value:function(t){return S.indexOf(t)>=0}},{key:"isMember",value:function(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&this.isLifecycleEvent(e)&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),1))}},{key:"joinRef",value:function(){return this.joinPush.ref}},{key:"rejoin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=y,this.joinPush.resend(t))}},{key:"trigger",value:function(t,e,n,r){var i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");for(var o=this.bindings.filter((function(e){return e.event===t})),a=0;a<o.length;a++)o[a].callback(i,n,r||this.joinRef())}},{key:"replyEventName",value:function(t){return"chan_reply_".concat(t)}},{key:"isClosed",value:function(){return this.state===h}},{key:"isErrored",value:function(){return this.state===g}},{key:"isJoined",value:function(){return this.state===v}},{key:"isJoining",value:function(){return this.state===y}},{key:"isLeaving",value:function(){return this.state===m}}]),t}(),x={encode:function(t,e){var n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))},decode:function(t,e){var n=o(JSON.parse(t),5);return e({join_ref:n[0],ref:n[1],topic:n[2],event:n[3],payload:n[4]})}},L=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||1e4,this.transport=r.transport||p.WebSocket||P,this.defaultEncoder=x.encode,this.defaultDecoder=x.decode,this.closeWasClean=!1,this.unloaded=!1,this.binaryType=r.binaryType||"arraybuffer",this.transport!==P?(this.encode=r.encode||this.defaultEncoder,this.decode=r.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder),d&&d.addEventListener&&d.addEventListener("unload",(function(t){n.conn&&(n.unloaded=!0,n.abnormalClose("unloaded"))})),this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.rejoinAfterMs=function(t){return r.rejoinAfterMs?r.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4},this.reconnectAfterMs=function(t){return n.unloaded?100:r.reconnectAfterMs?r.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3},this.logger=r.logger||null,this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=C(r.params||{}),this.endPoint="".concat(e,"/").concat(k),this.vsn=r.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new j((function(){n.teardown((function(){return n.connect()}))}),this.reconnectAfterMs)}return l(t,[{key:"protocol",value:function(){return location.protocol.match(/^https/)?"wss":"ws"}},{key:"endPointURL",value:function(){var t=R.appendParams(R.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?"".concat(this.protocol(),":").concat(t):"".concat(this.protocol(),"://").concat(location.host).concat(t)}},{key:"disconnect",value:function(t,e,n){this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}},{key:"connect",value:function(t){var e=this;t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=C(t)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=function(){return e.onConnOpen()},this.conn.onerror=function(t){return e.onConnError(t)},this.conn.onmessage=function(t){return e.onConnMessage(t)},this.conn.onclose=function(t){return e.onConnClose(t)})}},{key:"log",value:function(t,e,n){this.logger(t,e,n)}},{key:"hasLogger",value:function(){return null!==this.logger}},{key:"onOpen",value:function(t){var e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}},{key:"onClose",value:function(t){var e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}},{key:"onError",value:function(t){var e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}},{key:"onMessage",value:function(t){var e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}},{key:"onConnOpen",value:function(){this.hasLogger()&&this.log("transport","connected to ".concat(this.endPointURL())),this.unloaded=!1,this.closeWasClean=!1,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach((function(t){return(0,o(t,2)[1])()}))}},{key:"resetHeartbeat",value:function(){var t=this;this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval((function(){return t.sendHeartbeat()}),this.heartbeatIntervalMs))}},{key:"teardown",value:function(t,e,n){var r=this;if(!this.conn)return t&&t();this.waitForBufferDone((function(){r.conn&&(e?r.conn.close(e,n||""):r.conn.close()),r.waitForSocketClosed((function(){r.conn&&(r.conn.onclose=function(){},r.conn=null),t&&t()}))}))}},{key:"waitForBufferDone",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==n&&this.conn&&this.conn.bufferedAmount?setTimeout((function(){e.waitForBufferDone(t,n+1)}),150*n):t()}},{key:"waitForSocketClosed",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;5!==n&&this.conn&&3!==this.conn.readyState?setTimeout((function(){e.waitForSocketClosed(t,n+1)}),150*n):t()}},{key:"onConnClose",value:function(t){this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearInterval(this.heartbeatTimer),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((function(e){return(0,o(e,2)[1])(t)}))}},{key:"onConnError",value:function(t){this.hasLogger()&&this.log("transport",t),this.triggerChanError(),this.stateChangeCallbacks.error.forEach((function(e){return(0,o(e,2)[1])(t)}))}},{key:"triggerChanError",value:function(){this.channels.forEach((function(t){t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(_)}))}},{key:"connectionState",value:function(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}},{key:"isConnected",value:function(){return"open"===this.connectionState()}},{key:"remove",value:function(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter((function(e){return e.joinRef()!==t.joinRef()}))}},{key:"off",value:function(t){for(var e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter((function(e){var n=o(e,1)[0];return-1===t.indexOf(n)}))}},{key:"channel",value:function(t){var e=new A(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this);return this.channels.push(e),e}},{key:"push",value:function(t){var e=this;if(this.hasLogger()){var n=t.topic,r=t.event,i=t.payload,o=t.ref,a=t.join_ref;this.log("push","".concat(n," ").concat(r," (").concat(a,", ").concat(o,")"),i)}this.isConnected()?this.encode(t,(function(t){return e.conn.send(t)})):this.sendBuffer.push((function(){return e.encode(t,(function(t){return e.conn.send(t)}))}))}},{key:"makeRef",value:function(){var t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}},{key:"sendHeartbeat",value:function(){if(this.isConnected()){if(this.pendingHeartbeatRef)return this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),void this.abnormalClose("heartbeat timeout");this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef})}}},{key:"abnormalClose",value:function(t){this.closeWasClean=!1,this.conn.close(1e3,t)}},{key:"flushSendBuffer",value:function(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((function(t){return t()})),this.sendBuffer=[])}},{key:"onConnMessage",value:function(t){var e=this;this.decode(t.data,(function(t){var n=t.topic,r=t.event,i=t.payload,a=t.ref,s=t.join_ref;a&&a===e.pendingHeartbeatRef&&(e.pendingHeartbeatRef=null),e.hasLogger()&&e.log("receive","".concat(i.status||""," ").concat(n," ").concat(r," ").concat(a&&"("+a+")"||""),i);for(var c=0;c<e.channels.length;c++){var u=e.channels[c];u.isMember(n,r,i,s)&&u.trigger(r,i,a,s)}for(var l=0;l<e.stateChangeCallbacks.message.length;l++)(0,o(e.stateChangeCallbacks.message[l],2)[1])(t)}))}},{key:"leaveOpenTopic",value:function(t){var e=this.channels.find((function(e){return e.topic===t&&(e.isJoined()||e.isJoining())}));e&&(this.hasLogger()&&this.log("transport",'leaving duplicate topic "'.concat(t,'"')),e.leave())}}]),t}(),P=function(){function t(e){c(this,t),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=0,this.poll()}return l(t,[{key:"normalizeEndpoint",value:function(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+k),"$1/longpoll")}},{key:"endpointURL",value:function(){return R.appendParams(this.pollEndpoint,{token:this.token})}},{key:"closeAndRetry",value:function(){this.close(),this.readyState=0}},{key:"ontimeout",value:function(){this.onerror("timeout"),this.closeAndRetry()}},{key:"poll",value:function(){var t=this;1!==this.readyState&&0!==this.readyState||R.request("GET",this.endpointURL(),"application/json",null,this.timeout,this.ontimeout.bind(this),(function(e){if(e){var n=e.status,r=e.token,i=e.messages;t.token=r}else n=0;switch(n){case 200:i.forEach((function(e){return t.onmessage({data:e})})),t.poll();break;case 204:t.poll();break;case 410:t.readyState=1,t.onopen(),t.poll();break;case 403:t.onerror(),t.close();break;case 0:case 500:t.onerror(),t.closeAndRetry();break;default:throw new Error("unhandled poll status ".concat(n))}}))}},{key:"send",value:function(t){var e=this;R.request("POST",this.endpointURL(),"application/json",t,this.timeout,this.onerror.bind(this,"timeout"),(function(t){t&&200===t.status||(e.onerror(t&&t.status),e.closeAndRetry())}))}},{key:"close",value:function(t,e){this.readyState=3,this.onclose()}}]),t}(),R=function(){function t(){c(this,t)}return l(t,null,[{key:"request",value:function(t,e,n,r,i,o,a){if(p.XDomainRequest){var s=new XDomainRequest;this.xdomainRequest(s,t,e,r,i,o,a)}else{var c=new p.XMLHttpRequest;this.xhrRequest(c,t,e,n,r,i,o,a)}}},{key:"xdomainRequest",value:function(t,e,n,r,i,o,a){var s=this;t.timeout=i,t.open(e,n),t.onload=function(){var e=s.parseJSON(t.responseText);a&&a(e)},o&&(t.ontimeout=o),t.onprogress=function(){},t.send(r)}},{key:"xhrRequest",value:function(t,e,n,r,i,o,a,s){var c=this;t.open(e,n,!0),t.timeout=o,t.setRequestHeader("Content-Type",r),t.onerror=function(){s&&s(null)},t.onreadystatechange=function(){if(t.readyState===c.states.complete&&s){var e=c.parseJSON(t.responseText);s(e)}},a&&(t.ontimeout=a),t.send(i)}},{key:"parseJSON",value:function(t){if(!t||""===t)return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}},{key:"serialize",value:function(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var o=e?"".concat(e,"[").concat(r,"]"):r,a=t[r];"object"===i(a)?n.push(this.serialize(a,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(a))}return n.join("&")}},{key:"appendParams",value:function(t,e){if(0===Object.keys(e).length)return t;var n=t.match(/\?/)?"&":"?";return"".concat(t).concat(n).concat(this.serialize(e))}}]),t}();R.states={complete:4};var I=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t);var i=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(i.state,(function(e){var r=n.caller,i=r.onJoin,o=r.onLeave,a=r.onSync;n.joinRef=n.channel.joinRef(),n.state=t.syncState(n.state,e,i,o),n.pendingDiffs.forEach((function(e){n.state=t.syncDiff(n.state,e,i,o)})),n.pendingDiffs=[],a()})),this.channel.on(i.diff,(function(e){var r=n.caller,i=r.onJoin,o=r.onLeave,a=r.onSync;n.inPendingSyncState()?n.pendingDiffs.push(e):(n.state=t.syncDiff(n.state,e,i,o),a())}))}return l(t,[{key:"onJoin",value:function(t){this.caller.onJoin=t}},{key:"onLeave",value:function(t){this.caller.onLeave=t}},{key:"onSync",value:function(t){this.caller.onSync=t}},{key:"list",value:function(e){return t.list(this.state,e)}},{key:"inPendingSyncState",value:function(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}}],[{key:"syncState",value:function(t,e,n,r){var i=this,o=this.clone(t),a={},s={};return this.map(o,(function(t,n){e[t]||(s[t]=n)})),this.map(e,(function(t,e){var n=o[t];if(n){var r=e.metas.map((function(t){return t.phx_ref})),c=n.metas.map((function(t){return t.phx_ref})),u=e.metas.filter((function(t){return c.indexOf(t.phx_ref)<0})),l=n.metas.filter((function(t){return r.indexOf(t.phx_ref)<0}));u.length>0&&(a[t]=e,a[t].metas=u),l.length>0&&(s[t]=i.clone(n),s[t].metas=l)}else a[t]=e})),this.syncDiff(o,{joins:a,leaves:s},n,r)}},{key:"syncDiff",value:function(t,e,n,i){var o=e.joins,a=e.leaves,s=this.clone(t);return n||(n=function(){}),i||(i=function(){}),this.map(o,(function(t,e){var i=s[t];if(s[t]=e,i){var o,a=s[t].metas.map((function(t){return t.phx_ref})),c=i.metas.filter((function(t){return a.indexOf(t.phx_ref)<0}));(o=s[t].metas).unshift.apply(o,r(c))}n(t,i,e)})),this.map(a,(function(t,e){var n=s[t];if(n){var r=e.metas.map((function(t){return t.phx_ref}));n.metas=n.metas.filter((function(t){return r.indexOf(t.phx_ref)<0})),i(t,n,e),0===n.metas.length&&delete s[t]}})),s}},{key:"list",value:function(t,e){return e||(e=function(t,e){return e}),this.map(t,(function(t,n){return e(t,n)}))}},{key:"map",value:function(t,e){return Object.getOwnPropertyNames(t).map((function(n){return e(n,t[n])}))}},{key:"clone",value:function(t){return JSON.parse(JSON.stringify(t))}}]),t}(),j=function(){function t(e,n){c(this,t),this.callback=e,this.timerCalc=n,this.timer=null,this.tries=0}return l(t,[{key:"reset",value:function(){this.tries=0,clearTimeout(this.timer)}},{key:"scheduleTimeout",value:function(){var t=this;clearTimeout(this.timer),this.timer=setTimeout((function(){t.tries=t.tries+1,t.callback()}),this.timerCalc(this.tries+1))}}]),t}()}])},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r,i=n(0),o=n(11),a=n(102),s=n.n(a),c=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.selectFontPreset=function(t){this.$emit("select-typo-item",this.name,t)},e.prototype.getFontFamily=function(){return"CustomFont"===this.CSSName?this.hasAsset(this.target)?"CustomFont":"Untitled Sans":this.CSSName},e.prototype.fontFamily=function(){return{"font-family":this.getFontFamily()}},u([Object(i.b)(String),l("design:type",String)],e.prototype,"name",void 0),u([Object(i.b)(String),l("design:type",String)],e.prototype,"CSSName",void 0),u([Object(i.b)(String),l("design:type",String)],e.prototype,"displayName",void 0),u([Object(i.b)(String),l("design:type",String)],e.prototype,"family",void 0),u([Object(i.b)(Boolean),l("design:type",Boolean)],e.prototype,"selected",void 0),u([Object(i.b)({type:String,default:"font_regular"}),l("design:type",Object)],e.prototype,"target",void 0),u([s.a,Object(i.a)({})],e)}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,i=n(26),o=n(37),a=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this)||this;return n.items=[],n.id=e.id,n.site_id=e.site_id,n.slot=e.slot,n.items=e.items,n.grouped=e.grouped,n.groupname=e.groupname,n}return a(e,t),e.buildFromPayload=function(t){var n=t.items.map((function(t){return new i.b(t)}))||[];return new e({id:t.id,site_id:t.site_id,slot:t.slot,items:Object(o.a)(n),grouped:t.grouped,groupname:t.title})},e.prototype.serialize=function(){return{site_id:this.site_id,id:this.id,slot:this.slot,title:this.groupname,grouped:this.grouped}},e}((function(){}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r,i=n(1),o=n(0),a=n(5),s=n(2),c=n(20),u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeoutStarted=!1,e}return u(e,t),Object.defineProperty(e.prototype,"getSite",{get:function(){return this.$store.getters.getSite()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getPage",{get:function(){return this.$store.getters.getCurrentPage()||null},enumerable:!1,configurable:!0}),e.prototype.getPageById=function(t){return this.$store.getters.getPageById(t)},e.prototype.pageData=function(t){return this.$store.getters.getPageById(t)},Object.defineProperty(e.prototype,"pageChildren",{get:function(){var t=this;return this.getPage&&this.getPage.childIds&&null!==this.getPage.childIds?this.getPage.childIds.map((function(e){return t.pageData(e)})):[]},enumerable:!1,configurable:!0}),e.prototype.savePageChildren=function(){console.log("BATCH");var t=[];this.pageChildren.forEach((function(e){t.push({handle:"PAGE_UPDATE",payload:Object(c.c)(e,c.b)})})),this.$store.dispatch(a.t,t)},e.prototype.savePage=function(t){var e=this;if(console.log("save page"),this.getPage.id||t){var n=t?this.getPageById(t):this.getPage,r=void 0;this.timeoutStarted||(this.timeoutStarted=!0,r&&clearTimeout(r),r=setTimeout((function(){return e.dispatch(n)}),200))}},e.prototype.saveAndFetchPage=function(t){if(this.getPage.id||t){var e=t?this.getPageById(t):this.getPage;this.$store.dispatch(a.x,{page:e})}},e.prototype.dispatch=function(t){this.timeoutStarted=!1,this.savePageChildren(),this.$store.dispatch(a.w,{page:t}).then((function(){}))},e.prototype.batchSave=function(t){var e=this;if(t&&c.b){var n=[];null==t||t.forEach((function(t){n.push({handle:"PAGE_UPDATE",payload:Object(c.c)(t,c.b)})})),this.$store.dispatch(a.t,n).then((function(){e.$store.commit(s.ab)}))}},e.prototype.autoSavePages=function(){var t,e=this,n=this.$store.getters.getUnsavedPages();0!==n.length&&(t=n.map((function(t){return e.pageData(t)})),this.batchSave(t))},Object.defineProperty(e.prototype,"unsavedSiteChanges",{get:function(){return this.$store.getters.getUnsavedSite()},enumerable:!1,configurable:!0}),e.prototype.saveSite=function(t){this.unsavedSiteChanges&&(this.$store.dispatch(a.C,{site:this.getSite,notification:t}),this.$store.commit(s.bb))},function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([Object(o.a)({name:"SaveComponent"})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r,i=n(1),o=n(0),a=n(6),s=n(3),c=n(35),u=n(89),l=n.n(u),f=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},p=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ToggleIcons=a.i,e}return f(e,t),Object.defineProperty(e.prototype,"isToggleSelected",{get:function(){return this.inverse?!this.value:!!this.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this.ToggleIcons[this.iconName]},enumerable:!1,configurable:!0}),e.prototype.clickToggle=function(){this.inactive||this.$emit("set-toggle",this.name,!this.value)},d([Object(o.b)({type:String,required:!0}),p("design:type",String)],e.prototype,"name",void 0),d([Object(o.b)({type:Boolean,required:!0}),p("design:type",Boolean)],e.prototype,"value",void 0),d([Object(o.b)({type:String,required:!0}),p("design:type",String)],e.prototype,"label",void 0),d([Object(o.b)(Boolean),p("design:type",Boolean)],e.prototype,"inverse",void 0),d([Object(o.b)(Boolean),p("design:type",Boolean)],e.prototype,"inactive",void 0),d([Object(o.b)({type:String,validator:function(t){return Object(c.a)(t,s.G)}}),p("design:type",Object)],e.prototype,"iconName",void 0),d([Object(o.b)({type:String,validator:function(t){return Object(c.a)(t,s.H)}}),p("design:type",Object)],e.prototype,"iconPosition",void 0),d([l.a,Object(o.a)({name:"ToggleBase"})],e)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r,i=n(1),o=n(0),a=n(8),s=n(114),c=n.n(s),u=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getTextColor=function(){return e.page.textColor&&!e.site.showContentBackground&&e.page.textColor||e.site.textColor},e.cssColor=function(){return{color:Object(a.a)(e.getTextColor(),e.invertColors())}},e}return u(e,t),Object.defineProperty(e.prototype,"getText",{get:function(){return this.site.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imageSrc",{get:function(){var t,e,n=null===(e=null===(t=this.site)||void 0===t?void 0:t.assets)||void 0===e?void 0:e.find((function(t){return"logo"===t.type}));return null==n?void 0:n.src},enumerable:!1,configurable:!0}),e.prototype.invertColors=function(){var t;return null===(t=this.page)||void 0===t?void 0:t.invertColors},e.prototype.isImage=function(){return"Image"===this.site.logoType&&!!this.imageSrc},e.prototype.logoClick=function(){"homepage"===this.$route.name&&window.scrollTo(0,0)},l([Object(o.b)(Object),f("design:type",Object)],e.prototype,"page",void 0),l([Object(o.b)(Object),f("design:type",Object)],e.prototype,"site",void 0),l([c.a,Object(o.a)({name:"LogoComponent"})],e)}(i.a)},function(t,e,n){var r;"undefined"!=typeof window&&(r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},u.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,r,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,o),!0;case 6:return l.fn.call(l.context,e,n,r,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},u.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},u.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,u=[],l=a.length;s<l;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&c(this,e)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,t.exports=u},"./node_modules/url-toolkit/src/url-toolkit.js":function(t,e,n){var r,i,o,a,s;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,i=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var r=s.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):e;var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(o,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s},"./node_modules/webworkify-webpack/index.js":function(t,e,n){function r(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n.oe=function(t){throw console.error(t),t};var r=n(n.s=ENTRY_MODULE);return r.default||r}var i="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function o(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(t,e,r){var a={};a[r]=[];var s=e.toString(),c=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return a;for(var u,l=c[1],f=new RegExp("(\\\\n|\\W)"+o(l)+i,"g");u=f.exec(s);)"dll-reference"!==u[3]&&a[r].push(u[3]);for(f=new RegExp("\\("+o(l)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)'+i,"g");u=f.exec(s);)t[u[2]]||(a[r].push(u[1]),t[u[2]]=n(u[1]).m),a[u[2]]=a[u[2]]||[],a[u[2]].push(u[4]);for(var d,p=Object.keys(a),h=0;h<p.length;h++)for(var g=0;g<a[p[h]].length;g++)d=a[p[h]][g],isNaN(1*d)||(a[p[h]][g]=1*a[p[h]][g]);return a}function s(t){return Object.keys(t).reduce((function(e,n){return e||t[n].length>0}),!1)}t.exports=function(t,e){e=e||{};var i={main:n.m},o=e.all?{main:Object.keys(i.main)}:function(t,e){for(var n={main:[e]},r={main:[]},i={main:{}};s(n);)for(var o=Object.keys(n),c=0;c<o.length;c++){var u=o[c],l=n[u].pop();if(i[u]=i[u]||{},!i[u][l]&&t[u][l]){i[u][l]=!0,r[u]=r[u]||[],r[u].push(l);for(var f=a(t,t[u][l],u),d=Object.keys(f),p=0;p<d.length;p++)n[d[p]]=n[d[p]]||[],n[d[p]]=n[d[p]].concat(f[d[p]])}}return r}(i,t),c="";Object.keys(o).filter((function(t){return"main"!==t})).forEach((function(t){for(var e=0;o[t][e];)e++;o[t].push(e),i[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+t+" = ("+r.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+o[t].map((function(e){return JSON.stringify(e)+": "+i[t][e].toString()})).join(",")+"});\n"})),c=c+"new (("+r.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+o.main.map((function(t){return JSON.stringify(t)+": "+i.main[t].toString()})).join(",")+"}))(self);";var u=new window.Blob([c],{type:"text/javascript"});if(e.bare)return u;var l=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(u),f=new window.Worker(l);return f.objectURL=l,f}},"./src/crypt/decrypter.js":function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),i=function(){function t(t,e){this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),o=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),n=new Uint32Array(4),r=0;r<4;r++)n[r]=e.getUint32(4*r);return n},e.initTable=function(){var t=this.sBox,e=this.invSBox,n=this.subMix,r=n[0],i=n[1],o=n[2],a=n[3],s=this.invSubMix,c=s[0],u=s[1],l=s[2],f=s[3],d=new Uint32Array(256),p=0,h=0,g=0;for(g=0;g<256;g++)d[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var v=h^h<<1^h<<2^h<<3^h<<4;v=v>>>8^255&v^99,t[p]=v,e[v]=p;var y=d[p],m=d[y],b=d[m],_=257*d[v]^16843008*v;r[p]=_<<24|_>>>8,i[p]=_<<16|_>>>16,o[p]=_<<8|_>>>24,a[p]=_,_=16843009*b^65537*m^257*y^16843008*p,c[v]=_<<24|_>>>8,u[v]=_<<16|_>>>16,l[v]=_<<8|_>>>24,f[v]=_,p?(p=y^d[d[d[b^y]]],h^=d[d[h]]):p=h=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),n=!0,r=0;r<e.length&&n;)n=e[r]===this.key[r],r++;if(!n){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var o,a,s,c,u=this.ksRows=4*(i+6+1),l=this.keySchedule=new Uint32Array(u),f=this.invKeySchedule=new Uint32Array(u),d=this.sBox,p=this.rcon,h=this.invSubMix,g=h[0],v=h[1],y=h[2],m=h[3];for(o=0;o<u;o++)o<i?s=l[o]=e[o]:(c=s,o%i==0?(c=d[(c=c<<8|c>>>24)>>>24]<<24|d[c>>>16&255]<<16|d[c>>>8&255]<<8|d[255&c],c^=p[o/i|0]<<24):i>6&&o%i==4&&(c=d[c>>>24]<<24|d[c>>>16&255]<<16|d[c>>>8&255]<<8|d[255&c]),l[o]=s=(l[o-i]^c)>>>0);for(a=0;a<u;a++)o=u-a,c=3&a?l[o]:l[o-4],f[a]=a<4||o<=4?c:g[d[c>>>24]]^v[d[c>>>16&255]]^y[d[c>>>8&255]]^m[d[255&c]],f[a]=f[a]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,n,r){for(var i,o,a,s,c,u,l,f,d,p,h,g,v,y,m,b,_,w=this.keySize+6,O=this.invKeySchedule,E=this.invSBox,S=this.invSubMix,k=S[0],C=S[1],T=S[2],A=S[3],x=this.uint8ArrayToUint32Array_(n),L=x[0],P=x[1],R=x[2],I=x[3],j=new Int32Array(t),D=new Int32Array(j.length),N=this.networkToHostOrderSwap;e<j.length;){for(d=N(j[e]),p=N(j[e+1]),h=N(j[e+2]),g=N(j[e+3]),c=d^O[0],u=g^O[1],l=h^O[2],f=p^O[3],v=4,y=1;y<w;y++)i=k[c>>>24]^C[u>>16&255]^T[l>>8&255]^A[255&f]^O[v],o=k[u>>>24]^C[l>>16&255]^T[f>>8&255]^A[255&c]^O[v+1],a=k[l>>>24]^C[f>>16&255]^T[c>>8&255]^A[255&u]^O[v+2],s=k[f>>>24]^C[c>>16&255]^T[u>>8&255]^A[255&l]^O[v+3],c=i,u=o,l=a,f=s,v+=4;i=E[c>>>24]<<24^E[u>>16&255]<<16^E[l>>8&255]<<8^E[255&f]^O[v],o=E[u>>>24]<<24^E[l>>16&255]<<16^E[f>>8&255]<<8^E[255&c]^O[v+1],a=E[l>>>24]<<24^E[f>>16&255]<<16^E[c>>8&255]<<8^E[255&u]^O[v+2],s=E[f>>>24]<<24^E[c>>16&255]<<16^E[u>>8&255]<<8^E[255&l]^O[v+3],v+=3,D[e]=N(i^L),D[e+1]=N(s^P),D[e+2]=N(a^R),D[e+3]=N(o^I),L=d,P=p,R=h,I=g,e+=4}return r?(_=(b=(m=D.buffer).byteLength)&&new DataView(m).getUint8(b-1))?m.slice(0,b-_):m:D.buffer},e.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),a=n("./src/errors.ts"),s=n("./src/utils/logger.js"),c=n("./src/events.js"),u=n("./src/utils/get-self-scope.js"),l=Object(u.getSelfScope)(),f=function(){function t(t,e,n){var r=(void 0===n?{}:n).removePKCS7Padding,i=void 0===r||r;if(this.logEnabled=!0,this.observer=t,this.config=e,this.removePKCS7Padding=i,i)try{var o=l.crypto;o&&(this.subtle=o.subtle||o.webkitSubtle)}catch(t){}this.disableWebCrypto=!this.subtle}var e=t.prototype;return e.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},e.decrypt=function(t,e,n,a){var c=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(s.logger.log("JS AES decrypt"),this.logEnabled=!1);var u=this.decryptor;u||(this.decryptor=u=new o),u.expandKey(e),a(u.decrypt(t,0,n,this.removePKCS7Padding))}else{this.logEnabled&&(s.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var l=this.subtle;this.key!==e&&(this.key=e,this.fastAesKey=new i(l,e)),this.fastAesKey.expandKey().then((function(i){new r(l,n).decrypt(t,i).catch((function(r){c.onWebCryptoError(r,t,e,n,a)})).then((function(t){a(t)}))})).catch((function(r){c.onWebCryptoError(r,t,e,n,a)}))}},e.onWebCryptoError=function(t,e,n,r,i){this.config.enableSoftwareAES?(s.logger.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,n,r,i)):(s.logger.error("decrypting error : "+t.message),this.observer.trigger(c.default.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},e.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}();e.default=f},"./src/demux/demuxer-inline.js":function(t,e,n){"use strict";n.r(e);var r=n("./src/events.js"),i=n("./src/errors.ts"),o=n("./src/crypt/decrypter.js"),a=n("./src/polyfills/number.js"),s=n("./src/utils/logger.js"),c=n("./src/utils/get-self-scope.js");function u(t,e){return 255===t[e]&&240==(246&t[e+1])}function l(t,e){return 1&t[e+1]?7:9}function f(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function d(t,e){return!!(e+1<t.length&&u(t,e))}function p(t,e){if(d(t,e)){var n=l(t,e);if(e+n>=t.length)return!1;var r=f(t,e);if(r<=n)return!1;var i=e+r;if(i===t.length||i+1<t.length&&u(t,i))return!0}return!1}function h(t,e,n,o,a){if(!t.samplerate){var c=function(t,e,n,o){var a,c,u,l,f,d=navigator.userAgent.toLowerCase(),p=o,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(a=1+((192&e[n+2])>>>6),!((c=(60&e[n+2])>>>2)>h.length-1))return l=(1&e[n+2])<<2,l|=(192&e[n+3])>>>6,s.logger.log("manifest codec:"+o+",ADTS data:type:"+a+",sampleingIndex:"+c+"["+h[c]+"Hz],channelConfig:"+l),/firefox/i.test(d)?c>=6?(a=5,f=new Array(4),u=c-3):(a=2,f=new Array(2),u=c):-1!==d.indexOf("android")?(a=2,f=new Array(2),u=c):(a=5,f=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&c>=6?u=c-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(c>=6&&1===l||/vivaldi/i.test(d))||!o&&1===l)&&(a=2,f=new Array(2)),u=c)),f[0]=a<<3,f[0]|=(14&c)>>1,f[1]|=(1&c)<<7,f[1]|=l<<3,5===a&&(f[1]|=(14&u)>>1,f[2]=(1&u)<<7,f[2]|=8,f[3]=0),{config:f,samplerate:h[c],channelCount:l,codec:"mp4a.40."+a,manifestCodec:p};t.trigger(r.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+c})}(e,n,o,a);t.config=c.config,t.samplerate=c.samplerate,t.channelCount=c.channelCount,t.codec=c.codec,t.manifestCodec=c.manifestCodec,s.logger.log("parsed codec:"+t.codec+",rate:"+c.samplerate+",nb channel:"+c.channelCount)}}function g(t){return 9216e4/t}function v(t,e,n,r,i){var o=function(t,e,n,r,i){var o,a,s=t.length;if(o=l(t,e),a=f(t,e),(a-=o)>0&&e+o+a<=s)return{headerLength:o,frameLength:a,stamp:n+r*i}}(e,n,r,i,g(t.samplerate));if(o){var a=o.stamp,s=o.headerLength,c=o.frameLength,u={unit:e.subarray(n+s,n+s+c),pts:a,dts:a};return t.samples.push(u),{sample:u,length:c+s}}}var y=n("./src/demux/id3.js"),m=function(){function t(t,e,n){this.observer=t,this.config=n,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,n,r){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:r,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){if(!t)return!1;for(var e=(y.default.getID3Data(t,0)||[]).length,n=t.length;e<n;e++)if(p(t,e))return s.logger.log("ADTS sync word found !"),!0;return!1},e.append=function(t,e,n,r){for(var i=this._audioTrack,o=y.default.getID3Data(t,0)||[],c=y.default.getTimeStamp(o),u=Object(a.isFiniteNumber)(c)?90*c:9e4*e,l=0,f=u,p=t.length,g=o.length,m=[{pts:f,dts:f,data:o}];g<p-1;)if(d(t,g)&&g+5<p){h(i,this.observer,t,g,i.manifestCodec);var b=v(i,t,g,u,l);if(!b){s.logger.log("Unable to parse AAC frame");break}g+=b.length,f=b.sample.pts,l++}else y.default.isHeader(t,g)?(o=y.default.getID3Data(t,g),m.push({pts:f,dts:f,data:o}),g+=o.length):g++;this.remuxer.remux(i,{samples:[]},{samples:m,inputTimeScale:9e4},{samples:[]},e,n,r)},e.destroy=function(){},t}(),b=n("./src/demux/mp4demuxer.js"),_={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(t,e,n,r,i){if(!(n+24>e.length)){var o=this.parseHeader(e,n);if(o&&n+o.frameLength<=e.length){var a=r+i*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:e.subarray(n,n+o.frameLength),pts:a,dts:a};return t.config=[],t.channelCount=o.channelCount,t.samplerate=o.sampleRate,t.samples.push(s),{sample:s,length:o.frameLength}}}},parseHeader:function(t,e){var n=t[e+1]>>3&3,r=t[e+1]>>1&3,i=t[e+2]>>4&15,o=t[e+2]>>2&3,a=t[e+2]>>1&1;if(1!==n&&0!==i&&15!==i&&3!==o){var s=3===n?3-r:3===r?3:4,c=1e3*_.BitratesMap[14*s+i-1],u=3===n?0:2===n?1:2,l=_.SamplingRateMap[3*u+o],f=t[e+3]>>6==3?1:2,d=_.SamplesCoefficients[n][r],p=_.BytesInSlot[r],h=8*d*p;return{sampleRate:l,channelCount:f,frameLength:parseInt(d*c/l+a,10)*p,samplesPerFrame:h}}},isHeaderPattern:function(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var n=this.parseHeader(t,e),r=4;n&&n.frameLength&&(r=n.frameLength);var i=e+r;if(i===t.length||i+1<t.length&&this.isHeaderPattern(t,i))return!0}return!1}},w=_,O=function(){function t(t){this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,n=t.byteLength-e,r=new Uint8Array(4),i=Math.min(4,e);if(0===i)throw new Error("no bytes available");r.set(t.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),n=this.word>>>32-e;return t>32&&s.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),(e=t-e)>0&&this.bitsAvailable?n<<e|this.readBits(e):n},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){var e,n=8,r=8;for(e=0;e<t;e++)0!==r&&(r=(n+this.readEG()+256)%256),n=0===r?n:r},e.readSPS=function(){var t,e,n,r,i,o,a,s=0,c=0,u=0,l=0,f=this.readUByte.bind(this),d=this.readBits.bind(this),p=this.readUEG.bind(this),h=this.readBoolean.bind(this),g=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);if(f(),t=f(),d(5),g(3),f(),y(),100===t||110===t||122===t||244===t||44===t||83===t||86===t||118===t||128===t){var b=p();if(3===b&&g(1),y(),y(),g(1),h())for(o=3!==b?8:12,a=0;a<o;a++)h()&&m(a<6?16:64)}y();var _=p();if(0===_)p();else if(1===_)for(g(1),v(),v(),e=p(),a=0;a<e;a++)v();y(),g(1),n=p(),r=p(),0===(i=d(1))&&g(1),g(1),h()&&(s=p(),c=p(),u=p(),l=p());var w=[1,1];if(h()&&h())switch(f()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:w=[f()<<8|f(),f()<<8|f()]}return{width:Math.ceil(16*(n+1)-2*s-2*c),height:(2-i)*(r+1)*16-(i?2:4)*(u+l),pixelRatio:w}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),E=function(){function t(t,e,n,r){this.decryptdata=n,this.discardEPB=r,this.decrypter=new o.default(t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},e.decryptAacSample=function(t,e,n,r){var i=t[e].unit,o=i.subarray(16,i.length-i.length%16),a=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),s=this;this.decryptBuffer(a,(function(o){o=new Uint8Array(o),i.set(o,16),r||s.decryptAacSamples(t,e+1,n)}))},e.decryptAacSamples=function(t,e,n){for(;;e++){if(e>=t.length)return void n();if(!(t[e].unit.length<32)){var r=this.decrypter.isSync();if(this.decryptAacSample(t,e,n,r),!r)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,n=new Int8Array(e),r=0,i=32;i<=t.length-16;i+=160,r+=16)n.set(t.subarray(i,i+16),r);return n},e.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var n=0,r=32;r<=t.length-16;r+=160,n+=16)t.set(e.subarray(n,n+16),r);return t},e.decryptAvcSample=function(t,e,n,r,i,o){var a=this.discardEPB(i.data),s=this.getAvcEncryptedData(a),c=this;this.decryptBuffer(s.buffer,(function(s){i.data=c.getAvcDecryptedUnit(a,s),o||c.decryptAvcSamples(t,e,n+1,r)}))},e.decryptAvcSamples=function(t,e,n,r){for(;;e++,n=0){if(e>=t.length)return void r();for(var i=t[e].units;!(n>=i.length);n++){var o=i[n];if(!(o.length<=48||1!==o.type&&5!==o.type)){var a=this.decrypter.isSync();if(this.decryptAvcSample(t,e,n,r,o,a),!a)return}}}},t}(),S={video:1,audio:2,id3:3,text:4},k=function(){function t(t,e,n,r){this.observer=t,this.config=n,this.typeSupported=r,this.remuxer=e,this.sampleAes=null,this.pmtUnknownTypes={}}var e=t.prototype;return e.setDecryptData=function(t){null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new E(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},t.probe=function(e){var n=t._syncOffset(e);return!(n<0||(n&&s.logger.warn("MPEG2-TS detected but first sync word found @ offset "+n+", junk ahead ?"),0))},t._syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),n=0;n<e;){if(71===t[n]&&71===t[n+188]&&71===t[n+376])return n;n++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:S[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?e:void 0}},e.resetInitSegment=function(e,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this.pmtUnknownTypes={},this._avcTrack=t.createTrack("video",i),this._audioTrack=t.createTrack("audio",i),this._id3Track=t.createTrack("id3",i),this._txtTrack=t.createTrack("text",i),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=n,this.videoCodec=r,this._duration=i},e.resetTimeStamp=function(){},e.append=function(e,n,o,a){var c,u,l,f,d,p=e.length,h=!1;this.pmtUnknownTypes={},this.contiguous=o;var g=this.pmtParsed,v=this._avcTrack,y=this._audioTrack,m=this._id3Track,b=v.pid,_=y.pid,w=m.pid,O=this._pmtId,E=v.pesData,S=y.pesData,k=m.pesData,C=this._parsePAT,T=this._parsePMT.bind(this),A=this._parsePES,x=this._parseAVCPES.bind(this),L=this._parseAACPES.bind(this),P=this._parseMPEGPES.bind(this),R=this._parseID3PES.bind(this),I=t._syncOffset(e);for(p-=(p+I)%188,c=I;c<p;c+=188)if(71===e[c]){if(u=!!(64&e[c+1]),l=((31&e[c+1])<<8)+e[c+2],(48&e[c+3])>>4>1){if((f=c+5+e[c+4])===c+188)continue}else f=c+4;switch(l){case b:u&&(E&&(d=A(E))&&x(d,!1),E={data:[],size:0}),E&&(E.data.push(e.subarray(f,c+188)),E.size+=c+188-f);break;case _:u&&(S&&(d=A(S))&&(y.isAAC?L(d):P(d)),S={data:[],size:0}),S&&(S.data.push(e.subarray(f,c+188)),S.size+=c+188-f);break;case w:u&&(k&&(d=A(k))&&R(d),k={data:[],size:0}),k&&(k.data.push(e.subarray(f,c+188)),k.size+=c+188-f);break;case 0:u&&(f+=e[f]+1),O=this._pmtId=C(e,f);break;case O:u&&(f+=e[f]+1);var j=T(e,f,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);(b=j.avc)>0&&(v.pid=b),(_=j.audio)>0&&(y.pid=_,y.isAAC=j.isAAC),(w=j.id3)>0&&(m.pid=w),h&&!g&&(s.logger.log("reparse from beginning"),h=!1,c=I-188),g=this.pmtParsed=!0;break;case 17:case 8191:break;default:h=!0}}else this.observer.trigger(r.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});E&&(d=A(E))?(x(d,!0),v.pesData=null):v.pesData=E,S&&(d=A(S))?(y.isAAC?L(d):P(d),y.pesData=null):(S&&S.size&&s.logger.log("last AAC PES packet truncated,might overlap between fragments"),y.pesData=S),k&&(d=A(k))?(R(d),m.pesData=null):m.pesData=k,null==this.sampleAes?this.remuxer.remux(y,v,m,this._txtTrack,n,o,a):this.decryptAndRemux(y,v,m,this._txtTrack,n,o,a)},e.decryptAndRemux=function(t,e,n,r,i,o,a){if(t.samples&&t.isAAC){var s=this;this.sampleAes.decryptAacSamples(t.samples,0,(function(){s.decryptAndRemuxAvc(t,e,n,r,i,o,a)}))}else this.decryptAndRemuxAvc(t,e,n,r,i,o,a)},e.decryptAndRemuxAvc=function(t,e,n,r,i,o,a){if(e.samples){var s=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,(function(){s.remuxer.remux(t,e,n,r,i,o,a)}))}else this.remuxer.remux(t,e,n,r,i,o,a)},e.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},e._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},e._trackUnknownPmt=function(t,e,n){var r=this.pmtUnknownTypes[t]||0;return 0===r&&(this.pmtUnknownTypes[t]=0,e.call(s.logger,n)),this.pmtUnknownTypes[t]++,r},e._parsePMT=function(t,e,n,r){var i,o,a={audio:-1,avc:-1,id3:-1,isAAC:!0};for(i=e+3+((15&t[e+1])<<8|t[e+2])-4,e+=12+((15&t[e+10])<<8|t[e+11]);e<i;){switch(o=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!r){this._trackUnknownPmt(t[e],s.logger.warn,"ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===a.audio&&(a.audio=o);break;case 21:-1===a.id3&&(a.id3=o);break;case 219:if(!r){this._trackUnknownPmt(t[e],s.logger.warn,"H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===a.avc&&(a.avc=o);break;case 3:case 4:n?-1===a.audio&&(a.audio=o,a.isAAC=!1):this._trackUnknownPmt(t[e],s.logger.warn,"MPEG audio found, not supported in this browser");break;case 36:this._trackUnknownPmt(t[e],s.logger.warn,"Unsupported HEVC stream type found");break;default:this._trackUnknownPmt(t[e],s.logger.log,"Unknown stream type:"+t[e])}e+=5+((15&t[e+3])<<8|t[e+4])}return a},e._parsePES=function(t){var e,n,r,i,o,a,c,u,l=0,f=t.data;if(!t||0===t.size)return null;for(;f[0].length<19&&f.length>1;){var d=new Uint8Array(f[0].length+f[1].length);d.set(f[0]),d.set(f[1],f[0].length),f[0]=d,f.splice(1,1)}if(1===((e=f[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;if(192&(n=e[7])&&(a=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&n?a-(c=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(s.logger.warn(Math.round((a-c)/9e4)+"s delta between PTS and DTS, align them"),a=c):c=a),u=(i=e[8])+9,t.size<=u)return null;t.size-=u,o=new Uint8Array(t.size);for(var p=0,h=f.length;p<h;p++){var g=(e=f[p]).byteLength;if(u){if(u>g){u-=g;continue}e=e.subarray(u),g-=u,u=0}o.set(e,l),l+=g}return r&&(r-=i+3),{data:o,pts:a,dts:c,len:r}}return null},e.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var n=e.samples,r=n.length;if(isNaN(t.pts)){if(!r)return void e.dropped++;var i=n[r-1];t.pts=i.pts,t.dts=i.dts}!this.config.forceKeyFrameOnDiscontinuity||!0===t.key||e.sps&&(r||this.contiguous)?(t.id=r,n.push(t)):e.dropped++}t.debug.length&&s.logger.log(t.pts+"/"+t.dts+":"+t.debug)},e._parseAVCPES=function(t,e){var n,r,i,o=this,a=this._avcTrack,s=this._parseAVCNALu(t.data),c=this.avcSample,u=!1,l=this.pushAccesUnit.bind(this),f=function(t,e,n,r){return{key:t,pts:e,dts:n,units:[],debug:r}};t.data=null,c&&s.length&&!a.audFound&&(l(c,a),c=this.avcSample=f(!1,t.pts,t.dts,"")),s.forEach((function(e){switch(e.type){case 1:r=!0,c||(c=o.avcSample=f(!0,t.pts,t.dts,"")),c.frame=!0;var s=e.data;if(u&&s.length>4){var d=new O(s).readSliceType();2!==d&&4!==d&&7!==d&&9!==d||(c.key=!0)}break;case 5:r=!0,c||(c=o.avcSample=f(!0,t.pts,t.dts,"")),c.key=!0,c.frame=!0;break;case 6:r=!0,(n=new O(o.discardEPB(e.data))).readUByte();for(var p=0,h=0,g=!1,v=0;!g&&n.bytesAvailable>1;){p=0;do{p+=v=n.readUByte()}while(255===v);h=0;do{h+=v=n.readUByte()}while(255===v);if(4===p&&0!==n.bytesAvailable){if(g=!0,181===n.readUByte()&&49===n.readUShort()&&1195456820===n.readUInt()&&3===n.readUByte()){var m=n.readUByte(),b=31&m,_=[m,n.readUByte()];for(i=0;i<b;i++)_.push(n.readUByte()),_.push(n.readUByte()),_.push(n.readUByte());o._insertSampleInOrder(o._txtTrack.samples,{type:3,pts:t.pts,bytes:_})}}else if(5===p&&0!==n.bytesAvailable){if(g=!0,h>16){var w=[];for(i=0;i<16;i++)w.push(n.readUByte().toString(16)),3!==i&&5!==i&&7!==i&&9!==i||w.push("-");var E=h-16,S=new Uint8Array(E);for(i=0;i<E;i++)S[i]=n.readUByte();o._insertSampleInOrder(o._txtTrack.samples,{pts:t.pts,payloadType:p,uuid:w.join(""),userDataBytes:S,userData:Object(y.utf8ArrayToStr)(S.buffer)})}}else if(h<n.bytesAvailable)for(i=0;i<h;i++)n.readUByte()}break;case 7:if(r=!0,u=!0,!a.sps){var k=(n=new O(e.data)).readSPS();a.width=k.width,a.height=k.height,a.pixelRatio=k.pixelRatio,a.sps=[e.data],a.duration=o._duration;var C=e.data.subarray(1,4),T="avc1.";for(i=0;i<3;i++){var A=C[i].toString(16);A.length<2&&(A="0"+A),T+=A}a.codec=T}break;case 8:r=!0,a.pps||(a.pps=[e.data]);break;case 9:r=!1,a.audFound=!0,c&&l(c,a),c=o.avcSample=f(!1,t.pts,t.dts,"");break;case 12:r=!1;break;default:r=!1,c&&(c.debug+="unknown NAL "+e.type+" ")}c&&r&&c.units.push(e)})),e&&c&&(l(c,a),this.avcSample=null)},e._insertSampleInOrder=function(t,e){var n=t.length;if(n>0){if(e.pts>=t[n-1].pts)t.push(e);else for(var r=n-1;r>=0;r--)if(e.pts<t[r].pts){t.splice(r,0,e);break}}else t.push(e)},e._getLastNalUnit=function(){var t,e=this.avcSample;if(!e||0===e.units.length){var n=this._avcTrack.samples;e=n[n.length-1]}if(e){var r=e.units;t=r[r.length-1]}return t},e._parseAVCNALu=function(t){var e,n,r,i,o=0,a=t.byteLength,s=this._avcTrack,c=s.naluState||0,u=c,l=[],f=-1;for(-1===c&&(f=0,i=31&t[0],c=0,o=1);o<a;)if(e=t[o++],c)if(1!==c)if(e)if(1===e){if(f>=0)r={data:t.subarray(f,o-c-1),type:i},l.push(r);else{var d=this._getLastNalUnit();if(d&&(u&&o<=4-u&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-u)),(n=o-c-1)>0)){var p=new Uint8Array(d.data.byteLength+n);p.set(d.data,0),p.set(t.subarray(0,n),d.data.byteLength),d.data=p}}o<a?(f=o,i=31&t[o],c=0):c=-1}else c=0;else c=3;else c=e?0:2;else c=e?0:1;if(f>=0&&c>=0&&(r={data:t.subarray(f,a),type:i,state:c},l.push(r)),0===l.length){var h=this._getLastNalUnit();if(h){var g=new Uint8Array(h.data.byteLength+t.byteLength);g.set(h.data,0),g.set(t,h.data.byteLength),h.data=g}}return s.naluState=c,l},e.discardEPB=function(t){for(var e,n,r=t.byteLength,i=[],o=1;o<r-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return t;e=r-i.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=t[a];return n},e._parseAACPES=function(t){var e,n,o,a,c,u,l,f=this._audioTrack,p=t.data,y=t.pts,m=this.aacOverFlow,b=this.aacLastPTS;if(m){var _=new Uint8Array(m.byteLength+p.byteLength);_.set(m,0),_.set(p,m.byteLength),p=_}for(o=0,c=p.length;o<c-1&&!d(p,o);o++);if(!o||(o<c-1?(u="AAC PES did not start with ADTS header,offset:"+o,l=!1):(u="no ADTS header found in AAC PES",l=!0),s.logger.warn("parsing error:"+u),this.observer.trigger(r.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:l,reason:u}),!l)){if(h(f,this.observer,p,o,this.audioCodec),n=0,e=g(f.samplerate),m&&b){var w=b+e;Math.abs(w-y)>1&&(s.logger.log("AAC: align PTS for overlapping frames by "+Math.round((w-y)/90)),y=w)}for(;o<c;){if(d(p,o)){if(o+5<c){var O=v(f,p,o,y,n);if(O){o+=O.length,a=O.sample.pts,n++;continue}}break}o++}m=o<c?p.subarray(o,c):null,this.aacOverFlow=m,this.aacLastPTS=a}},e._parseMPEGPES=function(t){for(var e=t.data,n=e.length,r=0,i=0,o=t.pts;i<n;)if(w.isHeader(e,i)){var a=w.appendFrame(this._audioTrack,e,i,o,r);if(!a)break;i+=a.length,r++}else i++},e._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),C=function(){function t(t,e,n){this.observer=t,this.config=n,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,n,r){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:r,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){var e,n,r=y.default.getID3Data(t,0);if(r&&void 0!==y.default.getTimeStamp(r))for(e=r.length,n=Math.min(t.length-1,e+100);e<n;e++)if(w.probe(t,e))return s.logger.log("MPEG Audio sync word found !"),!0;return!1},e.append=function(t,e,n,r){for(var i=y.default.getID3Data(t,0)||[],o=y.default.getTimeStamp(i),a=void 0!==o?90*o:9e4*e,s=i.length,c=t.length,u=0,l=0,f=this._audioTrack,d=[{pts:a,dts:a,data:i}];s<c;)if(w.isHeader(t,s)){var p=w.appendFrame(f,t,s,a,u);if(!p)break;s+=p.length,l=p.sample.pts,u++}else y.default.isHeader(t,s)?(i=y.default.getID3Data(t,s),d.push({pts:l,dts:l,data:i}),s+=i.length):s++;this.remuxer.remux(f,{samples:[]},{samples:d,inputTimeScale:9e4},{samples:[]},e,n,r)},e.destroy=function(){},t}(),T=function(){function t(){}return t.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),A=Math.pow(2,32)-1,x=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:n,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=o,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,a,c,a,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,i))},t.box=function(t){for(var e,n=Array.prototype.slice.call(arguments,1),r=8,i=n.length,o=i;i--;)r+=n[i].byteLength;for((e=new Uint8Array(r))[0]=r>>24&255,e[1]=r>>16&255,e[2]=r>>8&255,e[3]=255&r,e.set(t,4),i=0,r=8;i<o;i++)e.set(n[i],r),r+=n[i].byteLength;return e},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,n){n*=e;var r=Math.floor(n/(A+1)),i=Math.floor(n%(A+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,n,r){return t.box(t.types.moof,t.mfhd(e),t.traf(r,n))},t.moov=function(e){for(var n=e.length,r=[];n--;)r[n]=t.trak(e[n]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(t.mvex(e)))},t.mvex=function(e){for(var n=e.length,r=[];n--;)r[n]=t.trex(e[n]);return t.box.apply(null,[t.types.mvex].concat(r))},t.mvhd=function(e,n){n*=e;var r=Math.floor(n/(A+1)),i=Math.floor(n%(A+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,o)},t.sdtp=function(e){var n,r,i=e.samples||[],o=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,o[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t.box(t.types.sdtp,o)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var n,r,i,o=[],a=[];for(n=0;n<e.sps.length;n++)i=(r=e.sps[n]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(r));for(n=0;n<e.pps.length;n++)i=(r=e.pps[n]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(r));var s=t.box(t.types.avcC,new Uint8Array([1,o[3],o[4],o[5],255,224|e.sps.length].concat(o).concat([e.pps.length]).concat(a))),c=e.width,u=e.height,l=e.pixelRatio[0],f=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,255&c,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,f>>24,f>>16&255,f>>8&255,255&f])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var n=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var n=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]))},t.stsd=function(e){return"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var n=e.id,r=e.duration*e.timescale,i=e.width,o=e.height,a=Math.floor(r/(A+1)),s=Math.floor(r%(A+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,o>>8&255,255&o,0,0]))},t.traf=function(e,n){var r=t.sdtp(e),i=e.id,o=Math.floor(n/(A+1)),a=Math.floor(n%(A+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a])),t.trun(e,r.length+16+20+8+16+8+8),r)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var n=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,n){var r,i,o,a,s,c,u=e.samples||[],l=u.length,f=12+16*l,d=new Uint8Array(f);for(n+=8+f,d.set([0,0,15,1,l>>>24&255,l>>>16&255,l>>>8&255,255&l,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),r=0;r<l;r++)o=(i=u[r]).duration,a=i.size,s=i.flags,c=i.cts,d.set([o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,c>>>24&255,c>>>16&255,c>>>8&255,255&c],12+16*r);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var n,r=t.moov(e);return(n=new Uint8Array(t.FTYP.byteLength+r.byteLength)).set(t.FTYP),n.set(r,t.FTYP.byteLength),n},t}();function L(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=!1);var i=t*e*n;return r?Math.round(i):i}function P(t,e){return void 0===e&&(e=!1),L(t,1e3,1/9e4,e)}function R(t,e){return void 0===e&&(e=1),L(t,9e4,1/e)}var I=R(10),j=R(.2),D=null;function N(t,e){var n;if(void 0===e)return t;for(n=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=n;return t}var M,F=function(){function t(t,e,n,r){if(this.observer=t,this.config=e,this.typeSupported=n,this.ISGenerated=!1,null===D){var i=navigator.userAgent.match(/Chrome\/(\d+)/i);D=i?parseInt(i[1]):0}}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},e.resetInitSegment=function(){this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,n=t.reduce((function(t,n){var r=n.pts-t;return r<-4294967296?(e=!0,t):r>0?t:n.pts}),t[0].pts);return e&&s.logger.debug("PTS rollover detected"),n},e.remux=function(t,e,n,i,o,a,c){if(this.ISGenerated||this.generateIS(t,e,o),this.ISGenerated){var u=t.samples.length,l=e.samples.length,f=o,d=o;if(u&&l){var p=this.getVideoStartPts(e.samples),h=(t.samples[0].pts-p)/e.inputTimeScale;f+=Math.max(0,h),d+=Math.max(0,-h)}if(u){t.timescale||(s.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,o));var g,v=this.remuxAudio(t,f,a,c);l&&(v&&(g=v.endPTS-v.startPTS),e.timescale||(s.logger.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,o)),this.remuxVideo(e,d,a,g))}else if(l){var y=this.remuxVideo(e,d,a,0,c);y&&t.codec&&this.remuxEmptyAudio(t,f,a,y)}}n.samples.length&&this.remuxID3(n,o),i.samples.length&&this.remuxText(i,o),this.observer.trigger(r.default.FRAG_PARSED)},e.generateIS=function(t,e,n){var o,a,c=this.observer,u=t.samples,l=e.samples,f=this.typeSupported,d="audio/mp4",p={},h={tracks:p},g=void 0===this._initPTS;if(g&&(o=a=1/0),t.config&&u.length&&(t.timescale=t.samplerate,s.logger.log("audio sampling rate : "+t.samplerate),t.isAAC||(f.mpeg?(d="audio/mpeg",t.codec=""):f.mp3&&(t.codec="mp3")),p.audio={container:d,codec:t.codec,initSegment:!t.isAAC&&f.mpeg?new Uint8Array:x.initSegment([t]),metadata:{channelCount:t.channelCount}},g&&(o=a=u[0].pts-Math.round(t.inputTimeScale*n))),e.sps&&e.pps&&l.length){var v=e.inputTimeScale;if(e.timescale=v,p.video={container:"video/mp4",codec:e.codec,initSegment:x.initSegment([e]),metadata:{width:e.width,height:e.height}},g){var y=this.getVideoStartPts(l),m=Math.round(v*n);a=Math.min(a,l[0].dts-m),o=Math.min(o,y-m),this.observer.trigger(r.default.INIT_PTS_FOUND,{initPTS:o})}}else g&&p.audio&&this.observer.trigger(r.default.INIT_PTS_FOUND,{initPTS:o});Object.keys(p).length?(c.trigger(r.default.FRAG_PARSING_INIT_SEGMENT,h),this.ISGenerated=!0,g&&(this._initPTS=o,this._initDTS=a)):c.trigger(r.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},e.remuxVideo=function(t,e,n,o){var a,c,u,l,f,d=t.timescale,p=t.samples,h=[],g=p.length,v=this._initPTS,y=8,m=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,_=0,w=!1,O=this.nextAvcDts;if(0!==g){n||(O=e*d-(p[0].pts-N(p[0].dts,p[0].pts)));for(var E=0;E<g;E++){var S=p[E];S.pts=N(S.pts-v,O),S.dts=N(S.dts-v,O),S.dts>S.pts&&(_=Math.max(Math.min(_,S.pts-S.dts),-1*j)),S.dts<p[E>0?E-1:E].dts&&(w=!0)}w&&p.sort((function(t,e){var n=t.dts-e.dts,r=t.pts-e.pts;return n||r||t.id-e.id})),l=p[0].dts,f=p[g-1].dts;var k=Math.round((f-l)/(g-1));if(_<0){if(_<-2*k){s.logger.warn("PTS < DTS detected in video samples, offsetting DTS to PTS "+P(-k,!0)+" ms");for(var C=0;C<g;C++)p[C].dts=p[C].pts-k}else{s.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+P(_,!0)+" ms to overcome this issue");for(var T=0;T<g;T++)p[T].dts=p[T].dts+_}l=p[0].dts,f=p[g-1].dts}if(n){var A=l-O,L=A>k;if(L||A<-1){L?s.logger.warn("AVC: "+P(A,!0)+" ms ("+A+"dts) hole between fragments detected, filling it"):s.logger.warn("AVC: "+P(-A,!0)+" ms ("+A+"dts) overlapping between fragments detected"),l=O;var R=p[0].pts-A;p[0].dts=l,p[0].pts=R,s.logger.log("Video: First PTS/DTS adjusted: "+P(R,!0)+"/"+P(l,!0)+", delta: "+P(A,!0)+" ms")}}D&&D<75&&(l=Math.max(0,l));for(var I=0,M=0,F=0;F<g;F++){for(var B=p[F],U=B.units,$=U.length,q=0,H=0;H<$;H++)q+=U[H].data.length;M+=q,I+=$,B.length=q,B.dts=Math.max(B.dts,l),B.pts=Math.max(B.pts,B.dts,0),m=Math.min(B.pts,m),b=Math.max(B.pts,b)}f=p[g-1].dts;var G=M+4*I+8;try{c=new Uint8Array(G)}catch(t){return void this.observer.trigger(r.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:G,reason:"fail allocating video mdat "+G})}var z=new DataView(c.buffer);z.setUint32(0,G),c.set(x.types.mdat,4);for(var V=0;V<g;V++){for(var K,W=p[V],Y=W.units,X=0,Z=0,J=Y.length;Z<J;Z++){var Q=Y[Z],tt=Q.data,et=Q.data.byteLength;z.setUint32(y,et),y+=4,c.set(tt,y),y+=et,X+=4+et}if(V<g-1)a=p[V+1].dts-W.dts;else{var nt=this.config,rt=W.dts-p[V>0?V-1:V].dts;if(nt.stretchShortVideoTrack){var it=nt.maxBufferHole,ot=Math.floor(it*d),at=(o?m+o*d:this.nextAudioPts)-W.pts;at>ot?((a=at-rt)<0&&(a=rt),s.logger.log("It is approximately "+P(at,!1)+" ms to the next segment; using duration "+P(a,!1)+" ms for the last video frame.")):a=rt}else a=rt}K=Math.round(W.pts-W.dts),h.push({size:X,duration:a,cts:K,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:W.key?2:1,isNonSync:W.key?0:1}})}this.nextAvcDts=f+a;var st=t.dropped;if(t.nbNalu=0,t.dropped=0,h.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var ct=h[0].flags;ct.dependsOn=2,ct.isNonSync=0}t.samples=h,u=x.moof(t.sequenceNumber++,l,t),t.samples=[];var ut={data1:u,data2:c,startPTS:m/d,endPTS:(b+a)/d,startDTS:l/d,endDTS:this.nextAvcDts/d,type:"video",hasAudio:!1,hasVideo:!0,nb:h.length,dropped:st};return this.observer.trigger(r.default.FRAG_PARSING_DATA,ut),ut}},e.remuxAudio=function(t,e,n,o){var a,c,u,l,f,d,p=t.inputTimeScale,h=t.timescale,g=p/h,v=(t.isAAC?1024:1152)*g,y=this._initPTS,m=!t.isAAC&&this.typeSupported.mpeg,b=m?0:8,_=t.samples,w=[],O=this.nextAudioPts;if(n|=_.length&&O&&(o&&Math.abs(e-O/p)<.1||Math.abs(_[0].pts-O-y)<20*v),_.forEach((function(t){t.pts=t.dts=N(t.pts-y,e*p)})),0!==(_=_.filter((function(t){return t.pts>=0}))).length){if(n||(O=o?Math.max(0,e*p):_[0].pts),t.isAAC)for(var E=this.config.maxAudioFramesDrift,S=0,k=O;S<_.length;){var C=_[S],A=C.pts,L=A-k;if(L<=-E*v)n||S>0?(s.logger.warn("Dropping 1 audio frame @ "+P(k,!0)/1e3+"s due to "+P(L,!0)+" ms overlap."),_.splice(S,1)):(s.logger.warn("Audio frame @ "+P(A,!0)/1e3+"s overlaps nextAudioPts by "+P(L,!0)+" ms."),k=A+v,S++);else if(L>=E*v&&L<I&&k){var R=Math.round(L/v);s.logger.warn("Injecting "+R+" audio frames @ "+P(k,!0)/1e3+"s due to "+P(L,!0)+" ms gap.");for(var j=0;j<R;j++){var D=Math.max(k,0);(c=T.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),c=C.unit.subarray()),_.splice(S,0,{unit:c,pts:D,dts:D}),k+=v,S++}C.pts=C.dts=k,k+=v,S++}else Math.abs(L),C.pts=C.dts=k,k+=v,S++}for(var M=_.length,F=0;M--;)F+=_[M].unit.byteLength;for(var B=0,U=_.length;B<U;B++){var $=_[B],q=$.unit,H=$.pts;if(void 0!==d&&a)a.duration=Math.round((H-d)/g);else{var G=H-O,z=0;if(n&&t.isAAC&&G){if(G>0&&G<I)z=Math.round((H-O)/v),s.logger.log(P(G,!0)+" ms hole between AAC samples detected,filling it"),z>0&&((c=T.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(c=q.subarray()),F+=z*c.length);else if(G<-12){s.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+P(O,!0)+" ms / "+P(H,!0)+" ms / "+P(-G,!0)+" ms"),F-=q.byteLength;continue}H=O}if(f=H,!(F>0))return;F+=b;try{u=new Uint8Array(F)}catch(t){return void this.observer.trigger(r.default.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:F,reason:"fail allocating audio mdat "+F})}m||(new DataView(u.buffer).setUint32(0,F),u.set(x.types.mdat,4));for(var V=0;V<z;V++)(c=T.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(s.logger.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),c=q.subarray()),u.set(c,b),b+=c.byteLength,a={size:c.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},w.push(a)}u.set(q,b);var K=q.byteLength;b+=K,a={size:K,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},w.push(a),d=H}var W=0;if((M=w.length)>=2&&(W=w[M-2].duration,a.duration=W),M){this.nextAudioPts=O=d+g*W,t.samples=w,l=m?new Uint8Array:x.moof(t.sequenceNumber++,f/g,t),t.samples=[];var Y=f/p,X=O/p,Z={data1:l,data2:u,startPTS:Y,endPTS:X,startDTS:Y,endDTS:X,type:"audio",hasAudio:!0,hasVideo:!1,nb:M};return this.observer.trigger(r.default.FRAG_PARSING_DATA,Z),Z}return null}},e.remuxEmptyAudio=function(t,e,n,r){var i=t.inputTimeScale,o=i/(t.samplerate?t.samplerate:i),a=this.nextAudioPts,c=(void 0!==a?a:r.startDTS*i)+this._initDTS,u=r.endDTS*i+this._initDTS,l=1024*o,f=Math.ceil((u-c)/l),d=T.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(s.logger.warn("remux empty Audio"),d){for(var p=[],h=0;h<f;h++){var g=c+h*l;p.push({unit:d,pts:g,dts:g})}t.samples=p,this.remuxAudio(t,e,n)}else s.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},e.remuxID3=function(t,e){var n=t.samples.length;if(n){for(var i=t.inputTimeScale,o=this._initPTS,a=this._initDTS,s=0;s<n;s++){var c=t.samples[s];c.pts=N(c.pts-o,e*i)/i,c.dts=N(c.dts-a,e*i)/i}this.observer.trigger(r.default.FRAG_PARSING_METADATA,{samples:t.samples}),t.samples=[]}},e.remuxText=function(t,e){var n=t.samples.length,i=t.inputTimeScale,o=this._initPTS;if(n){for(var a=0;a<n;a++){var s=t.samples[a];s.pts=N(s.pts-o,e*i)/i}t.samples.sort((function(t,e){return t.pts-e.pts})),this.observer.trigger(r.default.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[]},t}(),B=function(){function t(t){this.observer=t}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(){},e.resetInitSegment=function(){},e.remux=function(t,e,n,i,o,a,s,c){var u=this.observer,l="";t&&(l+="audio"),e&&(l+="video"),u.trigger(r.default.FRAG_PARSING_DATA,{data1:c,startPTS:o,startDTS:o,type:l,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),u.trigger(r.default.FRAG_PARSED)},t}(),U=Object(c.getSelfScope)();try{M=U.performance.now.bind(U.performance)}catch(t){s.logger.debug("Unable to use Performance API on this environment"),M=U.Date.now}var $=function(){function t(t,e,n,r){this.observer=t,this.typeSupported=e,this.config=n,this.vendor=r}var e=t.prototype;return e.destroy=function(){var t=this.demuxer;t&&t.destroy()},e.push=function(t,e,n,i,a,s,c,u,l,f,d,p){var h=this;if(t.byteLength>0&&null!=e&&null!=e.key&&"AES-128"===e.method){var g=this.decrypter;null==g&&(g=this.decrypter=new o.default(this.observer,this.config));var v=M();g.decrypt(t,e.key.buffer,e.iv.buffer,(function(t){var o=M();h.observer.trigger(r.default.FRAG_DECRYPTED,{stats:{tstart:v,tdecrypt:o}}),h.pushDecrypted(new Uint8Array(t),e,new Uint8Array(n),i,a,s,c,u,l,f,d,p)}))}else this.pushDecrypted(new Uint8Array(t),e,new Uint8Array(n),i,a,s,c,u,l,f,d,p)},e.pushDecrypted=function(t,e,n,o,a,s,c,u,l,f,d,p){var h=this.demuxer,g=this.remuxer;if(!h||c||u){for(var v,y=this.observer,_=this.typeSupported,w=this.config,O=[{demux:k,remux:F},{demux:b.default,remux:B},{demux:m,remux:F},{demux:C,remux:F}],E=0,S=O.length;E<S&&!(v=O[E]).demux.probe(t);E++);if(!v)return void y.trigger(r.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});g&&g instanceof v.remux||(g=new v.remux(y,w,_,this.vendor)),h&&h instanceof v.demux||(h=new v.demux(y,g,w,_),this.probe=v.demux.probe),this.demuxer=h,this.remuxer=g}(c||u)&&(h.resetInitSegment(n,o,a,f),g.resetInitSegment()),c&&(h.resetTimeStamp(p),g.resetTimeStamp(p)),"function"==typeof h.setDecryptData&&h.setDecryptData(e),h.append(t,s,l,d)},t}();e.default=$},"./src/demux/demuxer-worker.js":function(t,e,n){"use strict";n.r(e);var r=n("./src/demux/demuxer-inline.js"),i=n("./src/events.js"),o=n("./src/utils/logger.js"),a=n("./node_modules/eventemitter3/index.js");e.default=function(t){var e=new a.EventEmitter;e.trigger=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t,t].concat(r))},e.off=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.removeListener.apply(e,[t].concat(r))};var n=function(e,n){t.postMessage({event:e,data:n})};t.addEventListener("message",(function(i){var a=i.data;switch(a.cmd){case"init":var s=JSON.parse(a.config);t.demuxer=new r.default(e,a.typeSupported,s,a.vendor),Object(o.enableLogs)(s.debug),n("init",null);break;case"demux":t.demuxer.push(a.data,a.decryptdata,a.initSegment,a.audioCodec,a.videoCodec,a.timeOffset,a.discontinuity,a.trackSwitch,a.contiguous,a.duration,a.accurateTimeOffset,a.defaultInitPTS)}})),e.on(i.default.FRAG_DECRYPTED,n),e.on(i.default.FRAG_PARSING_INIT_SEGMENT,n),e.on(i.default.FRAG_PARSED,n),e.on(i.default.ERROR,n),e.on(i.default.FRAG_PARSING_METADATA,n),e.on(i.default.FRAG_PARSING_USERDATA,n),e.on(i.default.INIT_PTS_FOUND,n),e.on(i.default.FRAG_PARSING_DATA,(function(e,n){var r=[],i={event:e,data:n};n.data1&&(i.data1=n.data1.buffer,r.push(n.data1.buffer),delete n.data1),n.data2&&(i.data2=n.data2.buffer,r.push(n.data2.buffer),delete n.data2),t.postMessage(i,r)}))}},"./src/demux/id3.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utf8ArrayToStr",(function(){return s}));var r,i=n("./src/utils/get-self-scope.js"),o=function(){function t(){}return t.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.getID3Data=function(e,n){for(var r=n,i=0;t.isHeader(e,n);)i+=10,i+=t._readSize(e,n+6),t.isFooter(e,n+10)&&(i+=10),n+=i;if(i>0)return e.subarray(r,r+i)},t._readSize=function(t,e){var n=0;return n=(127&t[e])<<21,n|=(127&t[e+1])<<14,(n|=(127&t[e+2])<<7)|127&t[e+3]},t.getTimeStamp=function(e){for(var n=t.getID3Frames(e),r=0;r<n.length;r++){var i=n[r];if(t.isTimeStampFrame(i))return t._readTimeStamp(i)}},t.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},t._getFrameData=function(e){var n=String.fromCharCode(e[0],e[1],e[2],e[3]),r=t._readSize(e,4);return{type:n,size:r,data:e.subarray(10,10+r)}},t.getID3Frames=function(e){for(var n=0,r=[];t.isHeader(e,n);){for(var i=t._readSize(e,n+6),o=(n+=10)+i;n+8<o;){var a=t._getFrameData(e.subarray(n)),s=t._decodeFrame(a);s&&r.push(s),n+=a.size+10}t.isFooter(e,n)&&(n+=10)}return r},t._decodeFrame=function(e){return"PRIV"===e.type?t._decodePrivFrame(e):"T"===e.type[0]?t._decodeTextFrame(e):"W"===e.type[0]?t._decodeURLFrame(e):void 0},t._readTimeStamp=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),n=1&e[3],r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var n=t._utf8ArrayToStr(e.data,!0),r=new Uint8Array(e.data.subarray(n.length+1));return{key:e.type,info:n,data:r.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if("TXXX"===e.type){var n=1,r=t._utf8ArrayToStr(e.data.subarray(n),!0);n+=r.length+1;var i=t._utf8ArrayToStr(e.data.subarray(n));return{key:e.type,info:r,data:i}}var o=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:o}}},t._decodeURLFrame=function(e){if("WXXX"===e.type){if(e.size<2)return;var n=1,r=t._utf8ArrayToStr(e.data.subarray(n),!0);n+=r.length+1;var i=t._utf8ArrayToStr(e.data.subarray(n));return{key:e.type,info:r,data:i}}var o=t._utf8ArrayToStr(e.data);return{key:e.type,data:o}},t._utf8ArrayToStr=function(t,e){void 0===e&&(e=!1);var n=a();if(n){var r=n.decode(t);if(e){var i=r.indexOf("\0");return-1!==i?r.substring(0,i):r}return r.replace(/\0/g,"")}for(var o,s,c,u=t.length,l="",f=0;f<u;){if(0===(o=t[f++])&&e)return l;if(0!==o&&3!==o)switch(o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:l+=String.fromCharCode(o);break;case 12:case 13:s=t[f++],l+=String.fromCharCode((31&o)<<6|63&s);break;case 14:s=t[f++],c=t[f++],l+=String.fromCharCode((15&o)<<12|(63&s)<<6|(63&c)<<0)}}return l},t}();function a(){var t=Object(i.getSelfScope)();return r||void 0===t.TextDecoder||(r=new t.TextDecoder("utf-8")),r}var s=o._utf8ArrayToStr;e.default=o},"./src/demux/mp4demuxer.js":function(t,e,n){"use strict";n.r(e);var r=n("./src/utils/logger.js"),i=n("./src/events.js"),o=Math.pow(2,32)-1,a=function(){function t(t,e){this.observer=t,this.remuxer=e}var e=t.prototype;return e.resetTimeStamp=function(t){this.initPTS=t},e.resetInitSegment=function(e,n,r,o){if(e&&e.byteLength){var a=this.initData=t.parseInitSegment(e);null==n&&(n="mp4a.40.5"),null==r&&(r="avc1.42e01e");var s={};a.audio&&a.video?s.audiovideo={container:"video/mp4",codec:n+","+r,initSegment:o?e:null}:(a.audio&&(s.audio={container:"audio/mp4",codec:n,initSegment:o?e:null}),a.video&&(s.video={container:"video/mp4",codec:r,initSegment:o?e:null})),this.observer.trigger(i.default.FRAG_PARSING_INIT_SEGMENT,{tracks:s})}else n&&(this.audioCodec=n),r&&(this.videoCodec=r)},t.probe=function(e){return t.findBox({data:e,start:0,end:Math.min(e.length,16384)},["moof"]).length>0},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);var n=t[e]<<8|t[e+1];return n<0?65536+n:n},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var n=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return n<0?4294967296+n:n},t.writeUint32=function(t,e,n){t.data&&(e+=t.start,t=t.data),t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n},t.findBox=function(e,n){var r,i,o,a,s,c,u=[];if(e.data?(s=e.start,o=e.end,e=e.data):(s=0,o=e.byteLength),!n.length)return null;for(r=s;r<o;)c=(i=t.readUint32(e,r))>1?r+i:o,t.bin2str(e.subarray(r+4,r+8))===n[0]&&(1===n.length?u.push({data:e,start:r+8,end:c}):(a=t.findBox({data:e,start:r+8,end:c},n.slice(1))).length&&(u=u.concat(a))),r=c;return u},t.parseSegmentIndex=function(e){var n,r=t.findBox(e,["moov"])[0],i=r?r.end:null,o=0,a=t.findBox(e,["sidx"]);if(!a||!a[0])return null;n=[];var s=(a=a[0]).data[0];o=0===s?8:16;var c=t.readUint32(a,o);o+=4,o+=0===s?8:16,o+=2;var u=a.end+0,l=t.readUint16(a,o);o+=2;for(var f=0;f<l;f++){var d=o,p=t.readUint32(a,d);d+=4;var h=2147483647&p;if(1==(2147483648&p)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");var g=t.readUint32(a,d);d+=4,n.push({referenceSize:h,subsegmentDuration:g,info:{duration:g/c,start:u,end:u+h-1}}),u+=h,o=d+=4}return{earliestPresentationTime:0,timescale:c,version:s,referencesCount:l,references:n,moovEndOffset:i}},t.parseInitSegment=function(e){var n=[];return t.findBox(e,["moov","trak"]).forEach((function(e){var i=t.findBox(e,["tkhd"])[0];if(i){var o=i.data[i.start],a=0===o?12:20,s=t.readUint32(i,a),c=t.findBox(e,["mdia","mdhd"])[0];if(c){a=0===(o=c.data[c.start])?12:20;var u=t.readUint32(c,a),l=t.findBox(e,["mdia","hdlr"])[0];if(l){var f={soun:"audio",vide:"video"}[t.bin2str(l.data.subarray(l.start+8,l.start+12))];if(f){var d=t.findBox(e,["mdia","minf","stbl","stsd"]);if(d.length){d=d[0];var p=t.bin2str(d.data.subarray(d.start+12,d.start+16));r.logger.log("MP4Demuxer:"+f+":"+p+" found")}n[s]={timescale:u,type:f},n[f]={timescale:u,id:s}}}}}})),n},t.getStartDTS=function(e,n){var r,i,o;return r=t.findBox(n,["moof","traf"]),i=[].concat.apply([],r.map((function(n){return t.findBox(n,["tfhd"]).map((function(r){var i,o;return i=t.readUint32(r,4),o=e[i].timescale||9e4,t.findBox(n,["tfdt"]).map((function(e){var n,r;return n=e.data[e.start],r=t.readUint32(e,4),1===n&&(r*=Math.pow(2,32),r+=t.readUint32(e,8)),r}))[0]/o}))}))),o=Math.min.apply(null,i),isFinite(o)?o:0},t.offsetStartDTS=function(e,n,r){t.findBox(n,["moof","traf"]).map((function(n){return t.findBox(n,["tfhd"]).map((function(i){var a=t.readUint32(i,4),s=e[a].timescale||9e4;t.findBox(n,["tfdt"]).map((function(e){var n=e.data[e.start],i=t.readUint32(e,4);if(0===n)t.writeUint32(e,4,i-r*s);else{i*=Math.pow(2,32),i+=t.readUint32(e,8),i-=r*s,i=Math.max(i,0);var a=Math.floor(i/(o+1)),c=Math.floor(i%(o+1));t.writeUint32(e,4,a),t.writeUint32(e,8,c)}}))}))}))},e.append=function(e,n,r,o){var a=this.initData;a||(this.resetInitSegment(e,this.audioCodec,this.videoCodec,!1),a=this.initData);var s,c=this.initPTS;if(void 0===c){var u=t.getStartDTS(a,e);this.initPTS=c=u-n,this.observer.trigger(i.default.INIT_PTS_FOUND,{initPTS:c})}t.offsetStartDTS(a,e,c),s=t.getStartDTS(a,e),this.remuxer.remux(a.audio,a.video,null,null,s,r,o,e)},e.destroy=function(){},t}();e.default=a},"./src/errors.ts":function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"ErrorTypes",(function(){return r})),n.d(e,"ErrorDetails",(function(){return i})),function(t){t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError"}(r||(r={})),function(t){t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException"}(i||(i={}))},"./src/events.js":function(t,e,n){"use strict";n.r(e),e.default={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",LEVELS_UPDATED:"hlsLevelsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",CUES_PARSED:"hlsCuesParsed",NON_NATIVE_TEXT_TRACKS_FOUND:"hlsNonNativeTextTracksFound",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},"./src/hls.ts":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return an}));var r={};n.r(r),n.d(r,"newCue",(function(){return de}));var i,o,a=n("./node_modules/url-toolkit/src/url-toolkit.js"),s=n("./src/errors.ts"),c=n("./src/polyfills/number.js"),u=n("./src/events.js"),l=n("./src/utils/logger.js"),f={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},d=function(){function t(t){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=t,this.onEvent=this.onEvent.bind(this);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.handledEvents=n,this.useGenericHandler=!0,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){},e.onHandlerDestroyed=function(){},e.isEventHandler=function(){return"object"==typeof this.handledEvents&&this.handledEvents.length&&"function"==typeof this.onEvent},e.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){if(f[t])throw new Error("Forbidden event-name: "+t);this.hls.on(t,this.onEvent)}),this)},e.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){this.hls.off(t,this.onEvent)}),this)},e.onEvent=function(t,e){this.onEventGeneric(t,e)},e.onEventGeneric=function(t,e){try{(function(t,e){var n="on"+t.replace("hls","");if("function"!=typeof this[n])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+n+")");return this[n].bind(this,e)}).call(this,t,e).call()}catch(e){l.logger.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:t,err:e})}},t}();!function(t){t.MANIFEST="manifest",t.LEVEL="level",t.AUDIO_TRACK="audioTrack",t.SUBTITLE_TRACK="subtitleTrack"}(i||(i={})),function(t){t.MAIN="main",t.AUDIO="audio",t.SUBTITLE="subtitle"}(o||(o={}));var p=n("./src/demux/mp4demuxer.js");function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var g,v=function(){function t(t,e){this._uri=null,this.baseuri=void 0,this.reluri=void 0,this.method=null,this.key=null,this.iv=null,this.baseuri=t,this.reluri=e}var e,n;return e=t,(n=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(a.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&h(e.prototype,n),t}();function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}!function(t){t.AUDIO="audio",t.VIDEO="video"}(g||(g={}));var m=function(){function t(){var t;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((t={})[g.AUDIO]=!1,t[g.VIDEO]=!1,t),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void 0,this.baseurl=void 0,this.duration=void 0,this.start=void 0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var e,n,r=t.prototype;return r.setByteRange=function(t,e){var n=t.split("@",2),r=[];1===n.length?r[0]=e?e.byteRangeEndOffset:0:r[0]=parseInt(n[1]),r[1]=parseInt(n[0])+r[0],this._byteRange=r},r.addElementaryStream=function(t){this._elementaryStreams[t]=!0},r.hasElementaryStream=function(t){return!0===this._elementaryStreams[t]},r.createInitializationVector=function(t){for(var e=new Uint8Array(16),n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e},r.setDecryptDataFromLevelKey=function(t,e){var n=t;return(null==t?void 0:t.method)&&t.uri&&!t.iv&&((n=new v(t.baseuri,t.reluri)).method=t.method,n.iv=this.createInitializationVector(e)),n},e=t,(n=[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(a.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!=typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&l.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(c.isFiniteNumber)(this.programDateTime))return null;var t=Object(c.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}])&&y(e.prototype,n),t}();function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var _=function(){function t(t){this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=t,this.version=null}var e,n;return e=t,(n=[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Object(c.isFiniteNumber)(this.fragments[0].programDateTime))}}])&&b(e.prototype,n),t}(),w=/^(\d+)x(\d+)$/,O=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,E=function(){function t(e){for(var n in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(n)&&(this[n]=e[n])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var n=new Uint8Array(e.length/2),r=0;r<e.length/2;r++)n[r]=parseInt(e.slice(2*r,2*r+2),16);return n}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.enumeratedString=function(t){return this[t]},e.decimalResolution=function(t){var e=w.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,n={};for(O.lastIndex=0;null!==(e=O.exec(t));){var r=e[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),n[e[1]]=r}return n},t}(),S={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function k(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var C=/(?:#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)|#EXT-X-SESSION-DATA:([^\n\r]*)[\r\n]+)/g,T=/#EXT-X-MEDIA:(.*)/g,A=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),x=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,L=/\.(mp4|m4s|m4v|m4a)$/i,P=function(){function t(){}return t.findGroup=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.id===e)return r}},t.convertAVC1ToAVCOTI=function(t){var e,n=t.split(".");return n.length>2?(e=n.shift()+".",e+=parseInt(n.shift()).toString(16),e+=("000"+parseInt(n.shift()).toString(16)).substr(-4)):e=t,e},t.resolve=function(t,e){return a.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,n){var r,i=[],o={},a=!1;function s(t,e){["video","audio"].forEach((function(n){var r=t.filter((function(t){return function(t,e){var n=S[e];return!!n&&!0===n[t.slice(0,4)]}(t,n)}));if(r.length){var i=r.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[n+"Codec"]=i.length>0?i[0]:r[0],t=t.filter((function(t){return-1===r.indexOf(t)}))}})),e.unknownCodecs=t}for(C.lastIndex=0;null!=(r=C.exec(e));)if(r[1]){var c={},u=c.attrs=new E(r[1]);c.url=t.resolve(r[2],n);var l=u.decimalResolution("RESOLUTION");l&&(c.width=l.width,c.height=l.height),c.bitrate=u.decimalInteger("AVERAGE-BANDWIDTH")||u.decimalInteger("BANDWIDTH"),c.name=u.NAME,s([].concat((u.CODECS||"").split(/[ ,]+/)),c),c.videoCodec&&-1!==c.videoCodec.indexOf("avc1")&&(c.videoCodec=t.convertAVC1ToAVCOTI(c.videoCodec)),i.push(c)}else if(r[3]){var f=new E(r[3]);f["DATA-ID"]&&(a=!0,o[f["DATA-ID"]]=f)}return{levels:i,sessionData:a?o:null}},t.parseMasterPlaylistMedia=function(e,n,r,i){var o;void 0===i&&(i=[]);var a=[],s=0;for(T.lastIndex=0;null!==(o=T.exec(e));){var c=new E(o[1]);if(c.TYPE===r){var u={attrs:c,id:s++,groupId:c["GROUP-ID"],instreamId:c["INSTREAM-ID"],name:c.NAME||c.LANGUAGE,type:r,default:"YES"===c.DEFAULT,autoselect:"YES"===c.AUTOSELECT,forced:"YES"===c.FORCED,lang:c.LANGUAGE};if(c.URI&&(u.url=t.resolve(c.URI,n)),i.length){var l=t.findGroup(i,u.groupId);u.audioCodec=l?l.codec:i[0].codec}a.push(u)}}return a},t.parseLevelPlaylist=function(t,e,n,r,i){var o,a,s,u=0,f=0,d=new _(e),p=0,h=null,g=new m,y=null;for(A.lastIndex=0;null!==(o=A.exec(t));){var b=o[1];if(b){g.duration=parseFloat(b);var w=(" "+o[2]).slice(1);g.title=w||null,g.tagList.push(w?["INF",b,w]:["INF",b])}else if(o[3]){if(Object(c.isFiniteNumber)(g.duration)){var O=u++;g.type=r,g.start=f,s&&(g.levelkey=s),g.sn=O,g.level=n,g.cc=p,g.urlId=i,g.baseurl=e,g.relurl=(" "+o[3]).slice(1),R(g,h),d.fragments.push(g),h=g,f+=g.duration,g=new m}}else if(o[4]){var S=(" "+o[4]).slice(1);h?g.setByteRange(S,h):g.setByteRange(S)}else if(o[5])g.rawProgramDateTime=(" "+o[5]).slice(1),g.tagList.push(["PROGRAM-DATE-TIME",g.rawProgramDateTime]),null===y&&(y=d.fragments.length);else{if(!(o=o[0].match(x))){l.logger.warn("No matches on slow regex match for level playlist!");continue}for(a=1;a<o.length&&void 0===o[a];a++);var k=(" "+o[a+1]).slice(1),C=(" "+o[a+2]).slice(1);switch(o[a]){case"#":g.tagList.push(C?[k,C]:[k]);break;case"PLAYLIST-TYPE":d.type=k.toUpperCase();break;case"MEDIA-SEQUENCE":u=d.startSN=parseInt(k);break;case"TARGETDURATION":d.targetduration=parseFloat(k);break;case"VERSION":d.version=parseInt(k);break;case"EXTM3U":break;case"ENDLIST":d.live=!1;break;case"DIS":p++,g.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":p=parseInt(k);break;case"KEY":var T=new E(k),P=T.enumeratedString("METHOD"),I=T.URI,j=T.hexadecimalInteger("IV");if("com.apple.streamingkeydelivery"===(T.KEYFORMAT||"identity")){l.logger.warn("Keyformat com.apple.streamingkeydelivery is not supported");continue}P&&(s=new v(e,I),I&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(P)>=0&&(s.method=P,s.key=null,s.iv=j));break;case"START":var D=new E(k).decimalFloatingPoint("TIME-OFFSET");Object(c.isFiniteNumber)(D)&&(d.startTimeOffset=D);break;case"MAP":var N=new E(k);g.relurl=N.URI,N.BYTERANGE&&g.setByteRange(N.BYTERANGE),g.baseurl=e,g.level=n,g.type=r,g.sn="initSegment",d.initSegment=g,(g=new m).rawProgramDateTime=d.initSegment.rawProgramDateTime;break;default:l.logger.warn("line parsed but not handled: "+o)}}}return(g=h)&&!g.relurl&&(d.fragments.pop(),f-=g.duration),d.totalduration=f,d.averagetargetduration=f/d.fragments.length,d.endSN=u-1,d.startCC=d.fragments[0]?d.fragments[0].cc:0,d.endCC=p,!d.initSegment&&d.fragments.length&&d.fragments.every((function(t){return L.test(t.relurl)}))&&(l.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(g=new m).relurl=d.fragments[0].relurl,g.baseurl=e,g.level=n,g.type=r,g.sn="initSegment",d.initSegment=g,d.needSidxRanges=!0),y&&function(t,e){for(var n=t[e],r=e-1;r>=0;r--){var i=t[r];i.programDateTime=n.programDateTime-1e3*i.duration,n=i}}(d.fragments,y),d},t}();function R(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):(null==e?void 0:e.programDateTime)&&(t.programDateTime=e.endProgramDateTime),Object(c.isFiniteNumber)(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}var I=window.performance,j=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MANIFEST_LOADING,u.default.LEVEL_LOADING,u.default.AUDIO_TRACK_LOADING,u.default.SUBTITLE_TRACK_LOADING)||this).loaders={},n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.canHaveQualityLevels=function(t){return t!==i.AUDIO_TRACK&&t!==i.SUBTITLE_TRACK},r.mapContextToLevelType=function(t){switch(t.type){case i.AUDIO_TRACK:return o.AUDIO;case i.SUBTITLE_TRACK:return o.SUBTITLE;default:return o.MAIN}},r.getResponseUrl=function(t,e){var n=t.url;return void 0!==n&&0!==n.indexOf("data:")||(n=e.url),n};var a=r.prototype;return a.createInternalLoader=function(t){var e=this.hls.config,n=e.pLoader,r=e.loader,i=new(n||r)(e);return t.loader=i,this.loaders[t.type]=i,i},a.getInternalLoader=function(t){return this.loaders[t.type]},a.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},a.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},a.destroy=function(){this.destroyInternalLoaders(),t.prototype.destroy.call(this)},a.onManifestLoading=function(t){this.load({url:t.url,type:i.MANIFEST,level:0,id:null,responseType:"text"})},a.onLevelLoading=function(t){this.load({url:t.url,type:i.LEVEL,level:t.level,id:t.id,responseType:"text"})},a.onAudioTrackLoading=function(t){this.load({url:t.url,type:i.AUDIO_TRACK,level:null,id:t.id,responseType:"text"})},a.onSubtitleTrackLoading=function(t){this.load({url:t.url,type:i.SUBTITLE_TRACK,level:null,id:t.id,responseType:"text"})},a.load=function(t){var e=this.hls.config;l.logger.debug("Loading playlist of type "+t.type+", level: "+t.level+", id: "+t.id);var n,r,o,a,s=this.getInternalLoader(t);if(s){var c=s.context;if(c&&c.url===t.url)return l.logger.trace("playlist request ongoing"),!1;l.logger.warn("aborting previous loader for type: "+t.type),s.abort()}switch(t.type){case i.MANIFEST:n=e.manifestLoadingMaxRetry,r=e.manifestLoadingTimeOut,o=e.manifestLoadingRetryDelay,a=e.manifestLoadingMaxRetryTimeout;break;case i.LEVEL:n=0,a=0,o=0,r=e.levelLoadingTimeOut;break;default:n=e.levelLoadingMaxRetry,r=e.levelLoadingTimeOut,o=e.levelLoadingRetryDelay,a=e.levelLoadingMaxRetryTimeout}s=this.createInternalLoader(t);var u={timeout:r,maxRetry:n,retryDelay:o,maxRetryDelay:a},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return l.logger.debug("Calling internal loader delegate for URL: "+t.url),s.load(t,u,f),!0},a.loadsuccess=function(t,e,n,r){if(void 0===r&&(r=null),n.isSidxRequest)return this._handleSidxRequest(t,n),void this._handlePlaylistLoaded(t,e,n,r);if(this.resetInternalLoader(n.type),"string"!=typeof t.data)throw new Error('expected responseType of "text" for PlaylistLoader');var i=t.data;e.tload=I.now(),0===i.indexOf("#EXTM3U")?i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(t,e,n,r):this._handleMasterPlaylist(t,e,n,r):this._handleManifestParsingError(t,n,"no EXTM3U delimiter",r)},a.loaderror=function(t,e,n){void 0===n&&(n=null),this._handleNetworkError(e,n,!1,t)},a.loadtimeout=function(t,e,n){void 0===n&&(n=null),this._handleNetworkError(e,n,!0)},a._handleMasterPlaylist=function(t,e,n,i){var o=this.hls,a=t.data,s=r.getResponseUrl(t,n),c=P.parseMasterPlaylist(a,s),f=c.levels,d=c.sessionData;if(f.length){var p=f.map((function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}})),h=P.parseMasterPlaylistMedia(a,s,"AUDIO",p),g=P.parseMasterPlaylistMedia(a,s,"SUBTITLES"),v=P.parseMasterPlaylistMedia(a,s,"CLOSED-CAPTIONS");if(h.length){var y=!1;h.forEach((function(t){t.url||(y=!0)})),!1===y&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(l.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),h.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:{},url:""}))}o.trigger(u.default.MANIFEST_LOADED,{levels:f,audioTracks:h,subtitles:g,captions:v,url:s,stats:e,networkDetails:i,sessionData:d})}else this._handleManifestParsingError(t,n,"no level found in manifest",i)},a._handleTrackOrLevelPlaylist=function(t,e,n,o){var a=this.hls,l=n.id,f=n.level,d=n.type,p=r.getResponseUrl(t,n),h=Object(c.isFiniteNumber)(l)?l:0,g=Object(c.isFiniteNumber)(f)?f:h,v=r.mapContextToLevelType(n),y=P.parseLevelPlaylist(t.data,p,g,v,h);if(y.tload=e.tload,y.fragments.length){if(d===i.MANIFEST){var m={url:p,details:y};a.trigger(u.default.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:p,stats:e,networkDetails:o,sessionData:null})}if(e.tparsed=I.now(),y.needSidxRanges){var b=y.initSegment.url;this.load({url:b,isSidxRequest:!0,type:d,level:f,levelDetails:y,id:l,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})}else n.levelDetails=y,this._handlePlaylistLoaded(t,e,n,o)}else a.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:p,reason:"no fragments found in level",level:"number"==typeof n.level?n.level:void 0})},a._handleSidxRequest=function(t,e){if("string"==typeof t.data)throw new Error("sidx request must be made with responseType of array buffer");var n=p.default.parseSegmentIndex(new Uint8Array(t.data));if(n){var r=n.references,i=e.levelDetails;r.forEach((function(t,e){var n=t.info;if(i){var r=i.fragments[e];0===r.byteRange.length&&r.setByteRange(String(1+n.end-n.start)+"@"+String(n.start))}})),i&&i.initSegment.setByteRange(String(n.moovEndOffset)+"@0")}},a._handleManifestParsingError=function(t,e,n,r){this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:n,networkDetails:r})},a._handleNetworkError=function(t,e,n,r){var o,a;void 0===n&&(n=!1),void 0===r&&(r=null),l.logger.info("A network error occured while loading a "+t.type+"-type playlist");var c=this.getInternalLoader(t);switch(t.type){case i.MANIFEST:o=n?s.ErrorDetails.MANIFEST_LOAD_TIMEOUT:s.ErrorDetails.MANIFEST_LOAD_ERROR,a=!0;break;case i.LEVEL:o=n?s.ErrorDetails.LEVEL_LOAD_TIMEOUT:s.ErrorDetails.LEVEL_LOAD_ERROR,a=!1;break;case i.AUDIO_TRACK:o=n?s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,a=!1;break;default:a=!1}c&&(c.abort(),this.resetInternalLoader(t.type));var f={type:s.ErrorTypes.NETWORK_ERROR,details:o,fatal:a,url:t.url,loader:c,context:t,networkDetails:e};r&&(f.response=r),this.hls.trigger(u.default.ERROR,f)},a._handlePlaylistLoaded=function(t,e,n,o){var a=n.type,s=n.level,c=n.id,l=n.levelDetails;if(l&&l.targetduration)if(r.canHaveQualityLevels(n.type))this.hls.trigger(u.default.LEVEL_LOADED,{details:l,level:s||0,id:c||0,stats:e,networkDetails:o});else switch(a){case i.AUDIO_TRACK:this.hls.trigger(u.default.AUDIO_TRACK_LOADED,{details:l,id:c,stats:e,networkDetails:o});break;case i.SUBTITLE_TRACK:this.hls.trigger(u.default.SUBTITLE_TRACK_LOADED,{details:l,id:c,stats:e,networkDetails:o})}else this._handleManifestParsingError(t,n,"invalid target duration",o)},r}(d),D=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.FRAG_LOADING)||this).loaders={},n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){var e=this.loaders;for(var n in e){var r=e[n];r&&r.destroy()}this.loaders={},t.prototype.destroy.call(this)},i.onFragLoading=function(t){var e=t.frag,n=e.type,r=this.loaders,i=this.hls.config,o=i.fLoader,a=i.loader;e.loaded=0;var s,u,f,d=r[n];d&&(l.logger.warn("abort previous fragment loader for type: "+n),d.abort()),d=r[n]=e.loader=i.fLoader?new o(i):new a(i),s={url:e.url,frag:e,responseType:"arraybuffer",progressData:!1};var p=e.byteRangeStartOffset,h=e.byteRangeEndOffset;Object(c.isFiniteNumber)(p)&&Object(c.isFiniteNumber)(h)&&(s.rangeStart=p,s.rangeEnd=h),u={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout},f={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},d.load(s,u,f)},i.loadsuccess=function(t,e,n,r){void 0===r&&(r=null);var i=t.data,o=n.frag;o.loader=void 0,this.loaders[o.type]=void 0,this.hls.trigger(u.default.FRAG_LOADED,{payload:i,frag:o,stats:e,networkDetails:r})},i.loaderror=function(t,e,n){void 0===n&&(n=null);var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[r.type]=void 0,this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:n})},i.loadtimeout=function(t,e,n){void 0===n&&(n=null);var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[r.type]=void 0,this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:n})},i.loadprogress=function(t,e,n,r){void 0===r&&(r=null);var i=e.frag;i.loaded=t.loaded,this.hls.trigger(u.default.FRAG_LOAD_PROGRESS,{frag:i,stats:t,networkDetails:r})},r}(d),N=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.KEY_LOADING)||this).loaders={},n.decryptkey=null,n.decrypturl=null,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){for(var e in this.loaders){var n=this.loaders[e];n&&n.destroy()}this.loaders={},t.prototype.destroy.call(this)},i.onKeyLoading=function(t){var e=t.frag,n=e.type,r=this.loaders[n];if(e.decryptdata){var i=e.decryptdata.uri;if(i!==this.decrypturl||null===this.decryptkey){var o=this.hls.config;if(r&&(l.logger.warn("abort previous key loader for type:"+n),r.abort()),!i)return void l.logger.warn("key uri is falsy");e.loader=this.loaders[n]=new o.loader(o),this.decrypturl=i,this.decryptkey=null;var a={url:i,frag:e,responseType:"arraybuffer"},s={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout},c={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};e.loader.load(a,s,c)}else this.decryptkey&&(e.decryptdata.key=this.decryptkey,this.hls.trigger(u.default.KEY_LOADED,{frag:e}))}else l.logger.warn("Missing decryption data on fragment in onKeyLoading")},i.loadsuccess=function(t,e,n){var r=n.frag;r.decryptdata?(this.decryptkey=r.decryptdata.key=new Uint8Array(t.data),r.loader=void 0,delete this.loaders[r.type],this.hls.trigger(u.default.KEY_LOADED,{frag:r})):l.logger.error("after key load, decryptdata unset")},i.loaderror=function(t,e){var n=e.frag,r=n.loader;r&&r.abort(),delete this.loaders[n.type],this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:n,response:t})},i.loadtimeout=function(t,e){var n=e.frag,r=n.loader;r&&r.abort(),delete this.loaders[n.type],this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.NETWORK_ERROR,details:s.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})},r}(d),M="NOT_LOADED",F="APPENDING",B="PARTIAL",U="OK",$=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.BUFFER_APPENDED,u.default.FRAG_BUFFERED,u.default.FRAG_LOADED)||this).bufferPadding=.2,n.fragments=Object.create(null),n.timeRanges=Object.create(null),n.config=e.config,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,d.prototype.destroy.call(this),t.prototype.destroy.call(this)},i.getBufferedFrag=function(t,e){var n=this.fragments,r=Object.keys(n).filter((function(r){var i=n[r];if(i.body.type!==e)return!1;if(!i.buffered)return!1;var o=i.body;return o.startPTS<=t&&t<=o.endPTS}));if(0===r.length)return null;var i=r.pop();return n[i].body},i.detectEvictedFragments=function(t,e){var n=this;Object.keys(this.fragments).forEach((function(r){var i=n.fragments[r];if(i&&i.buffered){var o=i.range[t];if(o)for(var a=o.time,s=0;s<a.length;s++){var c=a[s];if(!n.isTimeBuffered(c.startPTS,c.endPTS,e)){n.removeFragment(i.body);break}}}}))},i.detectPartialFragments=function(t){var e=this,n=this.getFragmentKey(t),r=this.fragments[n];r&&(r.buffered=!0,Object.keys(this.timeRanges).forEach((function(n){if(t.hasElementaryStream(n)){var i=e.timeRanges[n];r.range[n]=e.getBufferedTimes(t.startPTS,t.endPTS,i)}})))},i.getBufferedTimes=function(t,e,n){for(var r,i,o=[],a=!1,s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,t>=r&&e<=i){o.push({startPTS:Math.max(t,n.start(s)),endPTS:Math.min(e,n.end(s))});break}if(t<i&&e>r)o.push({startPTS:Math.max(t,n.start(s)),endPTS:Math.min(e,n.end(s))}),a=!0;else if(e<=r)break}return{time:o,partial:a}},i.getFragmentKey=function(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},i.getPartialFragment=function(t){var e,n,r,i=this,o=null,a=0;return Object.keys(this.fragments).forEach((function(s){var c=i.fragments[s];i.isPartial(c)&&(n=c.body.startPTS-i.bufferPadding,r=c.body.endPTS+i.bufferPadding,t>=n&&t<=r&&(e=Math.min(t-n,r-t),a<=e&&(o=c.body,a=e)))})),o},i.getState=function(t){var e=this.getFragmentKey(t),n=this.fragments[e],r=M;return void 0!==n&&(r=n.buffered?!0===this.isPartial(n)?B:U:F),r},i.isPartial=function(t){return!0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!==t.range.audio&&!0===t.range.audio.partial)},i.isTimeBuffered=function(t,e,n){for(var r,i,o=0;o<n.length;o++){if(r=n.start(o)-this.bufferPadding,i=n.end(o)+this.bufferPadding,t>=r&&e<=i)return!0;if(e<=r)return!1}return!1},i.onFragLoaded=function(t){var e=t.frag;Object(c.isFiniteNumber)(e.sn)&&!e.bitrateTest&&(this.fragments[this.getFragmentKey(e)]={body:e,range:Object.create(null),buffered:!1})},i.onBufferAppended=function(t){var e=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach((function(t){var n=e.timeRanges[t];e.detectEvictedFragments(t,n)}))},i.onFragBuffered=function(t){this.detectPartialFragments(t.frag)},i.hasFragment=function(t){var e=this.getFragmentKey(t);return void 0!==this.fragments[e]},i.removeFragment=function(t){var e=this.getFragmentKey(t);delete this.fragments[e]},i.removeAllFragments=function(){this.fragments=Object.create(null)},r}(d),q=function(t,e){for(var n=0,r=t.length-1,i=null,o=null;n<=r;){var a=e(o=t[i=(n+r)/2|0]);if(a>0)n=i+1;else{if(!(a<0))return o;r=i-1}}return null},H=function(){function t(){}return t.isBuffered=function(t,e){try{if(t)for(var n=t.buffered,r=0;r<n.length;r++)if(e>=n.start(r)&&e<=n.end(r))return!0}catch(t){}return!1},t.bufferInfo=function(t,e,n){try{if(t){var r,i=t.buffered,o=[];for(r=0;r<i.length;r++)o.push({start:i.start(r),end:i.end(r)});return this.bufferedInfo(o,e,n)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,n){t.sort((function(t,e){return t.start-e.start||e.end-t.end}));var r=[];if(n)for(var i=0;i<t.length;i++){var o=r.length;if(o){var a=r[o-1].end;t[i].start-a<n?t[i].end>a&&(r[o-1].end=t[i].end):r.push(t[i])}else r.push(t[i])}else r=t;for(var s,c=0,u=e,l=e,f=0;f<r.length;f++){var d=r[f].start,p=r[f].end;if(e+n>=d&&e<p)u=d,c=(l=p)-e;else if(e+n<d){s=d;break}}return{len:c,start:u,end:l,nextStart:s}},t}(),G=n("./node_modules/eventemitter3/index.js"),z=n("./node_modules/webworkify-webpack/index.js"),V=n("./src/demux/demuxer-inline.js");function K(){return window.MediaSource||window.WebKitMediaSource}var W=n("./src/utils/get-self-scope.js"),Y=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.trigger=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emit.apply(this,[t,t].concat(n))},r}(G.EventEmitter),X=Object(W.getSelfScope)(),Z=K()||{isTypeSupported:function(){return!1}},J=function(){function t(t,e){var n=this;this.hls=t,this.id=e;var r=this.observer=new Y,i=t.config,o=function(e,r){(r=r||{}).frag=n.frag,r.id=n.id,t.trigger(e,r)};r.on(u.default.FRAG_DECRYPTED,o),r.on(u.default.FRAG_PARSING_INIT_SEGMENT,o),r.on(u.default.FRAG_PARSING_DATA,o),r.on(u.default.FRAG_PARSED,o),r.on(u.default.ERROR,o),r.on(u.default.FRAG_PARSING_METADATA,o),r.on(u.default.FRAG_PARSING_USERDATA,o),r.on(u.default.INIT_PTS_FOUND,o);var a={mp4:Z.isTypeSupported("video/mp4"),mpeg:Z.isTypeSupported("audio/mpeg"),mp3:Z.isTypeSupported('audio/mp4; codecs="mp3"')},c=navigator.vendor;if(i.enableWorker&&"undefined"!=typeof Worker){var f;l.logger.log("demuxing in webworker");try{f=this.w=z("./src/demux/demuxer-worker.js"),this.onwmsg=this.onWorkerMessage.bind(this),f.addEventListener("message",this.onwmsg),f.onerror=function(e){t.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},f.postMessage({cmd:"init",typeSupported:a,vendor:c,id:e,config:JSON.stringify(i)})}catch(t){l.logger.warn("Error in worker:",t),l.logger.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),f&&X.URL.revokeObjectURL(f.objectURL),this.demuxer=new V.default(r,a,i,c),this.w=void 0}}else this.demuxer=new V.default(r,a,i,c)}var e=t.prototype;return e.destroy=function(){var t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var n=this.observer;n&&(n.removeAllListeners(),this.observer=null)},e.push=function(t,e,n,r,i,o,a,s){var u=this.w,f=Object(c.isFiniteNumber)(i.startPTS)?i.startPTS:i.start,d=i.decryptdata,p=this.frag,h=!(p&&i.cc===p.cc),g=!(p&&i.level===p.level),v=p&&i.sn===p.sn+1,y=!g&&v;if(h&&l.logger.log(this.id+":discontinuity detected"),g&&l.logger.log(this.id+":switch detected"),this.frag=i,u)u.postMessage({cmd:"demux",data:t,decryptdata:d,initSegment:e,audioCodec:n,videoCodec:r,timeOffset:f,discontinuity:h,trackSwitch:g,contiguous:y,duration:o,accurateTimeOffset:a,defaultInitPTS:s},t instanceof ArrayBuffer?[t]:[]);else{var m=this.demuxer;m&&m.push(t,d,e,n,r,f,h,g,y,o,a,s)}},e.onWorkerMessage=function(t){var e=t.data,n=this.hls;switch(e.event){case"init":X.URL.revokeObjectURL(this.w.objectURL);break;case u.default.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,n.trigger(e.event,e.data)}},t}();function Q(t,e,n){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(n);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(n)}}function tt(t,e,n){var r=t[e],i=t[n],o=i.startPTS;if(Object(c.isFiniteNumber)(o))n>e?(r.duration=o-r.start,r.duration<0&&l.logger.warn("negative duration computed for frag "+r.sn+",level "+r.level+", there should be some duration drift between playlist and fragment!")):(i.duration=r.start-o,i.duration<0&&l.logger.warn("negative duration computed for frag "+i.sn+",level "+i.level+", there should be some duration drift between playlist and fragment!"));else if(n>e){var a=r.cc===i.cc;i.start=r.start+(a&&r.minEndPTS?r.minEndPTS-r.start:r.duration)}else i.start=Math.max(r.start-i.duration,0)}function et(t,e,n,r,i,o){var a=n,s=r;if(Object(c.isFiniteNumber)(e.startPTS)){var u=Math.abs(e.startPTS-n);Object(c.isFiniteNumber)(e.deltaPTS)?e.deltaPTS=Math.max(u,e.deltaPTS):e.deltaPTS=u,a=Math.max(n,e.startPTS),n=Math.min(n,e.startPTS),s=Math.min(r,e.endPTS),r=Math.max(r,e.endPTS),i=Math.min(i,e.startDTS),o=Math.max(o,e.endDTS)}var l=n-e.start;e.start=e.startPTS=n,e.maxStartPTS=a,e.endPTS=r,e.minEndPTS=s,e.startDTS=i,e.endDTS=o,e.duration=r-n;var f,d,p,h=e.sn;if(!t||h<t.startSN||h>t.endSN)return 0;for(f=h-t.startSN,(d=t.fragments)[f]=e,p=f;p>0;p--)tt(d,p,p-1);for(p=f;p<d.length-1;p++)tt(d,p,p+1);return t.PTSKnown=!0,l}function nt(t,e){e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment);var n,r=0;if(rt(t,e,(function(t,i){r=t.cc-i.cc,Object(c.isFiniteNumber)(t.startPTS)&&(i.start=i.startPTS=t.startPTS,i.endPTS=t.endPTS,i.duration=t.duration,i.backtracked=t.backtracked,i.dropped=t.dropped,n=i),e.PTSKnown=!0})),e.PTSKnown){if(r){l.logger.log("discontinuity sliding from playlist, take drift into account");for(var i=e.fragments,o=0;o<i.length;o++)i[o].cc+=r}n?et(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):function(t,e){var n=e.startSN-t.startSN,r=t.fragments,i=e.fragments;if(!(n<0||n>r.length))for(var o=0;o<i.length;o++)i[o].start+=r[n].start}(t,e),e.PTSKnown=t.PTSKnown}}function rt(t,e,n){if(t&&e)for(var r=Math.max(t.startSN,e.startSN)-e.startSN,i=Math.min(t.endSN,e.endSN)-e.startSN,o=e.startSN-t.startSN,a=r;a<=i;a++){var s=t.fragments[o+a],c=e.fragments[a];if(!s||!c)break;n(s,c,a)}}function it(t,e,n){var r=1e3*(e.averagetargetduration?e.averagetargetduration:e.targetduration),i=r/2;return t&&e.endSN===t.endSN&&(r=i),n&&(r=Math.max(i,r-(window.performance.now()-n))),Math.round(r)}var ot=function(t){for(var e="",n=t.length,r=0;r<n;r++)e+="["+t.start(r).toFixed(3)+","+t.end(r).toFixed(3)+"]";return e};function at(t,e){e.fragments.forEach((function(e){if(e){var n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}})),e.PTSKnown=!0}function st(t,e,n){!function(t,e,n){if(function(t,e,n){var r=!1;return e&&e.details&&n&&(n.endCC>n.startCC||t&&t.cc<n.startCC)&&(r=!0),r}(t,n,e)){var r=function(t,e){var n=t.fragments,r=e.fragments;if(r.length&&n.length){var i=function(t,e){for(var n=null,r=0;r<t.length;r+=1){var i=t[r];if(i&&i.cc===e){n=i;break}}return n}(n,r[0].cc);if(i&&(!i||i.startPTS))return i;l.logger.log("No frag in previous level to align on")}else l.logger.log("No fragments to align")}(n.details,e);r&&(l.logger.log("Adjusting PTS using last level due to CC increase within current level"),at(r.start,e))}}(t,n,e),!n.PTSKnown&&e&&function(t,e){if(e&&e.fragments.length){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;var n=e.fragments[0].programDateTime,r=(t.fragments[0].programDateTime-n)/1e3+e.fragments[0].start;Object(c.isFiniteNumber)(r)&&(l.logger.log("adjusting PTS using programDateTime delta, sliding:"+r.toFixed(3)),at(r,t))}}(n,e.details)}function ct(t,e,n){if(null===e||!Array.isArray(t)||!t.length||!Object(c.isFiniteNumber)(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;n=n||0;for(var r=0;r<t.length;++r){var i=t[r];if(ft(e,n,i))return i}return null}function ut(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i=null;return t?i=e[t.sn-e[0].sn+1]:0===n&&0===e[0].start&&(i=e[0]),i&&0===lt(n,r,i)?i:q(e,lt.bind(null,n,r))||i}function lt(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0);var r=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=t?1:n.start-r>t&&n.start?-1:0}function ft(t,e,n){var r=1e3*Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>t}var dt=function(){function t(t,e,n,r){this.config=t,this.media=e,this.fragmentTracker=n,this.hls=r,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var e=t.prototype;return e.poll=function(t){var e=this.config,n=this.media,r=this.stalled,i=n.currentTime,o=n.seeking,a=this.seeking&&!o,s=!this.seeking&&o;if(this.seeking=o,i===t){if((s||a)&&(this.stalled=null),!n.paused&&!n.ended&&0!==n.playbackRate&&n.buffered.length){var c=H.bufferInfo(n,i,0),u=c.len>0,f=c.nextStart||0;if(u||f){if(o){var d=c.len>2,p=!f||f-i>2&&!this.fragmentTracker.getPartialFragment(i);if(d||p)return;this.moved=!1}if(!this.moved&&this.stalled){var h=Math.max(f,c.start||0)-i;if(h>0&&h<=2)return void this._trySkipBufferHole(null)}var g=self.performance.now();if(null!==r){var v=g-r;!o&&v>=250&&this._reportStall(c.len);var y=H.bufferInfo(n,i,e.maxBufferHole);this._tryFixBufferStall(y,v)}else this.stalled=g}}}else if(this.moved=!0,null!==r){if(this.stallReported){var m=self.performance.now()-r;l.logger.warn("playback not stuck anymore @"+i+", after "+Math.round(m)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var n=this.config,r=this.fragmentTracker,i=this.media.currentTime,o=r.getPartialFragment(i);o&&this._trySkipBufferHole(o)||t.len>n.maxBufferHole&&e>1e3*n.highBufferWatchdogPeriod&&(l.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,n=this.media;this.stallReported||(this.stallReported=!0,l.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,n=this.hls,r=this.media,i=r.currentTime,o=0,a=0;a<r.buffered.length;a++){var c=r.buffered.start(a);if(i+e.maxBufferHole>=o&&i<c){var f=Math.max(c+.05,r.currentTime+.1);return l.logger.warn("skipping hole, adjusting currentTime from "+i+" to "+f),this.moved=!0,this.stalled=null,r.currentTime=f,t&&n.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+i+" to "+f,frag:t}),f}o=r.buffered.end(a)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,n=this.media,r=n.currentTime,i=(this.nudgeRetry||0)+1;if(this.nudgeRetry=i,i<t.nudgeMaxRetry){var o=r+i*t.nudgeOffset;l.logger.warn("Nudging 'currentTime' from "+r+" to "+o),n.currentTime=o,e.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else l.logger.error("Playhead still not moving while enough data buffered @"+r+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},t}();function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ht=function(t){var e,n;function r(e){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return(n=t.call.apply(t,[this,e].concat(i))||this)._boundTick=void 0,n._tickTimer=null,n._tickInterval=null,n._tickCallCount=0,n._boundTick=n.tick.bind(pt(n)),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},i.hasInterval=function(){return!!this._tickInterval},i.hasNextTick=function(){return!!this._tickTimer},i.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},i.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},i.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},i.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},i.doTick=function(){},r}(d),gt="STOPPED",vt="STARTING",yt="IDLE",mt="KEY_LOADING",bt="FRAG_LOADING",_t="FRAG_LOADING_WAITING_RETRY",wt="WAITING_TRACK",Ot="PARSING",Et="PARSED",St="BUFFER_FLUSHING",kt="ENDED",Ct="ERROR",Tt="WAITING_INIT_PTS",At="WAITING_LEVEL",xt=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.doTick=function(){},i.startLoad=function(){},i.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=gt},i._streamEnded=function(t,e){var n=this.fragCurrent,r=this.fragmentTracker;if(!e.live&&n&&!n.backtracked&&n.sn===e.endSN&&!t.nextStart){var i=r.getState(n);return i===B||i===U}return!1},i.onMediaSeeking=function(){var t=this.config,e=this.media,n=this.mediaBuffer,r=this.state,i=e?e.currentTime:null,o=H.bufferInfo(n||e,i,this.config.maxBufferHole);if(l.logger.log("media seeking to "+(Object(c.isFiniteNumber)(i)?i.toFixed(3):i)),r===bt){var a=this.fragCurrent;if(0===o.len&&a){var s=t.maxFragLookUpTolerance,u=a.start-s,f=a.start+a.duration+s;i<u||i>f?(a.loader&&(l.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),a.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=yt):l.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else r===kt&&(0===o.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=yt);e&&(this.lastCurrentTime=i),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=i),this.tick()},i.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},i.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},i.onHandlerDestroyed=function(){this.state=gt,this.fragmentTracker=null},i.computeLivePosition=function(t,e){var n=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-n)},r}(ht);function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Pt,Rt=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.MANIFEST_LOADING,u.default.MANIFEST_PARSED,u.default.LEVEL_LOADED,u.default.LEVELS_UPDATED,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.FRAG_LOAD_EMERGENCY_ABORTED,u.default.FRAG_PARSING_INIT_SEGMENT,u.default.FRAG_PARSING_DATA,u.default.FRAG_PARSED,u.default.ERROR,u.default.AUDIO_TRACK_SWITCHING,u.default.AUDIO_TRACK_SWITCHED,u.default.BUFFER_CREATED,u.default.BUFFER_APPENDED,u.default.BUFFER_FLUSHED)||this).fragmentTracker=n,r.config=e.config,r.audioCodecSwap=!1,r._state=gt,r.stallReported=!1,r.gapController=null,r.altAudio=!1,r.audioOnly=!1,r.bitrateTest=!1,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,a,f=r.prototype;return f.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var r=n.startLevel;-1===r&&(n.config.testBandwidth?(r=0,this.bitrateTest=!0):r=n.nextAutoLevel),this.level=n.nextLoadLevel=r,this.loadedmetadata=!1}e>0&&-1===t&&(l.logger.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=yt,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=gt},f.stopLoad=function(){this.forceStartLoad=!1,t.prototype.stopLoad.call(this)},f.doTick=function(){switch(this.state){case St:this.fragLoadError=0;break;case yt:this._doTickIdle();break;case At:var t=this.levels[this.level];t&&t.details&&(this.state=yt);break;case _t:var e=window.performance.now(),n=this.retryDate;(!n||e>=n||this.media&&this.media.seeking)&&(l.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=yt)}this._checkBuffer(),this._checkFragmentChanged()},f._doTickIdle=function(){var t=this.hls,e=t.config,n=this.media;if(void 0!==this.levelLastLoaded&&(n||!this.startFragRequested&&e.startFragPrefetch))if(this.altAudio&&this.audioOnly)this.demuxer.frag=null;else{var r;r=this.loadedmetadata?n.currentTime:this.nextLoadPosition;var i=t.nextLoadLevel,o=this.levels[i];if(o){var a,s=o.bitrate;a=s?Math.max(8*e.maxBufferSize/s,e.maxBufferLength):e.maxBufferLength,a=Math.min(a,e.maxMaxBufferLength);var c=r<e.maxBufferHole?Math.max(2,e.maxBufferHole):e.maxBufferHole,f=H.bufferInfo(this.mediaBuffer?this.mediaBuffer:n,r,c),d=f.len;if(!(d>=a)){l.logger.trace("buffer length of "+d.toFixed(3)+" is below max of "+a.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=i;var p=o.details;if(!p||p.live&&this.levelLastLoaded!==i)this.state=At;else{if(this._streamEnded(f,p)){var h={};return this.altAudio&&(h.type="video"),this.hls.trigger(u.default.BUFFER_EOS,h),void(this.state=kt)}this._fetchPayloadOrEos(r,f,p)}}}}},f._fetchPayloadOrEos=function(t,e,n){var r=this.fragPrevious,i=(this.level,n.fragments),o=i.length;if(0!==o){var a,s=i[0].start,c=i[o-1].start+i[o-1].duration,u=e.end;if(n.initSegment&&!n.initSegment.data)a=n.initSegment;else if(n.live){var f=this.config.initialLiveManifestSize;if(o<f)return void l.logger.warn("Can not start playback of a level, reason: not enough fragments "+o+" < "+f);if(null===(a=this._ensureFragmentAtLivePoint(n,u,s,c,r,i)))return}else u<s&&(a=i[0]);a||(a=this._findFragment(s,r,o,i,u,c,n)),a&&(a.encrypted?this._loadKey(a,n):this._loadFragment(a,n,t,u))}},f._ensureFragmentAtLivePoint=function(t,e,n,r,i,o){var a,s=this.hls.config,u=this.media,f=1/0;if(void 0!==s.liveMaxLatencyDuration?f=s.liveMaxLatencyDuration:Object(c.isFiniteNumber)(s.liveMaxLatencyDurationCount)&&(f=s.liveMaxLatencyDurationCount*t.targetduration),e<Math.max(n-s.maxFragLookUpTolerance,r-f)){var d=this.liveSyncPosition=this.computeLivePosition(n,t);e=d,u&&!u.paused&&u.readyState&&u.duration>d&&d>u.currentTime&&(l.logger.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+d.toFixed(3)),u.currentTime=d),this.nextLoadPosition=d}if(t.PTSKnown&&e>r&&u&&u.readyState)return null;if(this.startFragRequested&&!t.PTSKnown&&i)if(t.hasProgramDateTime)l.logger.log("live playlist, switching playlist, load frag with same PDT: "+i.programDateTime),a=ct(o,i.endProgramDateTime,s.maxFragLookUpTolerance);else{var p=i.sn+1;if(p>=t.startSN&&p<=t.endSN){var h=o[p-t.startSN];i.cc===h.cc&&(a=h,l.logger.log("live playlist, switching playlist, load frag with next SN: "+a.sn))}a||(a=q(o,(function(t){return i.cc-t.cc})))&&l.logger.log("live playlist, switching playlist, load frag with same CC: "+a.sn)}return a},f._findFragment=function(t,e,n,r,i,o,a){var s,c=this.hls.config;if(s=i<o?ut(e,r,i,i>o-c.maxFragLookUpTolerance?0:c.maxFragLookUpTolerance):r[n-1]){var u=s.sn-a.startSN,f=e&&s.level===e.level,d=r[u-1],p=r[u+1];if(e&&s.sn===e.sn)if(f&&!s.backtracked)if(s.sn<a.endSN){var h=e.deltaPTS;h&&h>c.maxBufferHole&&e.dropped&&u?(s=d,l.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(s=p,this.fragmentTracker.getState(s)!==U&&l.logger.log("Re-loading fragment with SN: "+s.sn))}else s=null;else s.backtracked&&(p&&p.backtracked?(l.logger.warn("Already backtracked from fragment "+p.sn+", will not backtrack to fragment "+s.sn+". Loading fragment "+p.sn),s=p):(l.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),s.dropped=0,d?(s=d).backtracked=!0:u&&(s=null)))}return s},f._loadKey=function(t,e){l.logger.log("Loading key for "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level),this.state=mt,this.hls.trigger(u.default.KEY_LOADING,{frag:t})},f._loadFragment=function(t,e,n,r){var i=this.fragmentTracker.getState(t);this.fragCurrent=t,"initSegment"!==t.sn&&(this.startFragRequested=!0),Object(c.isFiniteNumber)(t.sn)&&!t.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),t.backtracked||i===M||i===B?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,l.logger.log("Loading "+t.sn+" of ["+e.startSN+"-"+e.endSN+"], level "+this.level+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+parseFloat(n.toFixed(3))+", bufferEnd: "+parseFloat(r.toFixed(3))),this.hls.trigger(u.default.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new J(this.hls,"main")),this.state=bt):i===F&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},f.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,o.MAIN)},f.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},f._checkFragmentChanged=function(){var t,e,n=this.media;if(n&&n.readyState&&!1===n.seeking&&((e=n.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=e),H.isBuffered(n,e)?t=this.getBufferedFrag(e):H.isBuffered(n,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var r=t;if(r!==this.fragPlaying){this.hls.trigger(u.default.FRAG_CHANGED,{frag:r});var i=r.level;this.fragPlaying&&this.fragPlaying.level===i||this.hls.trigger(u.default.LEVEL_SWITCHED,{level:i}),this.fragPlaying=r}}},f.immediateLevelSwitch=function(){if(l.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var t,e=this.media;e?(t=e.paused)||e.pause():t=!0,this.previouslyPaused=t}var n=this.fragCurrent;n&&n.loader&&n.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},f.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,t.currentTime>0&&H.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},f.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e,n=this.getBufferedFrag(t.currentTime);if(n&&n.startPTS>1&&this.flushMainBuffer(0,n.startPTS-1),t.paused)e=0;else{var r=this.hls.nextLoadLevel,i=this.levels[r],o=this.fragLastKbps;e=o&&this.fragCurrent?this.fragCurrent.duration*i.bitrate/(1e3*o)+1:0}var a=this.getBufferedFrag(t.currentTime+e);if(a){var s=this.followingBufferedFrag(a);if(s){var c=this.fragCurrent;c&&c.loader&&c.loader.abort(),this.fragCurrent=null;var u=Math.max(a.endPTS,s.maxStartPTS+Math.min(this.config.maxFragLookUpTolerance,s.duration));this.flushMainBuffer(u,Number.POSITIVE_INFINITY)}}}},f.flushMainBuffer=function(t,e){this.state=St;var n={startOffset:t,endOffset:e};this.altAudio&&(n.type="video"),this.hls.trigger(u.default.BUFFER_FLUSHING,n)},f.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",this.onvseeked),e.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.hls.startLoad(n.startPosition),this.gapController=new dt(n,e,this.fragmentTracker,this.hls)},f.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(l.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;e&&e.forEach((function(t){t.details&&t.details.fragments.forEach((function(t){t.backtracked=void 0}))})),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},f.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;Object(c.isFiniteNumber)(e)&&l.logger.log("media seeked to "+e.toFixed(3)),this.tick()},f.onManifestLoading=function(){l.logger.log("trigger BUFFER_RESET"),this.hls.trigger(u.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},f.onManifestParsed=function(t){var e,n=!1,r=!1;t.levels.forEach((function(t){(e=t.audioCodec)&&(-1!==e.indexOf("mp4a.40.2")&&(n=!0),-1!==e.indexOf("mp4a.40.5")&&(r=!0))})),this.audioCodecSwitch=n&&r,this.audioCodecSwitch&&l.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=t.altAudio,this.levels=t.levels,this.startFragRequested=!1;var i=this.config;(i.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(i.startPosition)},f.onLevelLoaded=function(t){var e=t.details,n=t.level,r=this.levels[this.levelLastLoaded],i=this.levels[n],o=e.totalduration,a=0;if(l.logger.log("level "+n+" loaded ["+e.startSN+","+e.endSN+"],duration:"+o),e.live){var s=i.details;s&&e.fragments.length>0?(nt(s,e),a=e.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(a,s),e.PTSKnown&&Object(c.isFiniteNumber)(a)?l.logger.log("live playlist sliding:"+a.toFixed(3)):(l.logger.log("live playlist - outdated PTS, unknown sliding"),st(this.fragPrevious,r,e))):(l.logger.log("live playlist - first load, unknown sliding"),e.PTSKnown=!1,st(this.fragPrevious,r,e))}else e.PTSKnown=!1;if(i.details=e,this.levelLastLoaded=n,this.hls.trigger(u.default.LEVEL_UPDATED,{details:e,level:n}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var f=e.startTimeOffset;Object(c.isFiniteNumber)(f)?(f<0&&(l.logger.log("negative start time offset "+f+", count from end of last fragment"),f=a+o+f),l.logger.log("start time offset found in playlist, adjust startPosition to "+f),this.startPosition=f):e.live?(this.startPosition=this.computeLivePosition(a,e),l.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===At&&(this.state=yt),this.tick()},f.onKeyLoaded=function(){this.state===mt&&(this.state=yt,this.tick())},f.onFragLoaded=function(t){var e=this.fragCurrent,n=this.hls,r=this.levels,i=this.media,o=t.frag;if(this.state===bt&&e&&"main"===o.type&&o.level===e.level&&o.sn===e.sn){var a=t.stats,s=r[e.level],c=s.details;if(this.bitrateTest=!1,this.stats=a,l.logger.log("Loaded "+e.sn+" of ["+c.startSN+" ,"+c.endSN+"],level "+e.level),o.bitrateTest&&n.nextLoadLevel)this.state=yt,this.startFragRequested=!1,a.tparsed=a.tbuffered=window.performance.now(),n.trigger(u.default.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else if("initSegment"===o.sn)this.state=yt,a.tparsed=a.tbuffered=window.performance.now(),c.initSegment.data=t.payload,n.trigger(u.default.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else{l.logger.log("Parsing "+e.sn+" of ["+c.startSN+" ,"+c.endSN+"],level "+e.level+", cc "+e.cc),this.state=Ot,this.pendingBuffering=!0,this.appended=!1,o.bitrateTest&&(o.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:o}));var f=!(i&&i.seeking)&&(c.PTSKnown||!c.live),d=c.initSegment?c.initSegment.data:[],p=this._getAudioCodec(s);(this.demuxer=this.demuxer||new J(this.hls,"main")).push(t.payload,d,p,s.videoCodec,e,c.totalduration,f)}}this.fragLoadError=0},f.onFragParsingInitSegment=function(t){var e=this.fragCurrent,n=t.frag;if(e&&"main"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===Ot){var r,i,o=t.tracks;if(this.audioOnly=o.audio&&!o.video,this.altAudio&&!this.audioOnly&&delete o.audio,i=o.audio){var a=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();a&&this.audioCodecSwap&&(l.logger.log("swapping playlist audio codec"),a=-1!==a.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==i.metadata.channelCount&&-1===s.indexOf("firefox")&&(a="mp4a.40.5"),-1!==s.indexOf("android")&&"audio/mpeg"!==i.container&&(a="mp4a.40.2",l.logger.log("Android: force audio codec to "+a)),i.levelCodec=a,i.id=t.id}for(r in(i=o.video)&&(i.levelCodec=this.levels[this.level].videoCodec,i.id=t.id),this.hls.trigger(u.default.BUFFER_CODECS,o),o){i=o[r],l.logger.log("main track:"+r+",container:"+i.container+",codecs[level/parsed]=["+i.levelCodec+"/"+i.codec+"]");var c=i.initSegment;c&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(u.default.BUFFER_APPENDING,{type:r,data:c,parent:"main",content:"initSegment"}))}this.tick()}},f.onFragParsingData=function(t){var e=this,n=this.fragCurrent,r=t.frag;if(n&&"main"===t.id&&r.sn===n.sn&&r.level===n.level&&("audio"!==t.type||!this.altAudio)&&this.state===Ot){var i=this.levels[this.level],o=n;if(Object(c.isFiniteNumber)(t.endPTS)||(t.endPTS=t.startPTS+n.duration,t.endDTS=t.startDTS+n.duration),!0===t.hasAudio&&o.addElementaryStream(g.AUDIO),!0===t.hasVideo&&o.addElementaryStream(g.VIDEO),l.logger.log("Parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb+",dropped:"+(t.dropped||0)),"video"===t.type)if(o.dropped=t.dropped,o.dropped)if(o.backtracked)l.logger.warn("Already backtracked on this fragment, appending with the gap",o.sn);else{var a=i.details;if(!a||o.sn!==a.startSN)return l.logger.warn("missing video frame(s), backtracking fragment",o.sn),this.fragmentTracker.removeFragment(o),o.backtracked=!0,this.nextLoadPosition=t.startPTS,this.state=yt,this.fragPrevious=o,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),void this.tick();l.logger.warn("missing video frame(s) on first frag, appending with gap",o.sn)}else o.backtracked=!1;var s=et(i.details,o,t.startPTS,t.endPTS,t.startDTS,t.endDTS),f=this.hls;f.trigger(u.default.LEVEL_PTS_UPDATED,{details:i.details,level:this.level,drift:s,type:t.type,start:t.startPTS,end:t.endPTS}),[t.data1,t.data2].forEach((function(n){n&&n.length&&e.state===Ot&&(e.appended=!0,e.pendingBuffering=!0,f.trigger(u.default.BUFFER_APPENDING,{type:t.type,data:n,parent:"main",content:"data"}))})),this.tick()}},f.onFragParsed=function(t){var e=this.fragCurrent,n=t.frag;e&&"main"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===Ot&&(this.stats.tparsed=window.performance.now(),this.state=Et,this._checkAppendedParsed())},f.onAudioTrackSwitching=function(t){var e=this.altAudio,n=!!t.url,r=t.id;if(!n){if(this.mediaBuffer!==this.media){l.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(l.logger.log("switching to main audio track, cancel main fragment load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=yt}var o=this.hls;e&&o.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),o.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:r})}},f.onAudioTrackSwitched=function(t){var e=t.id,n=!!this.hls.audioTracks[e].url;if(n){var r=this.videoBuffer;r&&this.mediaBuffer!==r&&(l.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n,this.tick()},f.onBufferCreated=function(t){var e,n,r=t.tracks,i=!1;for(var o in r){var a=r[o];"main"===a.id?(n=o,e=a,"video"===o&&(this.videoBuffer=r[o].buffer)):i=!0}i&&e?(l.logger.log("alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=e.buffer):this.mediaBuffer=this.media},f.onBufferAppended=function(t){if("main"===t.parent){var e=this.state;e!==Ot&&e!==Et||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(!(this.state!==Et||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){var e=this.mediaBuffer?this.mediaBuffer:this.media;l.logger.log("main buffered : "+ot(e.buffered)),this.fragPrevious=t;var n=this.stats;n.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*n.total/(n.tbuffered-n.tfirst)),this.hls.trigger(u.default.FRAG_BUFFERED,{stats:n,frag:t,id:"main"}),this.state=yt}(this.loadedmetadata||this.startPosition<=0)&&this.tick()}},f.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var n=!!this.media&&H.isBuffered(this.media,this.media.currentTime)&&H.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:if(!t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var r=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);l.logger.warn("mediaController: frag loading failed, retry in "+r+" ms"),this.retryDate=window.performance.now()+r,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=_t}else l.logger.error("mediaController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ct;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==Ct&&(t.fatal?(this.state=Ct,l.logger.warn("streamController: "+t.details+",switch to "+this.state+" state ...")):t.levelRetry||this.state!==At||(this.state=yt));break;case s.ErrorDetails.BUFFER_FULL_ERROR:"main"!==t.parent||this.state!==Ot&&this.state!==Et||(n?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=yt):(l.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},f._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,l.logger.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},f._checkBuffer=function(){var t=this.media;if(t&&0!==t.readyState){var e=(this.mediaBuffer?this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,e)}},f.onFragLoadEmergencyAborted=function(){this.state=yt,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},f.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;if(t){var e=this.audioOnly?g.AUDIO:g.VIDEO;this.fragmentTracker.detectEvictedFragments(e,t.buffered)}this.state=yt,this.fragPrevious=null},f.onLevelsUpdated=function(t){this.levels=t.levels},f.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},f._seekToStartPos=function(){var t=this.media,e=t.currentTime,n=this.startPosition;if(e!==n&&n>=0){if(t.seeking)return void l.logger.log("could not seek to "+n+", already seeking at "+e);var r=(t.buffered.length?t.buffered.start(0):0)-n;r>0&&r<this.config.maxBufferHole&&(l.logger.log("adjusting start position by "+r+" to match buffer start"),n+=r,this.startPosition=n),l.logger.log("seek to target start position "+n+" from current time "+e+". ready state "+t.readyState),t.currentTime=n}},f._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&(l.logger.log("swapping playlist audio codec"),e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),e},i=r,(a=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,l.logger.log("main stream-controller: "+e+"->"+t),this.hls.trigger(u.default.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}])&&Lt(i.prototype,a),r}(xt);function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var jt=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MANIFEST_LOADED,u.default.LEVEL_LOADED,u.default.AUDIO_TRACK_SWITCHED,u.default.FRAG_LOADED,u.default.ERROR)||this).canload=!1,n.currentLevelIndex=null,n.manualLevelIndex=-1,n.timer=null,Pt=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},a.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},a.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach((function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)})),null!==this.timer&&this.loadLevel()},a.stopLoad=function(){this.canload=!1},a.onManifestLoaded=function(t){var e,n=[],r=[],i={},o=null,a=!1,c=!1;if(t.levels.forEach((function(t){var e=t.attrs;t.loadError=0,t.fragmentError=!1,a=a||!!t.videoCodec,c=c||!!t.audioCodec,Pt&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(o=i[t.bitrate])?o.url.push(t.url):(t.url=[t.url],t.urlId=0,i[t.bitrate]=t,n.push(t)),e&&(e.AUDIO&&Q(o||t,"audio",e.AUDIO),e.SUBTITLES&&Q(o||t,"text",e.SUBTITLES))})),a&&c&&(n=n.filter((function(t){return!!t.videoCodec}))),n=n.filter((function(t){var e=t.audioCodec,n=t.videoCodec;return(!e||k(e,"audio"))&&(!n||k(n,"video"))})),t.audioTracks&&(r=t.audioTracks.filter((function(t){return!t.audioCodec||k(t.audioCodec,"audio")}))).forEach((function(t,e){t.id=e})),n.length>0){e=n[0].bitrate,n.sort((function(t,e){return t.bitrate-e.bitrate})),this._levels=n;for(var f=0;f<n.length;f++)if(n[f].bitrate===e){this._firstLevel=f,l.logger.log("manifest loaded,"+n.length+" level(s) found, first bitrate:"+e);break}var d=c&&!a;this.hls.trigger(u.default.MANIFEST_PARSED,{levels:n,audioTracks:r,firstLevel:this._firstLevel,stats:t.stats,audio:c,video:a,altAudio:!d&&r.some((function(t){return!!t.url}))})}else this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},a.setLevelInternal=function(t){var e=this._levels,n=this.hls;if(t>=0&&t<e.length){if(this.clearTimer(),this.currentLevelIndex!==t){l.logger.log("switching to level "+t),this.currentLevelIndex=t;var r=e[t];r.level=t,n.trigger(u.default.LEVEL_SWITCHING,r)}var i=e[t],o=i.details;if(!o||o.live){var a=i.urlId;n.trigger(u.default.LEVEL_LOADING,{url:i.url[a],level:t,id:a})}}else n.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},a.onError=function(t){if(t.fatal)t.type===s.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var e,n=!1,r=!1;switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:e=t.frag.level,r=!0;break;case s.ErrorDetails.LEVEL_LOAD_ERROR:case s.ErrorDetails.LEVEL_LOAD_TIMEOUT:e=t.context.level,n=!0;break;case s.ErrorDetails.REMUX_ALLOC_ERROR:e=t.level,n=!0}void 0!==e&&this.recoverLevel(t,e,n,r)}},a.recoverLevel=function(t,e,n,r){var i,o,a,s=this,c=this.hls.config,u=t.details,f=this._levels[e];if(f.loadError++,f.fragmentError=r,n){if(!(this.levelRetryCount+1<=c.levelLoadingMaxRetry))return l.logger.error("level controller, cannot recover from "+u+" error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);o=Math.min(Math.pow(2,this.levelRetryCount)*c.levelLoadingRetryDelay,c.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return s.loadLevel()}),o),t.levelRetry=!0,this.levelRetryCount++,l.logger.warn("level controller, "+u+", retry in "+o+" ms, current retry count is "+this.levelRetryCount)}(n||r)&&((i=f.url.length)>1&&f.loadError<i?(f.urlId=(f.urlId+1)%i,f.details=void 0,l.logger.warn("level controller, "+u+" for level "+e+": switching to redundant URL-id "+f.urlId)):-1===this.manualLevelIndex?(a=0===e?this._levels.length-1:e-1,l.logger.warn("level controller, "+u+": switch to "+a),this.hls.nextAutoLevel=this.currentLevelIndex=a):r&&(l.logger.warn("level controller, "+u+": reload a fragment"),this.currentLevelIndex=null))},a.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&"main"===e.type){var n=this._levels[e.level];void 0!==n&&(n.fragmentError=!1,n.loadError=0,this.levelRetryCount=0)}},a.onLevelLoaded=function(t){var e=this,n=t.level,r=t.details;if(n===this.currentLevelIndex){var i=this._levels[n];if(i.fragmentError||(i.loadError=0,this.levelRetryCount=0),r.live){var o=it(i.details,r,t.stats.trequest);l.logger.log("live playlist, reload in "+Math.round(o)+" ms"),this.timer=setTimeout((function(){return e.loadLevel()}),o)}else this.clearTimer()}},a.onAudioTrackSwitched=function(t){var e=this.hls.audioTracks[t.id].groupId,n=this.hls.levels[this.currentLevelIndex];if(n&&n.audioGroupIds){for(var r=-1,i=0;i<n.audioGroupIds.length;i++)if(n.audioGroupIds[i]===e){r=i;break}r!==n.urlId&&(n.urlId=r,this.startLoad())}},a.loadLevel=function(){if(l.logger.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var t=this._levels[this.currentLevelIndex];if("object"==typeof t&&t.url.length>0){var e=this.currentLevelIndex,n=t.urlId,r=t.url[n];l.logger.log("Attempt loading level index "+e+" with URL-id "+n),this.hls.trigger(u.default.LEVEL_LOADING,{url:r,level:e,id:n})}}},a.removeLevel=function(t,e){var n=this.levels.filter((function(n,r){return r!==t||n.url.length>1&&void 0!==e&&(n.url=n.url.filter((function(t,n){return n!==e})),n.urlId=0,!0)})).map((function(t,e){var n=t.details;return n&&n.fragments&&n.fragments.forEach((function(t){t.level=e})),t}));this._levels=n,this.hls.trigger(u.default.LEVELS_UPDATED,{levels:n})},i=r,(o=[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}])&&It(i.prototype,o),r}(d),Dt=n("./src/demux/id3.js");function Nt(t,e){var n;try{n=new Event("addtrack")}catch(t){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function Mt(t){if(null==t?void 0:t.cues)for(;t.cues.length>0;)t.removeCue(t.cues[0])}var Ft=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.FRAG_PARSING_METADATA,u.default.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void 0,n.media=void 0,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){d.prototype.destroy.call(this)},i.onMediaAttached=function(t){this.media=t.media,this.media},i.onMediaDetaching=function(){Mt(this.id3Track),this.id3Track=void 0,this.media=void 0},i.getID3Track=function(t){for(var e=0;e<t.length;e++){var n=t[e];if("metadata"===n.kind&&"id3"===n.label)return Nt(n,this.media),n}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(t){var e=t.frag,n=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var r=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,i=0;i<n.length;i++){var o=Dt.default.getID3Frames(n[i].data);if(o){var a=Math.max(n[i].pts,0),s=i<n.length-1?n[i+1].pts:e.endPTS;s||(s=e.start+e.duration),s-a<=0&&(s=a+.25);for(var c=0;c<o.length;c++){var u=o[c];if(!Dt.default.isTimeStampFrame(u)){var l=new r(a,s,"");l.value=u,this.id3Track.addCue(l)}}}}},i.onLiveBackBufferReached=function(t){var e=t.bufferEnd,n=this.id3Track;if(n&&n.cues&&n.cues.length){var r=function(t,e){if(e<t[0].endTime)return t[0];if(e>t[t.length-1].endTime)return t[t.length-1];for(var n=0,r=t.length-1;n<=r;){var i=Math.floor((r+n)/2);if(e<t[i].endTime)r=i-1;else{if(!(e>t[i].endTime))return t[i];n=i+1}}return t[n].endTime-e<e-t[r].endTime?t[n]:t[r]}(n.cues,e);if(r)for(;n.cues[0]!==r;)n.removeCue(n.cues[0])}},r}(d),Bt=function(){function t(t){this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}var e=t.prototype;return e.sample=function(t,e){var n=Math.pow(this.alpha_,t);this.estimate_=e*(1-n)+n*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),Ut=function(){function t(t,e,n,r){this.hls=void 0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.hls=t,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Bt(e),this.fast_=new Bt(n)}var e=t.prototype;return e.sample=function(t,e){var n=(t=Math.max(t,this.minDelayMs_))/1e3,r=8*e/n;this.fast_.sample(n,r),this.slow_.sample(n,r)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}();function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var qt=window.performance,Ht=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.FRAG_LOADING,u.default.FRAG_LOADED,u.default.FRAG_BUFFERED,u.default.ERROR)||this).lastLoadedFragLevel=0,n._nextAutoLevel=-1,n.hls=e,n.timer=null,n._bwEstimator=null,n.onCheck=n._abandonRulesCheck.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.destroy=function(){this.clearTimer(),d.prototype.destroy.call(this)},a.onFragLoading=function(t){var e=t.frag;if("main"===e.type&&(this.timer||(this.fragCurrent=e,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var n,r,i=this.hls,o=i.config,a=e.level;i.levels[a].details.live?(n=o.abrEwmaFastLive,r=o.abrEwmaSlowLive):(n=o.abrEwmaFastVoD,r=o.abrEwmaSlowVoD),this._bwEstimator=new Ut(i,r,n,o.abrEwmaDefaultEstimate)}},a._abandonRulesCheck=function(){var t=this.hls,e=t.media,n=this.fragCurrent;if(n){var r=n.loader;if(!r||r.stats&&r.stats.aborted)return l.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var i=r.stats;if(e&&i&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&n.autoLevel&&n.level){var o=qt.now()-i.trequest,a=Math.abs(e.playbackRate);if(o>500*n.duration/a){var s=t.levels,c=Math.max(1,i.bw?i.bw/8:1e3*i.loaded/o),f=s[n.level];if(!f)return;var d=f.realBitrate?Math.max(f.realBitrate,f.bitrate):f.bitrate,p=i.total?i.total:Math.max(i.loaded,Math.round(n.duration*d/8)),h=e.currentTime,g=(p-i.loaded)/c,v=(H.bufferInfo(e,h,t.config.maxBufferHole).end-h)/a;if(v<2*n.duration/a&&g>v){var y,m,b=t.minAutoLevel;for(m=n.level-1;m>b;m--){var _=s[m].realBitrate?Math.max(s[m].realBitrate,s[m].bitrate):s[m].bitrate;if(n.duration*_/(6.4*c)<v)break}y<g&&(l.logger.warn("loading too slow, abort fragment loading and switch to level "+m+":fragLoadedDelay["+m+"]<fragLoadedDelay["+(n.level-1)+"];bufferStarvationDelay:"+y.toFixed(1)+"<"+g.toFixed(1)+":"+v.toFixed(1)),t.nextLoadLevel=m,this._bwEstimator.sample(o,i.loaded),r.abort(),this.clearTimer(),t.trigger(u.default.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,stats:i}))}}}}},a.onFragLoaded=function(t){var e=t.frag;if("main"===e.type&&Object(c.isFiniteNumber)(e.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var n=this.hls.levels[e.level],r=(n.loaded?n.loaded.bytes:0)+t.stats.loaded,i=(n.loaded?n.loaded.duration:0)+t.frag.duration;n.loaded={bytes:r,duration:i},n.realBitrate=Math.round(8*r/i)}if(t.frag.bitrateTest){var o=t.stats;o.tparsed=o.tbuffered=o.tload,this.onFragBuffered(t)}}},a.onFragBuffered=function(t){var e=t.stats,n=t.frag;if(!0!==e.aborted&&"main"===n.type&&Object(c.isFiniteNumber)(n.sn)&&(!n.bitrateTest||e.tload===e.tbuffered)){var r=e.tparsed-e.trequest;l.logger.log("latency/loading/parsing/append/kbps:"+Math.round(e.tfirst-e.trequest)+"/"+Math.round(e.tload-e.tfirst)+"/"+Math.round(e.tparsed-e.tload)+"/"+Math.round(e.tbuffered-e.tparsed)+"/"+Math.round(8*e.loaded/(e.tbuffered-e.trequest))),this._bwEstimator.sample(r,e.loaded),e.bwEstimate=this._bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=r/1e3:this.bitrateTestDelay=0}},a.onError=function(t){switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},a.clearTimer=function(){clearInterval(this.timer),this.timer=null},a._findBestLevel=function(t,e,n,r,i,o,a,s,c){for(var u=i;u>=r;u--){var f=c[u];if(f){var d,p=f.details,h=p?p.totalduration/p.fragments.length:e,g=!!p&&p.live;d=u<=t?a*n:s*n;var v=c[u].realBitrate?Math.max(c[u].realBitrate,c[u].bitrate):c[u].bitrate,y=v*h/d;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+u+"/"+Math.round(d)+"/"+v+"/"+h+"/"+o+"/"+y),d>v&&(!y||g&&!this.bitrateTestDelay||y<o))return u}}return-1},i=r,(o=[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(-1===t||e&&e.canEstimate()))return t;var n=this._nextABRAutoLevel;return-1!==t&&(n=Math.min(t,n)),n},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,n=t.levels,r=t.config,i=t.minAutoLevel,o=t.media,a=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,c=o?o.currentTime:0,u=o&&0!==o.playbackRate?Math.abs(o.playbackRate):1,f=this._bwEstimator?this._bwEstimator.getEstimate():r.abrEwmaDefaultEstimate,d=(H.bufferInfo(o,c,r.maxBufferHole).end-c)/u,p=this._findBestLevel(a,s,f,i,e,d,r.abrBandWidthFactor,r.abrBandWidthUpFactor,n);if(p>=0)return p;l.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var h=s?Math.min(s,r.maxStarvationDelay):r.maxStarvationDelay,g=r.abrBandWidthFactor,v=r.abrBandWidthUpFactor;if(0===d){var y=this.bitrateTestDelay;y&&(h=(s?Math.min(s,r.maxLoadingDelay):r.maxLoadingDelay)-y,l.logger.trace("bitrate test took "+Math.round(1e3*y)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),g=v=1)}return p=this._findBestLevel(a,s,f,i,e,d+h,g,v,n),Math.max(p,0)}}])&&$t(i.prototype,o),r}(d),Gt=K(),zt=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MEDIA_ATTACHING,u.default.MEDIA_DETACHING,u.default.MANIFEST_PARSED,u.default.BUFFER_RESET,u.default.BUFFER_APPENDING,u.default.BUFFER_CODECS,u.default.BUFFER_EOS,u.default.BUFFER_FLUSHING,u.default.LEVEL_PTS_UPDATED,u.default.LEVEL_UPDATED)||this)._msDuration=null,n._levelDuration=null,n._levelTargetDuration=10,n._live=null,n._objectUrl=null,n._needsFlush=!1,n._needsEos=!1,n.config=void 0,n.audioTimestampOffset=void 0,n.bufferCodecEventsExpected=0,n._bufferCodecEventsTotal=0,n.media=null,n.mediaSource=null,n.segments=[],n.parent=void 0,n.appending=!1,n.appended=0,n.appendError=0,n.flushBufferCounter=0,n.tracks={},n.pendingTracks={},n.sourceBuffer={},n.flushRange=[],n._onMediaSourceOpen=function(){l.logger.log("media source opened"),n.hls.trigger(u.default.MEDIA_ATTACHED,{media:n.media});var t=n.mediaSource;t&&t.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},n._onMediaSourceClose=function(){l.logger.log("media source closed")},n._onMediaSourceEnded=function(){l.logger.log("media source ended")},n._onSBUpdateEnd=function(){if(n.audioTimestampOffset&&n.sourceBuffer.audio){var t=n.sourceBuffer.audio;l.logger.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+n.audioTimestampOffset),t.timestampOffset=n.audioTimestampOffset,delete n.audioTimestampOffset}n._needsFlush&&n.doFlush(),n._needsEos&&n.checkEos(),n.appending=!1;var e=n.parent,r=n.segments.reduce((function(t,n){return n.parent===e?t+1:t}),0),i={},o=n.sourceBuffer;for(var a in o){var s=o[a];if(!s)throw Error("handling source buffer update end error: source buffer for "+a+" uninitilized and unable to update buffered TimeRanges.");i[a]=s.buffered}n.hls.trigger(u.default.BUFFER_APPENDED,{parent:e,pending:r,timeRanges:i}),n._needsFlush||n.doAppending(),n.updateMediaElementDuration(),0===r&&n.flushLiveBackBuffer()},n._onSBUpdateError=function(t){l.logger.error("sourceBuffer error:",t),n.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},n.config=e.config,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){d.prototype.destroy.call(this)},i.onLevelPtsUpdated=function(t){var e=t.type,n=this.tracks.audio;if("audio"===e&&n&&"audio/mpeg"===n.container){var r=this.sourceBuffer.audio;if(!r)throw Error("Level PTS Updated and source buffer for audio uninitalized");if(Math.abs(r.timestampOffset-t.start)>.1){var i=r.updating;try{r.abort()}catch(t){l.logger.warn("can not abort audio buffer: "+t)}i?this.audioTimestampOffset=t.start:(l.logger.warn("change mpeg audio timestamp offset from "+r.timestampOffset+" to "+t.start),r.timestampOffset=t.start)}}},i.onManifestParsed=function(t){var e=2;(t.audio&&!t.video||!t.altAudio)&&(e=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=e,l.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(t){var e=this.media=t.media;if(e&&Gt){var n=this.mediaSource=new Gt;n.addEventListener("sourceopen",this._onMediaSourceOpen),n.addEventListener("sourceended",this._onMediaSourceEnded),n.addEventListener("sourceclose",this._onMediaSourceClose),e.src=window.URL.createObjectURL(n),this._objectUrl=e.src}},i.onMediaDetaching=function(){l.logger.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){l.logger.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):l.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(u.default.MEDIA_DETACHED)},i.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.pendingTracks,n=Object.keys(e).length;(n&&!t||2===n)&&(this.createSourceBuffers(e),this.pendingTracks={},this.doAppending())},i.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var n=t[e];try{n&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(n),n.removeEventListener("updateend",this._onSBUpdateEnd),n.removeEventListener("error",this._onSBUpdateError))}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},i.onBufferCodecs=function(t){var e=this;Object.keys(this.sourceBuffer).length||(Object.keys(t).forEach((function(n){e.pendingTracks[n]=t[n]})),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},i.createSourceBuffers=function(t){var e=this.sourceBuffer,n=this.mediaSource;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(var r in t)if(!e[r]){var i=t[r];if(!i)throw Error("source buffer exists for track "+r+", however track does not");var o=i.levelCodec||i.codec,a=i.container+";codecs="+o;l.logger.log("creating sourceBuffer("+a+")");try{var c=e[r]=n.addSourceBuffer(a);c.addEventListener("updateend",this._onSBUpdateEnd),c.addEventListener("error",this._onSBUpdateError),this.tracks[r]={buffer:c,codec:o,id:i.id,container:i.container,levelCodec:i.levelCodec}}catch(t){l.logger.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:a})}}this.hls.trigger(u.default.BUFFER_CREATED,{tracks:this.tracks})},i.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},i.onBufferEos=function(t){for(var e in this.sourceBuffer)if(!t.type||t.type===e){var n=this.sourceBuffer[e];n&&!n.ended&&(n.ended=!0,l.logger.log(e+" sourceBuffer now EOS"))}this.checkEos()},i.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var n in t){var r=t[n];if(r){if(!r.ended)return;if(r.updating)return void(this._needsEos=!0)}}l.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){l.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1},i.onBufferFlushing=function(t){t.type?this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}):(this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"video"}),this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},i.flushLiveBackBuffer=function(){if(this._live){var t=this.config.liveBackBufferLength;if(isFinite(t)&&!(t<0))if(this.media)for(var e=this.media.currentTime,n=this.sourceBuffer,r=Object.keys(n),i=e-Math.max(t,this._levelTargetDuration),o=r.length-1;o>=0;o--){var a=r[o],s=n[a];if(s){var c=s.buffered;c.length>0&&i>c.start(0)&&this.removeBufferRange(a,s,0,i)&&this.hls.trigger(u.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:i})}}else l.logger.error("flushLiveBackBuffer called without attaching media")}},i.onLevelUpdated=function(t){var e=t.details;e.fragments.length>0&&(this._levelDuration=e.totalduration+e.fragments[0].start,this._levelTargetDuration=e.averagetargetduration||e.targetduration||10,this._live=e.live,this.updateMediaElementDuration())},i.updateMediaElementDuration=function(){var t,e=this.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var n in this.sourceBuffer){var r=this.sourceBuffer[n];if(r&&!0===r.updating)return}t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?(l.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||!Object(c.isFiniteNumber)(t))&&(l.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},i.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,n=this.sourceBuffer;try{for(var r in n){var i=n[r];i&&(e+=i.buffered.length)}}catch(t){l.logger.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(u.default.BUFFER_FLUSHED)}},i.doAppending=function(){var t=this.config,e=this.hls,n=this.segments,r=this.sourceBuffer;if(Object.keys(r).length){if(!this.media||this.media.error)return this.segments=[],void l.logger.error("trying to append although a media error occured, flush segment and abort");if(!this.appending){var i=n.shift();if(i)try{var o=r[i.type];if(!o)return void this._onSBUpdateEnd();if(o.updating)return void n.unshift(i);o.ended=!1,this.parent=i.parent,o.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0}catch(r){l.logger.error("error while trying to append buffer:"+r.message),n.unshift(i);var a={type:s.ErrorTypes.MEDIA_ERROR,parent:i.parent,details:"",fatal:!1};22===r.code?(this.segments=[],a.details=s.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,a.details=s.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>t.appendErrorMaxRetry&&(l.logger.log("fail "+t.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],a.fatal=!0)),e.trigger(u.default.ERROR,a)}}}},i.flushBuffer=function(t,e,n){var r=this.sourceBuffer;if(!Object.keys(r).length)return!0;var i="null";if(this.media&&(i=this.media.currentTime.toFixed(3)),l.logger.log("flushBuffer,pos/start/end: "+i+"/"+t+"/"+e),this.flushBufferCounter>=this.appended)return l.logger.warn("abort flushing too many retries"),!0;var o=r[n];if(o){if(o.ended=!1,o.updating)return l.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(n,o,t,e))return this.flushBufferCounter++,!1}return l.logger.log("buffer flushed"),!0},i.removeBufferRange=function(t,e,n,r){try{for(var i=0;i<e.buffered.length;i++){var o=e.buffered.start(i),a=e.buffered.end(i),s=Math.max(o,n),c=Math.min(a,r);if(Math.min(c,a)-s>.5){var u="null";return this.media&&(u=this.media.currentTime.toString()),l.logger.log("sb remove "+t+" ["+s+","+c+"], of ["+o+","+a+"], pos:"+u),e.remove(s,c),!0}}}catch(t){l.logger.warn("removeBufferRange failed",t)}return!1},r}(d);function Vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Kt=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.FPS_DROP_LEVEL_CAPPING,u.default.MEDIA_ATTACHING,u.default.MANIFEST_PARSED,u.default.LEVELS_UPDATED,u.default.BUFFER_CODECS,u.default.MEDIA_DETACHING)||this).autoLevelCapping=Number.POSITIVE_INFINITY,n.firstLevel=null,n.levels=[],n.media=null,n.restrictedLevels=[],n.timer=null,n.clientRect=null,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a,s=r.prototype;return s.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this.clientRect=null,this.stopCapping())},s.onFpsDropLevelCapping=function(t){r.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},s.onMediaAttaching=function(t){this.media=t.media instanceof window.HTMLVideoElement?t.media:null},s.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLevel,e.config.capLevelToPlayerSize&&t.video&&this.startCapping()},s.onBufferCodecs=function(t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},s.onLevelsUpdated=function(t){this.levels=t.levels},s.onMediaDetaching=function(){this.stopCapping()},s.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},s.getMaxLevel=function(t){var e=this;if(!this.levels)return-1;var n=this.levels.filter((function(n,i){return r.isLevelAllowed(i,e.restrictedLevels)&&i<=t}));return this.clientRect=null,r.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)},s.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},s.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},s.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var n=t.getBoundingClientRect();e.width=n.width,e.height=n.height,e.width||e.height||(e.width=n.right-n.left||t.width||0,e.height=n.bottom-n.top||t.height||0)}return this.clientRect=e,e},r.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},r.getMaxLevelByMediaSize=function(t,e,n){if(!t||t&&!t.length)return-1;for(var r,i,o=t.length-1,a=0;a<t.length;a+=1){var s=t[a];if((s.width>=e||s.height>=n)&&(r=s,!(i=t[a+1])||r.width!==i.width||r.height!==i.height)){o=a;break}}return o},i=r,a=[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}],(o=[{key:"mediaWidth",get:function(){return this.getDimensions().width*r.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*r.contentScaleFactor}}])&&Vt(i.prototype,o),a&&Vt(i,a),r}(d),Wt=window.performance,Yt=function(t){var e,n;function r(e){return t.call(this,e,u.default.MEDIA_ATTACHING)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},i.onMediaAttaching=function(t){var e=this.hls.config;e.capLevelOnFPSDrop&&("function"==typeof(this.video=t.media instanceof window.HTMLVideoElement?t.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod))},i.checkFPS=function(t,e,n){var r=Wt.now();if(e){if(this.lastTime){var i=r-this.lastTime,o=n-this.lastDroppedFrames,a=e-this.lastDecodedFrames,s=1e3*o/i,c=this.hls;if(c.trigger(u.default.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:n}),s>0&&o>c.config.fpsDroppedMonitoringThreshold*a){var f=c.currentLevel;l.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=f)&&(f-=1,c.trigger(u.default.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:c.currentLevel}),c.autoLevelCapping=f,c.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=e}},i.checkFPSInterval=function(){var t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},r}(d),Xt=function(){function t(t){t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}var e=t.prototype;return e.destroy=function(){this.abort(),this.loader=null},e.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},e.load=function(t,e,n){this.context=t,this.config=e,this.callbacks=n,this.stats={trequest:window.performance.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t,e=this.context;t=this.loader=new window.XMLHttpRequest;var n=this.stats;n.tfirst=0,n.loaded=0;var r=this.xhrSetup;try{if(r)try{r(t,e.url)}catch(n){t.open("GET",e.url,!0),r(t,e.url)}t.readyState||t.open("GET",e.url,!0)}catch(n){return void this.callbacks.onError({code:t.status,text:n.message},e,t)}e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},e.readystatechange=function(t){var e=t.currentTarget,n=e.readyState,r=this.stats,i=this.context,o=this.config;if(!r.aborted&&n>=2)if(window.clearTimeout(this.requestTimeout),0===r.tfirst&&(r.tfirst=Math.max(window.performance.now(),r.trequest)),4===n){var a=e.status;if(a>=200&&a<300){var s,c;r.tload=Math.max(r.tfirst,window.performance.now()),c="arraybuffer"===i.responseType?(s=e.response).byteLength:(s=e.responseText).length,r.loaded=r.total=c;var u={url:e.responseURL,data:s};this.callbacks.onSuccess(u,r,i,e)}else r.retry>=o.maxRetry||a>=400&&a<499?(l.logger.error(a+" while loading "+i.url),this.callbacks.onError({code:a,text:e.statusText},i,e)):(l.logger.warn(a+" while loading "+i.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),r.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),o.timeout)},e.loadtimeout=function(){l.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},e.loadprogress=function(t){var e=t.currentTarget,n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total);var r=this.callbacks.onProgress;r&&r(n,this.context,null,e)},t}();function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Jt=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MANIFEST_LOADING,u.default.MANIFEST_PARSED,u.default.AUDIO_TRACK_LOADED,u.default.AUDIO_TRACK_SWITCHED,u.default.LEVEL_LOADED,u.default.ERROR)||this)._trackId=-1,n._selectDefaultTrack=!0,n.tracks=[],n.trackIdBlacklist=Object.create(null),n.audioGroupId=null,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.onManifestLoading=function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0},a.onManifestParsed=function(t){var e=this.tracks=t.audioTracks||[];this.hls.trigger(u.default.AUDIO_TRACKS_UPDATED,{audioTracks:e}),this._selectAudioGroup(this.hls.nextLoadLevel)},a.onAudioTrackLoaded=function(t){if(t.id>=this.tracks.length)l.logger.warn("Invalid audio track id:",t.id);else{if(l.logger.log("audioTrack "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.hasInterval()){var e=1e3*t.details.targetduration;this.setInterval(e)}!t.details.live&&this.hasInterval()&&this.clearInterval()}},a.onAudioTrackSwitched=function(t){var e=this.tracks[t.id].groupId;e&&this.audioGroupId!==e&&(this.audioGroupId=e)},a.onLevelLoaded=function(t){this._selectAudioGroup(t.level)},a.onError=function(t){t.type===s.ErrorTypes.NETWORK_ERROR&&(t.fatal&&this.clearInterval(),t.details===s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(l.logger.warn("Network failure on audio-track id:",t.context.id),this._handleLoadError()))},a._setAudioTrack=function(t){if(this._trackId===t&&this.tracks[this._trackId].details)l.logger.debug("Same id as current audio-track passed, and track details available -> no-op");else if(t<0||t>=this.tracks.length)l.logger.warn("Invalid id passed to audio-track controller");else{var e=this.tracks[t];l.logger.log("Now switching to audio-track index "+t),this.clearInterval(),this._trackId=t;var n=e.url,r=e.type,i=e.id;this.hls.trigger(u.default.AUDIO_TRACK_SWITCHING,{id:i,type:r,url:n}),this._loadTrackDetailsIfNeeded(e)}},a.doTick=function(){this._updateTrack(this._trackId)},a._selectAudioGroup=function(t){var e=this.hls.levels[t];if(e&&e.audioGroupIds){var n=e.audioGroupIds[e.urlId];this.audioGroupId!==n&&(this.audioGroupId=n,this._selectInitialAudioTrack())}},a._selectInitialAudioTrack=function(){var t=this,e=this.tracks;if(e.length){var n=this.tracks[this._trackId],r=null;if(n&&(r=n.name),this._selectDefaultTrack){var i=e.filter((function(t){return t.default}));i.length?e=i:l.logger.warn("No default audio tracks defined")}var o=!1,a=function(){e.forEach((function(e){o||t.audioGroupId&&e.groupId!==t.audioGroupId||r&&r!==e.name||(t._setAudioTrack(e.id),o=!0)}))};a(),o||(r=null,a()),o||(l.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},a._needsTrackLoading=function(t){var e=t.details,n=t.url;return!(e&&!e.live||!n)},a._loadTrackDetailsIfNeeded=function(t){if(this._needsTrackLoading(t)){var e=t.url,n=t.id;l.logger.log("loading audio-track playlist for id: "+n),this.hls.trigger(u.default.AUDIO_TRACK_LOADING,{url:e,id:n})}},a._updateTrack=function(t){if(!(t<0||t>=this.tracks.length)){this.clearInterval(),this._trackId=t,l.logger.log("trying to update audio-track "+t);var e=this.tracks[t];this._loadTrackDetailsIfNeeded(e)}},a._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var t=this._trackId,e=this.tracks[t],n=e.name,r=e.language,i=e.groupId;l.logger.warn("Loading failed on audio track id: "+t+", group-id: "+i+', name/language: "'+n+'" / "'+r+'"');for(var o=t,a=0;a<this.tracks.length;a++)if(!this.trackIdBlacklist[a]&&this.tracks[a].name===n){o=a;break}o!==t?(l.logger.log("Attempting audio-track fallback id:",o,"group-id:",this.tracks[o].groupId),this._setAudioTrack(o)):l.logger.warn('No fallback audio-track found for name/language: "'+n+'" / "'+r+'"')},i=r,(o=[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(t){this._setAudioTrack(t),this._selectDefaultTrack=!1}}])&&Zt(i.prototype,o),r}(ht);function Qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var te=window.performance,ee=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.AUDIO_TRACKS_UPDATED,u.default.AUDIO_TRACK_SWITCHING,u.default.AUDIO_TRACK_LOADED,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.FRAG_PARSING_INIT_SEGMENT,u.default.FRAG_PARSING_DATA,u.default.FRAG_PARSED,u.default.ERROR,u.default.BUFFER_RESET,u.default.BUFFER_CREATED,u.default.BUFFER_APPENDED,u.default.BUFFER_FLUSHED,u.default.INIT_PTS_FOUND)||this).fragmentTracker=n,r.config=e.config,r.audioCodecSwap=!1,r._state=gt,r.initPTS=[],r.waitingFragment=null,r.videoTrackCC=null,r.waitingVideoCC=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.onInitPtsFound=function(t){var e=t.id,n=t.frag.cc,r=t.initPTS;"main"===e&&(this.initPTS[n]=r,this.videoTrackCC=n,l.logger.log("InitPTS for cc: "+n+" found from main: "+r),this.state===Tt&&this.tick())},a.startLoad=function(t){if(this.tracks){var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,e>0&&-1===t?(l.logger.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=yt):(this.lastCurrentTime=this.startPosition?this.startPosition:t,this.state=vt),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=t,this.state=gt},a.doTick=function(){var t,e,n,r=this.hls,i=r.config;switch(this.state){case Ct:case"PAUSED":case St:break;case vt:this.state=wt,this.loadedmetadata=!1;break;case yt:var o=this.tracks;if(!o)break;if(!this.media&&(this.startFragRequested||!i.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else if(void 0===(t=this.nextLoadPosition))break;var a=this.mediaBuffer?this.mediaBuffer:this.media,s=this.videoBuffer?this.videoBuffer:this.media,f=t<i.maxBufferHole?Math.max(2,i.maxBufferHole):i.maxBufferHole,d=H.bufferInfo(a,t,f),p=H.bufferInfo(s,t,f),h=d.len,g=d.end,v=this.fragPrevious,y=Math.min(i.maxBufferLength,i.maxMaxBufferLength),m=Math.max(y,p.len),b=this.audioSwitch,_=this.trackId;if((h<m||b)&&_<o.length){if(void 0===(n=o[_].details)){this.state=wt;break}if(!b&&this._streamEnded(d,n))return this.hls.trigger(u.default.BUFFER_EOS,{type:"audio"}),void(this.state=kt);var w,O=n.fragments,E=O.length,S=O[0].start,k=O[E-1].start+O[E-1].duration;if(b)if(n.live&&!n.PTSKnown)l.logger.log("switching audiotrack, live stream, unknown PTS,load first fragment"),g=0;else if(g=t,n.PTSKnown&&t<S){if(!(d.end>S||d.nextStart))return;l.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=S+.05}if(n.initSegment&&!n.initSegment.data)w=n.initSegment;else if(g<=S){if(w=O[0],null!==this.videoTrackCC&&w.cc!==this.videoTrackCC&&(w=function(t,e){return q(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(O,this.videoTrackCC)),n.live&&w.loadIdx&&w.loadIdx===this.fragLoadIdx){var C=d.nextStart?d.nextStart:S;return l.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(C+.05)),void(this.media.currentTime=C+.05)}}else{var T,A=i.maxFragLookUpTolerance,x=v?O[v.sn-O[0].sn+1]:void 0;g<k?(g>k-A&&(A=0),T=x&&!lt(g,A,x)?x:q(O,(function(t){return lt(g,A,t)}))):T=O[E-1],T&&(w=T,S=T.start,v&&w.level===v.level&&w.sn===v.sn&&(w.sn<n.endSN?(w=O[w.sn+1-n.startSN],this.fragmentTracker.getState(w)!==U&&l.logger.log("SN just loaded, load next one: "+w.sn)):w=null))}w&&(w.encrypted?(l.logger.log("Loading key for "+w.sn+" of ["+n.startSN+" ,"+n.endSN+"],track "+_),this.state=mt,r.trigger(u.default.KEY_LOADING,{frag:w})):(this.fragCurrent=w,(b||this.fragmentTracker.getState(w)===M)&&(l.logger.log("Loading "+w.sn+", cc: "+w.cc+" of ["+n.startSN+" ,"+n.endSN+"],track "+_+", "+(this.loadedmetadata?"currentTime":"nextLoadPosition")+": "+t+", bufferEnd: "+g.toFixed(3)),"initSegment"!==w.sn&&(this.startFragRequested=!0),Object(c.isFiniteNumber)(w.sn)&&(this.nextLoadPosition=w.start+w.duration),r.trigger(u.default.FRAG_LOADING,{frag:w}),this.state=bt)))}break;case wt:(e=this.tracks[this.trackId])&&e.details&&(this.state=yt);break;case _t:var L=te.now(),P=this.retryDate,R=(a=this.media)&&a.seeking;(!P||L>=P||R)&&(l.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=yt);break;case Tt:var I=this.waitingFragment;if(I){var j=I.frag.cc;if(void 0!==this.initPTS[j])this.waitingFragment=null,this.state=bt,this.onFragLoaded(I);else if(this.videoTrackCC!==this.waitingVideoCC)l.logger.log("Waiting fragment cc ("+j+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var D=H.bufferInfo(this.mediaBuffer,this.media.currentTime,i.maxBufferHole);lt(D.end,i.maxFragLookUpTolerance,I.frag)<0&&(l.logger.log("Waiting fragment cc ("+j+") @ "+I.frag.start+" cancelled because another fragment at "+D.end+" is needed"),this.clearWaitingFragment())}}else this.state=yt}},a.clearWaitingFragment=function(){var t=this.waitingFragment;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingFragment=null,this.waitingVideoCC=null,this.state=yt)},a.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("ended",this.onvended);var n=this.config;this.tracks&&n.autoStartLoad&&this.startLoad(n.startPosition)},a.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(l.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},a.onAudioTracksUpdated=function(t){l.logger.log("audio tracks updated"),this.tracks=t.audioTracks},a.onAudioTrackSwitching=function(t){var e=!!t.url;this.trackId=t.id,this.fragCurrent=null,this.clearWaitingFragment(),this.state="PAUSED",e?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(this.audioSwitch=!0,this.state=yt),this.tick()},a.onAudioTrackLoaded=function(t){var e=t.details,n=t.id,r=this.tracks[n],i=e.totalduration,o=0;if(l.logger.log("track "+n+" loaded ["+e.startSN+","+e.endSN+"],duration:"+i),e.live){var a=r.details;a&&e.fragments.length>0?(nt(a,e),o=e.fragments[0].start,e.PTSKnown?l.logger.log("live audio playlist sliding:"+o.toFixed(3)):l.logger.log("live audio playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,l.logger.log("live audio playlist - first load, unknown sliding"))}else e.PTSKnown=!1;if(r.details=e,!this.startFragRequested){if(-1===this.startPosition){var s=e.startTimeOffset;Object(c.isFiniteNumber)(s)?(l.logger.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s):e.live?(this.startPosition=this.computeLivePosition(o,e),l.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===wt&&(this.state=yt),this.tick()},a.onKeyLoaded=function(){this.state===mt&&(this.state=yt,this.tick())},a.onFragLoaded=function(t){var e=this.fragCurrent,n=t.frag;if(this.state===bt&&e&&"audio"===n.type&&n.level===e.level&&n.sn===e.sn){var r=this.tracks[this.trackId],i=r.details,o=i.totalduration,a=e.level,s=e.sn,c=e.cc,f=this.config.defaultAudioCodec||r.audioCodec||"mp4a.40.2",d=this.stats=t.stats;if("initSegment"===s)this.state=yt,d.tparsed=d.tbuffered=te.now(),i.initSegment.data=t.payload,this.hls.trigger(u.default.FRAG_BUFFERED,{stats:d,frag:e,id:"audio"}),this.tick();else{this.state=Ot,this.appended=!1,this.demuxer||(this.demuxer=new J(this.hls,"audio"));var p=this.initPTS[c],h=i.initSegment?i.initSegment.data:[];void 0!==p?(this.pendingBuffering=!0,l.logger.log("Demuxing "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a),this.demuxer.push(t.payload,h,f,null,e,o,!1,p)):(l.logger.log("Unknown video PTS for cc "+c+", waiting for video PTS before demuxing audio frag "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a),this.waitingFragment=t,this.waitingVideoCC=this.videoTrackCC,this.state=Tt)}}this.fragLoadError=0},a.onFragParsingInitSegment=function(t){var e=this.fragCurrent,n=t.frag;if(e&&"audio"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===Ot){var r,i=t.tracks;if(i.video&&delete i.video,r=i.audio){r.levelCodec=r.codec,r.id=t.id,this.hls.trigger(u.default.BUFFER_CODECS,i),l.logger.log("audio track:audio,container:"+r.container+",codecs[level/parsed]=["+r.levelCodec+"/"+r.codec+"]");var o=r.initSegment;if(o){var a={type:"audio",data:o,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[a]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(u.default.BUFFER_APPENDING,a))}this.tick()}}},a.onFragParsingData=function(t){var e=this,n=this.fragCurrent,r=t.frag;if(n&&"audio"===t.id&&"audio"===t.type&&r.sn===n.sn&&r.level===n.level&&this.state===Ot){var i=this.trackId,o=this.tracks[i],a=this.hls;Object(c.isFiniteNumber)(t.endPTS)||(t.endPTS=t.startPTS+n.duration,t.endDTS=t.startDTS+n.duration),n.addElementaryStream(g.AUDIO),l.logger.log("parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb),et(o.details,n,t.startPTS,t.endPTS);var f=this.media,d=!1;if(this.audioSwitch)if(f&&f.readyState){var p=f.currentTime;l.logger.log("switching audio track : currentTime:"+p),p>=t.startPTS&&(l.logger.log("switching audio track : flushing all audio"),this.state=St,a.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),d=!0,this.audioSwitch=!1,a.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:i}))}else this.audioSwitch=!1,a.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:i});var h=this.pendingData;if(!h)return l.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void a.trigger(u.default.ERROR,{type:s.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([t.data1,t.data2].forEach((function(e){e&&e.length&&h.push({type:t.type,data:e,parent:"audio",content:"data"})})),!d&&h.length&&(h.forEach((function(t){e.state===Ot&&(e.pendingBuffering=!0,e.hls.trigger(u.default.BUFFER_APPENDING,t))})),this.pendingData=[],this.appended=!0)),this.tick()}},a.onFragParsed=function(t){var e=this.fragCurrent,n=t.frag;e&&"audio"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===Ot&&(this.stats.tparsed=te.now(),this.state=Et,this._checkAppendedParsed())},a.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},a.onBufferCreated=function(t){var e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},a.onBufferAppended=function(t){if("audio"===t.parent){var e=this.state;e!==Ot&&e!==Et||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},a._checkAppendedParsed=function(){if(!(this.state!==Et||this.appended&&this.pendingBuffering)){var t=this.fragCurrent,e=this.stats,n=this.hls;if(t){this.fragPrevious=t,e.tbuffered=te.now(),n.trigger(u.default.FRAG_BUFFERED,{stats:e,frag:t,id:"audio"});var r=this.mediaBuffer?this.mediaBuffer:this.media;r&&l.logger.log("audio buffered : "+ot(r.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,n.trigger(u.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=yt}this.tick()}},a.onError=function(t){var e=t.frag;if(!e||"audio"===e.type)switch(t.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:var n=t.frag;if(n&&"audio"!==n.type)break;if(!t.fatal){var r=this.fragLoadError;r?r++:r=1;var i=this.config;if(r<=i.fragLoadingMaxRetry){this.fragLoadError=r;var o=Math.min(Math.pow(2,r-1)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);l.logger.warn("AudioStreamController: frag loading failed, retry in "+o+" ms"),this.retryDate=te.now()+o,this.state=_t}else l.logger.error("AudioStreamController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ct}break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==Ct&&(this.state=t.fatal?Ct:yt,l.logger.warn("AudioStreamController: "+t.details+" while loading frag, now switching to "+this.state+" state ..."));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===t.parent&&(this.state===Ot||this.state===Et)){var a=this.mediaBuffer,c=this.media.currentTime;if(a&&H.isBuffered(a,c)&&H.isBuffered(a,c+.5)){var f=this.config;f.maxMaxBufferLength>=f.maxBufferLength&&(f.maxMaxBufferLength/=2,l.logger.warn("AudioStreamController: reduce max buffer length to "+f.maxMaxBufferLength+"s")),this.state=yt}else l.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=St,this.hls.trigger(u.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},a.onBufferFlushed=function(){var t=this,e=this.pendingData;e&&e.length?(l.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),e.forEach((function(e){t.hls.trigger(u.default.BUFFER_APPENDING,e)})),this.appended=!0,this.pendingData=[],this.state=Et):(this.state=yt,this.fragPrevious=null,this.tick())},i=r,(o=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,l.logger.log("audio stream:"+e+"->"+t)}},get:function(){return this._state}}])&&Qt(i.prototype,o),r}(xt),ne=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var t={"":!0,lr:!0,rl:!0},e={start:!0,middle:!0,end:!0,left:!0,right:!0};function n(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function i(e,i,o){var a=this,s={enumerable:!0};a.hasBeenReset=!1;var c="",u=!1,l=e,f=i,d=o,p=null,h="",g=!0,v="auto",y="start",m=50,b="middle",_=50,w="middle";Object.defineProperty(a,"id",r({},s,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(a,"pauseOnExit",r({},s,{get:function(){return u},set:function(t){u=!!t}})),Object.defineProperty(a,"startTime",r({},s,{get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");l=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",r({},s,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",r({},s,{get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",r({},s,{get:function(){return p},set:function(t){p=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",r({},s,{get:function(){return h},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");h=n,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",r({},s,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",r({},s,{get:function(){return v},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",r({},s,{get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",r({},s,{get:function(){return m},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",r({},s,{get:function(){return b},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",r({},s,{get:function(){return _},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",r({},s,{get:function(){return w},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),a.displayState=void 0}return i.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},i}(),re=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};function ie(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new re,this.regionList=[]}function oe(){this.values=Object.create(null)}function ae(t,e,n,r){var i=r?t.split(r):[t];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);2===a.length&&e(a[0],a[1])}}oe.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var se=new ne(0,0,0),ce="middle"===se.align?"middle":"center";function ue(t,e,n){var r=t;function i(){var e=function(t){function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}(t);if(null===e)throw new Error("Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){t=t.replace(/^\s+/,"")}if(o(),e.startTime=i(),o(),"--\x3e"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),o(),e.endTime=i(),o(),function(t,e){var r=new oe;ae(t,(function(t,e){switch(t){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===e){r.set(t,n[i].region);break}break;case"vertical":r.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];r.integer(t,a),r.percent(t,a)&&r.set("snapToLines",!1),r.alt(t,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start",ce,"end"]);break;case"position":o=e.split(","),r.percent(t,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start",ce,"end","line-left","line-right","auto"]);break;case"size":r.percent(t,e);break;case"align":r.alt(t,e,["start",ce,"end","left","right"])}}),/:/,/\s/),e.region=r.get("region",null),e.vertical=r.get("vertical","");var i=r.get("line","auto");"auto"===i&&-1===se.line&&(i=-1),e.line=i,e.lineAlign=r.get("lineAlign","start"),e.snapToLines=r.get("snapToLines",!0),e.size=r.get("size",100),e.align=r.get("align",ce);var o=r.get("position","auto");"auto"===o&&50===se.position&&(o="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=o}(t,e)}function le(t){return t.replace(/<br(?: \/)?>/gi,"\n")}ie.prototype={parse:function(t){var e=this;function n(){var t=e.buffer,n=0;for(t=le(t);n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var r=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),r}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(r=n()).match(/^(ï»¿)?WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var o=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(o?o=!1:r=n(),e.state){case"HEADER":/:/.test(r)?ae(r,(function(t,e){}),/:/):r||(e.state="ID");continue;case"NOTE":r||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){e.state="NOTE";break}if(!r)continue;if(e.cue=new ne(0,0,""),e.state="CUE",-1===r.indexOf("--\x3e")){e.cue.id=r;continue}case"CUE":try{ue(r,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(o=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=r;continue;case"BADCUE":r||(e.state="ID");continue}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new Error("Malformed WebVTT signature.")}catch(t){throw t}return t.onflush&&t.onflush(),this}};var fe=ie;function de(t,e,n,r){for(var i,o,a,s,c,u=[],l=window.VTTCue||TextTrackCue,f=0;f<r.rows.length;f++)if(a=!0,s=0,c="",!(i=r.rows[f]).isEmpty()){for(var d=0;d<i.chars.length;d++)i.chars[d].uchar.match(/\s/)&&a?s++:(c+=i.chars[d].uchar,a=!1);i.cueStartTime=e,e===n&&(n+=1e-4),o=new l(e,n,le(c.trim())),s>=16?s--:s++,navigator.userAgent.match(/Firefox\//)?o.line=f+1:o.line=f>7?f-2:f+1,o.align="left",o.position=Math.max(0,Math.min(100,s/32*100)),u.push(o),t&&t.addCue(o)}return u}var pe,he={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},ge=function(t){var e=t;return he.hasOwnProperty(t)&&(e=he[t]),String.fromCharCode(e)},ve=100,ye={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},me={17:2,18:4,21:6,22:8,23:10,19:13,20:15},be={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},_e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},we=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(t){t[t.ERROR=0]="ERROR",t[t.TEXT=1]="TEXT",t[t.WARNING=2]="WARNING",t[t.INFO=2]="INFO",t[t.DEBUG=3]="DEBUG",t[t.DATA=3]="DATA"}(pe||(pe={}));var Oe=function(){function t(){this.time=null,this.verboseLevel=pe.ERROR}return t.prototype.log=function(t,e){this.verboseLevel>=t&&l.logger.log(this.time+" ["+t+"] "+e)},t}(),Ee=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].toString(16));return e},Se=function(){function t(t,e,n,r,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],n=0;n<e.length;n++){var r=e[n];t.hasOwnProperty(r)&&(this[r]=t[r])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),ke=function(){function t(t,e,n,r,i,o){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new Se(e,n,r,i,o)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),Ce=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<ve;e++)this.chars.push(new ke);this.logger=t,this.pos=0,this.currPenState=new Se}var e=t.prototype;return e.equals=function(t){for(var e=!0,n=0;n<ve;n++)if(!this.chars[n].equals(t.chars[n])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<ve;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<ve;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(pe.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>ve&&(this.logger.log(pe.DEBUG,"Too large cursor position "+this.pos),this.pos=ve)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var n=this.pos+1;n<e+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=ge(t);this.pos>=ve?this.logger.log(pe.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<ve;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,n=0;n<ve;n++){var r=this.chars[n].uchar;" "!==r&&(e=!1),t.push(r)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),Te=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<15;e++)this.rows.push(new Ce(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,n=0;n<15;n++)if(!this.rows[n].equals(t.rows[n])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(pe.INFO,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(pe.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var n=0;n<15;n++)this.rows[n].clear();var r=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var o=i.rows[r].cueStartTime,a=this.logger.time;if(o&&null!==a&&o<a)for(var s=0;s<this.nrRollUpRows;s++)this.rows[e-this.nrRollUpRows+s+1].copy(i.rows[r+s])}}this.currRow=e;var c=this.rows[this.currRow];if(null!==t.indent){var u=t.indent,l=Math.max(u-1,0);c.setCursor(t.indent),t.color=c.chars[l].penState.foreground}var f={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(f)},e.setBkgData=function(t){this.logger.log(pe.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(pe.TEXT,this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(pe.INFO,"Rolling up")}else this.logger.log(pe.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],n="",r=-1,i=0;i<15;i++){var o=this.rows[i].getTextString();o&&(r=i+1,t?e.push("Row "+r+": '"+o+"'"):e.push(o.trim()))}return e.length>0&&(n=t?"["+e.join(" | ")+"]":e.join("\n")),n},e.getTextAndFormat=function(){return this.rows},t}(),Ae=function(){function t(t,e,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Te(n),this.nonDisplayedMemory=new Te(n),this.lastOutputScreen=new Te(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(pe.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(pe.INFO,n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(pe.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(pe.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(pe.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(pe.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(pe.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(pe.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(pe.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(pe.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(pe.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(pe.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(pe.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(pe.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(pe.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(pe.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(pe.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var n=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}this.logger.log(pe.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}();function xe(t,e,n){n.a=t,n.b=e}function Le(t,e,n){return n.a===t&&n.b===e}var Pe=function(){function t(t,e,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var r=new Oe;this.channels=[null,new Ae(t,e,r),new Ae(t+1,n,r)],this.cmdHistory={a:null,b:null},this.logger=r}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var n,r,i,o=!1;this.logger.time=t;for(var a=0;a<e.length;a+=2)if(r=127&e[a],i=127&e[a+1],0!==r||0!==i){if(this.logger.log(pe.DATA,"["+Ee([e[a],e[a+1]])+"] -> ("+Ee([r,i])+")"),(n=this.parseCmd(r,i))||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),!n&&(o=this.parseChars(r,i))){var s=this.currentChannel;s&&s>0?this.channels[s].insertChars(o):this.logger.log(pe.WARNING,"No channel found yet. TEXT-MODE?")}n||o||this.logger.log(pe.WARNING,"Couldn't parse cleaned data "+Ee([r,i])+" orig: "+Ee([e[a],e[a+1]]))}},e.parseCmd=function(t,e){var n=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(Le(t,e,n))return xe(null,null,n),this.logger.log(pe.DEBUG,"Repeated command ("+Ee([t,e])+") is dropped"),!0;var r=20===t||21===t||23===t?1:2,i=this.channels[r];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),xe(t,e,n),this.currentChannel=r,!0},e.parseMidrow=function(t,e){var n=0;if((17===t||25===t)&&e>=32&&e<=47){if((n=17===t?1:2)!==this.currentChannel)return this.logger.log(pe.ERROR,"Mismatch channel in midrow parsing"),!1;var r=this.channels[n];return!!r&&(r.ccMIDROW(e),this.logger.log(pe.DEBUG,"MIDROW ("+Ee([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var n,r=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(Le(t,e,r))return xe(null,null,r),!0;var i=t<=23?1:2;n=e>=64&&e<=95?1===i?ye[t]:be[t]:1===i?me[t]:_e[t];var o=this.channels[i];return!!o&&(o.setPAC(this.interpretPAC(n,e)),xe(t,e,r),this.currentChannel=i,!0)},e.interpretPAC=function(t,e){var n,r={color:null,italics:!1,indent:null,underline:!1,row:t};return n=e>95?e-96:e-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},e.parseChars=function(t,e){var n,r=null,i=null;if(t>=25?(n=2,i=t-8):(n=1,i=t),i>=17&&i<=19){var o;o=17===i?e+80:18===i?e+112:e+144,this.logger.log(pe.INFO,"Special char '"+ge(o)+"' in channel "+n),r=[o]}else t>=32&&t<=127&&(r=0===e?[t]:[t,e]);if(r){var a=Ee(r);this.logger.log(pe.DEBUG,"Char codes =  "+a.join(",")),xe(t,e,this.cmdHistory)}return r},e.parseBackgroundAttributes=function(t,e){var n;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var r={};16===t||24===t?(n=Math.floor((e-32)/2),r.background=we[n],e%2==1&&(r.background=r.background+"_semi")):45===e?r.background="transparent":(r.foreground="black",47===e&&(r.underline=!0));var i=t<=23?1:2;return this.channels[i].setBkgData(r),xe(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var n=this.channels[e];n&&n.cueSplitAtTime(t)}},t}(),Re=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,n){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[]},t}(),Ie=function(t,e,n){return t.substr(n||0,e.length)===e},je=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return(e>>>0).toString()},De=function(t,e,n,r,i,o){var a,s=Object(Dt.utf8ArrayToStr)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),u="00:00.000",l=0,f=0,d=0,p=[],h=!0,g=!1,v=new fe;v.oncue=function(t){var e=n[r],i=n.ccOffset;e&&e.new&&(void 0!==f?i=n.ccOffset=e.start:function(t,e,n){var r=t[e],i=t[r.prevCC];if(!i||!i.new&&r.new)return t.ccOffset=t.presentationOffset=r.start,void(r.new=!1);for(;i&&i.new;)t.ccOffset+=r.start-i.start,r.new=!1,i=t[(r=i).prevCC];t.presentationOffset=n}(n,r,d)),d&&(i=d-n.presentationOffset),g&&(t.startTime+=i-f,t.endTime+=i-f),t.id=je(t.startTime.toString())+je(t.endTime.toString())+je(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),t.endTime>0&&p.push(t)},v.onparsingerror=function(t){a=t},v.onflush=function(){a&&o?o(a):i(p)},s.forEach((function(t){if(h){if(Ie(t,"X-TIMESTAMP-MAP=")){h=!1,g=!0,t.substr(16).split(",").forEach((function(t){Ie(t,"LOCAL:")?u=t.substr(6):Ie(t,"MPEGTS:")&&(l=parseInt(t.substr(7)))}));try{e+(9e4*n[r].start||0)<0&&(e+=8589934592),l-=e,f=function(t){var e=parseInt(t.substr(-3)),n=parseInt(t.substr(-6,2)),r=parseInt(t.substr(-9,2)),i=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!(Object(c.isFiniteNumber)(e)&&Object(c.isFiniteNumber)(n)&&Object(c.isFiniteNumber)(r)&&Object(c.isFiniteNumber)(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*n,(e+=6e4*r)+36e5*i}(u)/1e3,d=l/9e4}catch(t){g=!1,a=t}return}""===t&&(h=!1)}v.parse(t+"\n")})),v.flush()};function Ne(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Me(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var Fe=function(t){var e,n;function r(e){var n;if((n=t.call(this,e,u.default.MEDIA_ATTACHING,u.default.MEDIA_DETACHING,u.default.FRAG_PARSING_USERDATA,u.default.FRAG_DECRYPTED,u.default.MANIFEST_LOADING,u.default.MANIFEST_LOADED,u.default.FRAG_LOADED,u.default.INIT_PTS_FOUND)||this).media=null,n.config=void 0,n.enabled=!0,n.Cues=void 0,n.textTracks=[],n.tracks=[],n.initPTS=[],n.unparsedVttFrags=[],n.captionsTracks={},n.nonNativeCaptionsTracks={},n.captionsProperties=void 0,n.cea608Parser1=void 0,n.cea608Parser2=void 0,n.lastSn=-1,n.prevCC=-1,n.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},n.hls=e,n.config=e.config,n.Cues=e.config.cueHandler,n.captionsProperties={textTrack1:{label:n.config.captionsTextTrack1Label,languageCode:n.config.captionsTextTrack1LanguageCode},textTrack2:{label:n.config.captionsTextTrack2Label,languageCode:n.config.captionsTextTrack2LanguageCode},textTrack3:{label:n.config.captionsTextTrack3Label,languageCode:n.config.captionsTextTrack3LanguageCode},textTrack4:{label:n.config.captionsTextTrack4Label,languageCode:n.config.captionsTextTrack4LanguageCode}},n.config.enableCEA708Captions){var r=new Re(Ne(n),"textTrack1"),i=new Re(Ne(n),"textTrack2"),o=new Re(Ne(n),"textTrack3"),a=new Re(Ne(n),"textTrack4");n.cea608Parser1=new Pe(1,r,i),n.cea608Parser2=new Pe(3,o,a)}return n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.addCues=function(t,e,n,r,i){for(var o,a,s,c,l=!1,f=i.length;f--;){var d=i[f],p=(o=d[0],a=d[1],s=e,c=n,Math.min(a,c)-Math.max(o,s));if(p>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],n),l=!0,p/(n-e)>.5))return}if(l||i.push([e,n]),this.config.renderTextTracksNatively)this.Cues.newCue(this.captionsTracks[t],e,n,r);else{var h=this.Cues.newCue(null,e,n,r);this.hls.trigger(u.default.CUES_PARSED,{type:"captions",cues:h,track:t})}},i.onInitPtsFound=function(t){var e=this,n=t.frag,r=t.id,i=t.initPTS,o=this.unparsedVttFrags;"main"===r&&(this.initPTS[n.cc]=i),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){e.onFragLoaded(t)})))},i.getExistingTrack=function(t){var e=this.media;if(e)for(var n=0;n<e.textTracks.length;n++){var r=e.textTracks[n];if(r[t])return r}return null},i.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},i.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,n=this.captionsTracks,r=this.media,i=e[t],o=i.label,a=i.languageCode,s=this.getExistingTrack(t);if(s)n[t]=s,Mt(n[t]),Nt(n[t],r);else{var c=this.createTextTrack("captions",o,a);c&&(c[t]=!0,n[t]=c)}}},i.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var n={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=n,this.hls.trigger(u.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}}},i.createTextTrack=function(t,e,n){var r=this.media;if(r)return r.addTextTrack(t,e,n)},i.destroy=function(){t.prototype.destroy.call(this)},i.onMediaAttaching=function(t){this.media=t.media,this._cleanTracks()},i.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Mt(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={}},i._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var n=0;n<e.length;n++)Mt(e[n])}},i.onManifestLoaded=function(t){var e=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset()),this.config.enableWebVTT){var n=t.subtitles||[],r=this.tracks&&n&&this.tracks.length===n.length;if(this.tracks=t.subtitles||[],this.config.renderTextTracksNatively){var i=this.media?this.media.textTracks:[];this.tracks.forEach((function(t,n){var r;if(n<i.length){for(var o=null,a=0;a<i.length;a++)if(Me(i[a],t)){o=i[a];break}o&&(r=o)}r||(r=e.createTextTrack("subtitles",t.name,t.lang)),t.default?r.mode=e.hls.subtitleDisplay?"showing":"hidden":r.mode="disabled",e.textTracks.push(r)}))}else if(!r&&this.tracks&&this.tracks.length){var o=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(u.default.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(t){var n=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(n){var r="textTrack"+n[1],i=e.captionsProperties[r];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}}))},i.onFragLoaded=function(t){var e=t.frag,n=t.payload,r=this.cea608Parser1,i=this.cea608Parser2,o=this.initPTS,a=this.lastSn,s=this.unparsedVttFrags;if("main"===e.type){var l=e.sn;e.sn!==a+1&&r&&i&&(r.reset(),i.reset()),this.lastSn=l}else if("subtitle"===e.type)if(n.byteLength){if(!Object(c.isFiniteNumber)(o[e.cc]))return s.push(t),void(o.length&&this.hls.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e}));var f=e.decryptdata;null!=f&&null!=f.key&&"AES-128"===f.method||this._parseVTTs(e,n)}else this.hls.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})},i._parseVTTs=function(t,e){var n=this,r=this.hls,i=this.prevCC,o=this.textTracks,a=this.vttCCs;a[t.cc]||(a[t.cc]={start:t.start,prevCC:i,new:!0},this.prevCC=t.cc),De(e,this.initPTS[t.cc],a,t.cc,(function(e){if(n.config.renderTextTracksNatively){var i=o[t.level];if("disabled"===i.mode)return void r.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t});e.forEach((function(t){if(!i.cues.getCueById(t.id))try{if(i.addCue(t),!i.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(n){l.logger.debug("Failed occurred on adding cues: "+n);var e=new window.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,i.addCue(e)}}))}else{var a=n.tracks[t.level].default?"default":"subtitles"+t.level;r.trigger(u.default.CUES_PARSED,{type:"subtitles",cues:e,track:a})}r.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){l.logger.log("Failed to parse VTT cue: "+e),r.trigger(u.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})}))},i.onFragDecrypted=function(t){var e=t.frag,n=t.payload;if("subtitle"===e.type){if(!Object(c.isFiniteNumber)(this.initPTS[e.cc]))return void this.unparsedVttFrags.push(t);this._parseVTTs(e,n)}},i.onFragParsingUserdata=function(t){var e=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&e&&n)for(var r=0;r<t.samples.length;r++){var i=t.samples[r].bytes;if(i){var o=this.extractCea608Data(i);e.addData(t.samples[r].pts,o[0]),n.addData(t.samples[r].pts,o[1])}}},i.extractCea608Data=function(t){for(var e=31&t[0],n=2,r=[[],[]],i=0;i<e;i++){var o=t[n++],a=127&t[n++],s=127&t[n++],c=3&o;0===a&&0===s||0!=(4&o)&&(0!==c&&1!==c||(r[c].push(a),r[c].push(s)))}return r},r}(d);function Be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ue(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];"subtitles"===r.kind&&r.label&&e.push(t[n])}return e}var $e,qe=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.MANIFEST_LOADED,u.default.SUBTITLE_TRACK_LOADED)||this).tracks=[],n.trackId=-1,n.media=null,n.stopped=!0,n.subtitleDisplay=!0,n.queuedDefaultTrack=null,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.destroy=function(){d.prototype.destroy.call(this)},a.onMediaAttached=function(t){var e=this;this.media=t.media,this.media&&(Object(c.isFiniteNumber)(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){e.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},a.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),Object(c.isFiniteNumber)(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Ue(this.media.textTracks).forEach((function(t){Mt(t)})),this.subtitleTrack=-1,this.media=null)},a.onManifestLoaded=function(t){var e=this,n=t.subtitles||[];this.tracks=n,this.hls.trigger(u.default.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:n}),n.forEach((function(t){t.default&&(e.media?e.subtitleTrack=t.id:e.queuedDefaultTrack=t.id)}))},a.onSubtitleTrackLoaded=function(t){var e=this,n=t.id,r=t.details,i=this.trackId,o=this.tracks,a=o[i];if(n>=o.length||n!==i||!a||this.stopped)this._clearReloadTimer();else if(l.logger.log("subtitle track "+n+" loaded"),r.live){var s=it(a.details,r,t.stats.trequest);l.logger.log("Reloading live subtitle playlist in "+s+"ms"),this.timer=setTimeout((function(){e._loadCurrentTrack()}),s)}else this._clearReloadTimer()},a.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},a.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},a._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},a._loadCurrentTrack=function(){var t=this.trackId,e=this.tracks,n=this.hls,r=e[t];t<0||!r||r.details&&!r.details.live||(l.logger.log("Loading subtitle track "+t),n.trigger(u.default.SUBTITLE_TRACK_LOADING,{url:r.url,id:t}))},a._toggleTrackModes=function(t){var e=this.media,n=this.subtitleDisplay,r=this.trackId;if(e){var i=Ue(e.textTracks);if(-1===t)[].slice.call(i).forEach((function(t){t.mode="disabled"}));else{var o=i[r];o&&(o.mode="disabled")}var a=i[t];a&&(a.mode=n?"showing":"hidden")}},a._setSubtitleTrackInternal=function(t){var e=this.hls,n=this.tracks;!Object(c.isFiniteNumber)(t)||t<-1||t>=n.length||(this.trackId=t,l.logger.log("Switching to subtitle track "+t),e.trigger(u.default.SUBTITLE_TRACK_SWITCH,{id:t}),this._loadCurrentTrack())},a._onTextTracksChanged=function(){if(this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=Ue(this.media.textTracks),n=0;n<e.length;n++)if("hidden"===e[n].mode)t=n;else if("showing"===e[n].mode){t=n;break}this.subtitleTrack=t}},i=r,(o=[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&(this._toggleTrackModes(t),this._setSubtitleTrackInternal(t))}}])&&Be(i.prototype,o),r}(d),He=n("./src/crypt/decrypter.js"),Ge=window.performance,ze=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHING,u.default.ERROR,u.default.KEY_LOADED,u.default.FRAG_LOADED,u.default.SUBTITLE_TRACKS_UPDATED,u.default.SUBTITLE_TRACK_SWITCH,u.default.SUBTITLE_TRACK_LOADED,u.default.SUBTITLE_FRAG_PROCESSED,u.default.LEVEL_UPDATED)||this).fragmentTracker=n,r.config=e.config,r.state=gt,r.tracks=[],r.tracksBuffered=[],r.currentTrackId=-1,r.decrypter=new He.default(e,e.config),r.lastAVStart=0,r._onMediaSeeking=r.onMediaSeeking.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r)),r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.onSubtitleFragProcessed=function(t){var e=t.frag,n=t.success;if(this.fragPrevious=e,this.state=yt,n){var r=this.tracksBuffered[this.currentTrackId];if(r){for(var i,o=e.start,a=0;a<r.length;a++)if(o>=r[a].start&&o<=r[a].end){i=r[a];break}var s=e.start+e.duration;i?i.end=s:(i={start:o,end:s},r.push(i))}}},i.onMediaAttached=function(t){var e=t.media;this.media=e,e.addEventListener("seeking",this._onMediaSeeking),this.state=yt},i.onMediaDetaching=function(){var t=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach((function(e){t.tracksBuffered[e.id]=[]})),this.media=null,this.state=gt)},i.onError=function(t){var e=t.frag;e&&"subtitle"===e.type&&(this.state=yt)},i.onSubtitleTracksUpdated=function(t){var e=this;l.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=t.subtitleTracks,this.tracks.forEach((function(t){e.tracksBuffered[t.id]=[]}))},i.onSubtitleTrackSwitch=function(t){if(this.currentTrackId=t.id,this.tracks&&this.tracks.length&&-1!==this.currentTrackId){var e=this.tracks[this.currentTrackId];e&&e.details&&this.setInterval(500)}else this.clearInterval()},i.onSubtitleTrackLoaded=function(t){var e=t.id,n=t.details,r=this.currentTrackId,i=this.tracks,o=i[r];e>=i.length||e!==r||!o||(n.live&&function(t,e,n){void 0===n&&(n=0);var r=-1;rt(t,e,(function(t,e,n){e.start=t.start,r=n}));var i=e.fragments;if(r<0)i.forEach((function(t){t.start+=n}));else for(var o=r+1;o<i.length;o++)i[o].start=i[o-1].start+i[o-1].duration}(o.details,n,this.lastAVStart),o.details=n,this.setInterval(500))},i.onKeyLoaded=function(){this.state===mt&&(this.state=yt)},i.onFragLoaded=function(t){var e=this.fragCurrent,n=t.frag.decryptdata,r=t.frag,i=this.hls;if(this.state===bt&&e&&"subtitle"===t.frag.type&&e.sn===t.frag.sn&&t.payload.byteLength>0&&n&&n.key&&"AES-128"===n.method){var o=Ge.now();this.decrypter.decrypt(t.payload,n.key.buffer,n.iv.buffer,(function(t){var e=Ge.now();i.trigger(u.default.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:o,tdecrypt:e}})}))}},i.onLevelUpdated=function(t){var e=t.details.fragments;this.lastAVStart=e.length?e[0].start:0},i.doTick=function(){if(this.media)switch(this.state){case yt:var t=this.config,e=this.currentTrackId,n=this.fragmentTracker,r=this.media,i=this.tracks;if(!i||!i[e]||!i[e].details)break;var o,a=t.maxBufferHole,s=t.maxFragLookUpTolerance,c=Math.min(t.maxBufferLength,t.maxMaxBufferLength),f=H.bufferedInfo(this._getBuffered(),r.currentTime,a),d=f.end,p=f.len,h=i[e].details,g=h.fragments,v=g.length,y=g[v-1].start+g[v-1].duration;if(p>c)return;var m=this.fragPrevious;d<y?(m&&h.hasProgramDateTime&&(o=ct(g,m.endProgramDateTime,s)),o||(o=ut(m,g,d,s))):o=g[v-1],o&&o.encrypted?(l.logger.log("Loading key for "+o.sn),this.state=mt,this.hls.trigger(u.default.KEY_LOADING,{frag:o})):o&&n.getState(o)===M&&(this.fragCurrent=o,this.state=bt,this.hls.trigger(u.default.FRAG_LOADING,{frag:o}))}else this.state=yt},i.stopLoad=function(){this.lastAVStart=0,t.prototype.stopLoad.call(this)},i._getBuffered=function(){return this.tracksBuffered[this.currentTrackId]||[]},i.onMediaSeeking=function(){this.fragPrevious=null},r}(xt);!function(t){t.WIDEVINE="com.widevine.alpha",t.PLAYREADY="com.microsoft.playready"}($e||($e={}));var Ve="undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null;function Ke(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var We=function(t){var e,n;function r(e){var n;return(n=t.call(this,e,u.default.MEDIA_ATTACHED,u.default.MEDIA_DETACHED,u.default.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,n._licenseXhrSetup=void 0,n._emeEnabled=void 0,n._requestMediaKeySystemAccess=void 0,n._drmSystemOptions=void 0,n._config=void 0,n._mediaKeysList=[],n._media=null,n._hasSetMediaKeys=!1,n._requestLicenseFailureCount=0,n.mediaKeysPromise=null,n._onMediaEncrypted=function(t){if(l.logger.log('Media is encrypted using "'+t.initDataType+'" init data type'),!n.mediaKeysPromise)return l.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void n.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});var e=function(e){n._media&&(n._attemptSetMediaKeys(e),n._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};n.mediaKeysPromise.then(e).catch(e)},n._config=e.config,n._widevineLicenseUrl=n._config.widevineLicenseUrl,n._licenseXhrSetup=n._config.licenseXhrSetup,n._emeEnabled=n._config.emeEnabled,n._requestMediaKeySystemAccess=n._config.requestMediaKeySystemAccessFunc,n._drmSystemOptions=e.config.drmSystemOptions,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i,o,a=r.prototype;return a.getLicenseServerUrl=function(t){switch(t){case $e.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},a._attemptKeySystemAccess=function(t,e,n){var r=this,i=function(t,e,n,r){if(t===$e.WIDEVINE)return function(t,e,n){var r={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){r.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:n.audioRobustness||""})})),e.forEach((function(t){r.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:n.videoRobustness||""})})),[r]}(e,n,r);throw new Error("Unknown key-system: "+t)}(t,e,n,this._drmSystemOptions);l.logger.log("Requesting encrypted media key-system access");var o=this.requestMediaKeySystemAccess(t,i);this.mediaKeysPromise=o.then((function(e){return r._onMediaKeySystemAccessObtained(t,e)})),o.catch((function(e){l.logger.error('Failed to obtain key-system "'+t+'" access:',e)}))},a._onMediaKeySystemAccessObtained=function(t,e){var n=this;l.logger.log('Access for key-system "'+t+'" obtained');var r={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(r);var i=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return r.mediaKeys=e,l.logger.log('Media-keys created for key-system "'+t+'"'),n._onMediaKeysCreated(),e}));return i.catch((function(t){l.logger.error("Failed to create media-keys:",t)})),i},a._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},a._onNewMediaKeySession=function(t){var e=this;l.logger.log("New key-system session "+t.sessionId),t.addEventListener("message",(function(n){e._onKeySessionMessage(t,n.message)}),!1)},a._onKeySessionMessage=function(t,e){l.logger.log("Got EME message event, creating license request"),this._requestLicense(e,(function(e){l.logger.log("Received license data (length: "+(e?e.byteLength:e)+"), updating key-session"),t.update(e)}))},a._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return l.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});l.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},a._generateRequestWithPreferredKeySession=function(t,e){var n=this,r=this._mediaKeysList[0];if(!r)return l.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(r.mediaKeysSessionInitialized)l.logger.warn("Key-Session already initialized but requested again");else{var i=r.mediaKeysSession;if(!i)return l.logger.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return l.logger.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});l.logger.log('Generating key-session request for "'+t+'" init data type'),r.mediaKeysSessionInitialized=!0,i.generateRequest(t,e).then((function(){l.logger.debug("Key-session generation succeeded")})).catch((function(t){l.logger.error("Error generating key-session request:",t),n.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},a._createLicenseXhr=function(t,e,n){var r=new XMLHttpRequest,i=this._licenseXhrSetup;try{if(i)try{i(r,t)}catch(e){r.open("POST",t,!0),i(r,t)}r.readyState||r.open("POST",t,!0)}catch(t){throw new Error("issue setting up KeySystem license XHR "+t)}return r.responseType="arraybuffer",r.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,r,t,e,n),r},a._onLicenseRequestReadyStageChange=function(t,e,n,r){if(4===t.readyState)if(200===t.status)this._requestLicenseFailureCount=0,l.logger.log("License request succeeded"),"arraybuffer"!==t.responseType&&l.logger.warn("xhr response type was not set to the expected arraybuffer for license request"),r(t.response);else{if(l.logger.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});var i=3-this._requestLicenseFailureCount+1;l.logger.warn("Retrying license request, "+i+" attempts left"),this._requestLicense(n,r)}},a._generateLicenseRequestChallenge=function(t,e){if(t.mediaKeySystemDomain===$e.WIDEVINE)return e;throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},a._requestLicense=function(t,e){l.logger.log("Requesting content license for key-system");var n=this._mediaKeysList[0];if(!n)return l.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var r=this.getLicenseServerUrl(n.mediaKeySystemDomain),i=this._createLicenseXhr(r,t,e);l.logger.log("Sending license request to URL: "+r);var o=this._generateLicenseRequestChallenge(n,t);i.send(o)}catch(t){l.logger.error("Failure requesting DRM license: "+t),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.KEY_SYSTEM_ERROR,details:s.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(t){if(this._emeEnabled){var e=t.media;this._media=e,e.addEventListener("encrypted",this._onMediaEncrypted)}},a.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},a.onManifestParsed=function(t){if(this._emeEnabled){var e=t.levels.map((function(t){return t.audioCodec})),n=t.levels.map((function(t){return t.videoCodec}));this._attemptKeySystemAccess($e.WIDEVINE,e,n)}},i=r,(o=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&Ke(i.prototype,o),r}(d);function Ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(n),!0).forEach((function(e){Ze(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Je=Xe(Xe({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Xt,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:Ht,bufferController:zt,capLevelController:Kt,fpsController:Yt,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:Ve,testBandwidth:!0},{cueHandler:r,enableCEA708Captions:!0,enableWebVTT:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:ze,subtitleTrackController:qe,timelineController:Fe,audioStreamController:ee,audioTrackController:Jt,emeController:We});function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function on(t,e,n){return e&&rn(t.prototype,e),n&&rn(t,n),t}var an=function(t){var e,n;function r(e){var n;void 0===e&&(e={}),(n=t.call(this)||this).config=void 0,n._autoLevelCapping=void 0,n.abrController=void 0,n.capLevelController=void 0,n.levelController=void 0,n.streamController=void 0,n.networkControllers=void 0,n.audioTrackController=void 0,n.subtitleTrackController=void 0,n.emeController=void 0,n.coreComponents=void 0,n.media=null,n.url=null;var i=r.DefaultConfig;if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");n.config=tn(tn({},i),e);var o=nn(n).config;if(void 0!==o.liveMaxLatencyDurationCount&&o.liveMaxLatencyDurationCount<=o.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==o.liveMaxLatencyDuration&&(void 0===o.liveSyncDuration||o.liveMaxLatencyDuration<=o.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(l.enableLogs)(o.debug),n._autoLevelCapping=-1;var a=n.abrController=new o.abrController(nn(n)),s=new o.bufferController(nn(n)),c=n.capLevelController=new o.capLevelController(nn(n)),u=new o.fpsController(nn(n)),f=new j(nn(n)),d=new D(nn(n)),p=new N(nn(n)),h=new Ft(nn(n)),g=n.levelController=new jt(nn(n)),v=new $(nn(n)),y=[g,n.streamController=new Rt(nn(n),v)],m=o.audioStreamController;m&&y.push(new m(nn(n),v)),n.networkControllers=y;var b=[f,d,p,a,s,c,u,h,v];if(m=o.audioTrackController){var _=new m(nn(n));n.audioTrackController=_,b.push(_)}if(m=o.subtitleTrackController){var w=new m(nn(n));n.subtitleTrackController=w,y.push(w)}if(m=o.emeController){var O=new m(nn(n));n.emeController=O,b.push(O)}return(m=o.subtitleStreamController)&&y.push(new m(nn(n),v)),(m=o.timelineController)&&b.push(new m(nn(n))),n.coreComponents=b,n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.isSupported=function(){return function(){var t=K();if(!t)return!1;var e=self.SourceBuffer||self.WebKitSourceBuffer,n=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!n&&!!r}()},on(r,null,[{key:"version",get:function(){return"0.14.12"}},{key:"Events",get:function(){return u.default}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return r.defaultConfig?r.defaultConfig:Je},set:function(t){r.defaultConfig=t}}]);var i=r.prototype;return i.destroy=function(){l.logger.log("destroy"),this.trigger(u.default.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(t){t.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1},i.attachMedia=function(t){l.logger.log("attachMedia"),this.media=t,this.trigger(u.default.MEDIA_ATTACHING,{media:t})},i.detachMedia=function(){l.logger.log("detachMedia"),this.trigger(u.default.MEDIA_DETACHING),this.media=null},i.loadSource=function(t){t=a.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),l.logger.log("loadSource:"+t),this.url=t,this.trigger(u.default.MANIFEST_LOADING,{url:t})},i.startLoad=function(t){void 0===t&&(t=-1),l.logger.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},i.stopLoad=function(){l.logger.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},i.swapAudioCodec=function(){l.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},i.recoverMediaError=function(){l.logger.log("recoverMediaError");var t=this.media;this.detachMedia(),t&&this.attachMedia(t)},i.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},on(r,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){l.logger.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){l.logger.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){l.logger.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){l.logger.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){l.logger.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){l.logger.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"bandwidthEstimate",get:function(){var t=this.abrController._bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this.levels,e=this.config.minAutoBitrate,n=t?t.length:0,r=0;r<n;r++)if((t[r].realBitrate?Math.max(t[r].realBitrate,t[r].bitrate):t[r].bitrate)>e)return r;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),r}(Y);an.defaultConfig=void 0},"./src/polyfills/number.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isFiniteNumber",(function(){return r})),n.d(e,"MAX_SAFE_INTEGER",(function(){return i}));var r=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},i=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/utils/get-self-scope.js":function(t,e,n){"use strict";function r(){return"undefined"==typeof window?self:window}n.r(e),n.d(e,"getSelfScope",(function(){return r}))},"./src/utils/logger.js":function(t,e,n){"use strict";n.r(e),n.d(e,"enableLogs",(function(){return l})),n.d(e,"logger",(function(){return f}));var r=n("./src/utils/get-self-scope.js");function i(){}var o={trace:i,debug:i,log:i,warn:i,info:i,error:i},a=o;function s(t,e){return"["+t+"] > "+e}var c=Object(r.getSelfScope)();function u(t){var e=c.console[t];return e?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r[0]&&(r[0]=s(t,r[0])),e.apply(c.console,r)}:i}var l=function(t){if(c.console&&!0===t||"object"==typeof t){!function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];n.forEach((function(e){a[e]=t[e]?t[e].bind(t):u(e)}))}(t,"debug","log","info","warn","error");try{a.log()}catch(t){a=o}}else a=o},f=a}}).default},t.exports=r())},function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}n.d(e,"a",(function(){return $t}));var i=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},a=/%2C/g,s=function(t){return encodeURIComponent(t).replace(i,o).replace(a,",")};function c(t){try{return decodeURIComponent(t)}catch(t){}return t}var u=function(t){return null==t||"object"==typeof t?t:String(t)};function l(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function f(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return s(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(s(e)):r.push(s(e)+"="+s(t)))})),r.join("&")}return s(e)+"="+s(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function p(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=h(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,i),matched:t?v(t):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function h(t){if(Array.isArray(t))return t.map(h);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=h(t[n]);return e}return t}var g=p(null,{path:"/"});function v(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||f)(r)+i}function m(t,e,n){return e===g?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&b(t.query,e.query)):!(!t.name||!e.name)&&t.name===e.name&&(n||t.hash===e.hash&&b(t.query,e.query)&&b(t.params,e.params)))}function b(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var a=e[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?b(o,a):String(o)===String(a)}))}function _(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,c=n.name,u=o.$route,l=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;o&&o._routerRoot!==o;){var p=o.$vnode?o.$vnode.data:{};p.routerView&&f++,p.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=f,d){var h=l[c],g=h&&h.component;return g?(h.configProps&&O(g,a,h.route,h.configProps),s(g,a,i)):s()}var v=u.matched[f],y=v&&v.components[c];if(!v||!y)return l[c]=null,s();l[c]={component:y},a.registerRouteInstance=function(t,e){var n=v.instances[c];(e&&n!==t||!e&&n===t)&&(v.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[c]&&(v.instances[c]=t.componentInstance),_(u)};var m=v.props&&v.props[c];return m&&(r(l[c],{route:u,configProps:m}),O(y,a,u,m)),s(y,a,i)}};function O(t,e,n,i){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,i);if(o){o=e.props=r({},o);var a=e.attrs=e.attrs||{};for(var s in o)t.props&&s in t.props||(a[s]=o[s],delete o[s])}}function E(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function S(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var k=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=function t(e,n,r){return k(n)||(r=n||r,n=[]),r=r||{},e instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return N(t,e)}(e,n):k(e)?function(e,n,r){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n,r).source);return N(new RegExp("(?:"+i.join("|")+")",M(r)),n)}(e,n,r):function(t,e,n){return F(P(t,n),e,n)}(e,n,r)},T=P,A=I,x=F,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function P(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=L.exec(t));){var c=n[0],u=n[1],l=n.index;if(a+=t.slice(o,l),o=l+c.length,u)a+=u[1];else{var f=t[o],d=n[2],p=n[3],h=n[4],g=n[5],v=n[6],y=n[7];a&&(r.push(a),a="");var m=null!=d&&null!=f&&f!==d,b="+"===v||"*"===v,_="?"===v||"*"===v,w=n[2]||s,O=h||g;r.push({name:p||i++,prefix:d||"",delimiter:w,optional:_,repeat:b,partial:m,asterisk:!!y,pattern:O?D(O):y?".*":"[^"+j(w)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function R(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function I(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",M(e)));return function(e,r){for(var i="",o=e||{},a=(r||{}).pretty?R:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!=typeof c){var u,l=o[c.name];if(null==l){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(k(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<l.length;f++){if(u=a(l[f]),!n[s].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===f?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?encodeURI(l).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(l),!n[s].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');i+=c.prefix+u}}else i+=c}return i}}function j(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function N(t,e){return t.keys=e,t}function M(t){return t&&t.sensitive?"":"i"}function F(t,e,n){k(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)o+=j(s);else{var c=j(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+c+u+")*"),o+=u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")"}}var l=j(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",N(new RegExp("^"+o,M(n)),e)}C.parse=T,C.compile=function(t,e){return I(P(t,e),e)},C.tokensToFunction=A,C.tokensToRegExp=x;var B=Object.create(null);function U(t,e,n){e=e||{};try{var r=B[t]||(B[t]=C.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function $(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var a=(o=r({},t)).params;return a&&"object"==typeof a&&(o.params=r({},a)),o}if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var s=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=s;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=U(c,s,e.path)}return o}var f=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",p=f.path?E(f.path,d,n||o.append):d,h=function(t,e,n){void 0===e&&(e={});var r,i=n||l;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(u):u(a)}return r}(f.query,o.query,i&&i.options.parseQuery),g=o.hash||f.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:p,query:h,hash:g}}var q,H=function(){},G={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,c=o.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,g=null==f?"router-link-exact-active":f,v=null==this.activeClass?h:this.activeClass,y=null==this.exactActiveClass?g:this.exactActiveClass,b=s.redirectedFrom?p(null,$(s.redirectedFrom),null,n):s;u[y]=m(i,b,this.exactPath),u[v]=this.exact||this.exactPath?u[y]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,b);var _=u[y]?this.ariaCurrentValue:null,w=function(t){z(t)&&(e.replace?n.replace(a,H):n.push(a,H))},O={click:z};Array.isArray(this.event)?this.event.forEach((function(t){O[t]=w})):O[this.event]=w;var E={class:u},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:w,isActive:u[v],isExactActive:u[y]});if(S){if(1===S.length)return S[0];if(S.length>1||!S.length)return 0===S.length?t():t("span",{},S)}if("a"===this.tag)E.on=O,E.attrs={href:c,"aria-current":_};else{var k=function t(e){if(e)for(var n,r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(k){k.isStatic=!1;var C=k.data=r({},k.data);for(var T in C.on=C.on||{},C.on){var A=C.on[T];T in O&&(C.on[T]=Array.isArray(A)?A:[A])}for(var x in O)x in C.on?C.on[x].push(O[x]):C.on[x]=w;var L=k.data.attrs=r({},k.data.attrs);L.href=c,L["aria-current"]=_}else E.on=O}return t(this.tag,E,this.$slots.default)}};function z(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var V="undefined"!=typeof window;function K(t,e,n,r,i){var o=e||[],a=n||Object.create(null),s=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,a){var s=i.path,c=i.name,u=i.pathToRegexpOptions||{},l=function(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:S(e.path+"/"+t)}(s,o,u.strict);"boolean"==typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var f={path:l,regex:W(l,u),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var o=a?S(a+"/"+i.path):void 0;t(e,n,r,i,f,o)})),n[f.path]||(e.push(f.path),n[f.path]=f),void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],p=0;p<d.length;++p){var h={path:d[p],children:i.children};t(e,n,r,h,o,f.path||"/")}c&&(r[c]||(r[c]=f))}(o,a,s,t,i)}));for(var c=0,u=o.length;c<u;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),u--,c--);return{pathList:o,pathMap:a,nameMap:s}}function W(t,e){return C(t,[],e)}function Y(t,e){var n=K(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var c=$(t,n,!1,e),u=c.name;if(u){var l=o[u];if(!l)return s(null,c);var f=l.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof c.params&&(c.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in c.params)&&f.indexOf(d)>-1&&(c.params[d]=n.params[d]);return c.path=U(l.path,c.params),s(l,c,a)}if(c.path){c.params={};for(var p=0;p<r.length;p++){var h=r[p],g=i[h];if(X(g.regex,c.path,c.params))return s(g,c,a)}}return s(null,c)}function s(t,n,r){return t&&t.redirect?function(t,n){var r=t.redirect,i="function"==typeof r?r(p(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return s(null,n);var c=i,u=c.name,l=c.path,f=n.query,d=n.hash,h=n.params;return f=c.hasOwnProperty("query")?c.query:f,d=c.hasOwnProperty("hash")?c.hash:d,h=c.hasOwnProperty("params")?c.params:h,u?(o[u],a({_normalized:!0,name:u,query:f,hash:d,params:h},void 0,n)):l?a({_normalized:!0,path:U(function(t,e){return E(t,e.parent?e.parent.path:"/",!0)}(l,t),h),query:f,hash:d},void 0,n):s(null,n)}(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:U(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,s(o,e)}return s(null,e)}(0,n,t.matchAs):p(t,n,r,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;K([e||t],r,i,o,n),n&&n.alias.length&&K(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){K(t,r,i,o)}}}function X(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1];a&&(n[a.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var Z=V&&window.performance&&window.performance.now?window.performance:Date;function J(){return Z.now().toFixed(3)}var Q=J();function tt(){return Q}function et(t){return Q=t}var nt=Object.create(null);function rt(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=tt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",at),function(){window.removeEventListener("popstate",at)}}function it(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=tt();if(t)return nt[t]}(),a=i.call(t,e,n,r?o:null);a&&("function"==typeof a.then?a.then((function(t){ft(t,o)})).catch((function(t){})):ft(a,o))}))}}function ot(){var t=tt();t&&(nt[t]={x:window.pageXOffset,y:window.pageYOffset})}function at(t){ot(),t.state&&t.state.key&&et(t.state.key)}function st(t){return ut(t.x)||ut(t.y)}function ct(t){return{x:ut(t.x)?t.x:window.pageXOffset,y:ut(t.y)?t.y:window.pageYOffset}}function ut(t){return"number"==typeof t}var lt=/^#\d/;function ft(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=lt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ut((n=o).x)?n.x:0,y:ut(n.y)?n.y:0})}else st(t)&&(e=ct(t))}else r&&st(t)&&(e=ct(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var dt,pt=V&&(-1===(dt=window.navigator.userAgent).indexOf("Android 2.")&&-1===dt.indexOf("Android 4.0")||-1===dt.indexOf("Mobile Safari")||-1!==dt.indexOf("Chrome")||-1!==dt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState;function ht(t,e){ot();var n=window.history;try{if(e){var i=r({},n.state);i.key=tt(),n.replaceState(i,"",t)}else n.pushState({key:et(J())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function gt(t){ht(t,!0)}var vt={redirected:2,aborted:4,cancelled:8,duplicated:16};function yt(t,e){return mt(t,e,vt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function mt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var bt=["params","query","hash"];function _t(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function wt(t,e){return _t(t)&&t._isRouter&&(null==e||t.type===e)}function Ot(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Et(t,e){return St(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function St(t){return Array.prototype.concat.apply([],t)}var kt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ct(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Tt=function(t,e){this.router=t,this.base=function(t){if(!t)if(V){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}(e),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function At(t,e,n,r){var i=Et(t,(function(t,r,i,o){var a=function(t,e){return"function"!=typeof t&&(t=q.extend(t)),t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return St(r?i.reverse():i)}function xt(t,e){if(e)return function(){return t.apply(e,arguments)}}Tt.prototype.listen=function(t){this.cb=t},Tt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Tt.prototype.onError=function(t){this.errorCbs.push(t)},Tt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(wt(t,vt.redirected)&&o===g||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Tt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,a,s=function(t){!wt(t)&&_t(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=i.matched.length-1;if(m(t,i)&&c===u&&t.matched[c]===i.matched[u])return this.ensureURL(),t.hash&&it(this.router,i,t,!1),s(((a=mt(o=i,t,vt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var l=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),f=l.updated,d=l.deactivated,p=l.activated,h=[].concat(function(t){return At(t,"beforeRouteLeave",xt,!0)}(d),this.router.beforeHooks,function(t){return At(t,"beforeRouteUpdate",xt)}(f),p.map((function(t){return t.beforeEnter})),function(t){return function(e,n,r){var i=!1,o=0,a=null;Et(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var c,u=Ct((function(e){var i;((i=e).__esModule||kt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:q.extend(e),n.components[s]=e,--o<=0&&r()})),l=Ct((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=_t(t)?t:new Error(e),r(a))}));try{c=t(u,l)}catch(t){l(t)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}})),i||r()}}(p)),g=function(e,n){if(r.pending!==t)return s(yt(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),s(function(t,e){return mt(t,e,vt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):_t(e)?(r.ensureURL(!0),s(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(s(function(t,e){return mt(t,e,vt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return bt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){s(t)}};Ot(h,g,(function(){Ot(function(t){return At(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(p).concat(r.router.resolveHooks),g,(function(){if(r.pending!==t)return s(yt(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){_(t)}))}))}))},Tt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Tt.prototype.setupListeners=function(){},Tt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=g,this.pending=null};var Lt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=Pt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=pt&&n;r&&this.listeners.push(rt());var i=function(){var n=t.current,i=Pt(t.base);t.current===g&&i===t._startLocation||t.transitionTo(i,(function(t){r&&it(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){ht(S(r.base+t.fullPath)),it(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(S(r.base+t.fullPath)),it(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Pt(this.base)!==this.current.fullPath){var e=S(this.base+this.current.fullPath);t?ht(e):gt(e)}},e.prototype.getCurrentLocation=function(){return Pt(this.base)},e}(Tt);function Pt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(S(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Rt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Pt(t);if(!/^\/#/.test(e))return window.location.replace(S(t+"/#"+e)),!0}(this.base)||It()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=pt&&e;n&&this.listeners.push(rt());var r=function(){var e=t.current;It()&&t.transitionTo(jt(),(function(r){n&&it(t.router,r,e,!0),pt||Mt(r.fullPath)}))},i=pt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Nt(t.fullPath),it(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Mt(t.fullPath),it(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;jt()!==e&&(t?Nt(e):Mt(e))},e.prototype.getCurrentLocation=function(){return jt()},e}(Tt);function It(){var t=jt();return"/"===t.charAt(0)||(Mt("/"+t),!1)}function jt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Dt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Nt(t){pt?ht(Dt(t)):window.location.hash=t}function Mt(t){pt?gt(Dt(t)):window.location.replace(Dt(t))}var Ft=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){wt(t,vt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Tt),Bt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Y(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!pt&&!1!==t.fallback,this.fallback&&(e="hash"),V||(e="abstract"),this.mode=e,e){case"history":this.history=new Lt(this,t.base);break;case"hash":this.history=new Rt(this,t.base,this.fallback);break;case"abstract":this.history=new Ft(this,t.base)}},Ut={currentRoute:{configurable:!0}};Bt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ut.currentRoute.get=function(){return this.history&&this.history.current},Bt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Lt||n instanceof Rt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;pt&&i&&"fullPath"in t&&it(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Bt.prototype.beforeEach=function(t){return qt(this.beforeHooks,t)},Bt.prototype.beforeResolve=function(t){return qt(this.resolveHooks,t)},Bt.prototype.afterEach=function(t){return qt(this.afterHooks,t)},Bt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Bt.prototype.onError=function(t){this.history.onError(t)},Bt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Bt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Bt.prototype.go=function(t){this.history.go(t)},Bt.prototype.back=function(){this.go(-1)},Bt.prototype.forward=function(){this.go(1)},Bt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Bt.prototype.resolve=function(t,e,n){var r=$(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?S(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Bt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Bt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Bt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Bt.prototype,Ut);var $t=Bt;function qt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Bt.install=function t(e){if(!t.installed||q!==e){t.installed=!0,q=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",w),e.component("RouterLink",G);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Bt.version="3.6.4",Bt.isNavigationFailure=wt,Bt.NavigationFailureType=vt,Bt.START_LOCATION=g,V&&window.Vue&&window.Vue.use(Bt)},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=s(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f<e;)c&&c[f].run();f=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new h(t,e)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,,function(t,e,n){"use strict";(function(t,r){function i(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(){return i()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}))}).call(this,n(54),n(27))},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var u in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),a.push([e,n]),s[e]=s[e]?s[e]+","+n:n})),n(c())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(u,e.headers[u]);i.send(e.body||null)}))}},function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,o=a(i),s=this._rootContainsTarget(i),c=r.entry,u=t&&s&&this._computeTargetAndRootIntersection(i,e),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:o,rootBounds:e,intersectionRect:u});c?t&&s?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var r,i,o,s,u,l,f,d,p=a(e),h=c(e),g=!1;!g;){var v=null,y=1==h.nodeType?window.getComputedStyle(h):{};if("none"==y.display)return;if(h==this.root||h==t?(g=!0,v=n):h!=t.body&&h!=t.documentElement&&"visible"!=y.overflow&&(v=a(h)),v&&(r=v,i=p,void 0,void 0,void 0,void 0,void 0,void 0,o=Math.max(r.top,i.top),s=Math.min(r.bottom,i.bottom),u=Math.max(r.left,i.left),d=s-o,!(p=(f=(l=Math.min(r.right,i.right))-u)>=0&&d>=0&&{top:o,bottom:s,left:u,right:l,width:f,height:d})))break;h=c(h)}return p}},r.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||s(t,this.root)},r.prototype._rootContainsTarget=function(e){return s(this.root||t,e)},r.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},r.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function r(t,e){var n,r,i,o=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function i(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function o(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(t,e){for(var n=e;n;){if(n==t)return!0;n=c(n)}return!1}function c(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},function(t,e,n){(function(t){!function(e){var n=function(t){return i(!0===t,!1,arguments)};function r(t,e){if("object"!==o(t))return e;for(var n in e)"object"===o(t[n])&&"object"===o(e[n])?t[n]=r(t[n],e[n]):t[n]=e[n];return t}function i(t,e,i){var a=i[0],s=i.length;(t||"object"!==o(a))&&(a={});for(var c=0;c<s;++c){var u=i[c];if("object"===o(u))for(var l in u)if("__proto__"!==l){var f=t?n.clone(u[l]):u[l];a[l]=e?r(a[l],f):f}}return a}function o(t){return{}.toString.call(t).slice(8,-1).toLowerCase()}n.recursive=function(t){return i(!0===t,!0,arguments)},n.clone=function(t){var e,r,i=t,a=o(t);if("array"===a)for(i=[],r=t.length,e=0;e<r;++e)i[e]=n.clone(t[e]);else if("object"===a)for(e in i={},t)i[e]=n.clone(t[e]);return i},e?t.exports=n:window.merge=n}(t&&"object"==typeof t.exports&&t.exports)}).call(this,n(148)(t))},function(t,e,n){t.exports=self.fetch||(self.fetch=n(58).default||n(58))},function(t,e){},function(t,e,n){"use strict";function r(t,e){var n,r=null!==(n=null==e?void 0:e.version)&&void 0!==n?n:"";return function(e,n,i){var o=n.$vnode?n.$vnode.componentOptions.tag:n.$options.name,a=t.createSpan();a.setAction(o||"[unknown Vue component]").setTags({framework:"Vue",info:i,version:r}).setError(e),t.send(a),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(65),i=n.n(r);function o(t){var e=Object.keys(t),n=e.map((function(e){return t[e]})),r=[0].concat(function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(n.slice(0,-1)));return r.reduce((function(t,n,o){var a=Object.assign({minWidth:n},o<e.length-1?{maxWidth:r[o+1]-1}:{}),s=i()(a);return Object.assign(t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e[o],s))}),{})}function a(t,e,n){return function n(r){if(void 0!==e[r])return e[r];var i=t.findIndex((function(t){return t===r})),o=-1!==i||0!==i?t[i-1]:null;return o?void 0!==e[o]?e[o]:n(o):e[i]}(n)}function s(t,e){var n=window.matchMedia(t),r=function(t){t.matches&&e()};n.addListener(r),r(n)}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}var u={props:{mq:{required:!0,type:[String,Array]}},computed:{plusModifier:function(){return!c(this.mq)&&"+"===this.mq.slice(-1)},activeBreakpoints:function(){var t=Object.keys(this.$mqAvailableBreakpoints),e=this.plusModifier?this.mq.slice(0,-1):c(this.mq)?this.mq:[this.mq];return this.plusModifier?function(t,e){var n=t.findIndex((function(t){return t===e}));return t.slice(n)}(t,e):e}},render:function(t,e){return this.activeBreakpoints.includes(this.$mq)?t("div",this.$slots.default):t()}},l={sm:450,md:1250,lg:1/0},f={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.breakpoints,r=void 0===n?l:n,i=e.defaultBreakpoint,c=void 0===i?"sm":i,f=!1,d=new t({data:function(){return{currentBreakpoint:c}}});t.filter("mq",(function(t,e){return a(Object.keys(r),e,t)})),t.mixin({computed:{$mq:function(){return d.currentBreakpoint}},created:function(){this.$isServer&&(d.currentBreakpoint=c)},mounted:function(){if(!f){var t=o(r),e=function(e){s(t[e],(function(){d.currentBreakpoint=e}))};for(var n in t)e(n);f=!0}}}),t.prototype.$mqAvailableBreakpoints=r,t.component("MqLayout",u)}};e.a=f},function(t,e,n){var r=n(141),i=function(t){var e="",n=Object.keys(t);return n.forEach((function(i,o){var a=t[i];(function(t){return/[height|width]$/.test(t)})(i=r(i))&&"number"==typeof a&&(a+="px"),e+=!0===a?i:!1===a?"not "+i:"("+i+": "+a+")",o<n.length-1&&(e+=" and ")})),e};t.exports=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach((function(n,r){e+=i(n),r<t.length-1&&(e+=", ")})),e):i(t)}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("page-template",{attrs:{site:t.site,page:t.getPage(),images:t.getImages(),imageIndex:t.imageIndex}})},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this;t.$createElement;return t._self._c,t._m(0)},r=[function(){var t=this.$createElement,e=this._self._c||t;return e("main",{staticClass:"content-Container"},[e("div",{staticClass:"content-Stationary"})])}];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"quillContent",attrs:{id:t.itemId},domProps:{innerHTML:t._s(t.textAsHTML)}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{ref:t.quillInstance,staticClass:"quillContent ql-container",class:{active:t.isActive,inSidebar:t.sidebar},on:{click:function(e){return t.focusEditor()}}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e,n){t.exports=function(){"use strict";var t=Math.sqrt(1.05*.05)-.05,e=/^(?:[0-9a-f]{3}){1,2}$/i,n={black:"#000000",white:"#ffffff",threshold:t};function r(t){if("#"===t.slice(0,1)&&(t=t.slice(1)),!e.test(t))throw new Error('Invalid HEX color: "'+t+'"');return 3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function i(t){if(!t)throw new Error("Invalid color value");return Array.isArray(t)?t:"string"==typeof t?r(t):[t.r,t.g,t.b]}function o(t,e,i){var o=!0===e?n:Object.assign({},n,e);return function(t){var e,n,r=[];for(e=0;e<t.length;e++)n=t[e]/255,r[e]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4);return.2126*r[0]+.7152*r[1]+.0722*r[2]}(t)>o.threshold?i?r(o.black):o.black:i?r(o.white):o.white}function a(t,e){return void 0===e&&(e=!1),t=i(t),e?o(t,e):"#"+t.map((function(t){return e=(255-t).toString(16),void 0===n&&(n=2),(new Array(n).join("0")+e).slice(-n);var e,n})).join("")}return function(e){function n(t,e){var n;return t=i(t),{r:(n=e?o(t,e,!0):t.map((function(t){return 255-t})))[0],g:n[1],b:n[2]}}e.asRGB=n,e.asRgbArray=function(t,e){return t=i(t),e?o(t,e,!0):t.map((function(t){return 255-t}))},e.defaultThreshold=t,e.asRgbObject=n}(a||(a={})),a}()},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"ui-Button",attrs:{disabled:t.disabled},on:{click:t.buttonClick,dblclick:t.buttonClick}},[n("div",{staticClass:"ui-Button_Wrapper"},[n("span",[t._v(t._s(t.label))])])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-ColorItem",style:{background:t.value},attrs:{"data-border":t.needsBorder,"data-in-set":t.isset,"data-is-active":t.isActive,"data-size":t.size,"data-empty":!t.value},on:{click:t.colorItemClick}},[t.showColorButtonIcon?n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"make custom color"},expression:"{content: 'make custom color'}"}],attrs:{icon:t.UiBaseIcons.color,variant:t.variant,name:"openColorPickerBackground",title:"make custom color"},on:{"icon-button-click":t.colorItemClick}}):t._e(),t._v(" "),t.canClearColor&&t.value?n("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"clear color"},expression:"{content: 'clear color'}"}],staticClass:"ui-ColorItem_clear",style:t.clearButtonColorCss,on:{click:function(e){return e.stopPropagation(),t.colorItemClear.apply(null,arguments)}}}):t._e()],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Colorpicker"},[n("div",{staticClass:"ui-Scale2_Bottom"},[n("div",{staticClass:"ui-Colorpicker_CanvasWrap",attrs:{id:"js-colorwheel"}},[n("div",{staticClass:"ui-Colorpicker_dot",attrs:{id:"js-dot"}},[t._v(" ")]),t._v(" "),n("canvas",{ref:"colorpickercanvas",staticClass:"ui-Colorpicker_Canvas",attrs:{id:"colorpickercanvas",width:"580",height:"580"},on:{mousemove:t.selectColorOnCanvas,mousedown:t.startSelectColorOnCanvas,mouseup:t.endSelectColorOnCanvas,mouseleave:t.endSelectColorOnCanvas}})])]),t._v(" "),n("div",{staticClass:"ui-Scale2_Bottom"},[n("div",{staticClass:"ui-Colorpicker_ChromaWrap",attrs:{id:"js-chroma"}},[n("div",{staticClass:"ui-Colorpicker_dot chroma",attrs:{id:"js-chroma-dot"}},[t._v(" ")]),t._v(" "),n("canvas",{ref:"colorpickerChromaCanvas",staticClass:"ui-Colorpicker_ChromaCanvas",attrs:{id:"colorpickerChromaCanvas",width:"290",height:"50"},on:{mousemove:t.selectColorOnChromaCanvas,mousedown:t.startSelectColorOnChromaCanvas,mouseup:t.endSelectColorOnSaturationCanvas,mouseleave:t.endSelectColorOnSaturationCanvas}})])]),t._v(" "),n("div",{staticClass:"ui-Scale1_Bottom ui-ColorSet"},t._l(t.paletteBrightness,(function(e,r){return n("color-item",{key:r,attrs:{value:e,index:r,activeIndex:t.activeColorItem},on:{colorItemClick:function(n){return t.selectColorInBrightness(e,r)}}})})),1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Footer"},[n("div",{staticClass:"ui-Buttons_Container",style:t.newpageFirstuseStyle},[t.treatsButtonActive?n("button-item",{ref:"treatsButton",staticClass:"ui-Footer_treatsButton",attrs:{name:"treats",label:"Open Treats","data-type":"action"},on:{buttonClick:function(e){return t.openTreats()}}}):t._e(),t._v(" "),t.newPageFirstUseButtonOpen?n("button-item",{staticClass:"ui-Footer_FirstUseButton blue",attrs:{name:"newpagefirstuse",label:"New Page","data-type":"action"},on:{buttonClick:function(e){return t.newPageModal()}}}):t._e(),t._v(" "),t.newpagebutton?n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.newPageFirstUseButtonOpen?{}:{content:"add new page"},expression:"!newPageFirstUseButtonOpen ? { content: 'add new page' } : {}"}],attrs:{name:"footerNewPageButton",icon:t.UiBaseIcons.plus,title:"new page",variant:"secondary large"},on:{"icon-button-click":function(e){return t.newPageModal()}}}):t._e()],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"ui-Grid_Element"},[t._t("default")],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Grid_Item",class:{itemSelected:t.isActive},attrs:{"data-large":t.large},on:{click:t.selectGridItem,dblclick:t.selectGridItem}},[n("img",{attrs:{src:t.getIcon}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("header",{staticClass:"ui-Header"},[t._t("default")],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"ui-IconBase",attrs:{width:t.width,height:t.height,viewBox:t.viewbox,"aria-label":t.label,role:"presentation"}},[n("g",{attrs:{fill:t.fill},domProps:{innerHTML:t._s(t.svg)}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Input"},[n("input",{attrs:{placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,type:t.type},domProps:{value:t.inputValue()},on:{input:function(e){return t.getInputText(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter(e.target.value)},blur:function(e){return t.onEnter(e.target.value)},clear:t.clear}}),t._v(" "),t.clearOption?n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"clear"},expression:"{ content: 'clear' }"}],attrs:{name:"removeText",icon:t.UiBaseIcons.cross,title:"clear",variant:"secondary large"},on:{"icon-button-click":t.clear}}):t._e()],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Input"},[n("input",{attrs:{placeholder:"yyyy-mm-dd",pattern:"20[0-9][0-9]-(0[1-9]|[1][0-2])-([0-2][0-9]|3[0-1]) ([0-1][0-9]|2[0-3]):[0-5][0-9]"},domProps:{value:t.dateString()},on:{input:function(e){return t.getInputDate(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter.apply(null,arguments)},blur:t.onEnter}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-InputFile"},[n("input",{staticClass:"ui-InputFile-Input",attrs:{type:"file",accept:t.filetypes},domProps:{value:t.value},on:{change:function(e){return t.getInputFile(e.target.files)}}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Input"},[n("textarea",{attrs:{placeholder:t.placeholder},on:{input:function(e){return t.getInputText(e.target.value)}}},[t._v(t._s(t.value))])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-List"},[n("ul",{staticClass:"ui-List"},[t._t("default")],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"ui-ListItem",class:{itemSelected:t.isActive},attrs:{"data-large":!0},on:{click:t.listItemClick}},[t.icon||t.image?n("div",{staticClass:"ui-ListItem_Image"},[t.image&&t.isVisible?n("img",{attrs:{src:t.image}}):t._e(),t._v(" "),t.icon?n("icon-base",{attrs:{icon:t.icon,width:70,height:48}}):t._e()],1):t._e(),t._v(" "),n("div",{staticClass:"ui-ListItem_Label"},[n("p",{staticClass:"ellipsis"},[t._v(t._s(t.label))])]),t._v(" "),n("div",{staticClass:"ui-ListItem_Icons"},[t.clickThrough?n("icon-base",{attrs:{icon:t.UiBaseIcons.arrowRight}}):t._e()],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Logotype"},["Text"===t.type?n("input",{staticClass:"ui-Logotype_Input",style:{backgroundColor:t.getSite.backgroundColor,color:t.getSite.textColor,fontFamily:t.font,fontWeight:t.fontWeightBold()},attrs:{placeholder:"Add site name"},domProps:{value:t.getSite.title},on:{input:function(e){return t.getInputText(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter(e.target.value)},inputTextUpdate:t.editSiteTitle}}):n("div",{staticClass:"ui-Logotype_Preview",class:{"ui-Logotype_Preview-image":t.src},style:{backgroundColor:t.getSite.backgroundColor}},[t.src?n("img",{attrs:{src:t.src}}):t._e(),t._v(" "),t._m(0),t._v(" "),n("span",{staticClass:"ui-Logotype_Overlay",on:{click:function(e){return t.chooseFile(e)}}}),t._v(" "),n("input-file",{attrs:{name:"logotypeFileInput",target:t.target,filetypes:t.filetypes},on:{"input-file-update":t.editSrc}})],1)])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"ui-Logotype_Label"},[n("span",[t._v("choose image")])])}];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Sidebar_Modal",attrs:{"data-modal-type":t.type}},[n("div",{staticClass:"ui-Content"},[t._t("title"),t._v(" "),t._t("body")],2),t._v(" "),n("div",{staticClass:"ui-Close_Modal"},[n("icon-button",{attrs:{name:"modalClose",icon:t.UiBaseIcons.cross,title:"close",variant:"menubar large"},on:{"icon-button-click":t.close}})],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Note",class:t.cssClass},[t._t("default"),t._v(" "),t.dismissible?n("icon-button",{staticClass:"ui-Note_CloseButton",attrs:{name:"closeGettingStartedNoteButton",icon:t.UiBaseIcons.cross,variant:"large transparent",label:"dismiss notice"},on:{"icon-button-click":t.close}}):t._e()],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Selector"},[t.label?n("div",{staticClass:"ui-Selector_Label"},[t._v(t._s(t.label))]):t._e(),t._v(" "),n("ul",{staticClass:"ui-Selector_Items",class:[t.icons?"hasIcons":"",t.variant]},t._l(t.config,(function(e,r){return n("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.tooltipValue(e)},expression:"{ content: tooltipValue(value) }"}],key:r,staticClass:"ui-Selector_Item",class:{itemSelected:t.isOptionSelected(e),inactive:t.isInactive(e)},on:{click:function(n){return t.selectOption(e,r)}}},[t.icons?n("icon-base",{attrs:{icon:t.icons[e],width:t.iconSize().width,height:t.iconSize().height}}):n("span",[t._v(t._s(t.uiValue(r,e)))])],1)})),0)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Toggle",class:{itemSelected:t.isToggleSelected,inactive:t.inactive},attrs:{"data-icon-position":t.iconPosition},on:{click:t.clickToggle}},["before"===t.iconPosition?n("icon-base",{staticClass:"inline ui-Toggle_Icon",attrs:{icon:t.icon}}):t._e(),t._v(" "),n("div",{staticClass:"ui-Toggle_Option"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),"after"===t.iconPosition?n("icon-base",{staticClass:"inline ui-Toggle_Icon",attrs:{icon:t.icon}}):t._e()],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("toggle",t._b({staticClass:"ui-OptionToggle",attrs:{iconName:"circle",iconPosition:"after"},on:{"set-toggle":function(e){return t.optionToggle()}}},"toggle",Object.assign({},t.$attrs,t.$props),!1))},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Overlay",class:{"ui-Overlay_Small":"small"===t.$mq},attrs:{tabindex:"0"}},[n("div",{staticClass:"ui-Overlay_Wrap",attrs:{"aria-label":t.closeOnOutsideClick?"Close Overlay":""},on:t._d({keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeOverlay.apply(null,arguments)}},[t.hasOutsideClick(),function(e){return e.target!==e.currentTarget?null:t.closeOverlay.apply(null,arguments)}])},[n("div",{ref:"overlayContent",staticClass:"ui-Overlay_Content",attrs:{role:"dialog"}},[t.hasHeader()?n("header",{staticClass:"ui-Overlay_Header"},[t._t("header")],2):t._e(),t._v(" "),n("section",{staticClass:"ui-Overlay_Body",style:{minHeight:t.contentHeight||"300px",width:t.contentWidth||"500px"}},[t._t("default",(function(){return[t._v("\n          I'm the default body!\n        ")]}))],2),t._v(" "),t.hasFooter()?n("footer",{staticClass:"ui-Overlay_Footer"},[t._t("footer")],2):t._e(),t._v(" "),n("icon-button",{staticClass:"ui-Overlay_CloseButton",attrs:{name:"closeOverlayButton",icon:t.UiBaseIcons.cross,variant:"panel large"},on:{"icon-button-click":t.closeOverlay}})],1)]),t._v(" "),n("div",{staticClass:"ui-Overlay_Backdrop"})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-AddLink"},[t.labelInputLabel?[n("div",{staticClass:"ui-Section_Subtitle"},[t._v("\n      "+t._s(t.labelInputLabel)+"\n    ")]),t._v(" "),n("input-field",{attrs:{placeholder:"Click me!",type:"text",value:t.label},on:{inputTextUpdateEnter:t.setLabelOnEnter,inputTextUpdate:t.setLabel}})]:t._e(),t._v(" "),t.urlInputLabel?n("div",{staticClass:"ui-Section_Subtitle ui-Scale1_Top"},[t._v("\n    "+t._s(t.urlInputLabel)+"\n  ")]):t._e(),t._v(" "),t.isInternalLink()?t._e():n("input-field",{attrs:{placeholder:"https://example.com",type:"text",value:t.url},on:{inputTextUpdateEnter:t.setUrlOnEnter,inputTextUpdate:t.setUrl}}),t._v(" "),t.isInternalLink()?n("input-field",{staticClass:"ui-AddLink_internal",attrs:{placeholder:"Page Title",type:"text",value:t.internalLinkPageTitle(),disabled:!0,clearOption:!0},on:{inputTextUpdateEnter:t.setUrlOnEnter,inputTextUpdate:t.setUrl,clear:t.clearUrl}}):t._e(),t._v(" "),n("button-item",{attrs:{label:"choose page"},on:{buttonClick:function(e){return t.openPagesModal()}}}),t._v(" "),t.overlayLinkToggle()?n("div",{staticClass:"ui-Toggle_Container ui-Scale1_Top"},[n("option-toggle",{key:"overlay",attrs:{name:"ctaOverlay",label:"Open in Overlay",value:t.overlayLink},on:{"option-toggle":t.setOverlay}})],1):t._e()],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-EditorToolbar_Wrapper",on:{mouseenter:function(e){return t.textEditToolbarFocusToggle()},mouseleave:function(e){return t.textEditToolbarFocusToggle()}}},[n("div",{staticClass:"ui-EditorToolbar"},[t.minimal?t._e():n("div",{staticClass:"ui-Scale1_Bottom"},[n("div",{staticClass:"ui-Section_Subtitle"},[t._v("font size")]),t._v(" "),n("option-selector",{attrs:{name:"toolbarSize",config:t.sizeOptions,activeKey:t.activeFormatting("header"),mapping:{S:"caption",M:"body",L:"title",XL:"headline"}},on:{setOptionSelector:t.formatFontSize}})],1),t._v(" "),n("div",[t.minimal?t._e():n("div",{staticClass:"ui-Section_Subtitle"},[t._v("formatting")]),t._v(" "),n("div",{staticClass:"textFormat"},[n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"bold"},expression:"{content:'bold'}"}],staticClass:"ui-EditorToolbar_FormatButton",class:{active:t.activeFormatting("bold")},attrs:{name:"quillBold",title:"bold",icon:t.TextFormattingIcons.bold},on:{"icon-button-click":function(e){return t.format("bold")}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"italic"},expression:"{content:'italic'}"}],staticClass:"ui-EditorToolbar_FormatButton",class:{active:t.activeFormatting("italic")},attrs:{name:"quillItalic",title:"italic",icon:t.TextFormattingIcons.italic},on:{"icon-button-click":function(e){return t.format("italic")}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"underline"},expression:"{content:'underline'}"}],staticClass:"ui-EditorToolbar_FormatButton",class:{active:t.activeFormatting("underline")},attrs:{name:"quillUnderline",title:"underline",icon:t.TextFormattingIcons.underline},on:{"icon-button-click":function(e){return t.format("underline")}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"link"},expression:"{content:'link'}"}],staticClass:"ui-EditorToolbar_FormatButton",class:{active:t.activeFormatting("link")||t.activeFormatting("fotomat-link")},attrs:{name:"quillLink",title:"link",icon:t.TextFormattingIcons.link},on:{"icon-button-click":function(e){return t.formatLink()}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"color"},expression:"{content:'color'}"}],staticClass:"ui-EditorToolbar_FormatButton",attrs:{name:"quillColor",title:"color",icon:t.TextFormattingIcons.color},on:{"icon-button-click":function(e){return t.openColorPicker("textEditor")}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"clear formatting"},expression:"{content:'clear formatting'}"}],staticClass:"ui-EditorToolbar_FormatButton",attrs:{name:"quillClearFormatting",title:"clear formatting",icon:t.TextFormattingIcons.clear},on:{"icon-button-click":function(e){return t.format("clean")}}})],1),t._v(" "),t.minimal?t._e():n("option-selector",{attrs:{name:"toolbarAlignments",config:Object.keys(t.ALIGNS),icons:t.TextAlignmentIcons,activeKey:t.activeFormatting("align")||void 0},on:{setOptionSelector:t.formatAlign}})],1),t._v(" "),n("transition",{attrs:{name:"uiOption"}},[n("div",{staticClass:"ui-textFormat"},[n("add-link",{directives:[{name:"show",rawName:"v-show",value:t.showLinkEdit,expression:"showLinkEdit"}],staticClass:"ui-Scale2_Bottom ui-Scale1_Top",attrs:{name:"quillToolbarAddLink",url:t.urlValue(),internalLinkId:t.internalLinkId,overlayLink:t.overlayLink,urlInputLabel:"insert hyperlink"}})],1)]),t._v(" "),t.minimal?t._e():n("div",{staticClass:"ui-Scale1_Top"},[n("transition-group",{attrs:{name:"uiOption"}},[t.isBlogPage()&&"text"!==t.getItemPage.type?n("option-selector",{key:"textColumns",staticClass:"ui-Scale1_Top",attrs:{name:"textColumns",label:"text columns",config:t.configInit.textColumns,icons:t.TextColumnsIcons,variant:"mediumIcons",activeKey:t.getItemPage.textColumns},on:{setOptionSelector:t.updatePage}}):t._e(),t._v(" "),t.showDescriptionAlignment?n("option-selector",{key:"descriptionAlignment",attrs:{name:"descriptionAlignment",label:"alignment",config:t.pageConfig.descriptionAlignment,activeKey:t.getPage.descriptionAlignment},on:{setOptionSelector:t.updatePage}}):t._e(),t._v(" "),t.showRowDescriptionAlignment?n("option-selector",{key:"rowDescriptionAlignment",attrs:{name:"rowDescriptionAlignment",label:"alignment",config:t.pageConfig.rowDescriptionAlignment,activeKey:t.getPage.rowDescriptionAlignment},on:{setOptionSelector:t.updatePage}}):t._e(),t._v(" "),t.isBlogPage()&&"text"!==t.getItemPage.type?n("option-selector",{key:"textVerticalAlignment",attrs:{name:"textVerticalAlignment",label:"alignment",config:t.pageConfig.textVerticalAlignment,activeKey:t.getItemPage.textVerticalAlignment},on:{setOptionSelector:t.updatePage}}):t._e()],1)],1)],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"ui-RadioToggle",class:{active:t.isActive,inactive:!t.isActive},attrs:{title:t.title},on:{click:t.toggle}})},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Search_Input"},[n("input",{staticClass:"ui-Input",attrs:{placeholder:t.placeholder},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter.apply(null,arguments)}}})])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"ui-SetListing_Item",class:{active:t.setActive,dragover:t.draggedOver,editActive:t.setEditActive(t.set.id)},on:{drop:function(e){return e.preventDefault(),t.dragDrop.apply(null,arguments)},dragover:function(e){return e.preventDefault(),t.dragOver.apply(null,arguments)},dragenter:function(e){return e.preventDefault(),t.dragEnter.apply(null,arguments)},dragleave:function(e){return e.preventDefault(),t.dragLeave.apply(null,arguments)}}},[n("div",{staticClass:"ui-SetListing_Image",on:{click:function(e){return t.selectSet(t.set.id)}}},[t.setImage(t.set)?n("img",{attrs:{src:t.setImage(t.set)}}):t._e(),t._v(" "),n("icon-base",{attrs:{icon:t.TypesIcons.image,width:70,height:48}})],1),t._v(" "),n("div",{staticClass:"ui-SetListing_Title",on:{click:function(e){return t.selectSet(t.set.id)},dblclick:function(e){return t.editSet(t.set)}}},[n("transition",{attrs:{name:"inputFade"}},[t.setEditActive(t.set.id)?t._e():n("p",{staticClass:"ellipsis"},[t._v(t._s(t.set.name))])]),t._v(" "),n("transition",{attrs:{name:"inputFade"}},[t.setEditActive(t.set.id)?n("input-field",{staticClass:"ui-SetListing_Input",attrs:{focus:!0,name:"name",label:"Title",placeholder:"Enter set name",value:t.set.name},on:{inputTextUpdate:t.editSetTitle,inputTextUpdateEnter:function(e){return t.editSetEnter(t.set.id)}}}):t._e()],1)],1),t._v(" "),n("div",{staticClass:"ui-SetListing_Actions"},[n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"edit title"},expression:"{ content: 'edit title'}"}],attrs:{name:"setListEditTitle",title:"edit title",variant:"transparent medium",icon:t.UiBaseIcons.pencil},on:{"icon-button-click":function(e){return t.editSet(t.set)}}}),t._v(" "),n("icon-button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"delete set"},expression:"{ content: 'delete set'}"}],attrs:{name:"setListDeleteSet",title:"delete set",variant:"transparent medium",icon:t.UiBaseIcons.crossSmall},on:{"icon-button-click":function(e){return t.deleteSet(t.set)}}})],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-SidebarToggle"},[n("p",[t._v(t._s(t.message))])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Section_Subtitle",on:{click:t.subtitleClick}},[n("div",{staticClass:"ui-Section_Subtitle_Label"},[n("p",[t._v(t._s(t.label))])]),t._v(" "),n("div",{staticClass:"ui-Section_Subtitle_Icons"},[t._t("default")],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"ui-Tab",class:{active:t.isActive,divider:t.divider}},[t.divider?t._e():n("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.tabClick.apply(null,arguments)}}},[t._v("\n    "+t._s(t.label)+"\n    "),t._t("default")],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Tabs"},[n("ul",[t._t("default")],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Section_Title"},[t.hasToggle?n("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.toggleTitle},expression:"{ content: toggleTitle }"}],staticClass:"ui-Toggle_Indicator",class:{active:t.toggleActive,inactive:!t.toggleActive},attrs:{title:t.toggleTitle},on:{click:function(e){return t.toggleEmit()}}}):t._e(),t._v(" "),n("div",{staticClass:"ui-Section_Title_Label"},[n("p",[t._v(t._s(t.label))])]),t._v(" "),n("div",{staticClass:"ui-Section_Title_Icons"},[n("transition",{attrs:{name:"uiOption"}},[t._t("default")],2)],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Typography_Item",class:{itemSelected:t.selected},on:{click:t.selectFontPreset,dblclick:t.selectFontPreset}},[n("h1",{staticClass:"ui-Typography_Item-Aa",style:t.fontFamily()},[t._v("\n    "+t._s(t.displayName)+"\n  ")])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"video-Wrapper",class:{"video-Ui_Compact":t.compactUi,playing:t.playing},style:{"--video-ui-color":t.site.videoPlayerUiColor,"--video-ui-background-color":t.site.videoPlayerUiBackgroundColor},attrs:{"data-fullscreen":t.isFullscreen,"data-image-size":t.$attrs["data-image-size"],"data-video-ui-color":t.$attrs["data-video-ui-color"],"data-video-ui-background-color":t.$attrs["data-video-ui-background-color"]}},[n("div",{staticClass:"video-Sizer",style:t.$attrs.style,on:{pointermove:t.pointerMove}},[t.showPoster?n("img",t._b({staticClass:"video-Poster",attrs:{src:t.poster}},"img",t.$attrs.style,!1)):t._e(),t._v(" "),n("video",t._b({staticClass:"hyperimage video-Embed",class:{hidden:t.showPoster},attrs:{preload:"metadata",autoplay:t.autoplay,loop:t.boolToString("loop"),poster:t.poster},domProps:{muted:t.boolToString("muted")},on:{contextmenu:function(t){t.preventDefault()},loadedmetadata:function(e){return t.initializeVideo()},play:function(e){t.playing=!0},pause:function(e){t.playing=!1}}},"video",t.$attrs,!1)),t._v(" "),t.videoIconVisible?n("div",{staticClass:"video-Icon"},[n("icon-base",{attrs:{icon:t.VideoPlayerIcons.play}})],1):t._e(),t._v(" "),n("div",{staticClass:"video-Controls",class:{hidden:!t.controlsVisible}},[t.compactUi?t._e():n("button",{staticClass:"video-Control_Button video-Control_Play large",on:{click:function(e){return e.stopPropagation(),t.togglePlay.apply(null,arguments)},pointerover:t.controlsPointerOver,pointerleave:t.controlsPointerLeave,pointerup:function(e){return e.stopPropagation(),t.controlsPointerLeave.apply(null,arguments)}}},[n("icon-base",{attrs:{icon:t.playPauseIcon}})],1),t._v(" "),n("div",{staticClass:"video-Controls_Bottom",class:{hidden:!t.bottomControlsVisible},on:{click:function(t){t.stopPropagation()},pointerover:t.controlsPointerOver,pointerleave:t.controlsPointerLeave,pointerup:function(e){return e.stopPropagation(),t.controlsPointerLeave.apply(null,arguments)}}},[t.compactUi?n("button",{staticClass:"video-Control_Button video-Control_Play",on:{pointerdown:function(e){return e.stopPropagation(),t.togglePlay.apply(null,arguments)}}},[n("icon-base",{attrs:{icon:t.playPauseIcon,width:10,height:10}})],1):t._e(),t._v(" "),n("div",{staticClass:"video-Time",class:{long:t.isLong}},[n("span",[t._v(t._s(t.displayTime))])]),t._v(" "),n("div",{staticClass:"video-Progress",class:{bigger:t.seeking},on:{pointermove:t.updateSeekPosition,pointerdown:function(e){return e.stopPropagation(),t.startSeeking.apply(null,arguments)},pointerup:function(e){return e.stopPropagation(),t.endSeeking.apply(null,arguments)},pointerover:t.scrubPointerOver,pointerleave:t.scrubPointerLeave}},[n("span",{staticClass:"video-Progress_Gutter"},[n("span",{staticClass:"video-Time video-Time_Seek",class:{long:t.isLong,hidden:!t.scrubBarActivity},style:{left:t.seekTimePercentage+"%"}},[n("span",[t._v(t._s(t.displaySeekTime))])]),t._v(" "),n("span",{staticClass:"video-Progress_Bar",style:{width:t.currentPercentage+"%"}})])]),t._v(" "),t.fullScreenEnabled?n("div",{staticClass:"video-Controls_Fullscreen"},[n("button",{staticClass:"video-Control_Button video-Control_Fullscreen",on:{pointerdown:function(e){return e.stopPropagation(),t.handleFullscreen.apply(null,arguments)}}},[n("icon-base",{attrs:{icon:t.minMaxIcon,width:16,height:16}})],1)]):t._e(),t._v(" "),n("div",{staticClass:"video-Controls_Volume"},[n("button",{staticClass:"video-Control_Button video-Control_Mute",on:{pointerdown:function(e){return e.stopPropagation(),t.toggleMute.apply(null,arguments)}}},[n("icon-base",{attrs:{icon:t.volumeIcon,width:16,height:16}})],1),t._v(" "),n("input",{staticClass:"video-Volume",attrs:{value:"1",type:"range",max:"1",min:"0",step:"0.01"},on:{input:t.updateVolume}})])])])])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-Description text-Item item",attrs:{"data-page":t.page.type,"data-site-layout":t.getSite.layout,"data-item-position":"0","data-site-layout-variation":t.getSite.layoutVariation,"data-imagegrid-gutter":t.page.imagegridGutters,"data-text-columns":t.page.textColumns,"data-content-alignment":t.getSite.contentAlignment,"data-item-alignment":t.page.descriptionAlignment,"data-content-spacing":t.contentSpacing,"data-site-showcontentbackground":t.showContentBackground(),"data-breakpoint":this.$mq,"data-live":t.$liveSite||"false"}},[n("div",{staticClass:"page-Description_Content text-Item_Content"},[n("div",{staticClass:"textcontent"},[t.$liveSite?n("quill-live",{attrs:{name:"descriptionContent",content:t.page.descriptionContent,pageId:t.page.id}}):n("quill-editor",{attrs:{name:"descriptionContent",editorId:t.page.id,content:t.page.descriptionContent},on:{textChange:t.textChange}})],1)])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.Image?n("div",{staticClass:"slideshow-Item image-Item item",style:t.gridStyle(),attrs:{"data-page":t.pageType(),"data-site-layout":t.siteLayout(),"data-content-spacing":t.contentSpacing(),"data-slideshow-item-use-ratio":t.useRatio||"false","data-slideshow-item-ratio":t.page.slideshowRatio,"data-media-fit":t.page.coverMediaFit,"data-content-alignment":!!t.inline&&t.site.contentAlignment,"data-logo-invisible":t.page.logoDisabled||"false","data-menu-invisible":t.page.menuDisabled||"false","data-site-showcontentbackground":t.showContentBackground(),"data-breakpoint":this.$mq,"data-item-position":t.itemPosition,"data-page-menu-representation":t.page.menu_representation,"data-slideshow-autoplay":t.autoplay,"data-item-width":t.page.indexGridItemWidth,"data-item-grow":t.growWithContent,"data-item-vertical-alignment":t.verticalAlign()}},[n("figure",{directives:[{name:"touch",rawName:"v-touch:swipe.left",value:t.nextImage,expression:"nextImage",arg:"swipe",modifiers:{left:!0}},{name:"touch",rawName:"v-touch:swipe.right",value:t.previousImage,expression:"previousImage",arg:"swipe",modifiers:{right:!0}}],staticClass:"slideshow-Image image-Item_Content",style:t.cursor,on:{click:function(e){return t.click()}}},[t.showDescription()?n("div",{staticClass:"slideshow-Description",style:t.descriptionBackgroundColor(),attrs:{"data-vertical-align":t.page.textVerticalAlignment}},[n("transition",{attrs:{name:"contentOverlay"}},[t.showDescription()?n("page-description",{attrs:{page:t.page},nativeOn:{click:function(e){return e.stopPropagation(),t.hideDescriptionOnClick()}}}):t._e()],1)],1):t._e(),t._v(" "),t.useRatio?n("div",{staticClass:"slideshow-Ratio"},[n("transition",{attrs:{name:t.slideshowTransition}},[n("image-loader",{attrs:{name:"slideshow",transition:t.slideshowTransition,image:t.Image,size:t.imageSize,videoControlsEnabled:t.videoControls,scaleVideo:t.scaleVideo,scaleVideoWidthOnly:t.scaleVideoWidthOnly,videoAutoplay:t.doAutoplay(),intersectionTreshold:.5,ratio:t.imageRatio}})],1),t._v(" "),t.showNavigation?[n("div",{staticClass:"slideshow-Item-Prev",on:{click:t.previousImage}}),t._v(" "),n("div",{staticClass:"slideshow-Item-Next",on:{click:t.nextImage}})]:t._e()],2):[n("transition",{attrs:{name:t.slideshowTransition}},[n("image-loader",{attrs:{name:"slideshow",image:t.Image,size:t.imageSize,videoControlsEnabled:t.videoControls,scaleVideo:t.scaleVideo,scaleVideoWidthOnly:t.scaleVideoWidthOnly,videoAutoplay:t.doAutoplay(),intersectionTreshold:.5,usePlaceholder:t.usePlaceholder(),ratio:t.imageRatio}})],1),t._v(" "),t.showNavigation?[n("div",{staticClass:"slideshow-Item-Prev",on:{click:t.previousImage}}),t._v(" "),n("div",{staticClass:"slideshow-Item-Next",on:{click:t.nextImage}})]:t._e()],t._v(" "),t._t("default")],2)]):t._e()},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container",attrs:{"data-site-layout":t.site.layout,"data-page":t.page.type,"data-text-size":t.page.coverTextSize,"data-content-spacing":t.contentSpacingHelper(t.page.slideshowSize,t.site,t.page),"data-logo-invisible":t.page.logoDisabled||"false","data-menu-invisible":t.page.menuDisabled||"false","data-content-alignment":t.site.contentAlignment,"data-site-showcontentbackground":t.showContentBackground(),"data-breakpoint":this.$mq}},[n("div",{staticClass:"content-Stationary",attrs:{"data-page":t.page.type,"data-site-layout":t.site.layout,"data-index-text-layout":t.page.indexTextLayout,"data-index-text-size":t.page.indexTextSize}},[t.page.showDescription?n("div",{staticClass:"cover-Text text-Item item",style:t.textStyle(),attrs:{"data-content-alignment":t.site.contentAlignment,"data-page":t.page.type,"data-site-showcontentbackground":t.showContentBackground(),"data-item-position":"0"}},[n("div",{staticClass:"text-Item_Content"},[n("div",{staticClass:"textcontent"},[t.$liveSite?n("quill-live",{attrs:{name:"textContent1",pageId:t.page.id,content:t.page.textContent1}}):n("quill-editor",{attrs:{name:"textContent1",editorId:t.page.id,content:t.page.textContent1},on:{textChange:t.textChange}})],1)])]):t._e(),t._v(" "),n("slideshow-item",{attrs:{autoplay:t.page.coverMediaAutoPlay,imageIndex:t.imageIndex,images:t.images,keyBinds:!1,page:t.page,site:t.site,videoControlsEnabled:!1,routerName:"inline"}})],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("figcaption",{staticClass:"caption",attrs:{"data-live":t.$liveSite}},[n("div",{staticClass:"caption-Wrap"},[t._t("before"),t._v(" "),n("div",{staticClass:"caption-Inner"},[t.hasTitle()||t.showPlaceholder()?n("p",{staticClass:"caption-Title",class:{"caption-Placeholder":t.showPlaceholder()}},[t._v("\n        "+t._s(t.widont(t.titleText()))+"\n      ")]):t._e(),t._v(" "),t.hasDescription()?n("quill-live",{staticClass:"caption-Description",attrs:{name:"description",content:t.description,pageId:t.pageId}}):t._e(),t._v(" "),t.showPlaceholder()?n("div",{staticClass:"caption-Description caption-Placeholder"},[n("p",[t._v(t._s(t.placeholderText("description")))])]):t._e(),t._v(" "),t._t("default")],2),t._v(" "),t._t("after")],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.route?n("router-link",{attrs:{to:t.route,exact:t.exactRoute}},[t._t("default")],2):n("a",{attrs:{href:t.url,target:t.urlTarget(),rel:t.urlRel()}},[t._t("default")],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid-Columns"},t._l(t.columns,(function(e){return n("div",{staticClass:"grid-Column"},t._l(e,(function(e){return n("figure",{key:"column_item_"+e.image.id+"_"+e.index,staticClass:"grid-Item image-Item_Content",attrs:{"data-unpublished":t.published(e.image)}},[e.image?n("div",{key:"column_item_image_"+e.image.id+"_"+e.index,staticClass:"grid-Image"},[n("navigation-link",{key:"column_item_link_"+e.image.id+"_"+e.index,staticClass:"grid-Item_ViewerLink",attrs:{route:t.routeLink(e.image,e.index),url:t.externalLink(e.image)}}),t._v(" "),n("image-loader",{key:"column_item_image_loader_"+e.image.id+"_"+e.index,attrs:{dynamicSizeAndDpr:!0,fullScreen:t.fullScreen(),image:e.image,intersectionTreshold:.25,lazyLoad:!0,lazyLoadRoot:t.lazyLoadContainer,showVideoIcon:t.showVideoIcon(),size:t.imageSize,videoAutoplay:t.page.videoAutoplay,videoControlsEnabled:t.showVideoControls(),name:"grid"}})],1):t._e(),t._v(" "),e.image&&t.page.imagegridCaptionEnabled?n("caption-item",{key:"column_item_image_caption_"+e.image.id+"_"+e.index,staticClass:"grid-Item_Caption",attrs:{title:e.image.name,description:e.image.description,"page-id":e.image.id,"show-placeholders":t.showCaptionPlaceholders}}):t._e()],1)})),0)})),0)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e,n){"use strict";var r=n(60),i=n(149);function o(t,e){var n;return!1!==t.fullWidthBreakoutRowCadence&&(e._rows.length+1)%t.fullWidthBreakoutRowCadence==0&&(n=!0),new i({top:e._containerHeight,left:t.containerPadding.left,width:t.containerWidth-t.containerPadding.left-t.containerPadding.right,spacing:t.boxSpacing.horizontal,targetRowHeight:t.targetRowHeight,targetRowHeightTolerance:t.targetRowHeightTolerance,edgeCaseMinRowHeight:.5*t.targetRowHeight,edgeCaseMaxRowHeight:2*t.targetRowHeight,rightToLeft:!1,isBreakoutRow:n,widowLayoutStyle:t.widowLayoutStyle})}function a(t,e,n){return e._rows.push(n),e._layoutItems=e._layoutItems.concat(n.getItems()),e._containerHeight+=n.height+t.boxSpacing.vertical,n.items}t.exports=function(t,e){var n={},i={},s={containerWidth:1060,containerPadding:10,boxSpacing:10,targetRowHeight:320,targetRowHeightTolerance:.25,maxNumRows:Number.POSITIVE_INFINITY,forceAspectRatio:!1,showWidows:!0,fullWidthBreakoutRowCadence:!1,widowLayoutStyle:"left"},c={},u={};return n=r(s,e=e||{}),c.top=isNaN(parseFloat(n.containerPadding.top))?n.containerPadding:n.containerPadding.top,c.right=isNaN(parseFloat(n.containerPadding.right))?n.containerPadding:n.containerPadding.right,c.bottom=isNaN(parseFloat(n.containerPadding.bottom))?n.containerPadding:n.containerPadding.bottom,c.left=isNaN(parseFloat(n.containerPadding.left))?n.containerPadding:n.containerPadding.left,u.horizontal=isNaN(parseFloat(n.boxSpacing.horizontal))?n.boxSpacing:n.boxSpacing.horizontal,u.vertical=isNaN(parseFloat(n.boxSpacing.vertical))?n.boxSpacing:n.boxSpacing.vertical,n.containerPadding=c,n.boxSpacing=u,i._layoutItems=[],i._awakeItems=[],i._inViewportItems=[],i._leadingOrphans=[],i._trailingOrphans=[],i._containerHeight=n.containerPadding.top,i._rows=[],i._orphans=[],n._widowCount=0,function(t,e,n){var r,i,s,c=[];return t.forceAspectRatio&&n.forEach((function(e){e.forcedAspectRatio=!0,e.aspectRatio=t.forceAspectRatio})),n.some((function(n,s){if(isNaN(n.aspectRatio))throw new Error("Item "+s+" has an invalid aspect ratio");if(i||(i=o(t,e)),r=i.addItem(n),i.isLayoutComplete()){if(c=c.concat(a(t,e,i)),e._rows.length>=t.maxNumRows)return i=null,!0;if(i=o(t,e),!r&&(r=i.addItem(n),i.isLayoutComplete())){if(c=c.concat(a(t,e,i)),e._rows.length>=t.maxNumRows)return i=null,!0;i=o(t,e)}}})),i&&i.getItems().length&&t.showWidows&&(e._rows.length?(s=e._rows[e._rows.length-1].isBreakoutRow?e._rows[e._rows.length-1].targetRowHeight:e._rows[e._rows.length-1].height,i.forceComplete(!1,s)):i.forceComplete(!1),c=c.concat(a(t,e,i)),t._widowCount=i.getItems().length),e._containerHeight=e._containerHeight-t.boxSpacing.vertical,e._containerHeight=e._containerHeight+t.containerPadding.bottom,{containerHeight:e._containerHeight,widowCount:t._widowCount,boxes:e._layoutItems}}(n,i,t.map((function(t){return t.width&&t.height?{aspectRatio:t.width/t.height}:{aspectRatio:t}})))}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid-Rows",attrs:{id:"js-grid-Rows"}},[t.ready?t._l(t.getGridImages,(function(e,r){return n("figure",{key:r,staticClass:"grid-Item image-Item_Content",class:t.imageWeightClass(e),style:t.lastItemInRow(r),attrs:{"data-unpublished":t.published(e)}},[n("div",{staticClass:"grid-Image",style:t.justifiedImageDimensions(r)},[e?n("div",[n("navigation-link",{staticClass:"grid-Item_ViewerLink",attrs:{route:t.routeLink(e,r),url:t.externalLink(e)}}),t._v(" "),n("image-loader",{class:[t.orientationClass(e)],style:t.justifiedImageDimensions(r),attrs:{dynamicSizeAndDpr:!0,fullScreen:t.fullScreen(),image:e,intersectionTreshold:.25,lazyLoad:!0,lazyLoadRoot:t.lazyLoadContainer,showVideoIcon:t.showVideoIcon(),size:t.imageSize,videoAutoplay:t.page.videoAutoplay,videoControlsEnabled:t.showVideoControls(),name:"grid"}})],1):t._e()]),t._v(" "),e&&t.page.imagegridCaptionEnabled?n("caption-item",{staticClass:"grid-Item_Caption",attrs:{title:e.name,description:e.description,"page-id":e.id,"show-placeholders":t.showCaptionPlaceholders}}):t._e()],1)})):t._e()],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"grid-Items image-Item item",attrs:{"data-page":t.page.type,"data-site-layout":t.site.layout,"data-content-spacing":t.contentSpacingHelper(t.page.contentSize,t.site,t.page),"data-page-gutter":t.page.imagegridGutters,"data-content-alignment":t.site.contentAlignment,"data-imagegrid-layout":t.page.imagegridLayout,"data-imagegrid-columns":t.page.imagegridColumns,"data-imagegrid-align":t.page.imagegridAlign,"data-imagegrid-horizontal-align":t.page.imagegridHorizontalAlign,"data-imagegrid-viewer-enabled":t.imagegridViewerEnabled,"data-media-fit":t.page.coverMediaFit,"data-site-showcontentbackground":t.showContentBackground(),"data-item-position":t.itemPosition,"data-page-menu-representation":t.page.menu_representation,"data-breakpoint":this.$mq}},[n(t.gridType,{tag:"component",attrs:{page:t.page,parent:t.parent,images:t.images,site:t.site}})],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container",attrs:{"data-site-layout":t.site.layout,"data-showdescription":t.page.showDescription||"false","data-imagegrid-layout":t.page.imagegridLayout,"data-content-spacing":t.contentSpacingHelper(t.page.contentSize,t.site,t.page),"data-imagegrid-columns":t.page.imagegridColumns,"data-imagegrid-ratio":t.page.imagegridRatio,"data-imagegrid-align":t.page.imagegridAlign,"data-content-alignment":t.site.contentAlignment,"data-breakpoint":this.$mq,"data-site-showcontentbackground":t.showContentBackground()}},[n("div",{staticClass:"content-Vertical"},[t.page.showDescription?n("page-description",{attrs:{page:t.page,contentSpacing:t.contentSpacingHelper(t.page.contentSize,t.site,t.page)}}):t._e(),t._v(" "),n("grid-item",{attrs:{type:"grid",page:t.page,images:t.images,site:t.site}})],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-Logo",class:t.site.logoType,attrs:{"data-site-logo-size":t.site.logoSize,"data-site-logo-bold":t.site.logotypeBold,"data-invert-colors":t.invertColors()}},[n("h1",{staticClass:"header-Logo_Wrap",on:{click:t.logoClick}},[n("router-link",{attrs:{to:{name:"homepage"}}},[t.isImage()?n("img",{attrs:{src:t.imageSrc,alt:t.getText}}):n("span",{style:t.cssColor()},[t._v(t._s(t.getText))])])],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.isOverlay?"menu-Overlay-menu":"menu",t.name],attrs:{"data-breakpoint":this.$mq,"data-link-decoration":t.site.linkDecoration}},[t.isPrimary?n("div",[t.getMenu(1)?n("menu-items",{attrs:{items:t.getMenu(1).items,overlay:t.overlay,site:t.site,page:t.page}}):t._e()],1):t._e(),t._v(" "),t.isSecondary?n("div",[t.getMenu(2)?n("menu-items",{attrs:{items:t.getMenu(2).items,overlay:t.overlay,site:t.site,page:t.page}}):t._e()],1):t._e()])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"menu-Items"},t._l(t.items,(function(e){return n("li",{key:e.id,ref:"menuParent",refInFor:!0,class:[t.isOverlay?"menu-item-overlay":"menu-Item"]},[n("navigation-link",{class:t.navLinkClass(e),attrs:{exactRoute:t.exactRoute(e),route:t.menuRoute(e),url:t.menuUrl(e)},nativeOn:{click:function(n){return t.toggleSubmenu(e,n)}}},["none"!==e.icon?n("icon-base",{staticClass:"menu-Icon",attrs:{icon:t.SocialIcons[e.icon],label:t.iconLabel(e)}}):t._e(),t._v(" "),t.hideText(e)?t._e():[t._v(t._s(e.title))]],2),t._v(" "),t.isSubmenuOpen(e)?n("ul",{staticClass:"menu-Items_Submenu",style:{backgroundColor:t.submenuBackgroundColor,width:t.submenuWidth}},t._l(e.children,(function(r){return n("li",{key:r.id},[t.showSubPage(e)?n("navigation-link",{class:t.navLinkClass(r),attrs:{exactRoute:t.exactRoute(r),route:t.menuRoute(r),url:t.menuUrl(r)},nativeOn:{click:function(e){return t.clickSubmenuItem()}}},["none"!==r.icon?n("icon-base",{staticClass:"menu-Icon",attrs:{icon:t.SocialIcons[r.icon],label:t.iconLabel(r)}}):t._e(),t._v(" "),t.hideText(r)?t._e():[t._v(t._s(t.widont(r.title)))]],2):t._e()],1)})),0):t._e()],1)})),0)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",[n("div",{staticClass:"header header-Item",style:t.colors(),attrs:{"data-page":t.page.type,"data-page-menu-representation":t.menuRepresentation(t.page,t.$route,t.$mq),"data-site-layout":t.site.layout,"data-site-layout-variation":t.site.layoutVariation,"data-content-width-horizontal":t.site.contentWidthHorizontal,"data-site-showcontentbackground":t.showContentBackground(),"data-site-logo-type":t.site.logoType,"data-site-logo-size":t.site.logoSize,"data-horizontalscroll-size":t.contentSpacingHelper(t.page.horizontalscrollSize,t.site,t.page),"data-slideshow-size":t.contentSpacingHelper(t.page.slideshowSize,t.site,t.page),"data-logo-invisible":t.page.logoDisabled||"false","data-menu-invisible":t.page.menuDisabled||"false","data-breakpoint":this.$mq,"data-live-site":t.$liveSite||"false","data-site-mobile-header-enabled":t.site.mobileHeaderEnabled||"false"}},[n("logo",{staticClass:"header-Item_Content",attrs:{site:t.site,page:t.page}}),t._v(" "),n("div",{staticClass:"header-OverlayPage_Close",on:{click:function(e){return t.closeOverlayPage()}}},[n("icon-base",{staticClass:"inline",attrs:{label:"next",icon:t.UiBase.cross,height:24,width:24}})],1),t._v(" "),t.isMobileAndNotEmpty?n("hamburger-item",{staticClass:"menu-Mobile_Hamburger",attrs:{textColor:t.textColor,active:t.isMenuOverlayOpen},on:{openMobileMenu:t.openOverlay}}):t._e(),t._v(" "),t.isMobileAndNotEmpty?t._e():[n("menu-component",{attrs:{name:"menu-Primary",site:t.site,page:t.page,menuSlot:"primary"},on:{openOverlay:t.openOverlay}}),t._v(" "),n("menu-component",{attrs:{name:"menu-Secondary",site:t.site,page:t.page,menuSlot:"secondary"},on:{openOverlay:t.openOverlay}})],t._v(" "),n("transition",{attrs:{name:"contentOverlay"}},[t.isMenuOverlayOpen?n("div",{staticClass:"menu-Overlay",style:{backgroundColor:t.mobileBackgroundColor(),color:t.textColor},on:{click:t.openOverlay}},[n("div",{staticClass:"menu-Overlay_Wrapper"},[n("menu-component",{attrs:{name:"menu-Overlay_primary",site:t.site,page:t.page,menuSlot:"primary",overlay:!0}}),t._v(" "),n("menu-component",{attrs:{name:"menu-Overlay_secondary",site:t.site,page:t.page,menuSlot:"secondary",overlay:!0}})],1)]):t._e()])],2),t._v(" "),"small"===this.$mq?n("div",{staticClass:"header menu-Spacer",attrs:{"data-breakpoint":this.$mq,"data-site-logo-size":t.site.logoSize,"data-site-mobile-header-enabled":t.site.mobileHeaderEnabled||"false","aria-hidden":"true"}},[n("logo",{staticClass:"header-Item_Content",attrs:{site:t.site,page:t.page}})],1):t._e()])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ui-Hamburger header-Item_Content",on:{click:function(e){return t.openMobileMenu()}}},[n("div",{staticClass:"ui-Hamburger_Wrapper"},[n("span",{staticClass:"ui-Hamburger_Outer ui-Hamburger_Top_Outer"},[n("span",{staticClass:"ui-Hamburger_Top ui-Hamburger_Inner",style:{background:t.textColor}})]),t._v(" "),n("span",{staticClass:"ui-Hamburger_Outer ui-Hamburger_Bottom_Outer"},[n("span",{staticClass:"ui-Hamburger_Bottom ui-Hamburger_Inner",style:{background:t.textColor}})])])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("caption-item",{directives:[{name:"show",rawName:"v-show",value:t.captionHasContent,expression:"captionHasContent"}],staticClass:"caption-Overflow",class:[t.isOverflownCssClasses,t.isExpandedCssClasses],style:t.captionCssStyles,attrs:{title:t.$attrs.title,description:t.$attrs.description,"page-id":t.$attrs["page-id"],"show-placeholders":t.$attrs["show-placeholders"],"part-of-blank-page-grid":t.$attrs["part-of-blank-page-grid"]},nativeOn:{click:function(e){return e.stopPropagation(),t.toggle()}},scopedSlots:t._u([{key:"after",fn:function(){return[n("div",{staticClass:"caption-Overflow-hide",style:t.hideTextCssStyles}),t._v(" "),n("button",{staticClass:"caption-Overflow-toggle",style:t.moreTextCssStyles(100)},[t._t("default",(function(){return[n("icon-base",{staticClass:"caption-OverflowIcon",attrs:{icon:t.SlideshowIcons.readMore}})]}))],2)]},proxy:!0}],null,!0)},[t._v(" "),t._t("default")],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container",attrs:{id:"row-container-js-bind","data-breakpoint":this.$mq,"data-description":t.page.showDescription||"false","data-horizontal-viewer-enabled":t.page.horizontalViewerEnabled,"data-horizontalscroll-align":t.page.horizontalscrollAlign,"data-horizontalscroll-type":t.page.horizontalscrollType,"data-page":t.page.type,"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground()}},[n("div",{staticClass:"content-Horizontal",attrs:{id:"js-row"},on:{scroll:t.scrollEvent}},[t.page.showDescription?n("page-description",{attrs:{id:"item0",page:t.page,"data-item-position":"0","data-description-alignment":t.page.rowDescriptionAlignment,contentSpacing:t.contentSpacingHelper(t.page.horizontalscrollSize,t.site,t.page),"page-description":""}}):t._e(),t._v(" "),"small"!==this.$mq&&t.showNext?n("div",{staticClass:"row-Next"},[n("icon-base",{staticClass:"arrowRight",attrs:{label:"next",icon:t.SlideshowUi.arrowRight,height:24,width:24},on:{click:function(e){return t.navigate("next")}}})],1):t._e(),t._v(" "),n("div",{ref:"rowContent",staticClass:"row-Items image-Item item",attrs:{id:"js-row-Items","data-breakpoint":this.$mq,"data-content-spacing":t.contentSpacingHelper(t.page.horizontalscrollSize,t.site,t.page),"data-horizontal-viewer-enabled":t.page.horizontalViewerEnabled,"data-horizontalscroll-type":t.page.horizontalscrollType,"data-item-position":t.itemPosition,"data-page-gutter":t.page.horizontalscrollGutters,"data-page":t.page.type,"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground(),"data-page-captions-enabled":t.page.horizontalCaptionEnabled}},t._l(t.getRowImages,(function(e,r){return n("figure",{key:t.itemKey(r),ref:t.itemKey(r),refInFor:!0,staticClass:"row-Item image-Item_Content",class:[t.imageWeightClass(e),t.orientationClass(e)],style:t.getScrollItemSize(e),attrs:{id:t.itemKey(r)}},[n("div",{staticClass:"row-Image",style:t.getScrollItemSize(e),on:{click:function(n){return t.click(e,n)}}},[n("image-loader",{style:t.getScrollItemSize(e),attrs:{name:"horizontal",image:e,size:t.imageSize,videoAutoplay:t.page.videoAutoplay,videoControlsEnabled:t.page.videoControls,intersectionTreshold:t.intersectionTreshold,lazyLoad:!0,lazyLoadRoot:t.lazyLoadRoot}})],1),t._v(" "),e&&t.page.horizontalCaptionEnabled?n("caption-overflow",{staticClass:"row-Item_Caption",attrs:{title:e.name,description:e.description,"page-id":e.id,"background-color":t.pageBg(),"caption-hidden-height":t.captionHiddenHeight,"show-placeholders":!t.$liveSite}}):t._e()],1)})),0)],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"content-Container",attrs:{"data-site-layout":t.site.layout,"data-site-layout-variation":t.site.layoutVariation,"data-index-layout":t.page.indexLayout,"data-imagegrid-layout":t.page.imagegridLayout,"data-imagegrid-ratio":t.page.imagegridRatio,"data-imagegrid-align":t.page.imagegridAlign,"data-index-text-media":t.page.indexTextMediaSize,"data-index-menu":t.indexMenu,"data-overlay":t.menuRepresentation,"data-index-text-size":t.page.indexTextSize,"data-index-text-layout":t.page.indexTextLayout,"data-imagegrid-columns":t.page.imagegridColumns,"data-content-alignment":t.site.contentAlignment,"data-content-spacing":t.contentSpacingHelper(t.page.contentSize,t.site,t.page),"data-site-showcontentbackground":t.showContentBackground(),"data-breakpoint":this.$mq}},[n("div",{staticClass:"content-Vertical"},[t.isIndexGrid?[t.page.showDescription?n("page-description",{attrs:{page:t.page}}):t._e(),t._v(" "),n("grid-item",{attrs:{type:"index",page:t.page,images:t.gridItems,site:t.site}})]:[t._l(t.pageChildrenData,(function(e,r){return n("div",{key:e.id,staticClass:"index-Image"},[t.coverImage(e)?n("image-loader",{directives:[{name:"show",rawName:"v-show",value:t.activeHoverImage(r),expression:"activeHoverImage(index)"}],attrs:{name:"indexhoverimage",image:t.coverImage(e),size:t.imageSize}}):t._e()],1)})),t._v(" "),n("div",{staticClass:"index-Text"},[n("ul",{staticClass:"text-Item_Content",style:{top:t.topMargin+"px"}},t._l(t.pageChildrenData,(function(e,r){return n("li",{key:e.id},[n("navigation-link",{attrs:{route:t.menuRoute(e),url:t.menuUrl(e)}},[n("h3",{on:{mouseover:function(e){return t.showHoverImage(r)},mouseout:function(e){return t.showHoverImage(null)}}},["none"!==e.icon?n("icon-base",{staticClass:"menu-Icon",attrs:{icon:t.SocialIcons[e.icon],label:t.iconLabel(e)}}):t._e(),t._v(" "),t.hideText(e)?t._e():[t._v(t._s(e.title))]],2)])],1)})),0),t._v(" "),t.pageChildrenData.length<1?n("ul",{style:{top:t.topMargin+"px"}},[n("li",[n("h3",[t._v("No items in "+t._s(t.placeholderText))])])]):t._e()])]],2)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this.$createElement;return(this._self._c||t)("div")},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"caption-Count",style:t.counterCssStyles(),attrs:{"data-small-variant":t.smallVariant}},[n("p",[n("span",{staticClass:"caption-Count_Navigation",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.previous()}}},[n("icon-base",{staticClass:"caption-Count_Icon",attrs:{label:"previous",icon:t.SlideshowUi.arrowLeft,height:24,width:24}})],1),t._v("\n    "+t._s(t.count)+" / "+t._s(t.total)+"\n    "),n("span",{staticClass:"caption-Count_Navigation",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.next()}}},[n("icon-base",{staticClass:"caption-Count_Icon",attrs:{label:"next",icon:t.SlideshowUi.arrowRight,height:24,width:24}})],1)])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showCaption()||t.showCount?n("div",{staticClass:"slideshow-Footer footer-Item",class:{"is-loading":t.isLoading},attrs:{"data-site-layout":t.siteLayout(),"data-site-layout-variation":t.site.layoutVariation,"data-media-fit":t.page.coverMediaFit,"data-slideshow-caption":t.page.slideshowShowCaption||"false","data-slideshow-count":t.showCount||"false",showimagetitle:t.page.slideshowShowImageTitleEnabled,"data-content-spacing":t.contentSpacingHelper(t.page.slideshowSize,t.site,t.page),"data-site-showcontentbackground":t.showContentBackground(),"data-part-of-blank-page":t.onBlankPage||"false","data-breakpoint":this.$mq}},[t.showCaption()?n("caption-overflow",{key:"caption_"+t.image.id,staticClass:"slideshow-Footer_Caption",attrs:{title:t.image.name,description:t.image.description,"page-id":t.image.id,"background-color":t.backgroundColor,"caption-hidden-height":t.captionHiddenHeight,"part-of-blank-page-grid":t.onBlankPageGrid},nativeOn:{click:function(t){t.preventDefault(),t.stopPropagation()}}}):t._e(),t._v(" "),t.showCount?n("slideshow-counter",{staticClass:"slideshow-Footer_Count",style:{marginBottom:t.captionHiddenHeight+"px"},attrs:{"background-color":t.backgroundColor,page:t.page,images:t.images,imageIndex:t.imageIndex}}):t._e()],1):t._e()},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container",attrs:{"data-breakpoint":this.$mq,"data-content-alignment":t.site.contentAlignment,"data-content-spacing":t.contentSpacingHelper(t.page.slideshowSize,t.site,t.page),"data-page":t.page.type,"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground(),"data-slideshow-caption":t.page.slideshowShowCaption||"false","data-slideshow-count":t.page.slideshowShowCount||"false","data-slideshow-description":t.showDescription||"false"}},[n("div",{staticClass:"content-Stationary",attrs:{"data-page":t.page.type}},[n("transition",{attrs:{name:"contentOverlay"}},[t.showDescription?n("page-description",{style:t.descriptionBackground(),attrs:{page:t.page},nativeOn:{click:function(e){return t.hideDescriptionOnClick()}}}):t._e()],1),t._v(" "),n("slideshow-item",{attrs:{"data-slideshow-footer-enabled":t.page.slideshowShowCaption||t.page.slideshowShowCount,"data-slideshow-caption":t.page.slideshowShowCaption||"false","data-slideshow-count":t.page.slideshowShowCount||"false",descriptionOpen:t.descriptionOpen,imageIndex:t.imageIndex,images:t.images,page:t.page,site:t.site,routerName:"slideshow"}},[n("slideshowfooter-item",{style:t.slideshowFooterStyle(),attrs:{"background-color":t.pageBg(),"caption-hidden-height":t.currentHiddenHeight,"image-index":t.imageIndex,images:t.images,page:t.page,"show-count":t.page.slideshowShowCount,site:t.site}})],1)],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{staticClass:"content-Container",attrs:{"data-page":"viewer","data-site-layout":"Horizontal","data-content-spacing":t.page.slideshowSize,"data-slideshow-caption":t.page.viewerCaption||"false","data-slideshow-count":t.page.viewerCount||"false","data-site-showcontentbackground":t.showContentBackground(),"data-breakpoint":this.$mq}},[n("div",{staticClass:"slideshowViewer-Header header-Item",style:t.backCssStyles()},[n("p",{staticClass:"header-Item_Content header-SlideshowViewer",on:{click:function(e){return e.preventDefault(),t.goBack()}}},[n("span",{staticClass:"header-Item_Content caption"},[n("icon-base",{staticClass:"header-Item_Back",attrs:{label:"previous",icon:t.SlideshowUi.arrowLeft,height:24,width:24}})],1)])]),t._v(" "),n("div",{staticClass:"content-Stationary",attrs:{"data-page":"viewer"}},[n("slideshow-item",{attrs:{"data-slideshow-caption":t.page.slideshowShowCaption||"false","data-slideshow-count":t.page.slideshowShowCount||"false","data-slideshow-footer-enabled":t.page.slideshowShowCaption||t.page.slideshowShowCount,imageIndex:t.imageIndex,images:t.images,page:t.page,site:t.site,routerName:"viewer"}},[n("slideshowfooter-item",{attrs:{"background-color":t.pageBg(),"caption-hidden-height":t.captionHiddenHeight,"image-index":t.imageIndex,images:t.images,page:t.page,"show-count":t.page.slideshowShowCount,site:t.site}})],1)],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("slideshow-item",t._b({style:t.styles(),attrs:{growWithContent:t.growWithContent,imageRatio:t.ratio,images:t.image,itemPosition:t.itemPosition,page:t.page,position:t.position,site:t.site,useRatio:!1,routerName:"inline"},nativeOn:t._d({},[t.clickEvent(),function(e){return t.onClick.apply(null,arguments)}])},"slideshow-item",t.$attrs,!1),[t._t("default")],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$liveSite?n("navigation-link",{attrs:{route:t.linkRoute(),url:t.linkUrl()}},[t._t("default")],2):n("span",[t._t("default"),t._v(" "),n("v-popover",{staticClass:"popover-hyperlink",attrs:{placement:"top-start",popoverClass:"tooltip-hyperlink"}},[n("span",{staticClass:"popover-hyperlink-trigger"}),t._v(" "),n("template",{slot:"popover"},[t._v("\n      go to\n      "),n("navigation-link",{attrs:{route:t.linkRoute(),url:t.linkUrl()}},[t._v("\n        "+t._s(t.url||t.internalPath())+"\n      ")])],1)],2)],2)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text-Item item",style:t.contentStyle(),attrs:{"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground(),"data-text-columns":t.textColumns(),"data-content-alignment":t.site.contentAlignment,"data-live":this.$liveSite,"data-breakpoint":this.$mq,"data-item-width":t.page.indexGridItemWidth,"data-item-grow":t.page.indexGridItemGrow,"data-item-bottom-spaced":t.hasBottomSpacing(),"data-item-has-cta":t.hasCtaButton(),"data-item-vertical-alignment":t.verticalAlign()}},[t.hasOverflowGradient()?n("span",{staticClass:"text-Item_OverflowGradient-top",style:t.gradient(0)}):t._e(),t._v(" "),n("div",{staticClass:"text-Item_Content"},[n("div",{staticClass:"textcontent"},[t.$liveSite?n("quill-live",{attrs:{name:"textContent1",content:t.page.textContent1,pageId:t.page.id}}):n("quill-editor",{attrs:{name:"textContent1",editorId:t.createId("textContent1",t.page.id),content:t.page.textContent1,pageId:t.page.id,position:t.position},on:{textChange:t.textChange,editorSelected:t.editorSelected}})],1),t._v(" "),t.secondColumn?n("div",{staticClass:"textcontent"},[t.$liveSite?n("quill-live",{attrs:{name:"textContent2",content:t.page.textContent2,pageId:t.page.id}}):n("quill-editor",{attrs:{name:"textContent2",editorId:t.createId("textContent2",t.page.id),content:t.page.textContent2,pageId:t.page.id,position:t.position},on:{textChange:t.textChange,editorSelected:t.editorSelected}})],1):t._e()]),t._v(" "),t.hasCtaButton()?n("div",{staticClass:"grid-ItemFooter"},[n("div",{staticClass:"grid-ItemFooter_Inner"},[n("hyperlink",{staticClass:"cta-Button",style:t.ctaButtonStyle,attrs:{url:t.page.ctaUrl,internalLinkId:t.page.ctaPageId,overlayLink:t.page.ctaOverlay}},[t._v("\n        "+t._s(t.page.ctaLabel)+"\n      ")])],1)]):t._e(),t._v(" "),t.hasOverflowGradient()?n("span",{staticClass:"text-Item_OverflowGradient-bottom",style:t.gradient(180)}):t._e()])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"plusButton"},[n("div",{staticClass:"plusButton-Container"},[n("icon-button",{attrs:{name:"addPageItem",icon:t.UiBaseIcons.plus,"aria-label":"Add new block",variant:"secondary large"},nativeOn:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.openItemModal()}}}),t._v(" "),!t.lastItem(t.rank)&&t.rank>-1?n("icon-button",{attrs:{name:"movePageItemDown",icon:t.UiBaseIcons.arrowDown,"aria-label":"Move the previous block down",variant:"secondary large"},nativeOn:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.move(t.rank,1)}}}):t._e(),t._v(" "),t.rank>0?n("icon-button",{attrs:{name:"movePageItemUp",icon:t.UiBaseIcons.arrowUp,"aria-label":"Move the previous block up",variant:"secondary large"},nativeOn:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.move(t.rank,-1)}}}):t._e()],1)])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container stack",attrs:{"page-type":t.page.type,"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground(),"data-live":this.$liveSite||"false","data-content-alignment":t.site.contentAlignment,"data-breakpoint":this.$mq,"data-blank-page-type":t.page.indexLayout}},[n("div",{ref:"textContent",staticClass:"content-Vertical"},[n("div",{class:{"grid-Item image-Item item":t.isGridLayout()},attrs:{"data-imagegrid-columns":t.page.imagegridColumns,"data-imagegrid-align":t.page.imagegridAlign,"data-content-spacing":t.contentSpacingHelper(t.page.contentSize,t.site,t.page),"data-page-gutter":t.page.imagegridGutters,"data-site-showcontentbackground":t.showContentBackground()}},[t._l(t.pageChildrenData,(function(e,r){return n("div",{key:r,ref:"stack-Item",refInFor:!0,staticClass:"stack-Item item",class:[{active:t.isActiveItem(e.id),"stack-Item_Slideshow":t.isSlideshow(e.id)},t.imagePageType(e.type)],style:t.contentStyle(e.backgroundColor),attrs:{"data-item-width":e.indexGridItemWidth,"data-item-grow":t.growWithContent(e),"data-imagegrid-ratio":t.indexGridRatio(e.indexGridItemWidth),id:t.idAttribute(e.id)},on:t._d({mouseover:function(n){return t.showPlusButton(e.id)},mouseleave:function(e){return t.hidePlusButton()}},[t.selectClickEvent(e),function(n){return t.selectItem(e.id)}])},[t.isItemType("text",e.id)?n("text-item",{attrs:{site:t.site,page:e,parent:t.page,activeItem:t.itemPageId,position:t.childPosition(e.id),clickOutside:!1}}):t._e(),t._v(" "),t.isSlideshow(e.id)?n("slideshow-item",{attrs:{"grow-with-content":t.growWithContent(e),"has-inline-style":t.isGridLayout(),"image-index":t.imageIndex,"image-ratio":t.imageRatio(e),images:t.imagesForItemPage(e.id),"item-position":r,"key-binds":!1,page:e,parent:t.page,position:t.childPosition(e.id),site:t.site,"use-content-spacing":t.useContentSpacing(e),"use-ratio":t.useRatio(e),"router-name":"inline"}},[t.showSlideshowFooter(e)?n("slideshowfooter-item",{staticClass:"stack-Footer",attrs:{"background-color":t.itemBg(e),"caption-hidden-height":0,"image-index":t.imageIndex,images:t.imagesForItemPage(e.id),page:e,parent:t.page,"show-count":e.slideshowShowCount,site:t.site}}):t._e()],1):t._e(),t._v(" "),t.isItemType("image",e.id)?n("image-item",{attrs:{page:e,parent:t.page,site:t.site,images:t.imagesForItemPage(e.id),position:t.childPosition(e.id),itemPosition:r,hasInlineStyle:t.isGridLayout(),ratio:t.imageRatio(e),growWithContent:t.growWithContent(e)}},[t.showImageCaption(e)?n("div",{staticClass:"image-Footer footer-Item stack-Footer"},[n("caption-overflow",{staticClass:"image-Footer_Caption",attrs:{"background-color":t.itemBg(e),"caption-hidden-height":0,description:t.imageDescription(e),"page-id":e.id,title:t.imageName(e),"part-of-blank-page-grid":t.isBlankPageGrid(t.page)}})],1):t._e()]):t._e(),t._v(" "),t.isGrid(e.id)?n("grid-item",{attrs:{type:"grid",page:e,parent:t.page,site:t.site,images:t.imagesForItemPage(e.id),itemPosition:r}}):t._e(),t._v(" "),n("transition",{attrs:{name:"overlay"}},[!t.$liveSite&&t.activeHoverItem(e.id)&&"small"!==t.$mq?n("stack-add-item",{attrs:{parentPage:t.parentPage,page:e,itemPageId:t.itemPageId,rank:r,total:t.total}}):t._e()],1)],1)})),t._v(" "),!t.$liveSite&&t.isStackEmpty?n("div",{staticClass:"stack-Item empty"},[t.$liveSite?t._e():n("stack-add-item",{attrs:{parentPage:t.parentPage,page:t.page,itemPageId:void 0,rank:-1}})],1):t._e()],2)])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"tags-List"},t._l(t.tags,(function(e){return t.tags?n("a",{key:e.text,staticClass:"tag",on:{click:function(n){return t.selectTag(e.text)}}},[t._v("#"+t._s(e.text))]):t._e()})),0)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{staticClass:"tag-Menu",style:t.menuBg,attrs:{"data-show-minified":t.showMinified}},[n("h2",{attrs:{role:"presentation"}},[t._v(" ")]),t._v(" "),n("div",{staticClass:"tag-Menu_wrap",style:t.menuWrapBg},[n("div",{staticClass:"tag-Menu_flex"},[n("div",{staticClass:"tag-Menu_selectedTag",on:{mouseover:function(e){return t.openMenu()},mouseleave:function(e){return t.closeMenu()}}},[n("h2",[t._v(t._s(t.tag||"All"))])]),t._v(" "),t.tag?n("div",{staticClass:"tag-Menu_clearTag",on:{click:function(e){return t.clearTag()}}},[t._v("\n         "),n("svg",{attrs:{width:"23px",height:"23px",viewBox:"0 0 23 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("g",{attrs:{id:"FLOW_SELECTED",transform:"translate(-661.000000, -48.000000)",stroke:"#000000"}},[n("g",{attrs:{id:"Group",transform:"translate(661.000000, 48.000000)"}},[n("line",{attrs:{x1:"0.5",y1:"0.5",x2:"22.5",y2:"22.5",id:"Line"}}),t._v(" "),n("line",{attrs:{x1:"0.5",y1:"22.5",x2:"22.5",y2:"0.5",id:"Line"}})])])])])]):t._e()]),t._v(" "),t.open?n("ul",{staticClass:"tag-Menu_foldout",style:{backgroundColor:t.tagMenuBackgroundColor},on:{mouseover:function(e){return t.openMenu()},mouseleave:function(e){return t.closeMenu()}}},t._l(t.tags,(function(e){return n("li",{key:e,on:{click:function(n){return t.selectTag(e)}}},[t._v("\n        "+t._s(e)+"\n      ")])})),0):t._e()])]):t._e()},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("main",{key:t.page.id,staticClass:"content-Container stack",attrs:{"page-type":t.page.type,"data-site-layout":t.site.layout,"data-site-showcontentbackground":t.showContentBackground(),"data-live":this.$liveSite||"false","data-content-alignment":t.site.contentAlignment,"data-breakpoint":this.$mq,"data-blank-page-type":t.page.indexLayout}},[n("div",{ref:"textContent",staticClass:"content-Vertical"},[n("div",{attrs:{"data-site-showcontentbackground":t.showContentBackground()}},[n("tag-menu",{attrs:{show:t.showTagMenu(),tag:t.tag,tags:t.tagMenuItems(),page:t.page,site:t.site},on:{clearTag:t.clearTag,selectTag:t.selectTag}}),t._v(" "),n("transition-group",{attrs:{name:"page-fade"}},t._l(t.items(),(function(e,r){return n("div",{key:e.id,ref:"stack-Item",refInFor:!0,staticClass:"stack-Item item blog-Item",class:[{active:t.isActiveItem(e.id),unpublished:!e.published}],style:t.itemColors(e.backgroundColor,e.textColor),attrs:{"data-tag":"tag","data-item-width":e.indexGridItemWidth,"data-item-grow":t.growWithContent(e),"data-imagegrid-ratio":t.indexGridRatio(e.indexGridItemWidth),id:t.idAttribute(e.id),"data-page-id":e.id,"data-container":"___STACK ITEM"},on:t._d({mouseover:function(n){return t.showPlusButton(e.id)},mouseleave:function(e){return t.hidePlusButton()}},[t.selectClickEvent(e),function(n){return t.selectItem(e.id)}])},[n("div",{staticClass:"image-Item blog-Item_size",attrs:{"data-container":"___CONTENT SIZE ITEM","data-content-spacing":t.contentSpacingHelper(t.contentSizeForPageType(e),t.site,t.page)}},[n("div",{staticClass:"blog-Item_title"},[n("span",[t._v(t._s(e.title))])]),t._v(" "),n("div",{staticClass:"blog-Item_layout",attrs:{"data-container":"___FLEX ITEM LAYOUT","data-layout":e.layoutDirection,"data-show-text":e.textEnabled}},[e.textEnabled?n("text-item",{attrs:{"data-text-item-alignment":e.textVerticalAlignment,site:t.site,page:e,parent:t.page,activeItem:t.itemPageId,position:t.childPosition(e.id),clickOutside:!1,parentLayout:t.page.indexLayout,"data-item":"description"}}):t._e(),t._v(" "),t.isItemType("text",e.id)?n("text-item",{attrs:{site:t.site,page:e,parent:t.page,activeItem:t.itemPageId,position:t.childPosition(e.id),clickOutside:!1,parentLayout:t.page.indexLayout}}):t._e(),t._v(" "),t.isSlideshow(e.id)?n("slideshow-item",{attrs:{growWithContent:t.growWithContent(e),hasInlineStyle:t.isGridLayout(),imageIndex:t.imageIndex,imageRatio:t.imageRatio(e),images:t.imagesForItemPage(e.id),inline:!0,itemPosition:r,keyBinds:!1,page:e,parent:t.page,position:t.childPosition(e.id),site:t.site,useContentSpacing:t.useContentSpacing(e),useRatio:t.useRatio(e),routerName:"inline"}},[t.showSlideshowFooter(e)?n("slideshowfooter-item",{staticClass:"stack-Footer",attrs:{"background-color":t.itemBg(e),"caption-hidden-height":0,"image-index":t.imageIndex,images:t.imagesForItemPage(e.id),page:e,parent:t.page,"show-count":e.slideshowShowCount,site:t.site}}):t._e()],1):t._e(),t._v(" "),t.isItemType("image",e.id)?n("image-item",{attrs:{page:e,parent:t.page,site:t.site,images:t.imagesForItemPage(e.id),position:t.childPosition(e.id),itemPosition:r,hasInlineStyle:t.isGridLayout(),ratio:t.imageRatio(e),growWithContent:t.growWithContent(e)}},[t.showImageCaption(e)?n("div",{staticClass:"image-Footer footer-Item stack-Footer"},[n("caption-overflow",{staticClass:"image-Footer_Caption",attrs:{"background-color":t.itemBg(e),"caption-hidden-height":0,description:t.imageDescription(e),"page-id":e.id,title:t.imageName(e)}})],1):t._e()]):t._e(),t._v(" "),t.isGrid(e.id)?n("grid-item",{attrs:{type:"grid",page:e,parent:t.page,site:t.site,images:t.imagesForItemPage(e.id),itemPosition:r}}):t._e()],1),t._v(" "),n("div",{staticClass:"blog-Item_footer",attrs:{"data-container":"___FOOTER ITEM"}},[n("h4",[t._v(" ")]),t._v(" "),n("h4",[t._v("\n                "+t._s(e.location)+"\n                ")]),t._v(" "),n("h4",[t._v("\n                "+t._s(t.publishDate(e.orderDate))+"\n                "),n("tags",{attrs:{tags:e.tags},on:{tagSelected:t.selectTag}})],1)])])])})),0),t._v(" "),!t.$liveSite&&t.isStackEmpty?n("div",{staticClass:"stack-Item empty"},[t.$liveSite?t._e():n("stack-add-item",{attrs:{parentPage:t.parentPage,page:t.page,itemPageId:void 0,rank:-1}})],1):t._e()],1)])])},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page",style:t.pageBg(),attrs:{"data-breakpoint":t.$mq,"data-content-spacing":t.contentSpacing,"data-cursor":t.site.cursor,"data-highlighted":!!t.site.highlightColor,"data-horizontalscroll-size":t.horizontalscrollSize(),"data-imagegrid-columns":t.page.imagegridColumns,"data-imagegrid-layout":t.page.imagegridLayout,"data-link-decoration":t.site.linkDecoration,"data-logo-invisible":t.page.logoDisabled||!1,"data-logo-type":t.site.logoType,"data-media-fit":t.page.coverMediaFit,"data-menu-invisible":t.page.menuDisabled||!1,"data-overlay":t.menuRepresentation(t.page,t.$route,t.$mq),"data-page-gutter":t.guttersForPageType(t.page),"data-page-id":t.page.id,"data-page":t.pageType(),"data-site-id":t.site.id,"data-site-layout-variation":t.site.layoutVariation,"data-site-layout":t.siteLayout(),"data-site-logo-size":t.site.logoSize,"data-site-showcontentbackground":t.showContentBackground(),"data-typography-size":t.site.typographySize,"data-typography":t.getTypeFromConfig(t.site.typography)}},[t.isViewer()?t._e():n("header-item",{attrs:{page:t.page,site:t.site,images:t.images,imageIndex:t.imageIndex}}),t._v(" "),n("transition",{attrs:{name:t.transition(),mode:"out-in"},on:{enter:t.enterTransition}},[n(t.contentComponent(t.page),{key:t.page.id,tag:"component",attrs:{page:t.page,site:t.site,images:t.images,imageIndex:t.imageIndex}})],1),t._v(" "),t.isCustomCursor()?n("div",{staticClass:"page-CustomCursor",style:t.customCursorStyles}):t._e()],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";n.r(e);var r,i="undefined"==typeof document?void 0:document,o=!!i&&"content"in i.createElement("template"),a=!!i&&i.createRange&&"createContextualFragment"in i.createRange();function s(t){return t=t.trim(),o?function(t){var e=i.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}(t):a?function(t){return r||(r=i.createRange()).selectNode(i.body),r.createContextualFragment(t).childNodes[0]}(t):function(t){var e=i.createElement("body");return e.innerHTML=t,e.childNodes[0]}(t)}function c(t,e){var n,r,i=t.nodeName,o=e.nodeName;return i===o||(n=i.charCodeAt(0),r=o.charCodeAt(0),n<=90&&r>=97?i===o.toUpperCase():r<=90&&n>=97&&o===i.toUpperCase())}function u(t,e,n){t[n]!==e[n]&&(t[n]=e[n],t[n]?t.setAttribute(n,""):t.removeAttribute(n))}var l={OPTION:function(t,e){var n=t.parentNode;if(n){var r=n.nodeName.toUpperCase();"OPTGROUP"===r&&(r=(n=n.parentNode)&&n.nodeName.toUpperCase()),"SELECT"!==r||n.hasAttribute("multiple")||(t.hasAttribute("selected")&&!e.selected&&(t.setAttribute("selected","selected"),t.removeAttribute("selected")),n.selectedIndex=-1)}u(t,e,"selected")},INPUT:function(t,e){u(t,e,"checked"),u(t,e,"disabled"),t.value!==e.value&&(t.value=e.value),e.hasAttribute("value")||t.removeAttribute("value")},TEXTAREA:function(t,e){var n=e.value;t.value!==n&&(t.value=n);var r=t.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==t.placeholder)return;r.nodeValue=n}},SELECT:function(t,e){if(!e.hasAttribute("multiple")){for(var n,r,i=-1,o=0,a=t.firstChild;a;)if("OPTGROUP"===(r=a.nodeName&&a.nodeName.toUpperCase()))a=(n=a).firstChild;else{if("OPTION"===r){if(a.hasAttribute("selected")){i=o;break}o++}!(a=a.nextSibling)&&n&&(a=n.nextSibling,n=null)}t.selectedIndex=i}}};function f(){}function d(t){if(t)return t.getAttribute&&t.getAttribute("id")||t.id}var p=function(t){return function(e,n,r){if(r||(r={}),"string"==typeof n)if("#document"===e.nodeName||"HTML"===e.nodeName||"BODY"===e.nodeName){var o=n;(n=i.createElement("html")).innerHTML=o}else n=s(n);var a=r.getNodeKey||d,u=r.onBeforeNodeAdded||f,p=r.onNodeAdded||f,h=r.onBeforeElUpdated||f,g=r.onElUpdated||f,v=r.onBeforeNodeDiscarded||f,y=r.onNodeDiscarded||f,m=r.onBeforeElChildrenUpdated||f,b=!0===r.childrenOnly,_=Object.create(null),w=[];function O(t){w.push(t)}function E(t,e,n){!1!==v(t)&&(e&&e.removeChild(t),y(t),function t(e,n){if(1===e.nodeType)for(var r=e.firstChild;r;){var i=void 0;n&&(i=a(r))?O(i):(y(r),r.firstChild&&t(r,n)),r=r.nextSibling}}(t,n))}function S(t){p(t);for(var e=t.firstChild;e;){var n=e.nextSibling,r=a(e);if(r){var i=_[r];i&&c(e,i)?(e.parentNode.replaceChild(i,e),k(i,e)):S(e)}else S(e);e=n}}function k(e,n,r){var o=a(n);if(o&&delete _[o],!r){if(!1===h(e,n))return;if(t(e,n),g(e),!1===m(e,n))return}"TEXTAREA"!==e.nodeName?function(t,e){var n,r,o,s,f,d=e.firstChild,p=t.firstChild;t:for(;d;){for(s=d.nextSibling,n=a(d);p;){if(o=p.nextSibling,d.isSameNode&&d.isSameNode(p)){d=s,p=o;continue t}r=a(p);var h=p.nodeType,g=void 0;if(h===d.nodeType&&(1===h?(n?n!==r&&((f=_[n])?o===f?g=!1:(t.insertBefore(f,p),r?O(r):E(p,t,!0),p=f):g=!1):r&&(g=!1),(g=!1!==g&&c(p,d))&&k(p,d)):3!==h&&8!=h||(g=!0,p.nodeValue!==d.nodeValue&&(p.nodeValue=d.nodeValue))),g){d=s,p=o;continue t}r?O(r):E(p,t,!0),p=o}if(n&&(f=_[n])&&c(f,d))t.appendChild(f),k(f,d);else{var v=u(d);!1!==v&&(v&&(d=v),d.actualize&&(d=d.actualize(t.ownerDocument||i)),t.appendChild(d),S(d))}d=s,p=o}!function(t,e,n){for(;e;){var r=e.nextSibling;(n=a(e))?O(n):E(e,t,!0),e=r}}(t,p,r);var y=l[t.nodeName];y&&y(t,e)}(e,n):l.TEXTAREA(e,n)}!function t(e){if(1===e.nodeType||11===e.nodeType)for(var n=e.firstChild;n;){var r=a(n);r&&(_[r]=n),t(n),n=n.nextSibling}}(e);var C=e,T=C.nodeType,A=n.nodeType;if(!b)if(1===T)1===A?c(e,n)||(y(e),C=function(t,e){for(var n=t.firstChild;n;){var r=n.nextSibling;e.appendChild(n),n=r}return e}(e,function(t,e){return e&&"http://www.w3.org/1999/xhtml"!==e?i.createElementNS(e,t):i.createElement(t)}(n.nodeName,n.namespaceURI))):C=n;else if(3===T||8===T){if(A===T)return C.nodeValue!==n.nodeValue&&(C.nodeValue=n.nodeValue),C;C=n}if(C===n)y(e);else{if(n.isSameNode&&n.isSameNode(C))return;if(k(C,n,b),w)for(var x=0,L=w.length;x<L;x++){var P=_[w[x]];P&&E(P,P.parentNode,!1)}}return!b&&C!==e&&e.parentNode&&(C.actualize&&(C=C.actualize(e.ownerDocument||i)),e.parentNode.replaceChild(C,e)),C}}((function(t,e){var n,r,i,o,a=e.attributes;if(11!==e.nodeType&&11!==t.nodeType){for(var s=a.length-1;s>=0;s--)r=(n=a[s]).name,i=n.namespaceURI,o=n.value,i?(r=n.localName||r,t.getAttributeNS(i,r)!==o&&("xmlns"===n.prefix&&(r=n.name),t.setAttributeNS(i,r,o))):t.getAttribute(r)!==o&&t.setAttribute(r,o);for(var c=t.attributes,u=c.length-1;u>=0;u--)r=(n=c[u]).name,(i=n.namespaceURI)?(r=n.localName||r,e.hasAttributeNS(i,r)||t.removeAttributeNS(i,r)):e.hasAttribute(r)||t.removeAttribute(r)}}));function h(t){return O(t)||v(t)||E(t)||w()}function g(t){return function(t){if(Array.isArray(t))return S(t)}(t)||v(t)||E(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){return O(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||E(t,e)||w()}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(t){if(Array.isArray(t))return t}function E(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e,n){return e&&C(t.prototype,e),n&&C(t,n),t}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)}n.d(e,"debug",(function(){return $})),n.d(e,"Rendered",(function(){return et})),n.d(e,"LiveSocket",(function(){return nt})),n.d(e,"Browser",(function(){return rt})),n.d(e,"DOM",(function(){return it})),n.d(e,"View",(function(){return st}));var x=[1e3,3e3],L="data-phx-view",P=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],R="data-phx-component",I="data-phx-ref",j="data-phx-upload-ref",D="[".concat(L,"]"),N=["text","textarea","number","email","password","search","tel","url","date","time"],M=["checkbox","radio"],F="phx-",B={debounce:300,throttle:300},U=function(t,e){return console.error&&console.error(t,e)},$=function(t,e,n,r){t.liveSocket.isDebugEnabled()&&console.log("".concat(t.id," ").concat(e,": ").concat(n," - "),r)},q=function(t){return"function"==typeof t?t:function(){return t}},H=function(t){return JSON.parse(JSON.stringify(t))},G=function(t,e,n){do{if(t.matches("[".concat(e,"]")))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType&&!(n&&n.isSameNode(t)||t.matches(D)));return null},z=function(t){return null!==t&&"object"===A(t)&&!(t instanceof Array)},V=function(t){for(var e in t)return!1;return!0},K=function(t,e){return t&&e(t)},W=function(){function t(e,n,r){k(this,t),this.ref=Z.genFileRef(n),this.fileEl=e,this.file=n,this.view=r,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){}}return T(t,null,[{key:"isActive",value:function(t,e){var n=void 0===e._phxRef,r=t.getAttribute("data-phx-active-refs").split(",").indexOf(Z.genFileRef(e))>=0;return e.size>0&&(n||r)}},{key:"isPreflighted",value:function(t,e){return t.getAttribute("data-phx-preflighted-refs").split(",").indexOf(Z.genFileRef(e))>=0&&this.isActive(t,e)}}]),T(t,[{key:"metadata",value:function(){return this.meta}},{key:"progress",value:function(t){var e=this;this._progress=Math.floor(t),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,(function(){Z.untrackFile(e.fileEl,e.file),e._onDone()}))):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}},{key:"cancel",value:function(){this._isCancelled=!0,this._isDone=!0,this._onDone()}},{key:"isDone",value:function(){return this._isDone}},{key:"error",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"failed";Z.clearFiles(this.fileEl),this.view.pushFileProgress(this.fileEl,this.ref,{error:t})}},{key:"onDone",value:function(t){this._onDone=t}},{key:"toPreflightPayload",value:function(){return{last_modified:this.file.lastModified,name:this.file.name,size:this.file.size,type:this.file.type,ref:this.ref}}},{key:"uploader",value:function(t){if(this.meta.uploader){var e=t[this.meta.uploader]||U("no uploader configured for ".concat(this.meta.uploader));return{name:this.meta.uploader,callback:e}}return{name:"channel",callback:J}}},{key:"zipPostFlight",value:function(t){this.meta=t.entries[this.ref],this.meta||U("no preflight upload response returned with ref ".concat(this.ref),{input:this.fileEl,response:t})}}]),t}(),Y={LiveFileUpload:{preflightedRefs:function(){return this.el.getAttribute("data-phx-preflighted-refs")},mounted:function(){this.preflightedWas=this.preflightedRefs()},updated:function(){var t=this.preflightedRefs();this.preflightedWas!==t&&(this.preflightedWas=t,""===t&&this.__view.cancelSubmit(this.el.form))}}};Y.LiveImgPreview={mounted:function(){var t=this;this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(j)),Z.getEntryDataURL(this.inputEl,this.ref,(function(e){return t.el.src=e}))}};var X=0,Z=function(){function t(e,n,r){k(this,t),this.view=n,this.onComplete=r,this._entries=Array.from(t.filesAwaitingPreflight(e)||[]).map((function(t){return new W(e,t,n)})),this.numEntriesInProgress=this._entries.length}return T(t,null,[{key:"genFileRef",value:function(t){var e=t._phxRef;return void 0!==e?e:(t._phxRef=(X++).toString(),t._phxRef)}},{key:"getEntryDataURL",value:function(t,e,n){var r=this,i=this.activeFiles(t).find((function(t){return r.genFileRef(t)===e})),o=new FileReader;o.onload=function(t){return n(t.target.result)},o.readAsDataURL(i)}},{key:"hasUploadsInProgress",value:function(t){var e=0;return it.findUploadInputs(t).forEach((function(t){t.getAttribute("data-phx-preflighted-refs")!==t.getAttribute("data-phx-done-refs")&&e++})),e>0}},{key:"serializeUploads",value:function(t){var e=this,n={};return this.activeFiles(t,"serialize").forEach((function(r){var i={path:t.name},o=t.getAttribute(j);n[o]=n[o]||[],i.ref=e.genFileRef(r),i.name=r.name,i.type=r.type,i.size=r.size,n[o].push(i)})),n}},{key:"clearFiles",value:function(t){t.value=null,t.removeAttribute(j),it.putPrivate(t,"files",[])}},{key:"untrackFile",value:function(t,e){it.putPrivate(t,"files",it.private(t,"files").filter((function(t){return!Object.is(t,e)})))}},{key:"trackFiles",value:function(t,e){var n=this;if(null!==t.getAttribute("multiple")){var r=e.filter((function(e){return!n.activeFiles(t).find((function(t){return Object.is(t,e)}))}));it.putPrivate(t,"files",this.activeFiles(t).concat(r)),t.value=null}else it.putPrivate(t,"files",e)}},{key:"activeFileInputs",value:function(t){var e=this,n=it.findUploadInputs(t);return Array.from(n).filter((function(t){return t.files&&e.activeFiles(t).length>0}))}},{key:"activeFiles",value:function(t){return(it.private(t,"files")||[]).filter((function(e){return W.isActive(t,e)}))}},{key:"inputsAwaitingPreflight",value:function(t){var e=this,n=it.findUploadInputs(t);return Array.from(n).filter((function(t){return e.filesAwaitingPreflight(t).length>0}))}},{key:"filesAwaitingPreflight",value:function(t){return this.activeFiles(t).filter((function(e){return!W.isPreflighted(t,e)}))}}]),T(t,[{key:"entries",value:function(){return this._entries}},{key:"initAdapterUpload",value:function(t,e,n){var r=this;this._entries=this._entries.map((function(e){return e.zipPostFlight(t),e.onDone((function(){r.numEntriesInProgress--,0===r.numEntriesInProgress&&r.onComplete()})),e}));var i=this._entries.reduce((function(t,e){var r=e.uploader(n.uploaders),i=r.name,o=r.callback;return t[i]=t[i]||{callback:o,entries:[]},t[i].entries.push(e),t}),{});for(var o in i){var a=i[o];(0,a.callback)(a.entries,e,t,n)}}}]),t}(),J=function(t,e,n,r){t.forEach((function(t){new Q(t,n.config.chunk_size,r).upload()}))},Q=function(){function t(e,n,r){k(this,t),this.liveSocket=r,this.entry=e,this.offset=0,this.chunkSize=n,this.chunkTimer=null,this.uploadChannel=r.channel("lvu:".concat(e.ref),{token:e.metadata()})}return T(t,[{key:"error",value:function(t){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(t)}},{key:"upload",value:function(){var t=this;this.uploadChannel.onError((function(e){return t.error(e)})),this.uploadChannel.join().receive("ok",(function(e){return t.readNextChunk()})).receive("error",(function(e){return t.error(e)}))}},{key:"isDone",value:function(){return this.offset>=this.entry.file.size}},{key:"readNextChunk",value:function(){var t=this,e=new window.FileReader,n=this.entry.file.slice(this.offset,this.chunkSize+this.offset);e.onload=function(e){if(null!==e.target.error)return U("Read error: "+e.target.error);t.offset+=e.target.result.byteLength,t.pushChunk(e.target.result)},e.readAsArrayBuffer(n)}},{key:"pushChunk",value:function(t){var e=this;this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",t).receive("ok",(function(){e.entry.progress(e.offset/e.entry.file.size*100),e.isDone()||(e.chunkTimer=setTimeout((function(){return e.readNextChunk()}),e.liveSocket.getLatencySim()||0))}))}}]),t}(),tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData(t),r=[];n.forEach((function(t,e,n){t instanceof File&&r.push(e)})),r.forEach((function(t){return n.delete(t)}));var i,o=new URLSearchParams,a=function(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=E(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(n.entries());try{for(a.s();!(i=a.n()).done;){var s=_(i.value,2),c=s[0],u=s[1];o.append(c,u)}}catch(t){a.e(t)}finally{a.f()}for(var l in e)o.append(l,e[l]);return o.toString()},et=function(){function t(e,n){k(this,t),this.viewId=e,this.rendered={},this.mergeDiff(n)}return T(t,null,[{key:"extract",value:function(t){var e=t.r,n=t.e,r=t.t;return delete t.r,delete t.e,delete t.t,{diff:t,title:r,reply:e||null,events:n||[]}}}]),T(t,[{key:"parentViewId",value:function(){return this.viewId}},{key:"toString",value:function(t){return this.recursiveToString(this.rendered,this.rendered.c,t)}},{key:"recursiveToString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.c,n=arguments.length>2?arguments[2]:void 0,r={buffer:"",components:e,onlyCids:n=n?new Set(n):null};return this.toOutputBuffer(t,r),r.buffer}},{key:"componentCIDs",value:function(t){return Object.keys(t.c||{}).map((function(t){return parseInt(t)}))}},{key:"isComponentOnlyDiff",value:function(t){return!!t.c&&1===Object.keys(t).length}},{key:"getComponent",value:function(t,e){return t.c[e]}},{key:"mergeDiff",value:function(t){var e=t.c,n={};if(delete t.c,this.rendered=this.mutableMerge(this.rendered,t),this.rendered.c=this.rendered.c||{},e){var r=this.rendered.c;for(var i in e)e[i]=this.cachedFindComponent(i,e[i],r,e,n);for(var o in e)r[o]=e[o];t.c=e}}},{key:"cachedFindComponent",value:function(t,e,n,r,i){if(i[t])return i[t];var o,a,s,c=e.s;return"number"==typeof c?(a=(s=c>0?this.cachedFindComponent(c,r[c],n,r,i):n[-c]).s,(o=this.cloneMerge(s,e)).s=a):o=void 0!==e.s?e:this.cloneMerge(n[t]||{},e),i[t]=o,o}},{key:"mutableMerge",value:function(t,e){return void 0!==e.s?e:(this.doMutableMerge(t,e),t)}},{key:"doMutableMerge",value:function(t,e){for(var n in e){var r=e[n],i=t[n];z(r)&&void 0===r.s&&z(i)?this.doMutableMerge(i,r):t[n]=r}}},{key:"cloneMerge",value:function(t,e){var n=m(m({},t),e);for(var r in n){var i=e[r],o=t[r];z(i)&&void 0===i.s&&z(o)&&(n[r]=this.cloneMerge(o,i))}return n}},{key:"componentToString",value:function(t){return this.recursiveCIDToString(this.rendered.c,t)}},{key:"pruneCIDs",value:function(t){var e=this;t.forEach((function(t){return delete e.rendered.c[t]}))}},{key:"get",value:function(){return this.rendered}},{key:"isNewFingerprint",value:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).s}},{key:"toOutputBuffer",value:function(t,e){if(t.d)return this.comprehensionToBuffer(t,e);var n=t.s;e.buffer+=n[0];for(var r=1;r<n.length;r++)this.dynamicToBuffer(t[r-1],e),e.buffer+=n[r]}},{key:"comprehensionToBuffer",value:function(t,e){for(var n=t.d,r=t.s,i=0;i<n.length;i++){var o=n[i];e.buffer+=r[0];for(var a=1;a<r.length;a++)this.dynamicToBuffer(o[a-1],e),e.buffer+=r[a]}}},{key:"dynamicToBuffer",value:function(t,e){"number"==typeof t?e.buffer+=this.recursiveCIDToString(e.components,t,e.onlyCids):z(t)?this.toOutputBuffer(t,e):e.buffer+=t}},{key:"recursiveCIDToString",value:function(t,e,n){var r=this,i=t[e]||U("no component for CID ".concat(e),t),o=document.createElement("template");o.innerHTML=this.recursiveToString(i,t,n);var a=o.content,s=n&&!n.has(e),c=_(Array.from(a.childNodes).reduce((function(t,n,i){var a=_(t,2),c=a[0],u=a[1];return n.nodeType===Node.ELEMENT_NODE?n.getAttribute(R)?[c,!0]:(n.setAttribute(R,e),n.id||(n.id="".concat(r.parentViewId(),"-").concat(e,"-").concat(i)),s&&(n.setAttribute("data-phx-skip",""),n.innerHTML=""),[!0,u]):""!==n.nodeValue.trim()?(U("only HTML element tags are allowed at the root of components.\n\n"+'got: "'.concat(n.nodeValue.trim(),'"\n\n')+"within:\n",o.innerHTML.trim()),n.replaceWith(r.createSpan(n.nodeValue,e)),[!0,u]):(n.remove(),[c,u])}),[!1,!1]),2),u=c[0],l=c[1];return u||l?!u&&l?(U("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",o.innerHTML.trim()),o.innerHTML):o.innerHTML:(U("expected at least one HTML element tag inside a component, but the component is empty:\n",o.innerHTML.trim()),this.createSpan("",e).outerHTML)}},{key:"createSpan",value:function(t,e){var n=document.createElement("span");return n.innerText=t,n.setAttribute(R,e),n}}]),t}(),nt=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k(this,t),this.unloaded=!1,!n||"Object"===n.constructor.name)throw new Error('\n      a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:\n\n          import {Socket} from "phoenix"\n          import {LiveSocket} from "phoenix_live_view"\n          let liveSocket = new LiveSocket("/live", Socket, {...})\n      ');this.socket=new n(e,i),this.bindingPrefix=i.bindingPrefix||F,this.opts=i,this.params=q(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(H(B),i.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=H(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||1,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.domCallbacks=Object.assign({onNodeAdded:q(),onBeforeElUpdated:q()},i.dom||{}),window.addEventListener("pagehide",(function(t){r.unloaded=!0})),this.socket.onOpen((function(){r.isUnloaded()&&window.location.reload()}))}return T(t,[{key:"isProfileEnabled",value:function(){return"true"===this.sessionStorage.getItem("phx:live-socket:profiling")}},{key:"isDebugEnabled",value:function(){return"true"===this.sessionStorage.getItem("phx:live-socket:debug")}},{key:"enableDebug",value:function(){this.sessionStorage.setItem("phx:live-socket:debug","true")}},{key:"enableProfiling",value:function(){this.sessionStorage.setItem("phx:live-socket:profiling","true")}},{key:"disableDebug",value:function(){this.sessionStorage.removeItem("phx:live-socket:debug")}},{key:"disableProfiling",value:function(){this.sessionStorage.removeItem("phx:live-socket:profiling")}},{key:"enableLatencySim",value:function(t){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem("phx:live-socket:latency-sim",t)}},{key:"disableLatencySim",value:function(){this.sessionStorage.removeItem("phx:live-socket:latency-sim")}},{key:"getLatencySim",value:function(){var t=this.sessionStorage.getItem("phx:live-socket:latency-sim");return t?parseInt(t):null}},{key:"getSocket",value:function(){return this.socket}},{key:"connect",value:function(){var t=this,e=function(){t.joinRootViews()&&(t.bindTopLevelEvents(),t.socket.connect())};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",(function(){return e()}))}},{key:"disconnect",value:function(t){this.socket.disconnect(t)}},{key:"triggerDOM",value:function(t,e){var n;(n=this.domCallbacks)[t].apply(n,g(e))}},{key:"time",value:function(t,e){if(!this.isProfileEnabled()||!console.time)return e();console.time(t);var n=e();return console.timeEnd(t),n}},{key:"log",value:function(t,e,n){if(this.viewLogger){var r=_(n(),2),i=r[0],o=r[1];this.viewLogger(t,e,i,o)}else if(this.isDebugEnabled()){var a=_(n(),2),s=a[0],c=a[1];$(t,e,s,c)}}},{key:"onChannel",value:function(t,e,n){var r=this;t.on(e,(function(t){var e=r.getLatencySim();e?(console.log("simulating ".concat(e,"ms of latency from server to client")),setTimeout((function(){return n(t)}),e)):n(t)}))}},{key:"wrapPush",value:function(t,e,n){var r=this,i=this.getLatencySim(),o=t.joinCount;if(!i)return e.timeout?n().receive("timeout",(function(){t.joinCount===o&&r.reloadWithJitter(t,(function(){r.log(t,"timeout",(function(){return["received timeout while communicating with server. Falling back to hard refresh for recovery"]}))}))})):n();console.log("simulating ".concat(i,"ms of latency from client to server"));var a={receives:[],receive:function(t,e){this.receives.push([t,e])}};return setTimeout((function(){a.receives.reduce((function(t,e){var n=_(e,2),r=n[0],i=n[1];return t.receive(r,i)}),n())}),i),a}},{key:"reloadWithJitter",value:function(t,e){var n=this;t.destroy(),this.disconnect();var r=x[0],i=x[1],o=Math.floor(Math.random()*(i-r+1))+r,a=rt.updateLocal(this.localStorage,t.name(),"consecutive-reloads",0,(function(t){return t+1}));e?e():this.log(t,"join",(function(){return["encountered ".concat(a," consecutive reloads")]})),a>10&&(this.log(t,"join",(function(){return["exceeded ".concat(10," consecutive reloads. Entering failsafe mode")]})),o=3e4),setTimeout((function(){n.hasPendingLink()?window.location=n.pendingLink:window.location.reload()}),o)}},{key:"getHookCallbacks",value:function(t){return t&&t.startsWith("Phoenix.")?Y[t.split(".")[1]]:this.hooks[t]}},{key:"isUnloaded",value:function(){return this.unloaded}},{key:"isConnected",value:function(){return this.socket.isConnected()}},{key:"getBindingPrefix",value:function(){return this.bindingPrefix}},{key:"binding",value:function(t){return"".concat(this.getBindingPrefix()).concat(t)}},{key:"channel",value:function(t,e){return this.socket.channel(t,e)}},{key:"joinRootViews",value:function(){var t=this,e=!1;return it.all(document,"".concat(D,":not([").concat("data-phx-parent-id","])"),(function(n){if(!t.getRootById(n.id)){var r=t.joinRootView(n,t.getHref());t.root=t.root||r,n.getAttribute("data-phx-main")&&(t.main=r)}e=!0})),e}},{key:"redirect",value:function(t,e){this.disconnect(),rt.redirect(t,e)}},{key:"replaceMain",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.setPendingLink(t),o=this.main.el;this.main.showLoader(this.loaderTimeout),this.main.destroy(),rt.fetchPage(t,(function(a,s){if(200!==a)return n.redirect(t);var c=document.createElement("template");c.innerHTML=s;var u=c.content.childNodes[0];if(!u||!n.isPhxView(u))return n.redirect(t);n.joinRootView(u,t,e,(function(t,e){1===e&&(n.commitPendingLink(i)?(o.replaceWith(t.el),n.main=t,r&&r()):t.destroy())}))}))}},{key:"isPhxView",value:function(t){return t.getAttribute&&null!==t.getAttribute(L)}},{key:"joinRootView",value:function(t,e,n,r){var i=new st(t,this,null,e,n);return this.roots[i.id]=i,i.join(r),i}},{key:"owner",value:function(t,e){var n=this,r=K(t.closest(D),(function(t){return n.getViewByEl(t)}));r&&e(r)}},{key:"withinOwners",value:function(t,e){var n=this;this.owner(t,(function(r){var i=t.getAttribute(n.binding("target"));null===i?e(r,t):r.withinTargets(i,e)}))}},{key:"getViewByEl",value:function(t){var e=t.getAttribute("data-phx-root-id");return K(this.getRootById(e),(function(e){return e.getDescendentByEl(t)}))}},{key:"getRootById",value:function(t){return this.roots[t]}},{key:"destroyAllViews",value:function(){for(var t in this.roots)this.roots[t].destroy(),delete this.roots[t]}},{key:"destroyViewByEl",value:function(t){var e=this.getRootById(t.getAttribute("data-phx-root-id"));e&&e.destroyDescendent(t.id)}},{key:"setActiveElement",value:function(t){var e=this;if(this.activeElement!==t){this.activeElement=t;var n=function(){t===e.activeElement&&(e.activeElement=null),t.removeEventListener("mouseup",e),t.removeEventListener("touchend",e)};t.addEventListener("mouseup",n),t.addEventListener("touchend",n)}}},{key:"getActiveElement",value:function(){return document.activeElement===document.body?this.activeElement||document.activeElement:document.activeElement||document.body}},{key:"dropActiveElement",value:function(t){this.prevActive&&t.ownsElement(this.prevActive)&&(this.prevActive=null)}},{key:"restorePreviouslyActiveFocus",value:function(){this.prevActive&&this.prevActive!==document.body&&this.prevActive.focus()}},{key:"blurActiveElement",value:function(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive.blur()}},{key:"bindTopLevelEvents",value:function(){var t=this;this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,document.body.addEventListener("click",(function(){})),window.addEventListener("pageshow",(function(e){e.persisted&&(t.getSocket().disconnect(),t.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())}),!0),this.bindClicks(),this.bindNav(),this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(function(e,n,r,i,o,a,s){var c=i.getAttribute(t.binding("key")),u=e.key&&e.key.toLowerCase();c&&c.toLowerCase()!==u||r.pushKey(i,o,n,a,m({key:e.key},t.eventMeta(n,e,i)))})),this.bind({blur:"focusout",focus:"focusin"},(function(e,n,r,i,o,a,s){s||r.pushEvent(n,i,o,a,t.eventMeta(n,e,i))})),this.bind({blur:"blur",focus:"focus"},(function(e,n,r,i,o,a,s){s&&"window"!==!s&&r.pushEvent(n,i,o,a,t.eventMeta(n,e,i))})),window.addEventListener("dragover",(function(t){return t.preventDefault()})),window.addEventListener("drop",(function(e){e.preventDefault();var n=K(G(e.target,t.binding("drop-target")),(function(e){return e.getAttribute(t.binding("drop-target"))})),r=n&&document.getElementById(n),i=Array.from(e.dataTransfer.files||[]);r&&!r.disabled&&0!==i.length&&r.files instanceof FileList&&(Z.trackFiles(r,i),r.dispatchEvent(new Event("input",{bubbles:!0})))})))}},{key:"eventMeta",value:function(t,e,n){var r=this.metadataCallbacks[t];return r?r(e,n):{}}},{key:"setPendingLink",value:function(t){return this.linkRef++,this.pendingLink=t,this.linkRef}},{key:"commitPendingLink",value:function(t){return this.linkRef===t&&(this.href=this.pendingLink,this.pendingLink=null,!0)}},{key:"getHref",value:function(){return this.href}},{key:"hasPendingLink",value:function(){return!!this.pendingLink}},{key:"bind",value:function(t,e){var n=this,r=function(r){var i=t[r];n.on(i,(function(t){var i=n.binding(r),o=n.binding("window-".concat(r)),a=t.target.getAttribute&&t.target.getAttribute(i);a?n.debounce(t.target,t,(function(){n.withinOwners(t.target,(function(n,i){e(t,r,n,t.target,i,a,null)}))})):it.all(document,"[".concat(o,"]"),(function(i){var a=i.getAttribute(o);n.debounce(i,t,(function(){n.withinOwners(i,(function(n,o){e(t,r,n,i,o,a,"window")}))}))}))}))};for(var i in t)r(i)}},{key:"bindClicks",value:function(){this.bindClick("click","click",!1),this.bindClick("mousedown","capture-click",!0)}},{key:"bindClick",value:function(t,e,n){var r=this,i=this.binding(e);window.addEventListener(t,(function(t){if(r.isConnected()){var e=null,o=(e=n?t.target.matches("[".concat(i,"]"))?t.target:t.target.querySelector("[".concat(i,"]")):G(t.target,i))&&e.getAttribute(i);o&&("#"===e.getAttribute("href")&&t.preventDefault(),r.debounce(e,t,(function(){r.withinOwners(e,(function(n,i){n.pushEvent("click",e,i,o,r.eventMeta("click",t,e))}))})))}}),n)}},{key:"bindNav",value:function(){var t=this;if(rt.canPushState()){history.scrollRestoration&&(history.scrollRestoration="manual");var e=null;window.addEventListener("scroll",(function(t){clearTimeout(e),e=setTimeout((function(){rt.updateCurrentState((function(t){return Object.assign(t,{scroll:window.scrollY})}))}),100)})),window.addEventListener("popstate",(function(e){if(t.registerNewLocation(window.location)){var n=e.state||{},r=n.type,i=n.id,o=n.root,a=n.scroll,s=window.location.href;t.main.isConnected()&&"patch"===r&&i===t.main.id?t.main.pushLinkPatch(s,null):t.replaceMain(s,null,(function(){o&&t.replaceRootHistory(),"number"==typeof a&&setTimeout((function(){window.scrollTo(0,a)}),0)}))}}),!1),window.addEventListener("click",(function(e){var n=G(e.target,"data-phx-link"),r=n&&n.getAttribute("data-phx-link"),i=e.metaKey||e.ctrlKey||1===e.button;if(r&&t.isConnected()&&t.main&&!i){var o=n.href,a=n.getAttribute("data-phx-link-state");if(e.preventDefault(),t.pendingLink!==o)if("patch"===r)t.pushHistoryPatch(o,a,n);else{if("redirect"!==r)throw new Error("expected ".concat("data-phx-link",' to be "patch" or "redirect", got: ').concat(r));t.historyRedirect(o,a)}}}),!1)}}},{key:"withPageLoading",value:function(t,e){it.dispatchEvent(window,"phx:page-loading-start",t);var n=function(){return it.dispatchEvent(window,"phx:page-loading-stop",t)};return e?e(n):n}},{key:"pushHistoryPatch",value:function(t,e,n){var r=this;this.withPageLoading({to:t,kind:"patch"},(function(i){r.main.pushLinkPatch(t,n,(function(n){r.historyPatch(t,e,n),i()}))}))}},{key:"historyPatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.setPendingLink(t);this.commitPendingLink(n)&&(rt.pushState(e,{type:"patch",id:this.main.id},t),this.registerNewLocation(window.location))}},{key:"historyRedirect",value:function(t,e,n){var r=this,i=window.scrollY;this.withPageLoading({to:t,kind:"redirect"},(function(o){r.replaceMain(t,n,(function(){rt.pushState(e,{type:"redirect",id:r.main.id,scroll:i},t),r.registerNewLocation(window.location),o()}))}))}},{key:"replaceRootHistory",value:function(){rt.pushState("replace",{root:!0,type:"patch",id:this.main.id})}},{key:"registerNewLocation",value:function(t){var e=this.currentLocation;return e.pathname+e.search!==t.pathname+t.search&&(this.currentLocation=H(t),!0)}},{key:"bindForms",value:function(){var t=this,e=0;this.on("submit",(function(e){var n=e.target.getAttribute(t.binding("submit"));n&&(e.preventDefault(),e.target.disabled=!0,t.withinOwners(e.target,(function(t,r){return t.submitForm(e.target,r,n)})))}),!1);for(var n=function(){var n=i[r];t.on(n,(function(r){var i=r.target,o=i.form&&i.form.getAttribute(t.binding("change"));if(o&&("number"!==i.type||!i.validity||!i.validity.badInput)){var a=e;e++;var s=it.private(i,"prev-iteration")||{},c=s.at,u=s.type;c===a-1&&n!==u||(it.putPrivate(i,"prev-iteration",{at:a,type:n}),t.debounce(i,r,(function(){t.withinOwners(i.form,(function(e,n){it.putPrivate(i,"phx-has-focused",!0),it.isTextualInput(i)||t.setActiveElement(i),e.pushInput(i,n,o,r.target)}))})))}}),!1)},r=0,i=["change","input"];r<i.length;r++)n()}},{key:"debounce",value:function(t,e,n){var r=this.binding("debounce"),i=this.binding("throttle"),o=this.defaults.debounce.toString(),a=this.defaults.throttle.toString();it.debounce(t,e,r,o,i,a,n)}},{key:"silenceEvents",value:function(t){this.silenced=!0,t(),this.silenced=!1}},{key:"on",value:function(t,e){var n=this;window.addEventListener(t,(function(t){n.silenced||e(t)}))}}]),t}(),rt={canPushState:function(){return void 0!==history.pushState},dropLocal:function(t,e,n){return t.removeItem(this.localKey(e,n))},updateLocal:function(t,e,n,r,i){var o=this.getLocal(t,e,n),a=this.localKey(e,n),s=null===o?r:i(o);return t.setItem(a,JSON.stringify(s)),s},getLocal:function(t,e,n){return JSON.parse(t.getItem(this.localKey(e,n)))},fetchPage:function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.timeout=3e4,n.setRequestHeader("content-type","text/html"),n.setRequestHeader("cache-control","max-age=0, no-cache, no-store, must-revalidate, post-check=0, pre-check=0"),n.setRequestHeader("x-requested-with","live-link"),n.onerror=function(){return e(400)},n.ontimeout=function(){return e(504)},n.onreadystatechange=function(){if(4===n.readyState){var r=new URL(t),i=r.pathname+r.search,o=K(n.getResponseHeader("x-response-url")||n.responseURL,(function(t){return new URL(t)})),a=o?o.pathname+o.search:null;return"live-link"!==n.getResponseHeader("x-requested-with")?e(400):null===o||a!=i?e(302):200!==n.status?e(n.status):void e(200,n.responseText)}},n.send()},updateCurrentState:function(t){this.canPushState()&&history.replaceState(t(history.state||{}),"",window.location.href)},pushState:function(t,e,n){if(this.canPushState()){if(n!==window.location.href){if("redirect"==e.type&&e.scroll){var r=history.state||{};r.scroll=e.scroll,history.replaceState(r,"",window.location.href)}delete e.scroll,history[t+"State"](e,"",n||null);var i=this.getHashTargetEl(window.location.hash);i?i.scrollIntoView():"redirect"===e.type&&window.scroll(0,0)}}else this.redirect(n)},setCookie:function(t,e){document.cookie="".concat(t,"=").concat(e)},getCookie:function(t){return document.cookie.replace(new RegExp("(?:(?:^|.*;s*)".concat(t,"s*=s*([^;]*).*$)|^.*$")),"$1")},redirect:function(t,e){e&&rt.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=t},localKey:function(t,e){return"".concat(t,"-").concat(e)},getHashTargetEl:function(t){var e=t.toString().substring(1);if(""!==e)return document.getElementById(e)||document.querySelector('a[name="'.concat(e,'"]'))}},it={byId:function(t){return document.getElementById(t)||U("no id found for ".concat(t))},removeClass:function(t,e){t.classList.remove(e),0===t.classList.length&&t.removeAttribute("class")},all:function(t,e,n){var r=Array.from(t.querySelectorAll(e));return n?r.forEach(n):r},childNodeLength:function(t){var e=document.createElement("template");return e.innerHTML=t,e.content.childElementCount},isUploadInput:function(t){return"file"===t.type&&null!==t.getAttribute(j)},findUploadInputs:function(t){return this.all(t,'input[type="file"]['.concat(j,"]"))},findComponentNodeList:function(t,e){return this.filterWithinSameLiveView(this.all(t,"[".concat(R,'="').concat(e,'"]')),t)},isPhxDestroyed:function(t){return!(!t.id||!it.private(t,"destroyed"))},markPhxChildDestroyed:function(t){t.setAttribute("data-phx-session",""),this.putPrivate(t,"destroyed",!0)},findPhxChildrenInFragment:function(t,e){var n=document.createElement("template");return n.innerHTML=t,this.findPhxChildren(n.content,e)},isIgnored:function(t,e){return"ignore"===(t.getAttribute(e)||t.getAttribute("data-phx-update"))},isPhxUpdate:function(t,e,n){return t.getAttribute&&n.indexOf(t.getAttribute(e))>=0},findPhxChildren:function(t,e){return this.all(t,"".concat(D,"[").concat("data-phx-parent-id",'="').concat(e,'"]'))},findParentCIDs:function(t,e){var n=this,r=new Set(e);return e.reduce((function(e,r){var i="[".concat(R,'="').concat(r,'"] [').concat(R,"]");return n.filterWithinSameLiveView(n.all(t,i),t).map((function(t){return parseInt(t.getAttribute(R))})).forEach((function(t){return e.delete(t)})),e}),r)},filterWithinSameLiveView:function(t,e){var n=this;return e.querySelector(D)?t.filter((function(t){return n.withinSameLiveView(t,e)})):t},withinSameLiveView:function(t,e){for(;t=t.parentNode;){if(t.isSameNode(e))return!0;if(t.getAttribute(L))return!1}},private:function(t,e){return t.phxPrivate&&t.phxPrivate[e]},deletePrivate:function(t,e){t.phxPrivate&&delete t.phxPrivate[e]},putPrivate:function(t,e,n){t.phxPrivate||(t.phxPrivate={}),t.phxPrivate[e]=n},copyPrivates:function(t,e){e.phxPrivate&&(t.phxPrivate=H(e.phxPrivate))},putTitle:function(t){var e=document.querySelector("title").dataset,n=e.prefix,r=e.suffix;document.title="".concat(n||"").concat(t).concat(r||"")},debounce:function(t,e,n,r,i,o,a){var s=this,c=t.getAttribute(n),u=t.getAttribute(i);""===c&&(c=r),""===u&&(u=o);var l=c||u;switch(l){case null:return a();case"blur":return void(this.once(t,"debounce-blur")&&t.addEventListener("blur",(function(){return a()})));default:var f=parseInt(l),d=this.incCycle(t,"debounce-trigger",(function(){return u?s.deletePrivate(t,"throttled"):a()}));if(isNaN(f))return U("invalid throttle/debounce value: ".concat(l));if(u){var p=!1;if("keydown"===e.type){var h=this.private(t,"debounce-prev-key");this.putPrivate(t,"debounce-prev-key",e.key),p=h!==e.key}if(!p&&this.private(t,"throttled"))return!1;a(),this.putPrivate(t,"throttled",!0),setTimeout((function(){return s.triggerCycle(t,"debounce-trigger")}),f)}else setTimeout((function(){return s.triggerCycle(t,"debounce-trigger",d)}),f);var g=t.form;g&&this.once(g,"bind-debounce")&&g.addEventListener("submit",(function(t){Array.from(new FormData(g).entries(),(function(t){var e=_(t,2),n=e[0],r=(e[1],g.querySelector('[name="'.concat(n,'"]')));s.incCycle(r,"debounce-trigger"),s.deletePrivate(r,"throttled")}))})),this.once(t,"bind-debounce")&&t.addEventListener("blur",(function(e){return s.triggerCycle(t,"debounce-trigger")}))}},triggerCycle:function(t,e,n){var r=_(this.private(t,e),2),i=r[0],o=r[1];n||(n=i),n===i&&(this.incCycle(t,e),o())},once:function(t,e){return!0!==this.private(t,e)&&(this.putPrivate(t,e,!0),!0)},incCycle:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=_(this.private(t,e)||[0,n],2),i=r[0];return r[1],i++,this.putPrivate(t,e,[i,n]),i},discardError:function(t,e,n){var r=e.getAttribute&&e.getAttribute(n),i=r&&t.querySelector('[id="'.concat(r,'"], [name="').concat(r,'"]'));i&&(this.private(i,"phx-has-focused")||this.private(i.form,"phx-has-submitted")||e.classList.add("phx-no-feedback"))},showError:function(t,e){var n=this;(t.id||t.name)&&this.all(t.form,"[".concat(e,'="').concat(t.id,'"], [').concat(e,'="').concat(t.name,'"]'),(function(t){n.removeClass(t,"phx-no-feedback")}))},isPhxChild:function(t){return t.getAttribute&&t.getAttribute("data-phx-parent-id")},dispatchEvent:function(t,e){var n=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}});t.dispatchEvent(n)},cloneNode:function(t,e){if(void 0===e)return t.cloneNode(!0);var n=t.cloneNode(!1);return n.innerHTML=e,n},mergeAttrs:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.exclude||[],i=n.isIgnored,o=e.attributes,a=o.length-1;a>=0;a--){var s=o[a].name;r.indexOf(s)<0&&t.setAttribute(s,e.getAttribute(s))}for(var c=t.attributes,u=c.length-1;u>=0;u--){var l=c[u].name;i?l.startsWith("data-")&&!e.hasAttribute(l)&&t.removeAttribute(l):e.hasAttribute(l)||t.removeAttribute(l)}},mergeFocusedInput:function(t,e){t instanceof HTMLSelectElement||it.mergeAttrs(t,e,{except:["value"]}),e.readOnly?t.setAttribute("readonly",!0):t.removeAttribute("readonly")},hasSelectionRange:function(t){return t.setSelectionRange&&("text"===t.type||"textarea"===t.type)},restoreFocus:function(t,e,n){if(it.isTextualInput(t)){var r=t.matches(":focus");t.readOnly&&t.blur(),r||t.focus(),this.hasSelectionRange(t)&&t.setSelectionRange(e,n)}},isFormInput:function(t){return/^(?:input|select|textarea)$/i.test(t.tagName)&&"button"!==t.type},syncAttrsToProps:function(t){t instanceof HTMLInputElement&&M.indexOf(t.type.toLocaleLowerCase())>=0&&(t.checked=null!==t.getAttribute("checked"))},isTextualInput:function(t){return N.indexOf(t.type)>=0},isNowTriggerFormExternal:function(t,e){return t.getAttribute&&null!==t.getAttribute(e)},syncPendingRef:function(t,e,n){var r=t.getAttribute(I);return null===r||(it.isFormInput(t)||null!==t.getAttribute(n)?(it.isUploadInput(t)&&it.mergeAttrs(t,e,{isIgnored:!0}),it.putPrivate(t,I,e),!1):(P.forEach((function(n){t.classList.contains(n)&&e.classList.add(n)})),e.setAttribute(I,r),!0))},cleanChildNodes:function(t,e){if(it.isPhxUpdate(t,e,["append","prepend"])){var n=[];t.childNodes.forEach((function(t){t.id||(t.nodeType===Node.TEXT_NODE&&""===t.nodeValue.trim()||U("only HTML element tags with an id are allowed inside containers with phx-update.\n\n"+'removing illegal node: "'.concat((t.outerHTML||t.nodeValue).trim(),'"\n\n')),n.push(t))})),n.forEach((function(t){return t.remove()}))}}},ot=function(){function t(e,n,r){k(this,t);var i=new Set,o=new Set(g(n.children).map((function(t){return t.id}))),a=[];Array.from(e.children).forEach((function(t){if(t.id&&(i.add(t.id),o.has(t.id))){var e=t.previousElementSibling&&t.previousElementSibling.id;a.push({elementId:t.id,previousElementId:e})}})),this.containerId=n.id,this.updateType=r,this.elementsToModify=a,this.elementIdsToAdd=g(o).filter((function(t){return!i.has(t)}))}return T(t,[{key:"perform",value:function(){var t=it.byId(this.containerId);this.elementsToModify.forEach((function(e){e.previousElementId?K(document.getElementById(e.previousElementId),(function(t){K(document.getElementById(e.elementId),(function(e){e.previousElementSibling&&e.previousElementSibling.id==t.id||t.insertAdjacentElement("afterend",e)}))})):K(document.getElementById(e.elementId),(function(e){null==e.previousElementSibling||t.insertAdjacentElement("afterbegin",e)}))})),"prepend"==this.updateType&&this.elementIdsToAdd.reverse().forEach((function(e){K(document.getElementById(e),(function(e){return t.insertAdjacentElement("afterbegin",e)}))}))}}]),t}(),at=function(){function t(e,n,r,i,o){k(this,t),this.view=e,this.liveSocket=e.liveSocket,this.container=n,this.id=r,this.rootID=e.root.id,this.html=i,this.targetCID=o,this.cidPatch="number"==typeof this.targetCID,this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[]}}return T(t,null,[{key:"patchEl",value:function(t,e,n){p(t,e,{childrenOnly:!1,onBeforeElUpdated:function(t,e){if(n&&n.isSameNode(t)&&it.isFormInput(t))return it.mergeFocusedInput(t,e),!1}})}}]),T(t,[{key:"before",value:function(t,e){this.callbacks["before".concat(t)].push(e)}},{key:"after",value:function(t,e){this.callbacks["after".concat(t)].push(e)}},{key:"trackBefore",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.callbacks["before".concat(t)].forEach((function(t){return t.apply(void 0,n)}))}},{key:"trackAfter",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.callbacks["after".concat(t)].forEach((function(t){return t.apply(void 0,n)}))}},{key:"markPrunableContentForRemoval",value:function(){it.all(this.container,"[phx-update=append] > *, [phx-update=prepend] > *",(function(t){t.setAttribute("data-phx-remove","")}))}},{key:"perform",value:function(){var t=this,e=this.view,n=this.liveSocket,r=this.container,i=this.html,o=this.isCIDPatch()?this.targetCIDContainer(i):r;if(!this.isCIDPatch()||o){var a=n.getActiveElement(),s=a&&it.hasSelectionRange(a)?a:{},c=s.selectionStart,u=s.selectionEnd,l=n.binding("update"),f=n.binding("feedback-for"),d=n.binding("disable-with"),h=n.binding("trigger-action"),g=[],v=[],y=[],m=null,b=n.time("premorph container prep",(function(){return t.buildDiffHTML(r,i,l,o)}));return this.trackBefore("added",r),this.trackBefore("updated",r,r),n.time("morphdom",(function(){p(o,b,{childrenOnly:null===o.getAttribute(R),getNodeKey:function(t){return it.isPhxDestroyed(t)?null:t.id},onBeforeNodeAdded:function(e){return it.discardError(o,e,f),t.trackBefore("added",e),e},onNodeAdded:function(n){it.isNowTriggerFormExternal(n,h)&&(m=n),it.isPhxChild(n)&&e.ownsElement(n)&&t.trackAfter("phxChildAdded",n),g.push(n)},onNodeDiscarded:function(e){it.isPhxChild(e)&&n.destroyViewByEl(e),t.trackAfter("discarded",e)},onBeforeNodeDiscarded:function(e){return!((!e.getAttribute||null===e.getAttribute("data-phx-remove"))&&(null!==e.parentNode&&it.isPhxUpdate(e.parentNode,l,["append","prepend"])&&e.id||t.skipCIDSibling(e)))},onElUpdated:function(t){it.isNowTriggerFormExternal(t,h)&&(m=t),v.push(t)},onBeforeElUpdated:function(e,n){if(it.cleanChildNodes(n,l),t.skipCIDSibling(n))return!1;if(it.isIgnored(e,l))return t.trackBefore("updated",e,n),it.mergeAttrs(e,n,{isIgnored:!0}),v.push(e),!1;if("number"===e.type&&e.validity&&e.validity.badInput)return!1;if(!it.syncPendingRef(e,n,d))return it.isUploadInput(e)&&(t.trackBefore("updated",e,n),v.push(e)),!1;if(it.isPhxChild(n)){var r=e.getAttribute("data-phx-session");return it.mergeAttrs(e,n,{exclude:["data-phx-static"]}),""!==r&&e.setAttribute("data-phx-session",r),e.setAttribute("data-phx-root-id",t.rootID),!1}return it.copyPrivates(n,e),it.discardError(o,n,f),a&&e.isSameNode(a)&&it.isFormInput(e)&&!t.forceFocusedSelectUpdate(e,n)?(t.trackBefore("updated",e,n),it.mergeFocusedInput(e,n),it.syncAttrsToProps(e),v.push(e),!1):(it.isPhxUpdate(n,l,["append","prepend"])&&y.push(new ot(e,n,n.getAttribute(l))),it.syncAttrsToProps(n),t.trackBefore("updated",e,n),!0)}})})),n.isDebugEnabled()&&function(){for(var t=new Set,e=document.querySelectorAll("*[id]"),n=0,r=e.length;n<r;n++)t.has(e[n].id)?console.error("Multiple IDs detected: ".concat(e[n].id,". Ensure unique element ids.")):t.add(e[n].id)}(),y.length>0&&n.time("post-morph append/prepend restoration",(function(){y.forEach((function(t){return t.perform()}))})),n.silenceEvents((function(){return it.restoreFocus(a,c,u)})),it.dispatchEvent(document,"phx:update"),g.forEach((function(e){return t.trackAfter("added",e)})),v.forEach((function(e){return t.trackAfter("updated",e)})),m&&(n.disconnect(),m.submit()),!0}}},{key:"forceFocusedSelectUpdate",value:function(t,e){var n=["select","select-one","select-multiple"].find((function(e){return e===t.type}));return!0===t.multiple||n&&t.innerHTML!=e.innerHTML}},{key:"isCIDPatch",value:function(){return this.cidPatch}},{key:"skipCIDSibling",value:function(t){return t.nodeType===Node.ELEMENT_NODE&&null!==t.getAttribute("data-phx-skip")}},{key:"targetCIDContainer",value:function(t){if(this.isCIDPatch()){var e=h(it.findComponentNodeList(this.container,this.targetCID)),n=e[0];return 0===e.slice(1).length&&1===it.childNodeLength(t)?n:n&&n.parentNode}}},{key:"buildDiffHTML",value:function(t,e,n,r){var i=this,o=this.isCIDPatch(),a=o&&r.getAttribute(R)===this.targetCID.toString();if(!o||a)return e;var s=null,c=document.createElement("template");s=it.cloneNode(r);var u=h(it.findComponentNodeList(s,this.targetCID)),l=u[0],f=u.slice(1);return c.innerHTML=e,f.forEach((function(t){return t.remove()})),Array.from(s.childNodes).forEach((function(t){t.id&&t.nodeType===Node.ELEMENT_NODE&&t.getAttribute(R)!==i.targetCID.toString()&&(t.setAttribute("data-phx-skip",""),t.innerHTML="")})),Array.from(c.content.childNodes).forEach((function(t){return s.insertBefore(t,l)})),l.remove(),s.outerHTML}}]),t}(),st=function(){function t(e,n,r,i,o){var a=this;k(this,t),this.liveSocket=n,this.flash=o,this.parent=r,this.root=r?r.root:this,this.el=e,this.id=this.el.id,this.view=this.el.getAttribute(L),this.ref=0,this.childJoins=0,this.loaderTimer=null,this.pendingDiffs=[],this.pruningCIDs=[],this.href=i,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(){},this.stopCallback=function(){},this.pendingJoinOps=this.parent?null:[],this.viewHooks={},this.uploaders={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.channel=this.liveSocket.channel("lv:".concat(this.id),(function(){return{url:a.href,params:a.connectParams(),session:a.getSession(),static:a.getStatic(),flash:a.flash}})),this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel()}return T(t,[{key:"isMain",value:function(){return this.liveSocket.main===this}},{key:"connectParams",value:function(){var t=this.liveSocket.params(this.view),e=it.all(document,"[".concat(this.binding("track-static"),"]")).map((function(t){return t.src||t.href})).filter((function(t){return"string"==typeof t}));return e.length>0&&(t._track_static=e),t._mounts=this.joinCount,t}},{key:"name",value:function(){return this.view}},{key:"isConnected",value:function(){return this.channel.canPush()}},{key:"getSession",value:function(){return this.el.getAttribute("data-phx-session")}},{key:"getStatic",value:function(){var t=this.el.getAttribute("data-phx-static");return""===t?null:t}},{key:"destroy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this.destroyAllChildren(),this.destroyed=!0,delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);var n=function(){for(var n in e(),t.viewHooks)t.destroyHook(t.viewHooks[n])};it.markPhxChildDestroyed(this.el),this.log("destroyed",(function(){return["the child has been removed from the parent"]})),this.channel.leave().receive("ok",n).receive("error",n).receive("timeout",n)}},{key:"setContainerClasses",value:function(){var t;this.el.classList.remove("phx-connected","phx-disconnected","phx-error"),(t=this.el.classList).add.apply(t,arguments)}},{key:"isLoading",value:function(){return this.el.classList.contains("phx-disconnected")}},{key:"showLoader",value:function(t){var e=this;if(clearTimeout(this.loaderTimer),t)this.loaderTimer=setTimeout((function(){return e.showLoader()}),t);else{for(var n in this.viewHooks)this.viewHooks[n].__disconnected();this.setContainerClasses("phx-disconnected")}}},{key:"hideLoader",value:function(){clearTimeout(this.loaderTimer),this.setContainerClasses("phx-connected")}},{key:"triggerReconnected",value:function(){for(var t in this.viewHooks)this.viewHooks[t].__reconnected()}},{key:"log",value:function(t,e){this.liveSocket.log(this,t,e)}},{key:"withinTargets",value:function(t,e){var n=this;if(t instanceof HTMLElement)return this.liveSocket.owner(t,(function(n){return e(n,t)}));if(/^(0|[1-9]\d*)$/.test(t)){var r=it.findComponentNodeList(this.el,t);0===r.length?U("no component found matching phx-target of ".concat(t)):e(this,r[0])}else{var i=Array.from(document.querySelectorAll(t));0===i.length&&U('nothing found matching the phx-target selector "'.concat(t,'"')),i.forEach((function(t){return n.liveSocket.owner(t,(function(n){return e(n,t)}))}))}}},{key:"applyDiff",value:function(t,e,n){this.log(t,(function(){return["",H(e)]}));var r=et.extract(e),i=r.diff,o=r.reply,a=r.events,s=r.title;return s&&it.putTitle(s),n({diff:i,reply:o,events:a}),o}},{key:"onJoin",value:function(t){var e=this,n=t.rendered;this.childJoins=0,this.joinPending=!0,this.flash=null,rt.dropLocal(this.liveSocket.localStorage,this.name(),"consecutive-reloads"),this.applyDiff("mount",n,(function(n){var r=n.diff,i=n.events;e.rendered=new et(e.id,r);var o=e.renderContainer(null,"join");e.dropPendingRefs();var a=e.formsForRecovery(o);e.joinCount++,a.length>0?a.forEach((function(t,n){e.pushFormRecovery(t,(function(t){n===a.length-1&&e.onJoinComplete(t,o,i)}))})):e.onJoinComplete(t,o,i)}))}},{key:"dropPendingRefs",value:function(){it.all(this.el,"[".concat(I,"]"),(function(t){return t.removeAttribute(I)}))}},{key:"onJoinComplete",value:function(t,e,n){var r=this,i=t.live_patch;if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(i,e,n);0===it.findPhxChildrenInFragment(e,this.id).filter((function(t){var e=t.id&&r.el.querySelector("#".concat(t.id)),n=e&&e.getAttribute("data-phx-static");return n&&t.setAttribute("data-phx-static",n),r.joinChild(t)})).length?this.parent?(this.root.pendingJoinOps.push([this,function(){return r.applyJoinPatch(i,e,n)}]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(i,e,n)):this.root.pendingJoinOps.push([this,function(){return r.applyJoinPatch(i,e,n)}])}},{key:"attachTrueDocEl",value:function(){this.el=it.byId(this.id),this.el.setAttribute("data-phx-root-id",this.root.id)}},{key:"dispatchEvents",value:function(t){t.forEach((function(t){var e=_(t,2),n=e[0],r=e[1];window.dispatchEvent(new CustomEvent("phx:hook:".concat(n),{detail:r}))}))}},{key:"applyJoinPatch",value:function(t,e,n){var r=this;this.attachTrueDocEl();var i=new at(this,this.el,this.id,e,null);if(i.markPrunableContentForRemoval(),this.performPatch(i,!1),this.joinNewChildren(),it.all(this.el,"[".concat(this.binding("hook"),"], [data-phx-").concat("hook","]"),(function(t){var e=r.addHook(t);e&&e.__mounted()})),this.joinPending=!1,this.dispatchEvents(n),this.applyPendingUpdates(),t){var o=t.kind,a=t.to;this.liveSocket.historyPatch(a,o)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}},{key:"triggerBeforeUpdateHook",value:function(t,e){this.liveSocket.triggerDOM("onBeforeElUpdated",[t,e]);var n=this.getHook(t),r=n&&it.isIgnored(t,this.binding("update"));if(n&&!t.isEqualNode(e)&&(!r||!function(t,e){return JSON.stringify(t)===JSON.stringify(e)}(t.dataset,e.dataset)))return n.__beforeUpdate(),n}},{key:"performPatch",value:function(t,e){var n=this,r=[],i=!1,o=new Set;return t.after("added",(function(t){n.liveSocket.triggerDOM("onNodeAdded",[t]);var e=n.addHook(t);e&&e.__mounted()})),t.after("phxChildAdded",(function(t){return i=!0})),t.before("updated",(function(t,e){n.triggerBeforeUpdateHook(t,e)&&o.add(t.id)})),t.after("updated",(function(t){o.has(t.id)&&n.getHook(t).__updated()})),t.after("discarded",(function(t){var e=n.componentID(t);"number"==typeof e&&-1===r.indexOf(e)&&r.push(e);var i=n.getHook(t);i&&n.destroyHook(i)})),t.perform(),e&&this.maybePushComponentsDestroyed(r),i}},{key:"joinNewChildren",value:function(){var t=this;it.findPhxChildren(this.el,this.id).forEach((function(e){return t.joinChild(e)}))}},{key:"getChildById",value:function(t){return this.root.children[this.id][t]}},{key:"getDescendentByEl",value:function(t){return t.id===this.id?this:this.children[t.getAttribute("data-phx-parent-id")][t.id]}},{key:"destroyDescendent",value:function(t){for(var e in this.root.children)for(var n in this.root.children[e])if(n===t)return this.root.children[e][n].destroy()}},{key:"joinChild",value:function(e){if(!this.getChildById(e.id)){var n=new t(e,this.liveSocket,this);return this.root.children[this.id][n.id]=n,n.join(),this.childJoins++,!0}}},{key:"isJoinPending",value:function(){return this.joinPending}},{key:"ackJoin",value:function(t){this.childJoins--,0===this.childJoins&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}},{key:"onAllChildJoinsComplete",value:function(){this.joinCallback(),this.pendingJoinOps.forEach((function(t){var e=_(t,2),n=e[0],r=e[1];n.isDestroyed()||r()})),this.pendingJoinOps=[]}},{key:"update",value:function(t,e){var n=this;if(this.isJoinPending()||this.liveSocket.hasPendingLink())return this.pendingDiffs.push({diff:t,events:e});this.rendered.mergeDiff(t);var r=!1;this.rendered.isComponentOnlyDiff(t)?this.liveSocket.time("component patch complete",(function(){it.findParentCIDs(n.el,n.rendered.componentCIDs(t)).forEach((function(e){n.componentPatch(n.rendered.getComponent(t,e),e)&&(r=!0)}))})):V(t)||this.liveSocket.time("full patch complete",(function(){var e=n.renderContainer(t,"update"),i=new at(n,n.el,n.id,e,null);r=n.performPatch(i,!0)})),this.dispatchEvents(e),r&&this.joinNewChildren()}},{key:"renderContainer",value:function(t,e){var n=this;return this.liveSocket.time("toString diff (".concat(e,")"),(function(){var e=n.el.tagName,r=t?n.rendered.componentCIDs(t).concat(n.pruningCIDs):null,i=n.rendered.toString(r);return"<".concat(e,">").concat(i,"</").concat(e,">")}))}},{key:"componentPatch",value:function(t,e){if(V(t))return!1;var n=this.rendered.componentToString(e),r=new at(this,this.el,this.id,n,e);return this.performPatch(r,!0)}},{key:"getHook",value:function(t){return this.viewHooks[ut.elementID(t)]}},{key:"addHook",value:function(t){if(!ut.elementID(t)&&t.getAttribute){var e=t.getAttribute("data-phx-".concat("hook"))||t.getAttribute(this.binding("hook"));if(!e||this.ownsElement(t)){var n=this.liveSocket.getHookCallbacks(e);if(n){t.id||U('no DOM ID for hook "'.concat(e,'". Hooks require a unique ID on each element.'),t);var r=new ut(this,t,n);return this.viewHooks[ut.elementID(r.el)]=r,r}null!==e&&U('unknown hook found for "'.concat(e,'"'),t)}}}},{key:"destroyHook",value:function(t){t.__destroyed(),t.__cleanup__(),delete this.viewHooks[ut.elementID(t.el)]}},{key:"applyPendingUpdates",value:function(){var t=this;this.pendingDiffs.forEach((function(e){var n=e.diff,r=e.events;return t.update(n,r)})),this.pendingDiffs=[]}},{key:"onChannel",value:function(t,e){var n=this;this.liveSocket.onChannel(this.channel,t,(function(t){n.isJoinPending()?n.root.pendingJoinOps.push([n,function(){return e(t)}]):e(t)}))}},{key:"bindChannel",value:function(){var t=this;this.liveSocket.onChannel(this.channel,"diff",(function(e){t.applyDiff("update",e,(function(e){var n=e.diff,r=e.events;return t.update(n,r)}))})),this.onChannel("redirect",(function(e){var n=e.to,r=e.flash;return t.onRedirect({to:n,flash:r})})),this.onChannel("live_patch",(function(e){return t.onLivePatch(e)})),this.onChannel("live_redirect",(function(e){return t.onLiveRedirect(e)})),this.channel.onError((function(e){return t.onError(e)})),this.channel.onClose((function(e){return t.onClose(e)}))}},{key:"destroyAllChildren",value:function(){for(var t in this.root.children[this.id])this.getChildById(t).destroy()}},{key:"onLiveRedirect",value:function(t){var e=t.to,n=t.kind,r=t.flash,i=this.expandURL(e);this.liveSocket.historyRedirect(i,n,r)}},{key:"onLivePatch",value:function(t){var e=t.to,n=t.kind;this.href=this.expandURL(e),this.liveSocket.historyPatch(e,n)}},{key:"expandURL",value:function(t){return t.startsWith("/")?"".concat(window.location.protocol,"//").concat(window.location.host).concat(t):t}},{key:"onRedirect",value:function(t){var e=t.to,n=t.flash;this.liveSocket.redirect(e,n)}},{key:"isDestroyed",value:function(){return this.destroyed}},{key:"join",value:function(t){var e=this;this.parent||(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=function(){return t&&t(e,e.joinCount)},this.liveSocket.wrapPush(this,{timeout:!1},(function(){return e.channel.join().receive("ok",(function(t){return e.onJoin(t)})).receive("error",(function(t){return e.onJoinError(t)})).receive("timeout",(function(){return e.onJoinError({reason:"timeout"})}))}))}},{key:"onJoinError",value:function(t){return(t.redirect||t.live_redirect)&&(this.joinPending=!1,this.channel.leave()),t.redirect?this.onRedirect(t.redirect):t.live_redirect?this.onLiveRedirect(t.live_redirect):(this.log("error",(function(){return["unable to join",t]})),this.liveSocket.reloadWithJitter(this))}},{key:"onClose",value:function(t){if(!this.isDestroyed()){if(this.isJoinPending()&&"hidden"!==document.visibilityState||this.liveSocket.hasPendingLink()&&"leave"!==t)return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),document.activeElement&&document.activeElement.blur(),this.liveSocket.isUnloaded()&&this.showLoader(200)}}},{key:"onError",value:function(t){this.onClose(t),this.log("error",(function(){return["view crashed",t]})),this.liveSocket.isUnloaded()||this.displayError()}},{key:"displayError",value:function(){this.isMain()&&it.dispatchEvent(window,"phx:page-loading-start",{to:this.href,kind:"error"}),this.showLoader(),this.setContainerClasses("phx-disconnected","phx-error")}},{key:"pushWithReply",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(this.isConnected()){var o=_(t?t():[null,[]],2),a=o[0],s=_(o[1],1)[0],c=function(){};return s&&null!==s.getAttribute(this.binding("page-loading"))&&(c=this.liveSocket.withPageLoading({kind:"element",target:s})),"number"!=typeof n.cid&&delete n.cid,this.liveSocket.wrapPush(this,{timeout:!0},(function(){return r.channel.push(e,n,3e4).receive("ok",(function(t){var e=null;null!==a&&r.undoRefs(a),t.diff&&(e=r.applyDiff("update",t.diff,(function(t){var e=t.diff,n=t.events;r.update(e,n)}))),t.redirect&&r.onRedirect(t.redirect),t.live_patch&&r.onLivePatch(t.live_patch),t.live_redirect&&r.onLiveRedirect(t.live_redirect),c(),i(t,e)}))}))}}},{key:"undoRefs",value:function(t){var e=this;it.all(this.el,"[".concat(I,'="').concat(t,'"]'),(function(t){t.removeAttribute(I),null!==t.getAttribute("data-phx-readonly")&&(t.readOnly=!1,t.removeAttribute("data-phx-readonly")),null!==t.getAttribute("data-phx-disabled")&&(t.disabled=!1,t.removeAttribute("data-phx-disabled")),P.forEach((function(e){return it.removeClass(t,e)}));var n=t.getAttribute("data-phx-disable-with-restore");null!==n&&(t.innerText=n,t.removeAttribute("data-phx-disable-with-restore"));var r=it.private(t,I);if(r){var i=e.triggerBeforeUpdateHook(t,r);at.patchEl(t,r,e.liveSocket.getActiveElement()),i&&i.__updated(),it.deletePrivate(t,I)}}))}},{key:"putRef",value:function(t,e){var n=this.ref++,r=this.binding("disable-with");return t.forEach((function(t){t.classList.add("phx-".concat(e,"-loading")),t.setAttribute(I,n);var i=t.getAttribute(r);null!==i&&(t.getAttribute("data-phx-disable-with-restore")||t.setAttribute("data-phx-disable-with-restore",t.innerText),t.innerText=i)})),[n,t]}},{key:"componentID",value:function(t){var e=t.getAttribute&&t.getAttribute(R);return e?parseInt(e):null}},{key:"targetComponentID",value:function(t,e){return t.getAttribute(this.binding("target"))?this.closestComponentID(e):null}},{key:"closestComponentID",value:function(t){var e=this;return t?K(t.closest("[".concat(R,"]")),(function(t){return e.ownsElement(t)&&e.componentID(t)})):null}},{key:"pushHookEvent",value:function(t,e,n,r){if(!this.isConnected())return this.log("hook",(function(){return["unable to push hook event. LiveView not connected",e,n]})),!1;var i=_(this.putRef([],"hook"),2),o=i[0],a=i[1];return this.pushWithReply((function(){return[o,a]}),"event",{type:"hook",event:e,value:n,cid:this.closestComponentID(t)},(function(t,e){return r(e,o)})),o}},{key:"extractMeta",value:function(t,e){for(var n=this.binding("value-"),r=0;r<t.attributes.length;r++){var i=t.attributes[r].name;i.startsWith(n)&&(e[i.replace(n,"")]=t.getAttribute(i))}return void 0!==t.value&&(e.value=t.value,"INPUT"===t.tagName&&M.indexOf(t.type)>=0&&!t.checked&&delete e.value),e}},{key:"pushEvent",value:function(t,e,n,r,i){var o=this;this.pushWithReply((function(){return o.putRef([e],t)}),"event",{type:t,event:r,value:this.extractMeta(e,i),cid:this.targetComponentID(e,n)})}},{key:"pushKey",value:function(t,e,n,r,i){var o=this;this.pushWithReply((function(){return o.putRef([t],n)}),"event",{type:n,event:r,value:this.extractMeta(t,i),cid:this.targetComponentID(t,e)})}},{key:"pushFileProgress",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};this.liveSocket.withinOwners(t.form,(function(i,o){i.pushWithReply(null,"progress",{event:t.getAttribute(i.binding("progress")),ref:t.getAttribute(j),entry_ref:e,progress:n,cid:i.targetComponentID(t.form,o)},r)}))}},{key:"pushInput",value:function(t,e,n,r,i){var o=this,a=this.targetComponentID(t.form,e),s=function(){return o.putRef([t,t.form],"change")},c=tt(t.form,{_target:r.name});t.files&&t.files.length>0&&Z.trackFiles(t,Array.from(t.files));var u={type:"form",event:n,value:c,uploads:Z.serializeUploads(t),cid:a};this.pushWithReply(s,"event",u,(function(n){if(it.showError(t,o.liveSocket.binding("feedback-for")),it.isUploadInput(t)&&null!==t.getAttribute("data-phx-auto-upload")){if(Z.filesAwaitingPreflight(t).length>0){var r=_(s(),2),c=r[0];r[1],o.uploadFiles(t.form,e,c,a,(function(e){i&&i(n),o.triggerAwaitingSubmit(t.form)}))}}else i&&i(n)}))}},{key:"triggerAwaitingSubmit",value:function(t){var e=this.getScheduledSubmit(t);if(e){var n=_(e,3),r=(n[0],n[1],n[2]);this.cancelSubmit(t),r()}}},{key:"getScheduledSubmit",value:function(t){return this.formSubmits.find((function(e){var n=_(e,2),r=n[0];return n[1],r.isSameNode(t)}))}},{key:"scheduleSubmit",value:function(t,e,n){if(this.getScheduledSubmit(t))return!0;this.formSubmits.push([t,e,n])}},{key:"cancelSubmit",value:function(t){var e=this;this.formSubmits=this.formSubmits.filter((function(n){var r=_(n,3),i=r[0],o=r[1];return r[2],!i.isSameNode(t)||(e.undoRefs(o),!1)}))}},{key:"pushFormSubmit",value:function(t,e,n,r){var i=this,o=function(t){return!(G(t,"".concat(i.binding("update"),"=ignore"),t.form)||G(t,"data-phx-update=ignore",t.form))},a=function(t){return t.hasAttribute(i.binding("disable-with"))},s=function(t){return"BUTTON"==t.tagName},c=function(t){return["INPUT","TEXTAREA","SELECT"].includes(t.tagName)},u=function(){var e=Array.from(t.elements),n=e.filter(a),r=e.filter(s).filter(o),u=e.filter(c).filter(o);return r.forEach((function(t){t.setAttribute("data-phx-disabled",t.disabled),t.disabled=!0})),u.forEach((function(t){t.setAttribute("data-phx-readonly",t.readOnly),t.readOnly=!0,t.files&&(t.setAttribute("data-phx-disabled",t.disabled),t.disabled=!0)})),t.setAttribute(i.binding("page-loading"),""),i.putRef([t].concat(n).concat(r).concat(u),"submit")},l=this.targetComponentID(t,e);if(Z.hasUploadsInProgress(t)){var f=_(u(),2),d=f[0];return f[1],this.scheduleSubmit(t,d,(function(){return i.pushFormSubmit(t,e,n,r)}))}if(Z.inputsAwaitingPreflight(t).length>0){var p=_(u(),2),h=p[0],g=p[1],v=function(){return[h,g]};this.uploadFiles(t,e,h,l,(function(e){var o=tt(t,{});i.pushWithReply(v,"event",{type:"form",event:n,value:o,cid:l},r)}))}else{var y=tt(t);this.pushWithReply(u,"event",{type:"form",event:n,value:y,cid:l},r)}}},{key:"uploadFiles",value:function(t,e,n,r,i){var o=this,a=this.joinCount;Z.activeFileInputs(t).forEach((function(t){var r=new Z(t,o,i);o.uploaders[t]=r;var s=r.entries().map((function(t){return t.toPreflightPayload()})),c={ref:t.getAttribute(j),entries:s,cid:o.targetComponentID(t.form,e)};o.log("upload",(function(){return["sending preflight request",c]})),o.pushWithReply(null,"allow_upload",c,(function(t){if(o.log("upload",(function(){return["got preflight response",t]})),t.error){o.undoRefs(n);var e=_(t.error,2),i=e[0],s=e[1];o.log("upload",(function(){return["error for entry ".concat(i),s]}))}else r.initAdapterUpload(t,(function(t){o.channel.onError((function(){o.joinCount===a&&t()}))}),o.liveSocket)}))}))}},{key:"pushFormRecovery",value:function(t,e){var n=this;this.liveSocket.withinOwners(t,(function(r,i){var o=t.elements[0],a=t.getAttribute(n.binding("auto-recover"))||t.getAttribute(n.binding("change"));r.pushInput(o,i,a,o,e)}))}},{key:"pushLinkPatch",value:function(t,e,n){var r=this,i=this.liveSocket.setPendingLink(t),o=e?function(){return r.putRef([e],"click")}:null;this.pushWithReply(o,"link",{url:t},(function(e){e.link_redirect?r.liveSocket.replaceMain(t,null,n,i):(r.liveSocket.commitPendingLink(i)&&(r.href=t),r.applyPendingUpdates(),n&&n(i))})).receive("timeout",(function(){return r.liveSocket.redirect(window.location.href)}))}},{key:"formsForRecovery",value:function(t){var e=this;if(0===this.joinCount)return[];var n=this.binding("change"),r=document.createElement("template");return r.innerHTML=t,it.all(this.el,"form[".concat(n,"]")).filter((function(t){return e.ownsElement(t)})).filter((function(t){return t.elements.length>0})).filter((function(t){return"ignore"!==t.getAttribute(e.binding("auto-recover"))})).filter((function(t){return r.content.querySelector("form[".concat(n,'="').concat(t.getAttribute(n),'"]'))}))}},{key:"maybePushComponentsDestroyed",value:function(t){var e,n=this,r=t.filter((function(t){return 0===it.findComponentNodeList(n.el,t).length}));r.length>0&&((e=this.pruningCIDs).push.apply(e,g(r)),this.pushWithReply(null,"cids_will_destroy",{cids:r},(function(){n.pruningCIDs=n.pruningCIDs.filter((function(t){return-1!==r.indexOf(t)}));var t=r.filter((function(t){return 0===it.findComponentNodeList(n.el,t).length}));t.length>0&&n.pushWithReply(null,"cids_destroyed",{cids:t},(function(t){n.rendered.pruneCIDs(t.cids)}))})))}},{key:"ownsElement",value:function(t){return t.getAttribute("data-phx-parent-id")===this.id||K(t.closest(D),(function(t){return t.id}))===this.id}},{key:"submitForm",value:function(t,e,n){var r=this;it.putPrivate(t,"phx-has-submitted",!0),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(t,e,n,(function(){r.liveSocket.restorePreviouslyActiveFocus()}))}},{key:"binding",value:function(t){return this.liveSocket.binding(t)}}]),t}(),ct=1,ut=function(){function t(e,n,r){for(var i in k(this,t),this.__view=e,this.__liveSocket=e.liveSocket,this.__callbacks=r,this.__listeners=new Set,this.__isDisconnected=!1,this.el=n,this.viewName=e.name(),this.el.phxHookId=this.constructor.makeID(),this.__callbacks)this[i]=this.__callbacks[i]}return T(t,null,[{key:"makeID",value:function(){return ct++}},{key:"elementID",value:function(t){return t.phxHookId}}]),T(t,[{key:"__mounted",value:function(){this.mounted&&this.mounted()}},{key:"__updated",value:function(){this.updated&&this.updated()}},{key:"__beforeUpdate",value:function(){this.beforeUpdate&&this.beforeUpdate()}},{key:"__destroyed",value:function(){this.destroyed&&this.destroyed()}},{key:"__reconnected",value:function(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}},{key:"__disconnected",value:function(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}},{key:"pushEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};return this.__view.pushHookEvent(null,t,e,n)}},{key:"pushEventTo",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};return this.__view.withinTargets(t,(function(t,i){return t.pushHookEvent(i,e,n,r)}))}},{key:"handleEvent",value:function(t,e){var n=function(n,r){return r?t:e(n.detail)};return window.addEventListener("phx:hook:".concat(t),n),this.__listeners.add(n),n}},{key:"removeHandleEvent",value:function(t){var e=t(null,!0);window.removeEventListener("phx:hook:".concat(e),t),this.__listeners.delete(t)}},{key:"__cleanup__",value:function(){var t=this;this.__listeners.forEach((function(e){return t.removeHandleEvent(e)}))}}]),t}();e.default=nt},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){e.Phoenix||(e.Phoenix={}),t.exports=e.Phoenix.LiveView=n(0)}).call(this,n(1))}])},function(t,e,n){"use strict";n.d(e,"a",(function(){return Kr}));var r,i=n(1),o=n(0),a=n(10),s=n.n(a),c=n(32),u=n.n(c),l=n(67),f=n.n(l),d=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([f.a,Object(o.a)({name:"BlankPageComponent"})],e)}(i.a),h=n(2),g=n(25),v=n.n(g),y=n(7),m=n(14),b=n(68),_=n.n(b),w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},E=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),Object.defineProperty(e.prototype,"itemId",{get:function(){return this.name+this.pageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAsHTML",{get:function(){var t=document.createElement("content_"+Math.random());new v.a(t,{}).setContents(this.content.ops);var e=null==t?void 0:t.firstChild;return null==e?void 0:e.innerHTML},enumerable:!1,configurable:!0}),e.prototype.navigate=function(t,e){if(t.preventDefault(),e){var n=new URL(e.href).pathname;if(n&&n.includes("overlay")){var r=n.split("/")[2];this.$router.push({name:"page_overlay",params:{id:this.$route.params.id,overlay_page_id:r}}).catch((function(){}))}else n=n.replace(/^\/+/g,""),this.$router.push({name:"page",params:{id:Object(m.d)(n,void 0,!0)}}).catch((function(){}))}},e.prototype.isLocalHref=function(t){return t.host===window.location.host&&t.protocol===window.location.protocol&&(t.pathname!==window.location.pathname||t.search!==window.location.search)},e.prototype.pageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},e.prototype.parseInternalLinksDeprecated=function(){var t=this,e=document.getElementById(this.itemId);if(e)for(var n=e.getElementsByTagName("a"),r=function(e){i.isLocalHref(e)&&(e.removeAttribute("target"),e.addEventListener("click",(function(n){t.navigate(n,e)}),!1))},i=this,o=0,a=n;o<a.length;o++)r(a[o])},e.prototype.routePush=function(t,e){var n=this.pageData(t);n&&"true"===e?(console.log("no"),this.$router.push({name:"page_overlay",params:{id:this.$route.params.id,overlay_page_id:n.path}}).catch((function(){}))):n&&this.$router.push({name:"page",params:{id:Object(m.d)(n.path,n.id,!0)}}).catch((function(){}))},e.prototype.parseFotomatLinkBlots=function(){var t=this,e=document.getElementById(this.itemId);if(e)for(var n=function(e){e.addEventListener("click",(function(n){n.preventDefault(),t.routePush(e.dataset.pageId,e.dataset.overlay)}),!1)},r=0,i=e.querySelectorAll('span[data-internal-link="true"]');r<i.length;r++)n(i[r])},e.prototype.updated=function(){var t=this;this.$nextTick((function(){t.parseInternalLinksDeprecated(),t.parseFotomatLinkBlots()}))},e.prototype.mounted=function(){var t=this;this.$nextTick((function(){t.parseInternalLinksDeprecated(),t.parseFotomatLinkBlots()}))},O([Object(o.b)([Object,String]),E("design:type",Object)],e.prototype,"content",void 0),O([Object(o.b)({type:String,required:!0}),E("design:type",String)],e.prototype,"name",void 0),O([Object(o.b)({type:String,required:!0}),E("design:type",String)],e.prototype,"pageId",void 0),O([_.a,Object(o.a)({name:"QuillLiveComponent",methods:{pageDataHelper:y.c}})],e)}(i.a),k=n(28),C=n(42),T=n.n(C),A=n(13),x=(n(59),n(8)),L=n(4),P=n(18),R=n(3),I=n(19),j=n(36),D=n(104),N=n.n(D),M=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},B=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showContentBackground=function(){return Object(y.d)(e.page,e.getSite)},e}return M(e,t),Object.defineProperty(e.prototype,"getSite",{get:function(){return this.$liveSite?this.$initialdata.site:this.$store.getters.getSite()},enumerable:!1,configurable:!0}),e.prototype.textChange=function(t,e,n,r){this.$store.commit(h.fb,{pageId:this.page.id,key:e,value:t}),this.$store.commit(h.fb,{pageId:this.page.id,key:n,value:r})},F([Object(o.b)({type:Object,required:!0}),B("design:type",Object)],e.prototype,"page",void 0),F([Object(o.b)(String),B("design:type",String)],e.prototype,"contentSpacing",void 0),F([N.a,Object(o.a)({components:{"quill-editor":k.a,"quill-live":S},name:"PageDescriptionComponent",methods:{contentSpacingHelper:y.b}})],e)}(i.a),$=n(12),q=n(105),H=n.n(q),G=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},V=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};i.a.use(T.a);var K={S:R.i.M,M:R.i.L,L:R.i.L,Full:R.i.L},W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.imagesizes=K,e.preloaded=!1,e.preloadedIndex=0,e.currentImage=null,e.descriptionOpenInline=e.page.showDescription,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return G(e,t),e.prototype.descriptionBackgroundColor=function(){return{backgroundColor:"small"!==this.$mq?Object(x.a)(Object(x.e)(this.site),this.page.invertColors,$.p):"none"}},e.prototype.showDescription=function(){return this.inline&&!this.page.textEnabled&&this.descriptionOpenInline&&this.page.showDescription&&!this.imageIndex},e.prototype.onChanged=function(t){!this.$liveSite&&this.inline&&t&&(this.descriptionOpenInline=t,this.counter=0,this.currentImage=this.images[0])},e.prototype.hideDescriptionOnClick=function(){this.$liveSite?this.descriptionOpenInline=!1:this.$liveSite||this.$store.getters.activeTextEditor()||(this.descriptionOpenInline=!1)},Object.defineProperty(e.prototype,"imageCount",{get:function(){return this.images.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imageSize",{get:function(){return"Default"!==this.page.slideshowSize?this.imagesizes[this.page.slideshowSize]:this.imagesizes[this.site.contentSize]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showNavigation",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoControls",{get:function(){return!!this.videoControlsEnabled&&this.page.videoControls},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Images",{get:function(){return this.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Image",{get:function(){return this.currentImage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{get:function(){return this.imageCount>1?{cursor:"pointer"}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleVideo",{get:function(){return("cover"!==this.page.type&&"slideshow"!==this.page.type||"Full"!==this.page.slideshowSize||"cover"!==this.page.coverMediaFit&&"full"!==this.page.coverMediaFit)&&(!this.page.part_of_stacked_page||!this.isGridLayout()||"image"!==this.page.type||"cover"!==this.page.coverMediaFit)},enumerable:!1,configurable:!0}),e.prototype.isGridLayout=function(){var t=Object(y.c)(this.page.parent_id,this.$liveSite,this.$store,this.$initialdata);return"Grid"===(null==t?void 0:t.indexLayout)},Object.defineProperty(e.prototype,"scaleVideoWidthOnly",{get:function(){return("grid"!==this.page.type||"Full"!==this.page.slideshowSize||"cover"!==this.page.coverMediaFit)&&(!!(this.page.part_of_stacked_page&&this.isGridLayout()&&this.page.indexGridItemGrow)||this.page.part_of_stacked_page&&("auto"===this.page.slideshowRatio||"image"===this.page.type)&&"1/1"!==this.page.indexGridItemWidth)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideshowTransition",{get:function(){return this.page.slideshowTransition?"slideshow":""},enumerable:!1,configurable:!0}),e.prototype.isViewer=function(){return"viewer"===this.$route.name},e.prototype.pageType=function(){return this.isViewer()?"viewer":this.page.type},e.prototype.siteLayout=function(){return this.isViewer()?"Horizontal":this.site.layout},e.prototype.click=function(){!this.$liveSite&&(this.inline&&this.descriptionOpenInline||this.descriptionOpen)||(this.destroyAutoplayer(),this.nextImage())},e.prototype.previousImage=function(){this.previous()},e.prototype.nextImage=function(){this.descriptionOpen||this.next()},e.prototype.gridStyle=function(){if(this.hasInlineStyle)return{backgroundColor:this.bgCol(),color:this.textCol()}},e.prototype.bgCol=function(){var t;return this.page.backgroundColor||(null===(t=this.parent)||void 0===t?void 0:t.backgroundColor)||Object(x.e)(this.site)},e.prototype.textCol=function(){var t;return this.page.textColor||(null===(t=this.parent)||void 0===t?void 0:t.textColor)||this.site.textColor},e.prototype.contentSpacing=function(){return!!this.useContentSpacing&&Object(y.b)(this.page.slideshowSize,this.site,this.page)},e.prototype.handleKeyNavigation=function(t){if(!t.target||"BODY"===t.target.tagName){var e=t.which||t.keyCode;39!==e&&38!==e||this.nextImage(),37!==e&&40!==e||this.previousImage()}},e.prototype.usePlaceholder=function(){return 0===this.counter},e.prototype.photoSource=function(t,e){return"string"!=typeof e.src?"":"L"===t?""+e.src:e.src+"?s="+t},e.prototype.preload=function(t){var e=this;if(this.Images&&(t=t||0,this.preloadedIndex=t,2===t&&this.autoplayer(),this.Images&&this.Images.length>t)){if("video"===this.Images[t].type)return void this.preload(t+1);var n=new Image;n.onload=function(){e.preload(t+1)},n.src=this.photoSource(this.imageSize,this.Images[t])}},e.prototype.onCoverMediaAutoPlayChanged=function(){this.autoplayer()},e.prototype.onImagesChange=function(){this.imageIndex?this.currentImage=this.images[this.imageIndex]:(this.currentImage=this.images[0],this.counter=0)},e.prototype.setImageAtIndex=function(t){t.pageId===this.page.id&&(this.currentImage=t.image,this.counter=t.index,t.autoplay||this.destroyAutoplayer(),"small"!==this.$mq&&(this.descriptionOpenInline=!1)),t.pageId===this.page.id&&this.page.showDescription&&0===t.index&&!this.descriptionOpenInline&&(this.descriptionOpenInline=!0)},e.prototype.videoEndedCallback=function(t){this.images.filter((function(e){return e.id===t}))&&this.autoplay&&!this.autoPlayerDestroyed&&(clearInterval(this.autoPlaytimer),this.next(!0),this.autoplayer())},e.prototype.doAutoplay=function(){return null!==this.page.viewerVideoAutoplay&&this.isViewer()?this.page.viewerVideoAutoplay:this.page.videoAutoplay},e.prototype.verticalAlign=function(){var t;return"Grid"!==(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)?null:this.page.indexTextVerticalAlignment},e.prototype.lazyLoaderCallback=function(t){for(var e=0,n=t;e<n.length;e++)n[e].intersectionRatio>0&&(console.log("intersected slideshow"),this.preload(0),this.$el instanceof Element&&this.intersectionObserver.unobserve(this.$el))},e.prototype.lazyload=function(){this.intersectionObserver=new IntersectionObserver(this.lazyLoaderCallback,{root:null,rootMargin:"200px",threshold:.1}),this.$el instanceof Element&&this.intersectionObserver.observe(this.$el)},e.prototype.mounted=function(){var t=this;setTimeout((function(){t.inline?t.lazyload():t.preload(0)}),200),this.keyBinds&&window.addEventListener("keydown",this.handleKeyNavigation),this.imageIndex?(this.currentImage=this.images[this.imageIndex],this.counter=this.imageIndex):this.currentImage=this.images[0],L.a.$on("IMAGE_AT_INDEX",this.setImageAtIndex),L.a.$on("VIDEO_ENDED",this.videoEndedCallback)},e.prototype.beforeDestroy=function(){this.destroyAutoplayer(),window.removeEventListener("keydown",this.handleKeyNavigation),L.a.$off("IMAGE_AT_INDEX",this.setImageAtIndex),L.a.$off("VIDEO_ENDED",this.videoEndedCallback)},z([Object(o.b)({type:Boolean,default:!1}),V("design:type",Boolean)],e.prototype,"inline",void 0),z([Object(o.b)({type:Object,required:!0}),V("design:type",Object)],e.prototype,"page",void 0),z([Object(o.b)({type:Object,required:!1}),V("design:type",Object)],e.prototype,"parent",void 0),z([Object(o.b)({type:Object,required:!0}),V("design:type",Object)],e.prototype,"site",void 0),z([Object(o.b)({type:Array,required:!0}),V("design:type",Array)],e.prototype,"images",void 0),z([Object(o.b)(Number),V("design:type",Number)],e.prototype,"imageIndex",void 0),z([Object(o.b)({type:String,required:!1}),V("design:type",String)],e.prototype,"imageRatio",void 0),z([Object(o.b)(String),V("design:type",String)],e.prototype,"routerName",void 0),z([Object(o.b)({type:Boolean,default:!0}),V("design:type",Boolean)],e.prototype,"videoControlsEnabled",void 0),z([Object(o.b)({type:Boolean,default:!1}),V("design:type",Boolean)],e.prototype,"useRatio",void 0),z([Object(o.b)({type:Number,default:0}),V("design:type",Number)],e.prototype,"itemPosition",void 0),z([Object(o.b)({type:Boolean,default:!0}),V("design:type",Boolean)],e.prototype,"keyBinds",void 0),z([Object(o.b)(Boolean),V("design:type",Boolean)],e.prototype,"hasInlineStyle",void 0),z([Object(o.b)({type:Boolean}),V("design:type",Boolean)],e.prototype,"descriptionOpen",void 0),z([Object(o.b)({type:Boolean,default:!1}),V("design:type",Boolean)],e.prototype,"growWithContent",void 0),z([Object(o.b)({type:Boolean,default:!0}),V("design:type",Boolean)],e.prototype,"useContentSpacing",void 0),z([Object(o.c)("page.showDescription"),V("design:type",Function),V("design:paramtypes",[Boolean]),V("design:returntype",void 0)],e.prototype,"onChanged",null),z([Object(o.c)("page.coverMediaAutoPlay"),V("design:type",Function),V("design:paramtypes",[]),V("design:returntype",void 0)],e.prototype,"onCoverMediaAutoPlayChanged",null),z([Object(o.c)("images"),V("design:type",Function),V("design:paramtypes",[]),V("design:returntype",void 0)],e.prototype,"onImagesChange",null),z([H.a,Object(o.a)({name:"SlideshowItemComponent",components:{"image-loader":P.a,"page-description":U},methods:{orientationClass:I.a,contentSpacingHelper:y.b,pageDataHelper:y.c}})],e)}(Object(A.c)(j.a)),Y=n(106),X=n.n(Y),Z=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Q=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.textStyle=function(){return{color:Object(x.a)(e.page.textColor||Object(x.g)(e.site),e.page.invertColors)}},e}return Z(e,t),e.prototype.textChange=function(t,e,n,r){this.$liveSite||(this.$store.commit(h.fb,{pageId:this.page.id,key:e,value:t}),this.$store.commit(h.fb,{pageId:this.page.id,key:n,value:r}))},J([Object(o.b)({type:Object,required:!0}),Q("design:type",Object)],e.prototype,"page",void 0),J([Object(o.b)({type:Object,required:!0}),Q("design:type",Object)],e.prototype,"site",void 0),J([Object(o.b)({type:Array,required:!0}),Q("design:type",Array)],e.prototype,"images",void 0),J([Object(o.b)(Number),Q("design:type",Number)],e.prototype,"imageIndex",void 0),J([Object(o.b)(Boolean),Q("design:type",Boolean)],e.prototype,"loading",void 0),J([X.a,Object(o.a)({name:"SlideshowItemComponent",components:{"quill-editor":k.a,"quill-live":S,"slideshow-item":W},methods:{contentSpacingHelper:y.b}})],e)}(i.a),et=n(44),nt=n.n(et),rt=n(107),it=n.n(rt),ot=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),at=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},st=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ct={title:"Title",description:"Description"},ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasDescription=function(){var t;return!!(null===(t=null==e?void 0:e.description)||void 0===t?void 0:t.ops)&&e.description.ops[0].insert.length>1},e.hasTitle=function(){var t;return(null===(t=e.title)||void 0===t?void 0:t.length)>0},e.showPlaceholder=function(){return!e.hasDescription()&&!e.hasTitle()&&!e.$liveSite&&e.showPlaceholders},e.placeholderText=function(t){return e.showPlaceholder()&&ct[t]?ct[t]:""},e.titleText=function(){return e.title?e.title:e.placeholderText("title")},e}return ot(e,t),at([Object(o.b)(String),st("design:type",String)],e.prototype,"title",void 0),at([Object(o.b)(Object),st("design:type",Object)],e.prototype,"description",void 0),at([Object(o.b)(String),st("design:type",Object)],e.prototype,"pageId",void 0),at([Object(o.b)({type:Boolean,default:!0}),st("design:type",Boolean)],e.prototype,"showPlaceholders",void 0),at([it.a,Object(o.a)({name:"CaptionComponent",components:{"quill-live":S},methods:{widont:nt.a}})],e)}(i.a),lt=n(21),ft=function(t,e){return"link"===t&&e},dt=function(t,e,n,r,i,o,a){if(!ft(n,i))return"submenu"!==r||i?function(t,e,n,r,i,o){return"overlay"===n&&"small"!==i?function(t,e,n,r){return{name:"page_overlay",params:{id:r,overlay_page_id:Object(m.d)(t,e,n)}}}(t,e,r,o):"page"===n||"overlay"===n?function(t,e,n){return{name:"page",params:{id:Object(m.d)(t,e,n)}}}(t,e,r):void 0}(t,e,r,i,o,a):function(t,e){return{name:"submenu",params:{id:e,submenuid:t}}}(e,a)},pt=function(t,e,n,r){if(r&&ft(e,r))return Object(m.a)(t)},ht=n(108),gt=n.n(ht),vt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},mt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;return vt(e,t),e.prototype.urlTarget=function(){return this.url?"_blank":"_self"},e.prototype.urlRel=function(){return this.url?"noopener noreferrer":""},yt([Object(o.b)(Object),mt("design:type","function"==typeof(n="undefined"!=typeof Record&&Record)?n:Object)],e.prototype,"route",void 0),yt([Object(o.b)({type:Boolean,default:!1}),mt("design:type",Boolean)],e.prototype,"exactRoute",void 0),yt([Object(o.b)(String),mt("design:type",String)],e.prototype,"url",void 0),yt([gt.a,Object(o.a)({name:"NavigationLinkComponent"})],e)}(i.a),_t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(){return(wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ot=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Et=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},St={XS:R.i.S,S:R.i.S,M:R.i.M,L:R.i.L,XL:R.i.L},kt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.backgroundCSS={},e.showVideoControls=function(){return!e.page.imagegridViewerEnabled&&(!e.page.videoAutoplay||e.page.videoAutoplay&&e.page.videoControls)},e.showVideoIcon=function(){return e.page.imagegridViewerEnabled&&!e.page.videoAutoplay},e}return _t(e,t),e.prototype.maybePage=function(t){var e=this.pageData(t);if(e)return e},e.prototype.externalLink=function(t){var e=this.maybePage(t.pageId);if(e){var n=e.link_page_url,r=e.type;return e.menu_representation,pt(n,r,0,this.$liveSite)}},e.prototype.internalRouteLink=function(t){var e=this.maybePage(t);if(e){var n=e.path,r=e.id,i=e.type,o=e.menu_representation;return dt(n,r,i,o,this.$liveSite,this.$mq,this.$route.params.id)}},e.prototype.viewerRouteLink=function(t,e){var n=this.page;return function(t,e,n,r,i,o,a){return n&&"small"!==o?{name:"viewer",params:{id:Object(m.d)(t,e,a),image_id:r,image_index:i}}:{}}(n.path,n.id,n.imagegridViewerEnabled,t,e,this.$mq,this.$liveSite)},e.prototype.routeLink=function(t,e){return"index"===this.page.type?this.internalRouteLink(t.pageId):this.viewerRouteLink(t.id,e)},e.prototype.fullScreen=function(){return this.$liveSite&&"small"===this.$mq&&"index"!==this.page.type},Object.defineProperty(e.prototype,"orientation",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getGridImages",{get:function(){return this.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imageSize",{get:function(){return St[this.page.imagegridColumns]},enumerable:!1,configurable:!0}),e.prototype.isExternalURL=function(t){var e;return"link"===(null===(e=this.pageData(t))||void 0===e?void 0:e.type)&&"_blank"},Object.defineProperty(e.prototype,"scaleVideo",{get:function(){return("Contained"!==this.page.imagegridLayout||"small"!==this.$mq)&&"Contained"===this.page.imagegridLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaptionPlaceholders",{get:function(){return"grid"===this.page.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsObjectFit",{get:function(){return"objectFit"in document.documentElement.style==1},enumerable:!1,configurable:!0}),e.prototype.objectFitFallbackImage=function(t){return"Cover"!==this.page.imagegridLayout||this.supportsObjectFit?void 0:wt({backgroundImage:"url("+t.src+"?s=M)"},this.backgroundCSS)},Object.defineProperty(e.prototype,"lazyLoadContainer",{get:function(){return this.$liveSite||"overlay"===this.page.menu_representation?null:".site-Wrapper"},enumerable:!1,configurable:!0}),e.prototype.published=function(t){return"index"===this.page.type&&t&&!t.published},e.prototype.imageWeightClass=function(t){return t?"weight_"+t.weight:"weight_3"},e.prototype.isGridContainedOrCover=function(){return"Contained"===this.page.imagegridLayout||"Cover"===this.page.imagegridLayout},e.prototype.isGridColumns=function(){return"Columns"===this.page.imagegridLayout},e.prototype.coverImage=function(t){var e;return(e=this.$liveSite?this.$initialdata.sets.find((function(e){return e.id===t.setId})):this.$store.getters.getSetById(t.setId))&&e.cover_image?e.cover_image:Object(lt.a)(1,!0)[0]},e.prototype.pageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},Ot([Object(o.b)({type:Object,required:!0}),Et("design:type",Object)],e.prototype,"page",void 0),Ot([Object(o.b)({type:Object,required:!1}),Et("design:type",Object)],e.prototype,"parent",void 0),Ot([Object(o.b)({type:Object,required:!0}),Et("design:type",Object)],e.prototype,"site",void 0),Ot([Object(o.b)({type:Array,required:!1}),Et("design:type",Array)],e.prototype,"pages",void 0),Ot([Object(o.b)({type:Array,required:!1}),Et("design:type",Array)],e.prototype,"images",void 0),Ot([Object(o.b)({type:Number,default:0}),Et("design:type",Number)],e.prototype,"itemPosition",void 0),Ot([Object(o.a)({name:"GridBaseComponent",components:{"caption-item":ut,"image-loader":P.a,"page-description":U,"navigation-link":bt},methods:{contentSpacingHelper:y.b,orientationClass:I.a,pageDataHelper:y.c,routeHelper:m.d}})],e)}(i.a),Ct=function(t){var e=t.match(/([0-9\.]+)(vmin)/),n=Math.min(window.innerWidth,window.innerHeight);return e?n*(Number(e[1])/100):0},Tt=n(109),At=n.n(Tt),xt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Pt={XS:6,S:5,M:4,L:3,XL:2},Rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nCols=0,e.colsItems=[],e.colsTotalHeight=[],e.colsCount=0,e.gutterSize=0,e.count=0,e}return xt(e,t),Object.defineProperty(e.prototype,"columns",{get:function(){var t=this,e=Pt[this.page.imagegridColumns]-1;switch(this.$mq){case"small":this.initCols(1),this.colsTotalHeight=[],this.gutterSize=0;break;case"medium":e>=3?this.initCols(3):this.initCols(e),this.initGridSizing();break;default:this.initCols(e),this.initGridSizing()}return this.images.forEach((function(e){var n=t.smallestCol();1!==t.nCols&&t.addToColHeightTotals(n,e),t.addToColItems(n,e)})),this.colsItems},enumerable:!1,configurable:!0}),e.prototype.initCols=function(t){this.count=0,this.nCols=t,this.colsItems=Array.from(Array.from({length:this.nCols},(function(t,e){return e}))).map((function(){return[]}))},e.prototype.initGridSizing=function(){this.setGutterSize(),this.colsTotalHeight=Array(this.nCols).fill(0)},e.prototype.calcHeight=function(t){return Math.ceil(t.height/t.width*1e3)},e.prototype.addToColHeightTotals=function(t,e){var n=Lt(this.colsTotalHeight),r=this.calcHeight(e);n[t]=n[t]+r+Math.ceil(this.gutterSize),this.colsTotalHeight=n},e.prototype.addToColItems=function(t,e){var n=Lt(this.colsItems);n[t].push({image:e,index:this.count}),this.colsItems=n,this.count+=1},e.prototype.smallestCol=function(){return 0===this.nCols?0:this.colsTotalHeight.reduce((function(t,e,n,r){return e<r[t]?n:t}),0)},e.prototype.setGutterSize=function(){var t=document.querySelector(".page");if(t){var e=window.getComputedStyle(t,null).getPropertyValue("--page-gutter-js");this.gutterSize=Ct(e)}},function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([At.a,Object(o.a)({name:"GridColumnsComponent"})],e)}(kt),It=n(33),jt=n.n(It),Dt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([jt.a,Object(o.a)({name:"GridContainedComponent"})],e)}(kt),Mt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Bt={backgroundPosition:"center center",backgroundSize:"cover"},Ut=function(t){function e(){var e=t.call(this)||this;return e.backgroundCSS=Bt,e}return Mt(e,t),e.prototype.reverseRatio=function(t){var e=t.split(":");return[e[1],":",e[0]].join("")},Object.defineProperty(e.prototype,"orientation",{get:function(){return"Landscape"===this.page.imagegridRatioOrientation?this.page.imagegridRatio:this.reverseRatio(this.page.imagegridRatio)},enumerable:!1,configurable:!0}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([jt.a,Object(o.a)({name:"GridCoverComponent"}),Ft("design:paramtypes",[])],e)}(kt),$t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ht={backgroundPosition:"center center",backgroundSize:"contain",backgroundRepeat:"no-repeat"},Gt=function(t){function e(){var e=t.call(this)||this;return e.backgroundCSS=Ht,e}return $t(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([jt.a,Object(o.a)({name:"GridIrregularComponent"}),qt("design:paramtypes",[])],e)}(kt),zt=n(110),Vt=n.n(zt),Kt=n(22),Wt=n(111),Yt=n.n(Wt),Xt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zt=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Jt=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Qt={XS:210,S:310,M:430,L:510,XL:610},te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.justiefiedLayoutGemometry=[],e.padding=0,e.ready=!1,e.rowSizes=Qt,e.width=0,e}return Xt(e,t),Object.defineProperty(e.prototype,"rowImageSize",{get:function(){return this.rowSizes[this.page.imagegridColumns]},enumerable:!1,configurable:!0}),e.prototype.justifiedImageDimensions=function(t,e){if(void 0===e&&(e=!0),"small"!==this.$mq&&this.isJustified()&&this.ready&&this.justiefiedLayoutGemometry.boxes[t]){var n=this.justiefiedLayoutGemometry.boxes[t].width+"px",r=this.justiefiedLayoutGemometry.boxes[t].height+"px";return e?{width:n,height:r}:{width:n}}},e.prototype.lastItemInRow=function(t){if(!this.isJustified()||!this.justiefiedLayoutGemometry.boxes)return{};var e=t+1;return this.justiefiedLayoutGemometry.boxes.length-1>t&&this.justiefiedLayoutGemometry.boxes[e].top>this.justiefiedLayoutGemometry.boxes[t].top||this.justiefiedLayoutGemometry.boxes.length-1===t?{marginRight:"0px"}:void 0},e.prototype.isJustified=function(){return"Justified"===this.page.imagegridHorizontalAlign&&"small"!==this.$mq},e.prototype.calcJustiefiedLayoutGemometry=function(){if(console.log("calcJustiefiedLayoutGemometry"),this.images&&this.isJustified()){var t=this.getGridImages.map((function(t){return{width:t.width,height:t.height}})),e=Vt()(t,{containerWidth:this.width-1,targetRowHeight:this.rowImageSize,containerPadding:0,boxSpacing:{horizontal:this.padding,vertical:0},targetRowHeightTolerance:.25,fullWidthBreakoutRowCadence:!1});this.justiefiedLayoutGemometry=e,this.ready=!0}},e.prototype.observerSize=function(){var t=this;this.sizeObserver=new Kt.a((function(e){if(Array.isArray(e)&&e.length)for(var n=0,r=e;n<r.length;n++){var i=r[n].contentRect.width;t.width=i,t.padding=t.setGutterSize(),t.calcJustiefiedLayoutGemometry()}}));var e=document.getElementById("js-grid-Rows");this.sizeObserver.observe(e)},e.prototype.setGutterSize=function(){var t=document.querySelector(".page");if(t){var e=window.getComputedStyle(t,null).getPropertyValue("--page-gutter-js");return Ct(e)}},e.prototype.onPageIdChanged=function(){this.isJustified()&&this.calcJustiefiedLayoutGemometry()},e.prototype.onImagegridColumnsChanged=function(){this.isJustified()&&this.calcJustiefiedLayoutGemometry()},e.prototype.onImagegridHorizontalAlignChanged=function(){this.isJustified()?(this.ready=!1,this.observerSize()):this.sizeObserver&&this.sizeObserver.disconnect()},e.prototype.mounted=function(){var t=this;this.isJustified()?this.$nextTick((function(){return t.observerSize()})):this.ready=!0},e.prototype.created=function(){this.$liveSite||L.a.$on("CLOSE_ORGANIZER",this.calcJustiefiedLayoutGemometry)},e.prototype.beforeDestroy=function(){this.sizeObserver&&this.sizeObserver.disconnect()},Zt([Object(o.c)("page.id"),Jt("design:type",Function),Jt("design:paramtypes",[]),Jt("design:returntype",void 0)],e.prototype,"onPageIdChanged",null),Zt([Object(o.c)("page.imagegridColumns"),Jt("design:type",Function),Jt("design:paramtypes",[]),Jt("design:returntype",void 0)],e.prototype,"onImagegridColumnsChanged",null),Zt([Object(o.c)("page.imagegridHorizontalAlign"),Jt("design:type",Function),Jt("design:paramtypes",[]),Jt("design:returntype",void 0)],e.prototype,"onImagegridHorizontalAlignChanged",null),Zt([Yt.a,Object(o.a)({name:"GridRowsComponent"})],e)}(kt),ee=n(112),ne=n.n(ee),re=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return re(e,t),Object.defineProperty(e.prototype,"gridType",{get:function(){switch(this.page.imagegridLayout){case"Columns":return Rt;case"Contained":default:return Nt;case"Cover":return Ut;case"Irregular":return Gt;case"Rows":return te}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imagegridViewerEnabled",{get:function(){return this.page.imagegridViewerEnabled&&"small"!==this.$mq},enumerable:!1,configurable:!0}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([ne.a,Object(o.a)({name:"GridItemComponent",components:{"grid-columns":Rt,"grid-contained":Nt,"grid-cover":Ut,"grid-irregular":Gt,"grid-rows":te}})],e)}(kt),oe=n(113),ae=n.n(oe),se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ue=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},le=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return se(e,t),ce([Object(o.b)({type:Object,required:!0}),ue("design:type",Object)],e.prototype,"page",void 0),ce([Object(o.b)({type:Object,required:!0}),ue("design:type",Object)],e.prototype,"site",void 0),ce([Object(o.b)(Array),ue("design:type",Array)],e.prototype,"images",void 0),ce([Object(o.b)(Boolean),ue("design:type",Boolean)],e.prototype,"loading",void 0),ce([ae.a,Object(o.a)({name:"GridComponent",components:{"page-description":U,"image-loader":P.a,"caption-item":ut,"grid-item":ie},methods:{orientationClass:I.a,contentSpacingHelper:y.b}})],e)}(i.a),fe=n(51),de=n(34),pe=n(115),he=n.n(pe),ge=n(6),ve=n(9),ye=n(116),me=n.n(ye),be=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_e=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},we=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openSubmenuId="",e.SocialIcons=ge.e,e}return be(e,t),Object.defineProperty(e.prototype,"submenuWidth",{get:function(){return"Blocks"!==this.site.layout&&"small"!==this.$mq&&"200px"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOverlay",{get:function(){return this.overlay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageRouteId",{get:function(){return this.$route.params.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submenuBackgroundColor",{get:function(){if(this.isHorizonalLayout)return Object(x.a)(this.site.backgroundColor,this.page.invertColors)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isHorizonalLayout",{get:function(){return"Horizontal"===this.site.layout&&"small"!==this.$mq},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobile",{get:function(){return"small"===this.$mq},enumerable:!1,configurable:!0}),e.prototype.menuRoute=function(t){var e=t.path,n=t.id,r=t.type,i=t.menu_representation;return dt(e,n,r,i,this.$liveSite,this.$mq,this.currentPageRouteId)},e.prototype.menuUrl=function(t){var e=t.link_page_url,n=t.type;return t.menu_representation,pt(e,n,0,this.$liveSite)},e.prototype.showSubPage=function(t){return!t.stacked},e.prototype.isLinkType=function(t,e){return t.menu_representation===e},e.prototype.isSubmenuOpenForVertical=function(t){if("Vertical"!==this.site.layout&&"Corner"!==this.site.layout)return!1;if(!this.$liveSite){var e=this.$store.getters.getPageById(this.$route.params.id);return t.id===e.parent_id}return this.$liveSite&&this.$route.params.id?(Array.isArray(this.$route.params.id)?this.$route.params.id[0]:this.$route.params.id.split("/")[0])===t.slug:void 0},e.prototype.isSubmenuOpen=function(t){return!(!this.isMobile||"index"!==t.type||"overlay"!==t.menu_representation)||"submenu"===t.menu_representation&&(!!this.isMobile||(this.$liveSite?t.id===this.openSubmenuId||this.isSubmenuOpenForVertical(t):t.id===this.$route.params.submenuid||this.isSubmenuOpenForVertical(t)))},e.prototype.toggleSubmenu=function(t,e){if(this.$liveSite)return this.isLinkType(t,"submenu")&&e.stopPropagation(),t.id===this.openSubmenuId?this.openSubmenuId="":this.openSubmenuId=t.id,void this.openOverlay()},e.prototype.clickSubmenuItem=function(){"Vertical"!==this.site.layout&&(this.openSubmenuId="")},e.prototype.exactRoute=function(t){return""===t.path},e.prototype.isActiveIndex=function(t){if(this.openSubmenuId===t.id&&t.id===this.$route.params.submenuid)return!0;var e=this.currentPageRouteId;if(this.$liveSite&&(null==e?void 0:e.includes("/")))return t.path===e.split("/")[0];if(!this.$liveSite&&e){var n=this.$store.getters.getPageById(e);if(n)return t.id===n.parent_id}return!1},e.prototype.navLinkClass=function(t){return{active:this.isActiveIndex(t),submenupage:this.isLinkType(t,"submenu")&&this.$liveSite}},e.prototype.registerElPosition=function(t){var e=t.target;this.$livestate.menuItemBounds=e.getBoundingClientRect()},e.prototype.openOverlay=function(){this.$emit("openOverlay")},e.prototype.appWidth=function(){return!this.$liveSite&&this.$store.getters.showSidebar()?window.innerWidth-381:window.innerWidth},e.prototype.calculateSubmenuClass=function(){var t=this;if("small"!==this.$mq){var e=this.$refs.menuParent;!e||e.forEach((function(e){e.classList.remove("alignright"),t.appWidth()-e.offsetLeft>220||e.classList.add("alignright")}))}},e.prototype.hideText=function(t){return t.hideTextInMenu&&"none"!==t.icon},e.prototype.iconLabel=function(t){return this.hideText(t)?t.icon:""},e.prototype.onLayoutChange=function(){this.calculateSubmenuClass()},e.prototype.mounted=function(){var t=this;this.$nextTick((function(){t.calculateSubmenuClass()}))},_e([Object(o.b)(Array),we("design:type",Array)],e.prototype,"items",void 0),_e([Object(o.b)(Object),we("design:type",Object)],e.prototype,"page",void 0),_e([Object(o.b)(Object),we("design:type",Object)],e.prototype,"site",void 0),_e([Object(o.b)(Boolean),we("design:type",Boolean)],e.prototype,"overlay",void 0),_e([Object(o.b)(Boolean),we("design:type",Boolean)],e.prototype,"grouped",void 0),_e([Object(o.b)(String),we("design:type",String)],e.prototype,"groupname",void 0),_e([Object(o.c)("site.layoutVariation"),we("design:type",Function),we("design:paramtypes",[]),we("design:returntype",void 0)],e.prototype,"onLayoutChange",null),_e([me.a,Object(o.a)({name:"MenuItemsComponent",methods:{routeHelper:m.d,widont:nt.a},filters:{truncate:de.a},components:{"icon-base":ve.g,"navigation-link":bt}})],e)}(i.a),Ee=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Se=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ke=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ee(e,t),Object.defineProperty(e.prototype,"isOverlay",{get:function(){return this.overlay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPrimary",{get:function(){return"primary"===this.menuSlot},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSecondary",{get:function(){return"secondary"===this.menuSlot},enumerable:!1,configurable:!0}),e.prototype.getMenu=function(t){if(this.site.menus)return this.site.menus.find((function(e){return e.slot===t}))},e.prototype.openOverlay=function(){this.$emit("openOverlay")},Se([Object(o.b)(String),ke("design:type",String)],e.prototype,"name",void 0),Se([Object(o.b)(Object),ke("design:type",Object)],e.prototype,"page",void 0),Se([Object(o.b)(Object),ke("design:type",Object)],e.prototype,"site",void 0),Se([Object(o.b)(String),ke("design:type",String)],e.prototype,"menuSlot",void 0),Se([Object(o.b)(Boolean),ke("design:type",Boolean)],e.prototype,"overlay",void 0),Se([he.a,Object(o.a)({name:"MenuComponent",filters:{truncate:de.a},components:{"menu-items":Oe}})],e)}(i.a),Te=n(23),Ae=n(117),xe=n.n(Ae),Le=n(118),Pe=n.n(Le),Re=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ie=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},je=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Re(e,t),e.prototype.openMobileMenu=function(){this.$emit("openMobileMenu")},Ie([Object(o.b)(String),je("design:type",String)],e.prototype,"textColor",void 0),Ie([Pe.a,Object(o.a)({})],e)}(i.a),Ne=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Fe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Be=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBase=ge.l,e.menuOverlayOpen=!1,e.getBgColor=function(){return e.page.backgroundColor&&!e.site.showContentBackground?e.page.backgroundColor:e.site.backgroundColor},e.getTextColor=function(){return e.page.textColor&&!e.site.showContentBackground&&e.page.textColor||e.site.textColor},e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return Ne(e,t),Object.defineProperty(e.prototype,"defaultBgColor",{get:function(){return this.invertColor(this.getBgColor())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return"small"===this.$mq?this.mobileBackgroundColor(!0):this.isBgTransparent?"transparent":this.defaultBgColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this.invertColor(this.getTextColor())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isBgTransparent",{get:function(){if("Corner"===this.site.layout)return!0;if("full"!==this.page.coverMediaFit)return!1;switch(this.page.type){case"slideshow":case"cover":return"Full"===Object(y.b)(this.page.slideshowSize,this.site,this.page);case"grid":return"Full"===Object(y.b)(this.page.contentSize,this.site,this.page);case"row":return"Full"===Object(y.b)(this.page.horizontalscrollSize,this.site,this.page);default:return!1}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMenuOverlayOpen",{get:function(){return this.menuOverlayOpen&&"small"===this.$mq},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAndNotEmpty",{get:function(){return"small"===this.$mq&&this.site.mobileHeaderEnabled&&(this.site.menus&&this.site.menus[0].items.length>0||this.site.menus&&this.site.menus[1].items.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showVertical",{get:function(){return"Vertical"===this.site.layout&&"small"!==this.$mq&&"slideshow"===this.page.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOverlayOpen",{get:function(){return this.menuOverlayOpen},enumerable:!1,configurable:!0}),e.prototype.mobileBackgroundColor=function(t){return Object(x.a)(this.defaultBgColor,!1,t?$.j:$.k)},e.prototype.invertColor=function(t){return Object(x.a)(t,this.page.invertColors)},e.prototype.openOverlay=function(){this.menuOverlayOpen=!this.menuOverlayOpen},e.prototype.beforeLeaveSlideshowFooter=function(t){"Vertical"!==this.site.layout&&(t.style.display="none")},e.prototype.colors=function(){return{backgroundColor:Object(m.b)(this.$route,this.page)?"none":this.backgroundColor,color:this.textColor}},e.prototype.closeOverlayPage=function(){this.$router.push({name:"page",params:{id:this.$route.params.id}}).catch((function(){}))},Me([Object(o.b)({type:Object,required:!0}),Fe("design:type",Object)],e.prototype,"page",void 0),Me([Object(o.b)({type:Object,required:!0}),Fe("design:type",Object)],e.prototype,"site",void 0),Me([Object(o.b)({type:Array,required:!0}),Fe("design:type",Array)],e.prototype,"images",void 0),Me([Object(o.b)([Number,String]),Fe("design:type",Number)],e.prototype,"imageIndex",void 0),Me([xe.a,Object(o.a)({name:"HeaderComponent",components:{"hamburger-item":De,logo:fe.a,"menu-component":Ce,"icon-base":Te.a},methods:{contentSpacingHelper:y.b,isOverlayPage:m.b,menuRepresentation:m.c}})],e)}(i.a),Ue=function(t){return t.getBoundingClientRect().height-(parseFloat(window.getComputedStyle(t).paddingTop)+parseFloat(window.getComputedStyle(t).paddingBottom))},$e=function(t){return Math.floor(parseFloat(window.getComputedStyle(t).lineHeight))},qe=function(t){return Ue(t)-function(t){return $e(t)*function(t){return Math.floor(Ue(t)/$e(t))}(t)}(t)},He=n(119),Ge=n.n(He),ze=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve=function(){return(Ve=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Ke=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},We=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ye=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.captionIsOverflown=!1,e.captionIsOneliner=!1,e.captionIsOpen=!1,e.SlideshowIcons=ge.d,e.hiddenPixels="0px",e.captionHeight=0,e.captionWidth=0,e.moreTextCssStyles=function(t){return Ve({bottom:e.captionHiddenHeight+1+"px",paddingLeft:t+"px"},e.gradientCSS(t))},e.hasDescription=function(){var t;return!!(null===(t=null==e?void 0:e.$attrs.description)||void 0===t?void 0:t.ops)&&e.$attrs.description.ops[0].insert.length>1},e.hasTitle=function(){var t;return(null===(t=e.$attrs.title)||void 0===t?void 0:t.length)>0},e.isOverflown=function(t){var e;return((null===(e=t.querySelector(".caption-Inner"))||void 0===e?void 0:e.getBoundingClientRect().height)||0)>Math.ceil(Ue(t))},e.isOneLiner=function(t){var e;return((null===(e=t.querySelector(".caption-Inner"))||void 0===e?void 0:e.getBoundingClientRect().height)||0)===$e(t)},e}return ze(e,t),e.prototype.gradientCSS=function(t){return this.$attrs["part-of-blank-page-grid"]?{}:Ve({},Object(x.c)(this.backgroundColor,90,[{alpha:0,position:"0px"},{alpha:.9,position:t-2+"px"}]))},Object.defineProperty(e.prototype,"captionCssStyles",{get:function(){return{"--background-color":this.backgroundColor,"--background-color-solid":Object(x.f)(this.backgroundColor)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideTextCssStyles",{get:function(){return{height:this.hiddenPixels,bottom:"-1px"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOverflownCssClasses",{get:function(){return{"is-overflown":this.captionIsOverflown&&!this.captionIsOpen,"is-expanded-overflown":this.captionIsOverflown&&this.captionIsOpen,"is-oneliner":this.captionIsOneliner}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExpandedCssClasses",{get:function(){return{"is-expanded":this.captionIsOpen}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculateHiddenPixels",{get:function(){return this.captionHiddenHeight+0+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"captionHasContent",{get:function(){return this.hasTitle()||this.hasDescription()||!this.$liveSite},enumerable:!1,configurable:!0}),e.prototype.toggle=function(){(this.captionIsOpen||this.captionIsOverflown)&&(this.$el.scrollTop=0,this.captionIsOpen=!this.captionIsOpen,this.captionIsOpen?this.captionIsOverflown=!1:this.captionIsOverflown=!0)},e.prototype.observeHeight=function(t){var e=this;this.roHeight=new Kt.a((function(t){window.requestAnimationFrame((function(){var n;if(Array.isArray(t)&&t.length)for(var r=0,i=t;r<i.length;r++){var o=i[r];e.captionHeight=null===(n=o.contentRect)||void 0===n?void 0:n.height}}))})),this.roHeight.observe(t)},e.prototype.observeWidth=function(t){var e=this;this.roWidth=new Kt.a((function(t){window.requestAnimationFrame((function(){var n;if(Array.isArray(t)&&t.length)for(var r=0,i=t;r<i.length;r++){var o=i[r];e.captionWidth=null===(n=o.contentRect)||void 0===n?void 0:n.width}}))})),this.roWidth.observe(t)},e.prototype.resize=function(){var t=this;this.$nextTick((function(){t.observeHeight(t.$el.querySelector(".caption-Inner")),t.observeWidth(t.$el)}))},e.prototype.mounted=function(){var t=this;this.$nextTick((function(){var e,n;null===(n=null===(e=t.$el)||void 0===e?void 0:e.querySelectorAll("a, .editorLink"))||void 0===n||n.forEach((function(t){return t.addEventListener("click",(function(t){t.stopPropagation()}))})),t.hiddenPixels=t.calculateHiddenPixels,t.captionIsOverflown=t.isOverflown(t.$el),t.captionIsOneliner=t.isOneLiner(t.$el),t.$liveSite||window.setTimeout((function(){t.hiddenPixels=t.calculateHiddenPixels,t.captionIsOverflown=t.isOverflown(t.$el),t.captionIsOneliner=t.isOneLiner(t.$el)}),500)})),this.resize()},e.prototype.beforeDestroy=function(){this.roHeight&&this.roHeight.disconnect(),this.roWidth&&this.roWidth.disconnect()},e.prototype.onWidthChanged=function(){this.hiddenPixels=this.calculateHiddenPixels,this.captionIsOverflown=this.isOverflown(this.$el),this.captionIsOneliner=this.isOneLiner(this.$el)},e.prototype.onHeightChanged=function(){this.captionIsOverflown=this.isOverflown(this.$el),this.captionIsOneliner=this.isOneLiner(this.$el)},Ke([Object(o.b)(String),We("design:type",String)],e.prototype,"backgroundColor",void 0),Ke([Object(o.b)(Number),We("design:type",Number)],e.prototype,"captionHiddenHeight",void 0),Ke([Object(o.c)("captionWidth"),We("design:type",Function),We("design:paramtypes",[]),We("design:returntype",void 0)],e.prototype,"onWidthChanged",null),Ke([Object(o.c)("captionHeight"),We("design:type",Function),We("design:paramtypes",[]),We("design:returntype",void 0)],e.prototype,"onHeightChanged",null),Ke([Ge.a,Object(o.a)({name:"CaptionComponent",components:{"caption-item":ut,"icon-base":Te.a},inheritAttrs:!1})],e)}(i.a),Xe=n(120),Ze=n.n(Xe),Je=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},tn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},en={S:R.i.M,M:R.i.L,L:R.i.L,Full:R.i.L},nn={S:4,M:3,L:2,Full:1.5},rn={1:.5,2:.75,3:1,4:1.25,5:1.5},on={container:"#js-row",duration:400,easing:"ease-in-out",offset:-60,cancelable:!0,onDone:function(){},onCancel:function(){},x:!0,y:!1},an=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nextItemIndex=0,e.prevItemIndex=0,e.scrollItemHeight=0,e.scrollOptions=on,e.captionHiddenHeight=0,e.SlideshowUi=ge.d,e.keyDown=!1,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.pageBg=function(){return Object(x.a)(e.page.backgroundColor||Object(x.e)(e.site),e.page.invertColors,Object(x.h)(e.site.highlightTransparency))},e.getCaptionHiddenHeight=function(t){return null===t.querySelector(".row-Item_Caption")?0:qe(t.querySelector(".row-Item_Caption"))},e}return Je(e,t),Object.defineProperty(e.prototype,"getRowImages",{get:function(){return this.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showNext",{get:function(){return this.nextItemIndex<2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showPrev",{get:function(){return this.nextItemIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imageSize",{get:function(){return"Default"===this.page.horizontalscrollSize?en[this.site.contentSize]:en[Object(y.b)(this.page.horizontalscrollSize,this.site,this.page)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemPosition",{get:function(){return this.page.showDescription?1:0},enumerable:!1,configurable:!0}),e.prototype.itemKey=function(t){return this.page.showDescription?"item"+(t+1):"item"+t},e.prototype.minMax=function(t,e,n){return Math.min(Math.max(t,e),n)},e.prototype.intersectionTresholdForScreenSizeRatio=function(){var t=1.2-window.innerHeight/window.innerWidth;return this.minMax(t,.2,.95)},Object.defineProperty(e.prototype,"intersectionTreshold",{get:function(){return"small"===this.$mq?.25:this.intersectionTresholdForScreenSizeRatio()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lazyLoadRoot",{get:function(){return"small"===this.$mq?null:"#js-row"},enumerable:!1,configurable:!0}),e.prototype.imageWeightClass=function(t){return t?"weight_"+t.weight:"weight_3"},e.prototype.getScrollItemSize=function(t){if("small"===this.$mq)return{height:"auto"};var e=t.width/t.height;if("Equalheight"===this.page.horizontalscrollType){var n=this.scrollItemHeight*e;return{height:this.scrollItemHeight+"px",width:n+"px"}}if("Contained"===this.page.horizontalscrollType){var r,i=Math.log10(t.height/t.width*10)+.2;return i>1.3&&(i=1.3),{width:(r=(this.scrollItemHeight-this.scrollItemHeight*(1.3-1))*i)*e+"px"}}return"Irregular"===this.page.horizontalscrollType?{height:(r=this.scrollItemHeight/nn[Object(y.b)(this.page.horizontalscrollSize,this.site,this.page)]*rn[t.weight])+"px",width:r*e+"px"}:void 0},e.prototype.placeOnScreen=function(t,e){return e/t>1-.8},e.prototype.navigate=function(t){var e="#item";"next"===t&&(e=""+e+(this.nextItemIndex+1)),"prev"===t&&(e+=this.prevItemIndex),("prev"===t&&this.prevItemIndex>=0||"next"===t&&this.nextItemIndex<this.images.length)&&u.a.scrollTo(e,on)},e.prototype.click=function(t,e){if(!(t&&"video"===t.type&&e.srcElement&&e.srcElement.clientHeight-e.layerY<40))if(0!==this.nextItemIndex){var n=e.clientX,r=window.innerWidth||document.body.clientWidth;this.placeOnScreen(r,n)?this.navigate("next"):this.navigate("prev")}else this.navigate("next")},e.prototype.handleKeyDownLongNavigate=function(){39===this.keyDownKey&&this.navigate("next"),37===this.keyDownKey&&this.navigate("prev")},e.prototype.keyDowInterval=function(){this.handleKeyDownLongNavigate(),this.keyDownNavigateInterval=window.setInterval(this.handleKeyDownLongNavigate,450)},e.prototype.handleKeyDown=function(t){var e=this;if(!t.target||"BODY"===t.target.tagName){var n=t.which||t.keyCode;[39,38,37,40].includes(n)&&(t.preventDefault(),t.stopPropagation(),this.keyDownKey=t.which||t.keyCode,this.keyDown||(this.keyDownTimeout=window.setTimeout((function(){return e.keyDowInterval()}),700)),this.keyDown=!0)}},e.prototype.handleKeyNavigation=function(t){var e=this;if(!t.target||"BODY"===t.target.tagName){if(t.preventDefault(),t.stopPropagation(),this.keyDown=!1,this.keyDownTimeout&&clearTimeout(this.keyDownTimeout),this.keyDownNavigateInterval)return clearInterval(this.keyDownNavigateInterval),void(this.keyDownNavigateInterval=void 0);clearTimeout(this.keyUpTimeout),this.keyUpTimeout=window.setTimeout((function(){if(e.$liveSite||!e.$store.getters.activeTextEditor()){var n=t.which||t.keyCode;39!==n&&38!==n||e.navigate("next"),37!==n&&40!==n||e.navigate("prev"),27!==n&&36!==n||(e.prevItemIndex=0,e.nextItemIndex=0,e.navigate("prev")),35===n&&(e.prevItemIndex=e.images.length-3,e.nextItemIndex=e.images.length-2,e.navigate("next"))}}),300)}},e.prototype.observerSize=function(t){var e=this;this.ro=new Kt.a((function(t){window.requestAnimationFrame((function(){if(Array.isArray(t)&&t.length)for(var n=0,r=t;n<r.length;n++){var i=r[n].contentRect.height;e.scrollItemHeight=i}}))})),this.ro.observe(t)},e.prototype.resize=function(){var t=this;this.$nextTick((function(){if(t.$refs.rowContent&&t.$refs.rowContent.childNodes){var e=t.$refs.rowContent;t.observerSize(e),t.scrollItemsNodes=t.$refs.rowContent.childNodes}}))},e.prototype.reobserve=function(){"small"!==this.$mq&&(this.ro&&this.ro.disconnect(),this.resize())},e.prototype.getNextPrevItems=function(t){var e=t.filter((function(t){return t>-1})),n=t.filter((function(t){return t<0}));this.nextItemIndex=t.indexOf(Math.min.apply(Math,e)),this.prevItemIndex=Math.max(t.indexOf(Math.max.apply(Math,n)),0)},e.prototype.scrollToBeginning=function(){var t=document.querySelector("#js-row");t&&(t.scrollLeft=0)},e.prototype.scrollEvent=function(t){var e=this;"small"!==this.$mq&&(clearTimeout(this.isScrolling),this.isScrolling=setTimeout((function(){var t=[];if(e.page.showDescription){var n=document.getElementById("item0");n&&t.push(n.getBoundingClientRect().x)}for(var r=0,i=e.scrollItemsNodes;r<i.length;r++){var o=i[r];t.push(o.getBoundingClientRect().x)}e.getNextPrevItems(t)}),100))},e.prototype.onPageIdChanged=function(){"small"!==this.$mq&&this.scrollToBeginning()},e.prototype.onSetIdChanged=function(){this.reobserve()},e.prototype.onHorizontalscrollTypeChanged=function(){this.reobserve()},e.prototype.onSiteChanged=function(){this.captionHiddenHeight=this.getCaptionHiddenHeight(this.$el)},e.prototype.isTrackPad=function(t){var e=t.deltaY;return!(e&&!Number.isInteger(e))},e.prototype.mounted=function(){var t=this;if("small"!==this.$mq){window.addEventListener("keyup",this.handleKeyNavigation),window.addEventListener("keydown",this.handleKeyDown),this.resize();var e=document.getElementById("js-row");null==e||e.addEventListener("wheel",(function(n){t.isTrackPad(n)||(n.preventDefault(),e.scrollLeft+=n.deltaY)}))}},e.prototype.updated=function(){this.captionHiddenHeight=this.getCaptionHiddenHeight(this.$el)},e.prototype.beforeDestroy=function(){window.removeEventListener("keyup",this.handleKeyNavigation),window.removeEventListener("keydown",this.handleKeyDown),this.ro&&this.ro.disconnect()},Qe([Object(o.b)(Object),tn("design:type",Object)],e.prototype,"page",void 0),Qe([Object(o.b)(Object),tn("design:type",Object)],e.prototype,"site",void 0),Qe([Object(o.b)(Array),tn("design:type",Array)],e.prototype,"images",void 0),Qe([Object(o.b)(Boolean),tn("design:type",Boolean)],e.prototype,"loading",void 0),Qe([Object(o.c)("page.id"),tn("design:type",Function),tn("design:paramtypes",[]),tn("design:returntype",void 0)],e.prototype,"onPageIdChanged",null),Qe([Object(o.c)("page.setId"),tn("design:type",Function),tn("design:paramtypes",[]),tn("design:returntype",void 0)],e.prototype,"onSetIdChanged",null),Qe([Object(o.c)("page.horizontalscrollType"),tn("design:type",Function),tn("design:paramtypes",[]),tn("design:returntype",void 0)],e.prototype,"onHorizontalscrollTypeChanged",null),Qe([Object(o.c)("site.typographySize"),tn("design:type",Function),tn("design:paramtypes",[]),tn("design:returntype",void 0)],e.prototype,"onSiteChanged",null),Qe([Ze.a,Object(o.a)({name:"HorizontalPageComponent",components:{"caption-overflow":Ye,"image-loader":P.a,"page-description":U,"icon-base":ve.g},methods:{contentSpacingHelper:y.b,orientationClass:I.a}})],e)}(i.a),sn=n(121),cn=n.n(sn),un=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(){return(ln=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},fn=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},dn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},pn={XS:R.i.S,S:R.i.S,M:R.i.M,L:R.i.L,XL:R.i.L},hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ImagePageTypes=R.g,e.activeHoverImageIndex=null,e.SocialIcons=ge.e,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return un(e,t),e.prototype.activeHoverImage=function(t){return this.activeHoverImageIndex===t},Object.defineProperty(e.prototype,"captionEnabled",{get:function(){return this.page.indexCaptionEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentPageRouteId",{get:function(){return this.$route.params.id},enumerable:!1,configurable:!0}),e.prototype.getCoverImage=function(t){var e;return e=this.$liveSite?this.$initialdata.sets.find((function(e){return e.id===t.setId})):this.$store.getters.getSetById(t.setId),!this.ImagePageTypes[t.type]&&t.image_id?t.image:e&&e.cover_image?e.cover_image:Object(lt.a)(1,!0)[0]},Object.defineProperty(e.prototype,"gridItems",{get:function(){var t=this;if(!this.pageChildrenData)return[];var e=[];return this.pageChildrenData.forEach((function(n){var r=ln({},t.getCoverImage(n));r.name=n.title,r.description=n.summary,r.pageId=n.id,r.published=!!n.published_at,e.push(r)})),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoverImageEnabled",{get:function(){return this.page.menu_representation!==R.p.submenu},enumerable:!1,configurable:!0}),e.prototype.coverImage=function(t){if("small"!==this.$mq)return t.cover_image?t.cover_image:void 0},Object.defineProperty(e.prototype,"indexLayout",{get:function(){return this.page.indexLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIndexText",{get:function(){return this.page.indexLayout===R.j.Text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imageSize",{get:function(){return pn[this.page.imagegridColumns]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIndexGrid",{get:function(){return this.page.indexLayout===R.j.Grid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"indexMenu",{get:function(){var t=this,e=this.site.menus.find((function(e){return e.id===t.page.menu_id})),n=this.site.menus.find((function(e){return e.id===t.page.menu_id}));return e?e.groupname:n?n.groupname:"notinmenu"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"menuRepresentation",{get:function(){return this.page.menu_representation===R.p.submenu&&this.site.layout===R.l.Corner?"overlay":this.page.menu_representation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageChildrenData",{get:function(){var t=this;return this.page.childIds?this.page.childIds.map((function(e){return t.pageData(e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderText",{get:function(){return this.page.menu_representation===R.p.submenu&&this.page.indexLayout===R.j.Text?"Submenu":"Collection"},enumerable:!1,configurable:!0}),e.prototype.showHoverImage=function(t){"None"!==this.page.indexTextMediaSize&&this.page.menu_representation!==R.p.submenu&&(this.activeHoverImageIndex=t)},Object.defineProperty(e.prototype,"topMargin",{get:function(){return this.site.layout===R.l.Vertical&&this.page.menu_representation===R.p.submenu?this.$livestate.menuItemBounds?this.$livestate.menuItemBounds.top:0:"unset"},enumerable:!1,configurable:!0}),e.prototype.isExternalLinkType=function(t){return"link"===t.type&&this.$liveSite},e.prototype.normalRoute=function(t){var e=t.path,n=t.id;return{name:"page",params:{id:Object(m.d)(e,n,this.$liveSite)}}},e.prototype.overlayRoute=function(t){var e=t.path,n=t.id;return{name:"page_overlay",params:{id:this.currentPageRouteId,overlay_page_id:Object(m.d)(e,n,this.$liveSite)}}},e.prototype.isNormalRoute=function(t){return t.menu_representation===R.p.page},e.prototype.isOverlayRoute=function(t){return t.menu_representation===R.p.overlay},e.prototype.routeLink=function(t){return this.isNormalRoute(t)?this.normalRoute(t):this.isOverlayRoute(t)?this.overlayRoute(t):void 0},e.prototype.pageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},e.prototype.menuRoute=function(t){var e=t.path,n=t.id,r=t.type,i=t.menu_representation;return dt(e,n,r,i,this.$liveSite,this.$mq,this.currentPageRouteId)},e.prototype.menuUrl=function(t){var e=t.link_page_url,n=t.type;return t.menu_representation,pt(e,n,0,this.$liveSite)},e.prototype.hideText=function(t){return t.hideTextInMenu&&"none"!==t.icon},e.prototype.iconLabel=function(t){return this.hideText(t)?t.icon:""},fn([Object(o.b)(Object),dn("design:type",Object)],e.prototype,"page",void 0),fn([Object(o.b)(Object),dn("design:type",Object)],e.prototype,"site",void 0),fn([cn.a,Object(o.a)({name:"IndexPageComponent",components:{"caption-item":ut,"grid-item":ie,"icon-base":ve.g,"image-loader":P.a,"page-description":U,"navigation-link":bt},methods:{contentSpacingHelper:y.b,orientationClass:I.a,pageDataHelper:y.c,routeHelper:m.d}})],e)}(i.a),gn=n(122),vn=n.n(gn),yn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yn(e,t),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}([vn.a,Object(o.a)({name:"LinkPageComponent"})],e)}(i.a),bn=n(123),_n=n.n(bn),wn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),On=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},En=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.count=1,e.SlideshowUi=ge.d,e.counterCssStyles=function(){return{"--background-color":e.backgroundColor}},e}return wn(e,t),e.prototype.setCounter=function(t){t.pageId===this.page.id&&(this.count=t.index+1,this.counter=t.index)},e.prototype.resetCounter=function(){this.count=1,this.counter=0},e.prototype.mounted=function(){this.imageIndex&&(this.count=this.imageIndex+1,this.counter=this.imageIndex),L.a.$on("IMAGE_AT_INDEX",this.setCounter)},e.prototype.onSetChange=function(){this.resetCounter()},e.prototype.onPageIdChange=function(){this.resetCounter()},On([Object(o.b)({type:Object,required:!0}),En("design:type",Object)],e.prototype,"page",void 0),On([Object(o.b)({type:Array,required:!0}),En("design:type",Array)],e.prototype,"images",void 0),On([Object(o.b)(Number),En("design:type",Number)],e.prototype,"imageIndex",void 0),On([Object(o.b)({type:Boolean,default:!1}),En("design:type",Boolean)],e.prototype,"smallVariant",void 0),On([Object(o.b)(String),En("design:type",String)],e.prototype,"backgroundColor",void 0),On([Object(o.b)({type:Boolean,default:!1}),En("design:type",Boolean)],e.prototype,"backgroundIsTransparent",void 0),On([Object(o.c)("page.setId"),En("design:type",Function),En("design:paramtypes",[]),En("design:returntype",void 0)],e.prototype,"onSetChange",null),On([Object(o.c)("page.id"),En("design:type",Function),En("design:paramtypes",[]),En("design:returntype",void 0)],e.prototype,"onPageIdChange",null),On([_n.a,Object(o.a)({name:"SlideshowCounterComponent",components:{"icon-base":Te.a}})],e)}(Object(A.c)(j.a)),kn=n(124),Cn=n.n(kn),Tn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),An=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},xn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ln=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.index=0,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.isLoading=!0,e}return Tn(e,t),Object.defineProperty(e.prototype,"image",{get:function(){return this.images[this.index||0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBlankPage",{get:function(){return this.page.part_of_stacked_page&&"viewer"!==this.$route.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBlankPageGrid",{get:function(){return this.onBlankPage&&"Grid"===this.parent.indexLayout},enumerable:!1,configurable:!0}),e.prototype.setImageIndex=function(t){t.pageId===this.page.id&&(this.index=t.index)},e.prototype.loadImageIndexRoute=function(){this.index=parseInt(this.$route.params.image_index)},e.prototype.hasName=function(){var t;return!!(null===(t=this.image)||void 0===t?void 0:t.name)&&this.image.name.length>0},e.prototype.hasDescription=function(){var t,e;return!!(null===(e=null===(t=this.image)||void 0===t?void 0:t.description)||void 0===e?void 0:e.ops)&&this.image.description.ops[0].insert.length>1},e.prototype.isBlankPageGrid=function(t){return t.stacked&&"Grid"===t.indexLayout},e.prototype.showCaption=function(){return this.isBlankPageGrid(this.page)?this.page.slideshowItemCaptionEnabled:this.page.slideshowShowCaption},e.prototype.isViewer=function(){return"viewer"===this.$route.name},e.prototype.siteLayout=function(){return this.isViewer()?"Horizontal":this.site.layout},e.prototype.loadingCaption=function(){var t=this;this.isLoading=!0,clearTimeout(this.isLoadingTimeout),this.isLoadingTimeout=setTimeout((function(){t.isLoading=!1}),250)},e.prototype.mounted=function(){this.loadingCaption(),console.log(this.page.contentSize),this.$route.params.image_index&&this.loadImageIndexRoute(),L.a.$on("IMAGE_AT_INDEX",this.setImageIndex)},An([Object(o.b)({type:Object,required:!0}),xn("design:type",Object)],e.prototype,"page",void 0),An([Object(o.b)({type:Object,required:!1}),xn("design:type",Object)],e.prototype,"parent",void 0),An([Object(o.b)({type:Object,required:!0}),xn("design:type",Object)],e.prototype,"site",void 0),An([Object(o.b)({type:Array,required:!0}),xn("design:type",Array)],e.prototype,"images",void 0),An([Object(o.b)(Number),xn("design:type",Number)],e.prototype,"imageIndex",void 0),An([Object(o.b)({type:Boolean,default:!0}),xn("design:type",Boolean)],e.prototype,"useBackgroundColor",void 0),An([Object(o.b)({type:Boolean,default:!0}),xn("design:type",Boolean)],e.prototype,"showCount",void 0),An([Object(o.b)({type:Number,default:0}),xn("design:type",Number)],e.prototype,"captionHiddenHeight",void 0),An([Object(o.b)(String),xn("design:type",String)],e.prototype,"backgroundColor",void 0),An([Cn.a,Object(o.a)({name:"SlideshowFooterComponent",components:{"caption-overflow":Ye,"slideshow-counter":Sn},methods:{contentSpacingHelper:y.b}})],e)}(i.a),Pn=n(125),Rn=n.n(Pn),In=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Dn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Nn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.slideshowFooterVisible=!1,e.descriptionOpen=!1,e.captionHiddenHeight=0,e.slideshowHeight=0,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.getCaptionHiddenHeight=function(t){return null===t.querySelector(".slideshow-Footer_Caption")?0:qe(t.querySelector(".slideshow-Footer_Caption"))},e.pageBg=function(){return Object(x.a)(e.page.backgroundColor||Object(x.e)(e.site),e.page.invertColors,Object(x.h)(e.site.highlightTransparency))},e}return In(e,t),e.prototype.descriptionBackground=function(){return{backgroundColor:Object(x.a)(this.page.backgroundColor||Object(x.e)(this.site),this.page.invertColors,$.p)}},Object.defineProperty(e.prototype,"showDescription",{get:function(){return this.descriptionOpen&&!this.imageIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentHiddenHeight",{get:function(){return this.captionHiddenHeight},enumerable:!1,configurable:!0}),e.prototype.hideDescriptionOnClick=function(){this.$liveSite?this.descriptionOpen=!1:this.$liveSite||this.$store.getters.activeTextEditor()||(this.descriptionOpen=!1)},e.prototype.showSlideshowFooter=function(t){this.slideshowFooterVisible=!t},e.prototype.slideshowFooterStyle=function(){return this.descriptionOpen?{visibility:"hidden"}:{}},e.prototype.handleKeyNavigation=function(t){if(!t.target||"BODY"===t.target.tagName){var e=t.which||t.keyCode;39!==e&&38!==e||(0===this.currentImageIndex||isNaN(this.currentImageIndex))&&(this.descriptionOpen=!1)}},e.prototype.setImageAtIndex=function(t){this.currentImageIndex=t.index,t.pageId===this.page.id&&this.page.showDescription&&0===t.index?this.descriptionOpen=!0:this.descriptionOpen=!1},Object.defineProperty(e.prototype,"image",{get:function(){return this.images.length<1?this.images[this.imageIndex||0]:null},enumerable:!1,configurable:!0}),e.prototype.observeSize=function(t){var e=this;this.ro=new Kt.a((function(t){window.requestAnimationFrame((function(){var n;if(Array.isArray(t)&&t.length)for(var r=0,i=t;r<i.length;r++){var o=i[r];e.slideshowHeight=null===(n=o.contentRect)||void 0===n?void 0:n.height}}))})),this.ro.observe(t)},e.prototype.resize=function(){var t=this;this.$nextTick((function(){var e=t.$el;t.observeSize(e)}))},e.prototype.mounted=function(){var t=this;L.a.$on("IMAGE_AT_INDEX",this.setImageAtIndex),window.addEventListener("keydown",this.handleKeyNavigation,!0),this.$nextTick((function(){return t.captionHiddenHeight=t.getCaptionHiddenHeight(t.$el)})),this.descriptionOpen=this.page.showDescription,this.resize()},e.prototype.beforeDestroy=function(){this.ro&&this.ro.disconnect()},e.prototype.onChanged=function(t){this.descriptionOpen=t;var e=this.page,n=e.path,r=e.id,i=Object(m.d)(n,r,this.$liveSite);"string"==typeof i&&t&&this.images[0]&&this.$router.push({name:"page",params:{id:i}}).catch()},e.prototype.onDescriptionChange=function(t){L.a.$emit("CLOSE_SLIDESHOW_DESCRIPTION",t),this.slideshowFooterStyle},e.prototype.onSiteChanged=function(){this.captionHiddenHeight=this.getCaptionHiddenHeight(this.$el)},e.prototype.onContentSizeChanged=function(){this.captionHiddenHeight=this.getCaptionHiddenHeight(this.$el)},e.prototype.onHeightChanged=function(){var t=this;setTimeout((function(){t.captionHiddenHeight=t.getCaptionHiddenHeight(t.$el)}),200)},jn([Object(o.b)({type:Object,required:!0}),Dn("design:type",Object)],e.prototype,"page",void 0),jn([Object(o.b)({type:Object,required:!0}),Dn("design:type",Object)],e.prototype,"site",void 0),jn([Object(o.b)({type:Array,required:!0}),Dn("design:type",Array)],e.prototype,"images",void 0),jn([Object(o.b)([Number,String]),Dn("design:type",Number)],e.prototype,"imageIndex",void 0),jn([Object(o.b)(Boolean),Dn("design:type",Boolean)],e.prototype,"loading",void 0),jn([Object(o.c)("page.showDescription"),Dn("design:type",Function),Dn("design:paramtypes",[Boolean]),Dn("design:returntype",void 0)],e.prototype,"onChanged",null),jn([Object(o.c)("descriptionOpen"),Dn("design:type",Function),Dn("design:paramtypes",[Boolean]),Dn("design:returntype",void 0)],e.prototype,"onDescriptionChange",null),jn([Object(o.c)("site.typographySize"),Dn("design:type",Function),Dn("design:paramtypes",[]),Dn("design:returntype",void 0)],e.prototype,"onSiteChanged",null),jn([Object(o.c)("page.slideshowSize"),Dn("design:type",Function),Dn("design:paramtypes",[]),Dn("design:returntype",void 0)],e.prototype,"onContentSizeChanged",null),jn([Object(o.c)("slideshowHeight"),Dn("design:type",Function),Dn("design:paramtypes",[]),Dn("design:returntype",void 0)],e.prototype,"onHeightChanged",null),jn([Rn.a,Object(o.a)({name:"SlideshowPageComponent",components:{"page-description":U,"slideshowfooter-item":Ln,"slideshow-item":W,"caption-overflow":Ye},methods:{orientationClass:I.a,contentSpacingHelper:y.b}})],e)}(i.a),Mn=n(126),Fn=n.n(Mn),Bn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Un=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},$n=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.SlideshowUi=ge.d,e.captionHiddenHeight=0,e.slideshowHeight=0,e.pageBg=function(){return Object(x.a)(e.page.backgroundColor||Object(x.e)(e.site),e.page.invertColors,Object(x.h)(e.site.highlightTransparency))},e.backCssStyles=function(){return{"--background-color":e.pageBg()}},e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.getCaptionHiddenHeight=function(t){return null===t.querySelector(".slideshow-Footer_Caption")?0:qe(t.querySelector(".slideshow-Footer_Caption"))},e}return Bn(e,t),e.prototype.routeLinkAdmin=function(t){this.$router.push({name:"page",params:{id:(null==t?void 0:t.id)||""}}).catch((function(){}))},e.prototype.routeLinkLive=function(t){this.$router.push({path:"/"+((null==t?void 0:t.path)||"")}).catch((function(){}))},e.prototype.backContext=function(){return this.page.part_of_stacked_page?this.pageData(this.page.parent_id):this.page},e.prototype.goBack=function(){this.$liveSite?this.routeLinkLive(this.backContext()):this.routeLinkAdmin(this.backContext())},e.prototype.pageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},Object.defineProperty(e.prototype,"showSlideshowViewerFooter",{get:function(){return"Vertical"!==this.site.layout||"Vertical"===this.site.layout&&"small"===this.$mq},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showVertical",{get:function(){return"Vertical"===this.site.layout&&"small"!==this.$mq},enumerable:!1,configurable:!0}),e.prototype.handleKeyDown=function(t){if(!t.target||"BODY"===t.target.tagName){var e=t.which||t.keyCode;[27].includes(e)&&(t.preventDefault(),t.stopPropagation(),this.goBack())}},e.prototype.observeSize=function(t){var e=this;this.ro=new Kt.a((function(t){window.requestAnimationFrame((function(){var n;if(Array.isArray(t)&&t.length)for(var r=0,i=t;r<i.length;r++){var o=i[r];e.slideshowHeight=null===(n=o.contentRect)||void 0===n?void 0:n.height}}))})),this.ro.observe(t)},e.prototype.resize=function(){var t=this;this.$nextTick((function(){var e=t.$el;t.observeSize(e)}))},e.prototype.mounted=function(){var t=this;this.$nextTick((function(){return t.captionHiddenHeight=t.getCaptionHiddenHeight(t.$el)})),this.resize(),window.addEventListener("keydown",this.handleKeyDown)},e.prototype.updated=function(){var t=this;this.$nextTick((function(){return t.captionHiddenHeight=t.getCaptionHiddenHeight(t.$el)}))},e.prototype.beforeDestroy=function(){window.removeEventListener("keydown",this.handleKeyDown),this.ro&&this.ro.disconnect()},e.prototype.onSiteChanged=function(){this.captionHiddenHeight=this.getCaptionHiddenHeight(this.$el)},e.prototype.onHeightChanged=function(){var t=this;setTimeout((function(){t.captionHiddenHeight=t.getCaptionHiddenHeight(t.$el)}),200)},Un([Object(o.b)({type:Object,required:!0}),$n("design:type",Object)],e.prototype,"page",void 0),Un([Object(o.b)({type:Object,required:!0}),$n("design:type",Object)],e.prototype,"site",void 0),Un([Object(o.b)({type:Array,required:!0}),$n("design:type",Array)],e.prototype,"images",void 0),Un([Object(o.b)(Number),$n("design:type",Number)],e.prototype,"imageIndex",void 0),Un([Object(o.b)(Boolean),$n("design:type",Boolean)],e.prototype,"loading",void 0),Un([Object(o.c)("site.typographySize"),$n("design:type",Function),$n("design:paramtypes",[]),$n("design:returntype",void 0)],e.prototype,"onSiteChanged",null),Un([Object(o.c)("slideshowHeight"),$n("design:type",Function),$n("design:paramtypes",[]),$n("design:returntype",void 0)],e.prototype,"onHeightChanged",null),Un([Fn.a,Object(o.a)({name:"SlideshowViewerComponent",components:{"page-description":U,"slideshowfooter-item":Ln,"slideshow-item":W,"icon-base":Te.a},methods:{orientationClass:I.a,pageDataHelper:y.c,routeHelper:m.d}})],e)}(i.a),Hn=n(5),Gn=n(127),zn=n.n(Gn),Vn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Wn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Yn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vn(e,t),e.prototype.styles=function(){var t={};return this.hasInlineStyle&&(t.backgroundColor=this.page.backgroundColor),t.cursor=this.ctaUrl||this.page.ctaPageId?"pointer":"default",t},Object.defineProperty(e.prototype,"image",{get:function(){return this.page.image?[this.page.image]:Object(lt.a)(2)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctaUrl",{get:function(){return this.page.ctaUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctaPageId",{get:function(){return this.page.ctaPageId},enumerable:!1,configurable:!0}),e.prototype.pageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},e.prototype.routePush=function(){var t,e=this.ctaPageId,n=null===(t=this.pageData(e))||void 0===t?void 0:t.path;console.log("Path",n),n&&this.page.ctaOverlay?this.$router.push({name:"page_overlay",params:{id:this.$route.params.id,overlay_page_id:n}}).catch((function(){})):n&&this.$router.push({name:"page",params:{id:n}}).catch((function(){}))},e.prototype.openExternal=function(){this.ctaUrl&&window.open(this.ctaUrl,"_blank")},e.prototype.isExternal=function(){var t;return(null===(t=this.ctaUrl)||void 0===t?void 0:t.length)>0},e.prototype.onClick=function(){console.log("click"),this.isExternal()?this.openExternal():this.routePush()},e.prototype.clickEvent=function(){return(this.ctaUrl||this.ctaPageId)&&this.$liveSite?"click":null},Kn([Object(o.b)({type:Array,required:!0}),Wn("design:type",Array)],e.prototype,"images",void 0),Kn([Object(o.b)({type:String,required:!1}),Wn("design:type",String)],e.prototype,"ratio",void 0),Kn([Object(o.b)({type:Object,required:!0}),Wn("design:type",Object)],e.prototype,"page",void 0),Kn([Object(o.b)({type:Object,required:!0}),Wn("design:type",Object)],e.prototype,"site",void 0),Kn([Object(o.b)(Number),Wn("design:type",Number)],e.prototype,"position",void 0),Kn([Object(o.b)({type:Number,default:0}),Wn("design:type",Number)],e.prototype,"itemPosition",void 0),Kn([Object(o.b)(Boolean),Wn("design:type",Boolean)],e.prototype,"hasInlineStyle",void 0),Kn([Object(o.b)({type:Boolean,default:!1}),Wn("design:type",Boolean)],e.prototype,"growWithContent",void 0),Kn([zn.a,Object(o.a)({name:"ImageItemComponent",components:{"image-loader":P.a,"slideshow-item":W},methods:{orientationClass:I.a,pageDataHelper:y.c}})],e)}(i.a),Xn=n(128),Zn=n.n(Xn),Jn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qn=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},tr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isTooltipOpen=!1,e}return Jn(e,t),e.prototype.internalPath=function(){var t;return null===(t=this.$store.getters.getPageById(this.internalLinkId))||void 0===t?void 0:t.path},e.prototype.pageData=function(){if(this.internalLinkId)return Object(y.c)(this.internalLinkId,this.$liveSite,this.$store,this.$initialdata)},e.prototype.linkRoute=function(){if(this.pageData()){var t=this.pageData(),e=t.path,n=t.id,r=t.type,i=t.menu_representation;return dt(e,n,r,i,this.$liveSite,this.$mq,this.$route.params.id)}},e.prototype.linkUrl=function(){return Object(m.a)(this.url)},Qn([Object(o.b)({type:String}),tr("design:type",String)],e.prototype,"url",void 0),Qn([Object(o.b)({type:String}),tr("design:type",String)],e.prototype,"internalLinkId",void 0),Qn([Object(o.b)({type:Boolean,default:!1}),tr("design:type",Boolean)],e.prototype,"overlayLink",void 0),Qn([Zn.a,Object(o.a)({name:"HyperlinkComponent",methods:{pageDataHelper:y.c},components:{"navigation-link":bt}})],e)}(i.a),nr=n(129),rr=n.n(nr),ir=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ar=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},sr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return ir(e,t),Object.defineProperty(e.prototype,"secondColumn",{get:function(){var t;return"Two"===this.page.textColumns&&!("Grid"===(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)&&"1/2"===this.page.indexGridItemWidth)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ctaButtonStyle",{get:function(){return{color:this.bgCol(),background:this.textCol()}},enumerable:!1,configurable:!0}),e.prototype.gradient=function(t){return Object(x.c)(this.bgCol(),t,$.x)},e.prototype.editorSelected=function(t){this.$emit("editorSelected",this.page.id,t)},e.prototype.createId=function(t,e){return t+"_"+e},e.prototype.textChange=function(t,e){this.$liveSite||this.$store.commit(h.fb,{pageId:this.page.id,key:e,value:t})},e.prototype.hasInlineStyle=function(){var t;return"Grid"===(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)},e.prototype.hasOverflowGradient=function(){var t;return"Grid"===(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)&&!this.page.indexGridItemGrow},e.prototype.hasCtaButton=function(){var t;return!("Grid"!==(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)||!this.page.ctaUrl&&!this.page.ctaPageId||!this.page.ctaLabel)},e.prototype.hasBottomSpacing=function(){var t;return"Grid"===(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)&&!!this.page.ctaUrl&&!!this.page.ctaLabel&&!this.page.indexGridItemGrow},e.prototype.textColumns=function(){var t;return"Grid"===(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)&&"1/2"===this.page.indexGridItemWidth?"One":this.page.textColumns},e.prototype.contentStyle=function(){if(this.hasInlineStyle())return{backgroundColor:this.bgCol(),color:this.textCol()}},e.prototype.verticalAlign=function(){var t;return"Grid"!==(null===(t=this.parent)||void 0===t?void 0:t.indexLayout)?null:this.page.indexTextVerticalAlignment},e.prototype.bgCol=function(){var t;return this.page.backgroundColor||(null===(t=this.parent)||void 0===t?void 0:t.backgroundColor)||Object(x.e)(this.site)},e.prototype.textCol=function(){var t;return this.page.textColor||(null===(t=this.parent)||void 0===t?void 0:t.textColor)||Object(x.g)(this.site)},or([Object(o.b)({type:Object,required:!0}),ar("design:type",Object)],e.prototype,"page",void 0),or([Object(o.b)(String),ar("design:type",Object)],e.prototype,"activeItem",void 0),or([Object(o.b)(Number),ar("design:type",Number)],e.prototype,"position",void 0),or([Object(o.b)({type:Object,required:!0}),ar("design:type",Object)],e.prototype,"site",void 0),or([Object(o.b)({type:Object,required:!1}),ar("design:type",Object)],e.prototype,"parent",void 0),or([rr.a,Object(o.a)({name:"TextComponent",components:{"page-description":U,"quill-editor":k.a,"quill-live":S,hyperlink:er}})],e)}(i.a),cr=function(t,e){var n=t.split(":").map(Number),r=e.split("/").map(Number),i=r[0]/r[1]*2,o=n[1]*i,a=function(t,e){for(;t;){var n=t;t=e%t,e=n}return e}(n[0],o);return[n[0]/a,":",o/a].join("")},ur=function(t){var e=t.split(":");return[e[1],":",e[0]].join("")},lr=n(130),fr=n.n(lr),dr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pr=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},hr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},gr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UiBaseIcons=ge.l,e}return dr(e,t),e.prototype.openItemModal=function(){var t=this;this.$router.push({name:"page",params:{id:this.parentPage.id,rank:""+this.rank}}).catch((function(){})),setTimeout((function(){return t.$store.commit(h.c,"newpageitem")}),200)},e.prototype.lastItem=function(t){return t===this.total-1},e.prototype.move=function(t,e){var n=t+e;L.a.$emit("MOVE_STACK_PAGE",this.page,n),console.log("move",t,e)},pr([Object(o.b)({type:Object,required:!0}),hr("design:type",Object)],e.prototype,"page",void 0),pr([Object(o.b)({type:Object,required:!0}),hr("design:type",Object)],e.prototype,"parentPage",void 0),pr([Object(o.b)(String),hr("design:type",Object)],e.prototype,"itemPageId",void 0),pr([Object(o.b)(Number),hr("design:type",Number)],e.prototype,"rank",void 0),pr([Object(o.b)(Number),hr("design:type",Number)],e.prototype,"total",void 0),pr([fr.a,Object(o.a)({name:"StackAddItemComponent"})],e)}(i.a),vr=n(131),yr=n.n(vr),mr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),br=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},_r=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ImagePageTypes=R.g,e.hoverItemId="",e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.itemBg=function(t){return Object(x.a)((e.isGridLayout()||e.isBlogLayout()?t.backgroundColor:e.page.backgroundColor)||Object(x.e)(e.site),e.page.invertColors,Object(x.h)(e.site.highlightTransparency))},e}return mr(e,t),Object.defineProperty(e.prototype,"isStackEmpty",{get:function(){return 0===this.total},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.pageChildIds().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentPage",{get:function(){return this.page},enumerable:!1,configurable:!0}),e.prototype.imageName=function(t){var e;return null===(e=t.image)||void 0===e?void 0:e.name},e.prototype.imageDescription=function(t){var e;return null===(e=t.image)||void 0===e?void 0:e.description},Object.defineProperty(e.prototype,"pageChildrenData",{get:function(){var t=this;return this.page.childIds?this.page.childIds.map((function(e){return t.stackPageData(e)})).filter((function(t){return void 0!==t})):[]},enumerable:!1,configurable:!0}),e.prototype.contentStyle=function(t){if(this.isGridLayout())return{backgroundColor:t}},e.prototype.isBlankPageGrid=function(){return this.page.stacked&&"Grid"===this.page.indexLayout},e.prototype.showSlideshowFooter=function(t){return this.isBlankPageGrid()?t.slideshowItemCaptionEnabled:t.slideshowShowCaption},e.prototype.showImageCaption=function(t){return this.isBlankPageGrid()?t.imageItemItemCaptionEnabled:t.slideshowShowCaption},e.prototype.openModal=function(t){this.$store.commit(h.c,t)},e.prototype.imagePageType=function(t){return this.ImagePageTypes[t]?"item-Image":"item-Text"},e.prototype.useRatio=function(t){return(!this.isGridLayout()||this.isGridLayout()&&t.indexGridItemGrow&&"1/1"===t.indexGridItemWidth)&&"auto"!==t.slideshowRatio},e.prototype.isGridLayout=function(){return"Grid"===this.page.indexLayout},e.prototype.isBlogLayout=function(){return"Blog"===this.page.indexLayout},e.prototype.childPosition=function(t){return this.pageChildIds().indexOf(t)},e.prototype.isItemType=function(t,e){var n=this.stackPageData(e);return null!==n&&(null==n?void 0:n.type)===t},e.prototype.isSlideshow=function(t){return this.isItemType("slideshow",t)||this.isItemType("grid",t)&&this.isGridLayout()},e.prototype.isGrid=function(t){return this.isItemType("grid",t)&&!this.isGridLayout()},e.prototype.imagesForItemPage=function(t){var e=this.stackPageData(t);if(!e)return Object(lt.a)(4);if(this.$liveSite){var n=this.$initialdata.sets.find((function(t){return t.id===(null==e?void 0:e.setId)}));return n&&n.images&&n.images.length>0?this.filterHiddenImages(n.images):Object(lt.a)(4)}return this.$liveSite?void 0:this.getImages(e)},e.prototype.textEditorFocus=function(t,e){e||this.deSelect()},e.prototype.selectClickEvent=function(t){return this.$liveSite||this.selectedItem(t.id)&&"grid"===t.type?null:"click"},e.prototype.selectItem=function(t){this.$liveSite||(this.$router.push({name:"page_item",params:{id:this.page.id,item_page_id:t}}).catch(),setTimeout((function(){return L.a.$emit("SELECT_STACK_ITEM",t)}),200),this.scrollToItem())},e.prototype.deSelect=function(){this.$router.push({name:"page",params:{id:this.page.id}}).catch(),this.hoverItemId=""},e.prototype.selectedItem=function(t){return this.$route.params.item_page_id===t},e.prototype.isActiveItem=function(t){return!this.$liveSite&&this.$store.getters.getCurrentItemPageId()===t},e.prototype.idAttribute=function(t){return"i"+(null==t?void 0:t.substring(0,8))},e.prototype.scrollToItem=function(t){var e;if(!this.$liveSite){var n=this.idAttribute(this.$store.getters.getCurrentItemPageId()),r=null===(e=document.getElementById(n))||void 0===e?void 0:e.getBoundingClientRect();(r&&r.y>0||t)&&u.a.scrollTo("#"+n,{container:".site-Wrapper",duration:400,easing:"ease-in-out",offset:-50,cancelable:!0,x:!1,y:!0})}},e.prototype.showPlusButton=function(t){this.$liveSite||(this.hoverItemId=t)},e.prototype.hidePlusButton=function(){this.$liveSite||(this.hoverItemId="")},e.prototype.activeHoverItem=function(t){return this.hoverItemId===t},e.prototype.indexGridRatio=function(t){if(this.isGridLayout()){var e=this.page.imagegridRatio;return"1/1"===t?"Landscape"===this.page.imagegridRatioOrientation?ur(cr(ur(e),t)):ur(cr(e,t)):"Landscape"===this.page.imagegridRatioOrientation?e:ur(e)}},e.prototype.growWithContent=function(t){return t.indexGridItemGrow},e.prototype.imageRatio=function(t){if(!this.growWithContent(t))return"cover"===t.coverMediaFit?this.indexGridRatio(t.indexGridItemWidth):void 0},e.prototype.useContentSpacing=function(t){return!this.isGridLayout()||this.isGridLayout()&&this.growWithContent(t)},e.prototype.stackPageData=function(t){return Object(y.c)(t,this.$liveSite,this.$store,this.$initialdata)},e.prototype.scrollToItemhandler=function(){this.scrollToItem(!1)},e.prototype.pageChildIds=function(){return null!==this.page.childIds&&this.page.childIds||[]},e.prototype.filterHiddenImages=function(t){return t.filter((function(t){return!t.hidden}))},e.prototype.getImages=function(t){if(!t.setId)return Object(lt.a)(4);this.$store.getters.isSetLoaded(t.setId)||this.$store.dispatch(Hn.g,{setId:t.setId});var e=this.$store.state.setImages[t.setId];return e&&0===e.length?Object(lt.a)(4):e?this.filterHiddenImages(e):Object(lt.a)(4)},e.prototype.updated=function(){var t,e;this.$liveSite||((null===(t=this.pageChildrenData)||void 0===t?void 0:t.length)>this.numberOfitems&&this.scrollToItem(!0),this.numberOfitems=null===(e=this.pageChildrenData)||void 0===e?void 0:e.length)},e.prototype.mounted=function(){var t;this.pageId=this.page.id,this.numberOfitems=null===(t=this.pageChildrenData)||void 0===t?void 0:t.length,this.$liveSite||window.addEventListener("load",this.scrollToItemhandler)},br([Object(o.b)({type:Object,required:!0}),_r("design:type",Object)],e.prototype,"page",void 0),br([Object(o.b)(Object),_r("design:type",Object)],e.prototype,"sets",void 0),br([Object(o.b)(String),_r("design:type",Object)],e.prototype,"itemPageId",void 0),br([Object(o.b)(Number),_r("design:type",Number)],e.prototype,"imageIndex",void 0),br([Object(o.b)({type:Object,required:!0}),_r("design:type",Object)],e.prototype,"site",void 0),br([Object(o.b)(Array),_r("design:type",Array)],e.prototype,"images",void 0),br([Object(o.b)(Boolean),_r("design:type",Boolean)],e.prototype,"loading",void 0),br([yr.a,Object(o.a)({name:"StackPageComponent",components:{"caption-item":ut,"caption-overflow":Ye,"grid-item":ie,"image-item":Yn,"page-description":U,"slideshow-item":W,"slideshowfooter-item":Ln,"stack-add-item":gr,"text-item":sr},methods:{pageDataHelper:y.c,contentSpacingHelper:y.b,contentSizeForPageType:y.a}})],e)}(i.a),Or=n(132),Er=n.n(Or),Sr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kr=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Cr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sr(e,t),e.prototype.selectTag=function(t){this.$emit("tagSelected",t),window.location.hash=t},kr([Object(o.b)(),Cr("design:type",Object)],e.prototype,"tags",void 0),kr([Er.a,Object(o.a)({name:"TagsComponent"})],e)}(i.a),Ar=n(133),xr=n.n(Ar),Lr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pr=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Rr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ir=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.open=!1,e.showMinified=!1,e.lastScrollPosition=0,e.ticking=!1,e}return Lr(e,t),Object.defineProperty(e.prototype,"menuBg",{get:function(){return this.showMinified?{}:{backgroundColor:this.tagMenuBackgroundColor}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"menuWrapBg",{get:function(){return this.showMinified?{backgroundColor:this.tagMenuBackgroundColor}:{}},enumerable:!1,configurable:!0}),e.prototype.openMenu=function(){this.closeMenuTimeOut&&clearTimeout(this.closeMenuTimeOut),this.open=!0},e.prototype.closeMenu=function(){var t=this;this.closeMenuTimeOut=setTimeout((function(){return t.open=!1}),200)},e.prototype.selectTag=function(t){this.$emit("selectTag",t),this.open=!1},e.prototype.clearTag=function(){this.$emit("clearTag")},Object.defineProperty(e.prototype,"tagMenuBackgroundColor",{get:function(){return Object(x.a)(this.page.backgroundColor||Object(x.e)(this.site),this.page.invertColors,$.w)},enumerable:!1,configurable:!0}),e.prototype.showHideMinified=function(){"small"===this.$mq&&this.lastScrollPosition<300||this.lastScrollPosition>window.scrollY&&this.lastScrollPosition>300?this.showMinified=!0:this.showMinified=!1},e.prototype.showHideTagMenu=function(){var t=this;this.ticking||(window.requestAnimationFrame((function(){t.showHideMinified(),t.lastScrollPosition=window.scrollY,t.ticking=!1})),this.ticking=!0)},e.prototype.updated=function(){"reset"===this.tag&&"small"!==this.$mq&&(this.lastScrollPosition=0)},e.prototype.mounted=function(){window.addEventListener("scroll",this.showHideTagMenu,!0)},Pr([Object(o.b)(),Rr("design:type",Boolean)],e.prototype,"show",void 0),Pr([Object(o.b)(),Rr("design:type",String)],e.prototype,"tag",void 0),Pr([Object(o.b)(),Rr("design:type",Array)],e.prototype,"tags",void 0),Pr([Object(o.b)(),Rr("design:type",Object)],e.prototype,"page",void 0),Pr([Object(o.b)(),Rr("design:type",Object)],e.prototype,"site",void 0),Pr([xr.a,Object(o.a)({name:"TagMenuComponent"})],e)}(i.a),jr=n(134),Dr=n.n(jr),Nr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mr=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Fr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Br=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tag="",e.batch=5,e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e.busy=!1,e}return Nr(e,t),e.prototype.items=function(t){var e;if(void 0===t&&(t=!0),"reset"===this.tag)return[];var n=this.pageChildrenData,r=this.tag?this.sortItems(this.filterItems(n,this.tag)):this.sortItems(n);return t?null==r?void 0:r.slice(0,this.clamp(this.batch,5,null===(e=this.pageChildrenData)||void 0===e?void 0:e.length)):r},e.prototype.clamp=function(t,e,n){return Math.min(Math.max(t,e),n)},e.prototype.sortItems=function(t){return t.sort((function(t,e){return(null==t?void 0:t.orderDate)>(null==e?void 0:e.orderDate)?-1:1}))},e.prototype.filterItems=function(t,e){return null==t?void 0:t.filter((function(t){var n=t.tags;return null==n?void 0:n.some((function(t){return t.text===e}))}))},e.prototype.showTagMenu=function(){return"reset"!==this.tag},e.prototype.fetchChildrenTags=function(t){var e=["all"];return null==t||t.forEach((function(t){var n=t.tags;return null==n?void 0:n.some((function(t){var n=t.text;e.includes(n)||e.push(n)}))})),e},e.prototype.tagMenuItems=function(){var t;return null===(t=this.fetchChildrenTags(this.pageChildrenData))||void 0===t?void 0:t.sort()},e.prototype.selectTag=function(t){var e=this;"all"!==t?(window.location.hash=t,this.tag="reset",setTimeout((function(){return window.scrollTo(0,0)}),450),setTimeout((function(){return e.tag=t}),500)):this.clearTag()},e.prototype.clearHash=function(){this.$router.currentRoute.fullPath!==this.$router.currentRoute.path&&this.$router.push(this.$router.currentRoute.path)},e.prototype.clearTag=function(){this.tag="",this.clearHash()},e.prototype.itemColors=function(t,e){return{backgroundColor:t,color:e}},e.prototype.publishDate=function(t){var e=new Date(t),n=e.toLocaleDateString("en-EN",{year:"numeric",month:"long",day:"numeric"}),r=e.toLocaleDateString("en-EN",{year:"numeric",month:"numeric",day:"numeric"});return"small"===this.$mq?r:n},e.prototype.slideshowRatio=function(t){return"auto"!==t.slideshowRatio||"small"===this.$mq},e.prototype.isScrollAtBottom=function(){var t,e=this.$liveSite?document.documentElement:document.querySelectorAll(".site-Wrapper")[0],n=document.querySelectorAll(".content-Vertical")[0];(null==e?void 0:e.scrollTop)+window.innerHeight>(null==n?void 0:n.offsetHeight)-150&&this.batch<(null===(t=this.pageChildrenData)||void 0===t?void 0:t.length)&&(this.batch+=5)},Object.defineProperty(e.prototype,"activeItem",{get:function(){if(!this.$liveSite)return this.$store.getters.getCurrentItemPage()},enumerable:!1,configurable:!0}),e.prototype.scrollToActiveItemPositionInBatch=function(){var t=this,e=this.$store.getters.getCurrentItemPageId(),n=this.items(!1).findIndex((function(t){return t.id===e}));n>=5&&(this.batch=n+1),this.$nextTick((function(){setTimeout((function(){return t.scrollToItem(!0)}),500)}))},e.prototype.onActiveItemChanged=function(t,e){var n=this,r=this.$store.getters.getCurrentItemPageId();this.$liveSite||this.busy||(null==t?void 0:t.orderDate)===(null==e?void 0:e.orderDate)||(null==e?void 0:e.id)!==r||(this.busy=!0,setTimeout((function(){n.scrollToActiveItemPositionInBatch(),n.busy=!1}),500))},e.prototype.mounted=function(){var t=this;this.tag=this.$route.hash.substr(1),this.$liveSite&&window.addEventListener("scroll",this.isScrollAtBottom,!0),this.$liveSite||this.$nextTick((function(){setTimeout((function(){t.scrollToActiveItemPositionInBatch(),setTimeout((function(){return window.addEventListener("scroll",t.isScrollAtBottom,!0)}),1500)}),500)}))},e.prototype.beforeDestroy=function(){window.removeEventListener("scroll",this.isScrollAtBottom,!0)},Mr([Object(o.c)("activeItem"),Fr("design:type",Function),Fr("design:paramtypes",[Object,Object]),Fr("design:returntype",void 0)],e.prototype,"onActiveItemChanged",null),Mr([Dr.a,Object(o.a)({name:"BlogPageComponent",components:{tags:Tr,"tag-menu":Ir,"slideshow-counter":Sn}})],e)}(wr),Ur=n(24),$r=n(135),qr=n.n($r),Hr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gr=function(){return(Gr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},zr=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Vr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentSpacing="",e.customCursorStyles={},e.horizontalscrollSize=function(){var t;return Object(y.b)(null===(t=e.page)||void 0===t?void 0:t.horizontalscrollSize,e.site,e.page)||"Default"},e.getTypeFromConfig=function(t){var e=Gr(Gr({},Ur.c),Ur.a);return e[t]?e[t].name:Ur.b.name},e.showContentBackground=function(){return Object(y.d)(e.page,e.site)},e}return Hr(e,t),e.prototype.isViewer=function(){return"viewer"===this.$route.name},e.prototype.pageType=function(){return this.isViewer()?"viewer":this.page.type},e.prototype.siteLayout=function(){return this.isViewer()?"Horizontal":this.site.layout},e.prototype.pageBg=function(){return this.page?{backgroundColor:Object(x.a)(this.page.backgroundColor||Object(x.e)(this.site),this.page.invertColors,Object(m.b)(this.$route,this.page)?$.m:1),color:Object(x.a)(this.page.textColor||Object(x.g)(this.site),this.page.invertColors)}:{}},e.prototype.guttersForPageType=function(t){switch(t.type){case"grid":case"index":return t.imagegridGutters;case"row":return t.horizontalscrollGutters}},e.prototype.transition=function(){return this.site.pageTransition?"page-fade":"page-default"},e.prototype.contentComponent=function(t){switch(t.type){case R.w.cover:return tt;case R.w.grid:return"viewer"===this.$route.name?qn:le;case R.w.index:return t.subtype===R.w.text&&t.indexLayout===R.j.Blog?Br:t.subtype===R.w.text?wr:"submenu"===t.menu_representation?p:hn;case R.w.link:return mn;case R.w.row:return an;case R.w.slideshow:return Nn;case R.w.text:return wr;default:return p}},e.prototype.setContentSpacing=function(){this.contentSpacing=Object(y.b)(Object(y.a)(this.page),this.site,this.page)},e.prototype.enterTransition=function(){this.setContentSpacing()},e.prototype.setBodyStyles=function(t,e){var n=document.getElementsByTagName("body")[0];"overlay"!==this.page.menu_representation&&(n.style.backgroundColor=Object(x.a)(t.backgroundColor||Object(x.e)(e),t.invertColors)),n.style.color=Object(x.a)(Object(x.g)(e),t.invertColors),n.style.setProperty("--link-active-color",e.linkActiveColor),n.style.setProperty("--site-highlight-color",Object(x.d)(e.highlightColor,t.invertColors,e.highlightTransparency))},e.prototype.toggleCustomCursorBodyStyles=function(){this.isCustomCursor()?document.body.style.setProperty("cursor","none"):document.body.style.removeProperty("cursor")},e.prototype.setCustomFontStyles=function(t){var e=document.querySelector("style[data-custom-fonts]");e&&(e.innerHTML=t.customFontStyles)},e.prototype.isCustomCursor=function(){var t="ontouchstart"in document.documentElement;return"default"!==this.site.cursor&&"desktop"===this.$mq&&!t},e.prototype.addCustomCursorCoords=function(t){document.body.style.setProperty("--x",t.clientX+"px"),document.body.style.setProperty("--y",t.clientY+"px")},e.prototype.customCursorCoords=function(){var t=this;document.addEventListener("mousemove",(function(e){return t.addCustomCursorCoords(e)}))},e.prototype.setCustomCursorStyles=function(){var t=this.site.linkActiveColor?this.site.linkActiveColor:Object(x.a)(Object(x.g)(this.site),this.page.invertColors),e=this.site.linkActiveColor?"none":"difference";switch(s()(t).luminance()<.02&&(t=s()(t).brighten(4)),this.site.cursor){case"dot":case"text":this.customCursorStyles={backgroundColor:t,mixBlendMode:e};break;case"circle":this.customCursorStyles={border:"1px solid "+t,mixBlendMode:e}}},e.prototype.receiveScrollFromSyndication=function(){window.addEventListener("message",(function(t){"syndicationScrollUp"===(null==t?void 0:t.data)&&u.a.scrollTo("body")}),!1)},e.prototype.mounted=function(){this.setBodyStyles(this.page,this.site),this.setCustomFontStyles(this.site),this.customCursorCoords(),this.setCustomCursorStyles(),this.setContentSpacing(),this.receiveScrollFromSyndication(),this.toggleCustomCursorBodyStyles()},e.prototype.onPageIdChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onPageInvertChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onBackgroundColorChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onCustomFontStylesChanged=function(){this.setCustomFontStyles(this.site)},e.prototype.onLinkColorChanged=function(){this.setBodyStyles(this.page,this.site),this.setCustomCursorStyles(),this.toggleCustomCursorBodyStyles()},e.prototype.onHighlightColorChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onHighlightTransparencyChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onContentTextColorChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onTextColorChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onShowContentBackgroundChanged=function(){this.setBodyStyles(this.page,this.site)},e.prototype.onCursorChanged=function(){this.customCursorCoords(),this.setCustomCursorStyles(),this.toggleCustomCursorBodyStyles()},e.prototype.onPageSlideshowSizeChanged=function(){this.setContentSpacing()},e.prototype.onPageHorizontalScrollSizeChanged=function(){this.setContentSpacing()},e.prototype.onPageGridSizeChanged=function(){this.setContentSpacing()},e.prototype.onMqChanged=function(){this.customCursorCoords(),this.toggleCustomCursorBodyStyles()},zr([Object(o.b)({required:!0,type:Object}),Vr("design:type",Object)],e.prototype,"site",void 0),zr([Object(o.b)({required:!0,type:Object}),Vr("design:type",Object)],e.prototype,"page",void 0),zr([Object(o.b)({required:!1,type:Array}),Vr("design:type",Array)],e.prototype,"images",void 0),zr([Object(o.b)(Number),Vr("design:type",Number)],e.prototype,"imageIndex",void 0),zr([Object(o.c)("page.id"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onPageIdChanged",null),zr([Object(o.c)("page.invertColors"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onPageInvertChanged",null),zr([Object(o.c)("site.backgroundColor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onBackgroundColorChanged",null),zr([Object(o.c)("site.customFontStyles"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onCustomFontStylesChanged",null),zr([Object(o.c)("site.linkActiveColor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onLinkColorChanged",null),zr([Object(o.c)("site.highlightColor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onHighlightColorChanged",null),zr([Object(o.c)("site.highlightTransparency"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onHighlightTransparencyChanged",null),zr([Object(o.c)("site.contentTextColor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onContentTextColorChanged",null),zr([Object(o.c)("site.textColor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onTextColorChanged",null),zr([Object(o.c)("site.showContentBackground"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onShowContentBackgroundChanged",null),zr([Object(o.c)("site.cursor"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onCursorChanged",null),zr([Object(o.c)("page.slideshowSize"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onPageSlideshowSizeChanged",null),zr([Object(o.c)("page.horizontalscrollSize"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onPageHorizontalScrollSizeChanged",null),zr([Object(o.c)("page.contentSize"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onPageGridSizeChanged",null),zr([Object(o.c)("$mq"),Vr("design:type",Function),Vr("design:paramtypes",[]),Vr("design:returntype",void 0)],e.prototype,"onMqChanged",null),zr([qr.a,Object(o.a)({name:"PageTemplateComponent",components:{"header-item":Be},methods:{contentSpacingHelper:y.b,contentSizeForPageType:y.a,menuRepresentation:m.c}})],e)}(i.a)},function(t,e,n){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return t}:1===t.length?t[0]:t.reduce((function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(void 0,l([],u(n),!1)))}}))}function d(t){if(t)return Object.keys(t).forEach((function(e){"string"!=typeof t[e]&&"boolean"!=typeof t[e]&&"number"!=typeof t[e]&&(t[e]=JSON.stringify(t[e]))})),t}function p(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]){var e=t.stacktrace;return(void 0===e?"":e).split("\n").filter((function(t){return""!==t}))}if(t.stack){var n=t.stack;return(void 0===n?"":n).split("\n").filter((function(t){return""!==t}))}return["No stacktrace available"]}Object.create,Object.create,Object.create,Object.create;var h=n(57);n(61);var g=function(){function t(t){this._data=t}return t.prototype.toJSON=function(){return JSON.stringify(this._data)},t.prototype.serialize=function(){return this._data},t}(),v=function(){function t(){}return t.serialize=function(){return{transport:this.transport(),origin:this.origin()}},t.origin=function(){var t=Object(h.a)();return!t.navigator||"ReactNative"===t.navigator.product&&!t.location?"":t.location.origin||"".concat(t.location.protocol,"//").concat(t.location.hostname)},t.transport=function(){var t=Object(h.a)();return Object(h.b)()&&"undefined"==typeof jest?"NodeHTTP":t.XDomainRequest?"XDomainRequest":t.XMLHttpRequest&&!t.fetch?"XMLHttpRequest":"fetch"},t.supportsPromises=function(){var t,e=Object(h.a)();return"Promise"in e&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&(new e.Promise((function(e){t=e})),"function"==typeof t)},t}(),y=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this;return new Promise((function(n,r){var i,o=new XDomainRequest,a=new RegExp("^https?:");o.onload=function(){return n({})},o.open("POST",e.url.replace(a,null===(i=null===window||void 0===window?void 0:window.location)||void 0===i?void 0:i.protocol)),setTimeout((function(){try{o.send(t)}catch(t){r(t)}}),0)}))},t}(),m=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this;return new Promise((function(n,r){try{var i=new XMLHttpRequest;i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n({})},i.open("POST",e.url),i.send(t)}catch(t){r(t)}}))},t}(),b=function(){function t(t,e){this.url=t}return t.prototype.send=function(t){return o(this,void 0,void 0,(function(){var e,n;return a(this,(function(r){switch(r.label){case 0:return[4,fetch(this.url,{method:"POST",body:t})];case 1:return e=r.sent(),n=e.statusText,[2,e.ok?Promise.resolve({}):Promise.reject({statusText:n})]}}))}))},t}(),_=n(62),w=n.n(_),O=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this,n={method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.length}};return new Promise((function(r,i){var o=w.a.request(e.url,n,(function(){})).on("error",(function(t){return i(t)}));o.write(t),o.end(),r({})}))},t}(),E=function(){function t(t){this._uri=t.uri||"https://appsignal-endpoint.net/collect",this._apiKey=t.key,this._clientVersion=t.version,this._transport=this._createTransport(this._url())}return t.prototype.push=function(t){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this._transport.send(t.toJSON())];case 1:return e.sent(),[2,t]}}))}))},t.prototype._createTransport=function(t){switch(v.transport()){case"XDomainRequest":return new y(t);case"XMLHttpRequest":return new m(t);case"NodeHTTP":return new O(t);default:return new b(t)}},t.prototype._url=function(){var t,e=this._authorization();return"".concat(this._uri,"?").concat((t=e,Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")))},t.prototype._authorization=function(){return{api_key:this._apiKey,version:this._clientVersion}},t}(),S=function(t){function e(e){return t.call(this,i({timestamp:Math.round((new Date).getTime()/1e3),namespace:"frontend",error:{name:"NullError",message:"No error has been set",backtrace:[]}},e))||this}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.setAction=function(t){return t&&"string"==typeof t?(this._data.action=t,this):this},e.prototype.setNamespace=function(t){return t&&"string"==typeof t?(this._data.namespace=t,this):this},e.prototype.setError=function(t){return t&&function(t){return"object"==typeof t&&void 0!==t.message&&(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]||void 0!==t.stack)}(t)?(this._data.error={name:t.name||"[unknown]",message:t.message,backtrace:p(t)},this):this},e.prototype.setTags=function(t){return this._data.tags=i(i({},this._data.tags),function(t){if(t)return Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=JSON.stringify(t[e])),t[e]=String(t[e])})),t}(t)),this},e.prototype.setParams=function(t){return this._data.params=i(i({},this._data.params),t),this},e.prototype.setBreadcrumbs=function(t){return this._data.breadcrumbs=t,this},e}(g),k=function(){function t(t){this._data=t||[]}return t.prototype.clear=function(){this._data=[]},t.prototype.values=function(){return this._data},t.prototype.push=function(t){var e;return Array.isArray(t)?(e=this._data).push.apply(e,c([],s(t),!1)):this._data.push(t)},t.prototype.drain=function(){return a(this,(function(t){switch(t.label){case 0:return this._data.length>0?[4,this._data.shift()]:[3,2];case 1:return t.sent(),[3,0];case 2:return[2]}}))},t}(),C=function(){function t(t,e,n){this._retries=0,this._timerID=0,this._duration=0,this._api=e,this._queue=t,this.options=i({limit:5,initialDuration:1e3},n),this.reset()}return t.prototype.schedule=function(t){var e=this;return void 0===t&&(t=this._duration),Object(h.a)().setTimeout((function(){return o(e,void 0,void 0,(function(){var e,n,r,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,7,8,9]),e=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._queue.drain()),n=e.next(),a.label=1;case 1:if(n.done)return[3,6];if(!(r=n.value))return[2];a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this._api.push(r)];case 3:return a.sent(),[3,5];case 4:return a.sent(),i=Math.floor(Math.pow(t,1.3)),this._retries=this._retries-1,0===this._retries?this.reset():(this._queue.push(r),this._timerID=this.schedule(i)),[2];case 5:return n=e.next(),[3,1];case 6:return[3,9];case 7:return o=a.sent(),s={error:o},[3,9];case 8:try{n&&!n.done&&(c=e.return)&&c.call(e)}finally{if(s)throw s.error}return[7];case 9:return this.reset(),[2]}}))}))}),t)},t.prototype.reset=function(){var t=this.options,e=t.limit,n=t.initialDuration;this._retries=e,this._duration=n},t}(),T=function(){function t(t){this.VERSION="1.3.23",this.ignored=[],this._breadcrumbs=[],this._hooks={decorators:Array(),overrides:Array()},this._env=v.serialize(),this._queue=new k([]);var e=t.key,n=void 0===e?"":e,r=t.uri,i=t.revision,o=t.ignoreErrors;i&&"string"!=typeof i&&(t.revision=String(i)),""===n&&console.info("[APPSIGNAL]: Started in development mode."),this._api=new E({key:n,uri:r,version:this.VERSION}),o&&Array.isArray(o)&&(this.ignored=o),this._dispatcher=new C(this._queue,this._api),this._options=t}return t.prototype.send=function(t,e,n){var r=this;if(t instanceof Error||t instanceof S){if(0!==this.ignored.length){if(t instanceof Error&&this.ignored.some((function(e){return e.test(t.message)})))return void console.warn("[APPSIGNAL]: Ignored an error: ".concat(t.message));if(t instanceof S){var i=t.serialize().error;if(i.message&&this.ignored.some((function(t){return t.test(i.message)})))return void console.warn("[APPSIGNAL]: Ignored a span: ".concat(i.message))}}var o=t instanceof S?t:this._createSpanFromError(t);if(this._hooks.decorators.length>0&&f.apply(void 0,c([],s(this._hooks.decorators),!1))(o),e)if("function"==typeof e)e(o);else{console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a tags object is deprecated. Use the callback argument instead.");var a=d(e)||{};o.setTags(a)}if(n&&(console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a namespace is deprecated. Use the callback argument instead."),o.setNamespace(n)),this._breadcrumbs.length>0&&o.setBreadcrumbs(this._breadcrumbs),this._hooks.overrides.length>0&&f.apply(void 0,c([],s(this._hooks.overrides),!1))(o),v.supportsPromises()){if(this._breadcrumbs=[],this._options.key)return this._api.push(o).catch((function(){r._queue.push(o),setTimeout((function(){return r._dispatcher.schedule()}),0)}));if(console.warn("[APPSIGNAL]: Span not sent because we're in development mode:",o),t instanceof Error)throw t}else console.error("[APPSIGNAL]: Error not sent. A Promise polyfill is required.")}else console.error("[APPSIGNAL]: Can't send error, given error is not a valid type")},t.prototype.sendError=function(t,e,n){return this.send(t,e,n)},t.prototype.use=function(t){t.call(this)},t.prototype.createSpan=function(t){var e=this._options,n=e.revision,r=void 0===n?"":n,i=e.namespace,o=new S({environment:this._env,revision:r});return i&&o.setNamespace(i),t&&"function"==typeof t&&t(o),o},t.prototype.wrap=function(t,e,n){return o(this,void 0,void 0,(function(){var r;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),[4,t()];case 1:return[2,i.sent()];case 2:return r=i.sent(),[4,this.sendError(r,e,n)];case 3:return i.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))},t.prototype.addDecorator=function(t){this._hooks.decorators.push(t)},t.prototype.addOverride=function(t){this._hooks.overrides.push(t)},t.prototype.demo=function(){var t=this._createSpanFromError(new Error("Hello world! This is an error used for demonstration purposes."));t.setAction("TestAction").setParams({path:"/hello",method:"GET"}).setTags({demo_sample:"true"}),this.send(t)},t.prototype.addBreadcrumb=function(t){var e=i(i({timestamp:Math.round((new Date).getTime()/1e3)},t),{metadata:d(t.metadata)});e.category?e.action?(20===this._breadcrumbs.length&&this._breadcrumbs.pop(),this._breadcrumbs.unshift(e)):console.warn("[APPSIGNAL]: Breadcrumb not added. `action` is missing."):console.warn("[APPSIGNAL]: Breadcrumb not added. `category` is missing.")},t.prototype._createSpanFromError=function(t){var e=this.createSpan();return e.setError(t),e},t}();e.a=T},,,function(t,e){t.exports=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).toLowerCase()}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(143),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(27))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(h,0,t)},d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return u[c]=i,r(c),c++},d.clearImmediate=p}function p(t){delete u[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(27),n(54))},function(t,e,n){"use strict";(function(t){var r=n(145),i=n(146),o=n(147);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(e,n),i=(t=s(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|p(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(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 f(t,e){if(l(e),t=s(t,e<0?0:0|p(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|p(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return $(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(t,o+d)!==u(e,d)){f=!1;break}if(f)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,r){return H($(e,t.length-n),t,n,r)}function w(t,e,n,r){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function O(t,e,n,r){return w(t,e,n,r)}function E(t,e,n,r){return H(q(e),t,n,r)}function S(t,e,n,r){return H(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,c,u=t[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=T));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.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)v(this,e,e+1);return this},c.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)v(this,e,e+3),v(this,e+1,e+2);return this},c.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)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function x(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=U(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,e,n,r,o){return o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:$(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(27))},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(l(t,s,s+a>c?c:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=t[e+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+p]=255&a,p+=h,a/=256,u-=8);t[n+p-h]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},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(t,e,n){var r=n(60);(t.exports=function(t){this.top=t.top,this.left=t.left,this.width=t.width,this.spacing=t.spacing,this.targetRowHeight=t.targetRowHeight,this.targetRowHeightTolerance=t.targetRowHeightTolerance,this.minAspectRatio=this.width/t.targetRowHeight*(1-t.targetRowHeightTolerance),this.maxAspectRatio=this.width/t.targetRowHeight*(1+t.targetRowHeightTolerance),this.edgeCaseMinRowHeight=t.edgeCaseMinRowHeight,this.edgeCaseMaxRowHeight=t.edgeCaseMaxRowHeight,this.widowLayoutStyle=t.widowLayoutStyle,this.isBreakoutRow=t.isBreakoutRow,this.items=[],this.height=0}).prototype={addItem:function(t){var e,n,i,o=this.items.concat(t),a=this.width-(o.length-1)*this.spacing,s=o.reduce((function(t,e){return t+e.aspectRatio}),0),c=a/this.targetRowHeight;return this.isBreakoutRow&&0===this.items.length&&t.aspectRatio>=1?(this.items.push(t),this.completeLayout(a/t.aspectRatio,"justify"),!0):s<this.minAspectRatio?(this.items.push(r(t)),!0):s>this.maxAspectRatio?0===this.items.length?(this.items.push(r(t)),this.completeLayout(a/s,"justify"),!0):(e=this.width-(this.items.length-1)*this.spacing,n=this.items.reduce((function(t,e){return t+e.aspectRatio}),0),i=e/this.targetRowHeight,Math.abs(s-c)>Math.abs(n-i)?(this.completeLayout(e/n,"justify"),!1):(this.items.push(r(t)),this.completeLayout(a/s,"justify"),!0)):(this.items.push(r(t)),this.completeLayout(a/s,"justify"),!0)},isLayoutComplete:function(){return this.height>0},completeLayout:function(t,e){var n,r,i,o,a,s=this.left,c=this.width-(this.items.length-1)*this.spacing;(void 0===e||["justify","center","left"].indexOf(e)<0)&&(e="left"),t!==(r=Math.max(this.edgeCaseMinRowHeight,Math.min(t,this.edgeCaseMaxRowHeight)))?(this.height=r,n=c/r/(c/t)):(this.height=t,n=1),this.items.forEach((function(t){t.top=this.top,t.width=t.aspectRatio*this.height*n,t.height=this.height,t.left=s,s+=t.width+this.spacing}),this),"justify"===e?(s-=this.spacing+this.left,i=(s-this.width)/this.items.length,o=this.items.map((function(t,e){return Math.round((e+1)*i)})),1===this.items.length?this.items[0].width-=Math.round(i):this.items.forEach((function(t,e){e>0?(t.left-=o[e-1],t.width-=o[e]-o[e-1]):t.width-=o[e]}))):"center"===e&&(a=(this.width-s)/2,this.items.forEach((function(t){t.left+=a+this.spacing}),this))},forceComplete:function(t,e){"number"==typeof e?this.completeLayout(e,this.widowLayoutStyle):this.completeLayout(this.targetRowHeight,this.widowLayoutStyle)},getItems:function(){return this.items}}},function(t,e,n){"use strict";!function(){var t=function(){if("function"==typeof window.CustomEvent)return window.CustomEvent;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}return t.prototype=window.Event.prototype,t}();function e(t,e){var n=document.createElement("input");return n.type="hidden",n.name=t,n.value=e,n}function n(t){var n=t.getAttribute("data-to"),r=e("_method",t.getAttribute("data-method")),i=e("_csrf_token",t.getAttribute("data-csrf")),o=document.createElement("form"),a=t.getAttribute("target");o.method="get"===t.getAttribute("data-method")?"get":"post",o.action=n,o.style.display="hidden",a&&(o.target=a),o.appendChild(i),o.appendChild(r),document.body.appendChild(o),o.submit()}window.addEventListener("click",(function(e){for(var r=e.target;r&&r.getAttribute;){var i=new t("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!r.dispatchEvent(i))return e.preventDefault(),e.stopImmediatePropagation(),!1;if(r.getAttribute("data-method"))return n(r),e.preventDefault(),!1;r=r.parentNode}}),!1),window.addEventListener("phoenix.link.click",(function(t){var e=t.target.getAttribute("data-confirm");e&&!window.confirm(e)&&t.preventDefault()}),!1)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-Wrapper"},[n("transition",{attrs:{appear:"",name:t.transition()}},[n("router-view")],1),t._v(" "),n("transition",{attrs:{name:"overlay"}},[n("router-view",{attrs:{name:"overlay"}},[t._v("loading ...")])],1)],1)},r=[];t.exports=function(t){var e="function"==typeof t?t.options:t;return e.render=n,e.staticRenderFns=r,t}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){n(281),t.exports=n(273)},function(t,e,n){"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0})},function(t,e,n){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)})},function(t,e,n){"use strict";Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],i=r>>0,o=i<0?Math.max(n+i,0):Math.min(i,n),a=arguments[2],s=void 0===a?n:a>>0,c=s<0?Math.max(n+s,0):Math.min(s,n);o<c;)e[o]=t,o++;return e}})},function(t,e,n){"use strict";var r,i,o,a;Array.from||(Array.from=(r=Object.prototype.toString,i=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},o=Math.pow(2,53)-1,a=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),o)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,o=arguments.length>1?arguments[1]:void 0;if(void 0!==o){if(!i(o))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,c=a(n.length),u=i(e)?Object(new e(c)):new Array(c),l=0;l<c;)s=n[l],u[l]=o?void 0===r?o(s,l):o.call(r,s,l):s,l+=1;return u.length=c,u}))},function(t,e,n){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0})},function(t,e,n){"use strict";Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r})},function(t,e,n){"use strict";Object.values=Object.values?Object.values:function(t){var e=Object.prototype.toString.call(t);if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(e)){if(Object.keys)return Object.keys(t).map((function(e){return t[e]}));var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(t[r]);return n}return[]},t.exports&&(t.exports=Object.values)},function(t,e,n){"use strict";var r,i,o,a;Object.keys||(Object.keys=(r=Object.prototype.hasOwnProperty,i=!{toString:null}.propertyIsEnumerable("toString"),a=(o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("function"!=typeof t&&("object"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,n,s=[];for(e in t)r.call(t,e)&&s.push(e);if(i)for(n=0;n<a;n++)r.call(t,o[n])&&s.push(o[n]);return s}))},function(t,e,n){"use strict";String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}})},function(t,e,n){},,,,,,,,function(t,e,n){"use strict";n.r(e);var r,i,o,a=n(1),s=(n(150),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(53)),c=n(64),u=n(42),l=n.n(u),f=n(138),d=n(63),p=n(46),h=n(136),g=function(t){var e=document.getElementById(t);if(e&&e.textContent)return JSON.parse(e.textContent);throw"No initial data found"},v=n(12),y=n(48),m=n(20),b=n(0),_=n(137),w=n(66),O=n.n(w),E=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),S=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},k=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),Object.defineProperty(e.prototype,"site",{get:function(){return a.a.prototype.$initialdata.site},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return a.a.prototype.$initialdata.pages},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"menus",{get:function(){return a.a.prototype.$initialdata.menus},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sets",{get:function(){return a.a.prototype.$initialdata.sets},enumerable:!1,configurable:!0}),e.prototype.getPage=function(){return this.getPageByPath()},e.prototype.getImages=function(){var t,e,n=this;if(!(null===(t=this.page)||void 0===t?void 0:t.setId))return[];var r=a.a.prototype.$initialdata.sets.find((function(t){return t.id===n.page.setId}));return(null===(e=null==r?void 0:r.images)||void 0===e?void 0:e.length)>0?r.images.filter((function(t){return!t.hidden})):[]},e.prototype.getPageByPath=function(){var t;if(t=Array.isArray(this.pagePath)?this.pagePath.join("/"):this.pagePath,this.page&&this.page.path===t)return this.page;var e=a.a.prototype.$initialdata.pages.find((function(e){return e.path===t}));return e?this.page=e:void 0},e.prototype.setDocumentTitle=function(){window.document.title=this.page.browser_title||this.page.title},e.prototype.updated=function(){this.setDocumentTitle(),window.dispatchEvent(new Event("PAGE_UPDATED"))},S([Object(b.b)({required:!1}),k("design:type",Object)],e.prototype,"pagePath",void 0),S([Object(b.b)([Number,String]),k("design:type",Number)],e.prototype,"imageIndex",void 0),S([Object(b.b)(Boolean),k("design:type",Boolean)],e.prototype,"overlayPage",void 0),S([O.a,Object(b.a)({name:"LivePageComponent",components:{"page-template":_.a}})],e)}(a.a),T=n(237),A=n.n(T),x=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},P=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.transition=function(){return this.site.pageTransition?"page-fade":"page-default"},L([Object(b.b)(),P("design:type",Object)],e.prototype,"site",void 0),L([A.a,Object(b.a)({name:"LiveAppComponent"})],e)}(a.a);console.log=function(){},console.warn=function(){},console.error=function(){};var I=new f.a({key:"35b58ca8-9420-4807-b9a5-6b1609b7f7b8",namespace:"production_live",revision:"24.39.5+b514197",ignoreErrors:[/window.matchMedia is not a function/,/Cannot read property 'matched' of undefined/]});a.a.config.errorHandler=Object(d.a)(I,a.a),a.a.prototype.$liveSite=!0,a.a.prototype.$hlsSupport=""!==document.createElement("video").canPlayType("application/x-mpegURL"),a.a.prototype.$livestate={menuItemBounds:{},navigated:!1},a.a.use(s.a),a.a.use(c.a,{breakpoints:{small:v.A.small,medium:v.A.medium,desktop:1/0}}),a.a.use(l.a);var j="site-data",D=g(j),N=function(t,e){var n=Object(m.a)(t,m.d);return n.menus=e,n},M=function(t){var e=t.menus.map((function(t){return y.a.buildFromPayload(t)}));return{site:N(t.site,e),pages:null==t?void 0:t.pages.map((function(t){var e=Object(m.a)(t,m.b);return"index"===t.type&&(e.childIds=t.child_ids),e})),sets:t.sets}},F=a.a.prototype.$initialdata=M(D),B=[{path:"/",name:"homepage",component:C,props:Object.assign({pagePath:""})},{path:"/:id*/viewer/:image_index(\\d+)",name:"viewer",component:C,props:function(t){return Object.assign({pagePath:t.params.id||"",imageIndex:parseInt(t.params.image_index)})}},{path:"/:id*/overlay/:overlay_page_id+",name:"page_overlay",components:{default:C,overlay:C},props:{default:function(t){return Object.assign({pagePath:t.params.id||""})},overlay:function(t){return Object.assign({pagePath:t.params.overlay_page_id,overlayPage:!0})}}},{path:"/:id*",name:"page",component:C,props:function(t){return Object.assign({pagePath:t.params.id||""})}}],U=new s.a({mode:"history",routes:B,scrollBehavior:function(t,e,n){return new Promise((function(r){setTimeout((function(){var i;!function(t,e){if("viewer"===e&&"viewer"!==t)return!0;switch(t){case"viewer":case"page_overlay":return!0;default:return!1}}(null==t?void 0:t.name,null==e?void 0:e.name)?r(n||{x:0,y:0}):r(n||{x:0,y:null===(i=e.meta)||void 0===i?void 0:i.scrollY})}),F.site.pageTransition?500:100)}))},linkActiveClass:"active",linkExactActiveClass:"active"});U.beforeEach((function(t,e,n){return t&&t.meta&&(t.meta.scrollY=window.scrollY),"viewer"===e.name&&"viewer"!==t.name||"viewer"===t.name||null===e.name||e.path===t.path?n():(window.removeEventListener("FETCH_PAGE_SUCCESS",(function(){return n()})),window.addEventListener("FETCH_PAGE_SUCCESS",(function(){return n()})),void window.dispatchEvent(new CustomEvent("FETCH_PAGE",{detail:{path:t.path}})))}));var $=new a.a({router:U,render:function(t){return t(R,{props:{site:F.site}})}});a.a.prototype.$myrouter=U;var q=document.getElementsByClassName("page"),H=q&&q[0];$.$mount(H);var G={SiteData:{}};G.SiteData={mounted:function(){var t=this;window.addEventListener("FETCH_PAGE",(function(e){t.pushEvent("FETCH_PAGE",{path:e.detail.path})})),this.updated()},updated:function(){var t=g(j);a.a.prototype.$initialdata=M(t),window.dispatchEvent(new Event("FETCH_PAGE_SUCCESS"))}};var z=null===(i=document.querySelector("body"))||void 0===i?void 0:i.dataset,V=null===(o=document.querySelector("meta[name='csrf-token']"))||void 0===o?void 0:o.getAttribute("content"),K=new h.LiveSocket("/live-site",p.Socket,{hooks:G,params:{_csrf_token:V,site_id:null==z?void 0:z.siteId,csp_nonce:null==z?void 0:z.cspNonce}});K.boundTopLevelEvents=!0,K.connect(),window.liveSocket=K}]);