1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-AIbPvMZA.js","./AboutUsContent-DRdO0eQo.js","./AboutUsContent-B0fAGc2j.css","./index-tn0RQdqM.css","./accessibility-CNXVh1jq.js","./catalog-BlNv_RxF.js","./CatalogContent-D1DavFC7.js","./ShelvesContainer-CLKEyg_s.js","./ShelfRow-D_dtzJOe.js","./Spinner-Ce5drrJq.js","./Spinner-H0YyFT9z.css","./MoviePoster-ByXOBmKH.js","./MoviePoster-4ZVSUGVt.css","./MoviePosterOptionsMenu-CIgp0xEa.js","./OptionsMenu-DlZAgo4G.js","./OptionsMenu-SotfSpPc.css","./MoviePosterOptionsMenu-ChLx30eR.css","./ShelfRow-DadXW3H-.css","./ShelvesContainer-BhhEGU9V.css","./WatchNowStickingView-DpkhO-a0.js","./WatchNowStickingView-dN_KZP5d.css","./CatalogContent-CtLvJNpY.css","./contact-DXxOaH2L.js","./index-eJotdZbu.js","./LandingLoggedOut-CMh0ER1p.js","./LandingDevices-e8dS8_Sz.js","./LandingDevices-DNW8vqK2.css","./ExpandCollapseButton-CbFkHP38.js","./ExpandCollapseButton-BZNLomuq.css","./LandingLoggedOut-CWeZmbbK.css","./frontpage-dIErHptt.js","./index-DHOO_4vo.js","./kids-CMYE7wCi.js","./libbywelcome-BtxxJnZo.js","./LibbyWelcome-3luesXTC.js","./LibbyWelcome-BfKUphtb.css","./link-Bi8ZGIw1.js","./login-C67BqGK4.js","./LoginContent-BdhYhin_.js","./KanopyForm-BgI273YC.js","./OrBarHorizontal-CylCpFPe.js","./OrBarHorizontal-YXz_wWOv.css","./LoginContent-CsCc_GBE.css","./index-BT4izalT.js","./parentalcontrols-CiFK0F1i.js","./privacy-CBb5hQ8D.js","./PrivacyPageContent-BWiL_SM_.js","./TabBar-B55Bpwxe.js","./TabBar-p-1CXiUT.css","./PrivacyPageContent-DPqhrfdU.css","./search-DB9T-pwI.js","./SearchPageContent-CxjOTFW3.js","./Searchfield-vKboO8vg.js","./Searchfield-CNXYkmyQ.css","./HorizontalDraggableDiv-Cs0Z102t.js","./HorizontalDraggableDiv-CZGEVsf7.css","./PPRIconSvg-BBHKjRYe.js","./AddIconSvg-CwH4_4E6.js","./VideoGrid-DW5MBuzB.js","./VideoGrid-CFgXZYvI.css","./FetchUtils-D0lestUm.js","./SearchPageContent-EgFDtQ7a.css","./index-DuLeXWHP.js","./OnboardingStep-BiRiWMfN.js","./OnboardingStep-W9xAnmJA.css","./index-XMIs0DKf.css","./terms-CSPaAbQW.js","./TermsPageContent-QLZU3x_-.js","./DraggableTabBar-CDepb5oF.js","./DraggableTabBar-DMoG2CDw.css","./TermsPageContent-BB8L9Ojv.css","./tv-BZeTYiyo.js","./tv-C5Yr4_Jt.css","./wayf-DRk0fq9A.js","./libraries-DaePycHF.js","./index-CBUVLfhW.js","./mywatchlist-YbmZsxaQ.js","./password-DGBnKrPd.js","./UserResetPasswordEmailForm-ysV0asUn.js","./LabeledTextfield-BuMIRpOR.js","./LabeledTextfield-J18FTOWD.css","./UserResetPasswordEmailForm-BdWdtGwN.css","./password-BPwPf-Xs.css","./publiclibrary-eOPkZcs4.js","./SearchfieldWithAutoComplete-AtDS0Gj9.js","./SearchfieldWithAutoComplete-rcxviUjl.css","./InstitutionSearchList-Cdoc6NR0.js","./InstitutionSearchList-ByXcO083.css","./publiclibrary-DW_bkDqR.css","./university-DSZdZVtU.js","./university-X5z_5E5W.css","./index-CqHJaGu0.js","./_clipid-BNr67ncu.js","./index-ClKoAnnA.js","./EmbedError-jvAi2Skl.js","./MetadataPoster-uI5DCtGi.js","./MetadataPoster-Zy-k9oTR.css","./EmbedError-DW3suM4z.css","./Playlist-Bk6DxD8t.js","./index-BohIc0Zq.css","./index-BSYVREBU.js","./index-J3gj-srP.css","./index-B1gxgPsT.js","./index-Bw9CYwGT.js","./index-DbvUAH9B.js","./_clipid-DHe7ZsCo.js","./_episodeid-wZ-VXzGc.js","./_clipid-BGAHruLM.js","./_clipid-s_087r68.js","./index-DYJ-YRaw.js","./_seasonepisodeid-BKRE4b4L.js","./index-pEZYf39b.js","./CategoryPageContent-C29RiApc.js","./VideoGridWithSpinner-Dd12cZtP.js","./VideoGridWithSpinner-BtyBy5q-.css","./CategoryPageContent-CYl4AdJy.css","./_stem-D-LFgRNe.js","./_stem-D_yQA9jM.css","./_id-rOV8QKEn.js","./ProductPageIdContent-Cto7nTlL.js","./TermsInfoSection-D-dt5yB6.js","./InfoSection-CyGGiIeZ.js","./InfoSection-KzpP5kEL.css","./TermsInfoSection-dWVoJGId.css","./ProductMetadata-B-i6uwFZ.js","./ProductMetadata-CPCCZq--.css","./ProductDescription-z5_VOzLN.js","./ProductDescription-BN8BmzRa.css","./ProductPageIdContent-RYGd1QxC.css","./index-DOHaahUA.js","./ShelfPageContent-BmPu7aze.js","./ShelfPageContent-BK7PVINv.css","./index-DZQLCH9v.js","./index-DI7oSLOG.js","./identities-BLYiD4xV.js","./AccountTabs-B8FN_9t4.js","./AccountHeader-DYyWXT0Q.js","./AccountHeader-BSxZw8PH.css","./AccountLibrariesContent-BedhxG6d.js","./DarkTextfield-wEQuMk45.js","./DarkTextfield-BFh7j3Ch.css","./ProxyModal-DvmRa2kZ.js","./ProxyModal-D7li_Xgp.css","./tras
1h-CNDCMLlm.js","./AccountLibrariesContent-Bk-LK_kU.css","./identities-ChV77ojk.css","./information-eJi4JjGY.js","./AccountInformationContent-Blt0z8b9.js","./DataValidator-BSNWjoFX.js","./AccountInformationContent-BHEwnzlK.css","./information-B9Vm_yRT.css","./index-CM7BacQn.js","./AccountParentalControlsContent-CTY35_MC.js","./AccountParentalControlsContent-BfbC0pYQ.css","./index-BBHLB5f9.css","./confirm-BrNmx58_.js","./confirm-Bq2L1fsp.css","./verify-BmwAamv8.js","./forgotpin-BMi4h0SX.js","./ForgotPinInstructions-D1kJyTnB.js","./ForgotPinInstructions-DDMWvPHR.css","./_jwt-CherAA3L.js","./ResetParentalControlsPinContent-Lc8pmMx7.js","./ResetParentalControlsPinContent-qqC_YJ-7.css","./_jwt-B25PHHFA.js","./ResetPasswordContent-CTkP8GDw.js","./ResetPasswordContent-D_44Iq5c.css","./_jwt-Djjag6fC.js","./_subtermid-CjWbFXdB.js","./index-BZ3ePXRQ.js","./_seasonepisodeid-Cy0vDHo8.js","./index-DEn3TxHT.js","./index-C2WOxk_Y.css","./about-kids-8s09Qg0G.js","./about-kids-BYBo7RmO.css","./index-Csbw1zH3.js","./accessibility-DdoLzXjG.js","./catalog-DK1Mm1Zl.js","./contact-x81aQ9c6.js","./frontpage-CVGUBJXA.js","./index-DxJuLapo.js","./kids-aaGSly-H.js","./libbywelcome-fBJAPSeF.js","./link-D1Dc_OsP.js","./link-CUOvOFMP.css","./login-D9-JOayo.js","./index-Cgtc_FG9.js","./MyListsHeader-BcW11YjX.js","./MyListsHeader-TiR2YHgA.css","./VideoListContent-BEdAqM0m.js","./VideoListContent-CCUUA52m.css","./index-CMXj6hg3.css","./parentalcontrols-DBtHMnVA.js","./privacy-qSNHfBut.js","./search-DDoVfoT2.js","./index-sw_751Bu.js","./terms-CKVYcAwB.js","./wayf-BVjc9HIw.js","./libraries-BOpXWjcD.js","./index-D68UiZEU.js","./FourThumbnails-Bod1OBnN.js","./FourThumbnails-CChypNtU.css","./DurationView-BYTddQ0Y.js","./DurationView-Ci4VlmcN.css","./index-pdo_zPh_.css","./mywatchlist-uxXTJ9-P.js","./mywatchlist-CoAB_n3Z.css","./welcome-CpruGta0.js","./welcome-UCox9fLR.css","./password-CDPRFKRC.js","./password-Dv_gWe3R.css","./publiclibrary-DMpBJmy_.js","./AuthFormContent-BN9aJYcs.js","./CTAButtonBlackAndWhite-D0Emsc2a.js","./CTAButtonBlackAndWhite-CFPCYErg.css","./AuthFormContent-IaZF6ap1.css","./publiclibrary-DSf7cvil.css","./university-jLFHtgB3.js","./university-D3iI-_Ra.css","./publiclibrary-qb_6QwxE.js","./CreateAccountContentForm-C4r8nS1_.js","./CreateAccountContentForm-ckvcCXOD.css","./publiclibrary-VBWZkMgj.css","./university-t2tAa8p4.js","./university-DGsgstTu.css","./publiclibrary-DKIHWena.js","./university-CBKYp4QJ.js","./index-JT9HxS1Z.js","./TrashIconSvg-Djs4Ddz7.js","./CircleActionButton-BO7cfAuu.js","./CircleActionButton-Cl_LIphF.css","./index-DgIRgnM7.css","./_clipid-BUjbgMd_.js","./DarkTextview-BNdA5NhR.js","./DarkTextview-BIbkpFx4.css","./MobileBlocker-BjTLuamh.js","./MobileBlocker-DA-m0Kvx.css","./_clipid-Cv3iRZrN.css","./index-2SclADAZ.js","./WatchCustomPlaylistBase-D5h5k--L.js","./index-B53V2pNh.css","./index-B2bebd0r.js","./WatchVideoBase-BzP1vhbk.js","./index-DIGt1ODJ.css","./index-JAUkg7Rs.js","./SocialShareProduct-CnS-O7MQ.js","./SocialShareProduct-CO1Dxq8K.css","./index-TRk6bgon.css","./index-C1aA_JVV.js","./index-D3FVtRCw.css","./index-BQRhmIwi.js","./index-BHTqI2Hh.css","./_clipid-BuUWmiLo.js","./_episodeid-BasQEc8h.js","./_clipid-BWUeHMrg.js","./_clipid-DO-lhBH5.js","./index-BglIwtNF.js","./_seasonepisodeid-CKHOP-1j.js","./index-Cdhfus7p.js","./_id-BeEz5whs.js","./index-BOm4k99e.js","./index--h42llQG.js","./index-jzav-Qzk.js","./index-Dbkk537g.css","./identities-BuoVVQ9a.js","./identities-c7BhVuXo.css","./information-KjirzDZB.js","./information-CFi61Kp9.css","./index-4PNjTbml.js","./index-xN7PBJsV.css","./request-DeDOBGaa.js","./request-Cp3_ho2H.css","./forgotpin-BIbUcsEd.js","./_jwt-B-G16VLO.js","./_jwt-BfJUqi3H.js","./_jwt-1LZmwNyG.js","./_subtermid-CM96l06v.js","./index-BLSDq1Qx.js","./_seasonepisodeid-Bt5_Krqz.js"])))=>i.map(i=>d[i]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f2e84f41ed6c0beba456d92f07f35b71be0836fd"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d6abee65-c46e-4742-b230-30aecd126a64",e._sentryDebugIdIdentifier="sentry-dbid-d6abee65-c46e-4742-b230-30aecd126a64")}catch(n){}}();const e=globalThis||self;var t={},n=Object.freeze({}),r=Array.isArray; 3/*! 4 * Vue.js v2.7.16 5 * (c) 2014-2023 Evan You 6 * Released under the MIT License. 7 */function i(e){return null==e}function s(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function d(e){return"[object Object]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return s(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===u?JSON.stringify(e,m,2):String(e)}function m(e,t){return t&&t.__v_isRef?t.value:t}function _(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var y=g("key,ref,slot,slot-scope,is");function v(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function k(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,T=k(function(e){return e.replace(C,function(e,t){return t?t.toUpperCase():""})}),S=k(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),x=/\B([A-Z])/g,E=k(function(e){return e.replace(x,"-$1").toLowerCase()});var I=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function L(e,t,n){}var D=function(e,t,n){return!1},R=function(e){return e};function M(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),s=Array.isArray(t);if(i&&s)return e.length===t.length&&e.every(function(e,n){return M(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every(function(n){return M(e[n],t[n])})}catch(CL){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(M(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U="data-server-rendered",$=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","
7serverPrefetch","renderTracked","renderTriggered"],F={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:L,parsePlatformTagName:R,mustUseProp:D,async:!0,_lifecycleHooks:B};function q(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}var H=new RegExp("[^".concat(/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/.source,".$_\\d]"));var z="__proto__"in{},G="undefined"!=typeof window,K=G&&window.navigator.userAgent.toLowerCase(),W=K&&/msie|trident/.test(K),X=K&&K.indexOf("msie 9.0")>0,Y=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");var Z,J=K&&/iphone|ipad|ipod|ios/.test(K),Q=K&&K.match(/firefox\/(\d+)/),ee={}.watch,te=!1;if(G)try{var ne={};Object.defineProperty(ne,"passive",{get:function(){te=!0}}),window.addEventListener("test-passive",null,ne)}catch(CL){}var re=function(){return void 0===Z&&(Z=!G&&void 0!==e&&(e.process&&"server"===t.VUE_ENV)),Z},ie=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,ae="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);oe="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=null;function ce(e){void 0===e&&(e=null),e||le&&le._scope.off(),le=e,e&&e._scope.on()}var ue=function(){function e(e,t,n,r,i,s,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,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=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),de=function(e){void 0===e&&(e="");var t=new ue;return t.text=e,t.isComment=!0,t};function he(e){return new ue(void 0,void 0,void 0,String(e))}function pe(e){var t=new ue(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"==typeof SuppressedError&&SuppressedError;var fe=0,me=[],_e=function(){function e(){this._pending=!1,this.id=fe++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,me.push(this))}
7,e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){for(var t=this.subs.filter(function(e){return e}),n=0,r=t.length;n<r;n++){t[n].update()}},e}();_e.target=null;var ge=[];function ye(e){ge.push(e),_e.target=e}function ve(){ge.pop(),_e.target=ge[ge.length-1]}var be=Array.prototype,we=Object.create(be);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=be[e];V(we,e,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,s=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),s})});var ke=Object.getOwnPropertyNames(we),Ce={},Te=!0;function Se(e){Te=e}var xe,Ee={notify:L,depend:L,addSub:L,removeSub:L},Ie=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?Ee:new _e,this.vmCount=0,V(e,"__ob__",this),r(e)){if(!n)if(z)e.__proto__=we;else for(var i=0,s=ke.length;i<s;i++){V(e,a=ke[i],we[a])}t||this.observeArray(e)}else{var o=Object.keys(e);for(i=0;i<o.length;i++){var a;Pe(e,a=o[i],Ce,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ae(e[t],!1,this.mock)},e}();function Ae(e,t,n){return e&&w(e,"__ob__")&&e.__ob__ instanceof Ie?e.__ob__:!Te||!n&&re()||!r(e)&&!d(e)||!Object.isExtensible(e)||e.__v_skip||je(e)||e instanceof ue?void 0:new Ie(e,t,n)}function Pe(e,t,n,i,s,o,a){void 0===a&&(a=!1);var l=new _e,c=Object.getOwnPropertyDescriptor(e,t);if(!c||!1!==c.configurable){var u=c&&c.get,d=c&&c.set;u&&!d||n!==Ce&&2!==arguments.length||(n=e[t]);var h=s?n&&n.__ob__:Ae(n,!1,o);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=u?u.call(e):n;return _e.target&&(l.depend(),h&&(h.dep.depend(),r(t)&&De(t))),je(t)&&!s?t.value:t},set:function(t){var r=u?u.call(e):n;if((i=r)===(a=t)?0===i&&1/i!=1/a:i==i||a==a){var i,a;if(d)d.call(e,t);else{if(u)return;if(!s&&je(r)&&!je(t))return void(r.value=t);n=t}h=s?t&&t.__ob__:Ae(t,!1,o),l.notify()}}}),l}}function Oe(e,t,n){if(!Ne(e)){var i=e.__ob__;return r(e)&&h(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),i&&!i.shallow&&i.mock&&Ae(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||i&&i.vmCount?n:i?(Pe(i.value,t,n,void 0,i.shallow,i.mock),i.dep.notify(),n):(e[t]=n,n)}}function Le(e,t){if(r(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Ne(e)||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function De(e){for(var t=void 0,n=0,i=e.length;n<i;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),r(t)&&De(t)}function Re(e){return Me(e,!0),V(e,"__v_isShallow",!0),e}function Me(e,t){Ne(e)||Ae(e,t,re())}function Ne(e){return!(!e||!e.__v_isReadonly)}function je(e){return!(!e||!0!==e.__v_isRef)}function Ue(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(je(e))return e.value;var r=e&&e.__ob__;return r&&r.dep.depend(),e},set:function(e){var r=t[n];je(r)&&!je(e)?r.value=e:t[n]=e}})}var $e=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xe,!e&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=xe;try{return xe=this,e()}finally{xe=t}}},e.prototype.on=function(){xe=this},e.prototype.off=function(){xe=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},e}();var Be=k(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Fe(e,t){function n(){var e=n.fns;if(!r(e))return Et(e,null,arguments,t,"v-on handler");for(var i=e.slice(),s=0;s<i.length;s++)Et(i[s],null,arguments,t,"v-on handler")}return n.fns=e,n}function qe(e,t,n,r,s,a){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=Be(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=Fe(c,a)),o(d.once)&&(c=e[l]=s(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&r((d=Be(l)).name,t[l],d.capture)}function Ve(e,t,n){var r;e instanceof ue&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function l(){n.apply(this,arguments),v(r.fns,l)}i(a)?r=Fe([l]):s(a.fns)&&o(a.merged)?(r=a).fns.push(l):r=Fe([a,l]),r.merged=!0,e[t]=r}function He(e,t,n,r,i){if(s(t)){if(w(t,n))return e[n]=t[n],i||delete t[n],!0;if(w(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function ze(e){return a(e)?[he(e)]:r(e)?Ke(e):void 0}function Ge(e){return s(e)&&s(e.text)&&!1===e.isComment}function Ke(e,t){var n,l,c,u,d=[];for(n=0;n<e.length;n++)i(l=e[n])||"boolean"==typeof l||(u=d[c=d.length-1],r(l)?l.length>0&&(Ge((l=Ke(l,"".concat(t||"","_").concat(n)))[0])&&Ge(u)&&(d[c]=he(u.text+l[0].text),l.shift()),d.push.apply(d,l)):a(l)?Ge(u)?d[c]=he(u.text+l):""!==l&&d.push(he(l)):Ge(l)&&Ge(u)?d[c]=he(u.text+l.text):(o(e._isVList)&&s(l.tag)&&i(l.key)&&s(t)&&(l.key="__vlist".concat(t,"_").concat(n,"__")),d.push(l)));return d}function We(e,t){var n,i,o,a,l=null;if(r(e)||"string"==typeof e)for(l=new Array(e.length),n=0,i=e.length;n<i;n++)l[n]=t(e[n],n);else if("number"==typeof e)for(l=new Array(e),n=0;n<e;n++)l[n]=t(n+1,n);else if(c(e))if(ae&&e[Symbol.iterator]){l=[];for(var u=e[Symbol.iterator](),d=u.next();!d.done;)l.push(t(d.value,l.length)),d=u.next()}else for(o=Object.keys(e),l=new Array(o.length),n=0,i=o.length;n<i;n++)a=o[n],l[n]=t(e[a],a,n);return s(l)||(l=[]),l._isVList=!0,l}function Xe(e,t,n,r){var i,s=this.$scopedSlots[e];s?(n=n||{},r&&(n=P(P({},r),n)),i=s(n)||(l(t)?t():t)):i=this.$slots[e]||(l(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function Ye(e){return Dn(this.$options,"filters",e)||R}function Ze(e,t){return r(e)?-1===e.indexOf(t):e!==t}function Je(e,t,n,r,i){var s=F.keyCodes[t]||n;return i&&r&&!F.keyCodes[t]?Ze(i,r):s?Ze(s,e):r?E(r)!==t:void 0===e}function Qe(e,t,n,i,s){if(n)if(c(n)){r(n)&&(n=O(n));var o=void 0,a=function(r){if("class"===r||"style"===r||y(r))o=e;else{var a=e.attrs&&e.attrs.type;o=i||F.mustUseProp(t,a,r)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=T(r),c=E(r);l in o||c in o||(o[r]=n[r],s&&((e.on||(e.on={}))["update:".concat(r)]=function(e){n[r]=e}))};for(var l in n)a(l)}else;return e}function et(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||nt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),r}function tt(e,t,n){return nt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function nt(e,t,n){if(r(e))for(var i=0;i<e.length;i++)e[i]&&"string"!=typeof e[i]&&rt(e[i],"".concat(t,"_").concat(i),n);else rt(e,t,n)}function rt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function it(e,t){if(t)if(d(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],s=t[r];n[r]=i?[].concat(i,s):s}}else;return e}function st(e,t,n,i){t=t||{$stable:!n};for(var s=0;s<e.length;s++){var o=e[s];r(o)?st(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return i&&(t.$key=i),t}function ot(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function at(e,t){return"string"==typeof e?t+e:e}function lt(e){e._o=tt,e._n=_,e._s=f,e._l=We,e._t=Xe,e._q=M,e._i=N,e._m=et,e._f=Ye,e._k=Je,e._b=Qe,e._v=he,e._e=de,e._u=st,e._g=it,e._d=ot,e._p=at}function ct(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var s=e[r],o=s.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,s.context!==t&&s.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(s);else{var a=o.slot,l=n[a]||(n[a]=[]);"template"===s.tag?l.push.apply(l,s.children||[]):l.push(s)}}for(var c in n)n[c].every(ut)&&delete n[c];return n}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function dt(e){return e.isComment&&e.asyncFactory}
7function ht(e,t,r,i){var s,o=Object.keys(r).length>0,a=t?!!t.$stable:!o,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&i&&i!==n&&l===i.$key&&!o&&!i.$hasNormal)return i;for(var c in s={},t)t[c]&&"$"!==c[0]&&(s[c]=pt(e,r,c,t[c]))}else s={};for(var u in r)u in s||(s[u]=ft(r,u));return t&&Object.isExtensible(t)&&(t._normalized=s),V(s,"$stable",a),V(s,"$key",l),V(s,"$hasNormal",o),s}function pt(e,t,n,i){var s=function(){var t=le;ce(e);var n=arguments.length?i.apply(null,arguments):i({}),s=(n=n&&"object"==typeof n&&!r(n)?[n]:ze(n))&&n[0];return ce(t),n&&(!s||1===n.length&&s.isComment&&!dt(s))?void 0:n};return i.proxy&&Object.defineProperty(t,n,{get:s,enumerable:!0,configurable:!0}),s}function ft(e,t){return function(){return e[t]}}function mt(e){var t=e.$options,r=t.setup;if(r){var i=e._setupContext=function(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};V(t,"_v_attr_proxy",!0),_t(t,e.$attrs,n,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||_t(e._listenersProxy={},e.$listeners,n,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||yt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:I(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach(function(n){return Ue(e,t,n)})}}}(e);ce(e),ye();var s=Et(r,null,[e._props||Re({}),i],e,"setup");if(ve(),ce(),l(s))t.render=s;else if(c(s))if(e._setupState=s,s.__sfc){var o=e._setupProxy={};for(var a in s)"__sfc"!==a&&Ue(o,s,a)}else for(var a in s)q(a)||Ue(e,s,a)}}function _t(e,t,n,r,i){var s=!1;for(var o in t)o in e?t[o]!==n[o]&&(s=!0):(s=!0,gt(e,o,r,i));for(var o in e)o in t||(s=!0,delete e[o]);return s}function gt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function yt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}var vt=null;function bt(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function wt(e){if(r(e))for(var t=0;t<e.length;t++){var n=e[t];if(s(n)&&(s(n.componentOptions)||dt(n)))return n}}var kt=1,Ct=2;function Tt(e,t,n,i,u,d){return(r(n)||a(n))&&(u=i,i=n,n=void 0),o(d)&&(u=Ct),function(e,t,n,i,o){if(s(n)&&s(n.__ob__))return de();s(n)&&s(n.is)&&(t=n.is);if(!t)return de();r(i)&&l(i[0])&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);o===Ct?i=ze(i):o===kt&&(i=function(e){for(var t=0;t<e.length;t++)if(r(e[t]))return Array.prototype.concat.apply([],e);return e}(i));var a,u;if("string"==typeof t){var d=void 0;u=e.$vnode&&e.$vnode.ns||F.getTagNamespace(t),a=F.isReservedTag(t)?new ue(F.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!s(d=Dn(e.$options,"components",t))?new ue(t,n,i,void 0,void 0,e):Cn(d,n,e,i,t)}else a=Cn(t,n,e,i);return r(a)?a:s(a)?(s(u)&&St(a,u),s(n)&&function(e){c(e.style)&&qt(e.style);c(e.class)&&qt(e.class)}(n),a):de()}(e,t,n,i,u)}function St(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),s(e.children))for(var r=0,a=e.children.length;r<a;r++){var l=e.children[r];s(l.tag)&&(i(l.ns)||o(n)&&"svg"!==l.tag)&&St(l,t,n)}}function xt(e,t,n){ye();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var s=0;s<i.length;s++)try{if(!1===i[s].call(r,e,t,n))return}catch(CL){It(CL,r,"errorCaptured hook")}}It(e,t,n)}finally{ve()}}function Et(e,t,n,r,i){var s;try{(s=n?e.apply(t,n):e.call(t))&&!s._isVue&&p(s)&&!s._handled&&(s.catch(function(e){return xt(e,r,i+" (Promise/async)")}),s._handled=!0)}catch(CL){xt(CL,r,i)}return s}function It(e,t,n){if(F.errorHandler)try{return F.errorHandler.call(null,e,t,n)}catch(CL){CL!==e&&At(CL)}At(e)}function At(e,t,n){if(!G||"undefined"==typeof console)throw e;console.error(e)}var Pt,Ot=!1,Lt=[],Dt=!1;function Rt(){Dt=!1;var e=Lt.slice(0);Lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Mt=Promise.resolve();Pt=function(){Mt.then(Rt),J&&setTimeout(L)},Ot=!0}else if(W||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Pt="undefined"!=typeof setImmediate&&se(setImmediate)?function(){setImmediate(Rt)}:function(){setTimeout(Rt,0)};else{var Nt=1,jt=new MutationObserver(Rt),Ut=document.createTextNode(String(Nt));jt.observe(Ut,{characterData:!0}
7),Pt=function(){Nt=(Nt+1)%2,Ut.data=String(Nt)},Ot=!0}function $t(e,t){var n;if(Lt.push(function(){if(e)try{e.call(t)}catch(CL){xt(CL,t,"nextTick")}else n&&n(t)}),Dt||(Dt=!0,Pt()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Bt="2.7.16",Ft=new oe;function qt(e){return Vt(e,Ft),Ft.clear(),e}function Vt(e,t){var n,i,s=r(e);if(!(!s&&!c(e)||e.__v_skip||Object.isFrozen(e)||e instanceof ue)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(s)for(n=e.length;n--;)Vt(e[n],t);else if(je(e))Vt(e.value,t);else for(n=(i=Object.keys(e)).length;n--;)Vt(e[i[n]],t)}}var Ht,zt=0,Gt=function(){function e(e,t,n,r,i){var s,o;s=this,void 0===(o=xe&&!xe._vm?xe:e?e._scope:void 0)&&(o=xe),o&&o.active&&o.effects.push(s),(this.vm=e)&&i&&(e._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=++zt,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new oe,this.newDepIds=new oe,this.expression="",l(t)?this.getter=t:(this.getter=function(e){if(!H.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(CL){if(!this.user)throw CL;xt(CL,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&qt(e),ve(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.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},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null!=on[t])return;if(e===_e.target&&e.noRecurse)return;if(on[t]=!0,ln){for(var n=rn.length-1;n>cn&&rn[n].id>e.id;)n--;rn.splice(n+1,0,e)}else rn.push(e);an||(an=!0,$t(fn))}(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');Et(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1}
7,e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&v(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}();function Kt(e,t){Ht.$on(e,t)}function Wt(e,t){Ht.$off(e,t)}function Xt(e,t){var n=Ht;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Yt(e,t,n){Ht=e,qe(t,n||{},Kt,Wt,Xt,e),Ht=void 0}var Zt=null;function Jt(e){var t=Zt;return Zt=e,function(){Zt=t}}function Qt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function en(e,t){if(t){if(e._directInactive=!1,Qt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)en(e.$children[n]);nn(e,"activated")}}function tn(e,t){if(!(t&&(e._directInactive=!0,Qt(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)tn(e.$children[n]);nn(e,"deactivated")}}function nn(e,t,n,r){void 0===r&&(r=!0),ye();var i=le,s=xe;r&&ce(e);var o=e.$options[t],a="".concat(t," hook");if(o)for(var l=0,c=o.length;l<c;l++)Et(o[l],e,null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&(ce(i),s&&s.on()),ve()}var rn=[],sn=[],on={},an=!1,ln=!1,cn=0;var un=0,dn=Date.now;if(G&&!W){var hn=window.performance;hn&&"function"==typeof hn.now&&dn()>document.createEvent("Event").timeStamp&&(dn=function(){return hn.now()})}var pn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function fn(){var e,t;for(un=dn(),ln=!0,rn.sort(pn),cn=0;cn<rn.length;cn++)(e=rn[cn]).before&&e.before(),t=e.id,on[t]=null,e.run();var n=sn.slice(),r=rn.slice();cn=rn.length=sn.length=0,on={},an=ln=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,en(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&nn(r,"updated")}}(r),function(){for(var e=0;e<me.length;e++){var t=me[e];t.subs=t.subs.filter(function(e){return e}),t._pending=!1}me.length=0}(),ie&&F.devtools&&ie.emit("flush")}function mn(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!c(n))return;for(var r=function(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}(e),i=ae?Reflect.ownKeys(n):Object.keys(n),s=0;s<i.length;s++){var o=i[s];Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(n,o))}}}function _n(e,t){if(e){for(var n=Object.create(null),r=ae?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var s=r[i];if("__ob__"!==s){var o=e[s].from;if(o in t._provided)n[s]=t._provided[o];else if("default"in e[s]){var a=e[s].default;n[s]=l(a)?a.call(t):a}}}return n}}function gn(e,t,i,s,a){var l,c=this,u=a.options;w(s,"_uid")?(l=Object.create(s))._original=s:(l=s,s=s._original);var d=o(u._compiled),h=!d;this.data=e,this.props=t,this.children=i,this.parent=s,this.listeners=e.on||n,this.injections=_n(u.inject,s),this.slots=function(){return c.$slots||ht(s,e.scopedSlots,c.$slots=ct(i,s)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ht(s,e.scopedSlots,this.slots())}}),d&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ht(s,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var o=Tt(l,e,t,n,i,h);return o&&!r(o)&&(o.fnScopeId=u._scopeId,o.fnContext=s),o}:this._c=function(e,t,n,r){return Tt(l,e,t,n,r,h)}}function yn(e,t,n,r,i){var s=pe(e);return s.fnContext=n,s.fnOptions=r,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function vn(e,t){for(var n in t)e[T(n)]=t[n]}function bn(e){return e.name||e.__name||e._componentTag}lt(gn.prototype);var wn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;wn.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Zt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var r=t.componentOptions;!function(e,t,r,i,s){var o=i.data.scopedSlots,a=e.$scopedSlots,l=!!(o&&!o.$stable||a!==n&&!a.$stable||o&&e.$scopedSlots.$key!==o.$key||!o&&e.$scopedSlots.$key),c=!!(s||e.$o
7ptions._renderChildren||l),u=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=s;var d=i.data.attrs||n;e._attrsProxy&&_t(e._attrsProxy,d,u.data&&u.data.attrs||n,e,"$attrs")&&(c=!0),e.$attrs=d,r=r||n;var h=e.$options._parentListeners;if(e._listenersProxy&&_t(e._listenersProxy,r,h||n,e,"$listeners"),e.$listeners=e.$options._parentListeners=r,Yt(e,r,h),t&&e.$options.props){Se(!1);for(var p=e._props,f=e.$options._propKeys||[],m=0;m<f.length;m++){var _=f[m],g=e.$options.props;p[_]=Rn(_,g,t,e)}Se(!0),e.$options.propsData=t}c&&(e.$slots=ct(s,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,r.propsData,r.listeners,t,r.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,nn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,sn.push(t)):en(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?tn(t,!0):t.$destroy())}},kn=Object.keys(wn);function Cn(e,t,a,l,u){if(!i(e)){var d=a.$options._base;if(c(e)&&(e=d.extend(e)),"function"==typeof e){var h;if(i(e.cid)&&(e=function(e,t){if(o(e.error)&&s(e.errorComp))return e.errorComp;if(s(e.resolved))return e.resolved;var n=vt;if(n&&s(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&s(e.loadingComp))return e.loadingComp;if(n&&!s(e.owners)){var r=e.owners=[n],a=!0,l=null,u=null;n.$on("hook:destroyed",function(){return v(r,n)});var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=j(function(n){e.resolved=bt(n,t),a?r.length=0:d(!0)}),f=j(function(t){s(e.errorComp)&&(e.error=!0,d(!0))}),m=e(h,f);return c(m)&&(p(m)?i(e.resolved)&&m.then(h,f):p(m.component)&&(m.component.then(h,f),s(m.error)&&(e.errorComp=bt(m.error,t)),s(m.loading)&&(e.loadingComp=bt(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout(function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))},m.delay||200)),s(m.timeout)&&(u=setTimeout(function(){u=null,i(e.resolved)&&f(null)},m.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}(h=e,d),void 0===e))return function(e,t,n,r,i){var s=de();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:r,tag:i},s}(h,t,a,l,u);t=t||{},Wn(e),s(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],l=t.model.callback;s(a)?(r(a)?-1===a.indexOf(l):a!==l)&&(o[i]=[l].concat(a)):o[i]=l}(e.options,t);var f=function(e,t){var n=t.options.props;if(!i(n)){var r={},o=e.attrs,a=e.props;if(s(o)||s(a))for(var l in n){var c=E(l);He(r,a,l,c,!0)||He(r,o,l,c,!1)}return r}}(t,e);if(o(e.options.functional))return function(e,t,i,o,a){var l=e.options,c={},u=l.props;if(s(u))for(var d in u)c[d]=Rn(d,u,t||n);else s(i.attrs)&&vn(c,i.attrs),s(i.props)&&vn(c,i.props);var h=new gn(i,c,a,o,e),p=l.render.call(null,h._c,h);if(p instanceof ue)return yn(p,i,h.parent,l);if(r(p)){for(var f=ze(p)||[],m=new Array(f.length),_=0;_<f.length;_++)m[_]=yn(f[_],i,h.parent,l);return m}}(e,f,t,a,l);var m=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var _=t.slot;t={},_&&(t.slot=_)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<kn.length;n++){var r=kn[n],i=t[r],s=wn[r];i===s||i&&i._merged||(t[r]=i?Tn(s,i):s)}}(t);var g=bn(e.options)||u;return new ue("vue-component-".concat(e.cid).concat(g?"-".concat(g):""),t,void 0,void 0,void 0,a,{Ctor:e,propsData:f,listeners:m,tag:u,children:l},h)}}}function Tn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var Sn=L,xn=F.optionMergeStrategies;function En(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,i,s,o=ae?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(r=o[a])&&(i=e[r],s=t[r],n&&w(e,r)?i!==s&&d(i)&&d(s)&&En(i,s):Oe(e,r,s));return e}function In(e,t,n){return n?function(){var r=l(t)?t.call(n,n):t,i=l(e)?e.call(n,n):e;return r?En(r,i):i}:t?e?function(){return En(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function An(e,t){var n=t?e?e.concat(t):r(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;
7n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Pn(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}xn.data=function(e,t,n){return n?In(e,t,n):t&&"function"!=typeof t?e:In(e,t)},B.forEach(function(e){xn[e]=An}),$.forEach(function(e){xn[e+"s"]=Pn}),xn.watch=function(e,t,n,i){if(e===ee&&(e=void 0),t===ee&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var s={};for(var o in P(s,e),t){var a=s[o],l=t[o];a&&!r(a)&&(a=[a]),s[o]=a?a.concat(l):r(l)?l:[l]}return s},xn.props=xn.methods=xn.inject=xn.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},xn.provide=function(e,t){return e?function(){var n=Object.create(null);return En(n,l(e)?e.call(this):e),t&&En(n,l(t)?t.call(this):t,!1),n}:t};var On=function(e,t){return void 0===t?e:t};function Ln(e,t,n){if(l(t)&&(t=t.options),function(e){var t=e.props;if(t){var n,i,s={};if(r(t))for(n=t.length;n--;)"string"==typeof(i=t[n])&&(s[T(i)]={type:null});else if(d(t))for(var o in t)i=t[o],s[T(o)]=d(i)?i:{type:i};e.props=s}}(t),function(e){var t=e.inject;if(t){var n=e.inject={};if(r(t))for(var i=0;i<t.length;i++)n[t[i]]={from:t[i]};else if(d(t))for(var s in t){var o=t[s];n[s]=d(o)?P({from:s},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];l(r)&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Ln(e,t.extends,n)),t.mixins))for(var i=0,s=t.mixins.length;i<s;i++)e=Ln(e,t.mixins[i],n);var o,a={};for(o in e)c(o);for(o in t)w(e,o)||c(o);function c(r){var i=xn[r]||On;a[r]=i(e[r],t[r],n,r)}return a}function Dn(e,t,n,r){if("string"==typeof n){var i=e[t];if(w(i,n))return i[n];var s=T(n);if(w(i,s))return i[s];var o=S(s);return w(i,o)?i[o]:i[n]||i[s]||i[o]}}function Rn(e,t,n,r){var i=t[e],s=!w(n,e),o=n[e],a=Un(Boolean,i.type);if(a>-1)if(s&&!w(i,"default"))o=!1;else if(""===o||o===E(e)){var c=Un(String,i.type);(c<0||a<c)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!w(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return l(r)&&"Function"!==Nn(t.type)?r.call(e):r}(r,i,e);var u=Te;Se(!0),Ae(o),Se(u)}return o}var Mn=/^\s*function (\w+)/;function Nn(e){var t=e&&e.toString().match(Mn);return t?t[1]:""}function jn(e,t){return Nn(e)===Nn(t)}function Un(e,t){if(!r(t))return jn(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(jn(t[n],e))return n;return-1}var $n={enumerable:!0,configurable:!0,get:L,set:L};function Bn(e,t,n){$n.get=function(){return this[t][n]},$n.set=function(e){this[t][n]=e},Object.defineProperty(e,n,$n)}function Fn(e){var t=e.$options;if(t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props=Re({}),i=e.$options._propKeys=[],s=!e.$parent;s||Se(!1);var o=function(s){i.push(s);var o=Rn(s,t,n,e);Pe(r,s,o,void 0,!0),s in e||Bn(e,"_props",s)};for(var a in t)o(a);Se(!0)}(e,t.props),mt(e),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?L:I(t[n],e)}(e,t.methods),t.data)!function(e){var t=e.$options.data;t=e._data=l(t)?function(e,t){ye();try{return e.call(t,t)}catch(CL){return xt(CL,t,"data()"),{}}finally{ve()}}(t,e):t||{},d(t)||(t={});var n=Object.keys(t),r=e.$options.props;e.$options.methods;var i=n.length;for(;i--;){var s=n[i];r&&w(r,s)||q(s)||Bn(e,"_data",s)}var o=Ae(t);o&&o.vmCount++}(e);else{var n=Ae(e._data={});n&&n.vmCount++}t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=re();for(var i in t){var s=t[i],o=l(s)?s:s.get;r||(n[i]=new Gt(e,o||L,L,qn)),i in e||Vn(e,i,s)}}(e,t.computed),t.watch&&t.watch!==ee&&function(e,t){for(var n in t){var i=t[n];if(r(i))for(var s=0;s<i.length;s++)Gn(e,n,i[s]);else Gn(e,n,i)}}(e,t.watch)}var qn={lazy:!0};function Vn(e,t,n){var r=!re();l(n)?($n.get=r?Hn(t):zn(n),$n.set=L):($n.get=n.get?r&&!1!==n.cache?Hn(t):zn(n.get):L,$n.set=n.set||L),Object.defineProperty(e,t,$n)}function Hn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),_e.target&&t.depend(),t.value}}function zn(e){return function(){return e.call(this,this)}}function Gn(e,t,n,r){return d(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Kn=0;function Wn(e){var t=e.options;if(e.super){var n=Wn(e.super);
7if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&P(e.extendOptions,r),(t=e.options=Ln(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Xn(e){this._init(e)}function Yn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var s=bn(e)||bn(n.options),o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Ln(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)Bn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Vn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,$.forEach(function(e){o[e]=n[e]}),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=P({},o.options),i[r]=o,o}}function Zn(e){return e&&(bn(e.Ctor.options)||e.tag)}function Jn(e,t){return r(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===u.call(n)&&e.test(t));var n}function Qn(e,t){var n=e.cache,r=e.keys,i=e._vnode,s=e.$vnode;for(var o in n){var a=n[o];if(a){var l=a.name;l&&!t(l)&&er(n,o,r,i)}}s.componentOptions.children=void 0}function er(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}Xn.prototype._init=function(e){var t=this;t._uid=Kn++,t._isVue=!0,t.__v_skip=!0,t._scope=new $e(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ln(Wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=ct(t._renderChildren,i),e.$scopedSlots=r?ht(e.$parent,r.data.scopedSlots,e.$slots):n,e._c=function(t,n,r,i){return Tt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Tt(e,t,n,r,i,!0)};var s=r&&r.data;Pe(e,"$attrs",s&&s.attrs||n,null,!0),Pe(e,"$listeners",t._parentListeners||n,null,!0)}(t),nn(t,"beforeCreate",0,!1),function(e){var t=_n(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach(function(n){Pe(e,n,t[n])}),Se(!0))}(t),Fn(t),mn(t),nn(t,"created"),t.$options.el&&t.$mount(t.$options.el)},function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Oe,e.prototype.$delete=Le,e.prototype.$watch=function(e,t,n){var r=this;if(d(t))return Gn(r,e,t,n);(n=n||{}).user=!0;var i=new Gt(r,e,t,n);if(n.immediate){var s='callback for immediate watcher "'.concat(i.expression,'"');ye(),Et(t,r,[i.value],r,s),ve()}return function(){i.teardown()}}}(Xn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(r(e))for(var s=0,o=e.length;s<o;s++)i.$on(e[s],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(r(e)){for(var i=0,s=e.length;i<s;i++)n.$off(e[i],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var l=a.length;l--;)if((o=a[l])===t||o.fn===t){a.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?A(n):n;
7for(var r=A(arguments,1),i='event handler for "'.concat(e,'"'),s=0,o=n.length;s<o;s++)Et(n[s],t,r,t,i)}return t}}(Xn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,s=Jt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),s(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var o=n;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){nn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||v(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),nn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Xn),function(e){lt(e.prototype),e.prototype.$nextTick=function(e){return $t(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,i=t._parentVnode;i&&e._isMounted&&(e.$scopedSlots=ht(e.$parent,i.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&yt(e._slotsProxy,e.$scopedSlots)),e.$vnode=i;var s,o=le,a=vt;try{ce(e),vt=e,s=n.call(e._renderProxy,e.$createElement)}catch(CL){xt(CL,e,"render"),s=e._vnode}finally{vt=a,ce(o)}return r(s)&&1===s.length&&(s=s[0]),s instanceof ue||(s=de()),s.parent=i,s}}(Xn);var tr=[String,RegExp,Array],nr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:tr,exclude:tr,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var s=r.tag,o=r.componentInstance,a=r.componentOptions;t[i]={name:Zn(a),tag:s,componentInstance:o},n.push(i),this.max&&n.length>parseInt(this.max)&&er(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)er(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Qn(e,function(e){return Jn(t,e)})}),this.$watch("exclude",function(t){Qn(e,function(e){return!Jn(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=wt(e),n=t&&t.componentOptions;if(n){var r=Zn(n),i=this.include,s=this.exclude;if(i&&(!r||!Jn(i,r))||s&&r&&Jn(s,r))return t;var o=this.cache,a=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,v(a,l),a.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:Sn,extend:P,mergeOptions:Ln,defineReactive:Pe},e.set=Oe,e.delete=Le,e.nextTick=$t,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),$.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,P(e.options.components,nr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ln(this.options,e),this}}(e),Yn(e),function(e){$.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(Xn),Object.defineProperty(Xn.prototype,"$isServer",{get:re}),Object.defineProperty(Xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Xn,"FunctionalRenderContext",{value:gn}),Xn.version=Bt;var rr=g("style,class"),ir=g("input,textarea,option,select,progress"),sr=g("contenteditable,draggable,spellcheck"),or=g("events,caret,typing,plaintext-only"),ar=g("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"),lr="http://www.w3.org/1999/xlink",cr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},ur=function(e){return cr(e)?e.slice(6,e.length):""},dr=function(e){return null==e||!1===e};function hr(e){for(var t=e.data,n=e,r=e;s(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=pr(r.data,t));for(;s(n=n.parent);)n&&n.data&&(t=pr(t,n.data));return function(e,t){if(s(e)||s(t))return fr(e,mr(t));return""}(t.staticClass,t.class)}function pr(e,t){return{staticClass:fr(e.staticClass,t.staticClass),class:s(e.class)?[e.class,t.class]:t.class}}function fr(e,t){return e?t?e+" "+t:e:t||""}function mr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)s(t=mr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var _r={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},gr=g("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"),yr=g("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),vr=function(e){return gr(e)||yr(e)};var br=Object.create(null);var wr=g("text,number,password,search,email,tel,url");var kr=Object.freeze({__proto__:null,createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(_r[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Cr={create:function(e,t){Tr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Tr(e,!0),Tr(t))},destroy:function(e){Tr(e,!0)}};function Tr(e,t){var n=e.data.ref;if(s(n)){var i=e.context,o=e.componentInstance||e.elm,a=t?null:o,c=t?void 0:o;if(l(n))Et(n,i,[a],i,"template ref function");else{var u=e.data.refInFor,d="string"==typeof n||"number"==typeof n,h=je(n),p=i.$refs;if(d||h)if(u){var f=d?p[n]:n.value;t?r(f)&&v(f,o):r(f)?f.includes(o)||f.push(o):d?(p[n]=[o],Sr(i,n,p[n])):n.value=[o]}else if(d){if(t&&p[n]!==o)return;p[n]=c,Sr(i,n,a)}else if(h){if(t&&n.value!==o)return;n.value=a}}}}function Sr(e,t,n){var r=e._setupState;r&&w(r,t)&&(je(r[t])?r[t].value=n:r[t]=n)}var xr=new ue("",{},[]),Er=["create","activate","update","remove","destroy"];function Ir(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=s(n=e.data)&&s(n=n.attrs)&&n.type,i=s(n=t.data)&&s(n=n.attrs)&&n.type;return r===i||wr(r)&&wr(i)}(e,t)||o(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Ar(e,t,n){var r,i,o={};for(r=t;r<=n;++r)s(i=e[r].key)&&(o[i]=r);return o}var Pr={create:Or,update:Or,destroy:function(e){Or(e,xr)}};function Or(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,s=e===xr,o=t===xr,a=Dr(e.data.directives,e.context),l=Dr(t.data.directives,t.context),c=[],u=[];for(n in l)r=a[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Mr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(Mr(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Mr(c[n],"inserted",t,e)};s?Ve(t,"insert",d):d()}u.length&&Ve(t,"postpatch",function(){for(var n=0;n<u.length;n++)Mr(u[n],"componentUpdated",t,e)});if(!s)for(n in a)l[n]||Mr(a[n],"unbind",e,e,o)}(e,t)}var Lr=Object.create(null);function Dr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++){if((r=e[n]).modifiers||(r.modifiers=Lr),i[Rr(r)]=r,t._setupState&&t._setupState.__sfc){var s=r.def||Dn(t,"_setupState","v-"+r.name);r.def="function"==typeof s?{bind:s,update:s}:s}r.def=r.def||Dn(t.$options,"directives",r.name)}
vendor: 17,549 bytes, line 7
7return i}function Rr(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function Mr(e,t,n,r,i){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,r,i)}catch(CL){xt(CL,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var Nr=[Cr,Pr];function jr(e,t){var n=t.componentOptions;if(!(s(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(r in(s(u.__ob__)||o(u._v_attr_proxy))&&(u=t.data.attrs=P({},u)),u)a=u[r],c[r]!==a&&Ur(l,r,a,t.data.pre);for(r in(W||Y)&&u.value!==c.value&&Ur(l,"value",u.value),c)i(u[r])&&(cr(r)?l.removeAttributeNS(lr,ur(r)):sr(r)||l.removeAttribute(r))}}function Ur(e,t,n,r){r||e.tagName.indexOf("-")>-1?$r(e,t,n):ar(t)?dr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):sr(t)?e.setAttribute(t,function(e,t){return dr(t)||"false"===t?"false":"contenteditable"===e&&or(t)?t:"true"}(t,n)):cr(t)?dr(n)?e.removeAttributeNS(lr,ur(t)):e.setAttributeNS(lr,t,n):$r(e,t,n)}function $r(e,t,n){if(dr(n))e.removeAttribute(t);else{if(W&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Br={create:jr,update:jr};function Fr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=hr(t),l=n._transitionClasses;s(l)&&(a=fr(a,mr(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var qr,Vr={create:Fr,update:Fr},Hr="__r",zr="__c";function Gr(e,t,n){var r=qr;return function i(){null!==t.apply(null,arguments)&&Xr(e,i,n,r)}}var Kr=Ot&&!(Q&&Number(Q[1])<=53);function Wr(e,t,n,r){if(Kr){var i=un,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}qr.addEventListener(e,t,te?{capture:n,passive:r}:n)}function Xr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function Yr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};qr=t.elm||e.elm,function(e){if(s(e[Hr])){var t=W?"change":"input";e[t]=[].concat(e[Hr],e[t]||[]),delete e[Hr]}s(e[zr])&&(e.change=[].concat(e[zr],e.change||[]),delete e[zr])}(n),qe(n,r,Wr,Xr,Gr,t.context),qr=void 0}}var Zr,Jr={create:Yr,update:Yr,destroy:function(e){return Yr(e,xr)}};function Qr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(s(c.__ob__)||o(c._v_attr_proxy))&&(c=t.data.domProps=P({},c)),l)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);ei(a,u)&&(a.value=u)}else if("innerHTML"===n&&yr(a.tagName)&&i(a.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var d=Zr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;d.firstChild;)a.appendChild(d.firstChild)}else if(r!==l[n])try{a[n]=r}catch(CL){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(CL){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(s(r)){if(r.number)return _(n)!==_(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Qr,update:Qr},ni=k(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function ri(e){var t=ii(e.style);return e.staticStyle?P(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?O(e):"string"==typeof e?ni(e):e}var si,oi=/^--/,ai=/\s*!important$/,li=function(e,t,n){if(oi.test(t))e.style.setProperty(t,n);else if(ai.test(n))e.style.setProperty(E(t),n.replace(ai,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,s=n.length;i<s;i++)e.style[r]=n[i];else e.style[r]=n}},ci=["Webkit","Moz","ms"],ui=k(function(e){if(si=si||document.createElement("div").style,"filter"!==(e=T(e))&&e in si)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ci.length;n++){var r=ci[n]+t;if(r in si)return r}});function di(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,a,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,h=ii(t.data.style)||{};t.data.normalizedStyle=s(h.__ob__)?P({},h):h;var p=function(e){for(var t,n={},r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(t=ri(r.data))&&P(n,t);(t=ri(e.data))&&P(n,t);for(var i=e;i=i.parent;)i.data&&(t=ri(i.data))&&P(n,t);return n}(t);for(a in d)i(p[a])&&li(l,a,"");for(a in p)o=p[a],li(l,a,null==o?"":o)}}var hi={create:di,update:di},pi=/\s+/;function fi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(pi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(pi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function _i(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&P(t,gi(e.name||"v")),P(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=k(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),yi=G&&!X,vi="transition",bi="animation",wi="transition",ki="transitionend",Ci="animation",Ti="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",ki="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",Ti="webkitAnimationEnd"));var Si=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function xi(e){Si(function(){Si(e)})}function Ei(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),fi(e,t))}function Ii(e,t){e._transitionClasses&&v(e._transitionClasses,t),mi(e,t)}function Ai(e,t,n){var r=Oi(e,t),i=r.type,s=r.timeout,o=r.propCount;if(!i)return n();var a=i===vi?ki:Ti,l=0,c=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout(function(){l<o&&c()},s+1),e.addEventListener(a,u)}var Pi=/\b(transform|all)(,|$)/;function Oi(e,t){var n,r=window.getComputedStyle(e),i=(r[wi+"Delay"]||"").split(", "),s=(r[wi+"Duration"]||"").split(", "),o=Li(i,s),a=(r[Ci+"Delay"]||"").split(", "),l=(r[Ci+"Duration"]||"").split(", "),c=Li(a,l),u=0,d=0;return t===vi?o>0&&(n=vi,u=o,d=s.length):t===bi?c>0&&(n=bi,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?vi:bi:null)?n===vi?s.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===vi&&Pi.test(r[wi+"Property"])}}function Li(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Di(t)+Di(e[n])}))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ri(e,t){var n=e.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=_i(e.data.transition);if(!i(r)&&!s(n._enterCb)&&1===n.nodeType){for(var o=r.css,a=r.type,u=r.enterClass,d=r.enterToClass,h=r.enterActiveClass,p=r.appearClass,f=r.appearToClass,m=r.appearActiveClass,g=r.beforeEnter,y=r.enter,v=r.afterEnter,b=r.enterCancelled,w=r.beforeAppear,k=r.appear,C=r.afterAppear,T=r.appearCancelled,S=r.duration,x=Zt,E=Zt.$vnode;E&&E.parent;)x=E.context,E=E.parent;var I=!x._isMounted||!e.isRootInsert;if(!I||k||""===k){var A=I&&p?p:u,P=I&&m?m:h,O=I&&f?f:d,L=I&&w||g,D=I&&l(k)?k:y,R=I&&C||v,M=I&&T||b,N=_(c(S)?S.enter:S),U=!1!==o&&!X,$=ji(D),B=n._enterCb=j(function(){U&&(Ii(n,O),Ii(n,P)),B.cancelled?(U&&Ii(n,A),M&&M(n)):R&&R(n),n._enterCb=null});e.data.show||Ve(e,"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,B)}),L&&L(n),U&&(Ei(n,A),Ei(n,P),xi(function(){Ii(n,A),B.cancelled||(Ei(n,O),$||(Ni(N)?setTimeout(B,N):Ai(n,a,B)))})),e.data.show&&(t&&t(),D&&D(n,B)),U||$||B()}}}function Mi(e,t){var n=e.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=_i(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!s(n._leaveCb)){var o=r.css,a=r.type,l=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,p=r.leave,f=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,y=r.duration,v=!1!==o&&!X,b=ji(p),w=_(c(y)?y.leave:y),k=n._leaveCb=j(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),v&&(Ii(n,u),Ii(n,d)),k.cancelled?(v&&Ii(n,l),m&&m(n)):(t(),f&&f(n)),n._leaveCb=null});g?g(C):C()}function C(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),v&&(Ei(n,l),Ei(n,d),xi(function(){Ii(n,l),k.cancelled||(Ei(n,u),b||(Ni(w)?setTimeout(k,w):Ai(n,a,k)))})),p&&p(n,k),v||b||k())}}function Ni(e){return"number"==typeof e&&!isNaN(e)}function ji(e){if(i(e))return!1;var t=e.fns;return s(t)?ji(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ui(e,t){!0!==t.data.show&&Ri(t)}var $i=function(e){var t,n,l={},c=e.modules,u=e.nodeOps;for(t=0;t<Er.length;++t)for(l[Er[t]]=[],n=0;n<c.length;++n)s(c[n][Er[t]])&&l[Er[t]].push(c[n][Er[t]]);function d(e){var t=u.parentNode(e);s(t)&&u.removeChild(t,e)}function h(e,t,n,r,i,a,c){if(s(e.elm)&&s(a)&&(e=a[c]=pe(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(s(i)){var a=s(e.componentInstance)&&i.keepAlive;if(s(i=i.hook)&&s(i=i.init)&&i(e,!1),s(e.componentInstance))return p(e,t),f(n,e.elm,r),o(a)&&function(e,t,n,r){var i,o=e;for(;o.componentInstance;)if(s(i=(o=o.componentInstance._vnode).data)&&s(i=i.transition)){for(i=0;i<l.activate.length;++i)l.activate[i](xr,o);t.push(o);break}f(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var d=e.data,h=e.children,_=e.tag;s(_)?(e.elm=e.ns?u.createElementNS(e.ns,_):u.createElement(_,e),v(e),m(e,h,t),s(d)&&y(e,t),f(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),f(n,e.elm,r)):(e.elm=u.createTextNode(e.text),f(n,e.elm,r))}}function p(e,t){s(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(y(e,t),v(e)):(Tr(e),t.push(e))}function f(e,t,n){s(e)&&(s(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function m(e,t,n){if(r(t))for(var i=0;i<t.length;++i)h(t[i],n,e.elm,null,!0,t,i);else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function _(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return s(e.tag)}function y(e,n){for(var r=0;r<l.create.length;++r)l.create[r](xr,e);s(t=e.data.hook)&&(s(t.create)&&t.create(xr,e),s(t.insert)&&n.push(e))}function v(e){var t;if(s(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)s(t=n.context)&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;s(t=Zt)&&t!==e.context&&t!==e.fnContext&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function b(e,t,n,r,i,s){for(;r<=i;++r)h(n[r],s,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(s(r))for(s(t=r.hook)&&s(t=t.destroy)&&t(e),t=0;t<l.destroy.length;++t)l.destroy[t](e);if(s(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];s(r)&&(s(r.tag)?(C(r),w(r)):d(r.elm))}}function C(e,t){if(s(t)||s(e.data)){var n,r=l.remove.length+1;for(s(t)?t.listeners+=r:t=function(e,t){function n(){0===--n.listeners&&d(e)}return n.listeners=t,n}(e.elm,r),s(n=e.componentInstance)&&s(n=n._vnode)&&s(n.data)&&C(n,t),n=0;n<l.remove.length;++n)l.remove[n](e,t);s(n=e.data.hook)&&s(n=n.remove)?n(e,t):t()}else d(e.elm)}function T(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(s(o)&&Ir(e,o))return i}}function S(e,t,n,r,a,c){if(e!==t){s(t.elm)&&s(r)&&(t=r[a]=pe(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))s(t.asyncFactory.resolved)?I(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var p,f=t.data;s(f)&&s(p=f.hook)&&s(p=p.prepatch)&&p(e,t);var m=e.children,g=t.children;if(s(f)&&_(t)){for(p=0;p<l.update.length;++p)l.update[p](e,t);s(p=f.hook)&&s(p=p.update)&&p(e,t)}i(t.text)?s(m)&&s(g)?m!==g&&function(e,t,n,r,o){for(var a,l,c,d=0,p=0,f=t.length-1,m=t[0],_=t[f],g=n.length-1,y=n[0],v=n[g],w=!o;d<=f&&p<=g;)i(m)?m=t[++d]:i(_)?_=t[--f]:Ir(m,y)?(S(m,y,r,n,p),m=t[++d],y=n[++p]):Ir(_,v)?(S(_,v,r,n,g),_=t[--f],v=n[--g]):Ir(m,v)?(S(m,v,r,n,g),w&&u.insertBefore(e,m.elm,u.nextSibling(_.elm)),m=t[++d],v=n[--g]):Ir(_,y)?(S(_,y,r,n,p),w&&u.insertBefore(e,_.elm,m.elm),_=t[--f],y=n[++p]):(i(a)&&(a=Ar(t,d,f)),i(l=s(y.key)?a[y.key]:T(y,t,d,f))?h(y,r,e,m.elm,!1,n,p):Ir(c=t[l],y)?(S(c,y,r,n,p),t[l]=void 0,w&&u.insertBefore(e,c.elm,m.elm)):h(y,r,e,m.elm,!1,n,p),y=n[++p]);d>f?b(e,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&k(t,d,f)}(d,m,g,n,c):s(g)?(s(e.text)&&u.setTextContent(d,""),b(d,null,g,0,g.length-1,n)):s(m)?k(m,0,m.length-1):s(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),s(f)&&s(p=f.hook)&&s(p=p.postpatch)&&p(e,t)}}}function x(e,t,n){if(o(n)&&s(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var E=g("attrs,class,staticClass,staticStyle,key");function I(e,t,n,r){var i,a=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&s(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(s(l)&&(s(i=l.hook)&&s(i=i.init)&&i(t,!0),s(i=t.componentInstance)))return p(t,n),!0;if(s(a)){if(s(c))if(e.hasChildNodes())if(s(i=l)&&s(i=i.domProps)&&s(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!I(d,c[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else m(t,c,n);if(s(l)){var f=!1;for(var _ in l)if(!E(_)){f=!0,y(t,n);break}!f&&l.class&&qt(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r){if(!i(t)){var a,c=!1,d=[];if(i(e))c=!0,h(t,d);else{var p=s(e.nodeType);if(!p&&Ir(e,t))S(e,t,d,null,null,r);else{if(p){if(1===e.nodeType&&e.hasAttribute(U)&&(e.removeAttribute(U),n=!0),o(n)&&I(e,t,d))return x(t,d,!0),e;a=e,e=new ue(u.tagName(a).toLowerCase(),{},[],void 0,a)}var f=e.elm,m=u.parentNode(f);if(h(t,d,f._leaveCb?null:m,u.nextSibling(f)),s(t.parent))for(var g=t.parent,y=_(t);g;){for(var v=0;v<l.destroy.length;++v)l.destroy[v](g);if(g.elm=t.elm,y){for(var b=0;b<l.create.length;++b)l.create[b](xr,g);var C=g.data.hook.insert;if(C.merged)for(var T=C.fns.slice(1),E=0;E<T.length;E++)T[E]()}else Tr(g);g=g.parent}s(m)?k([e],0,0):s(e.tag)&&w(e)}}return x(t,d,c),t.elm}s(e)&&w(e)}}({nodeOps:kr,modules:[Br,Vr,Jr,ti,hi,G?{create:Ui,activate:Ui,remove:function(e,t){!0!==e.data.show?Mi(e,t):t()}}:{}].concat(Nr)});X&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Ki(e,"input")});var Bi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ve(n,"postpatch",function(){Bi.componentUpdated(e,t,n)}):Fi(e,t,n.context),e._vOptions=[].map.call(e.options,Hi)):("textarea"===n.tag||wr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",zi),e.addEventListener("compositionend",Gi),e.addEventListener("change",Gi),X&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Fi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Hi);if(i.some(function(e,t){return!M(e,r[t])}))(e.multiple?t.value.some(function(e){return Vi(e,i)}):t.value!==t.oldValue&&Vi(t.value,i))&&Ki(e,"change")}}};function Fi(e,t,n){qi(e,t),(W||Y)&&setTimeout(function(){qi(e,t)},0)}function qi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var s,o,a=0,l=e.options.length;a<l;a++)if(o=e.options[a],i)s=N(r,Hi(o))>-1,o.selected!==s&&(o.selected=s);else if(M(Hi(o),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every(function(t){return!M(t,e)})}function Hi(e){return"_value"in e?e._value:e.value}function zi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wi(e){return!e.componentInstance||e.data&&e.data.transition?e:Wi(e.componentInstance._vnode)}var Xi={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Wi(n)).data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ri(n,function(){e.style.display=s})):e.style.display=r?s:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Wi(n)).data&&n.data.transition?(n.data.show=!0,r?Ri(n,function(){e.style.display=e.__vOriginalDisplay}):Mi(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterA
7ctiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(wt(t.children)):e}function Ji(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[T(r)]=i[r];return t}function Qi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var es=function(e){return e.tag||dt(e)},ts=function(e){return"show"===e.name},ns={name:"transition",props:Yi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(es)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var s=Zi(i);if(!s)return i;if(this._leaving)return Qi(e,i);var o="__transition-".concat(this._uid,"-");s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Ji(this),c=this._vnode,u=Zi(c);if(s.data.directives&&s.data.directives.some(ts)&&(s.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,u)&&!dt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===r)return this._leaving=!0,Ve(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Qi(e,i);if("in-out"===r){if(dt(s))return c;var h,p=function(){h()};Ve(l,"afterEnter",p),Ve(l,"enterCancelled",p),Ve(d,"delayLeave",function(e){h=e})}}return i}}},rs=P({tag:String,moveClass:String},Yi);delete rs.mode;var is={props:rs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Jt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],s=this.children=[],o=Ji(this),a=0;a<i.length;a++){(u=i[a]).tag&&null!=u.key&&0!==String(u.key).indexOf("__vlist")&&(s.push(u),n[u.key]=u,(u.data||(u.data={})).transition=o)}if(r){var l=[],c=[];for(a=0;a<r.length;a++){var u;(u=r[a]).data.transition=o,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?l.push(u):c.push(u)}this.kept=e(t,null,l),this.removed=c}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ss),e.forEach(os),e.forEach(as),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Ei(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ki,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ki,e),n._moveCb=null,Ii(n,t))})}}))},methods:{hasMove:function(e,t){if(!yi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){mi(n,e)}),fi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Oi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ss(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function os(e){e.data.newPos=e.elm.getBoundingClientRect()}function as(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),s.transitionDuration="0s"}}var ls={Transition:ns,TransitionGroup:is};function cs(e,t){return e===t||e!=e&&t!=t}function us(e,t){for(var n=e.length;n--;)if(cs(e[n][0],t))return n;return-1}Xn.config.mustUseProp=function(e,t,n){return"value"===n&&ir(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Xn.config.isReservedTag=vr,Xn.config.isReservedAttr=rr,Xn.config.getTagNamespace=function(e){return yr(e)?"svg":"math"===e?"math":void 0},Xn.config.isUnknownElement=function(e){if(!G)return!0;if(vr(e))return!1;if(e=e.toLowerCase(),null!=br[e])return br[e];var t=document.createElement(e);return e.indexOf("-")>-1?br[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:br[e]=/HTMLUnknownElement/.test(t.toString())},P(Xn.options.directives,Xi),P(Xn.options.components,ls),Xn.prototype.__patch__=G?$i:L,Xn.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=de),nn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Gt(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&nn(e,"beforeUpdate")}},!0),n=!1;var i=e._preWatchers;if(i)for(var s=0;s<i.length;s++)i[s].run();return null==e.$vnode&&(e._isMounted=!0,nn(e,"mounted")),e}(this,e=e&&G?function(e){if("string"==typeof e){return document.querySelector(e)||document.createElement("div")}return e}(e):void 0,t)},G&&setTimeout(function(){F.devtools&&ie&&ie.emit("init",Xn)},0);var ds=Array.prototype.splice;function hs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hs.prototype.clear=function(){this.__data__=[],this.size=0},hs.prototype.delete=function(e){var t=this.__data__,n=us(t,e);return!(n<0)&&(n==t.length-1?t.pop():ds.call(t,n,1),--this.size,!0)},hs.prototype.get=function(e){var t=this.__data__,n=us(t,e);return n<0?void 0:t[n][1]},hs.prototype.has=function(e){return us(this.__data__,e)>-1},hs.prototype.set=function(e,t){var n=this.__data__,r=us(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ps="object"==typeof e&&e&&e.Object===Object&&e,fs="object"==typeof self&&self&&self.Object===Object&&self,ms=ps||fs||Function("return this")(),_s=ms.Symbol,gs=Object.prototype,ys=gs.hasOwnProperty,vs=gs.toString,bs=_s?_s.toStringTag:void 0;var ws=Object.prototype.toString;var ks=_s?_s.toStringTag:void 0;
vendor: 8,448 bytes, line 7
7function Cs(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ks&&ks in Object(e)?function(e){var t=ys.call(e,bs),n=e[bs];try{e[bs]=void 0;var r=!0}catch(CL){}var i=vs.call(e);return r&&(t?e[bs]=n:delete e[bs]),i}(e):function(e){return ws.call(e)}(e)}function Ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ss(e){if(!Ts(e))return!1;var t=Cs(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var xs,Es=ms["__core-js_shared__"],Is=(xs=/[^.]+$/.exec(Es&&Es.keys&&Es.keys.IE_PROTO||""))?"Symbol(src)_1."+xs:"";var As=Function.prototype.toString;function Ps(e){if(null!=e){try{return As.call(e)}catch(CL){}try{return e+""}catch(CL){}}return""}var Os=/^\[object .+?Constructor\]$/,Ls=Function.prototype,Ds=Object.prototype,Rs=Ls.toString,Ms=Ds.hasOwnProperty,Ns=RegExp("^"+Rs.call(Ms).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function js(e){return!(!Ts(e)||(t=e,Is&&Is in t))&&(Ss(e)?Ns:Os).test(Ps(e));var t}function Us(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return js(n)?n:void 0}var $s=Us(ms,"Map"),Bs=Us(Object,"create");var Fs=Object.prototype.hasOwnProperty;var qs=Object.prototype.hasOwnProperty;function Vs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hs(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function zs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vs.prototype.clear=function(){this.__data__=Bs?Bs(null):{},this.size=0},Vs.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vs.prototype.get=function(e){var t=this.__data__;if(Bs){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fs.call(t,e)?t[e]:void 0},Vs.prototype.has=function(e){var t=this.__data__;return Bs?void 0!==t[e]:qs.call(t,e)},Vs.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bs&&void 0===t?"__lodash_hash_undefined__":t,this},zs.prototype.clear=function(){this.size=0,this.__data__={hash:new Vs,map:new($s||hs),string:new Vs}},zs.prototype.delete=function(e){var t=Hs(this,e).delete(e);return this.size-=t?1:0,t},zs.prototype.get=function(e){return Hs(this,e).get(e)},zs.prototype.has=function(e){return Hs(this,e).has(e)},zs.prototype.set=function(e,t){var n=Hs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Gs(e){var t=this.__data__=new hs(e);this.size=t.size}Gs.prototype.clear=function(){this.__data__=new hs,this.size=0},Gs.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gs.prototype.get=function(e){return this.__data__.get(e)},Gs.prototype.has=function(e){return this.__data__.has(e)},Gs.prototype.set=function(e,t){var n=this.__data__;if(n instanceof hs){var r=n.__data__;if(!$s||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zs(r)}return n.set(e,t),this.size=n.size,this};var Ks=function(){try{var e=Us(Object,"defineProperty");return e({},"",{}),e}catch(CL){}}();var Ws=Object.prototype.hasOwnProperty;function Xs(e,t,n){var r=e[t];Ws.call(e,t)&&cs(r,n)&&(void 0!==n||t in e)||function(e,t,n){"__proto__"==t&&Ks?Ks(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}(e,t,n)}function Ys(e){return null!=e&&"object"==typeof e}function Zs(e){return Ys(e)&&"[object Arguments]"==Cs(e)}var Js=Object.prototype,Qs=Js.hasOwnProperty,eo=Js.propertyIsEnumerable,to=Zs(function(){return arguments}())?Zs:function(e){return Ys(e)&&Qs.call(e,"callee")&&!eo.call(e,"callee")},no=Array.isArray;var ro="object"==typeof exports&&exports&&!exports.nodeType&&exports,io=ro&&"object"==typeof module&&module&&!module.nodeType&&module,so=io&&io.exports===ro?ms.Buffer:void 0,oo=(so?so.isBuffer:void 0)||function(){return!1},ao=/^(?:0|[1-9]\d*)$/;function lo(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ao.test(e))&&e>-1&&e%1==0&&e<t}function co(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var uo={};function ho(e){return function(t){return e(t)}}uo["[object Float32Array]"]=uo["[object Float64Array]"]=uo["[object Int8Array]"]=uo["[object Int16Array]"]=uo["[object Int32Array]"]=uo["[object Uint8Array]"]=uo["[object Uint8ClampedArray]"]=uo["[object Uint16Array]"]=uo["[object Uint32Array]"]=!0,uo["[object Arguments]"]=uo["[object Array]"]=uo["[object ArrayBuffer]"]=uo["[object Boolean]"]=uo["[object DataView]"]=uo["[object Date]"]=uo["[object Error]"]=uo["[object Function]"]=uo["[object Map]"]=uo["[object Number]"]=uo["[object Object]"]=uo["[object RegExp]"]=uo["[object Set]"]=uo["[object String]"]=uo["[object WeakMap]"]=!1;var po="object"==typeof exports&&exports&&!exports.nodeType&&exports,fo=po&&"object"==typeof module&&module&&!module.nodeType&&module,mo=fo&&fo.exports===po&&ps.process,_o=function(){try{var e=fo&&fo.require&&fo.require("util").types;return e||mo&&mo.binding&&mo.binding("util")}catch(CL){}}(),go=_o&&_o.isTypedArray,yo=go?ho(go):function(e){return Ys(e)&&co(e.length)&&!!uo[Cs(e)]},vo=Object.prototype.hasOwnProperty;function bo(e,t){var n=no(e),r=!n&&to(e),i=!n&&!r&&oo(e),s=!n&&!r&&!i&&yo(e),o=n||r||i||s,a=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!vo.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lo(c,l))||a.push(c);return a}var wo=Object.prototype;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wo)}function Co(e,t){return function(n){return e(t(n))}}var To=Co(Object.keys,Object),So=Object.prototype.hasOwnProperty;function xo(e){return null!=e&&co(e.length)&&!Ss(e)}function Eo(e){return xo(e)?bo(e):function(e){if(!ko(e))return To(e);var t=[];for(var n in Object(e))So.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Io="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ao=Io&&"object"==typeof module&&module&&!module.nodeType&&module,Po=Ao&&Ao.exports===Io?ms.Buffer:void 0;Po&&Po.allocUnsafe;var Oo=Object.prototype.propertyIsEnumerable,Lo=Object.getOwnPropertySymbols,Do=Lo?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}(Lo(e),function(t){return Oo.call(e,t)}))}:function(){return[]};var Ro=Co(Object.getPrototypeOf,Object);function Mo(e){return function(e,t,n){var r=t(e);return no(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Eo,Do)}var No=Us(ms,"DataView"),jo=Us(ms,"Promise"),Uo=Us(ms,"Set"),$o=Us(ms,"WeakMap"),Bo="[object Map]",Fo="[object Promise]",qo="[object Set]",Vo="[object WeakMap]",Ho="[object DataView]",zo=Ps(No),Go=Ps($s),Ko=Ps(jo),Wo=Ps(Uo),Xo=Ps($o),Yo=Cs;(No&&Yo(new No(new ArrayBuffer(1)))!=Ho||$s&&Yo(new $s)!=Bo||jo&&Yo(jo.resolve())!=Fo||Uo&&Yo(new Uo)!=qo||$o&&Yo(new $o)!=Vo)&&(Yo=function(e){var t=Cs(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ps(n):"";if(r)switch(r){case zo:return Ho;case Go:return Bo;case Ko:return Fo;case Wo:return qo;case Xo:return Vo}return t});var Zo=Object.prototype.hasOwnProperty;var Jo=ms.Uint8Array;function Qo(e){var t=new e.constructor(e.byteLength);return new Jo(t).set(new Jo(e)),t}var ea=/\w*$/;var ta=_s?_s.prototype:void 0,na=ta?ta.valueOf:void 0;function ra(e,t,n){var r,i,s,o,a,l=e.constructor;switch(t){case"[object ArrayBuffer]":return Qo(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a=Qo((o=e).buffer),new o.constructor(a,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e){var t=Qo(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}(e);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(s=new(i=e).constructor(i.source,ea.exec(i))).lastIndex=i.lastIndex,s;case"[object Symbol]":return r=e,na?Object(na.call(r)):{}}
7}var ia=Object.create,sa=function(){function e(){}return function(t){if(!Ts(t))return{};if(ia)return ia(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var oa=_o&&_o.isMap,aa=oa?ho(oa):function(e){return Ys(e)&&"[object Map]"==Yo(e)};var la=_o&&_o.isSet,ca=la?ho(la):function(e){return Ys(e)&&"[object Set]"==Yo(e)},ua="[object Arguments]",da="[object Function]",ha="[object Object]",pa={};function fa(e,t,n,r,i,s){var o;if(void 0!==o)return o;if(!Ts(e))return e;var a=no(e);if(a)o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Zo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e);else{var l=Yo(e),c=l==da||"[object GeneratorFunction]"==l;if(oo(e))return e.slice();if(l==ha||l==ua||c&&!i)o=c?{}:function(e){return"function"!=typeof e.constructor||ko(e)?{}:sa(Ro(e))}(e);else{if(!pa[l])return i?e:{};o=ra(e,l)}}s||(s=new Gs);var u=s.get(e);if(u)return u;s.set(e,o),ca(e)?e.forEach(function(r){o.add(fa(r,t,n,r,e,s))}):aa(e)&&e.forEach(function(r,i){o.set(i,fa(r,t,n,i,e,s))});var d=a?void 0:Mo(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(d||e,function(r,i){d&&(r=e[i=r]),Xs(o,i,fa(r,t,n,i,e,s))}),o}pa[ua]=pa["[object Array]"]=pa["[object ArrayBuffer]"]=pa["[object DataView]"]=pa["[object Boolean]"]=pa["[object Date]"]=pa["[object Float32Array]"]=pa["[object Float64Array]"]=pa["[object Int8Array]"]=pa["[object Int16Array]"]=pa["[object Int32Array]"]=pa["[object Map]"]=pa["[object Number]"]=pa[ha]=pa["[object RegExp]"]=pa["[object Set]"]=pa["[object String]"]=pa["[object Symbol]"]=pa["[object Uint8Array]"]=pa["[object Uint8ClampedArray]"]=pa["[object Uint16Array]"]=pa["[object Uint32Array]"]=!0,pa["[object Error]"]=pa[da]=pa["[object WeakMap]"]=!1;var ma=(e=>(e.Required="required",e.Performance="performance",e.Analytics="analytics",e))(ma||{}),_a=(e=>(e.DEV="dev",e.STAGE="stage",e.PREPROD="preprod",e.PROD="prod",e))(_a||{});const ga=function(){const e="undefined"!=typeof document&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),ya={},va=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),o=s?.nonce||s?.getAttribute("nonce");r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in ya)return;ya[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const s=document.createElement("link");return s.rel=t?"stylesheet":ga,t||(s.as="script"),s.crossOrigin="",s.href=e,o&&s.setAttribute("nonce",o),document.head.appendChild(s),t?new Promise((t,n)=>{s.addEventListener("load",t),s.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};String.prototype.localized=function(e,t){const n=window,r=null!=t?"$tc":"$t",i=n.$nuxt?.[r],s=[this];return null!=t&&s.push(t),s.push(e),null==i?this:i.bind(n.$nuxt).call(this,...s)};class ba{i18nInstance;static instance=new ba;constructor(e){null!=e&&this.initialize(e)}isInitialized(){return null!=this.i18nInstance}initialize(e){this.i18nInstance=e.i18n,document.documentElement.lang=e.i18n.locale,e.env.ENV_NAME!==_a.PROD&&va(()=>import("./StringExtensionDebug-DEtjr0Nm.js"),[],import.meta.url)}availableLocales(){return this.i18nInstance?.locales??[]}currentLocale(){return this.availableLocales().find(e=>e.code===this.currentLocaleCode())}currentLocaleCode(){return this.i18nInstance?.locale??""}setLocale(e){this.isInitialized()?(this.i18nInstance?.setLocale(e.code),document.documentElement.lang=e.code):e.code}}class wa{static parse(e){if(null==e)return!1;switch(e.toLowerCase()){case"false":case"undefined":case"null":case"nan":case"0":case"":return!1;default:return!0}}}var ka=(e=>(e.CookiePreferences="cookie-preferences",e.Debug="kanopy:debug",e.InfoBannersDismissed="info-banners-dismissed",e.TextTrackOptions="text-track-options",e.TicketIntroModalDismissed="ticket-intro-modal-dismissed",e.UIState="kanopy:ui-state",e.UserCCLang_deprecated="user-cc-lang",e.HideTicketFilterNewLabel_deprecated="hide-ticket-filter-new-label",e))(ka||{});class Ca{static instance=new Ca;constructor(e){null!=e&&(this.initialize(e),this._cleanUpOldValues())}isInitialized(){return!0}initialize(e){}get(e){const t=window.localStorage.getItem(e);if(null==t)return;let n="string";switch(e){case"user-cc-lang":n="string";break;case"cookie-preferences":case"kanopy:debug":case"text-track-options":case"info-banners-dismissed":case"kanopy:ui-state":n="object";break;case"ticket-intro-modal-dismissed":case"hide-ticket-filter-new-label":n="boolean"}switch(n){case"string":return t;case"boolean":return wa.parse(t);case"object":try{return JSON.parse(t)}catch{return}}}saveObjectWithProperties(e,t){const n={...this.get(e),...t};this.save(e,n)}save(e,t){let n;if("object"==typeof t)try{n=JSON.stringify(t)}catch(r){return void console.error("Failed to stringify when saving to local storage",r)}else n=t.toString();window.localStorage.setItem(e,n)}delete(e){window.localStorage.removeItem(e)}reset(){window.localStorage.clear()}_cleanUpOldValues(){this.delete("hide-ticket-filter-new-label")}}var Ta=(e=>(e[e.Safari=0]="Safari",e[e.Firefox=1]="Firefox",e[e.Chrome=2]="Chrome",e[e.Opera=3]="Opera",e[e.Edge=4]="Edge",e[e.SamsungBrowser=5]="SamsungBrowser",e[e.Other=6]="Other",e))(Ta||{}),Sa=(e=>(e[e.Popover=0]="Popover",e))(Sa||{});class xa{static getDeviceType(){const e=navigator.userAgent;if(/iPad/i.test(e))return 1;if(/iPod/i.test(e))return 2;if(/iPhone/i.test(e))return 0;if(/Chromebook|CrOS/i.test(e))return 7;if(/Android/i.test(e))return/Mobile/i.test(e)?3:4;
7if(/Macintosh/i.test(e)){return 5===navigator.maxTouchPoints?1:5}return/Windows/i.test(e)?6:8}static getBrowser(){const e=navigator.userAgent;return/OPR|OPT\//i.test(e)?3:/EDG|EdgiOS\//i.test(e)?4:/SamsungBrowser\//i.test(e)?5:/Firefox|FxiOS/i.test(e)?1:/Chrome|CriOS/i.test(e)?2:/Safari/i.test(e)?0:6}static getSafariVersion(){if(0!==xa.getBrowser())return;const e=navigator.userAgent.match(/Version\/([0-9.]+)/);return null!=e?e[1]:void 0}static isIOSDevice(){switch(xa.getDeviceType()){case 0:case 1:case 2:return!0;default:return!1}}static isAndroidDevice(){const e=xa.getDeviceType();return 3===e||4===e}static isMobileDevice(){switch(xa.getDeviceType()){case 0:case 2:case 3:return!0;default:return!1}}static isTabletDevice(){const e=xa.getDeviceType();return 1===e||4===e}static isMobileOrTabletDevice(){return xa.isMobileDevice()||xa.isTabletDevice()}static isMacOSDevice(){return 5===xa.getDeviceType()}static isWindowsDevice(){return 6===xa.getDeviceType()}static isChromebookDevice(){return 7===xa.getDeviceType()}static isSafari(){return 0===xa.getBrowser()}static isFirefox(){return 1===xa.getBrowser()}static isChrome(){return 2===xa.getBrowser()}static isOpera(){return 3===xa.getBrowser()}static isEdge(){return 4===xa.getBrowser()}static isSamsungBrowser(){return 5===xa.getBrowser()}static applicationAppStoreLink(e){return`https://apps.apple.com/app/apple-store/id${e.env.APP_STORE_APPID??""}`}static applicationPlayStoreLink(e){return`https://play.google.com/store/apps/details?id=${e.env.PLAYSTORE_APPID??""}`}static currentDeviceApplicationStoreLink(e){return xa.isIOSDevice()?xa.applicationAppStoreLink(e):xa.isAndroidDevice()?xa.applicationPlayStoreLink(e):void 0}static isPlatformApiSupported(e){if(0===e){const e=Ca.instance.get(ka.Debug);return!e?.disable_native_popover&&void 0!==document.documentElement.popover}return!1}static isEventSupported(e){return`on${e.toLowerCase()}`in window}}const Ea="exitkids";class Ia{static navigate(e,t,n=!0,r=!1){const i=Ia.pathUrl(e.currentRoute,t,n);i!==e.currentRoute.fullPath&&(r?e.replace(i):e.push(i))}static redirect(e,t,n=!0){const r=Ia.pathUrl(e.route,t,n);r!==e.route.fullPath&&e.redirect(r,e.route.query),xa.isChrome()&&Ia._reset_title()}static pathUrl(e,t,n=!0){let r="";if(r=`${r}/${ba.instance.currentLocaleCode()}`,n){const t=Aa.get_vp_subpath(e);null!=t&&(r=`${r}/${t}`)}return r=`${r}${t}`,r}static unlocalizedPath(e,t=!0){const n=ba.instance.currentLocaleCode(),r=t?e.fullPath:e.path,i=new RegExp(`^/${n}((/?$)|(/.+)|(\\\\?.+))`);if(null!=(r.match(i)??[])[0]){const e=new RegExp(`^/${n}`,"g");let t=r.replace(e,"");return""===t&&(t="/"),t}return r}static queryParam(e,t){const n=e.query[t];if(null==n)return;if("string"==typeof n)return n;if(0===n.length)return;return n[n.length-1]??void 0}static isEmbeddedRoute(e){return e.fullPath.includes("/embed/")}static detailsPagePathForEmbedRoute(e,t,n){if(n){const n=t.getters["product/product_id"]??e.params.id,r=t.state.product.selected_item_id??e.params.episodeid;let i=`/video/${n}`;return null!=r&&(i=`${i}/${r}`),i}const r=t.getters["mylists/custom_playlist_current_playlist_id"]??e.params.customplaylistid,i=t.getters["mylists/custom_playlist_current_clip_id"]??e.params.clipid;if(null==r)return"/mylists/customplaylists";let s=`/mylists/customplaylists/${r}`;return null!=i&&(s=`${s}/${i}`),s}static _reset_title(){const e=document.title;document.title="",document.title=e}}class Aa{static KANOPY_DOMAIN="kanopy.com";static KANOPYSTREAMING_DOMAIN="kanopystreaming.com";static DEFAULT_VP="www";static is_on_default_subpath(e){return null==Aa.get_vp_subpath(e)}static get_vp_subpath(e){return e.matched[0]?.path.includes(":subpath")??!1?e.params.subpath:void 0}static path_without_vp_subpath(e){const t=Ia.unlocalizedPath(e),n=Aa.get_vp_subpath(e),r=`/${n}`;if(null!=n&&t.startsWith(r)){const e=t.substring(r.length);return""===e?"/":e}return t}static path_without_vp_subpath_and_query_params(e){const t=Aa.path_without_vp_subpath(e);let n=t.indexOf("?");-1===n&&(n=t.indexOf("#"));return n>-1?t.substring(0,n):t}static match_absolute_kanopy_url(e){const t=location.hostname.replace(/^www\./,""),n=new RegExp(`^(https?:\\/\\/)?(www\\.)?(${t})(:[0-9]{1,5})?(\\/.*)?$`),r=e.match(n);if(null!=r)return r.shift(),r}static is_absolute_kanopy_url(e){const t=Aa.match_absolute_kanopy_url(e);return null!=t&&(t[3]??":")===`:${location.port}`}static from_absolute_url_to_relative_path(e){const t=Aa.match_absolute_kanopy_url(e);
7if(null!=t)return t[t.length-1]??"/"}static from_path_to_absolute_url(e,t){const n=ba.instance.currentLocaleCode(),r=Aa.get_vp_subpath(t),i=null==r?"":`/${r}`;return`${window.location.origin}/${n}${i}${e}`}static kweb_redirection_url(e,t,n){return`${window.location.protocol}//${t}${`${e===_a.PROD||e===_a.PREPROD?"":`.${e}`}.${Aa.KANOPY_DOMAIN}`}${n}`}static is_on_proxy_domain(){return!window.location.hostname.endsWith(Aa.KANOPY_DOMAIN)&&!window.location.hostname.endsWith("localhost")}static is_https(){return"https:"===window.location.protocol}static is_localhost(){return"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname}static get_env_domain(e){return`.${e.env.ENV_NAME}.${Aa.KANOPY_DOMAIN}`}static are_channels_enabled_for_env(e){return[_a.STAGE].includes(e.env.ENV_NAME)}}const Pa=3600;class Oa{static monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];static toMMDDYYYY(e){const t=e.getDate().toString().padStart(2,"0");return`${(e.getMonth()+1).toString().padStart(2,"0")}/${t}/${e.getFullYear()}`}static minutesFromNow(e){return new Date((new Date).setMinutes((new Date).getMinutes()+e))}static secondsToExpirationTimeFormat(e){return e>=259200?`${Math.floor((e+Pa)/86400)}d`:e>=Pa?`${Math.ceil(e/Pa)}h`:e>0?`${Math.ceil(e/60)}m`:void 0}}const La={domain:`.${Aa.KANOPY_DOMAIN}`,path:"/",secure:!0,sameSite:"none"},Da=240,Ra=new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+7),Ma=new Date((new Date).setMonth((new Date).getMonth()+1)),Na=new Date((new Date).setFullYear((new Date).getFullYear()+1)),ja=new Date((new Date).setFullYear((new Date).getFullYear()+1)),Ua={token_set:{name:"token_set",value:"",opts:{...La,expires:Oa.minutesFromNow(Da)},isJSON:!1,scope:ma.Required},visitor_id:{name:"visitor_id",value:"",opts:{...La,expires:Ma},isJSON:!1,scope:ma.Required},webshop:{name:"webshop",value:"",opts:{...La,expires:Ma},isJSON:!0,scope:ma.Required},kapi_token:{name:"kapi_token",value:"",opts:{...La,expires:Ma},isJSON:!1,scope:ma.Required},uid:{name:"uid",value:"",opts:{...La,expires:Ma},isJSON:!1,scope:ma.Required},visitor_identity:{name:"visitor_identity",value:"",opts:{...La,expires:Oa.minutesFromNow(240)},isJSON:!1,scope:ma.Required},tv_authcode:{name:"tv_authcode",value:"",opts:{...La,expires:Oa.minutesFromNow(30)},isJSON:!1,scope:ma.Required},kids:{name:"kids",value:"",opts:{...La,expires:Ma},isJSON:!1,scope:ma.Required},has_entered_kids:{name:"has_entered_kids",value:"",opts:{...La,expires:Na},isJSON:!1,scope:ma.Required},dont_show_kids_guide:{name:"dont_show_kids_guide",value:"",opts:{...La,expires:Na},isJSON:!1,scope:ma.Required},has_closed_mobile_banner:{name:"has_closed_mobile_banner",value:"",opts:{...La,expires:Ra},isJSON:!1,scope:ma.Required},channel:{name:"channel",value:void 0,opts:{...La,expires:Na},isJSON:!1,scope:ma.Required},google_analytics_opt_out:{name:"google_analytics_opt_out",value:"",opts:{...La,expires:ja},isJSON:!1,scope:ma.Required}};var $a=(e=>(e.OverDriveTraffic="overdrive_traffic",e))($a||{});class Ba{cookiesPlugin;_consent;get consent(){return this._consent}set consent(e){this._consent=e}static instance=new Ba;static COOKIE_CONSENT_CHANGE_EVENT="cookie-consent-change";DEFAULT_CONSENT={required:!0,performance:!1,analytics:!1};constructor(e){this._consent=this.DEFAULT_CONSENT,null!=e&&this.initialize(e)}isInitialized(){return null!=this.cookiesPlugin}initialize(e){if(window.navigator.globalPrivacyControl)this.consent=this.DEFAULT_CONSENT,this.disallowAllScopes(!0);else{const e=Ca.instance.get(ka.CookiePreferences);this.consent=e??this.DEFAULT_CONSENT}const t=e.env.ENV_NAME;if(t!==_a.PROD){const n={domain:Aa.is_localhost()?window.location.hostname:Aa.get_env_domain(e),secure:t!==_a.DEV||"https:"===window.location.protocol},r=wa.parse(e.env.PREFIX_COOKIES);Object.values(Ua).forEach(e=>{e.name=r?`${t}-${e.name}`:e.name,e.opts={...e.opts,...n,sameSite:t===_a.DEV?Aa.is_https()?"none":"lax":e.opts.sameSite}})}this.cookiesPlugin=e.app.$cookies}get(e){if(this.isInitialized()){let t;if("string"==typeof e){const n=e;if(t=Object.values(Ua).find(e=>e.name===n),null==t)return void console.error(`${n} is not a registered KUI cookie name`)}else t=e;if(this._consent[t.scope])return this.cookiesPlugin?.get(t.name,{parseJSON:t.isJSON});t.name,t.scope}else;}set(e){this.isInitialized()&&(this._consent[e.scope]?this.cookiesPlugin?.set(e.name,e.value,e.opts):(e.name,e.scope))}delete(e){if(this.isInitialized()){const t=fa(e.opts,5);this.cookiesPlugin?.remove(e.name,t)}else;}updateConsent(e,t){this.consent=e,this.save_consent_if_user_preference(t)}allowAllScopes(e){this.consent=Object.fromEntries(Object.keys(this.DEFAULT_CONSENT).map(e=>[e,!0])),this.save_consent_if_user_preference(e)}disallowAllScopes(e){this.consent=Object.fromEntries(Object.keys(this.DEFAULT_CONSENT).map(e=>[e,e===ma.Required])),this.save_consent_if_user_preference(e)}allow(e,t){const n=Object.fromEntries(e.map(e=>[e,!0]));this.consent={...this._consent,...n},this.save_consent_if_user_preference(t)}disallow(e,t){const n=Object.fromEntries(e.map(e=>[e,e===ma.Required]));this.consent={...this._consent,...n},this.save_consent_if_user_preference(t)}async initialize_third_party_cookies(){try{await this.get_storage_access()}catch(e){console.error("[Storage access] Failed to get access; will need user interaction. Error:",e)}}async cookie_storage_access_request(e){if(!document.requestStorageAccess)return!0;try{return await this.get_storage_access(),await e.$kuistore.dispatch("user/nuxtClientInit",e),!0}catch(t){return console.error("[Storage access] Storage access request failed. Error: ",t),!1}}save_consent_if_user_preference(e){e&&this.save_consent()}save_consent(){Ca.instance.save(ka.CookiePreferences,this._consent),window.dispatchEvent(new Event(Ba.COOKIE_CONSENT_CHANGE_EVENT))}async get_storage_access(){if(!(await(document?.hasStorageAccess()))){if(!document.requestStorageAccess)return;await document.requestStorageAccess()}}}class Fa{context;_scriptAdded;_clarityEnabled;static instance=new Fa;constructor(e){this._scriptAdded=!1,this._clarityEnabled=!1,null!=e&&this.initialize(e)}initialize(e){this.context=e,window.addEventListener(Ba.COOKIE_CONSENT_CHANGE_EVENT,()=>this.tryToEnableClarity())}tryToEnableClarity(){this._isAllowed()?this._enableClarity():this._disableClarity()}_enableClarity(){if(this._clarityEnabled)return;if(this._scriptAdded&&null!=window?.clarity)return window?.clarity("start"),void(this._clarityEnabled=!0);const e=this;var t,n,r,i,s,o;t=window,n=document,i="script",s=void 0,o=void 0,t[r="clarity"]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},(s=n.createElement(i)).async=1,s.src="https://www.clarity.ms/tag/o56j2m6fm7",(o=n.getElementsByTagName(i)[0]).parentNode.insertBefore(s,o),e._scriptAdded=!0}_disableClarity(){null!=window.clarity&&this._clarityEnabled&&(window?.clarity("stop"),this._clarityEnabled=!1)}_isInternalVp(e=""){return["demopl","testusa"].includes(e)}_isAllowed(){return this._isInternalVp(this.context?.$kuistore.getters["site/domain_stem"])&&Ba.instance.consent.analytics}}class qa{context;_gtmEnabled;_scriptAdded;static instance=new qa;constructor(e){this._gtmEnabled=!1,this._scriptAdded=!1,null!=e&&this.initialize(e)}initialize(e){this.context=e,window.addEventListener(Ba.COOKIE_CONSENT_CHANGE_EVENT,()=>this.tryToEnableGTM())}tryToEnableGTM(){Ba.instance.consent.analytics?this._enableGTM():this._disableGTM()}_enableGTM(){if(Ba.instance.delete(Ua.google_analytics_opt_out),this._gtmEnabled||this._scriptAdded)return;const e=this;!function(t,n,r,i){t[i]=t[i]||[],t[i].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var s=n.getElementsByTagName(r)[0],o=n.createElement(r);o.async=!0,o.src="https://www.googletagmanager.com/gtm.js?id=GTM-MJFKZ365",s.parentNode.insertBefore(o,s),e._scriptAdded=!0,e._gtmEnabled=!0}(window,document,"script","dataLayer");const t=document.createElement("noscript"),n=document.createElement("iframe");n.src="https://www.googletagmanager.com/ns.html?id=GTM-MJFKZ365",n.height="0",n.width="0",n.style.cssText="display:none;visibility:hidden",t.appendChild(n),document.body.prepend(t)}_disableGTM(){if(this._gtmEnabled){const e=Ua.google_analytics_opt_out;e.value="true",Ba.instance.set(e),this._gtmEnabled=!1}}}class Va{static isEmpty(e){return null==e||0===e.length}static capitalize(e){return this.isEmpty(e)?e:1===e.length?e.toUpperCase():`${e[0].toUpperCase()}${e.slice(1)}`}static capitalizeEachWord(e){return e.split(" ").map(e=>Va.capitalize(e)).join(" ")}static cut(e,t,n=!0,r=!1){if(e.length<t)return e;const i=Va.withoutHtmlTags(e.trim());let s=i.substring(0,t);if(s===i)return e;if(n){const e=i[t-1],n=i[t];if(" "!==e&&"\n"!==e&&" "!==n&&"\n"!==n){const e=Math.max(s.lastIndexOf(" "),s.lastIndexOf("\n"));s=s.substring(0,e)}}const o=s.match(/\S+/g)??[],a=unescape(e.trim()).match(/<[/a-z][^>]*>|[^<\s]+|</g)??[];let l=0,c=0,u=!1,d="";const h=[];for(;l<o.length;){let e=a[c];const t=o[l];e=e.replace(/</g,"<").replace(/>/g,">");if(null!=e.match(/^<.*>$/)||(e=Va.withoutHtmlTags(e)),e===t){d=`${d}${l>0&&!u?" ":""}${e}`,l+=1,u=!1}else if(t.startsWith(e)){d=`${d}${l>0&&!u?" ":""}${e}`,o[l]=t.substring(e.length),u=!0}else{d=`${d}${e}`;e.startsWith("</")?h.pop():h.push(e)}c+=1}
7return d=d.trim(),r&&(d+="..."),h.reverse().forEach(e=>{const t=e.replace("<","</");d=`${d}${t}`}),d}static withoutHtmlTags(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent??t.textContent??""}static random(e,t="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._"){if(""===t)throw new Error("allowed_char cannot be empty!");let n="";for(let r=0;r<e;r++){const e=Math.random()*(t.length-1);n+=t.charAt(e)}return n}}class Ha{static parse(e){return Va.isEmpty(e)?NaN:Number(e)}static truncateNumberToString(e){if(e<1e3)return e.toString();const t=new Intl.NumberFormat(ba.instance.currentLocaleCode()),n=Math.trunc(e/100);return`${t.format(n/10)}k`}}function za(e,t){if(t.getters["user/has_user_account_logged_in"])e.domainId===t.getters["site/domain_id"]&&t.dispatch("mylists/on_domain_became_active");else{if(null==e.visitorId)return void console.error("missing visitorId in new membership for logged out user");Ga(e.visitorId,e.domainId,e.identityId)}}function Ga(e,t,n){const r={...Ua.visitor_identity};r.name=`${t}_${e}_${Ua.visitor_identity.name}`,r.value=n,r.opts.expires=Oa.minutesFromNow(240),Ba.instance.set(r)}var Ka=0;var Wa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ya(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Za,Ja,Qa,el,tl,nl,rl,il,sl={exports:{}};function ol(){return Ja||(Ja=1,Za=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}),Za}function al(){if(el)return Qa;el=1;var e=ol(),t=Object.prototype.toString;function n(e){return"[object Array]"===t.call(e)}function r(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==t.call(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function o(e){return"[object Function]"===t.call(e)}function a(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),n(e))for(var r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}return Qa={isArray:n,isArrayBuffer:function(e){return"[object ArrayBuffer]"===t.call(e)},isBuffer:function(e){return null!==e&&!r(e)&&null!==e.constructor&&!r(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isPlainObject:s,isUndefined:r,isDate:function(e){return"[object Date]"===t.call(e)},isFile:function(e){return"[object File]"===t.call(e)},isBlob:function(e){return"[object Blob]"===t.call(e)},isFunction:o,isStream:function(e){return i(e)&&o(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:a,merge:function e(){var t={};function r(r,i){s(t[i])&&s(r)?t[i]=e(t[i],r):s(r)?t[i]=e({},r):n(r)?t[i]=r.slice():t[i]=r}for(var i=0,o=arguments.length;i<o;i++)a(arguments[i],r);return t},extend:function(t,n,r){return a(n,function(n,i){t[i]=r&&"function"==typeof n?e(n,r):n}),t},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Qa}function ll(){if(nl)return tl;nl=1;var e=al();function t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return tl=function(n,r,i){if(!r)return n;var s;if(i)s=i(r);else if(e.isURLSearchParams(r))s=r.toString();else{var o=[];e.forEach(r,function(n,r){null!=n&&(e.isArray(n)?r+="[]":n=[n],e.forEach(n,function(n){e.isDate(n)?n=n.toISOString():e.isObject(n)&&(n=JSON.stringify(n)),o.push(t(r)+"="+t(n))}))}),s=o.join("&")}if(s){var a=n.indexOf("#");-1!==a&&(n=n.slice(0,a)),n+=(-1===n.indexOf("?")?"?":"&")+s}return n}}
7function cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ul,dl,hl={exports:{}},pl=hl.exports={};function fl(){throw new Error("setTimeout has not been defined")}function ml(){throw new Error("clearTimeout has not been defined")}function _l(e){if(ul===setTimeout)return setTimeout(e,0);if((ul===fl||!ul)&&setTimeout)return ul=setTimeout,setTimeout(e,0);try{return ul(e,0)}catch(CL){try{return ul.call(null,e,0)}catch(t){return ul.call(this,e,0)}}}!function(){try{ul="function"==typeof setTimeout?setTimeout:fl}catch(CL){ul=fl}try{dl="function"==typeof clearTimeout?clearTimeout:ml}catch(CL){dl=ml}}();var gl,yl=[],vl=!1,bl=-1;function wl(){vl&&gl&&(vl=!1,gl.length?yl=gl.concat(yl):bl=-1,yl.length&&kl())}function kl(){if(!vl){var e=_l(wl);vl=!0;for(var t=yl.length;t;){for(gl=yl,yl=[];++bl<t;)gl&&gl[bl].run();bl=-1,t=yl.length}gl=null,vl=!1,function(e){if(dl===clearTimeout)return clearTimeout(e);if((dl===ml||!dl)&&clearTimeout)return dl=clearTimeout,clearTimeout(e);try{return dl(e)}catch(CL){try{return dl.call(null,e)}catch(t){return dl.call(this,e)}}}(e)}}function Cl(e,t){this.fun=e,this.array=t}function Tl(){}pl.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];yl.push(new Cl(e,t)),1!==yl.length||vl||_l(kl)},Cl.prototype.run=function(){this.fun.apply(null,this.array)},pl.title="browser",pl.browser=!0,pl.env={},pl.argv=[],pl.version="",pl.versions={},pl.on=Tl,pl.addListener=Tl,pl.once=Tl,pl.off=Tl,pl.removeListener=Tl,pl.removeAllListeners=Tl,pl.emit=Tl,pl.prependListener=Tl,pl.prependOnceListener=Tl,pl.listeners=function(e){return[]},pl.binding=function(e){throw new Error("process.binding is not supported")},pl.cwd=function(){return"/"},pl.chdir=function(e){throw new Error("process.chdir is not supported")},pl.umask=function(){return 0};const Sl=cl(hl.exports);var xl,El,Il,Al,Pl,Ol,Ll,Dl,Rl,Ml,Nl,jl,Ul,$l,Bl,Fl,ql,Vl,Hl,zl,Gl,Kl,Wl,Xl,Yl,Zl,Jl,Ql,ec,tc,nc,rc;function ic(){return Al?Il:(Al=1,Il=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e})}function sc(){if(Ol)return Pl;Ol=1;var e=ic();return Pl=function(t,n,r,i,s){var o=new Error(t);return e(o,n,r,i,s)}}function oc(){if(Fl)return Bl;Fl=1;var e=jl?Nl:(jl=1,Nl=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),t=$l?Ul:($l=1,Ul=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e});return Bl=function(n,r){return n&&!e(r)?t(n,r):r}}function ac(){if(Kl)return Gl;Kl=1;var e=al(),t=function(){if(Dl)return Ll;Dl=1;var e=sc();return Ll=function(t,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(e("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}}(),n=function(){if(Ml)return Rl;Ml=1;var e=al();return Rl=e.isStandardBrowserEnv()?function(){return{write:function(t,n,r,i,s,o){var a=[];a.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),e.isString(i)&&a.push("path="+i),e.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()}(),r=ll(),i=oc(),s=function(){if(Vl)return ql;Vl=1;var e=al(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return ql=function(n){var r,i,s,o={};return n?(e.forEach(n.split("\n"),function(n){if(s=n.indexOf(":"),r=e.trim(n.substr(0,s)).toLowerCase(),i=e.trim(n.substr(s+1)),r){if(o[r]&&t.indexOf(r)>=0)return;o[r]="set-cookie"===r?(o[r]?o[r]:[]).concat([i]):o[r]?o[r]+", "+i:i}}),o):o},ql}(),o=function(){if(zl)return Hl;zl=1;var e=al();return Hl=e.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(n){var r=e.isString(n)?i(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()}(),a=sc();return Gl=function(l){return new Promise(function(c,u){var d=l.data,h=l.headers,p=l.responseType;e.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(l.auth){var m=l.auth.username||"",_=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+_)}var g=i(l.baseURL,l.url);function y(){if(f){var e="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,n={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:e,config:l,request:f};t(c,u,n),f=null}}if(f.open(l.method.toUpperCase(),r(g,l.params,l.paramsSerializer),!0),f.timeout=l.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(u(a("Request aborted",l,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(a("Network Error",l,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+l.timeout+"ms exceeded";l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),u(a(e,l,l.transitional&&l.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},e.isStandardBrowserEnv()){var v=(l.withCredentials||o(g))&&l.xsrfCookieName?n.read(l.xsrfCookieName):void 0;v&&(h[l.xsrfHeaderName]=v)}"setRequestHeader"in f&&e.forEach(h,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)}),e.isUndefined(l.withCredentials)||(f.withCredentials=!!l.withCredentials),p&&"json"!==p&&(f.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&f.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(e){f&&(f.abort(),u(e),f=null)}),d||(d=null),f.send(d)})}}function lc(){if(Xl)return Wl;Xl=1;var e=al(),t=function(){if(El)return xl;El=1;var e=al();return xl=function(t,n){e.forEach(t,function(e,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(t[n]=e,delete t[r])})}}(),n=ic(),r={"Content-Type":"application/x-www-form-urlencoded"};function i(t,n){!e.isUndefined(t)&&e.isUndefined(t["Content-Type"])&&(t["Content-Type"]=n)}var s,o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==Sl&&"[object process]"===Object.prototype.toString.call(Sl))&&(s=ac()),s),transformRequest:[function(n,r){return t(r,"Accept"),t(r,"Content-Type"),e.isFormData(n)||e.isArrayBuffer(n)||e.isBuffer(n)||e.isStream(n)||e.isFile(n)||e.isBlob(n)?n:e.isArrayBufferView(n)?n.buffer:e.isURLSearchParams(n)?(i(r,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):e.isObject(n)||r&&"application/json"===r["Content-Type"]?(i(r,"application/json"),function(t,n,r){if(e.isString(t))try{return(n||JSON.parse)(t),e.trim(t)}catch(CL){if("SyntaxError"!==CL.name)throw CL}return(r||JSON.stringify)(t)}(n)):n}],transformResponse:[function(t){var r=this.transitional,i=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,o=!i&&"json"===this.responseType;if(o||s&&e.isString(t)&&t.length)try{return JSON.parse(t)}catch(CL){if(o){if("SyntaxError"===CL.name)throw n(CL,this,"E_JSON_PARSE");throw CL}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};return o.headers={common:{Accept:"application/json, text/plain, */*"}},e.forEach(["delete","get","head"],function(e){o.headers[e]={}}),e.forEach(["post","put","patch"],function(t){o.headers[t]=e.merge(r)}),Wl=o}function cc(){return Ql?Jl:(Ql=1,Jl=function(e){return!(!e||!e.__CANCEL__)})}function uc(){if(tc)return ec;tc=1;var e=al(),t=function(){if(Zl)return Yl;Zl=1;var e=al(),t=lc();return Yl=function(n,r,i){var s=this||t;return e.forEach(i,function(e){n=e.call(s,n,r)}),n}}(),n=cc(),r=lc();function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}return ec=function(s){return i(s),s.headers=s.headers||{},s.data=t.call(s,s.data,s.headers,s.transformRequest),s.headers=e.merge(s.headers.common||{},s.headers[s.method]||{},s.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(e){delete s.headers[e]}),(s.adapter||r.adapter)(s).then(function(e){return i(s),e.data=t.call(s,e.data,e.headers,s.transformResponse),e},function(e){return n(e)||(i(s),e&&e.response&&(e.response.data=t.call(s,e.response.data,e.response.headers,s.transformResponse))),Promise.reject(e)})}}function dc(){if(rc)return nc;rc=1;var e=al();return nc=function(t,n){n=n||{};var r={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(t,n){return e.isPlainObject(t)&&e.isPlainObject(n)?e.merge(t,n):e.isPlainObject(n)?e.merge({},n):e.isArray(n)?n.slice():n}function c(i){e.isUndefined(n[i])?e.isUndefined(t[i])||(r[i]=l(void 0,t[i])):r[i]=l(t[i],n[i])}e.forEach(i,function(t){e.isUndefined(n[t])||(r[t]=l(void 0,n[t]))}),e.forEach(s,c),e.forEach(o,function(i){e.isUndefined(n[i])?e.isUndefined(t[i])||(r[i]=l(void 0,t[i])):r[i]=l(void 0,n[i])}),e.forEach(a,function(e){e in n?r[e]=l(t[e],n[e]):e in t&&(r[e]=l(void 0,t[e]))});var u=i.concat(s).concat(o).concat(a),d=Object.keys(t).concat(Object.keys(n)).filter(function(e){return-1===u.indexOf(e)});return e.forEach(d,c),r}}const hc={version:"0.21.4"};var pc,fc,mc,_c,gc,yc,vc,bc,wc,kc,Cc,Tc,Sc,xc,Ec;function Ic(){if(_c)return mc;_c=1;var e=al(),t=ll(),n=function(){if(il)return rl;il=1;var e=al();function t(){this.handlers=[]}return t.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},t.prototype.forEach=function(t){e.forEach(this.handlers,function(e){null!==e&&t(e)})},rl=t}(),r=uc(),i=dc(),s=function(){if(fc)return pc;fc=1;var e=hc,t={};["object","boolean","number","function","string","symbol"].forEach(function(e,n){t[e]=function(t){return typeof t===e||"a"+(n<1?"n ":" ")+e}});var n={},r=e.version.split(".");function i(e,t){for(var n=t?t.split("."):r,i=e.split("."),s=0;s<3;s++){if(n[s]>i[s])return!0;
7if(n[s]<i[s])return!1}return!1}return t.transitional=function(t,r,s){var o=r&&i(r);function a(t,n){return"[Axios v"+e.version+"] Transitional option '"+t+"'"+n+(s?". "+s:"")}return function(e,i,s){if(!1===t)throw new Error(a(i," has been removed in "+r));return o&&!n[i]&&(n[i]=!0,a(i," has been deprecated since v"+r+" and will be removed in the near future")),!t||t(e,i,s)}},pc={isOlderVersion:i,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],o=t[s];if(o){var a=e[s],l=void 0===a||o(a,s,e);if(!0!==l)throw new TypeError("option "+s+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+s)}},validators:t},pc}(),o=s.validators;function a(e){this.defaults=e,this.interceptors={request:new n,response:new n}}return a.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:o.transitional(o.boolean,"1.0.0"),forcedJSONParsing:o.transitional(o.boolean,"1.0.0"),clarifyTimeoutError:o.transitional(o.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var l,c=[];if(this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)}),!a){var u=[r,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(c),l=Promise.resolve(e);u.length;)l=l.then(u.shift(),u.shift());return l}for(var d=e;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(f){p(f);break}}try{l=r(d)}catch(f){return Promise.reject(f)}for(;c.length;)l=l.then(c.shift(),c.shift());return l},a.prototype.getUri=function(e){return e=i(this.defaults,e),t(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],function(e){a.prototype[e]=function(t,n){return this.request(i(n||{},{method:e,url:t,data:(n||{}).data}))}}),e.forEach(["post","put","patch"],function(e){a.prototype[e]=function(t,n,r){return this.request(i(r||{},{method:e,url:t,data:n}))}}),mc=a}function Ac(){if(yc)return gc;function e(e){this.message=e}return yc=1,e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,gc=e}function Pc(){if(Sc)return sl.exports;Sc=1;var e=al(),t=ol(),n=Ic(),r=dc();function i(r){var i=new n(r),s=t(n.prototype.request,i);return e.extend(s,n.prototype,i),e.extend(s,i),s}var s=i(lc());return s.Axios=n,s.create=function(e){return i(r(s.defaults,e))},s.Cancel=Ac(),s.CancelToken=function(){if(bc)return vc;bc=1;var e=Ac();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(e){n=e});var r=this;t(function(t){r.reason||(r.reason=new e(t),n(r.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var e;return{token:new t(function(t){e=t}),cancel:e}},vc=t}(),s.isCancel=cc(),s.all=function(e){return Promise.all(e)},s.spread=kc?wc:(kc=1,wc=function(e){return function(t){return e.apply(null,t)}}),s.isAxiosError=Tc?Cc:(Tc=1,Cc=function(e){return"object"==typeof e&&!0===e.isAxiosError}),sl.exports=s,sl.exports.default=s,sl.exports}const Oc=Xa(Ec?xc:(Ec=1,xc=Pc())),Lc="https://stage.kanopy.com/kapi".replace(/\/+$/,"");class Dc{constructor(e,t=Lc,n=Oc){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??t)}configuration}class Rc extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Mc={},Nc="https://example.com",jc=function(e,t,n){if(null==n)throw new Rc(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Uc=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}};function $c(e,t,n=""){null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach(t=>$c(e,t,n)):Object.keys(t).forEach(r=>$c(e,t[r],`${n}${""!==n?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Bc=function(e,...t){const n=new URLSearchParams(e.search);$c(n,t),e.search=n.toString()},Fc=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},qc=function(e){return e.pathname+e.search+e.hash}
7,Vc=function(e,t,n,r){return(i=t,s=n)=>{const o={...e.options,url:(r?.basePath||i.defaults.baseURL||s)+e.url};return i.request(o)}},Hc="afi-vp",zc="vp-homepage",Gc="webvtt",Kc="transcript",Wc={ClosedCaptions:"closed_captions",Subtitles:"subtitles",AudioDescription:"audio_description"},Xc={Generic:"generic",Serial:"serial",Hierarchical:"hierarchical",Episodic:"episodic"},Yc={Sip:"sip",Patronapi:"patronapi",Sirsi:"sirsi",Password:"password",Pattern:"pattern",Vpn:"vpn",Ip:"ip",Refurl:"refurl",OdAuth:"odAuth"},Zc={Email:"email",Google:"google",Apple:"apple"},Jc={Publiclibrary:"publiclibrary",Academic:"academic",Nonbusiness:"nonbusiness",Supplier:"supplier"},Qc="deleted",eu={Supplier:"supplier",Customer:"customer",ComUser:"comUser",KanopyStaff:"kanopyStaff",KanopyStaffPlus:"kanopyStaffPlus",KanopyEng:"kanopyEng",KanopyMarketing:"kanopyMarketing",Reseller:"reseller",Ghost:"ghost"},tu="video",nu="playlist",ru="collection",iu={Public:"public",Sip:"sip",Patronapi:"patronapi",Sirsi:"sirsi",Password:"password",Pattern:"pattern",Vpn:"vpn",Ip:"ip",Refurl:"refurl",Saml:"saml",Proxy:"proxy",KapiTest:"kapiTest",OdAuth:"odAuth"},su={EmailInUse:"emailInUse",NoKanopyRecord:"noKanopyRecord",NoSocialRecord:"noSocialRecord",InsufficientTickets:"insufficientTickets",DuplicateCard:"duplicateCard"},ou={Email:"email",Google:"google",Apple:"apple"},au={Inactive:"inactive",Active:"active",Deleted:"deleted",Expired:"expired",Blocked:"blocked",Error:"error"},lu="hls",cu="hlsNoHdcp",uu="dash",du="dashNoHdcp",hu="none",pu="kanopyDrm",fu="studioDrm",mu={SingleTitlePlaylist:"single_title_playlist",MultiTitleEpisodicPlaylist:"multi_title_episodic_playlist",MultiTitleNonEpisodicPlaylist:"multi_title_non_episodic_playlist"},_u={UndergraduateStudent:"undergraduate_student",GraduateStudent:"graduate_student",Other:"other",FacultyInstructor:"faculty_instructor"},gu={Term:"term",Video:"video",Unknown:"unknown",Svod:"svod"},yu={OnboardingStart:"onboarding-start",Activate:"activate"},vu="customer",bu="inactive",wu={Video:"video",Playlist:"playlist",Collection:"collection"},ku=function(e){const t=function(e){return{bannerControllerListBanners:async(t,n,r,i,s,o={})=>{jc("bannerControllerListBanners","xVersion",t);const a=new URL("/banners",Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};await Uc(u,e),void 0!==n&&(d.domainId=n),void 0!==r&&(d.webshopId=r),void 0!==i&&(d.backgroundTermId=i),void 0!==s&&(d.isKids=s),null!=t&&(u["X-Version"]=String(t)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:qc(a),options:c}},branchControllerGetBranch:async(t,n,r,i,s,o,a,l,c,u={})=>{jc("branchControllerGetBranch","xVersion",t);const d=new URL("/branch",Nc);let h;e&&(h=e.baseOptions);const p={method:"GET",...h,...u},f={},m={};void 0!==n&&(m.limit=n),void 0!==r&&(m.query=r),void 0!==i&&(m.sw_longitude=i),void 0!==s&&(m.sw_latitude=s),void 0!==o&&(m.ne_longitude=o),void 0!==a&&(m.ne_latitude=a),void 0!==l&&(m.longitude=l),void 0!==c&&(m.latitude=c),null!=t&&(f["X-Version"]=String(t)),Bc(d,m);let _=h&&h.headers?h.headers:{};return p.headers={...f,..._,...u.headers},{url:qc(d),options:p}},categoryControllerGetCategories:async(t,n,r,i={})=>{jc("categoryControllerGetCategories","domainId",t),jc("categoryControllerGetCategories","xVersion",n);const s=new URL("/categories",Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...i},l={},c={};await Uc(l,e),void 0!==t&&(c.domainId=t),void 0!==r&&(c.isKids=r),null!=n&&(l["X-Version"]=String(n)),Bc(s,c);let u=o&&o.headers?o.headers:{};return a.headers={...l,...u,...i.headers},{url:qc(s),options:a}},categoryControllerGetLegacyCategories:async(t,n,r,i,s,o={})=>{jc("categoryControllerGetLegacyCategories","domainId",t),jc("categoryControllerGetLegacyCategories","xVersion",n);const a=new URL("/categories/legacy",Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},u={},d={};await Uc(u,e),void 0!==t&&(d.domainId=t),void 0!==r&&(d.isKids=r),void 0!==i&&(d.homePageCategories=i),void 0!==s&&(d.subCategories=s),null!=n&&(u["X-Version"]=String(n)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},{url:qc(a),options:c}},deeplinkControllerResolveDeeplink:async(t,n,r={})=>{jc("deeplinkControllerResolveDeeplink","xVersion",t),jc("deeplinkControllerResolveDeeplink","resolveDeeplinkRequestDto",n);const i=new URL("/deeplink/resolve",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},directSubscriptionControllerCreateDirectSubscription:async(t,n,r,i={})=>{jc("directSubscriptionControllerCreateDirectSubscription","domainId",t),jc("directSubscriptionControllerCreateDirectSubscription","xVersion",n),jc("directSubscriptionControllerCreateDirectSubscription","createPdaDirectSubscriptionRequestDto",r);const s="/domains/{domainId}/subscriptions/direct".replace("{domainId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},geolocationControllerGetIPLocation:async(t,n={})=>{jc("geolocationControllerGetIPLocation","xVersion",t);
7const r=new URL("/geolocation/ip",Nc);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},o={};await Uc(o,e),null!=t&&(o["X-Version"]=String(t)),Bc(r,{});let a=i&&i.headers?i.headers:{};return s.headers={...o,...a,...n.headers},{url:qc(r),options:s}},handshakeControllerGenerateToken:async(t,n={})=>{jc("handshakeControllerGenerateToken","xVersion",t);const r=new URL("/handshake",Nc);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},o={};await Uc(o,e),null!=t&&(o["X-Version"]=String(t)),Bc(r,{});let a=i&&i.headers?i.headers:{};return s.headers={...o,...a,...n.headers},{url:qc(r),options:s}},healthCheckControllerGet:async(t={})=>{const n=new URL("/health",Nc);let r;e&&(r=e.baseOptions);const i={method:"GET",...r,...t};Bc(n,{});let s=r&&r.headers?r.headers:{};return i.headers={...s,...t.headers},{url:qc(n),options:i}},historyControllerDeleteVideoFromHistory:async(t,n,r,i={})=>{jc("historyControllerDeleteVideoFromHistory","userId",t),jc("historyControllerDeleteVideoFromHistory","videoId",n),jc("historyControllerDeleteVideoFromHistory","xVersion",r);const s="/users/{userId}/history/videos/{videoId}".replace("{userId}",encodeURIComponent(String(t))).replace("{videoId}",encodeURIComponent(String(n))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...i},c={};await Uc(c,e),null!=r&&(c["X-Version"]=String(r)),Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},{url:qc(o),options:l}},historyControllerGetHistory:async(t,n,r,i,s={})=>{jc("historyControllerGetHistory","userId",t),jc("historyControllerGetHistory","domainId",n),jc("historyControllerGetHistory","xVersion",r);const o="/users/{userId}/history".replace("{userId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==n&&(d.domainId=n),void 0!==i&&(d.isKids=i),null!=r&&(u["X-Version"]=String(r)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},historyControllerGetVideoAccessRemainingTime:async(t,n,r,i,s={})=>{jc("historyControllerGetVideoAccessRemainingTime","userId",t),jc("historyControllerGetVideoAccessRemainingTime","videoId",n),jc("historyControllerGetVideoAccessRemainingTime","domainId",r),jc("historyControllerGetVideoAccessRemainingTime","xVersion",i);const o="/users/{userId}/history/videos/{videoId}/access_expires_in".replace("{userId}",encodeURIComponent(String(t))).replace("{videoId}",encodeURIComponent(String(n))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==r&&(d.domainId=r),null!=i&&(u["X-Version"]=String(i)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},institutionControllerCreateLibbyClickthroughEvent:async(t,n,r={})=>{jc("institutionControllerCreateLibbyClickthroughEvent","domainId",t),jc("institutionControllerCreateLibbyClickthroughEvent","xVersion",n);const i="/institutions/{domainId}/libbyclick".replace("{domainId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},institutionControllerGetInstitution:async(t,n,r={})=>{jc("institutionControllerGetInstitution","domainId",t),jc("institutionControllerGetInstitution","xVersion",n);const i="/institutions/{domainId}".replace("{domainId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},institutionControllerGetInstitutionBySubdomain:async(t,n,r={})=>{jc("institutionControllerGetInstitutionBySubdomain","subdomain",t),jc("institutionControllerGetInstitutionBySubdomain","xVersion",n);const i="/institutions/alias/{subdomain}".replace("{subdomain}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},institutionControllerGetMissingInstitutions:async(t,n,r,i={})=>{jc("institutionControllerGetMissingInstitutions","query",t),jc("institutionControllerGetMissingInstitutions","xVersion",n);const s=new URL("/institutions/missing",Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...i},l={},c={};void 0!==t&&(c.query=t),void 0!==r&&(c.type=r),null!=n&&(l["X-Version"]=String(n)),Bc(s,c);let u=o&&o.headers?o.headers:{};return a.headers={...l,...u,...i.headers},{url:qc(s),options:a}},institutionControllerGetWayfGroup:async(t,n,r={})=>{jc("institutionControllerGetWayfGroup","groupIdentifier",t),jc("institutionControllerGetWayfGroup","xVersion",n);const i="/institutions/groups/{groupIdentifier}".replace("{groupIdentifier}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},institutionControllerListBannersByDomainId:async(t,n,r={})=>{jc("institutionControllerListBannersByDomainId","domainId",t),jc("institutionControllerListBannersByDomainId","xVersion",n);const i="/institutions/{domainId}/infobanners".replace("{domainId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},institutionControllerSearchInstitutions:async(t,n,r,i={})=>{jc("institutionControllerSearchInstitutions","query",t),jc("institutionControllerSearchInstitutions","xVersion",n);const s=new URL("/institutions",Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...i},l={},c={};void 0!==r&&(c.limit=r),void 0!==t&&(c.query=t),null!=n&&(l["X-Version"]=String(n)),Bc(s,c);let u=o&&o.headers?o.headers:{};return a.headers={...l,...u,...i.headers},{url:qc(s),options:a}},kapiAuthcodeControllerGenerateAuthcode:async(t,n,r={})=>{jc("kapiAuthcodeControllerGenerateAuthcode","xVersion",t),jc("kapiAuthcodeControllerGenerateAuthcode","createAuthcodeRequestDto",n);const i=new URL("/authcodes",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},kapiAuthcodeControllerGetAuthcode:async(t,n,r={})=>{jc("kapiAuthcodeControllerGetAuthcode","authcode",t),jc("kapiAuthcodeControllerGetAuthcode","xVersion",n);const i="/authcodes/{authcode}".replace("{authcode}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},kapiAuthcodeControllerUpdateAuthcode:async(t,n,r,i={})=>{jc("kapiAuthcodeControllerUpdateAuthcode","authcode",t),jc("kapiAuthcodeControllerUpdateAuthcode","xVersion",n),jc("kapiAuthcodeControllerUpdateAuthcode","updateAuthcodeRequestDto",r);const s="/authcodes/{authcode}".replace("{authcode}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},licensesControllerCreateLicense:async(t,n,r,i={})=>{jc("licensesControllerCreateLicense","licenseType",t),jc("licensesControllerCreateLicense","drmLicenseId",n),jc("licensesControllerCreateLicense","xVersion",r);const s="/licenses/{licenseType}/{drmLicenseId}".replace("{licenseType}",encodeURIComponent(String(t))).replace("{drmLicenseId}",encodeURIComponent(String(n))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...i},c={};await Uc(c,e),null!=r&&(c["X-Version"]=String(r)),Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},{url:qc(o),options:l}},loginControllerLogin:async(t,n={})=>{jc("loginControllerLogin","loginUserRequestDto",t);
7const r=new URL("/login",Nc);let i;e&&(i=e.baseOptions);const s={method:"POST",...i,...n},o={"Content-Type":"application/json"};Bc(r,{});let a=i&&i.headers?i.headers:{};return s.headers={...o,...a,...n.headers},s.data=Fc(t,s,e),{url:qc(r),options:s}},logoutControllerLogout:async(t,n={})=>{jc("logoutControllerLogout","xVersion",t);const r=new URL("/logout",Nc);let i;e&&(i=e.baseOptions);const s={method:"POST",...i,...n},o={};await Uc(o,e),null!=t&&(o["X-Version"]=String(t)),Bc(r,{});let a=i&&i.headers?i.headers:{};return s.headers={...o,...a,...n.headers},{url:qc(r),options:s}},manifestControllerGetManifest:async(t,n,r,i={})=>{jc("manifestControllerGetManifest","manifestType",t),jc("manifestControllerGetManifest","videoIdWithExt",n);const s="/manifests/{manifestType}/{videoIdWithExt}".replace("{manifestType}",encodeURIComponent(String(t))).replace("{videoIdWithExt}",encodeURIComponent(String(n))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"GET",...a,...i},c={};void 0!==r&&(c.captions=r),Bc(o,c);let u=a&&a.headers?a.headers:{};return l.headers={...u,...i.headers},{url:qc(o),options:l}},membershipControllerConnectIdentityToUser:async(t,n,r={})=>{jc("membershipControllerConnectIdentityToUser","xVersion",t),jc("membershipControllerConnectIdentityToUser","connectIdentityRequestDto",n);const i=new URL("/memberships/connect",Nc);let s;e&&(s=e.baseOptions);const o={method:"PUT",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},membershipControllerCreateMembership:async(t,n,r={})=>{jc("membershipControllerCreateMembership","xVersion",t),jc("membershipControllerCreateMembership","createMembershipDto",n);const i=new URL("/memberships",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},membershipControllerDeleteMembership:async(t,n,r={})=>{jc("membershipControllerDeleteMembership","identityId",t),jc("membershipControllerDeleteMembership","xVersion",n);const i="/memberships/{identityId}".replace("{identityId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},membershipControllerGetOne:async(t,n,r={})=>{jc("membershipControllerGetOne","identityId",t),jc("membershipControllerGetOne","xVersion",n);const i="/memberships/{identityId}".replace("{identityId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},membershipControllerListMemberships:async(t,n,r,i={})=>{jc("membershipControllerListMemberships","xVersion",t);const s=new URL("/memberships",Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...i},l={},c={};await Uc(l,e),void 0!==n&&(c.userId=n),void 0!==r&&(c.visitorId=r),null!=t&&(l["X-Version"]=String(t)),Bc(s,c);let u=o&&o.headers?o.headers:{};return a.headers={...l,...u,...i.headers},{url:qc(s),options:a}},membershipControllerSwitchMembership:async(t,n,r={})=>{jc("membershipControllerSwitchMembership","identityId",t),jc("membershipControllerSwitchMembership","xVersion",n);const i="/memberships/{identityId}/switch".replace("{identityId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},membershipControllerUpdateDefaultMembership:async(t,n,r={})=>{jc("membershipControllerUpdateDefaultMembership","identityId",t),jc("membershipControllerUpdateDefaultMembership","xVersion",n);const i="/memberships/{identityId}/default".replace("{identityId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"PUT",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},parentalControlControllerResetParentalControls:async(t,n,r={})=>{jc("parentalControlControllerResetParentalControls","userId",t),jc("parentalControlControllerResetParentalControls","xVersion",n);
7const i="/users/{userId}/parental_controls/reset".replace("{userId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},parentalControlControllerUpdateKids:async(t,n,r,i={})=>{jc("parentalControlControllerUpdateKids","userId",t),jc("parentalControlControllerUpdateKids","xVersion",n),jc("parentalControlControllerUpdateKids","updateKidsDto",r);const s="/users/{userId}/kids".replace("{userId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},parentalControlControllerUpdateParentalControls:async(t,n,r,i={})=>{jc("parentalControlControllerUpdateParentalControls","userId",t),jc("parentalControlControllerUpdateParentalControls","xVersion",n),jc("parentalControlControllerUpdateParentalControls","updateParentalControlsDto",r);const s="/users/{userId}/parental_controls".replace("{userId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},playControllerGetVideoSources:async(t,n,r={})=>{jc("playControllerGetVideoSources","playId",t),jc("playControllerGetVideoSources","xVersion",n);const i="/plays/{playId}/videosources".replace("{playId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},playControllerStart:async(t,n,r={})=>{jc("playControllerStart","xVersion",t),jc("playControllerStart","createPlayRequestDto",n);const i=new URL("/plays",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},playControllerWatch:async(t,n,r,i={})=>{jc("playControllerWatch","playId",t),jc("playControllerWatch","xVersion",n),jc("playControllerWatch","updatePlayRequestDto",r);const s="/plays/{playId}/watch".replace("{playId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},playlistControllerCreateUserPlaylist:async(t,n,r={})=>{jc("playlistControllerCreateUserPlaylist","xVersion",t),jc("playlistControllerCreateUserPlaylist","createUserPlaylistDto",n);const i=new URL("/playlists",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},playlistControllerDeleteUserPlaylist:async(t,n,r={})=>{jc("playlistControllerDeleteUserPlaylist","playlistId",t),jc("playlistControllerDeleteUserPlaylist","xVersion",n);const i="/playlists/{playlistId}".replace("{playlistId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},playlistControllerGetUserPlaylist:async(t,n,r={})=>{jc("playlistControllerGetUserPlaylist","playlistId",t),jc("playlistControllerGetUserPlaylist","xVersion",n);const i="/playlists/{playlistId}".replace("{playlistId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},playlistControllerUpdateUserPlaylist:async(t,n,r,i={})=>{jc("playlistControllerUpdateUserPlaylist","playlistId",t),jc("playlistControllerUpdateUserPlaylist","xVersion",n),jc("playlistControllerUpdateUserPlaylist","createUserPlaylistDto",r);const s="/playlists/{playlistId}".replace("{playlistId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},playlistItemControllerCreateUserPlaylistClip:async(t,n,r,i,s={})=>{jc("playlistItemControllerCreateUserPlaylistClip","playlistId",t),jc("playlistItemControllerCreateUserPlaylistClip","xVersion",n),jc("playlistItemControllerCreateUserPlaylistClip","createUserPlaylistItemDto",r);const o="/playlists/{playlistId}/items".replace("{playlistId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...s},u={},d={};await Uc(u,e),void 0!==i&&(d.domainId=i),null!=n&&(u["X-Version"]=String(n)),u["Content-Type"]="application/json",Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},c.data=Fc(r,c,e),{url:qc(a),options:c}},playlistItemControllerDeleteUserPlaylistClip:async(t,n,r,i={})=>{jc("playlistItemControllerDeleteUserPlaylistClip","playlistId",t),jc("playlistItemControllerDeleteUserPlaylistClip","itemId",n),jc("playlistItemControllerDeleteUserPlaylistClip","xVersion",r);const s="/playlists/{playlistId}/items/{itemId}".replace("{playlistId}",encodeURIComponent(String(t))).replace("{itemId}",encodeURIComponent(String(n))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...i},c={};await Uc(c,e),null!=r&&(c["X-Version"]=String(r)),Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},{url:qc(o),options:l}},playlistItemControllerGetUserPlaylistItems:async(t,n,r,i,s,o={})=>{jc("playlistItemControllerGetUserPlaylistItems","playlistId",t),jc("playlistItemControllerGetUserPlaylistItems","domainId",n),jc("playlistItemControllerGetUserPlaylistItems","xVersion",r);const a="/playlists/{playlistId}/items".replace("{playlistId}",encodeURIComponent(String(t))),l=new URL(a,Nc);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},h={};await Uc(d,e),void 0!==n&&(h.domainId=n),void 0!==i&&(h.page=i),void 0!==s&&(h.perPage=s),null!=r&&(d["X-Version"]=String(r)),Bc(l,h);
7let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...o.headers},{url:qc(l),options:u}},playlistItemControllerUpdateUserPlaylistClip:async(t,n,r,i,s={})=>{jc("playlistItemControllerUpdateUserPlaylistClip","playlistId",t),jc("playlistItemControllerUpdateUserPlaylistClip","itemId",n),jc("playlistItemControllerUpdateUserPlaylistClip","xVersion",r),jc("playlistItemControllerUpdateUserPlaylistClip","updateUserPlaylistItemDto",i);const o="/playlists/{playlistId}/items/{itemId}".replace("{playlistId}",encodeURIComponent(String(t))).replace("{itemId}",encodeURIComponent(String(n))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},u={};await Uc(u,e),null!=r&&(u["X-Version"]=String(r)),u["Content-Type"]="application/json",Bc(a,{});let d=l&&l.headers?l.headers:{};return c.headers={...u,...d,...s.headers},c.data=Fc(i,c,e),{url:qc(a),options:c}},proxyTokenControllerGetProxyToken:async(t,n,r,i={})=>{jc("proxyTokenControllerGetProxyToken","xVersion",t);const s=new URL("/proxytoken",Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...i},l={},c={};await Uc(l,e),void 0!==n&&(c.userId=n),void 0!==r&&(c.visitorId=r),null!=t&&(l["X-Version"]=String(t)),Bc(s,c);let u=o&&o.headers?o.headers:{};return a.headers={...l,...u,...i.headers},{url:qc(s),options:a}},rflControllerSubmitRfl:async(t,n,r={})=>{jc("rflControllerSubmitRfl","xVersion",t),jc("rflControllerSubmitRfl","rflDto",n);const i=new URL("/suggestions/libraries",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},rfpControllerSubmitRfp:async(t,n,r,i={})=>{jc("rfpControllerSubmitRfp","domainId",t),jc("rfpControllerSubmitRfp","xVersion",n),jc("rfpControllerSubmitRfp","rfpDto",r);const s="/institutions/{domainId}/rfps".replace("{domainId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},searchControllerSearchTerms:async(t,n,r,i,s,o,a,l={})=>{jc("searchControllerSearchTerms","query",t),jc("searchControllerSearchTerms","domainId",n),jc("searchControllerSearchTerms","xVersion",r);const c=new URL("/search/terms",Nc);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...l},h={},p={};await Uc(h,e),void 0!==t&&(p.query=t),void 0!==i&&(p.sort=i),void 0!==n&&(p.domainId=n),void 0!==s&&(p.isKids=s),void 0!==o&&(p.page=o),void 0!==a&&(p.perPage=a),null!=r&&(h["X-Version"]=String(r)),Bc(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...l.headers},{url:qc(c),options:d}},searchControllerSearchVideos:async(t,n,r,i,s,o,a,l,c,u,d,h,p,f,m,_,g,y,v={})=>{jc("searchControllerSearchVideos","xVersion",t);const b=new URL("/search/videos",Nc);let w;e&&(w=e.baseOptions);const k={method:"GET",...w,...v},C={},T={};await Uc(C,e),void 0!==n&&(T.query=n),void 0!==r&&(T.sort=r),void 0!==i&&(T.rfp=i),void 0!==s&&(T.relatedTo=s),void 0!==o&&(T.termFilter=o),void 0!==a&&(T.languageFilter=a),void 0!==l&&(T.pprFilter=l),void 0!==c&&(T.captionsFilter=c),void 0!==u&&(T.audioDescriptionFilter=u),void 0!==d&&(T.productsOnly=d),void 0!==h&&(T.captionsLanguageFilter=h),void 0!==p&&(T.ticketFilter=p),void 0!==f&&(T.domainId=f),void 0!==m&&(T.webshopId=m),void 0!==_&&(T.isKids=_),void 0!==g&&(T.page=g),void 0!==y&&(T.perPage=y),null!=t&&(C["X-Version"]=String(t)),Bc(b,T);let S=w&&w.headers?w.headers:{};return k.headers={...C,...S,...v.headers},{url:qc(b),options:k}},shelfControllerGetShelf:async(t,n,r,i,s,o,a,l={})=>{jc("shelfControllerGetShelf","shelfId",t),jc("shelfControllerGetShelf","xVersion",n);const c="/shelves/{shelfId}".replace("{shelfId}",encodeURIComponent(String(t))),u=new URL(c,Nc);let d;e&&(d=e.baseOptions);const h={method:"GET",...d,...l},p={},f={};await Uc(p,e),void 0!==r&&(f.domainId=r),void 0!==i&&(f.webshopId=i),void 0!==s&&(f.isKids=s),void 0!==o&&(f.page=o),void 0!==a&&(f.perPage=a),null!=n&&(p["X-Version"]=String(n)),Bc(u,f);let m=d&&d.headers?d.headers:{};return h.headers={...p,...m,...l.headers},{url:qc(u),options:h}},shelfGroupControllerGetHomepage:async(t,n,r,i,s,o,a={})=>{jc("shelfGroupControllerGetHomepage","domainId",t),jc("shelfGroupControllerGetHomepage","xVersion",n);const l=new URL("/shelfgroups/homepage",Nc);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...a},d={},h={};await Uc(d,e),void 0!==t&&(h.domainId=t),void 0!==r&&(h.isKids=r),void 0!==i&&(h.page=i),void 0!==s&&(h.shelvesPerPage=s),void 0!==o&&(h.videosPerShelf=o),null!=n&&(d["X-Version"]=String(n)),Bc(l,h);
7let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...a.headers},{url:qc(l),options:u}},shelfGroupControllerGetTerm:async(t,n,r,i,s,o,a,l,c={})=>{jc("shelfGroupControllerGetTerm","termId",t),jc("shelfGroupControllerGetTerm","xVersion",n);const u="/shelfgroups/terms/{termId}".replace("{termId}",encodeURIComponent(String(t))),d=new URL(u,Nc);let h;e&&(h=e.baseOptions);const p={method:"GET",...h,...c},f={},m={};await Uc(f,e),void 0!==r&&(m.domainId=r),void 0!==i&&(m.webshopId=i),void 0!==s&&(m.isKids=s),void 0!==o&&(m.page=o),void 0!==a&&(m.shelvesPerPage=a),void 0!==l&&(m.videosPerShelf=l),null!=n&&(f["X-Version"]=String(n)),Bc(d,m);let _=h&&h.headers?h.headers:{};return p.headers={...f,..._,...c.headers},{url:qc(d),options:p}},shelfGroupControllerGetWebshopCatalog:async(t,n,r,i,s,o,a={})=>{jc("shelfGroupControllerGetWebshopCatalog","webshopId",t),jc("shelfGroupControllerGetWebshopCatalog","xVersion",n);const l="/shelfgroups/webshops/{webshopId}/catalog".replace("{webshopId}",encodeURIComponent(String(t))),c=new URL(l,Nc);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},h={},p={};await Uc(h,e),void 0!==r&&(p.isKids=r),void 0!==i&&(p.page=i),void 0!==s&&(p.shelvesPerPage=s),void 0!==o&&(p.videosPerShelf=o),null!=n&&(h["X-Version"]=String(n)),Bc(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...a.headers},{url:qc(c),options:d}},termDataControllerGetTermData:async(t,n,r={})=>{jc("termDataControllerGetTermData","termId",t),jc("termDataControllerGetTermData","xVersion",n);const i="/terms/{termId}".replace("{termId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},termDataControllerGetTermFromSupplierAlias:async(t,n,r={})=>{jc("termDataControllerGetTermFromSupplierAlias","alias",t),jc("termDataControllerGetTermFromSupplierAlias","xVersion",n);const i="/terms/suppliers/alias/{alias}".replace("{alias}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},userControllerCreateUser:async(t,n,r={})=>{jc("userControllerCreateUser","xVersion",t),jc("userControllerCreateUser","createUserRequestDto",n);const i=new URL("/users",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},userControllerDeleteUser:async(t,n,r={})=>{jc("userControllerDeleteUser","userId",t),jc("userControllerDeleteUser","xVersion",n);const i="/users/{userId}".replace("{userId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"DELETE",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},userControllerGetOne:async(t,n,r={})=>{jc("userControllerGetOne","userId",t),jc("userControllerGetOne","xVersion",n);const i="/users/{userId}".replace("{userId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},userControllerResendActivationEmail:async(t,n,r={})=>{jc("userControllerResendActivationEmail","userId",t),jc("userControllerResendActivationEmail","xVersion",n);const i="/users/{userId}/activate/resend".replace("{userId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...r},l={};await Uc(l,e),null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},userControllerResetUserPassword:async(t,n,r={})=>{jc("userControllerResetUserPassword","xVersion",t),jc("userControllerResetUserPassword","resetUserPasswordDto",n);const i=new URL("/users/password/reset",Nc);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},a={};await Uc(a,e),null!=t&&(a["X-Version"]=String(t)),a["Content-Type"]="application/json",Bc(i,{});let l=s&&s.headers?s.headers:{};return o.headers={...a,...l,...r.headers},o.data=Fc(n,o,e),{url:qc(i),options:o}},userControllerUpdateUser:async(t,n,r,i={})=>{jc("userControllerUpdateUser","userId",t),jc("userControllerUpdateUser","xVersion",n),jc("userControllerUpdateUser","updateUserDto",r);const s="/users/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},userControllerUpdateUserPassword:async(t,n,r,i={})=>{jc("userControllerUpdateUserPassword","userId",t),jc("userControllerUpdateUserPassword","xVersion",n),jc("userControllerUpdateUserPassword","updateUserPasswordDto",r);const s="/users/{userId}/password".replace("{userId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}}
7,userControllerVerifyUser:async(t,n,r,i={})=>{jc("userControllerVerifyUser","userId",t),jc("userControllerVerifyUser","xVersion",n),jc("userControllerVerifyUser","verifyUserDto",r);const s="/users/{userId}/activate".replace("{userId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"PUT",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},userPlaylistControllerGetUserPlaylists:async(t,n,r,i,s={})=>{jc("userPlaylistControllerGetUserPlaylists","userId",t),jc("userPlaylistControllerGetUserPlaylists","xVersion",n);const o="/users/{userId}/playlists".replace("{userId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==r&&(d.page=r),void 0!==i&&(d.perPage=i),null!=n&&(u["X-Version"]=String(n)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},videoControllerGetAudioTracks:async(t,n,r={})=>{jc("videoControllerGetAudioTracks","videoId",t),jc("videoControllerGetAudioTracks","xVersion",n);const i="/videos/{videoId}/audio-tracks".replace("{videoId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},videoControllerGetByAlias:async(t,n,r,i,s,o={})=>{jc("videoControllerGetByAlias","alias",t),jc("videoControllerGetByAlias","xVersion",n);const a="/videos/alias/{alias}".replace("{alias}",encodeURIComponent(String(t))),l=new URL(a,Nc);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},h={};await Uc(d,e),void 0!==r&&(h.domainId=r),void 0!==i&&(h.webshopId=i),void 0!==s&&(h.ageRatingDomainId=s),null!=n&&(d["X-Version"]=String(n)),Bc(l,h);let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...o.headers},{url:qc(l),options:u}},videoControllerGetItems:async(t,n,r,i,s={})=>{jc("videoControllerGetItems","videoId",t),jc("videoControllerGetItems","xVersion",n);const o="/videos/{videoId}/items".replace("{videoId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==r&&(d.domainId=r),void 0!==i&&(d.ageRatingDomainId=i),null!=n&&(u["X-Version"]=String(n)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},videoControllerGetOne:async(t,n,r,i,s={})=>{jc("videoControllerGetOne","videoId",t),jc("videoControllerGetOne","xVersion",n);const o="/videos/{videoId}".replace("{videoId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==r&&(d.domainId=r),void 0!==i&&(d.ageRatingDomainId=i),null!=n&&(u["X-Version"]=String(n)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},videoControllerGetSyntheticPoster:async(t,n={})=>{jc("videoControllerGetSyntheticPoster","videoId",t);const r="/videos/{videoId}/synthetic-poster.jpg".replace("{videoId}",encodeURIComponent(String(t))),i=new URL(r,Nc);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...n};Bc(i,{});let a=s&&s.headers?s.headers:{};return o.headers={...a,...n.headers},{url:qc(i),options:o}},videoControllerGetVideoIdTranslation:async(t,n,r={})=>{jc("videoControllerGetVideoIdTranslation","videoId",t),jc("videoControllerGetVideoIdTranslation","xVersion",n);const i="/videos/{videoId}/id_translate".replace("{videoId}",encodeURIComponent(String(t))),s=new URL(i,Nc);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},l={};null!=n&&(l["X-Version"]=String(n)),Bc(s,{});let c=o&&o.headers?o.headers:{};return a.headers={...l,...c,...r.headers},{url:qc(s),options:a}},watchlistControllerGetWatchlist:async(t,n,r,i,s={})=>{jc("watchlistControllerGetWatchlist","userId",t),jc("watchlistControllerGetWatchlist","domainId",n),jc("watchlistControllerGetWatchlist","xVersion",r);const o="/users/{userId}/watchlist".replace("{userId}",encodeURIComponent(String(t))),a=new URL(o,Nc);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},u={},d={};await Uc(u,e),void 0!==n&&(d.domainId=n),void 0!==i&&(d.isKids=i),null!=r&&(u["X-Version"]=String(r)),Bc(a,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...s.headers},{url:qc(a),options:c}},watchlistItemControllerAddWatchlistItem:async(t,n,r,i={})=>{jc("watchlistItemControllerAddWatchlistItem","watchlistId",t),jc("watchlistItemControllerAddWatchlistItem","xVersion",n),jc("watchlistItemControllerAddWatchlistItem","createWatchlistItemDto",r);const s="/watchlists/{watchlistId}/items".replace("{watchlistId}",encodeURIComponent(String(t))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"POST",...a,...i},c={};await Uc(c,e),null!=n&&(c["X-Version"]=String(n)),c["Content-Type"]="application/json",Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},l.data=Fc(r,l,e),{url:qc(o),options:l}},watchlistItemControllerDeleteWatchlistItem:async(t,n,r,i={})=>{jc("watchlistItemControllerDeleteWatchlistItem","watchlistId",t),jc("watchlistItemControllerDeleteWatchlistItem","itemId",n),jc("watchlistItemControllerDeleteWatchlistItem","xVersion",r);const s="/watchlists/{watchlistId}/items/{itemId}".replace("{watchlistId}",encodeURIComponent(String(t))).replace("{itemId}",encodeURIComponent(String(n))),o=new URL(s,Nc);let a;e&&(a=e.baseOptions);const l={method:"DELETE",...a,...i},c={};await Uc(c,e),null!=r&&(c["X-Version"]=String(r)),Bc(o,{});let u=a&&a.headers?a.headers:{};return l.headers={...c,...u,...i.headers},{url:qc(o),options:l}},watchlistItemControllerGetUserWatchlistItems:async(t,n,r,i,s,o,a={})=>{jc("watchlistItemControllerGetUserWatchlistItems","watchlistId",t),jc("watchlistItemControllerGetUserWatchlistItems","domainId",n),jc("watchlistItemControllerGetUserWatchlistItems","page",r),jc("watchlistItemControllerGetUserWatchlistItems","perPage",i),jc("watchlistItemControllerGetUserWatchlistItems","xVersion",s);const l="/watchlists/{watchlistId}/items".replace("{watchlistId}",encodeURIComponent(String(t))),c=new URL(l,Nc);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},h={},p={};await Uc(h,e),void 0!==n&&(p.domainId=n),void 0!==o&&(p.isKids=o),void 0!==r&&(p.page=r),void 0!==i&&(p.perPage=i),null!=s&&(h["X-Version"]=String(s)),Bc(c,p);let f=u&&u.headers?u.headers:{};return d.headers={...h,...f,...a.headers},{url:qc(c),options:d}}}}(e);return{async bannerControllerListBanners(n,r,i,s,o,a){const l=await t.bannerControllerListBanners(n,r,i,s,o,a),c=e?.serverIndex??0,u=Mc["KuiApi.bannerControllerListBanners"]?.[c]?.url;return(t,n)=>Vc(l,Oc,Lc,e)(t,u||n)},async branchControllerGetBranch(n,r,i,s,o,a,l,c,u,d){const h=await t.branchControllerGetBranch(n,r,i,s,o,a,l,c,u,d),p=e?.serverIndex??0,f=Mc["KuiApi.branchControllerGetBranch"]?.[p]?.url;return(t,n)=>Vc(h,Oc,Lc,e)(t,f||n)},async categoryControllerGetCategories(n,r,i,s){const o=await t.categoryControllerGetCategories(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.categoryControllerGetCategories"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async categoryControllerGetLegacyCategories(n,r,i,s,o,a){const l=await t.categoryControllerGetLegacyCategories(n,r,i,s,o,a),c=e?.serverIndex??0,u=Mc["KuiApi.categoryControllerGetLegacyCategories"]?.[c]?.url;return(t,n)=>Vc(l,Oc,Lc,e)(t,u||n)},async deeplinkControllerResolveDeeplink(n,r,i){const s=await t.deeplinkControllerResolveDeeplink(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.deeplinkControllerResolveDeeplink"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async directSubscriptionControllerCreateDirectSubscription(n,r,i,s){const o=await t.directSubscriptionControllerCreateDirectSubscription(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.directSubscriptionControllerCreateDirectSubscription"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async geolocationControllerGetIPLocation(n,r){const i=await t.geolocationControllerGetIPLocation(n,r),s=e?.serverIndex??0,o=Mc["KuiApi.geolocationControllerGetIPLocation"]?.[s]?.url;return(t,n)=>Vc(i,Oc,Lc,e)(t,o||n)},async handshakeControllerGenerateToken(n,r){const i=await t.handshakeControllerGenerateToken(n,r),s=e?.serverIndex??0,o=Mc["KuiApi.handshakeControllerGenerateToken"]?.[s]?.url;return(t,n)=>Vc(i,Oc,Lc,e)(t,o||n)},async healthCheckControllerGet(n){const r=await t.healthCheckControllerGet(n),i=e?.
7serverIndex??0,s=Mc["KuiApi.healthCheckControllerGet"]?.[i]?.url;return(t,n)=>Vc(r,Oc,Lc,e)(t,s||n)},async historyControllerDeleteVideoFromHistory(n,r,i,s){const o=await t.historyControllerDeleteVideoFromHistory(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.historyControllerDeleteVideoFromHistory"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async historyControllerGetHistory(n,r,i,s,o){const a=await t.historyControllerGetHistory(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.historyControllerGetHistory"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async historyControllerGetVideoAccessRemainingTime(n,r,i,s,o){const a=await t.historyControllerGetVideoAccessRemainingTime(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.historyControllerGetVideoAccessRemainingTime"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async institutionControllerCreateLibbyClickthroughEvent(n,r,i){const s=await t.institutionControllerCreateLibbyClickthroughEvent(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.institutionControllerCreateLibbyClickthroughEvent"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async institutionControllerGetInstitution(n,r,i){const s=await t.institutionControllerGetInstitution(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.institutionControllerGetInstitution"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async institutionControllerGetInstitutionBySubdomain(n,r,i){const s=await t.institutionControllerGetInstitutionBySubdomain(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.institutionControllerGetInstitutionBySubdomain"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async institutionControllerGetMissingInstitutions(n,r,i,s){const o=await t.institutionControllerGetMissingInstitutions(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.institutionControllerGetMissingInstitutions"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async institutionControllerGetWayfGroup(n,r,i){const s=await t.institutionControllerGetWayfGroup(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.institutionControllerGetWayfGroup"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async institutionControllerListBannersByDomainId(n,r,i){const s=await t.institutionControllerListBannersByDomainId(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.institutionControllerListBannersByDomainId"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async institutionControllerSearchInstitutions(n,r,i,s){const o=await t.institutionControllerSearchInstitutions(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.institutionControllerSearchInstitutions"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async kapiAuthcodeControllerGenerateAuthcode(n,r,i){const s=await t.kapiAuthcodeControllerGenerateAuthcode(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.kapiAuthcodeControllerGenerateAuthcode"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async kapiAuthcodeControllerGetAuthcode(n,r,i){const s=await t.kapiAuthcodeControllerGetAuthcode(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.kapiAuthcodeControllerGetAuthcode"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async kapiAuthcodeControllerUpdateAuthcode(n,r,i,s){const o=await t.kapiAuthcodeControllerUpdateAuthcode(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.kapiAuthcodeControllerUpdateAuthcode"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async licensesControllerCreateLicense(n,r,i,s){const o=await t.licensesControllerCreateLicense(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.licensesControllerCreateLicense"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async loginControllerLogin(n,r){const i=await t.loginControllerLogin(n,r),s=e?.serverIndex??0,o=Mc["KuiApi.loginControllerLogin"]?.[s]?.url;return(t,n)=>Vc(i,Oc,Lc,e)(t,o||n)},async logoutControllerLogout(n,r){const i=await t.logoutControllerLogout(n,r),s=e?.serverIndex??0,o=Mc["KuiApi.logoutControllerLogout"]?.[s]?.url;return(t,n)=>Vc(i,Oc,Lc,e)(t,o||n)},async manifestControllerGetManifest(n,r,i,s){const o=await t.manifestControllerGetManifest(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.manifestControllerGetManifest"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async membershipControllerConnectIdentityToUser(n,r,i){const s=await t.membershipControllerConnectIdentityToUser(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerConnectIdentityToUser"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async membershipControllerCreateMembership(n,r,i){const s=await t.membershipControllerCreateMembership(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerCreateMembership"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async membershipControllerDeleteMembership(n,r,i){const s=await t.membershipControllerDeleteMembership(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerDeleteMembership"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async membershipControllerGetOne(n,r,i){const s=await t.membershipControllerGetOne(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerGetOne"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async membershipControllerListMemberships(n,r,i,s){const o=await t.membershipControllerListMemberships(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.membershipControllerListMemberships"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async membershipControllerSwitchMembership(n,r,i){const s=await t.membershipControllerSwitchMembership(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerSwitchMembership"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async membershipControllerUpdateDefaultMembership(n,r,i){const s=await t.membershipControllerUpdateDefaultMembership(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.membershipControllerUpdateDefaultMembership"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async parentalControlControllerResetParentalControls(n,r,i){const s=await t.parentalControlControllerResetParentalControls(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.parentalControlControllerResetParentalControls"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async parentalControlControllerUpdateKids(n,r,i,s){const o=await t.parentalControlControllerUpdateKids(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.parentalControlControllerUpdateKids"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async parentalControlControllerUpdateParentalControls(n,r,i,s){const o=await t.parentalControlControllerUpdateParentalControls(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.parentalControlControllerUpdateParentalControls"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async playControllerGetVideoSources(n,r,i){const s=await t.playControllerGetVideoSources(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.playControllerGetVideoSources"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async playControllerStart(n,r,i){const s=await t.playControllerStart(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.playControllerStart"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async playControllerWatch(n,r,i,s){const o=await t.playControllerWatch(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.playControllerWatch"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async playlistControllerCreateUserPlaylist(n,r,i){const s=await t.playlistControllerCreateUserPlaylist(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.playlistControllerCreateUserPlaylist"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async playlistControllerDeleteUserPlaylist(n,r,i){const s=await t.playlistControllerDeleteUserPlaylist(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.playlistControllerDeleteUserPlaylist"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async playlistControllerGetUserPlaylist(n,r,i){const s=await t.playlistControllerGetUserPlaylist(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.playlistControllerGetUserPlaylist"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async playlistControllerUpdateUserPlaylist(n,r,i,s){const o=await t.playlistControllerUpdateUserPlaylist(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.playlistControllerUpdateUserPlaylist"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async playlistItemControllerCreateUserPlaylistClip(n,r,i,s,o){const a=await t.playlistItemControllerCreateUserPlaylistClip(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.playlistItemControllerCreateUserPlaylistClip"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async playlistItemControllerDeleteUserPlaylistClip(n,r,i,s){const o=await t.playlistItemControllerDeleteUserPlaylistClip(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.playlistItemControllerDeleteUserPlaylistClip"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async playlistItemControllerGetUserPlaylistItems(n,r,i,s,o,a){const l=await t.playlistItemControllerGetUserPlaylistItems(n,r,i,s,o,a),c=e?.serverIndex??0,u=Mc["KuiApi.playlistItemControllerGetUserPlaylistItems"]?.[c]?.url;return(t,n)=>Vc(l,Oc,Lc,e)(t,u||n)},async playlistItemControllerUpdateUserPlaylistClip(n,r,i,s,o){const a=await t.playlistItemControllerUpdateUserPlaylistClip(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.playlistItemControllerUpdateUserPlaylistClip"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async proxyTokenControllerGetProxyToken(n,r,i,s){const o=await t.proxyTokenControllerGetProxyToken(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.proxyTokenControllerGetProxyToken"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async rflControllerSubmitRfl(n,r,i){const s=await t.rflControllerSubmitRfl(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.rflControllerSubmitRfl"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async rfpControllerSubmitRfp(n,r,i,s){const o=await t.rfpControllerSubmitRfp(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.rfpControllerSubmitRfp"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async searchControllerSearchTerms(n,r,i,s,o,a,l,c){const u=await t.searchControllerSearchTerms(n,r,i,s,o,a,l,c),d=e?.serverIndex??0,h=Mc["KuiApi.searchControllerSearchTerms"]?.[d]?.url;return(t,n)=>Vc(u,Oc,Lc,e)(t,h||n)},async searchControllerSearchVideos(n,r,i,s,o,a,l,c,u,d,h,p,f,m,_,g,y,v,b){const w=await t.searchControllerSearchVideos(n,r,i,s,o,a,l,c,u,d,h,p,f,m,_,g,y,v,b),k=e?.serverIndex??0,C=Mc["KuiApi.searchControllerSearchVideos"]?.[k]?.url;return(t,n)=>Vc(w,Oc,Lc,e)(t,C||n)},async shelfControllerGetShelf(n,r,i,s,o,a,l,c){const u=await t.shelfControllerGetShelf(n,r,i,s,o,a,l,c),d=e?.serverIndex??0,h=Mc["KuiApi.shelfControllerGetShelf"]?.[d]?.url;return(t,n)=>Vc(u,Oc,Lc,e)(t,h||n)},async shelfGroupControllerGetHomepage(n,r,i,s,o,a,l){const c=await t.shelfGroupControllerGetHomepage(n,r,i,s,o,a,l),u=e?.serverIndex??0,d=Mc["KuiApi.shelfGroupControllerGetHomepage"]?.[u]?.url;return(t,n)=>Vc(c,Oc,Lc,e)(t,d||n)},async shelfGroupControllerGetTerm(n,r,i,s,o,a,l,c,u){const d=await t.shelfGroupControllerGetTerm(n,r,i,s,o,a,l,c,u),h=e?.serverIndex??0,p=Mc["KuiApi.shelfGroupControllerGetTerm"]?.[h]?.url;return(t,n)=>Vc(d,Oc,Lc,e)(t,p||n)},async shelfGroupControllerGetWebshopCatalog(n,r,i,s,o,a,l){const c=await t.shelfGroupControllerGetWebshopCatalog(n,r,i,s,o,a,l),u=e?.serverIndex??0,d=Mc["KuiApi.shelfGroupControllerGetWebshopCatalog"]?.[u]?.url;return(t,n)=>Vc(c,Oc,Lc,e)(t,d||n)},async termDataControllerGetTermData(n,r,i){const s=await t.termDataControllerGetTermData(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.termDataControllerGetTermData"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async termDataControllerGetTermFromSupplierAlias(n,r,i){const s=await t.termDataControllerGetTermFromSupplierAlias(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.termDataControllerGetTermFromSupplierAlias"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerCreateUser(n,r,i){const s=await t.userControllerCreateUser(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.userControllerCreateUser"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerDeleteUser(n,r,i){const s=await t.userControllerDeleteUser(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.userControllerDeleteUser"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerGetOne(n,r,i){const s=await t.userControllerGetOne(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.userControllerGetOne"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerResendActivationEmail(n,r,i){const s=await t.userControllerResendActivationEmail(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.userControllerResendActivationEmail"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerResetUserPassword(n,r,i){const s=await t.userControllerResetUserPassword(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.userControllerResetUserPassword"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async userControllerUpdateUser(n,r,i,s){const o=await t.userControllerUpdateUser(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.userControllerUpdateUser"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async userControllerUpdateUserPassword(n,r,i,s){const o=await t.userControllerUpdateUserPassword(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.userControllerUpdateUserPassword"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async userControllerVerifyUser(n,r,i,s){const o=await t.userControllerVerifyUser(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.userControllerVerifyUser"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async userPlaylistControllerGetUserPlaylists(n,r,i,s,o){const a=await t.userPlaylistControllerGetUserPlaylists(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.userPlaylistControllerGetUserPlaylists"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async videoControllerGetAudioTracks(n,r,i){const s=await t.videoControllerGetAudioTracks(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.videoControllerGetAudioTracks"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async videoControllerGetByAlias(n,r,i,s,o,a){const l=await t.videoControllerGetByAlias(n,r,i,s,o,a),c=e?.serverIndex??0,u=Mc["KuiApi.videoControllerGetByAlias"]?.[c]?.url;return(t,n)=>Vc(l,Oc,Lc,e)(t,u||n)},async videoControllerGetItems(n,r,i,s,o){const a=await t.videoControllerGetItems(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.videoControllerGetItems"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async videoControllerGetOne(n,r,i,s,o){const a=await t.videoControllerGetOne(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.videoControllerGetOne"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async videoControllerGetSyntheticPoster(n,r){const i=await t.videoControllerGetSyntheticPoster(n,r),s=e?.serverIndex??0,o=Mc["KuiApi.videoControllerGetSyntheticPoster"]?.[s]?.url;return(t,n)=>Vc(i,Oc,Lc,e)(t,o||n)},async videoControllerGetVideoIdTranslation(n,r,i){const s=await t.videoControllerGetVideoIdTranslation(n,r,i),o=e?.serverIndex??0,a=Mc["KuiApi.videoControllerGetVideoIdTranslation"]?.[o]?.url;return(t,n)=>Vc(s,Oc,Lc,e)(t,a||n)},async watchlistControllerGetWatchlist(n,r,i,s,o){const a=await t.watchlistControllerGetWatchlist(n,r,i,s,o),l=e?.serverIndex??0,c=Mc["KuiApi.watchlistControllerGetWatchlist"]?.[l]?.url;return(t,n)=>Vc(a,Oc,Lc,e)(t,c||n)},async watchlistItemControllerAddWatchlistItem(n,r,i,s){const o=await t.watchlistItemControllerAddWatchlistItem(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.watchlistItemControllerAddWatchlistItem"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async watchlistItemControllerDeleteWatchlistItem(n,r,i,s){const o=await t.watchlistItemControllerDeleteWatchlistItem(n,r,i,s),a=e?.serverIndex??0,l=Mc["KuiApi.watchlistItemControllerDeleteWatchlistItem"]?.[a]?.url;return(t,n)=>Vc(o,Oc,Lc,e)(t,l||n)},async watchlistItemControllerGetUserWatchlistItems(n,r,i,s,o,a,l){const c=await t.watchlistItemControllerGetUserWatchlistItems(n,r,i,s,o,a,l),u=e?.serverIndex??0,d=Mc["KuiApi.watchlistItemControllerGetUserWatchlistItems"]?.[u]?.url;return(t,n)=>Vc(c,Oc,Lc,e)(t,d||n)}}};class Cu extends Dc{bannerControllerListBanners(e,t){return ku(this.configuration).bannerControllerListBanners(e.xVersion,e.domainId,e.webshopId,e.backgroundTermId,e.isKids,t).then(e=>e(this.axios,this.basePath))}branchControllerGetBranch(e,t){return ku(this.configuration).branchControllerGetBranch(e.xVersion,e.limit,e.query,e.swLongitude,e.swLatitude,e.neLongitude,e.neLatitude,e.longitude,e.latitude,t).then(e=>e(this.axios,this.basePath))}categoryControllerGetCategories(e,t){return ku(this.configuration).categoryControllerGetCategories(e.domainId,e.xVersion,e.isKids,t).then(e=>e(this.axios,this.basePath))}categoryControllerGetLegacyCategories(e,t){return ku(this.configuration).categoryControllerGetLegacyCategories(e.domainId,e.xVersion,e.isKids,e.homePageCategories,e.subCategories,t).then(e=>e(this.axios,this.basePath))}deeplinkControllerResolveDeeplink(e,t){return ku(this.configuration).deeplinkControllerResolveDeeplink(e.xVersion,e.resolveDeeplinkRequestDto,t).then(e=>e(this.axios
7,this.basePath))}directSubscriptionControllerCreateDirectSubscription(e,t){return ku(this.configuration).directSubscriptionControllerCreateDirectSubscription(e.domainId,e.xVersion,e.createPdaDirectSubscriptionRequestDto,t).then(e=>e(this.axios,this.basePath))}geolocationControllerGetIPLocation(e,t){return ku(this.configuration).geolocationControllerGetIPLocation(e.xVersion,t).then(e=>e(this.axios,this.basePath))}handshakeControllerGenerateToken(e,t){return ku(this.configuration).handshakeControllerGenerateToken(e.xVersion,t).then(e=>e(this.axios,this.basePath))}healthCheckControllerGet(e){return ku(this.configuration).healthCheckControllerGet(e).then(e=>e(this.axios,this.basePath))}historyControllerDeleteVideoFromHistory(e,t){return ku(this.configuration).historyControllerDeleteVideoFromHistory(e.userId,e.videoId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}historyControllerGetHistory(e,t){return ku(this.configuration).historyControllerGetHistory(e.userId,e.domainId,e.xVersion,e.isKids,t).then(e=>e(this.axios,this.basePath))}historyControllerGetVideoAccessRemainingTime(e,t){return ku(this.configuration).historyControllerGetVideoAccessRemainingTime(e.userId,e.videoId,e.domainId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerCreateLibbyClickthroughEvent(e,t){return ku(this.configuration).institutionControllerCreateLibbyClickthroughEvent(e.domainId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerGetInstitution(e,t){return ku(this.configuration).institutionControllerGetInstitution(e.domainId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerGetInstitutionBySubdomain(e,t){return ku(this.configuration).institutionControllerGetInstitutionBySubdomain(e.subdomain,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerGetMissingInstitutions(e,t){return ku(this.configuration).institutionControllerGetMissingInstitutions(e.query,e.xVersion,e.type,t).then(e=>e(this.axios,this.basePath))}institutionControllerGetWayfGroup(e,t){return ku(this.configuration).institutionControllerGetWayfGroup(e.groupIdentifier,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerListBannersByDomainId(e,t){return ku(this.configuration).institutionControllerListBannersByDomainId(e.domainId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}institutionControllerSearchInstitutions(e,t){return ku(this.configuration).institutionControllerSearchInstitutions(e.query,e.xVersion,e.limit,t).then(e=>e(this.axios,this.basePath))}kapiAuthcodeControllerGenerateAuthcode(e,t){return ku(this.configuration).kapiAuthcodeControllerGenerateAuthcode(e.xVersion,e.createAuthcodeRequestDto,t).then(e=>e(this.axios,this.basePath))}kapiAuthcodeControllerGetAuthcode(e,t){return ku(this.configuration).kapiAuthcodeControllerGetAuthcode(e.authcode,e.xVersion,t).then(e=>e(this.axios,this.basePath))}kapiAuthcodeControllerUpdateAuthcode(e,t){return ku(this.configuration).kapiAuthcodeControllerUpdateAuthcode(e.authcode,e.xVersion,e.updateAuthcodeRequestDto,t).then(e=>e(this.axios,this.basePath))}licensesControllerCreateLicense(e,t){return ku(this.configuration).licensesControllerCreateLicense(e.licenseType,e.drmLicenseId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}loginControllerLogin(e,t){return ku(this.configuration).loginControllerLogin(e.loginUserRequestDto,t).then(e=>e(this.axios,this.basePath))}logoutControllerLogout(e,t){return ku(this.configuration).logoutControllerLogout(e.xVersion,t).then(e=>e(this.axios,this.basePath))}manifestControllerGetManifest(e,t){return ku(this.configuration).manifestControllerGetManifest(e.manifestType,e.videoIdWithExt,e.captions,t).then(e=>e(this.axios,this.basePath))}membershipControllerConnectIdentityToUser(e,t){return ku(this.configuration).membershipControllerConnectIdentityToUser(e.xVersion,e.connectIdentityRequestDto,t).then(e=>e(this.axios,this.basePath))}membershipControllerCreateMembership(e,t){return ku(this.configuration).membershipControllerCreateMembership(e.xVersion,e.createMembershipDto,t).then(e=>e(this.axios,this.basePath))}membershipControllerDeleteMembership(e,t){return ku(this.configuration).membershipControllerDeleteMembership(e.identityId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}membershipControllerGetOne(e,t){return ku(this.configuration).membershipControllerGetOne(e.identityId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}membershipControllerListMemberships(e,t){return ku(this.configuration).membershipControllerListMemberships(e.xVersion,e.userId,e.visitorId,t).then(e=>e(this.axios,this.basePath))}membershipControllerSwitchMembership(e,t){return ku(this.configuration).membershipControllerSwitchMembership(e.identityId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}membershipControllerUpdateDefaultMembership(e,t){return ku(this.configuration).membershipControllerUpdateDefaultMembership(e.identityId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}parentalControlControllerResetParentalControls(e,t){return ku(this.configuration).parentalControlControllerResetParentalControls(e.userId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}parentalControlControllerUpdateKids(e,t){return ku(this.configuration).parentalControlControllerUpdateKids(e.userId,e.xVersion,e.updateKidsDto,t).then(e=>e(this.axios,this.basePath))}parentalControlControllerUpdateParentalControls(e,t){return ku(this.configuration).parentalControlControllerUpdateParentalControls(e.userId,e.xVersion,e.updateParentalControlsDto,t).then(e=>e(this.axios,this.basePath))}playControllerGetVideoSources(e,t){return ku(this.configuration).playControllerGetVideoSources(e.playId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}playControllerStart(e,t){return ku(this.configuration).playControllerStart(e.xVersion,e.createPlayRequestDto,t).then(e=>e(this.axios,this.basePath))}playControllerWatch(e,t){return ku(this.configuration).playControllerWatch(e.playId,e.xVersion,e.updatePlayRequestDto,t).then(e=>e(this.axios,this.basePath))}playlistControllerCreateUserPlaylist(e,t){return ku(this.configuration).playlistControllerCreateUserPlaylist(e.xVersion,e.createUserPlaylistDto,t).then(e=>e(this.axios,this.basePath))}playlistControllerDeleteUserPlaylist(e,t){return ku(this.configuration).playlistControllerDeleteUserPlaylist(e.playlistId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}playlistControllerGetUserPlaylist(e,t){return ku(this.configuration).playlistControllerGetUserPlaylist(e.playlistId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}playlistControllerUpdateUserPlaylist(e,t){return ku(this.configuration).playlistControllerUpdateUserPlaylist(e.playlistId,e.xVersion,e.createUserPlaylistDto,t).then(e=>e(this.axios,this.basePath))}playlistItemControllerCreateUserPlaylistClip(e,t){return ku(this.configuration).playlistItemControllerCreateUserPlaylistClip(e.playlistId,e.xVersion,e.createUserPlaylistItemDto,e.domainId,t).then(e=>e(this.axios,this.basePath))}playlistItemControllerDeleteUserPlaylistClip(e,t){return ku(this.configuration).playlistItemControllerDeleteUserPlaylistClip(e.playlistId,e.itemId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}playlistItemControllerGetUserPlaylistItems(e,t){return ku(this.configuration).playlistItemControllerGetUserPlaylistItems(e.playlistId,e.domainId,e.xVersion,e.page,e.perPage,t).then(e=>e(this.axios,this.basePath))}playlistItemControllerUpdateUserPlaylistClip(e,t){return ku(this.configuration).playlistItemControllerUpdateUserPlaylistClip(e.playlistId,e.itemId,e.xVersion,e.updateUserPlaylistItemDto,t).then(e=>e(this.axios,this.basePath))}proxyTokenControllerGetProxyToken(e,t){return ku(this.configuration).proxyTokenControllerGetProxyToken(e.xVersion,e.userId,e.visitorId,t).then(e=>e(this.axios,this.basePath))}rflControllerSubmitRfl(e,t){return ku(this.configuration).rflControllerSubmitRfl(e.xVersion,e.rflDto,t).then(e=>e(this.axios,this.basePath))}rfpControllerSubmitRfp(e,t){return ku(this.configuration).rfpControllerSubmitRfp(e.domainId,e.xVersion,e.rfpDto,t).then(e=>e(this.axios,this.basePath))}searchControllerSearchTerms(e,t){return ku(this.configuration).searchControllerSearchTerms(e.query,e.domainId,e.xVersion,e.sort,e.isKids,e.page,e.perPage,t).then(e=>e(this.axios,this.basePath))}searchControllerSearchVideos(e,t){return ku(this.configuration).searchControllerSearchVideos(e.xVersion,e.query,e.sort,e.rfp,e.relatedTo,e.termFilter,e.languageFilter,e.pprFilter,e.captionsFilter,e.audioDescriptionFilter,e.productsOnly,e.captionsLanguageFilter,e.ticketFilter,e.domainId,e.webshopId,e.isKids,e.page,e.perPage,t).then(e=>e(this.axios,this.basePath))}shelfControllerGetShelf(e,t){return ku(this.configuration).shelfControllerGetShelf(e.shelfId,e.xVersion,e.domainId,e.webshopId,e.isKids,e.page,e.perPage,t).then(e=>e(this.axios,this.basePath))}shelfGroupControllerGetHomepage(e,t){return ku(this.configuration).shelfGroupControllerGetHomepage(e.domainId,e.xVersion,e.isKids,e.page,e.shelvesPerPage,e.videosPerShelf,t).then(e=>e(this.axios,this.basePath))}shelfGroupControllerGetTerm(e,t){return ku(this.configuration).shelfGroupControllerGetTerm(e.termId,e.xVersion,e.domainId,e.webshopId,e.isKids,e.page,e.shelvesPerPage,e.videosPerShelf,t).then(e=>e(this.axios,this.basePath))}shelfGroupControllerGetWebshopCatalog(e,t){return ku(this.configuration).shelfGroupControllerGetWebshopCatalog(e.webshopId,e.xVersion,e.isKids,e.page,e.shelvesPerPage,e.videosPerShelf,t).then(e=>e(this.axios,this.basePath))}termDataControllerGetTermData(e,t){return ku(this.configuration).termDataControllerGetTermData(e.termId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}termDataControllerGetTermFromSupplierAlias(e,t){return ku(this.configuration).termDataControllerGetTermFromSupplierAlias(e.alias,e.xVersion,t).then(e=>e(this.axios,this.basePath))}userControllerCreateUser(e,t){return ku(this.configuration).userControllerCreateUser(e.xVersion,e.createUserRequestDto,t).then(e=>e(this.axios,this.basePath))}userControllerDeleteUser(e,t){return ku(this.configuration).userControllerDeleteUser(e.userId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}userControllerGetOne(e,t){return ku(this.configuration).userControllerGetOne(e.userId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}userControllerResendActivationEmail(e,t){return ku(this.configuration).userControllerResendActivationEmail(e.userId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}userControllerResetUserPassword(e,t){return ku(this.configuration).userControllerResetUserPassword(e.xVersion,e.resetUserPasswordDto,t).then(e=>e(this.axios,this.basePath))}userControllerUpdateUser(e,t){return ku(this.configuration).userControllerUpdateUser(e.userId,e.xVersion,e.updateUserDto,t).then(e=>e(this.axios,this.basePath))}userControllerUpdateUserPassword(e,t){return ku(this.configuration).userControllerUpdateUserPassword(e.userId,e.xVersion,e.updateUserPasswordDto,t).then(e=>e(this.axios,this.basePath))}userControllerVerifyUser(e,t){return ku(this.configuration).userControllerVerifyUser(e.userId,e.xVersion,e.verifyUserDto,t).then(e=>e(this.axios,this.basePath))}userPlaylistControllerGetUserPlaylists(e,t){return ku(this.configuration).userPlaylistControllerGetUserPlaylists(e.userId,e.xVersion,e.page,e.perPage,t).then(e=>e(this.axios,this.basePath))}videoControllerGetAudioTracks(e,t){return ku(this.configuration).videoControllerGetAudioTracks(e.videoId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}videoControllerGetByAlias(e,t){return ku(this.configuration).videoControllerGetByAlias(e.alias,e.xVersion,e.domainId,e.webshopId,e.ageRatingDomainId,t).then(e=>e(this.axios,this.basePath))}videoControllerGetItems(e,t){return ku(this.configuration).videoControllerGetItems(e.videoId,e.xVersion,e.domainId,e.ageRatingDomainId,t).then(e=>e(this.axios,this.basePath))}videoControllerGetOne(e,t){return ku(this.configuration).videoControllerGetOne(e.videoId,e.xVersion,e.domainId,e.ageRatingDomainId,t).then(e=>e(this.axios,this.basePath))}videoControllerGetSyntheticPoster(e,t){return ku(this.configuration).videoControllerGetSyntheticPoster(e.videoId,t).then(e=>e(this.axios,this.basePath))}videoControllerGetVideoIdTranslation(e,t){return ku(this.configuration).videoControllerGetVideoIdTranslation(e.videoId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}watchlistControllerGetWatchlist(e,t){return ku(this.configuration).watchlistControllerGetWatchlist(e.userId,e.domainId,e.xVersion,e.isKids,t).then(e=>e(this.axios,this.basePath))}watchlistItemControllerAddWatchlistItem(e,t){return ku(this.configuration).watchlistItemControllerAddWatchlistItem(e.watchlistId,e.xVersion,e.createWatchlistItemDto,t).then(e=>e(this.axios,this.basePath))}watchlistItemControllerDeleteWatchlistItem(e,t){return ku(this.configuration).watchlistItemControllerDeleteWatchlistItem(e.watchlistId,e.itemId,e.xVersion,t).then(e=>e(this.axios,this.basePath))}watchlistItemControllerGetUserWatchlistItems(e,t){return ku(this.configuration).watchlistItemControllerGetUserWatchlistItems(e.watchlistId,e.domainId,e.page,e.perPage,e.xVersion,e.isKids,t).then(e=>e(this.axios,this.basePath))}}class Tu{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Su={id:1,code:"AU",name:"Australia"},xu={id:2,code:"US",name:"United States"},Eu={id:6,code:"CA",name:"Canada"},Iu={id:7,code:"NZ",name:"New Zealand"},Au={id:8,code:"GB",name:"United Kingdom"},Pu={id:10,code:"WW",name:"Worldwide"},Ou=[Su,xu,{id:4,code:"SG",name:"Singapore"},{id:5,code:"HK",name:"Hong Kong"},Eu,Iu,Au,{id:9,code:"EU",name:"Europe"},Pu,{id:11,code:"MB",name:"Middle East"}],Lu=Pu;class Du{isEnabled;sentryInstance;context;static instance=new Du;constructor(e){this.isEnabled=!0,null!=e&&this.initialize(e)}isInitialized(){return null!=this.sentryInstance&&this.sentryInstance.isInitialized()}initialize(e){this.sentryInstance=e.$sentry,this.context=e,this._adjustSentryHubVersion()}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}captureEvent(e){this._capture(e,"event")}captureException(e){this._capture(e,"exception")}captureMessage(e){this._capture(e,"message")}setSentryContext(e){this._adjustSentryHubVersion(),this.sentryInstance?.
7setUser({id:this.context?.$kuistore.getters["user/userId"],email:this._obfuscateEmail(this.context?.$kuistore.state.user.user?.email)}),this.sentryInstance?.setTags({vp:this.context?.$kuistore.getters["site/domain_stem"],visitorId:this.context?.$kapi?.getVisitorId()}),this.sentryInstance?.setContext("User",{userId:this.context?.$kuistore.getters["user/userId"],vp:this.context?.$kuistore.getters["site/domain_stem"],vpId:this.context?.$kuistore.state.site.domain?.domainId,visitorId:this.context?.$kapi?.getVisitorId(),hasParentalControlsOn:this.context?.$kuistore.getters["user/has_parental_control_on"],kidsMode:this.context?.$kuistore.getters["site/is_in_kids_mode"]}),this.sentryInstance?.setContext("Browser",{locale:ba.instance.currentLocaleCode(),pageHeight:window.innerHeight,pageWidth:window.innerWidth}),null!=e&&this.sentryInstance?.setContext("Error details",e)}_capture(e,t){if(this.isInitialized()){if(this.isEnabled)switch(this.setSentryContext(e.error_details),t){case"event":this.sentryInstance?.captureEvent(e);break;case"exception":const t=new Error(e.message);t.name=t.message,this.sentryInstance?.captureException(t);break;case"message":this.sentryInstance?.captureMessage(e)}}else;}_obfuscateEmail(e){if(null==e)return"";const t=e.split("@"),n=e.split(".").pop();return`${t[0].slice(0,2)}***${t[0].slice(-1)}@${t[1].slice(0,2)}***.${n}`}_adjustSentryHubVersion(){null!=window.__SENTRY__&&(window.__SENTRY__.hub._version=100)}}class Ru{static showSPALoadingError(e){const t="spa-loading-error";let n=document.getElementById(t);if(null==n){const e=document.getElementById("__nuxt");n=document.createElement("div"),n.id=t,n.style.textAlign="center";const r=document.createElement("h5");r.className="spa-loading-error-message",r.textContent="Sorry. An unexpected error occurred.",r.style.marginTop="24px",r.style.fontWeight="600";const i=document.createElement("p");i.className="spa-loading-error-reason",i.style.marginTop="24px";const s=document.createElement("p");s.className="spa-loading-error-hint",s.textContent="Try ",s.style.marginTop="24px";const o=document.createElement("a");o.href=document.location.href,o.textContent="refreshing this page",o.style.color="#DE3F00",o.style.fontWeight="600",o.style.textDecoration="underline";const a=document.createElement("span");a.textContent=". If the problem persists, ";const l=document.createElement("a");l.href="https://survey.alchemer.com/s3/6586124/Kanopy-Support-Form",l.textContent="contact our support",l.style.color="#DE3F00",l.style.fontWeight="600",l.style.textDecoration="underline",s.appendChild(o),s.appendChild(a),s.appendChild(l),n.appendChild(r),n.appendChild(i),n.appendChild(s),e?.appendChild(n)}const r=n.getElementsByClassName("spa-loading-error-reason").item(0);null!=r&&(r.textContent=e.userMessaging?.message??"");const i=document.getElementsByClassName("spinner").item(0);null!=i&&(i.style.display="none"),document.documentElement.style.height="100%",document.body.style.height="100%",document.body.style.display="flex",document.body.style.flexDirection="column",document.body.style.justifyContent="center";const s=document.getElementById("app-loader");null!=s&&s.classList.remove("loading-container")}}var Mu=(e=>(e.GlobalPlayerPlayNext="global_player:play_next",e.GlobalPlayerNavVideoPage="global_player:nav:video_page",e.LiveRegionUpdate="live_region:update",e.A11yHideMainContent="a11y:
7hide_main_content",e.A11yShowMainContent="a11y:show_main_content",e.ToasterPopToast="toaster:pop_toast",e))(Mu||{}),Nu={};class ju{kapiUrl;isKapiHandshaked;initializationListeners;kapiHandshakeRefresh;kapiToken;visitorId;static XVersion=`web/${Nu.ENV_NAME}/${Nu.VERSION}/${Nu.BUILD_DATE}`;constructor(e){this.kapiUrl=e.env.KAPI_URL.replace("[kui_origin]",window.location.origin),this.isKapiHandshaked=!1,this.initializationListeners={},this.kapiHandshakeRefresh=void 0,this.kapiToken=void 0,this.visitorId=void 0,this.initializeAPI()}isInitialized(){return!Va.isEmpty(this.kapiUrl)&&this.isKapiHandshaked}instance(){const e=this.getToken(),t=new Tu({accessToken:e});return new Cu(t,this.kapiUrl)}static staticInstance(e){const t=Ba.instance.get(Ua.kapi_token.name)?.toString(),n=new Tu({accessToken:t});return new Cu(n,e.env.KAPI_URL.replace("[kui_origin]",window.location.origin))}setToken(e){if(null!=e){const t=Ua.kapi_token;t.value=e,Ba.instance.set(t),this.kapiToken=e;const n=Ua.token_set;n.value=new Date,n.opts.expires=Oa.minutesFromNow(Da),Ba.instance.set(n),this.scheduleNextAPIHandshake()}else Ba.instance.delete(Ua.kapi_token),Ba.instance.delete(Ua.token_set),Ba.instance.delete(Ua.kids),this.kapiToken=void 0,this.initializeAPI()}getVisitorId(){const e=Ba.instance.get(Ua.visitor_id.name)||this.visitorId;return null!=e?e.toString():void 0}getToken(){return Ba.instance.get(Ua.kapi_token.name)?.toString()||this.kapiToken}static unwrapKapiError(e){if(void 0===e)return{httpCode:-1};if("string"==typeof e)return{httpCode:-1,userMessaging:{message:e}};if(null!=e.response&&null!=e.response.data){return e.response.data}if(Oc.isAxiosError(e)){return{httpCode:null==e.code?e.response?.status??-1:Number(e.code),userMessaging:{message:e.response?.statusText??e.message}}}if(null!=e.httpCode)return e;if(null!=e.name&&null!=e.message){const t=e;return{httpCode:-1,userMessaging:{message:`${t.name} - ${t.message}`}}}return{httpCode:-1,userMessaging:{message:JSON.stringify(e,null,2)}}}subscribeInit(e){const t=""+ ++Ka;return this.initializationListeners[t]=e,t}unsubscribeInit(e){this.initializationListeners[e]=void 0}getKAPIUrl(){return this.kapiUrl}async initializeAPI(){let e;this.needNewHandshake()?e=await this.handshakeAPI():(e=this.initializeLocal(),this.scheduleNextAPIHandshake(20)),null!=e&&(this.isKapiHandshaked=!0,Object.values(this.initializationListeners).forEach(t=>{if(null!=t)try{t(e)}catch(n){console.error(`kapi init listener exception: ${n}`)}}))}async handshakeAPI(){try{const e=await this.instance().handshakeControllerGenerateToken({xVersion:ju.XVersion});this.setToken(e.data.jwt);const t=Ua.visitor_id;t.value=e.data.visitorId,Ba.instance.set(t),this.visitorId=e.data.visitorId;const n=Ou.find(t=>t.id===e.data.webshopId)??Lu,r=Ua.webshop;if(r.value=n,Ba.instance.set(r),null!=e.data.userId){const t=Ua.uid;t.value=e.data.userId.toString(),Ba.instance.set(t)}else Ba.instance.delete(Ua.uid);return Promise.resolve(e.data)}catch(e){const t=ju.unwrapKapiError(e);return Du.instance.captureException({message:"KAPI handshake error",error_details:t}),401===t.httpCode?this.setToken(void 0):Ru.showSPALoadingError(t),Promise.reject(t)}}initializeLocal(){const e=(Ba.instance.get(Ua.kapi_token.name)||this.kapiToken)??"",t=(Ba.instance.get(Ua.visitor_id.name)||this.visitorId)??"",n=Ba.instance.get(Ua.uid.name),r=Ba.instance.get(Ua.webshop.name)??Lu,i=wa.parse(Ba.instance.get(Ua.kids.name));return{jwt:e,visitorId:t,userId:null==n?void 0:Number(n),kanopyKidsEnabled:i,webshopCode:r.code,webshopId:r.id}}scheduleNextAPIHandshake(e=24){null!=this.kapiHandshakeRefresh&&clearTimeout(this.kapiHandshakeRefresh),this.kapiHandshakeRefresh=window.setTimeout(()=>{this.handshakeAPI().then(()=>{}).catch(()=>{window.location.reload()})},60*e*60*1e3)}needNewHandshake(){return null==Ba.instance.get(Ua.token_set.name)||null==Ba.instance.get(Ua.kapi_token.name)}}async function Uu(e){const t=e.$kuistore.getters["site/domain_id"];if(null==t)return;if(e.$kuistore.getters["user/has_active_membership_on_current_domain"])return;if(!e.$kuistore.getters["user/has_user_account_logged_in"]){const n=function(e,t){const n={...Ua.visitor_identity};n.name=`${t}_${e}_${Ua.visitor_identity.name}`;const r=Ba.instance.get(n)??"",i=Ha.parse(r);return isNaN(i)?void 0:i}(e.$kapi.getVisitorId()??"",t);if(null!=n)try{const t=await e.$kapi.instance().membershipControllerGetOne({identityId:n,xVersion:ju.XVersion});return void e.$kuistore.commit("user/add_membership",t.data)}catch{}}if(Aa.path_without_vp_subpath(e.route).startsWith("/signup/auth"))return;const n=e.$kuistore.state.site.domain?.authMethods.find(e=>e.authMethod===iu.Refurl);if(n&&!Va.isEmpty(document.referrer)){const n={authMethod:Yc.Refurl,domainId:t,refurlAuth:{referrerUrl:document.referrer}};try{await e.$kuistore.dispatch("onboarding/create_membership",n)}catch(o){}}const r=e.$kuistore.state.site.domain?.authMethods.find(e=>e.authMethod===iu.Ip),i=e.$kuistore.state.site.domain?.authMethods.find(e=>e.authMethod===iu.Vpn);if(!r&&!i)return;const s={authMethod:r?Yc.Ip:Yc.Vpn,domainId:t};try{await e.$kuistore.dispatch("onboarding/create_membership",s)}catch(o){}}const $u={disallow_subdomain:!1,disallow_redirect_to_subpath:!1,logged_in:!1,logged_out:!1,no_membership:!1,deleted_domain:!1,no_membership_on_domain:!1,active_membership_on_domain:!1,non_active_membership_on_domain:!1,is_in_adult:!1,is_in_kids:!1,has_enabled_kids:!1,has_disabled_kids:!1,disallow_force_login:!1},Bu={logged_in_checker:(e,t)=>!!e.$kuistore.getters["user/has_user_account_logged_in"]&&t(e),logged_out_checker:(e,t)=>!e.$kuistore.getters["user/has_user_account_logged_in"]&&t(e),active_membership_on_domain_checker:(e,t)=>!!e.$kuistore.getters["user/has_active_membership_on_current_domain"]&&t(e),non_active_membership_on_domain_checker:(e,t)=>!(!e.$kuistore.getters["user/has_membership_on_current_domain"]||e.$kuistore.getters["user/has_active_membership_on_current_domain"])&&t(e),no_membership_on_domain_checker:(e,t)=>!e.$kuistore.getters["user/has_membership_on_current_domain"]&&t(e),no_membership_checker:(e,t)=>!(!e.$kuistore.getters["user/has_user_account_logged_in"]||0!==(e.$kuistore.state.user.memberships?.length??0))&&t(e),is_in_adult_checker:(e,t)=>!e.$kuistore.state.site.is_in_kids_mode&&t(e),is_in_kids_checker:(e,t)=>!!e.$kuistore.state.site.is_in_kids_mode&&t(e),has_enabled_kids_checker:(e,t)=>!!e.$kuistore.state.site.domain?.hasKids&&t(e),has_disabled_kids_checker:(e,t)=>!(e.$kuistore.state.site.domain?.hasKids??1)&&t(e),disallow_force_login_checker:(e,t)=>{const n=e.$kuistore.state.site.domain?.isUserRequiredToPlay??!1,r=e.$kuistore.getters["user/has_user_account_logged_in"];return!(!n||r)&&t(e)},disallow_redirect_to_subpath_checker:(e,t)=>!!Aa.is_on_default_subpath(e.route)&&t(e),deleted_domain_checker:(e,t)=>e.$kuistore.getters["site/domain"]?.status===Qc&&t(e),disallow_subdomain_checker:(e,t)=>!!window.location.hostname.toLowerCase().includes("passwordreset")&&(t(e),!0)};var Fu={}; 8/** 9 * @license 10 * Copyright 2017 Google LLC 11 * 12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License. 14 * You may obtain a copy of the License at 15 * 16 * http://www.apache.org/licenses/LICENSE-2.0 17 * 18 * Unless required by applicable law or agreed to in writing, software 19 * distributed under the License is distributed on an "AS IS" BASIS, 20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 * See the License for the specific language governing permissions and 22 * limitations under the License. 23 */const qu=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Vu={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],s=i+1<e.length,o=s?e[i+1]:0,a=i+2<e.length,l=a?e[i+2]:0,c=t>>2,u=(3&t)<<4|o>>4;let d=(15&o)<<2|l>>6,h=63&l;a||(h=64,s||(d=64)),r.push(n[c],n[u],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(qu(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],s=i<e.length?n[e.charAt(i)]:0;++i;const o=i<e.length?n[e.charAt(i)]:64;++i;const a=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==s||null==o||null==a)throw new Hu;const l=t<<2|s>>4;if(r.push(l),64!==o){const e=s<<4&240|o>>2;if(r.push(e),64!==a){const e=o<<6&192|a;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class Hu extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const zu=function(e){return function(e){const t=qu(e);return Vu.encodeByteArray(t,!0)}(e).replace(/\./g,"")},Gu=function(e){try{return Vu.decodeString(e,!0)}catch(CL){console.error("base64Decode failed: ",CL)}return null}; 24/** 25 * @license 26 * Copyright 2022 Google LLC 27 * 28 * Licensed under the Apache License, Version 2.0 (the "License"); 29 * you may not use this file except in compliance with the License. 30 * You may obtain a copy of the License at 31 * 32 * http://www.apache.org/licenses/LICENSE-2.0 33 * 34 * Unless required by applicable law or agreed to in writing, software 35 * distributed under the License is distributed on an "AS IS" BASIS, 36 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 37 * See the License for the specific language governing permissions and 38 * limitations under the License. 39 */ 40const Ku=()=> 41/** 42 * @license 43 * Copyright 2022 Google LLC 44 * 45 * Licensed under the Apache License, Version 2.0 (the "License");
46 * you may not use this file except in compliance with the License. 47 * You may obtain a copy of the License at 48 * 49 * http://www.apache.org/licenses/LICENSE-2.0 50 * 51 * Unless required by applicable law or agreed to in writing, software 52 * distributed under the License is distributed on an "AS IS" BASIS, 53 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 54 * See the License for the specific language governing permissions and 55 * limitations under the License. 56 */ 57function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Wu=()=>{try{return Ku()||(()=>{if(void 0===Sl)return;const e=Fu.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(CL){return}const t=e&&Gu(e[1]);return t&&JSON.parse(t)})()}catch(CL){return}},Xu=e=>Wu()?.emulatorHosts?.[e],Yu=()=>Wu()?.config,Zu=e=>Wu()?.[`_${e}`]; 58/** 59 * @license 60 * Copyright 2017 Google LLC 61 * 62 * Licensed under the Apache License, Version 2.0 (the "License"); 63 * you may not use this file except in compliance with the License. 64 * You may obtain a copy of the License at 65 * 66 * http://www.apache.org/licenses/LICENSE-2.0 67 * 68 * Unless required by applicable law or agreed to in writing, software 69 * distributed under the License is distributed on an "AS IS" BASIS, 70 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 71 * See the License for the specific language governing permissions and 72 * limitations under the License. 73 */ 74class Ju{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}} 75/** 76 * @license 77 * Copyright 2017 Google LLC 78 * 79 * Licensed under the Apache License, Version 2.0 (the "License"); 80 * you may not use this file except in compliance with the License. 81 * You may obtain a copy of the License at 82 * 83 * http://www.apache.org/licenses/LICENSE-2.0 84 * 85 * Unless required by applicable law or agreed to in writing, software 86 * distributed under the License is distributed on an "AS IS" BASIS, 87 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 88 * See the License for the specific language governing permissions and 89 * limitations under the License. 90 */function Qu(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ed(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Qu())}function td(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function nd(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function rd(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function id(){const e=Qu();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function sd(){try{return"object"==typeof indexedDB}catch(CL){return!1}}function od(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(n){t(n)}})}class ad extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,ad.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ld.prototype.create)}}class ld{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],s=i?function(e,t){return e.replace(cd,(e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`})}(i,n):"Error",o=`${this.serviceName}: ${s} (${r}).`;return new ad(r,o,n)}}const cd=/\{\$([^}]+)}/g;function ud(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function dd(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],s=t[i];if(hd(n)&&hd(s)){if(!dd(n,s))return!1}else if(n!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function hd(e){return null!==e&&"object"==typeof e} 91/** 92 * @license 93 * Copyright 2017 Google LLC 94 * 95 * Licensed under the Apache License, Version 2.0 (the "License");
96 * you may not use this file except in compliance with the License. 97 * You may obtain a copy of the License at 98 * 99 * http://www.apache.org/licenses/LICENSE-2.0 100 * 101 * Unless required by applicable law or agreed to in writing, software 102 * distributed under the License is distributed on an "AS IS" BASIS, 103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 104 * See the License for the specific language governing permissions and 105 * limitations under the License. 106 */function pd(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function fd(e,t){const n=new md(e,t);return n.subscribe.bind(n)}class md{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=_d),void 0===r.error&&(r.error=_d),void 0===r.complete&&(r.complete=_d);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(CL){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(CL){"undefined"!=typeof console&&console.error&&console.error(CL)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function _d(){} 107/** 108 * @license 109 * Copyright 2019 Google LLC 110 * 111 * Licensed under the Apache License, Version 2.0 (the "License"); 112 * you may not use this file except in compliance with the License. 113 * You may obtain a copy of the License at 114 * 115 * http://www.apache.org/licenses/LICENSE-2.0 116 * 117 * Unless required by applicable law or agreed to in writing, software 118 * distributed under the License is distributed on an "AS IS" BASIS, 119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120 * See the License for the specific language governing permissions and 121 * limitations under the License. 122 */function gd(e,t=1e3,n=2){const r=t*Math.pow(n,e),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+i)} 123/** 124 * @license 125 * Copyright 2021 Google LLC 126 * 127 * Licensed under the Apache License, Version 2.0 (the "License"); 128 * you may not use this file except in compliance with the License. 129 * You may obtain a copy of the License at 130 * 131 * http://www.apache.org/licenses/LICENSE-2.0 132 * 133 * Unless required by applicable law or agreed to in writing, software 134 * distributed under the License is distributed on an "AS IS" BASIS, 135 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 136 * See the License for the specific language governing permissions and 137 * limitations under the License. 138 */function yd(e){return e&&e._delegate?e._delegate:e} 139/** 140 * @license 141 * Copyright 2025 Google LLC 142 * 143 * Licensed under the Apache License, Version 2.0 (the "License"); 144 * you may not use this file except in compliance with the License. 145 * You may obtain a copy of the License at 146 * 147 * http://www.apache.org/licenses/LICENSE-2.0 148 * 149 * Unless required by applicable law or agreed to in writing, softw
149are 150 * distributed under the License is distributed on an "AS IS" BASIS, 151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 152 * See the License for the specific language governing permissions and 153 * limitations under the License. 154 */function vd(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function bd(e){return(await fetch(e,{credentials:"include"})).ok}let wd=class{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}; 155/** 156 * @license 157 * Copyright 2019 Google LLC 158 * 159 * Licensed under the Apache License, Version 2.0 (the "License"); 160 * you may
vendor: 5,608 bytes, lines 160-207
160not use this file except in compliance with the License. 161 * You may obtain a copy of the License at 162 * 163 * http://www.apache.org/licenses/LICENSE-2.0 164 * 165 * Unless required by applicable law or agreed to in writing, software 166 * distributed under the License is distributed on an "AS IS" BASIS, 167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 168 * See the License for the specific language governing permissions and 169 * limitations under the License. 170 */const kd="[DEFAULT]"; 171/** 172 * @license 173 * Copyright 2019 Google LLC 174 * 175 * Licensed under the Apache License, Version 2.0 (the "License"); 176 * you may not use this file except in compliance with the License. 177 * You may obtain a copy of the License at 178 * 179 * http://www.apache.org/licenses/LICENSE-2.0 180 * 181 * Unless required by applicable law or agreed to in writing, software 182 * distributed under the License is distributed on an "AS IS" BASIS, 183 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 184 * See the License for the specific language governing permissions and 185 * limitations under the License. 186 */class Cd{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new Ju;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(CL){}}return this.instancesDeferred.get(t).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(CL){if(n)return null;throw CL}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode} 187/** 188 * @license 189 * Copyright 2019 Google LLC 190 * 191 * Licensed under the Apache License, Version 2.0 (the "License"); 192 * you may not use this file except in compliance with the License. 193 * You may obtain a copy of the License at 194 * 195 * http://www.apache.org/licenses/LICENSE-2.0 196 * 197 * Unless required by applicable law or agreed to in writing, software 198 * distributed under the License is distributed on an "AS IS" BASIS, 199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 * See the License for the specific language governing permissions and 201 * limitations under the License. 202 */(e))try{this.getOrInitializeService({instanceIdentifier:kd})}catch(CL){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(CL){}}}}clearInstance(e=kd){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=kd){return this.instances.has(e)}getOptions(e=kd){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,s]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&s.resolve(r)}return r}onInit(e,t){const n=this.normalizeInstanceIdentifier(t),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);const i=this.instances.get(n);return i&&e(i,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===kd?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}var r;return n||null}normalizeInstanceIdentifier(e=kd){return this.component?this.component.multipleInstances?e:kd:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Td{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new Cd(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}} 203/** 204 * @license 205 * Copyright 2017 Google LLC 206 * 207 * Licensed under the Apache License, Version 2.0 (the "License");
208 * you may not use this file except in compliance with the License. 209 * You may obtain a copy of the License at 210 * 211 * http://www.apache.org/licenses/LICENSE-2.0 212 * 213 * Unless required by applicable law or agreed to in writing, software 214 * distributed under the License is distributed on an "AS IS" BASIS, 215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 216 * See the License for the specific language governing permissions and 217 * limitations under the License. 218 */var Sd,xd;(xd=Sd||(Sd={}))[xd.DEBUG=0]="DEBUG",xd[xd.VERBOSE=1]="VERBOSE",xd[xd.INFO=2]="INFO",xd[xd.WARN=3]="WARN",xd[xd.ERROR=4]="ERROR",xd[xd.SILENT=5]="SILENT";const Ed={debug:Sd.DEBUG,verbose:Sd.VERBOSE,info:Sd.INFO,warn:Sd.WARN,error:Sd.ERROR,silent:Sd.SILENT},Id=Sd.INFO,Ad={[Sd.DEBUG]:"log",[Sd.VERBOSE]:"log",[Sd.INFO]:"info",[Sd.WARN]:"warn",[Sd.ERROR]:"error"},Pd=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=Ad[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}] ${e.name}:`,...n)};class Od{constructor(e){this.name=e,this._logLevel=Id,this._logHandler=Pd,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Sd))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?Ed[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Sd.DEBUG,...e),this._logHandler(this,Sd.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Sd.VERBOSE,...e),this._logHandler(this,Sd.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Sd.INFO,...e),this._logHandler(this,Sd.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Sd.WARN,...e),this._logHandler(this,Sd.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Sd.ERROR,...e),this._logHandler(this,Sd.ERROR,...e)}}let Ld,Dd;const Rd=new WeakMap,Md=new WeakMap,Nd=new WeakMap,jd=new WeakMap,Ud=new WeakMap;let $d={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Md.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Nd.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return qd(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Bd(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Dd||(Dd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Vd(this),t),qd(Rd.get(this))}:function(...t){return qd(e.apply(Vd(this),t))}:function(t,...n){const r=e.call(Vd(this),t,...n);return Nd.set(r,t.sort?t.sort():[t]),qd(r)}}function Fd(e){return"function"==typeof e?Bd(e):(e instanceof IDBTransaction&&function(e){if(Md.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});Md.set(e,t)}(e),t=e,(Ld||(Ld=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,$d):e);var t}function qd(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(qd(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&Rd.set(t,e)}).catch(()=>{}),Ud.set(t,e),t}(e);if(jd.has(e))return jd.get(e);const t=Fd(e);return t!==e&&(jd.set(e,t),Ud.set(t,e)),t}const Vd=e=>Ud.get(e);function Hd(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(e,t),a=qd(o);return r&&o.addEventListener("upgradeneeded",e=>{r(qd(o.result),e.oldVersion,e.newVersion,qd(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}const zd=["get","getKey","getAll","getAllKeys","count"],Gd=["put","add","delete","clear"],Kd=new Map;function Wd(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Kd.get(t))return Kd.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Gd.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!zd.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,i?"readwrite":"readonly");let o=s.store;
vendor: 4,130 bytes, lines 218-251
218return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&s.done]))[0]};return Kd.set(t,s),s}$d=(e=>({...e,get:(t,n,r)=>Wd(t,n)||e.get(t,n,r),has:(t,n)=>!!Wd(t,n)||e.has(t,n)}))($d); 219/** 220 * @license 221 * Copyright 2019 Google LLC 222 * 223 * Licensed under the Apache License, Version 2.0 (the "License"); 224 * you may not use this file except in compliance with the License. 225 * You may obtain a copy of the License at 226 * 227 * http://www.apache.org/licenses/LICENSE-2.0 228 * 229 * Unless required by applicable law or agreed to in writing, software 230 * distributed under the License is distributed on an "AS IS" BASIS, 231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 232 * See the License for the specific language governing permissions and 233 * limitations under the License. 234 */ 235class Xd{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const Yd="@firebase/app",Zd="0.15.1",Jd=new Od("@firebase/app"),Qd="@firebase/app-compat",eh="@firebase/analytics-compat",th="@firebase/analytics",nh="@firebase/app-check-compat",rh="@firebase/app-check",ih="@firebase/auth",sh="@firebase/auth-compat",oh="@firebase/database",ah="@firebase/data-connect",lh="@firebase/database-compat",ch="@firebase/functions",uh="@firebase/functions-compat",dh="@firebase/installations",hh="@firebase/installations-compat",ph="@firebase/messaging",fh="@firebase/messaging-compat",mh="@firebase/performance",_h="@firebase/performance-compat",gh="@firebase/remote-config",yh="@firebase/remote-config-compat",vh="@firebase/storage",bh="@firebase/storage-compat",wh="@firebase/firestore",kh="@firebase/ai",Ch="@firebase/firestore-compat",Th="firebase",Sh="[DEFAULT]",xh={[Yd]:"fire-core",[Qd]:"fire-core-compat",[th]:"fire-analytics",[eh]:"fire-analytics-compat",[rh]:"fire-app-check",[nh]:"fire-app-check-compat",[ih]:"fire-auth",[sh]:"fire-auth-compat",[oh]:"fire-rtdb",[ah]:"fire-data-connect",[lh]:"fire-rtdb-compat",[ch]:"fire-fn",[uh]:"fire-fn-compat",[dh]:"fire-iid",[hh]:"fire-iid-compat",[ph]:"fire-fcm",[fh]:"fire-fcm-compat",[mh]:"fire-perf",[_h]:"fire-perf-compat",[gh]:"fire-rc",[yh]:"fire-rc-compat",[vh]:"fire-gcs",[bh]:"fire-gcs-compat",[wh]:"fire-fst",[Ch]:"fire-fst-compat",[kh]:"fire-vertex","fire-js":"fire-js",[Th]:"fire-js-all"},Eh=new Map,Ih=new Map,Ah=new Map;function Ph(e,t){try{e.container.addComponent(t)}catch(CL){Jd.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,CL)}}function Oh(e){const t=e.name;if(Ah.has(t))return Jd.debug(`There were multiple attempts to register component ${t}.`),!1;Ah.set(t,e);for(const n of Eh.values())Ph(n,e);for(const n of Ih.values())Ph(n,e);return!0}function Lh(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Dh(e){return null!=e&&void 0!==e.settings} 236/** 237 * @license 238 * Copyright 2019 Google LLC 239 * 240 * Licensed under the Apache License, Version 2.0 (the "License"); 241 * you may not use this file except in compliance with the License. 242 * You may obtain a copy of the License at 243 * 244 * http://www.apache.org/licenses/LICENSE-2.0 245 * 246 * Unless required by applicable law or agreed to in writing, software 247 * distributed under the License is distributed on an "AS IS" BASIS, 248 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 249 * See the License for the specific language governing permissions and 250 * limitations under the License. 251 */const Rh=new ld("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
251d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."}); 252/** 253 * @license 254 * Copyright 2019 Google LLC 255 * 256 * Licensed under the Apache License, Version 2.0 (the "License"); 257 * you may not use this file except in compliance with the License. 258 * You may obtain a copy of the License at 259 * 260 * http://www.apache.org/licenses/LICENSE-2.0 261 * 262 * Unless required by applicable law or agreed to in writing, software 263 * distributed under the License is distributed on an "AS IS" BASIS, 264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 265 * See the License for the specific language governing permissions and 266 * limitations under the License. 267 */ 268class Mh{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new wd("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Rh.create("app-deleted",{appName:this._name})}} 269/** 270 * @license 271 * Copyright 2019 Google LLC 272 * 273 * Licensed under the Apache License, Version 2.0 (the "License"); 274 * you may not use this file except in compliance with the License. 275 * You may obtain a copy of the License at 276 * 277 * http://www.apache.org/licenses/LICENSE-2.0 278 * 279 * Unless required by applicable law or agreed to in writing, software 280 * distributed under the License is distributed on an "AS IS" BASIS, 281 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 282 * See the License for the specific language governing permissions and 283 * limitations under the License. 284 */const Nh="12.16.0";function jh(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r={name:Sh,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw Rh.create("bad-app-name",{appName:String(i)});if(n||(n=Yu()),!n)throw Rh.create("no-options");const s=Eh.get(i);if(s){if(dd(n,s.options)&&dd(r,s.config))return s;throw Rh.create("duplicate-app",{appName:i})}const o=new Td(i);for(const l of Ah.values())o.addComponent(l);const a=new Mh(n,r,o);return Eh.set(i,a),a}function Uh(e=Sh){const t=Eh.get(e);if(!t&&e===Sh&&Yu())return jh();if(!t)throw Rh.create("no-app",{appName:e});return t}function $h(e,t,n){let r=xh[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${r}" with version "${t}":`];return i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Jd.warn(e.join(" "))}Oh(new wd(`${r}-version`,()=>({library:r,version:t}),"VERSION"))} 285/** 286 * @license 287 * Copyright 2021 Google LLC 288 * 289 * Licensed under the Apache License, Version 2.0 (the "License"); 290 * you may not use this file except in compliance with the License. 291 * You may obtain a copy of the License at 292 * 293 * http://www.apache.org/licenses/LICENSE-2.0 294 * 295 * Unless required by applicable law or agreed to in writing, softw
vendor: 6,049 bytes, lines 295-337
295are 296 * distributed under the License is distributed on an "AS IS" BASIS, 297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 298 * See the License for the specific language governing permissions and 299 * limitations under the License. 300 */const Bh="firebase-heartbeat-store";let Fh=null;function qh(){return Fh||(Fh=Hd("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Bh)}catch(CL){}}}).catch(e=>{throw Rh.create("idb-open",{originalErrorMessage:e.message})})),Fh}async function Vh(e,t){try{const n=(await qh()).transaction(Bh,"readwrite"),r=n.objectStore(Bh);await r.put(t,Hh(e)),await n.done}catch(CL){if(CL instanceof ad)Jd.warn(CL.message);else{const t=Rh.create("idb-set",{originalErrorMessage:CL?.message});Jd.warn(t.message)}}}function Hh(e){return`${e.name}!${e.options.appId}`} 301/** 302 * @license 303 * Copyright 2021 Google LLC 304 * 305 * Licensed under the Apache License, Version 2.0 (the "License"); 306 * you may not use this file except in compliance with the License. 307 * You may obtain a copy of the License at 308 * 309 * http://www.apache.org/licenses/LICENSE-2.0 310 * 311 * Unless required by applicable law or agreed to in writing, software 312 * distributed under the License is distributed on an "AS IS" BASIS, 313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 314 * See the License for the specific language governing permissions and 315 * limitations under the License. 316 */class zh{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Kh(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=Gh();if(null==this._heartbeatsCache?.heartbeats&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t} 317/** 318 * @license 319 * Copyright 2019 Google LLC 320 * 321 * Licensed under the Apache License, Version 2.0 (the "License"); 322 * you may not use this file except in compliance with the License. 323 * You may obtain a copy of the License at 324 * 325 * http://www.apache.org/licenses/LICENSE-2.0 326 * 327 * Unless required by applicable law or agreed to in writing, software 328 * distributed under the License is distributed on an "AS IS" BASIS, 329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 330 * See the License for the specific language governing permissions and 331 * limitations under the License. 332 */(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(CL){Jd.warn(CL)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats||0===this._heartbeatsCache.heartbeats.length)return"";const e=Gh(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),Wh(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Wh(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=zu(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(CL){return Jd.warn(CL),""}}}function Gh(){return(new Date).toISOString().substring(0,10)}class Kh{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!sd()&&od().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await qh()).transaction(Bh),n=await t.objectStore(Bh).get(Hh(e));return await t.done,n}catch(CL){if(CL instanceof ad)Jd.warn(CL.message);else{const t=Rh.create("idb-get",{originalErrorMessage:CL?.message});Jd.warn(t.message)}}}(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return Vh(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return Vh(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function Wh(e){return zu(JSON.stringify({version:2,heartbeats:e})).length}var Xh;Xh="",Oh(new wd("platform-logger",e=>new Xd(e),"PRIVATE")),Oh(new wd("heartbeat",e=>new zh(e),"PRIVATE")),$h(Yd,Zd,Xh),$h(Yd,Zd,"esm2020"),$h("fire-js","");const Yh="@firebase/installations",Zh="0.6.22",Jh=1e4,Qh=`w:${Zh}`,ep="FIS_v2",tp=36e5,np=new ld("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function rp(e){return e instanceof ad&&e.code.includes("request-failed")} 333/** 334 * @license 335 * Copyright 2019 Google LLC 336 * 337 * Licensed under the Apache License, Version 2.0 (the "License");
338 * you may not use this file except in compliance with the License. 339 * You may obtain a copy of the License at 340 * 341 * http://www.apache.org/licenses/LICENSE-2.0 342 * 343 * Unless required by applicable law or agreed to in writing, software 344 * distributed under the License is distributed on an "AS IS" BASIS, 345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 346 * See the License for the specific language governing permissions and 347 * limitations under the License. 348 */function ip({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function sp(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function op(e,t){const n=(await t.json()).error;return np.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function ap({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function lp(e,{refreshToken:t}){const n=ap(e);return n.append("Authorization",function(e){return`${ep} ${e}`} 349/** 350 * @license 351 * Copyright 2019 Google LLC 352 * 353 * Licensed under the Apache License, Version 2.0 (the "License"); 354 * you may not use this file except in compliance with the License. 355 * You may obtain a copy of the License at 356 * 357 * http://www.apache.org/licenses/LICENSE-2.0 358 * 359 * Unless required by applicable law or agreed to in writing, software 360 * distributed under the License is distributed on an "AS IS" BASIS, 361 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 362 * See the License for the specific language governing permissions and 363 * limitations under the License. 364 */(t)),n}async function cp(e){const t=await e();return t.status>=500&&t.status<600?e():t} 365/** 366 * @license 367 * Copyright 2019 Google LLC 368 * 369 * Licensed under the Apache License, Version 2.0 (the "License"); 370 * you may not use this file except in compliance with the License. 371 * You may obtain a copy of the License at 372 * 373 * http://www.apache.org/licenses/LICENSE-2.0 374 * 375 * Unless required by applicable law or agreed to in writing, software 376 * distributed under the License is distributed on an "AS IS" BASIS, 377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 378 * See the License for the specific language governing permissions and 379 * limitations under the License. 380 */ 381function up(e){return new Promise(t=>{setTimeout(t,e)})} 382/** 383 * @license 384 * Copyright 2019 Google LLC 385 * 386 * Licensed under the Apache License, Version 2.0 (the "License"); 387 * you may not use this file except in compliance with the License. 388 * You may obtain a copy of the License at 389 * 390 * http://www.apache.org/licenses/LICENSE-2.0 391 * 392 * Unless required by applicable law or agreed to in writing, software 393 * distributed under the License is distributed on an "AS IS" BASIS, 394 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 395 * See the License for the specific language governing permissions and 396 * limitations under the License. 397 */ 398/** 399 * @license 400 * Copyright 2019 Google LLC 401 * 402 * Licensed under the Apache License, Version 2.0 (the "License"); 403 * you may not use this file except in compliance with the License. 404 * You may obtain a copy of the License at 405 * 406 * http://www.apache.org/licenses/LICENSE-2.0 407 * 408 * Unless required by applicable law or agreed to in writing, software 409 * distributed under the License is distributed on an "AS IS" BASIS, 410 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 411 * See the License for the specific language governing permissions and 412 * limitations under the License. 413 */ 414const dp=/^[cdef][\w-]{21}$/;function hp(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){const t=(n=e,btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_"));var n;return t.substr(0,22)} 415/** 416 * @license 417 * Copyright 2019 Google LLC 418 * 419 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 5,434 bytes, lines 420-484
420 * you may not use this file except in compliance with the License. 421 * You may obtain a copy of the License at 422 * 423 * http://www.apache.org/licenses/LICENSE-2.0 424 * 425 * Unless required by applicable law or agreed to in writing, software 426 * distributed under the License is distributed on an "AS IS" BASIS, 427 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 428 * See the License for the specific language governing permissions and 429 * limitations under the License. 430 */(e);return dp.test(t)?t:""}catch{return""}}function pp(e){return`${e.appName}!${e.appId}`} 431/** 432 * @license 433 * Copyright 2019 Google LLC 434 * 435 * Licensed under the Apache License, Version 2.0 (the "License"); 436 * you may not use this file except in compliance with the License. 437 * You may obtain a copy of the License at 438 * 439 * http://www.apache.org/licenses/LICENSE-2.0 440 * 441 * Unless required by applicable law or agreed to in writing, software 442 * distributed under the License is distributed on an "AS IS" BASIS, 443 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 444 * See the License for the specific language governing permissions and 445 * limitations under the License. 446 */const fp=new Map;function mp(e,t){const n=pp(e);_p(n,t),function(e,t){const n=function(){!gp&&"BroadcastChannel"in self&&(gp=new BroadcastChannel("[Firebase] FID Change"),gp.onmessage=e=>{_p(e.data.key,e.data.fid)});return gp}();n&&n.postMessage({key:e,fid:t});0===fp.size&&gp&&(gp.close(),gp=null)}(n,t)}function _p(e,t){const n=fp.get(e);if(n)for(const r of n)r(t)}let gp=null; 447/** 448 * @license 449 * Copyright 2019 Google LLC 450 * 451 * Licensed under the Apache License, Version 2.0 (the "License"); 452 * you may not use this file except in compliance with the License. 453 * You may obtain a copy of the License at 454 * 455 * http://www.apache.org/licenses/LICENSE-2.0 456 * 457 * Unless required by applicable law or agreed to in writing, software 458 * distributed under the License is distributed on an "AS IS" BASIS, 459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 460 * See the License for the specific language governing permissions and 461 * limitations under the License. 462 */ 463const yp="firebase-installations-store";let vp=null;function bp(){return vp||(vp=Hd("firebase-installations-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(yp)}})),vp}async function wp(e,t){const n=pp(e),r=(await bp()).transaction(yp,"readwrite"),i=r.objectStore(yp),s=await i.get(n);return await i.put(t,n),await r.done,s&&s.fid===t.fid||mp(e,t.fid),t}async function kp(e){const t=pp(e),n=(await bp()).transaction(yp,"readwrite");await n.objectStore(yp).delete(t),await n.done}async function Cp(e,t){const n=pp(e),r=(await bp()).transaction(yp,"readwrite"),i=r.objectStore(yp),s=await i.get(n),o=t(s);return void 0===o?await i.delete(n):await i.put(o,n),await r.done,!o||s&&s.fid===o.fid||mp(e,o.fid),o} 464/** 465 * @license 466 * Copyright 2019 Google LLC 467 * 468 * Licensed under the Apache License, Version 2.0 (the "License"); 469 * you may not use this file except in compliance with the License. 470 * You may obtain a copy of the License at 471 * 472 * http://www.apache.org/licenses/LICENSE-2.0 473 * 474 * Unless required by applicable law or agreed to in writing, software 475 * distributed under the License is distributed on an "AS IS" BASIS, 476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 477 * See the License for the specific language governing permissions and 478 * limitations under the License. 479 */async function Tp(e){let t;const n=await Cp(e.appConfig,n=>{const r=function(e){const t=e||{fid:hp(),registrationStatus:0};return Ep(t)}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject(np.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=ip(e),i=ap(e),s=t.getImmediate({optional:!0});if(s){const e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={fid:n,authVersion:ep,appId:e.appId,sdkVersion:Qh},a={method:"POST",headers:i,body:JSON.stringify(o)},l=await cp(()=>fetch(r,a));if(l.ok){const e=await l.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:sp(e.authToken)}}throw await op("Create Installation",l)}(e,t);return wp(e.appConfig,n)}catch(CL){throw rp(CL)&&409===CL.customData.serverCode?await kp(e.appConfig):await wp(e.appConfig,{fid:t.fid,registrationStatus:0}),CL}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:Sp(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function Sp(e){let t=await xp(e.appConfig);for(;1===t.registrationStatus;)await up(100),t=await xp(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await Tp(e);return n||t}return t}function xp(e){return Cp(e,e=>{if(!e)throw np.create("installation-not-found");return Ep(e)})}function Ep(e){return 1===(t=e).registrationStatus&&t.registrationTime+Jh<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t; 480/** 481 * @license 482 * Copyright 2019 Google LLC 483 * 484 * Licensed under the Apache License, Version 2.0 (the "License");
485 * you may not use this file except in compliance with the License. 486 * You may obtain a copy of the License at 487 * 488 * http://www.apache.org/licenses/LICENSE-2.0 489 * 490 * Unless required by applicable law or agreed to in writing, software 491 * distributed under the License is distributed on an "AS IS" BASIS, 492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 493 * See the License for the specific language governing permissions and 494 * limitations under the License. 495 */}async function Ip({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${ip(e)}/${t}/authTokens:generate`} 496/** 497 * @license 498 * Copyright 2019 Google LLC 499 * 500 * Licensed under the Apache License, Version 2.0 (the "License"); 501 * you may not use this file except in compliance with the License. 502 * You may obtain a copy of the License at 503 * 504 * http://www.apache.org/licenses/LICENSE-2.0 505 * 506 * Unless required by applicable law or agreed to in writing, software 507 * distributed under the License is distributed on an "AS IS" BASIS, 508 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 509 * See the License for the specific language governing permissions and 510 * limitations under the License. 511 */(e,n),i=lp(e,n),s=t.getImmediate({optional:!0});if(s){const e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={installation:{sdkVersion:Qh,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(o)},l=await cp(()=>fetch(r,a));if(l.ok){return sp(await l.json())}throw await op("Generate Auth Token",l)}async function Ap(e,t=!1){let n;const r=await Cp(e.appConfig,r=>{if(!Op(r))throw np.create("not-registered");const i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+tp}(e)}(i))return r;if(1===i.requestStatus)return n=async function(e,t){let n=await Pp(e.appConfig);for(;1===n.authToken.requestStatus;)await up(100),n=await Pp(e.appConfig);const r=n.authToken;return 0===r.requestStatus?Ap(e,t):r}(e,t),r;{if(!navigator.onLine)throw np.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return{...e,authToken:t}}(r);return n=async function(e,t){try{const n=await Ip(e,t),r={...t,authToken:n};return await wp(e.appConfig,r),n}catch(CL){if(!rp(CL)||401!==CL.customData.serverCode&&404!==CL.customData.serverCode){const n={...t,authToken:{requestStatus:0}};await wp(e.appConfig,n)}else await kp(e.appConfig);throw CL}}(e,t),t}});return n?await n:r.authToken}function Pp(e){return Cp(e,e=>{if(!Op(e))throw np.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+Jh<Date.now()?{...e,authToken:{requestStatus:0}}:e;var n; 512/** 513 * @license 514 * Copyright 2019 Google LLC 515 * 516 * Licensed under the Apache License, Version 2.0 (the "License"); 517 * you may not use this file except in compliance with the License. 518 * You may obtain a copy of the License at 519 * 520 * http://www.apache.org/licenses/LICENSE-2.0 521 * 522 * Unless required by applicable law or agreed to in writing, software 523 * distributed under the License is distributed on an "AS IS" BASIS, 524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 525 * See the License for the specific language governing permissions and 526 * limitations under the License. 527 */})}function Op(e){return void 0!==e&&2===e.registrationStatus} 528/** 529 * @license 530 * Copyright 2019 Google LLC 531 * 532 * Licensed under the Apache License, Version 2.0 (the "License"); 533 * you may not use this file except in compliance with the License. 534 * You may obtain a copy of the License at 535 * 536 * http://www.apache.org/licenses/LICENSE-2.0 537 * 538 * Unless required by applicable law or agreed to in writing, software 539 * distributed under the License is distributed on an "AS IS" BASIS, 540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 541 * See the License for the specific language governing permissions and 542 * limitations under the License. 543 */ 544async function Lp(e,t=!1){const n=e;await async function(e){const{registrationPromise:t}=await Tp(e);t&&await t} 545/** 546 * @license 547 * Copyright 2019 Google LLC 548 * 549 * Licensed under the Apache License, Version 2.0 (the "License");
550 * you may not use this file except in compliance with the License. 551 * You may obtain a copy of the License at 552 * 553 * http://www.apache.org/licenses/LICENSE-2.0 554 * 555 * Unless required by applicable law or agreed to in writing, software 556 * distributed under the License is distributed on an "AS IS" BASIS, 557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 558 * See the License for the specific language governing permissions and 559 * limitations under the License. 560 */(n);return(await Ap(n,t)).token}function Dp(e){return np.create("missing-app-config-values",{valueName:e})} 561/** 562 * @license 563 * Copyright 2020 Google LLC 564 * 565 * Licensed under the Apache License, Version 2.0 (the "License"); 566 * you may not use this file except in compliance with the License. 567 * You may obtain a copy of the License at 568 * 569 * http://www.apache.org/licenses/LICENSE-2.0 570 * 571 * Unless required by applicable law or agreed to in writing, software 572 * distributed under the License is distributed on an "AS IS" BASIS, 573 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 574 * See the License for the specific language governing permissions and 575 * limitations under the License. 576 */const Rp="installations",Mp=e=>{const t=Lh(e.getProvider("app").getImmediate(),Rp).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await Tp(t);return r?r.catch(console.error):Ap(t).catch(console.error),n.fid}(t),getToken:e=>Lp(t,e)}};Oh(new wd(Rp,e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Dp("App Configuration");if(!e.name)throw Dp("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Dp(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:Lh(t,"heartbeat"),_delete:()=>Promise.resolve()}},"PUBLIC")),Oh(new wd("installations-internal",Mp,"PRIVATE")),$h(Yh,Zh),$h(Yh,Zh,"esm2020"); 577/** 578 * @license 579 * Copyright 2019 Google LLC 580 * 581 * Licensed under the Apache License, Version 2.0 (the "License"); 582 * you may not use this file except in compliance with the License. 583 * You may obtain a copy of the License at 584 * 585 * http://www.apache.org/licenses/LICENSE-2.0 586 * 587 * Unless required by applicable law or agreed to in writing, software 588 * distributed under the License is distributed on an "AS IS" BASIS, 589 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 590 * See the License for the specific language governing permissions and 591 * limitations under the License. 592 */ 593const Np="analytics",jp="https://www.googletagmanager.com/gtag/js",Up=new Od("@firebase/analytics"),$p=new ld("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
593d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."}); 594/** 595 * @license 596 * Copyright 2019 Google LLC 597 * 598 * Licensed under the Apache License, Version 2.0 (the "License"); 599 * you may not use this file except in compliance with the License. 600 * You may obtain a copy of the License at 601 * 602 * http://www.apache.org/licenses/LICENSE-2.0 603 * 604 * Unless required by applicable law or agreed to in writing, software 605 * distributed under the License is distributed on an "AS IS" BASIS, 606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 607 * See the License for the specific language governing permissions and 608 * limitations under the License. 609 */ 610function Bp(e){if(!e.startsWith(jp)){const t=$p.create("invalid-gtag-resource",{gtagURL:e});return Up.warn(t.message),""}return e}function Fp(e){return Promise.all(e.map(e=>e.catch(e=>e)))}function qp(e,t){const n=function(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}("firebase-js-sdk-policy",{createScriptURL:Bp}),r=document.createElement("script"),i=`${jp}?l=${e}
610&id=${t}`;r.src=n?n?.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function Vp(e,t,n,r){return async function(i,...s){try{if("event"===i){const[r,i]=s;await async function(e,t,n,r,i){try{let s=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);const r=await Fp(n);for(const n of e){const e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(!i){s=[];break}s.push(i)}}0===s.length&&(s=Object.values(t)),await Promise.all(s),e("event",r,i||{})}catch(CL){Up.error(CL)}}(e,t,n,r,i)}else if("config"===i){const[i,o]=s;await async function(e,t,n,r,i,s){const o=r[i];try{if(o)await t[o];else{const e=(await Fp(n)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(CL){Up.error(CL)}e("config",i,s)}(e,t,n,r,i,o)}else if("consent"===i){const[t,n]=s;e("consent",t,n)}else if("get"===i){const[t,n,r]=s;e("get",t,n,r)}else if("set"===i){const[t]=s;e("set",t)}else e(i,...s)}catch(CL){Up.error(CL)}}}const Hp=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function zp(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function Gp(e,t=Hp,n){const{appId:r,apiKey:i,measurementId:s}=e.options;if(!r)throw $p.create("no-app-id");if(!i){if(s)return{measurementId:s,appId:r};throw $p.create("no-api-key")}const o=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new Wp;return setTimeout(async()=>{a.abort()},6e4),Kp({appId:r,apiKey:i,measurementId:s},o,a,t)}async function Kp(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=Hp){const{appId:s,measurementId:o}=e;try{await function(e,t){return new Promise((n,r)=>{const i=Math.max(t-Date.now(),0),s=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(s),r($p.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}(r,t)}catch(CL){if(o)return Up.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${CL?.message}]`),{appId:s,measurementId:o};throw CL}try{const t=await async function(e){const{appId:t,apiKey:n}=e,r={method:"GET",headers:zp(n)},i="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",t),s=await fetch(i,r);if(200!==s.status&&304!==s.status){let e="";try{const t=await s.json();t.error?.message&&(e=t.error.message)}catch(o){}throw $p.create("config-fetch-failed",{httpStatus:s.status,responseMessage:e})}return s.json()}(e);return i.deleteThrottleMetadata(s),t}catch(CL){const a=CL;if(!function(e){if(!(e instanceof ad&&e.customData))return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(a)){if(i.deleteThrottleMetadata(s),o)return Up.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${a?.message}]`),{appId:s,measurementId:o};throw CL}const l=503===Number(a?.customData?.httpStatus)?gd(n,i.intervalMillis,30):gd(n,i.intervalMillis),c={throttleEndTimeMillis:Date.now()+l,backoffCount:n+1};return i.setThrottleMetadata(s,c),Up.debug(`Calling attemptFetch again in ${l} millis`),Kp(e,c,r,i)}}class Wp{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}async function Xp(e,t,n,r,i,s,o){const a=Gp(e);a.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&Up.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>Up.error(e)),t.push(a);const l= 611/** 612 * @license 613 * Copyright 2020 Google LLC 614 * 615 * Licensed under the Apache License, Version 2.0 (the "License");
616 * you may not use this file except in compliance with the License. 617 * You may obtain a copy of the License at 618 * 619 * http://www.apache.org/licenses/LICENSE-2.0 620 * 621 * Unless required by applicable law or agreed to in writing, software 622 * distributed under the License is distributed on an "AS IS" BASIS, 623 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 624 * See the License for the specific language governing permissions and 625 * limitations under the License. 626 */ 627async function(){if(!sd())return Up.warn($p.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await od()}catch(CL){return Up.warn($p.create("indexeddb-unavailable",{errorInfo:CL?.toString()}).message),!1}return!0}().then(e=>e?r.getId():void 0),[c,u]=await Promise.all([a,l]);(function(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(jp)&&n.src.includes(e))return n;return null} 628/** 629 * @license 630 * Copyright 2020 Google LLC 631 * 632 * Licensed under the Apache License, Version 2.0 (the "License"); 633 * you may not use this file except in compliance with the License. 634 * You may obtain a copy of the License at 635 * 636 * http://www.apache.org/licenses/LICENSE-2.0 637 * 638 * Unless required by applicable law or agreed to in writing, software 639 * distributed under the License is distributed on an "AS IS" BASIS, 640 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 641 * See the License for the specific language governing permissions and 642 * limitations under the License. 643 */)(s)||qp(s,c.measurementId),i("js",new Date);const d=o?.config??{};return d.origin="firebase",d.update=!0,null!=u&&(d.firebase_id=u),i("config",c.measurementId,d),c.measurementId} 644/** 645 * @license 646 * Copyright 2019 Google LLC 647 * 648 * Licensed under the Apache License, Version 2.0 (the "License"); 649 * you may not use this file except in compliance with the License. 650 * You may obtain a copy of the License at 651 * 652 * http://www.apache.org/licenses/LICENSE-2.0 653 * 654 * Unless required by applicable law or agreed to in writing, software 655 * distributed under the License is distributed on an "AS IS" BASIS, 656 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 657 * See the License for the specific language governing permissions and 658 * limitations under the License. 659 */let Yp=class{constructor(e){this.app=e}_delete(){return delete Zp[this.app.options.appId],Promise.resolve()}},Zp={},Jp=[];const Qp={};let ef,tf,nf="dataLayer",rf=!1;function sf(){const e=[];if(nd()&&e.push("This is a browser extension environment."),"undefined"!=typeof navigator&&navigator.cookieEnabled||e.push("Cookies are not available."),e.length>0){const t=e.map((e,t)=>`(${t+1}) ${e}`).join(" "),n=$p.create("invalid-analytics-context",{errorInfo:t});Up.warn(n.message)}}function of(e,t,n){sf();const r=e.options.appId;if(!r)throw $p.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw $p.create("no-api-key");Up.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Zp[r])throw $p.create("already-exists",{id:r});if(!rf){!function(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(nf);const{wrappedGtag:e,gtagCore:t}=function(e,t,n,r,i){let s=function(...e){window[r].push(arguments)};return window[i]&&"function"==typeof window[i]&&(s=window[i]),window[i]=Vp(s,e,t,n),{gtagCore:s,wrappedGtag:window[i]}}(Zp,Jp,Qp,nf,"gtag");tf=e,ef=t,rf=!0}Zp[r]=Xp(e,Jp,Qp,t,ef,nf,n);return new Yp(e)}function af(e,t={}){const n=Lh(e,Np);if(n.isInitialized()){const e=n.getImmediate();if(dd(t,n.getOptions()))return e;throw $p.create("already-initialized")}return n.initialize({options:t})}function lf(e,t,n){e=yd(e),async function(e,t,n,r){if(r&&r.global){const t={};for(const e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:n})}(tf,Zp[e.app.options.appId],t,n).catch(e=>Up.error(e))}function cf(e,t){e=yd(e),async function(e,t){const n=await e;window[`ga-disable-${n}`]=!t}(Zp[e.app.options.appId],t).catch(e=>Up.error(e))}function uf(e,t,n,r){e=yd(e),async function(e,t,n,r,i){if(i&&i.global)e("event",n,r);else{const i=await t;e("event",n,{...r,send_to:i})}}(tf,Zp[e.app.options.appId],t,n,r).catch(e=>Up.error(e))}const df="@firebase/analytics",hf="0.10.22";Oh(new wd(Np,(e,{options:t})=>of(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),Oh(new wd("analytics-internal",function(e){try{const t=e.getProvider(Np).getImmediate();return{logEvent:(e,n,r)=>uf(t,e,n,r),setUserProperties:(e,n)=>lf(t,e,n)}}catch(CL){throw $p.create("interop-component-reg-failed",{reason:CL})}},"PRIVATE")),$h(df,hf),$h(df,hf,"esm2020");class pf{isEnabled;analyticsInstance;firebaseApp;static instance=new pf;constructor(e){this.isEnabled=!0,null!=e&&this.initialize(e)}isInitialized(){return null!=this.analyticsInstance}initialize(e){window.addEventListener(Ba.COOKIE_CONSENT_CHANGE_EVENT,this.on_cookie_consent_change.bind(this)),this.isEnabled=Ba.instance.consent.analytics,af(e.$fire.app,{config:{cookie_flags:"samesite=none;secure"}}),this.analyticsInstance=function(e=Uh()){const t=Lh(e=yd(e),Np);return t.isInitialized()?t.getImmediate():af(e)}(e.$fire.app),this.firebaseApp=e.$fire.app,this.setDataCollectionEnabled(this.isEnabled)}sendEvent(e){this.isInitialized()&&(this.isEnabled?uf(this.analyticsInstance,e.name,e.params):e.name)}enable(){this.isEnabled=!0,this.setDataCollectionEnabled(!0)}disable(){this.isEnabled=!1,this.setDataCollectionEnabled(!1)}on_cookie_consent_change(){Ba.instance.consent.analytics?this.enable():this.disable()}setUserProperties(e,t){if(this.isInitialized()){const n={global:t};lf(this.analyticsInstance,e,n)}else;}setDataCollectionEnabled(e){null!=this.analyticsInstance&&cf(this.analyticsInstance,e),null!=this.firebaseApp&&
659(this.firebaseApp.automaticDataCollectionEnabled=e)}}var ff={},mf=(e=>(e.Logo="logo",e.Browse="browse",e.MyLists="my_lists",e.Search="search",e.Kids="kids",e.Tickets="tickets",e.Account="account",e))(mf||{}),_f=(e=>(e.SeeMore="see_more",e.AddWatchlist="add_to_watchlist",e.RemoveWatchlist="remove_from_watchlist",e.CategoryName="category_name",e.RemoveContinueWatching="remove_from_continue_watching",e))(_f||{});class gf{static sendEvent(e,t,n={}){const r={name:t,params:{...this.generalParams(e),...n}};pf.instance.sendEvent(r)}static async setUserIdHash(e){const t={user_id_hash:await this.hashUserId(e)};pf.instance.setUserProperties(t,!1)}static setAccountConfig(e){const t={account_name:this.getAccountName(e)};pf.instance.setUserProperties(t,!0)}static generalParams(e){return{account_name:this.getAccountName(e),account_type:this.getAccountType(e),platform:this.getPlatform(),app_version:this.getAppVersion(),auth_type:this.getAuthType(e),is_kids:this.isInKids(e)}}static getAccountName(e){return e.$kuistore.getters["site/institution_name"]}static getAccountType(e){return e.$kuistore.getters["site/vp_type"]}static getPlatform(){return xa.isIOSDevice()?"iOS":xa.isAndroidDevice()?"Android":"web"}static getAppVersion(){return ff.VERSION}static getAuthType(e){return e.$kuistore.getters["user/has_user_account_logged_in"]?"logged_in":"logged_out"}static isInKids(e){return e.$kuistore.getters["site/is_in_kids_mode"]}static getUserId(e){return e.$kuistore.getters["user/userId"]?.toString()??""}static async hashUserId(e){const t=this.getUserId(e);if("http:"===window.location.protocol)return Promise.resolve(t);const n=Uint8Array.from(Array.from(t).map(e=>e.charCodeAt(0))),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("")}}async function yf(e,t){const n=(t.$kuistore.getters["debug/get_value"]("sentinel_debug_enabled")??!1)||e.isDebugEnabled();n&&(t.route.fullPath,JSON.stringify(e.getParams(),null,4));let r=!1;const i=(s=$u,Object.getOwnPropertyNames(s));var s;for(let a=0;a<i.length;a++){const n=i[a];if(e.getParamValue(n))continue;if(r)continue;const s=Bu[`${n}_checker`],o=e.getHandler(n);r=await s(t,o)}const o=e.getAdditionalGuards();for(let a=0;a<o.length;a++){const e=o[a];if(n&&e.name,r)continue;const i=e.checker,s=e.handler;r=await i(t,s),r&&n&&e.name}return!r&&e.isAnalyticsEnabled()&&(gf.setUserIdHash(t),gf.setAccountConfig(t)),!r}const vf=e=>(e.$kuistore.getters["user/has_user_account_logged_in"]?Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/identities`):Aa.is_on_default_subpath(e.route)?e.error({statusCode:403}):Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`),!0),bf=e=>{const t=e.$kuistore.getters["user/user_default_stem"];if(null!=t){const n=`/${t}${Ia.unlocalizedPath(e.route)}`;return Ia.redirect(e,n,!1),!0}return!!e.$kuistore.getters["user/has_user_account_logged_in"]&&(Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/identities`,!1),!0)},wf={logged_in_handler:e=>(Ia.redirect(e,"/"),!0),logged_out_handler:e=>(Ia.redirect(e,"/login"),!0),active_membership_on_domain_handler:e=>(e.error({statusCode:403}),!0),non_active_membership_on_domain_handler:vf,no_membership_on_domain_handler:e=>{if(Aa.is_on_default_subpath(e.route)){if(bf(e))return!0}const t=Ia.unlocalizedPath(e.route);return!e.$kuistore.getters["user/has_user_account_logged_in"]&&(e.$kuistore.state.site.domain?.isUserRequiredToPlay??1)?Ia.redirect(e,`/login?destination=${t}`):Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}?destination=${t}`),!0},no_membership_handler:e=>(e.$kuistore.getters["user/has_user_account_logged_in"]?Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/identities`):e.error({statusCode:403}),!0),is_in_adult_handler:e=>((e.$kuistore.state.site.domain?.hasKids??1)&&e.$kuistore.dispatch("site/switch_to_kids"),!0),is_in_kids_handler:e=>(e.$kuistore.dispatch("site/switch_to_adult",!1),!0),has_enabled_kids_handler:e=>(e.error({statusCode:403}),!0),has_disabled_kids_handler:e=>(Ia.redirect(e,"/"),!0),disallow_force_login_handler:e=>{const t=Ia.unlocalizedPath(e.route);return Ia.redirect(e,`/login?destination=${t}`),!0},disallow_redirect_to_subpath_handler:bf,deleted_domain_handler:e=>(Ia.redirect(e,"/signup",!1),!0),disallow_subdomain_handler:e=>(window.location.href=window.location.origin.replace("passwordreset","www")+e.route.fullPath,!0)};class kf{params;handlers;additionalGuards;debug;enableAnalytics;constructor(e={}){this.params={...$u,...e.params},this.handlers={...wf,...e.handlers},this.additionalGuards=e.additionalGuards??[],this.debug=!1,this.enableAnalytics=!0}getParamValue(e){return this.params[e]}getParams(){return this.params}getHandler(e){return this.handlers[`${e}_handler`]}getAdditionalGuards(){return this.additionalGuards}isDebugEnabled(){return this.debug}guard(e){return yf(this,e)}authorizeLoggedInUsers(){return this.params.logged_in=!0,this}authorizeLoggedOutUsers(){return this.params.logged_out=!0,this}authorizeAllUsers(){return this.authorizeLoggedInUsers(),this.authorizeLoggedOutUsers(),this}authorizeActiveMemberships(){return this.params.active_membership_on_domain=!0,this}authorizeNonActiveMemberships(){return this.params.non_active_membership_on_domain=!0,this}authorizeNoMembershipOnDomain(){return this.params.no_membership_on_domain=!0,this}authorizeIfHasMembership(){return this.authorizeActiveMemberships(),this.authorizeNonActiveMemberships(),this}authorizeIfHasNoMembership(){return this.params.no_membership=!0,this}authorizeAllMemberships(){return this.authorizeIfHasMembership(),this.authorizeNoMembershipOnDomain(),this.authorizeIfHasNoMembership(),this}authorizeAdultMode(){return this.params.is_in_adult=!0,this}authorizeKidsMode(){return this.params.is_in_kids=!0,this}authorizeAdultAndKidsMode(){return this.authorizeAdultMode(),this.authorizeKidsMode(),this}authorizeDomainsWithKidsEnabled(){return this.params.has_enabled_kids=!0,this}authorizeDomainsWithKidsDisabled(){return this.params.has_disabled_kids=!0,this}authorizeDomainsWithKidsEnabledOrDisabled(){return this.authorizeDomainsWithKidsEnabled(),this.authorizeDomainsWithKidsDisabled(),this}disallowDomainForceLogin(){return this.params.disallow_force_login=!0,this}disallowRedirectToSubpath(){return this.params.disallow_redirect_to_subpath=!0,this}overrideGuardHandler(e,t){return this.handlers[`${e}_handler`]=t,this}addNewGuard(e){return this.additionalGuards.push(e),this}enableDebug(){return this.debug=!0,this}disableAnalytics(){return this.enableAnalytics=!1,this}isAnalyticsEnabled(){return this.enableAnalytics}}var Cf=(e=>(e.Video="video",e.CustomPlaylists="customplaylists",e.Clip="clip",e))(Cf||{});function Tf(e){return e[e.type]}function Sf(e){return{type:e.type,video:e.video,playlist:e.playlist,collection:void 0}}function xf(e,t,n=["medium","small","large"]){const r=e.images[t];Array.isArray(n)||(n=[n].concat(["medium","small","large"]));const i=n.find(e=>null!=r[e]);return null==i?void 0:r[i]}function Ef(e,t){const n=Pf(t.state.mylists.continuewatching_items??[],e)??0;return Math.floor(n/1e3)}function If(e){return e.reduce((e,t)=>
659null==e?t.name:`${e}, ${t.name}`,void 0)}function Af(e,t){for(let n=0;n<t.length;++n){const r=t[n],i=r.video?.videoId??r.playlist?.videoId,s=e.find(e=>{const t=Tf(e);return t?.videoId===i});if(null!=s)return s;if(r.type===nu&&null!=r.playlist)for(let t=0;t<r.playlist.playlistItems.length;++t){const n=e.find(e=>{const n=Tf(e);return n?.videoId===r.playlist?.playlistItems[t].videoId});if(null!=n)return n}}}function Pf(e,t){for(let n=0;n<e.length;++n){const r=e[n];switch(r.type){case tu:if(r.video?.videoId!==t)continue;return r.video.currentTimestampMs;case nu:case ru:if(r.playlist?.videoId===t)return r.playlist.playlistItems.reduce((e,t)=>e+t.currentTimestampMs,0);const e=r.playlist?.playlistItems.find(e=>e.videoId===t);if(null==e)continue;return e.currentTimestampMs}}}async function Of(e,t=!1){const n={product:void 0,owned_by_current_domain:!1,resolved_by_alias:!1,is_private_content:!1},r=e.params.id;if(Va.isEmpty(r))return Promise.resolve(n);const i=n=>{t&&e.$kuistore.commit("product/set_product",n)};if(isNaN(Number(r))){n.resolved_by_alias=!0;try{const t=await e.$kuistore.dispatch("product/get_product_info_by_alias",{product_alias:r,use_current_domain:!0});return n.product=t,n.owned_by_current_domain=!0,i(t),n}catch(o){if(403!==ju.unwrapKapiError(o).httpCode)return n;try{const t=await e.$kuistore.dispatch("product/get_product_info_by_alias",{product_alias:r,use_current_domain:!1});return n.product=t,n.owned_by_current_domain=!1,i(t),n}catch(a){const e=ju.unwrapKapiError(a);return n.is_private_content=403===e.httpCode,n}}}const s=Number(r);try{const t=await e.$kuistore.dispatch("product/get_product_info",{product_id:s,use_current_domain:!0});return n.product=t,n.owned_by_current_domain=!0,i(t),n}catch(o){if(403!==ju.unwrapKapiError(o).httpCode)return n;try{const t=await e.$kuistore.dispatch("product/get_product_info",{product_id:s,use_current_domain:!1});return n.product=t,n.owned_by_current_domain=!1,i(t),n}catch(a){const e=ju.unwrapKapiError(a);return n.is_private_content=403===e.httpCode,n}}}function Lf(e,t,n){let r=!1;return n&&(r=e.state.mylists.fetching_continue_watching&&null==e.state.mylists.continuewatching_items),r?Promise.resolve():function(e,t,n){return new Promise(r=>{e.dispatch("product/fetch_product_seasons").then(()=>{const i=e.state.product.product_seasons??[];let s;if(null!=e.state.product.selected_season_id)s=i.find(t=>{const n=Tf(t);return n?.videoId===e.state.product.selected_season_id});else if(n){s=Af(i,e.state.mylists.continuewatching_items??[])??i[0],e.dispatch("product/select_product_season_id",null==s?void 0:Tf(s)?.videoId)}const o=null!=s;o||(e.dispatch("product/select_product_season_id",void 0),Ia.redirect(t,`/video/${e.getters["product/product_id"]}`)),r(o)})})}(e,t,n).then(n=>{if(n)return Df(e,t)})}function Df(e,t){return e.dispatch("product/fetch_season_items").then(()=>{if(null==e.state.product.selected_item_id)return;const n=e.state.product.product_items?.find(t=>{const n=Tf(t);return n?.videoId===e.state.product.selected_item_id});null==n&&(e.dispatch("product/select_product_item_id",void 0),Ia.redirect(t,`/video/${e.getters["product/product_id"]}/${e.getters["product/selected_season_id"]}`))})}function Rf(e,t,n){return null==e.state.product.product_items?e.dispatch("product/fetch_product_items").then(()=>null!=n?n():Mf(e,t)):new Promise(e=>e())}function Mf(e,t){null!=e.state.product.product_items?.find(t=>{const n=Tf(t);return n?.videoId===e.state.product.selected_item_id})||(e.dispatch("product/select_product_item_id",void 0),Ia.redirect(t,`/video/${e.getters["product/product_id"]}`))}function Nf(e,t=!1){if(null!=e)return`${e.title}${t||null==e.tagline?"":`: ${e.tagline}`}`}function jf(e,t){if(e?.type===wu.Collection||null!=e?.collectionType)return;let n=e;null!=e?.type&&(n=Tf(e));const r=n?.videoId;if(null==r)return;const i=n?.durationSeconds;if(null==i)return;const s=Pf(t,r)??0,o=Math.floor((s??0)/1e3);return Math.round(100*o/i)}function Uf(e){if(null!=e?.ageRating)return{rating_text:e.ageRating,a11y_label:e.ageRatingAria,icon_src:e.ageRatingIconSvg??e.ageRatingIconPng,country_code:e.ageRatingCountry}}const $f={name:"UserId parameter match",checker:(e,t)=>{const n=e.params.id;return`${e.$kuistore.state.user.user?.userId}`!==n&&t(e)},handler:e=>(e.error({statusCode:403}),!0)},Bf=(e,t)=>
659null!=e.$kuistore.state.site.domain&&null==e.$kuistore.getters["site/max_tickets"]&&t(e),Ff={name:"VP uses tickets",checker:(e,t)=>null==Ba.instance.get(Ua.tv_authcode.name)?t(e):Bf(e,e=>null==Ba.instance.get(Ua.tv_authcode.name)&&t(e)),handler:e=>(Ia.redirect(e,"/"),!0)},qf={name:"parental controls for viewing adult content in kids mode",checker:async(e,t)=>null!=(await Of(e,!0)).product&&(!(e.$kuistore.getters["product/is_kids_content"]||!e.$kuistore.state.site.is_in_kids_mode)&&t(e)),handler:async e=>{const t=Ia.unlocalizedPath(e.route);return e.$kuistore.getters["site/is_kids_only_vp"]?(Ia.redirect(e,"/"),Promise.resolve(!0)):(e.$kuistore.getters["user/has_parental_control_on"]&&Ia.redirect(e,"/"),await e.$kuistore.dispatch("site/switch_to_adult",!1),e.$kuistore.state.site.is_in_kids_mode||(Ia.redirect(e,t,!1),e.$kuistore.commit("site/set_exit_kids_banner",!0),setTimeout(()=>{e.$kuistore.commit("site/set_exit_kids_banner",!1)},5e3)),!0)}},Vf={name:"redirect to collection page for The Great Courses",checker:(e,t)=>{const n=e.$kuistore.state.product.product_infos?.video;return!(n?.isPpSeries&&n?.ancestorVideoIds.length>0)||t(e)},handler:e=>{const t=e.$kuistore.state.product.product_infos?.video;return Ia.redirect(e,`/video/${t?.ancestorVideoIds[0]}/${t?.videoId}`),!0}},Hf={name:"product exists",checker:async(e,t)=>{const n=await Of(e,!0);return null==n.product&&(n.is_private_content?zf.private_content_handler(e):t(e))},handler:e=>(e.error({statusCode:404}),!0)},zf={name:"VP has product access",checker:async(e,t)=>{const n=await Of(e,!0);if(null==n.product)return n.is_private_content?zf.private_content_handler(e):zf.not_found_handler(e);if(n.resolved_by_alias){const t=Tf(n.product);if(null==t)return!1;const r=n.owned_by_current_domain&&e.$kuistore.getters["user/has_active_membership_on_current_domain"]?"video":"product";return Ia.redirect(e,`/${r}/${t.videoId}`),!0}return await e.$kuistore.dispatch("product/fetch_product_info",{product_id:Ha.parse(e.params.id),use_current_domain:n.owned_by_current_domain}),!n.owned_by_current_domain&&t(e)},handler:e=>!(!e.$kuistore.getters["product/is_kids_content"]&&e.$kuistore.state.site.is_in_kids_mode)&&(Ia.redirect(e,`/product/${e.$kuistore.getters["product/product_id"]}`),!0),not_found_handler:e=>(e.error({statusCode:404}),!0),private_content_handler:e=>{const t=Ia.unlocalizedPath(e.route,!1),n=Ia.queryParam(e.route,"vp");if(null!=n){const r=e.$kuistore.getters["domain_cache/domain_for_stem"](n),i=e.$kuistore.state.user.memberships?.find(e=>e.domainId===r?.domainId),s=r?.institutionType===Jc.Publiclibrary?"publiclibrary":"university";return i?.status===au.Active?zf.not_found_handler(e):(Ia.redirect(e,`/${n}/signup/auth/${s}?destination=${t}`,!1),!0)}return null!=e.$kuistore.state.site.domain?e.$kuistore.getters["user/has_active_membership_on_current_domain"]?zf.not_found_handler(e):(Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}?destination=${t}`),!0):(e.error({statusCode:403}),!0)}},Gf={name:"RFP content blocker",checker:async(e,t)=>{if(null==await Of(e,!0))return!1;const n=e.$kuistore.getters["product/product_instance"];return null!=n&&(!!n.isRequestable&&t(e))},handler:e=>(Ia.redirect(e,`/video/${e.$kuistore.getters["product/product_id"]}/request`),!0)},Kf={name:"not RFP content blocker",checker:async(e,t)=>{if(null==await Of(e,!0))return!1;const n=e.$kuistore.getters["product/product_instance"];return null!=n&&(!n.isRequestable&&t(e))},handler:e=>(Ia.redirect(e,`/video/${e.$kuistore.getters["product/product_id"]}`),!0)},Wf={name:"Non comUser page blocker",checker:(e,t)=>!(!e.$kuistore.getters["user/has_user_account_logged_in"]||e.$kuistore.getters["user/is_consumer_user"])&&(t(e),!0),handler:e=>(Ia.redirect(e,"/"),!0)};var Xf=(e=>(e.LinkDevice="link",e.ParentalControls="parentalcontrols",e.VerifyEmail="verifyemail",e.Other="",e))(Xf||{});function Yf(e){let t="";const n=Ia.unlocalizedPath(e,!1);if(null!=["/product/","/category/","/kids"].find(e=>n.includes(e)))t=n;else{const n=Ia.queryParam(e,"destination");null!=n&&(t=n)}return Va.isEmpty(t)?void 0:"?destination="+t}function Zf(e){return"string"==typeof e&&e.startsWith("/")}var Jf=(e=>(e.Success="success",e.Failure="failure",e.None="none",e))(Jf||{}),Qf=(e=>(e[e.Text=0]="Text",e[e.HTML=1]="HTML",e))(Qf||{});class em{message;style;messageType;constructor(e,t="none",n=0){this.message=e,this.style=t,this.messageType=n}}class tm{notification;duration;constructor(){this.notification=new em(void 0)}static notify(e,t){const n=new tm;
659return n.notification.message="string"==typeof e?e:e.userMessaging?.message??t??"An error occurred".localized(),n}asSuccess(){return this.notification.style="success",this}asFailure(){return this.notification.style="failure",this}asHtml(){return this.notification.messageType=1,this}during(e){return this.duration=e,this}push(){Xn.notify({data:this.notification,duration:this.duration})}}const nm={params:{logged_in:!0,logged_out:!0,active_membership_on_domain:!0,non_active_membership_on_domain:!0,no_membership_on_domain:!0,no_membership:!0,is_in_adult:!0,is_in_kids:!0,has_disabled_kids:!0,has_enabled_kids:!0}},rm={...nm,params:{...nm.params,disallow_force_login:!0}},im={...nm,params:{...nm.params,logged_out:!1}},sm={...nm,params:{...nm.params,non_active_membership_on_domain:!1,no_membership_on_domain:!1}},om={...nm,params:{...nm.params,active_membership_on_domain:!1}},am={...rm,params:{...rm.params,logged_in:!1}},lm={...am,params:{...am.params,disallow_redirect_to_subpath:!0}},cm={...nm,params:{...nm.params,disallow_redirect_to_subpath:!0,disallow_force_login:!0}},um={...sm,handlers:{non_active_membership_on_domain_handler:e=>(Ia.redirect(e,`/product/${e.params.id}`),!0),no_membership_on_domain_handler:e=>(Ia.redirect(e,`/product/${e.params.id}`),!0)},additionalGuards:[zf,Gf,qf,Vf]},dm={...um,additionalGuards:[zf,Kf,qf]},hm={...om,handlers:{active_membership_on_domain_handler:async e=>{const t=await Of(e,!0);if(null==t.product)return t.is_private_content?zf.private_content_handler(e):zf.not_found_handler(e);const n=t.owned_by_current_domain?"video":"product";return Ia.redirect(e,`/${n}/${e.params.id}`),!0}}},pm={...hm,params:{...hm.params,non_active_membership_on_domain:!1,no_membership_on_domain:!1},handlers:{...hm.handlers,active_membership_on_domain_handler:async e=>{const t=await Of(e,!0);return null==t.product?t.is_private_content?zf.private_content_handler(e):zf.not_found_handler(e):!!t.owned_by_current_domain&&(Ia.redirect(e,`/video/${e.params.id}`),!0)},non_active_membership_on_domain_handler:e=>e.$kuistore.getters["site/domain_stem"]===e.$kuistore.getters["user/user_default_stem"]?vf(e):(Ia.redirect(e,`/product/${e.params.id}?vp=${e.params.subpath}`,!1),!0),no_membership_on_domain_handler:e=>(Ia.redirect(e,`/product/${e.params.id}?vp=${e.params.subpath}`,!1),!0)}},fm={...im,handlers:{disallow_redirect_to_subpath_handler:e=>(null!=e.$kuistore.getters["user/user_default_stem"]||!e.$kuistore.getters["user/has_user_account_logged_in"])&&bf(e)},additionalGuards:[$f]},mm={...fm,params:{...fm.params,is_in_kids:!1},handlers:{...fm.handlers,is_in_kids_handler:e=>(e.$kuistore.getters["site/is_kids_only_vp"]||(e.$kuistore.state.site.domain?.hasKids?Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/parental-controls`):Ia.redirect(e,"/")),!0)}},_m={...fm,params:{...fm.params,has_disabled_kids:!1},handlers:{...fm.handlers,has_disabled_kids_handler:e=>(e.$kuistore.state.site.is_in_kids_mode?Ia.redirect(e,"/"):Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/information`),!0)}},gm={...cm,additionalGuards:[$f]},ym={...gm,additionalGuards:[],handlers:{disallow_subdomain_handler:e=>!0}},vm={...im,params:{...im.params,disallow_redirect_to_subpath:!0},additionalGuards:[$f]},bm={params:{disallow_redirect_to_subpath:!0},handlers:{logged_in_handler:e=>{const t=Number(e.params.id),n=e.params.jwt,r=e=>{setTimeout(e,1500)};return!!$f.checker(e,e=>(r(()=>tm.notify("Sorry, we couldn't verify your email address because you are logged in with a different account".localized()).asFailure().push()),Ia.redirect(e,"/"),!0))||e.$kuistore.dispatch("user/verify_user_email",{userId:t,jwt:n}).then(()=>{const t=e.$kuistore.state.user.user?.firstName;return r(()=>tm.notify("Congratulations, {first_name}! Your account is now verified!".localized({first_name:t})).asSuccess().push()),!0}).catch(()=>(r(()=>tm.notify("Your account is already verified or the link was invalid/expired".localized()).asFailure().push()),!0)).finally(()=>{Ia.redirect(e,"/")})},logged_out_handler:e=>{const t=e.params.jwt,n=e.params.id;return Ia.redirect(e,`/login?destination=${Xf.VerifyEmail}&jwt=${t}&userId=${n}`),!0}}},wm={params:{disallow_redirect_to_subpath:!0},handlers:{logged_in_handler:e=>(Ia.redirect(e,`/user/${e.$kuistore.getters["user/userId"]}/identities`),!0),logged_out_handler:e=>(Ia.redirect(e,"/signup",!1),!0)}},km={disallow_redirect_to_subpath:!0,disallow_force_login:!0},Cm={...om,params:{...om.params,...km},handlers:{active_membership_on_domain_handler:e=>{if(e.$kuistore.state.site.domain?.isUserRequiredToPlay??1)e.$kuistore.getters["user/has_user_account_logged_in"]?Ia.redirect(e,"/"):Ia.redirect(e,`/signup/create/${e.$kuistore.getters["site/vp_routing_type"]}`);else if(!e.from.fullPath.includes("/signup")){const t=Ia.unlocalizedPath(e.from);Ia.redirect(e,t,!1)}return!0}}},Tm={...sm,params:{...sm.params,...km,logged_in:!1},handlers:{logged_in_handler:e=>!!e.$kuistore.getters["user/has_active_membership_on_current_domain"]&&(Ia.redirect(e,"/"),!0),non_active_membership_on_domain_handler:e=>(Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`),!0),no_membership_on_domain_handler:e=>(Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`),!0)}},Sm={...sm,params:{...sm.params},handlers:{non_active_membership_on_domain_handler:e=>(Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`),!0),no_membership_on_domain_handler:e=>(Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`),!0)},additionalGuards:[Ff]},xm={...im,params:{...im.params,has_disabled_kids:!1}},Em={...am,params:{...am.params,has_disabled_kids:!1},handlers:{logged_in_handler:async e=>{const t=e.$kuistore.state.site.is_in_kids_mode,n=e.$kuistore.state.site.domain?.hasKids??!0,r=null!=e.$kuistore.state.user.memberships?.f
659ind(e=>"active"===e.status);if(!t&&n&&r)if(e.$kuistore.getters["user/has_active_membership_on_current_domain"])await e.$kuistore.dispatch("site/switch_to_kids"),Ia.redirect(e,"/");else{const t=e.$kuistore.getters["user/has_user_account_logged_in"]?`/user/${e.$kuistore.getters["user/userId"]}/identities`:"/";Ia.redirect(e,t)}else Ia.redirect(e,"/");return!0}}},Im={...nm,params:{...nm.params,active_membership_on_domain:!1,non_active_membership_on_domain:!1,no_membership_on_domain:!1},handlers:{active_membership_on_domain_handler:e=>(Ia.redirect(e,"/"),!0),no_membership_on_domain_handler:e=>(e.$kuistore.getters["user/has_user_account_logged_in"]?Ia.redirect(e,`/signup/auth/${e.$kuistore.getters["site/vp_routing_type"]}`):Ia.redirect(e,`/catalog?vp=${e.params.subpath}`,!1),!0)}},Am={...im,params:{...im.params,non_active_membership_on_domain:!1,no_membership_on_domain:!1}},Pm={...Am,params:{...Am.params,is_in_kids:!1},handlers:{is_in_kids_handler:async e=>{const t=Ia.unlocalizedPath(e.route);return e.$kuistore.getters["site/is_kids_only_vp"]?(Ia.redirect(e,"/mylists"),!0):(e.$kuistore.getters["user/has_parental_control_on"]&&Ia.redirect(e,"/mylists"),await e.$kuistore.dispatch("site/switch_to_adult",!1),e.$kuistore.state.site.is_in_kids_mode||(Ia.redirect(e,t,!1),e.$kuistore.commit("site/set_exit_kids_banner",!0),setTimeout(()=>{e.$kuistore.commit("site/set_exit_kids_banner",!1)},5e3)),!0)}}},Om={...Pm,params:{...Pm.params,logged_out:!0}},Lm={...sm,params:{...sm.params,logged_out:!1,no_membership:!1}}
659,Dm={...Lm,params:{...Lm.params,logged_out:!0}},Rm={...Dm,params:{...Dm.params,is_in_kids:!1}},Mm={...cm,additionalGuards:[Wf]},Nm={analytics:function(e){Fa.instance.tryToEnableClarity(),qa.instance.tryToEnableGTM()},authenticate_visitors:Uu,resolve_subpath:async function(e){if(Ia.unlocalizedPath(e.route)===e.route.fullPath)return Promise.resolve(void 0);if(Aa.is_on_default_subpath(e.route))return e.route.name?.includes("login")&&e.$kuistore.getters["user/has_user_account_logged_in"]||e.route.name?.startsWith("index___")&&null!=e.$kuistore.getters["user/user_default_stem"]||await e.$kuistore.dispatch("site/fetch_institution_from_stem",void 0),Promise.resolve(void 0);const t=Aa.get_vp_subpath(e.route);if(Va.isEmpty(t))return console.error("vp stem not found"),Promise.resolve(void 0);if(e.$kuistore.state.site.domain?.subdomain===t)return Promise.resolve(void 0);try{return await e.$kuistore.dispatch("site/fetch_institution_from_stem",t),Promise.resolve(void 0)}catch(n){const r=ju.unwrapKapiError(n);if(r.httpCode>=500)return e.error({statusCode:r.httpCode}),Promise.resolve(void 0);console.error(`${t} subpath couldn't be resolved, probably because it doesn't exist, redirecting to default vp...`);let i="";const s=e.$kuistore.getters["user/user_default_stem"];return i=null==e.$kuistore.state.user.user?"/":null==s?`/user/${e.$kuistore.getters["user/userId"]}/identities`:`/${s}`,Ia.redirect(e,i,!1),Promise.resolve(void 0)}},"sentinel/Sentinel":kf,"sentinel/SentinelAdditionalGuards":{},"sentinel/SentinelGroupPolicies":{},"sentinel/SentinelGuard":yf,"sentinel/SentinelGuardCheckers":{},"sentinel/SentinelGuardHandlers":{},"sentinel/SentinelParameter":{}},jm=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),Um=/[^\0-\x7E]/,$m=/[\x2E\u3002\uFF0E\uFF61]/g,Bm={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},Fm=Math.floor,qm=String.fromCharCode;function Vm(e){throw new RangeError(Bm[e])}const Hm=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},zm=function(e,t,n){let r=0;for(e=n?Fm(e/700):e>>1,e+=Fm(e/t);e>455;r+=36)e=Fm(e/35);return Fm(r+36*e/(e+38))};function Gm(e){return function(e){const t=e.split("@");let n="";t.length>1&&(n=t[0]+"@",e=t[1]);const r=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace($m,".")).split("."),function(e){return Um.test(e)?"xn--"+function(e){const t=[],n=(e=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length;let r=128,i=0,s=72;for(const l of e)l<128&&t.push(qm(l));const o=t.length;let a=o;for(o&&t.push("-");a<n;){let n=2147483647;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>Fm((2147483647-i)/l)&&Vm("overflow"),i+=(n-r)*l,r=n;for(const c of e)if(c<r&&++i>2147483647&&Vm("overflow"),c==r){let e=i;for(let n=36;;n+=36){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const i=e-r,o=36-r;t.push(qm(Hm(r+i%o,0))),e=Fm(i/o)}t.push(qm(Hm(e,0))),s=zm(i,l,a==o),i=0,++a}++i,++r}return t.join("")}(e):e}).join(".");return n+r}(e)}const Km=/#/g,Wm=/&/g,Xm=/\//g,Ym=/=/g,Zm=/\?/g,Jm=/\+/g,Qm=/%5e/gi,e_=/%60/gi,t_=/%7b/gi,n_=/%7c/gi,r_=/%7d/gi,i_=/%20/gi,s_=/%2f/gi,o_=/%252f/gi;function a_(e){return encodeURI(""+e).replace(n_,"|")}function l_(e){return a_("string"==typeof e?e:JSON.stringify(e)).replace(Jm,"%2B").replace(i_,"+").replace(Km,"%23").replace(Wm,"%26").replace(e_,"`").replace(Qm,"^").replace(Xm,"%2F")}function c_(e){return l_(e).replace(Ym,"%3D")}function u_(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function d_(e){return u_(e.replace(Jm," "))}function h_(e){return u_(e.replace(Jm," "))}function p_(e=""){const t=Object.create(null);"?"===e[0]&&(e=e.slice(1));for(const n of e.split("&")){const e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;const r=d_(e[1]);if("__proto__"===r||"constructor"===r)continue;const i=h_(e[2]||"");void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function f_(e){return Object.keys(e).filter(t=>void 0!==e[t]).map(t=>{return n=t,"number"!=typeof(r=e[t])&&"boolean"!=typeof r||(r=String(r)),r?Array.isArray(r)?r.map(e=>`${c_(n)}=${l_(e)}`).join("&"):`${c_(n)}=${l_(r)}`:c_(n);var n,r}
659).filter(Boolean).join("&")}const m_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,__=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g_=/^([/\\]\s*){2,}[^/\\]/,y_=/\/$|\/\?|\/#/,v_=/^\.?\//;function b_(e,t={}){return"boolean"==typeof t&&(t={acceptRelative:t}),t.strict?m_.test(e):__.test(e)||!!t.acceptRelative&&g_.test(e)}function w_(e="",t){return t?y_.test(e):e.endsWith("/")}function k_(e="",t){if(!t)return(w_(e)?e.slice(0,-1):e)||"/";if(!w_(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");-1!==i&&(n=e.slice(0,i),r=e.slice(i));const[s,...o]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function C_(e="",t){return e.endsWith("/")?e:e+"/"}function T_(e=""){return function(e=""){return e.startsWith("/")}(e)?e:"/"+e}function S_(e,t){const n=A_(e),r={...p_(n.search),...t};return n.search=f_(r),O_(n)}function x_(e,...t){let n=e||"";for(const r of t.filter(e=>function(e){return e&&"/"!==e}(e)))if(n){const e=r.replace(v_,"");n=C_(n)+e}else n=r;return n}function E_(e){const t=A_(e);return t.pathname=function(e){return a_(e).replace(Km,"%23").replace(Zm,"%3F").replace(o_,"%2F").replace(Wm,"%26").replace(Jm,"%2B")}(u_(t.pathname.replace(s_,"%252F"))),t.hash=function(e){return a_(e).replace(t_,"{").replace(r_,"}").replace(Qm,"^")}(u_(t.hash)),t.host=function(e=""){return Gm(e)}(u_(t.host)),t.search=f_(p_(t.search)),O_(t)}const I_=Symbol.for("ufo:protocolRelative");function A_(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!b_(e,{acceptRelative:!0}))return P_(e);const[,r="",i,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];"file:"===r&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=P_(a);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:c,hash:u,[I_]:!r}}function P_(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function O_(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[I_]?(e.protocol||"")+"//":"")+i+s+t+n+r}function L_(e){Xn.config.errorHandler&&Xn.config.errorHandler(e)}function D_(e){return e.then(e=>e.default||e)}function R_(e,t=[]){const n=e.$children||[];for(const r of n)r.$fetch&&t.push(r),r.$children&&R_(r,t);return t}function M_(e,t){if(!t&&e.options.__hasNuxtData)return;const n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){const r=n.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),{...r,...t}},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}function N_(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=Xn.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function j_(e,t=!1,n="components"){return Array.prototype.concat.apply([],e.matched.map((e,r)=>Object.keys(e[n]).map(i=>(t&&t.push(r),e[n][i]))))}function U_(e,t=!1){return j_(e,t,"instances")}function $_(e,t){return Array.prototype.concat.apply([],e.matched.map((e,n)=>Object.keys(e.components).reduce((r,i)=>(e.components[i]?r.push(t(e.components[i],e.instances[i],e,i,n)):delete e.components[i],r),[])))}function B_(e,t){return Promise.all($_(e,async(e,n,r,i)=>{if("function"==typeof e&&!e.options)try{e=await e()}catch(s){if(s&&"ChunkLoadError"===s.name&&"undefined"!=typeof window&&window.sessionStorage){const e=Date.now();try{const t=parseInt(window.sessionStorage.getItem("nuxt-reload"));(!t||t+6e4<e)&&(window.sessionStorage.setItem("nuxt-reload",e),window.location.reload(!0))}catch{}}throw s}return r.components[i]=e=N_(e),"function"==typeof t?t(e,n,r,i):e}))}async function F_(e){if(e)return await B_(e),{...e,meta:j_(e).map((t,n)=>({...t.options.meta,...(e.matched[n]||{}).meta}))}}async function q_(e,t){e.context||(e.context={isStatic:!1,isDev:!1,isHMR:!1,app:e,store:e.store,payload:t.payload,error:t.error,base:e.router.options.base,env:{VERSION:"6.12.1",BUILD_DATE:"2026-08-27-13-03-37",KAPI_URL:"[kui_origin]/kapi",KCMS_URL:"https://kcms.kanopy.com",KUI_SERVER_URL:"https://auth.kanopy.com",IS_DEV:"False",ENV_NAME:"prod",CHROMECAST_APP_ID:"25FC68EB",MUX_KEY:"AD7A5-eTwrxnhCs5zVREINQb_",APP_STORE_APPID:"1205614510",PLAYSTORE_APPID:"com.kanopy",MAPBOX_ACCESS_TOKEN:"pk.eyJ1Ijoia2Fub3B5aXQiLCJhIjoiY2p4dXc0MXFmMTh6OTNtcXFkOHZ4eTkwZSJ9.fKh2aYilVT9L8QQccr5pzA",PREFIX_COOKIES:"False"}},t.req&&(e.context.req=t.req),t.res&&(e.context.res=t.res),t.ssrContext&&(e.context.ssrContext=t.ssrContext),e.context.redirect=(t,n,r)=>{if(!t)return;e.context._redirected=!0;let i=typeof n;if("number"==typeof t||"undefined"!==i&&"object"!==i||(r=n||{},i=typeof(n=t),t=302),"object"===i&&(n=e.router.resolve(n).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=S_(n,r),window.location.assign(n),new Error("ERR_REDIRECT");e.context.next({path:n,query:r,status:t})},e.context.nuxtState=window.__NUXT__);const[n,r]=await Promise.all([F_(t.route),F_(t.from)]);t.route&&(e.context.route=n),t.from&&(e.context.from=r),t.error&&(e.context.error=t.error),e.context.next=t.next,e.context._redirected=!1,e.context._errored=!1,e.context.
659isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{}}function V_(e,t,n){return!e.length||t._redirected||t._errored||n&&n.aborted?Promise.resolve():H_(e[0],t).then(()=>V_(e.slice(1),t,n))}function H_(e,t){let n;return n=2===e.length?new Promise(n=>{e(t,function(e,r){e&&t.error(e),n(r=r||{})})}):e(t),n&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function z_(e,t){return function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$",J_()));return function(n,r){let i="";const s=n||{},o=(r||{}).pretty?W_:encodeURIComponent;for(let a=0;a<e.length;a++){const n=e[a];if("string"==typeof n){i+=n;continue}const r=s[n.name||"pathMatch"];let l;if(null==r){if(n.optional){n.partial&&(i+=n.prefix);continue}throw new TypeError('Expected "'+n.name+'" to be defined')}if(Array.isArray(r)){if(!n.repeat)throw new TypeError('Expected "'+n.name+'" to not repeat, but received `'+JSON.stringify(r)+"`");if(0===r.length){if(n.optional)continue;throw new TypeError('Expected "'+n.name+'" to not be empty')}for(let e=0;e<r.length;e++){if(l=o(r[e]),!t[a].test(l))throw new TypeError('Expected all "'+n.name+'" to match "'+n.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===e?n.prefix:n.delimiter)+l}}else{if(l=n.asterisk?X_(r):o(r),!t[a].test(l))throw new TypeError('Expected "'+n.name+'" to match "'+n.pattern+'", but received "'+l+'"');i+=n.prefix+l}}return i}}(function(e){const t=[];let n=0,r=0,i="";const s="/";let o;for(;null!=(o=K_.exec(e));){const a=o[0],l=o[1],c=o.index;if(i+=e.slice(r,c),r=c+a.length,l){i+=l[1];continue}const u=e[r],d=o[2],h=o[3],p=o[4],f=o[5],m=o[6],_=o[7];i&&(t.push(i),i="");const g=null!=d&&null!=u&&u!==d,y="+"===m||"*"===m,v="?"===m||"*"===m,b=o[2]||s,w=p||f;t.push({name:h||n++,prefix:d||"",delimiter:b,optional:v,repeat:y,partial:g,asterisk:Boolean(_),pattern:w?Z_(w):_?".*":"[^"+Y_(b)+"]+?"})}r<e.length&&(i+=e.substr(r));i&&t.push(i);return t}(e))}function G_(e){let t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(CL){t=`[${e.constructor.name}]`}return{...e,message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500}}window.onNuxtReadyCbs=[],window.onNuxtReady=e=>{window.onNuxtReadyCbs.push(e)};const K_=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function W_(e,t){const n=t?/[?#]/g:/[/?#]/g;return encodeURI(e).replace(n,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())}function X_(e){return W_(e,!0)}function Y_(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Z_(e){return e.replace(/([=!:$/()])/g,"\\$1")}function J_(e){return"i"}function Q_(e,t,n){e.$options[t]||(e.$options[t]=[]),e.$options[t].includes(n)||e.$options[t].push(n)}const eg=x_,tg=function(e,t){return u_(k_(e))===u_(k_(t))};function ng(e){try{window.history.scrollRestoration=e}catch(CL){}} 660/*! 661 * vuex v3.6.2 662 * (c) 2021 Evan You 663 * @license MIT 664 */var rg=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function ig(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach(function(n){i[n]=ig(e[n],t)}),i}function sg(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function og(e){return null!==e&&"object"==typeof e}var ag=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},lg={namespaced:{configurable:!0}};lg.namespaced.get=function(){return!!this._rawModule.namespaced},ag.prototype.addChild=function(e,t){this._children[e]=t},ag.prototype.removeChild=function(e){delete this._children[e]},ag.prototype.getChild=function(e){return this._children[e]},ag.prototype.hasChild=function(e){return e in this._children},ag.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ag.prototype.forEachChild=function(e){sg(this._children,e)},ag.prototype.forEachGetter=function(e){this._rawModule.getters&&sg(this._rawModule.getters,e)},ag.prototype.forEachAction=function(e){this._rawModule.actions&&sg(this._rawModule.actions,e)},ag.prototype.forEachMutation=function(e){this._rawModule.mutations&&sg(this._rawModule.mutations,e)},Object.defineProperties(ag.prototype,lg);var cg,ug=function(e){this.register([],e,!1)};function dg(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;dg(e.concat(r),t.getChild(r),n.modules[r])}}ug.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},ug.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},ug.prototype.update=function(e){dg([],this.root,e)},ug.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new ag(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&sg(t.modules,function(t,i){r.register(e.concat(i),t,n)})},ug.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},ug.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var hg=function(e){var t=this;void 0===e&&(e={}),!cg&&"undefined"!=typeof window&&window.Vue&&bg(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ug(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new cg,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,o=this.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return o.call(i,e,t,n)},this.strict=r;var a=this._modules.root.state;
664gg(this,a,[],this._modules.root),_g(this,a),n.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:cg.config.devtools)&&function(e){rg&&(e._devtoolHook=rg,rg.emit("vuex:init",e),rg.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){rg.emit("vuex:mutation",e,t)},{prepend:!0}),e.subscribeAction(function(e,t){rg.emit("vuex:action",e,t)},{prepend:!0}))}(this)},pg={state:{configurable:!0}};function fg(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function mg(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;gg(e,n,[],e._modules.root,!0),_g(e,n,t)}function _g(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={};sg(i,function(t,n){s[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var o=cg.config.silent;cg.config.silent=!0,e._vm=new cg({data:{$$state:t},computed:s}),cg.config.silent=o,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),cg.nextTick(function(){return r.$destroy()}))}function gg(e,t,n,r,i){var s=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!s&&!i){var a=yg(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){cg.set(a,l,r.state)})}var c=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var s=vg(n,r,i),o=s.payload,a=s.options,l=s.type;return a&&a.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var s=vg(n,r,i),o=s.payload,a=s.options,l=s.type;a&&a.root||(l=t+l),e.commit(l,o,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var s=i.slice(r);Object.defineProperty(n,s,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return yg(e.state,n)}}}),i}(e,o,n);r.forEachMutation(function(t,n){!function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(t){n.call(e,r.state,t)})}(e,o+n,t,c)}),r.forEachAction(function(t,n){var r=t.root?n:o+n,i=t.handler||t;!function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(t){var i,s=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=s)&&"function"==typeof i.then||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):s})}(e,r,i,c)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,c)}),r.forEachChild(function(r,s){gg(e,t,n.concat(s),r,i)})}function yg(e,t){return t.reduce(function(e,t){return e[t]},e)}function vg(e,t,n){return og(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function bg(e){cg&&e===cg||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(cg=e)}pg.state.get=function(){return this._vm._data.$$state},pg.state.set=function(e){},hg.prototype.commit=function(e,t,n){var r=this,i=vg(e,t,n),s=i.type,o=i.payload,a={type:s,payload:o},l=this._mutations[s];l&&(this._withCommit(function(){l.forEach(function(e){e(o)})}),this._subscribers.slice().forEach(function(e){return e(a,r.state)}))},hg.prototype.dispatch=function(e,t){var n=this,r=vg(e,t),i=r.type,s=r.payload,o={type:i,payload:s},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter(function(e){return e.before}
664).forEach(function(e){return e.before(o,n.state)})}catch(CL){}var l=a.length>1?Promise.all(a.map(function(e){return e(s)})):a[0](s);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(o,n.state)})}catch(CL){}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(o,n.state,e)})}catch(CL){}t(e)})})}},hg.prototype.subscribe=function(e,t){return fg(e,this._subscribers,t)},hg.prototype.subscribeAction=function(e,t){return fg("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},hg.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch(function(){return e(r.state,r.getters)},t,n)},hg.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},hg.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),gg(this,this.state,e,this._modules.get(e),n.preserveState),_g(this,this.state)},hg.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=yg(t.state,e.slice(0,-1));cg.delete(n,e[e.length-1])}),mg(this)},hg.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},hg.prototype.hotUpdate=function(e){this._modules.update(e),mg(this,!0)},hg.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(hg.prototype,pg);var wg=xg(function(e,t){var n={};return Sg(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=Eg(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0}),n}),kg=xg(function(e,t){var n={};return Sg(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var s=Eg(this.$store,"mapMutations",e);if(!s)return;r=s.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n}),Cg=xg(function(e,t){var n={};return Sg(t).forEach(function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||Eg(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0}),n}),Tg=xg(function(e,t){var n={};return Sg(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var s=Eg(this.$store,"mapActions",e);if(!s)return;r=s.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});function Sg(e){return function(e){return Array.isArray(e)||og(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function xg(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Eg(e,t,n){return e._modulesNamespaceMap[n]}function Ig(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(CL){e.log(t)}}function Ag(e){try{e.groupEnd()}catch(CL){e.log("ââ log end ââ")}}function Pg(){var e=new Date;return" @ "+Og(e.getHours(),2)+":"+Og(e.getMinutes(),2)+":"+Og(e.getSeconds(),2)+"."+Og(e.getMilliseconds(),3)}function Og(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}var Lg,Dg,Rg={Store:hg,install:bg,version:"3.6.2",mapState:wg,mapMutations:kg,mapGetters:Cg,mapActions:Tg,createNamespacedHelpers:function(e){return{mapState:wg.bind(null,e),mapGetters:Cg.bind(null,e),mapMutations:kg.bind(null,e),mapActions:Tg.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var s=e.actionFilter;void 0===s&&(s=function(e,t){return!0});var o=e.actionTransformer;void 0===o&&(o=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=ig(e.state);void 0!==c&&(a&&e.subscribe(function(e,s){var o=ig(s);if(n(e,u,o)){var a=Pg(),l=i(e),d="mutation "+e.type+a;Ig(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(o)),Ag(c)}u=o}),l&&e.subscribeAction(function(e,n){if(s(e,n)){var r=Pg(),i=o(e),a="action "+e.type+r;Ig(c,a,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),Ag(c)}}))}}};function Mg(){if(Dg)return Lg;Dg=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function o(e,t,r){var o={};return r.isMergeableObject(e)&&i(e).forEach(function(t){o[t]=n(e[t],r)}),i(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&r.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,r)(e[i],t[i],r):o[i]=n(t[i],r))}),o}function a(t,i,s){(s=s||{}).arrayMerge=s.arrayMerge||r,s.isMergeableObject=s.isMergeableObject||e,s.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(i);
664return a===Array.isArray(t)?a?s.arrayMerge(t,i,s):o(t,i,s):n(i,s)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},Lg=a}const Ng=Xa(Mg());function jg(e){return(jg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ug(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$g(Object(n),!0).forEach(function(t){Ug(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fg(e){return function(e){if(Array.isArray(e))return Vg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qg(e)||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 qg(e,t){if(e){if("string"==typeof e)return Vg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vg(e,t):void 0}}function Vg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hg(e){return Array.isArray(e)}function zg(e){return void 0===e}function Gg(e){return"object"===jg(e)}function Kg(e){return"object"===jg(e)&&null!==e}function Wg(e){return"function"==typeof e}function Xg(e){return"string"==typeof e}var Yg=(function(){try{return!zg(window)}catch(CL){return!1}}()?window:e).console||{};function Zg(e){Yg&&Yg.warn&&Yg.warn(e)}var Jg=function(){return Zg("This vue app/component has no vue-meta configuration")},Qg={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},ey="_vueMeta",ty="metaInfo",ny="data-vue-meta",ry="data-vue-meta-server-rendered",iy="vmid",sy="content",oy="template",ay=!0,ly=10,cy="ssr",uy=Object.keys(Qg),dy=[uy[12],uy[13]],hy=[uy[1],uy[2],"changed"].concat(dy),py=[uy[3],uy[4],uy[5]],fy=["link","style","script"],my=["base","meta","link"],_y=["noscript","script","style"],gy=["innerHTML","cssText","json"],yy=["once","skip","template"],vy=["body","pbody"],by=["allowfullscreen","amp","amp-boilerplate","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"],wy=null;function ky(e,t,n){var r=e.debounceWait;t[ey].initialized||!t[ey].initializing&&"watcher"!==n||(t[ey].initialized=null),t[ey].initialized&&!t[ey].pausing&&function(e,t){if(!(t=void 0===t?10:t))return void e();clearTimeout(wy),wy=setTimeout(function(){e()},t)}(function(){t.$meta().refresh()},r)}function Cy(e,t,n){if(!Array.prototype.findIndex){for(var r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return r;return-1}return e.findIndex(t,n)}function Ty(e){return Array.from?Array.from(e):Array.prototype.slice.call(e)}function Sy(e,t){if(!Array.prototype.includes){for(var n in e)if(e[n]===t)return!0;return!1}return e.includes(t)}var xy=function(e,t){return(t||document).querySelectorAll(e)};function Ey(e,t){return e[t]||(e[t]=document.getElementsByTagName(t)[0]),e[t]}function Iy(e,t,n){var r=t.appId,i=t.attribute,s=t.type,o=t.tagIDKeyName;n=n||{};var a=["".concat(s,"[").concat(i,'="').concat(r,'"]'),"".concat(s,"[data-").concat(o,"]")].map(function(e){for(var t in n){var r=n[t],i=r&&!0!==r?'="'.concat(r,'"'):"";e+="[data-".concat(t).concat(i,"]")}return e});return Ty(xy(a.join(", "),e))}function Ay(e,t){e.removeAttribute(t)}function Py(e){return(e=e||this)&&(!0===e[ey]||Gg(e[ey]))}function Oy(e,t){return e[ey].pausing=!0,function(){return Ly(e)}}function Ly(e,t){return e[ey].pausing=!1,e.$meta().refresh()}function Dy(e){var t=e.$router;!e[ey].navGuards&&t&&(e[ey].navGuards=!0,t.beforeEach(function(t,n,r){Oy(e),r()}),t.afterEach(function(){e.$nextTick(function(){var t=Ly(e).metaInfo;t&&Wg(t.afterNavigation)&&t.afterNavigation(t)})}))}var Ry=1;function My(e,t){var n=["activated","deactivated","beforeMount"],r=!1;return{beforeCreate:function(){var i=this,s="$root",o=this[s],a=this.$options,l=e.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return l&&!o[ey].deprecationWarningShown&&(Zg("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),o[ey].deprecationWarningShown=!0),Py(this)}}),this===o&&o.$once("hook:beforeMount",function(){if(!(r=this.$el&&1===this.$el.nodeType&&this.$el.hasAttribute("data-server-rendered"))&&o[ey]&&1===o[ey].appId){var e=Ey({},"html");r=e&&e.hasAttribute(t.ssrAttribute)}}),!zg(a[t.keyName])&&null!==a[t.keyName]){if(o[ey]||(o[ey]={appId:Ry},Ry++,l&&o.$options[t.keyName]&&this.$nextTick(function(){var e=function(e,t,n){if(Array.prototype.find)return e.find(t,n);for(var r=0;r<e.length;r++)if(t.call(n,e[r],r,e))return e[r]}(o.$children,function(e){return e.$vnode&&e.$vnode.fnOptions});e&&e.$vnode.fnOptions[t.keyName]&&Zg("VueMeta has detected a possible global mixin which adds a ".concat(t.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))})),!this[ey]){this[ey]=!0;for(var c=this.$parent;c&&c!==o;)zg(c[ey])&&(c[ey]=!1),c=c.$parent}Wg(a[t.keyName])&&(a.computed=a.computed||{},a.computed.$metaInfo=a[t.keyName],this.$isServer||this.$on("hook:created",function(){this.$watch("$metaInfo",function(){ky(t,this[s],"watcher")})})),zg(o[ey].initialized)&&(o[ey].initialized=this.$isServer,o[ey].initialized||(o[ey].initializedSsr||(o[ey].initializedSsr=!0,this.$on("hook:beforeMount",function(){var e=this[s];r&&(e[ey].appId=t.ssrAppId)}
664)),this.$on("hook:mounted",function(){var e=this[s];e[ey].initialized||(e[ey].initializing=!0,this.$nextTick(function(){var n=e.$meta().refresh(),r=n.tags,i=n.metaInfo;!1===r&&null===e[ey].initialized&&this.$nextTick(function(){return ky(t,e,"init")}),e[ey].initialized=!0,delete e[ey].initializing,!t.refreshOnceOnNavigation&&i.afterNavigation&&Dy(e)}))}),t.refreshOnceOnNavigation&&Dy(o))),this.$on("hook:destroyed",function(){var e=this;this.$parent&&Py(this)&&(delete this._hasMetaInfo,this.$nextTick(function(){if(t.waitOnDestroyed&&e.$el&&e.$el.offsetParent)var n=setInterval(function(){e.$el&&null!==e.$el.offsetParent||(clearInterval(n),ky(t,e.$root,"destroyed"))},50);else ky(t,e.$root,"destroyed")}))}),this.$isServer||n.forEach(function(e){i.$on("hook:".concat(e),function(){ky(t,this[s],e)})})}}}}function Ny(e){return{keyName:(e=Gg(e)?e:{}).keyName||ty,attribute:e.attribute||ny,ssrAttribute:e.ssrAttribute||ry,tagIDKeyName:e.tagIDKeyName||iy,contentKeyName:e.contentKeyName||sy,metaTemplateKeyName:e.metaTemplateKeyName||oy,debounceWait:zg(e.debounceWait)?ly:e.debounceWait,waitOnDestroyed:zg(e.waitOnDestroyed)?ay:e.waitOnDestroyed,ssrAppId:e.ssrAppId||cy,refreshOnceOnNavigation:!!e.refreshOnceOnNavigation}}function jy(e,t){return t&&Gg(e)?(Hg(e[t])||(e[t]=[]),e):Hg(e)?e:[]}var Uy=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,"""],[/'/g,"'"]],$y=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function By(e,t,n,r){var i=t.tagIDKeyName,s=n.doEscape,o=void 0===s?function(e){return e}:s,a={};for(var l in e){var c=e[l];if(Sy(hy,l))a[l]=c;else{var u=dy[0];if(n[u]&&Sy(n[u],l))a[l]=c;else{var d=e[i];if(d&&(u=dy[1],n[u]&&n[u][d]&&Sy(n[u][d],l)))a[l]=c;else if(Xg(c)?a[l]=o(c):Hg(c)?a[l]=c.map(function(e){return Kg(e)?By(e,t,n,!0):o(e)}):Kg(c)?a[l]=By(c,t,n,!0):a[l]=c,r){var h=o(l);l!==h&&(a[h]=a[l],delete a[l])}}}}return a}function Fy(e,t,n){n=n||[];var r={doEscape:function(e){return n.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};return dy.forEach(function(e,n){if(0===n)jy(t,e);else if(1===n)for(var i in t[e])jy(t[e],i);r[e]=t[e]}),By(t,e,r)}function qy(e,t,n,r){var i=e.component,s=e.metaTemplateKeyName,o=e.contentKeyName;return!0!==n&&!0!==t[s]&&(zg(n)&&t[s]&&(n=t[s],t[s]=!0),n?(zg(r)&&(r=t[o]),t[o]=Wg(n)?n.call(i,r):n.replace(/%s/g,r),!0):(delete t[s],!1))}var Vy=!1;function Hy(e,t,n){return n=n||{},void 0===t.title&&delete t.title,py.forEach(function(e){if(t[e])for(var n in t[e])n in t[e]&&void 0===t[e][n]&&(Sy(by,n)&&!Vy&&(Zg("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),Vy=!0),delete t[e][n])}),Ng(e,t,{arrayMerge:function(e,t){return function(e,t,n){var r=e.component,i=e.tagIDKeyName,s=e.metaTemplateKeyName,o=e.contentKeyName,a=[];return t.length||n.length?(t.forEach(function(e,t){if(e[i]){var l=Cy(n,function(t){return t[i]===e[i]}),c=n[l];if(-1!==l){if(o in c&&void 0===c[o]||"innerHTML"in c&&void 0===c.innerHTML)return a.push(e),void n.splice(l,1);if(null!==c[o]&&null!==c.innerHTML){var u=e[s];if(u){if(!c[s])return qy({component:r,metaTemplateKeyName:s,contentKeyName:o},c,u),void(c.template=!0);c[o]||qy({component:r,metaTemplateKeyName:s,contentKeyName:o},c,void 0,e[o])}}else n.splice(l,1)}else a.push(e)}else a.push(e)}),a.concat(n)):a}(n,e,t)}})}function zy(e,t){return Gy(e||{},t,Qg)}function Gy(e,t,n){if(n=n||{},t._inactive)return n;var r=(e=e||{}).keyName,i=t.$metaInfo,s=t.$options,o=t.$children;if(s[r]){var a=i||s[r];Gg(a)&&(n=Hy(n,a,e))}return o.length&&o.forEach(function(t){(function(e){return(e=e||this)&&!zg(e[ey])})(t)&&(n=Gy(e,t,n))}),n}var Ky=[];function Wy(e,t,n,r){var i=e.tagIDKeyName,s=!1;return n.forEach(function(e){e[i]&&e.callback&&(s=!0,function(e,t){1===arguments.length&&(t=e,e=""),Ky.push([e,t])}("".concat(t,"[data-").concat(i,'="').concat(e[i],'"]'),e.callback))}),s}function Xy(){"complete"!==document.readyState?document.onreadystatechange=function(){Yy()}:Yy()}function Yy(e){Ky.forEach(function(e){var t=e[0],n=e[1],r="".concat(t,'[onload="this.__vm_l=1"]');Ty(xy(r)).forEach(function(e){if(!e.__vm_cb){var t=function(){e.__vm_cb=!0,Ay(e,"onload"),n(e)};e.__vm_l?t():e.__vm_ev||(e.__vm_ev=!0,e.addEventListener("load",t))}})})}var Zy,Jy={};function Qy(e,t,n,r,i){var s=(t||{}).attribute,o=i.getAttribute(s);o&&(Jy[n]=JSON.parse(decodeURI(o)),Ay(i,s));var a=Jy[n]||{},l=[];for(var c in a)void 0!==a[c]&&e in a[c]&&(l.push(c),r[c]||delete a[c][e]);for(var u in r){var d=a[u];d&&d[e]===r[u]||(l.push(u),void 0!==r[u]&&(a[u]=a[u]||{},a[u][e]=r[u]))}for(var h=0,p=l;h<p.length;h++){var f=p[h],m=a[f],_=[];for(var g in m)Array.prototype.push.apply(_,[].concat(m[g]));if(_.length){var y=Sy(by,f)&&_.some(Boolean)?"":_.filter(function(e){return void 0!==e}).join(" ");i.setAttribute(f,y)}else Ay(i,f)}Jy[n]=a}function ev(e){(e||""===e)&&(document.title=e)}function tv(e,t,n,r,i,s){var o=t||{},a=o.attribute,l=o.tagIDKeyName,c=vy.slice();c.push(l);var u=[],d={appId:e,attribute:a,type:n,tagIDKeyName:l},h={head:Iy(i,d),pbody:Iy(s,d,{pbody:!0}
664),body:Iy(s,d,{body:!0})};if(r.length>1){var p=[];r=r.filter(function(e){var t=JSON.stringify(e),n=!Sy(p,t);return p.push(t),n})}r.forEach(function(t){if(!t.skip){var r=document.createElement(n);t.once||r.setAttribute(a,e),Object.keys(t).forEach(function(e){if(!Sy(yy,e))if("innerHTML"!==e)if("json"!==e)if("cssText"!==e)if("callback"!==e){var n=Sy(c,e)?"data-".concat(e):e,i=Sy(by,e);if(!i||t[e]){var s=i?"":t[e];r.setAttribute(n,s)}}else r.onload=function(){return t[e](r)};else r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else r.innerHTML=JSON.stringify(t.json);else r.innerHTML=t.innerHTML});var i,s=h[function(e){var t=e.body,n=e.pbody;return t?"body":n?"pbody":"head"}(t)];s.some(function(e,t){return i=t,r.isEqualNode(e)})&&(i||0===i)?s.splice(i,1):u.push(r)}});var f=[];for(var m in h)Array.prototype.push.apply(f,h[m]);return f.forEach(function(e){e.parentNode.removeChild(e)}),u.forEach(function(e){e.hasAttribute("data-body")?s.appendChild(e):e.hasAttribute("data-pbody")?s.insertBefore(e,s.firstChild):i.appendChild(e)}),{oldTags:f,newTags:u}}function nv(e,t,n){var r=t=t||{},i=r.ssrAttribute,s=r.ssrAppId,o={},a=Ey(o,"html");if(e===s&&a.hasAttribute(i)){Ay(a,i);var l=!1;return fy.forEach(function(e){n[e]&&Wy(t,e,n[e])&&(l=!0)}),l&&Xy(),!1}var c={},u={};for(var d in n)if(!Sy(hy,d))if("title"!==d){if(Sy(py,d)){var h=d.substr(0,4);Qy(e,t,d,n[d],Ey(o,h))}else if(Hg(n[d])){var p=tv(e,t,d,n[d],Ey(o,"head"),Ey(o,"body")),f=p.oldTags,m=p.newTags;m.length&&(c[d]=m,u[d]=f)}}else ev(n.title);return{tagsAdded:c,tagsRemoved:u}}function rv(e,t,n){return{set:function(r){return function(e,t,n,r){if(e&&e.$el)return nv(t,n,r);(Zy=Zy||{})[t]=r}(e,t,n,r)},remove:function(){return function(e,t,n){if(e&&e.$el){var r,i={},s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=qg(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 s,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}(py);try{for(s.s();!(r=s.n()).done;){var o=r.value,a=o.substr(0,4);Qy(t,n,o,{},Ey(i,a))}}catch(l){s.e(l)}finally{s.f()}return function(e,t){var n=e.attribute;Ty(xy("[".concat(n,'="').concat(t,'"]'))).map(function(e){return e.remove()})}(n,t)}Zy[t]&&(delete Zy[t],sv())}(e,t,n)}}}function iv(){return Zy}function sv(e){!e&&Object.keys(Zy).length||(Zy=void 0)}function ov(e,t,n,r){n=n||[];var i=(e=e||{}).tagIDKeyName;return t.title&&(t.titleChunk=t.title),t.titleTemplate&&"%s"!==t.titleTemplate&&qy({component:r,contentKeyName:"title"},t,t.titleTemplate,t.titleChunk||""),t.base&&(t.base=Object.keys(t.base).length?[t.base]:[]),t.meta&&(t.meta=t.meta.filter(function(e,t,n){return!e[i]||t===Cy(n,function(t){return t[i]===e[i]})}),t.meta.forEach(function(t){return qy(e,t)})),Fy(e,t,n)}function av(e,t,n,r){var i=e||{},s=i.ssrAppId,o=i.attribute,a=i.tagIDKeyName,l=r||{},c=l.appId,u=l.isSSR,d=void 0===u||u,h=l.body,p=void 0!==h&&h,f=l.pbody,m=void 0!==f&&f,_=l.ln,g=void 0!==_&&_,y=[a].concat(Fg(vy));return n&&n.length?n.reduce(function(e,n){if(n.skip)return e;if(0===Object.keys(n).length)return e;if(Boolean(n.body)!==p||Boolean(n.pbody)!==m)return e;var r=n.once?"":" ".concat(o,'="').concat(c||(!1===d?"1":s),'"');for(var i in n)if(!gy.includes(i)&&!yy.includes(i))if("callback"!==i){var a="";y.includes(i)&&(a="data-");var l=!a&&by.includes(i);l&&!n[i]||(r+=" ".concat(a).concat(i)+(l?"":'="'.concat(n[i],'"')))}else r+=' onload="this.__vm_l=1"';var u="";n.json&&(u=JSON.stringify(n.json));var h=n.innerHTML||n.cssText||u,f=!my.includes(t),_=f&&_y.includes(t);return"".concat(e,"<").concat(t).concat(r).concat(!_&&f?"/":"",">")+(_?"".concat(h,"</").concat(t,">"):"")+(g?"\n":"")},""):""}function lv(e,t,n){var r={data:t,extraData:void 0,addInfo:function(e,t){this.extraData=this.extraData||{},this.extraData[e]=t},callInjectors:function(e){var t=this.injectors;return(e.body||e.pbody?"":t.title.text(e))+t.meta.text(e)+t.base.text(e)+t.link.text(e)+t.style.text(e)+t.script.text(e)+t.noscript.text(e)},injectors:{head:function(e){return r.callInjectors(Bg(Bg({},n),{},{ln:e}))},bodyPrepend:function(e){return r.callInjectors(Bg(Bg({},n),{},{ln:e,pbody:!0}
664))},bodyAppend:function(e){return r.callInjectors(Bg(Bg({},n),{},{ln:e,body:!0}))}}},i=function(t){if(hy.includes(t))return"continue";r.injectors[t]={text:function(i){if(i=Bg(Bg({addSsrAttribute:!0===i},n),i),"title"===t)return function(e,t,n,r){var i=(r||{}).ln;return n?"<".concat(t,">").concat(n,"</").concat(t,">").concat(i?"\n":""):""}(0,t,r.data[t],i);if(py.includes(t)){var s={},o=r.data[t];if(o){var a=!1===i.isSSR?"1":e.ssrAppId;for(var l in o)s[l]=Ug({},a,o[l])}if(r.extraData)for(var c in r.extraData){var u=r.extraData[c][t];if(u)for(var d in u)s[d]=Bg(Bg({},s[d]),{},Ug({},c,u[d]))}return function(e,t,n,r){var i=r.addSsrAttribute,s=e||{},o=s.attribute,a=s.ssrAttribute,l="";for(var c in n){var u=n[c],d=[];for(var h in u)d.push.apply(d,Fg([].concat(u[h])));d.length&&(l+=by.includes(c)&&d.some(Boolean)?"".concat(c):"".concat(c,'="').concat(d.join(" "),'"'),l+=" ")}return l&&(l+="".concat(o,'="').concat(encodeURI(JSON.stringify(n)),'"')),"htmlAttrs"===t&&i?"".concat(a).concat(l?" ":"").concat(l):l}(e,t,s,i)}var h=av(e,t,r.data[t],i);if(r.extraData)for(var p in r.extraData){var f=r.extraData[p][t],m=av(e,t,f,Bg({appId:p},i));h="".concat(h).concat(m)}return h}}};for(var s in Qg)i(s);return r}function cv(e){e=e||{};var t=this.$root;return{getOptions:function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}(e)},setOptions:function(n){var r="refreshOnceOnNavigation";n&&n[r]&&(e.refreshOnceOnNavigation=!!n[r],Dy(t));var i="debounceWait";if(n&&i in n){var s=parseInt(n[i]);isNaN(s)||(e.debounceWait=s)}var o="waitOnDestroyed";n&&o in n&&(e.waitOnDestroyed=!!n[o])},refresh:function(){return function(e,t){if(t=t||{},!e[ey])return Jg(),{};var n=ov(t,zy(t,e),$y,e),r=nv(e[ey].appId,t,n);r&&Wg(n.changed)&&(n.changed(n,r.tagsAdded,r.tagsRemoved),r={addedTags:r.tagsAdded,removedTags:r.tagsRemoved});var i=iv();if(i){for(var s in i)nv(s,t,i[s]),delete i[s];sv(!0)}return{vm:e,metaInfo:n,tags:r}}(t,e)},inject:function(n){return function(e,t,n){if(!e[ey])return Jg(),{};var r=lv(t,ov(t,zy(t,e),Uy,e),n),i=iv();if(i){for(var s in i)r.addInfo(s,i[s]),delete i[s];sv(!0)}return r.injectors}(t,e,n)},pause:function(){return Oy(t)},resume:function(){return Ly(t)},addApp:function(n){return rv(t,n,e)}}}var uv,dv,hv={version:"2.4.0",install:function(e,t){e.__vuemeta_installed||(e.__vuemeta_installed=!0,t=Ny(t),e.prototype.$meta=function(){return cv.call(this,t)},e.mixin(My(e,t)))},generate:function(e,t){return function(e,t){return lv(t=Ny(t),ov(t,e,Uy)).injectors}(e,t)},hasMetaInfo:Py}; 665/*! 666 * vue-client-only v0.0.0-semantic-release 667 * (c) 2021-present egoist <[email protected]> 668 * Released under the MIT License. 669 */const pv=Xa(dv?uv:(dv=1,uv={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,i=t.props,s=r(),o=s.default;void 0===o&&(o=[]);var a=s.placeholder;return n._isMounted?o:(n.$once("hook:mounted",function(){n.$forceUpdate()}),i.placeholderTag&&(i.placeholder||a)?e(i.placeholderTag,{class:["client-only-placeholder"]},i.placeholder||a):o.length>0?o.map(function(){return e(!1)}):e(!1))}})); 670/*! 671 * vue-no-ssr v1.1.1 672 * (c) 2018-present egoist <[email protected]> 673 * Released under the MIT License. 674 */var fv,mv;const _v=Xa(mv?fv:(mv=1,fv={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,i=t.props,s=r(),o=s.default;void 0===o&&(o=[]);var a=s.placeholder;return n._isMounted?o:(n.$once("hook:mounted",function(){n.$forceUpdate()}),i.placeholderTag&&(i.placeholder||a)?e(i.placeholderTag,{class:["no-ssr-placeholder"]},i.placeholder||a):o.length>0?o.map(function(){return e(!1)}):e(!1))}})); 675/*! 676 * vue-router v3.6.5 677 * (c) 2022 Evan You 678 * @license MIT 679 */function gv(e,t){for(var n in t)e[n]=t[n];return e}var yv=/[!'()*]/g,vv=function(e){return"%"+e.charCodeAt(0).toString(16)},bv=/%2C/g,wv=function(e){return encodeURIComponent(e).replace(yv,vv).replace(bv,",")};function kv(e){try{return decodeURIComponent(e)}catch(t){}return e}var Cv=function(e){return null==e||"object"==typeof e?e:String(e)};function Tv(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=kv(n.shift()),i=n.length>0?kv(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function Sv(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return wv(t);if(Array.isArray(n)){var r=[];
679return n.forEach(function(e){void 0!==e&&(null===e?r.push(wv(t)):r.push(wv(t)+"="+wv(e)))}),r.join("&")}return wv(t)+"="+wv(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var xv=/\/?$/;function Ev(e,t,n,r){var i=r&&r.options.stringifyQuery,s=t.query||{};try{s=Iv(s)}catch(CL){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:s,params:t.params||{},fullPath:Ov(t,i),matched:e?Pv(e):[]};return n&&(o.redirectedFrom=Ov(n,i)),Object.freeze(o)}function Iv(e){if(Array.isArray(e))return e.map(Iv);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=Iv(e[n]);return t}return e}var Av=Ev(null,{path:"/"});function Pv(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Ov(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||Sv)(r)+i}function Lv(e,t,n){return t===Av?e===t:!!t&&(e.path&&t.path?e.path.replace(xv,"")===t.path.replace(xv,"")&&(n||e.hash===t.hash&&Dv(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&Dv(e.query,t.query)&&Dv(e.params,t.params))))}function Dv(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every(function(n,i){var s=e[n];if(r[i]!==n)return!1;var o=t[n];return null==s||null==o?s===o:"object"==typeof s&&"object"==typeof o?Dv(s,o):String(s)===String(o)})}function Rv(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],s=n.enteredCbs[r];if(i&&s){delete n.enteredCbs[r];for(var o=0;o<s.length;o++)i._isBeingDestroyed||s[o](i)}}}}var Mv={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,s=t.data;s.routerView=!0;for(var o=i.$createElement,a=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),u=0,d=!1;i&&i._routerRoot!==i;){var h=i.$vnode?i.$vnode.data:{};h.routerView&&u++,h.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(s.routerViewDepth=u,d){var p=c[a],f=p&&p.component;return f?(p.configProps&&Nv(f,s,p.route,p.configProps),o(f,s,r)):o()}var m=l.matched[u],_=m&&m.components[a];if(!m||!_)return c[a]=null,o();c[a]={component:_},s.registerRouteInstance=function(e,t){var n=m.instances[a];(t&&n!==e||!t&&n===e)&&(m.instances[a]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){m.instances[a]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[a]&&(m.instances[a]=e.componentInstance),Rv(l)};var g=m.props&&m.props[a];return g&&(gv(c[a],{route:l,configProps:g}),Nv(_,s,l,g)),o(_,s,r)}};function Nv(e,t,n,r){var i=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}(n,r);if(i){i=t.props=gv({},i);var s=t.attrs=t.attrs||{};for(var o in i)e.props&&o in e.props||(s[o]=i[o],delete i[o])}}function jv(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var s=e.replace(/^\//,"").split("/"),o=0;o<s.length;o++){var a=s[o];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function Uv(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var $v=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},Bv=tb,Fv=Gv,qv=function(e,t){return Xv(Gv(e,t),t)},Vv=Xv,Hv=eb,zv=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Gv(e,t){for(var n,r=[],i=0,s=0,o="",a=t&&t.delimiter||"/";null!=(n=zv.exec(e));){var l=n[0],c=n[1],u=n.index;if(o+=e.slice(s,u),s=u+l.length,c)o+=c[1];else{var d=e[s],h=n[2],p=n[3],f=n[4],m=n[5],_=n[6],g=n[7];o&&(r.push(o),o="");var y=null!=h&&null!=d&&d!==h,v="+"===_||"*"===_,b="?"===_||"*"===_,w=n[2]||a,k=f||m;r.push({name:p||i++,prefix:h||"",delimiter:w,optional:b,repeat:v,partial:y,asterisk:!!g,pattern:k?Zv(k):g?".*":"[^"+Yv(w)+"]+?"})}}return s<e.length&&(o+=e.substr(s)),o&&r.push(o),r}function Kv(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Wv(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Xv(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",Qv(t)));return function(t,r){for(var i="",s=t||{},o=(r||{}).pretty?Kv:encodeURIComponent,a=0;a<e.length;a++){var l=e[a];if("string"!=typeof l){var c,u=s[l.name];if(null==u){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if($v(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d]),!n[a].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===d?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?Wv(u):o(u),!n[a].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');i+=l.prefix+c}}else i+=l}return i}}function Yv(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Zv(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Jv(e,t){return e.keys=t,e}function Qv(e){return e&&e.sensitive?"":"i"}function eb(e,t,n){$v(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,s="",o=0;o<e.length;o++){var a=e[o];if("string"==typeof a)s+=Yv(a);else{var l=Yv(a.prefix),c="(?:"+a.pattern+")";t.push(a),a.repeat&&(c+="(?:"+l+c+")*"),s+=c=a.optional?a.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")"}}var u=Yv(n.delimiter||"/"),d=s.slice(-u.length)===u;return r||(s=(d?s.slice(0,-u.length):s)+"(?:"+u+"(?=$))?"),s+=i?"$":r&&d?"":"(?="+u+"|$)",Jv(new RegExp("^"+s,Qv(n)),t)}function tb(e,t,n){return $v(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Jv(e,t)}(e,t):$v(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(tb(e[i],t,n).source);return Jv(new RegExp("(?:"+r.join("|")+")",Qv(n)),t)}(e,t,n):function(e,t,n){return eb(Gv(e,n),t,n)}
679(e,t,n)}Bv.parse=Fv,Bv.compile=qv,Bv.tokensToFunction=Vv,Bv.tokensToRegExp=Hv;var nb=Object.create(null);function rb(e,t,n){t=t||{};try{var r=nb[e]||(nb[e]=Bv.compile(e));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(CL){return""}finally{delete t[0]}}function ib(e,t,n,r){var i="string"==typeof e?{path:e}:e;if(i._normalized)return i;if(i.name){var s=(i=gv({},e)).params;return s&&"object"==typeof s&&(i.params=gv({},s)),i}if(!i.path&&i.params&&t){(i=gv({},i))._normalized=!0;var o=gv(gv({},t.params),i.params);if(t.name)i.name=t.name,i.params=o;else if(t.matched.length){var a=t.matched[t.matched.length-1].path;i.path=rb(a,o,t.path)}return i}var l=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(i.path||""),c=t&&t.path||"/",u=l.path?jv(l.path,c,n||i.append):c,d=function(e,t,n){void 0===t&&(t={});var r,i=n||Tv;try{r=i(e||"")}catch(CL){r={}}for(var s in t){var o=t[s];r[s]=Array.isArray(o)?o.map(Cv):Cv(o)}return r}(l.query,i.query,r&&r.options.parseQuery),h=i.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:u,query:d,hash:h}}var sb,ob=function(){},ab={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(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),s=i.location,o=i.route,a=i.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,h=null==u?"router-link-exact-active":u,p=null==this.activeClass?d:this.activeClass,f=null==this.exactActiveClass?h:this.exactActiveClass,m=o.redirectedFrom?Ev(null,ib(o.redirectedFrom),null,n):o;l[f]=Lv(r,m,this.exactPath),l[p]=this.exact||this.exactPath?l[f]:function(e,t){return 0===e.path.replace(xv,"/").indexOf(t.path.replace(xv,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,m);var _=l[f]?this.ariaCurrentValue:null,g=function(e){lb(e)&&(t.replace?n.replace(s,ob):n.push(s,ob))},y={click:lb};Array.isArray(this.event)?this.event.forEach(function(e){y[e]=g}):y[this.event]=g;var v={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:o,navigate:g,isActive:l[p],isExactActive:l[f]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?e():e("span",{},b)}if("a"===this.tag)v.on=y,v.attrs={href:a,"aria-current":_};else{var w=cb(this.$slots.default);if(w){w.isStatic=!1;var k=w.data=gv({},w.data);for(var C in k.on=k.on||{},k.on){var T=k.on[C];C in y&&(k.on[C]=Array.isArray(T)?T:[T])}for(var S in y)S in k.on?k.on[S].push(y[S]):k.on[S]=g;var x=w.data.attrs=gv({},w.data.attrs);x.href=a,x["aria-current"]=_}else v.on=y}return e(this.tag,v,this.$slots.default)}};function lb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cb(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=cb(t.children)))return t}}var ub="undefined"!=typeof window;function hb(e,t,n,r,i){var s=t||[],o=n||Object.create(null),a=r||Object.create(null);e.forEach(function(e){pb(s,o,a,e,i)});for(var l=0,c=s.length;l<c;l++)"*"===s[l]&&(s.push(s.splice(l,1)[0]),c--,l--);return{pathList:s,pathMap:o,nameMap:a}}function pb(e,t,n,r,i,s){var o=r.path,a=r.name,l=r.pathToRegexpOptions||{},c=function(e,t,n){n||(e=e.replace(/\/$/,""));if("/"===e[0])return e;if(null==t)return e;return Uv(t.path+"/"+e)}(o,i,l.strict);"boolean"==typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var u={path:c,regex:fb(c,l),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:a,parent:i,matchAs:s,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};
679if(r.children&&r.children.forEach(function(r){var i=s?Uv(s+"/"+r.path):void 0;pb(e,t,n,r,u,i)}),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],h=0;h<d.length;++h){var p={path:d[h],children:r.children};pb(e,t,n,p,i,u.path||"/")}a&&(n[a]||(n[a]=u))}function fb(e,t){return Bv(e,[],t)}function mb(e,t){var n=hb(e),r=n.pathList,i=n.pathMap,s=n.nameMap;function o(e,n,o){var a=ib(e,n,!1,t),c=a.name;if(c){var u=s[c];if(!u)return l(null,a);var d=u.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in a.params)&&d.indexOf(h)>-1&&(a.params[h]=n.params[h]);return a.path=rb(u.path,a.params),l(u,a,o)}if(a.path){a.params={};for(var p=0;p<r.length;p++){var f=r[p],m=i[f];if(_b(m.regex,a.path,a.params))return l(m,a,o)}}return l(null,a)}function a(e,n){var r=e.redirect,i="function"==typeof r?r(Ev(e,n,null,t)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return l(null,n);var a=i,c=a.name,u=a.path,d=n.query,h=n.hash,p=n.params;if(d=a.hasOwnProperty("query")?a.query:d,h=a.hasOwnProperty("hash")?a.hash:h,p=a.hasOwnProperty("params")?a.params:p,c)return s[c],o({_normalized:!0,name:c,query:d,hash:h,params:p},void 0,n);if(u){var f=function(e,t){return jv(e,t.parent?t.parent.path:"/",!0)}(u,e);return o({_normalized:!0,path:rb(f,p),query:d,hash:h},void 0,n)}return l(null,n)}function l(e,n,r){return e&&e.redirect?a(e,r||n):e&&e.matchAs?function(e,t,n){var r=o({_normalized:!0,path:rb(n,t.params)});if(r){var i=r.matched,s=i[i.length-1];return t.params=r.params,l(s,t)}return l(null,t)}(0,n,e.matchAs):Ev(e,n,r,t)}return{match:o,addRoute:function(e,t){var n="object"!=typeof e?s[e]:void 0;hb([t||e],r,i,s,n),n&&n.alias.length&&hb(n.alias.map(function(e){return{path:e,children:[t]}}),r,i,s,n)},getRoutes:function(){return r.map(function(e){return i[e]})},addRoutes:function(e){hb(e,r,i,s)}}}function _b(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,s=r.length;i<s;++i){var o=e.keys[i-1];
679o&&(n[o.name||"pathMatch"]="string"==typeof r[i]?kv(r[i]):r[i])}return!0}var gb=ub&&window.performance&&window.performance.now?window.performance:Date;function yb(){return gb.now().toFixed(3)}var vb=yb();function bb(){return vb}function wb(e){return vb=e}var kb=Object.create(null);function Cb(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=gv({},window.history.state);return n.key=bb(),window.history.replaceState(n,"",t),window.addEventListener("popstate",xb),function(){window.removeEventListener("popstate",xb)}}function Tb(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var s=function(){var e=bb();if(e)return kb[e]}(),o=i.call(e,t,n,r?s:null);o&&("function"==typeof o.then?o.then(function(e){Ob(e,s)}).catch(function(e){}):Ob(o,s))})}}function Sb(){var e=bb();e&&(kb[e]={x:window.pageXOffset,y:window.pageYOffset})}function xb(e){Sb(),e.state&&e.state.key&&wb(e.state.key)}function Eb(e){return Ab(e.x)||Ab(e.y)}function Ib(e){return{x:Ab(e.x)?e.x:window.pageXOffset,y:Ab(e.y)?e.y:window.pageYOffset}}function Ab(e){return"number"==typeof e}var Pb=/^#\d/;function Ob(e,t){var n,r="object"==typeof e;if(r&&"string"==typeof e.selector){var i=Pb.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var s=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(i,s={x:Ab((n=s).x)?n.x:0,y:Ab(n.y)?n.y:0})}else Eb(e)&&(t=Ib(e))}else r&&Eb(e)&&(t=Ib(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Lb,Db=ub&&((-1===(Lb=window.navigator.userAgent).indexOf("Android 2.")&&-1===Lb.indexOf("Android 4.0")||-1===Lb.indexOf("Mobile Safari")||-1!==Lb.indexOf("Chrome")||-1!==Lb.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function Rb(e,t){Sb();var n=window.history;try{if(t){var r=gv({},n.state);r.key=bb(),n.replaceState(r,"",e)}else n.pushState({key:wb(yb())},"",e)}catch(CL){window.location[t?"replace":"assign"](e)}}function Mb(e){Rb(e,!0)}var Nb={redirected:2,aborted:4,cancelled:8,duplicated:16};function jb(e,t){return $b(e,t,Nb.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Bb.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function Ub(e,t){return $b(e,t,Nb.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function $b(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Bb=["params","query","hash"];function Fb(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function qb(e,t){return Fb(e)&&e._isRouter&&(null==t||e.type===t)}function Vb(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}function Hb(e){return function(t,n,r){var i=!1,s=0,o=null;zb(e,function(e,t,n,a){if("function"==typeof e&&void 0===e.cid){i=!0,s++;var l,c=Wb(function(t){var i;((i=t).__esModule||Kb&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:sb.extend(t),n.components[a]=t,--s<=0&&r()}),u=Wb(function(e){var t="Failed to resolve async component "+a+": "+e;o||(o=Fb(e)?e:new Error(t),r(o))});try{l=e(c,u)}catch(CL){u(CL)}if(l)if("function"==typeof l.then)l.then(c,u);else{var d=l.component;d&&"function"==typeof d.then&&d.then(c,u)}}}),i||r()}}function zb(e,t){return Gb(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function Gb(e){return Array.prototype.concat.apply([],e)}var Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Wb(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Xb=function(e,t){this.router=e,this.base=function(e){if(!e)if(ub){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=Av,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Yb(e,t,n,r){var i=zb(e,function(e,r,i,s){var o=function(e,t){"function"!=typeof e&&(e=sb.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map(function(e){return n(e,r,i,s)}):n(o,r,i,s)});return Gb(r?i.reverse():i)}function Zb(e,t){if(t)return function(){return e.apply(t,arguments)}}Xb.prototype.listen=function(e){this.cb=e},Xb.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Xb.prototype.onError=function(e){this.errorCbs.push(e)},Xb.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}
679catch(CL){throw this.errorCbs.forEach(function(t){t(CL)}),CL}var s=this.current;this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach(function(e){e&&e(r,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){n&&n(e),e&&!i.ready&&(qb(e,Nb.redirected)&&s===Av||(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)})))})},Xb.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var s,o,a=function(e){!qb(e)&&Fb(e)&&(r.errorCbs.length?r.errorCbs.forEach(function(t){t(e)}):console.error(e)),n&&n(e)},l=e.matched.length-1,c=i.matched.length-1;if(Lv(e,i)&&l===c&&e.matched[l]===i.matched[c])return this.ensureURL(),e.hash&&Tb(this.router,i,e,!1),a(((o=$b(s=i,e,Nb.duplicated,'Avoided redundant navigation to current location: "'+s.fullPath+'".')).name="NavigationDuplicated",o));var u=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),d=u.updated,h=u.deactivated,p=u.activated,f=[].concat(function(e){return Yb(e,"beforeRouteLeave",Zb,!0)}(h),this.router.beforeHooks,function(e){return Yb(e,"beforeRouteUpdate",Zb)}(d),p.map(function(e){return e.beforeEnter}),Hb(p)),m=function(t,n){if(r.pending!==e)return a(Ub(i,e));try{t(e,i,function(t){!1===t?(r.ensureURL(!0),a(function(e,t){return $b(e,t,Nb.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(i,e))):Fb(t)?(r.ensureURL(!0),a(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(a(jb(i,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(CL){a(CL)}};Vb(f,m,function(){var n=function(e){return Yb(e,"beforeRouteEnter",function(e,t,n,r){return function(e,t,n){return function(r,i,s){return e(r,i,function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),s(e)})}}(e,n,r)})}(p);Vb(n.concat(r.router.resolveHooks),m,function(){if(r.pending!==e)return a(Ub(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick(function(){Rv(e)})})})},Xb.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Xb.prototype.setupListeners=function(){},Xb.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Av,this.pending=null};var Jb=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Qb(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Db&&n;r&&this.listeners.push(Cb());var i=function(){var n=e.current,i=Qb(e.base);e.current===Av&&i===e._startLocation||e.transitionTo(i,function(e){r&&Tb(t,e,n,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){Rb(Uv(r.base+e.fullPath)),Tb(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){Mb(Uv(r.base+e.fullPath)),Tb(r.router,e,i,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(Qb(this.base)!==this.current.fullPath){var t=Uv(this.base+this.current.fullPath);e?Rb(t):Mb(t)}},t.prototype.getCurrentLocation=function(){return Qb(this.base)},t}(Xb);function Qb(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(Uv(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ew=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Qb(e);if(!/^\/#/.test(t))return window.location.replace(Uv(e+"/#"+t)),!0}(this.base)||tw()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=Db&&t;n&&this.listeners.push(Cb());var r=function(){var t=e.current;tw()&&e.transitionTo(nw(),function(r){n&&Tb(e.router,r,t,!0),Db||sw(r.fullPath)})},i=Db?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push(function(){window.removeEventListener(i,r)})}},t.prototype.push=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){iw(e.fullPath),Tb(r.router,e,i,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this.current;this.transitionTo(e,function(e){sw(e.fullPath),Tb(r.router,e,i,!1),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;nw()!==t&&(e?iw(t):sw(t))},t.prototype.getCurrentLocation=function(){return nw()},t}(Xb);function tw(){var e=nw();return"/"===e.charAt(0)||(sw("/"+e),!1)}function nw(){var e=window.location.href,t=e.indexOf("#");
679return t<0?"":e=e.slice(t+1)}function rw(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function iw(e){Db?Rb(rw(e)):window.location.hash=e}function sw(e){Db?Mb(rw(e)):window.location.replace(rw(e))}var ow=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach(function(t){t&&t(r,e)})},function(e){qb(e,Nb.duplicated)&&(t.index=n)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Xb),aw=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=mb(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Db&&!1!==e.fallback,this.fallback&&(t="hash"),ub||(t="abstract"),this.mode=t,t){case"history":this.history=new Jb(this,e.base);break;case"hash":this.history=new ew(this,e.base,this.fallback);break;case"abstract":this.history=new ow(this,e.base)}},lw={currentRoute:{configurable:!0}};aw.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},lw.currentRoute.get=function(){return this.history&&this.history.current},aw.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof Jb||n instanceof ew){var r=function(e){n.setupListeners(),function(e){var r=n.current,i=t.options.scrollBehavior;Db&&i&&"fullPath"in e&&Tb(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},aw.prototype.beforeEach=function(e){return uw(this.beforeHooks,e)},aw.prototype.beforeResolve=function(e){return uw(this.resolveHooks,e)},aw.prototype.afterEach=function(e){return uw(this.afterHooks,e)},aw.prototype.onReady=function(e,t){this.history.onReady(e,t)},aw.prototype.onError=function(e){this.history.onError(e)},aw.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.push(e,t,n)});this.history.push(e,t,n)},aw.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise(function(t,n){r.history.replace(e,t,n)});this.history.replace(e,t,n)},aw.prototype.go=function(e){this.history.go(e)},aw.prototype.back=function(){this.go(-1)},aw.prototype.forward=function(){this.go(1)},aw.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},aw.prototype.resolve=function(e,t,n){var r=ib(e,t=t||this.history.current,n,this),i=this.match(r,t),s=i.redirectedFrom||i.fullPath,o=function(e,t,n){var r="hash"===n?"#"+t:t;return e?Uv(e+"/"+r):r}(this.history.base,s,this.mode);return{location:r,route:i,href:o,normalizedTo:r,resolved:i}},aw.prototype.getRoutes=function(){return this.matcher.getRoutes()},aw.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Av&&this.history.transitionTo(this.history.getCurrentLocation())},aw.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Av&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(aw.prototype,lw);var cw=aw;function uw(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}aw.install=function e(t){if(!e.installed||sb!==t){e.installed=!0,sb=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",Mv),t.component("RouterLink",ab);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},aw.version="3.6.5",aw.isNavigationFailure=qb,aw.NavigationFailureType=Nb,aw.START_LOCATION=Av,ub&&window.Vue&&window.Vue.use(aw),"scrollRestoration"in window.history&&(ng("manual"),window.addEventListener("beforeunload",()=>{ng("auto")}),window.addEventListener("load",()=>{ng("manual")}));const dw=()=>D_(va(()=>import("./index-AIbPvMZA.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),hw=()=>D_(va(()=>import("./accessibility-CNXVh1jq.js"),__vite__mapDeps([4,3]),import.meta.url)),pw=()=>D_(va(()=>import("./catalog-BlNv_RxF.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,3]),import.meta.url)),fw=()=>D_(va(()=>import("./contact-DXxOaH2L.js"),__vite__mapDeps([22,3]),import.meta.url)),mw=()=>D_(va(()=>import("./index-eJotdZbu.js"),__vite__mapDeps([23,24,25,26,27,28,29,3]),import.meta.url)),_w=()=>D_(va(()=>import("./frontpage-dIErHptt.js"),__vite__mapDeps([30,3]),import.meta.url)),gw=()=>D_(va(()=>import("./index-DHOO_4vo.js"),__vite__mapDeps([31,3]),import.meta.url)),yw=()=>D_(va(()=>import("./kids-CMYE7wCi.js"),__vite__mapDeps([32,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,3]),import.meta.url)),vw=()=>D_(va(()=>import("./libbywelcome-BtxxJnZo.js"),__vite__mapDeps([33,34,25,26,35,3]),import.meta.url)),bw=()=>D_(va(()=>import("./link-Bi8ZGIw1.js"),__vite__mapDeps([36,3]),import.meta.url)),ww=()=>D_(va(()=>import("./login-C67BqGK4.js"),__vite__mapDeps([37,38,39,3,40,41,42]),import.meta.url)),kw=()=>D_(va(()=>import("./index-BT4izalT.js"),__vite__mapDeps([43,3]),import.meta.url)),Cw=()=>D_(va(()=>import("./parentalcontrols-CiFK0F1i.js"),__vite__mapDeps([44,3]),import.meta.url)),Tw=()=>D_(va(()=>import("./privacy-CBb5hQ8D.js"),__vite__mapDeps([45,46,47,48,49,3]),import.meta.url)),Sw=()=>D_(va(()=>import("./search-DB9T-pwI.js"),__vite__mapDeps([50,51,52,53,14,15,54,55,56,57,3,58,11,12,13,16,59,9,10,60,61]),import.meta.url)),xw=()=>D_(va(()=>import("./index-DuLeXWHP.js"),__vite__mapDeps([62,63,64,65]),import.meta.url)),Ew=()=>D_(va(()=>import("./terms-CSPaAbQW.js"),__vite__mapDeps([66,67,68,54,55,47,48,69,70,3]),import.meta.url)),Iw=()=>D_(va(()=>import("./tv-BZeTYiyo.js"),__vite__mapDeps([71,72]),import.meta.url)),Aw=()=>D_(va(()=>import("./wayf-DRk0fq9A.js"),__vite__mapDeps([73,3]),import.meta.url)),Pw=()=>D_(va(()=>import("./libraries-DaePycHF.js"),__vite__mapDeps([74,3]),import.meta.url)),Ow=()=>D_(va(()=>import("./index-CBUVLfhW.js"),__vite__mapDeps([75,3]),import.meta.url)),Lw=()=>D_(va(()=>import("./mywatchlist-YbmZsxaQ.js"),__vite__mapDeps([76,3]),import.meta.url)),Dw=()=>D_(va(()=>import("./password-DGBnKrPd.js"),__vite__mapDeps([77,78,39,3,79,80,81,82]),import.meta.url)),Rw=()=>D_(va(()=>import("./publiclibrary-eOPkZcs4.js"),__vite__mapDeps([83,84,52,53,85,63,64,86,87,88]),import.meta.url)),Mw=()=>D_(va(()=>import("./university-DSZdZVtU.js"),__vite__mapDeps([89,63,64,84,52,53,85,86,87,90]),import.meta.url)),Nw=()=>D_(va(()=>import("./index-CqHJaGu0.js"),__vite__mapDeps([91,3]),import.meta.url)),jw=()=>D_(va(()=>import("./_clipid-BNr67ncu.js"),__vite__mapDeps([92,3]),import.meta.url)),Uw=()=>D_(va(()=>import("./index-ClKoAnnA.js"),__vite__mapDeps([93,94,95,11,12,96,97,98,99]),import.meta.url)),$w=()=>D_(va(()=>import("./index-BSYVREBU.js"),__vite__mapDeps([100,94,95,11,12,96,97,101]),import.meta.url)),Bw=()=>D_(va(()=>import("./index-B1gxgPsT.js"),__vite__mapDeps([102,3]),import.meta.url)),Fw=()=>D_(va(()=>import("./index-Bw9CYwGT.js"),__vite__mapDeps([103,3]),import.meta.url)),qw=()=>D_(va(()=>import("./index-DbvUAH9B.js"),__vite__mapDeps([104,3]),import.meta.url)),Vw=()=>D_(va(()=>import("./_clipid-DHe7ZsCo.js"),__vite__mapDeps([105,93,94,95,11,12,96,97,98,99]),import.meta.url)),Hw=()=>D_(va(()=>import("./_episodeid-wZ-VXzGc.js"),__vite__mapDeps([106,100,94,95,11,12,96,97,101]),import.meta.url)),zw=()=>D_(va(()=>import("./_clipid-BGAHruLM.js"),__vite__mapDeps([107,3]),import.meta.url)),Gw=()=>D_(va(()=>import("./_clipid-s_087r68.js"),__vite__mapDeps([108,3]),import.meta.url)),Kw=()=>D_(va(()=>import("./index-DYJ-YRaw.js"),__vite__mapDeps([109,3]),import.meta.url)),Ww=()=>D_(va(()=>import("./_seasonepisodeid-BKRE4b4L.js"),__vite__mapDeps([110,3]),import.meta.url)),Xw=()=>D_(va(()=>import("./index-pEZYf39b.js"),__vite__mapDeps([111,112,7,8,9,10,11,12,13,14,15,16,17,18,113,58,59,114,19,20,115,3]),import.meta.url)),Yw=()=>D_(va(()=>import("./_stem-D-LFgRNe.js"),__vite__mapDeps([116,84,52,53,85,117]),import.meta.url)),Zw=()=>D_(va(()=>import("./_id-rOV8QKEn.js"),__vite__mapDeps([118,119,120,121,122,123,124,56,125,126,127,128,3]),import.meta.url)),Jw=()=>D_(va(()=>import("./index-DOHaahUA.js"),__vite__mapDeps([129,130,113,58,11,12,13,14,15,16,59,9,10,114,60,131,3]),import.meta.url)),Qw=()=>D_(va(()=>import("./index-DZQLCH9v.js"),__vite__mapDeps([132,3]),import.meta.url)),ek=()=>D_(va(()=>import("./index-DI7oSLOG.js"),__vite__mapDeps([133,3]),import.meta.url)),tk=()=>D_(va(()=>import("./identities-BLYiD4xV.js"),__vite__mapDeps([134,135,136,47,48,137,138,14,15,121,122,139,140,141,142,143,9,10,144,145]),import.meta.url)),nk=()=>D_(va(()=>import("./information-eJi4JjGY.js"),__vite__mapDeps([146,136,47,48,135,137,
679147,121,122,139,140,148,149,150]),import.meta.url)),rk=()=>D_(va(()=>import("./index-CM7BacQn.js"),__vite__mapDeps([151,135,136,47,48,137,152,153,154]),import.meta.url)),ik=()=>D_(va(()=>import("./confirm-BrNmx58_.js"),__vite__mapDeps([155,156]),import.meta.url)),sk=()=>D_(va(()=>import("./verify-BmwAamv8.js"),__vite__mapDeps([157,38,39,3,40,41,42]),import.meta.url)),ok=()=>D_(va(()=>import("./forgotpin-BMi4h0SX.js"),__vite__mapDeps([158,159,160,3]),import.meta.url)),ak=()=>D_(va(()=>import("./_jwt-CherAA3L.js"),__vite__mapDeps([161,162,152,135,153,163,3]),import.meta.url)),lk=()=>D_(va(()=>import("./_jwt-B25PHHFA.js"),__vite__mapDeps([164,165,39,3,79,80,166]),import.meta.url)),ck=()=>D_(va(()=>import("./_jwt-Djjag6fC.js"),__vite__mapDeps([167,3]),import.meta.url)),uk=()=>D_(va(()=>import("./_subtermid-CjWbFXdB.js"),__vite__mapDeps([168,112,7,8,9,10,11,12,13,14,15,16,17,18,113,58,59,114,19,20,115,3]),import.meta.url)),dk=()=>D_(va(()=>import("./index-BZ3ePXRQ.js"),__vite__mapDeps([169,3]),import.meta.url)),hk=()=>D_(va(()=>import("./_seasonepisodeid-Cy0vDHo8.js"),__vite__mapDeps([170,3]),import.meta.url)),pk=()=>D_(va(()=>import("./index-DEn3TxHT.js"),__vite__mapDeps([171,54,55,25,26,7,8,9,10,11,12,13,14,15,16,17,18,113,58,59,114,60,24,27,28,29,172]),import.meta.url)),fk=()=>D_(va(()=>import("./about-kids-8s09Qg0G.js"),__vite__mapDeps([173,174]),import.meta.url)),mk=()=>D_(va(()=>import("./index-Csbw1zH3.js"),__vite__mapDeps([175,1,2,3]),import.meta.url)),_k=()=>D_(va(()=>import("./accessibility-DdoLzXjG.js"),__vite__mapDeps([176,3]),import.meta.url)),gk=()=>D_(va(()=>
679import("./catalog-DK1Mm1Zl.js"),__vite__mapDeps([177,3]),import.meta.url)),yk=()=>D_(va(()=>import("./contact-x81aQ9c6.js"),__vite__mapDeps([178,3]),import.meta.url)),vk=()=>D_(va(()=>import("./frontpage-CVGUBJXA.js"),__vite__mapDeps([179,3]),import.meta.url)),bk=()=>D_(va(()=>import("./index-DxJuLapo.js"),__vite__mapDeps([180,3]),import.meta.url)),wk=()=>D_(va(()=>import("./kids-aaGSly-H.js"),__vite__mapDeps([181,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,3]),import.meta.url)),kk=()=>D_(va(()=>import("./libbywelcome-fBJAPSeF.js"),__vite__mapDeps([182,34,25,26,35,3]),import.meta.url)),Ck=()=>D_(va(()=>import("./link-D1Dc_OsP.js"),__vite__mapDeps([183,184]),import.meta.url)),Tk=()=>D_(va(()=>import("./login-D9-JOayo.js"),__vite__mapDeps([185,38,39,3,40,41,42]),import.meta.url)),Sk=()=>D_(va(()=>import("./index-Cgtc_FG9.js"),__vite__mapDeps([186,9,10,187,47,48,188,189,58,11,12,13,14,15,16,59,98,190,191]),import.meta.url)),xk=()=>D_(va(()=>import("./parentalcontrols-DBtHMnVA.js"),__vite__mapDeps([192,3]),import.meta.url)),Ek=()=>D_(va(()=>import("./privacy-qSNHfBut.js"),__vite__mapDeps([193,46,47,48,49,3]),import.meta.url)),Ik=()=>D_(va(()=>import("./search-DDoVfoT2.js"),__vite__mapDeps([194,51,52,53,14,15,54,55,56,57,3,58,11,12,13,16,59,9,10,60,61]),import.meta.url)),Ak=()=>D_(va(()=>import("./index-sw_751Bu.js"),__vite__mapDeps([195,3]),import.meta.url)),Pk=()=>D_(va(()=>import("./terms-CKVYcAwB.js"),__vite__mapDeps([196,67,68,54,55,47,48,69,70,3]),import.meta.url)),Ok=()=>D_(va(()=>import("./wayf-BVjc9HIw.js"),__vite__mapDeps([197,3]),import.meta.url)),Lk=()=>D_(va(()=>import("./libraries-BOpXWjcD.js"),__vite__mapDeps([198,3]),import.meta.url)),Dk=()=>D_(va(()=>import("./index-D68UiZEU.js"),__vite__mapDeps([199,187,47,48,188,200,201,202,203,14,15,143,9,10,139,140,27,28,204]),import.meta.url)),Rk=()=>D_(va(()=>import("./mywatchlist-uxXTJ9-P.js"),__vite__mapDeps([205,9,10,187,47,48,188,189,58,11,12,13,14,15,16,59,98,190,60,206]),import.meta.url)),Mk=()=>D_(va(()=>import("./welcome-CpruGta0.js"),__vite__mapDeps([207,208]),import.meta.url)),Nk=()=>D_(va(()=>import("./password-CDPRFKRC.js"),__vite__mapDeps([209,78,39,3,79,80,81,210]),import.meta.url)),jk=()=>D_(va(()=>import("./publiclibrary-DMpBJmy_.js"),__vite__mapDeps([211,63,64,212,39,3,79,80,141,142,213,214,9,10,215,216]),import.meta.url)),Uk=()=>D_(va(()=>import("./university-jLFHtgB3.js"),__vite__mapDeps([217,63,64,212,39,3,79,80,141,142,213,214,9,10,215,218]),import.meta.url)),$k=()=>D_(va(()=>import("./publiclibrary-qb_6QwxE.js"),__vite__mapDeps([219,220,63,64,39,3,40,41,213,214,148,221,222]),import.meta.url)),Bk=()=>D_(va(()=>import("./university-t2tAa8p4.js"),__vite__mapDeps([223,220,63,64,39,3,40,41,213,214,148,221,224]),import.meta.url)),Fk=()=>D_(va(()=>import("./publiclibrary-DKIHWena.js"),__vite__mapDeps([225,3]),import.meta.url)),qk=()=>D_(va(()=>import("./university-CBKYp4QJ.js"),__vite__mapDeps([226,3]),import.meta.url)),Vk=()=>D_(va(()=>import("./index-JT9HxS1Z.js"),__vite__mapDeps([227,228,3,139,140,229,57,230,126,127,231]),import.meta.url)),Hk=()=>D_(va(()=>import("./_clipid-BUjbgMd_.js"),__vite__mapDeps([232,228,3,233,234,139,140,202,203,95,11,12,96,98,235,236,237]),import.meta.url)),zk=()=>D_(va(()=>import("./index-2SclADAZ.js"),__vite__mapDeps([238,235,236,94,95,11,12,96,97,239,98,240]),import.meta.url)),Gk=()=>D_(va(()=>import("./index-B2bebd0r.js"),__vite__mapDeps([241,235,236,94,95,11,12,96,97,242,243]),import.meta.url)),Kk=()=>D_(va(()=>import("./index-JAUkg7Rs.js"),__vite__mapDeps([244,245,121,122,246,200,201,126,127,68,54,55,47,48,69,14,15,202,203,143,98,235,236,247]),import.meta.url)),Wk=()=>D_(va(()=>import("./index-C1aA_JVV.js"),__vite__mapDeps([248,239,235,236,98,249]),import.meta.url)),Xk=()=>D_(va(()=>import("./index-BQRhmIwi.js"),__vite__mapDeps([250,242,235,236,251]),import.meta.url)),Yk=()=>D_(va(()=>import("./_clipid-BuUWmiLo.js"),__vite__mapDeps([252,238,235,236,94,95,11,12,96,97,239,98,240]),import.meta.url)),Zk=()=>D_(va(()=>import("./_episodeid-BasQEc8h.js"),__vite__mapDeps([253,241,235,236,94,95,11,12,96,97,242,243]),import.meta.url)),Jk=()=>D_(va(()=>import("./_clipid-BWUeHMrg.js"),__vite__mapDeps([254,244,245,121,122,246,200,201,126,127,68,54,55,47,48,69,14,15,202,203,143,98,235,236,247]),import.meta.url)),Qk=()=>D_(va(()=>import("./_clipid-DO-lhBH5.js"),__vite__mapDeps([255,248,239,235,236,98,249]),import.meta.url)),eC=()=>D_(va(()=>import("./index-BglIwtNF.js"),__vite__mapDeps([256,250,242,235,236,251]),import.meta.url)),tC=()=>D_(va(()=>import("./_seasonepisodeid-CKHOP-1j.js"),__vite__mapDeps([257,250,242,235,236,251]),import.meta.url)),nC=()=>D_(va(()=>import("./index-Cdhfus7p.js"),__vite__mapDeps([258,112,7,8,9,10,11,12,13,14,15,16,17,18,113,58,59,114,19,20,115,3]),import.meta.url)),rC=()=>D_(va(()=>import("./_id-BeEz5whs.js"),__vite__mapDeps([259,119,120,121,122,123,124,56,125,126,127,128,3]),import.meta.url)),iC=()=>D_(va(()=>import("./index-BOm4k99e.js"),__vite__mapDeps([260,130,113,58,11,12,13,14,15,16,59,9,10,114,60,131,3]),import.meta.url)),sC=()=>D_(va(()=>import("./index--h42llQG.js"),__vite__mapDeps([261,3]),import.meta.url)),oC=()=>D_(va(()=>import("./index-jzav-Qzk.js"),__vite__mapDeps([262,120,121,122,123,11,12,14,15,229,57,3,228,230,245,246,124,56,125,126,127,68,54,55,47,48,69,9,10,8,13,16,17,200,201,202,203,235,236,263]),import.meta.url)),aC=()=>D_(va(()=>import("./identities-BuoVVQ9a.js"),__vite__mapDeps([264,135,136,47,48,137,138,14,15,121,122,139,140,141,142,143,9,10,144,265]),import.meta.url)),lC=()=>D_(va(()=>
679import("./information-KjirzDZB.js"),__vite__mapDeps([266,136,47,48,135,137,147,121,122,139,140,148,149,267]),import.meta.url)),cC=()=>D_(va(()=>import("./index-4PNjTbml.js"),__vite__mapDeps([268,135,136,47,48,137,152,153,269]),import.meta.url)),uC=()=>D_(va(()=>import("./request-DeDOBGaa.js"),__vite__mapDeps([270,11,12,39,3,121,122,139,140,233,234,148,124,56,125,126,127,271]),import.meta.url)),dC=()=>D_(va(()=>import("./forgotpin-BIbUcsEd.js"),__vite__mapDeps([272,159,160,3]),import.meta.url)),hC=()=>D_(va(()=>import("./_jwt-B-G16VLO.js"),__vite__mapDeps([273,162,152,135,153,163,3]),import.meta.url)),pC=()=>D_(va(()=>import("./_jwt-BfJUqi3H.js"),__vite__mapDeps([274,165,39,3,79,80,166]),import.meta.url)),fC=()=>D_(va(()=>import("./_jwt-1LZmwNyG.js"),__vite__mapDeps([275,3]),import.meta.url)),mC=()=>D_(va(()=>import("./_subtermid-CM96l06v.js"),__vite__mapDeps([276,112,7,8,9,10,11,12,13,14,15,16,17,18,113,58,59,114,19,20,115,3]),import.meta.url)),_C=()=>D_(va(()=>import("./index-BLSDq1Qx.js"),__vite__mapDeps([277,262,120,121,122,123,11,12,14,15,229,57,3,228,230,245,246,124,56,125,126,127,68,54,55,47,48,69,9,10,8,13,16,17,200,201,202,203,235,236,263]),import.meta.url)),gC=()=>D_(va(()=>import("./_seasonepisodeid-Bt5_Krqz.js"),__vite__mapDeps([278,262,120,121,122,123,11,12,14,15,229,57,3,228,230,245,246,124,56,125,126,127,68,54,55,47,48,69,9,10,8,13,16,17,200,201,202,203,235,236,263]),import.meta.url)),yC=()=>{};Xn.use(cw);const vC={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(e,t,n){let r=!1;const i=e!==t;n?r=n:i&&function(e){const t=j_(e);if(1===t.length){const{options:e={}}=t[0];return!1!==e.scrollToTop}return t.some(({options:e})=>e&&e.scrollToTop)}(e)&&(r={x:0,y:0});const s=window.$nuxt;return(!i||e.path===t.path&&e.hash!==t.hash)&&s.$nextTick(()=>s.$emit("triggerScroll")),new Promise(t=>{s.$once("triggerScroll",()=>{if(e.hash){let t=e.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(t="#"+window.CSS.escape(t.substr(1)));try{const e=document.querySelector(t);if(e){r={selector:t};const n=Number(getComputedStyle(e)["scroll-margin-top"]?.replace("px",""));n&&(r.offset={y:n})}}catch(CL){}}t(r)})})},routes:[{path:"/about-us",component:dw,name:"about-us"},{path:"/accessibility",component:hw,name:"accessibility"},{path:"/catalog",component:pw,name:"catalog"},{path:"/contact",component:fw,name:"contact"},{path:"/de",component:mw,name:"index___de"},{path:"/en",component:mw,name:"index___en"},{path:"/fr",component:mw,name:"index___fr"},{path:"/frontpage",component:_w,name:"frontpage"},{path:"/help",component:gw,name:"help"},{path:"/kids",component:yw,name:"kids"},{path:"/libbywelcome",component:vw,name:"libbywelcome"},{path:"/link",component:bw,name:"link"},{path:"/login",component:ww,name:"login"},{path:"/mylists",component:kw,name:"mylists"},{path:"/parentalcontrols",component:Cw,name:"parentalcontrols"},{path:"/privacy",component:Tw,name:"privacy"},{path:"/search",component:Sw,name:"search"},{path:"/signup",component:xw,name:"signup"},{path:"/terms",component:Ew,name:"terms"},{path:"/tv",component:Iw,name:"tv"},{path:"/wayf",component:Aw,name:"wayf"},{path:"/about-us/libraries",component:Pw,name:"about-us-libraries"},{path:"/de/about-us",component:dw,name:"about-us___de"},{path:"/de/accessibility",component:hw,name:"accessibility___de"},{path:"/de/catalog",component:pw,name:"catalog___de"},{path:"/de/contact",component:fw,name:"contact___de"},{path:"/de/frontpage",component:_w,name:"frontpage___de"},{path:"/de/help",component:gw,name:"help___de"},{path:"/de/kids",component:yw,name:"kids___de"},{path:"/de/libbywelcome",component:vw,name:"libbywelcome___de"},{path:"/de/link",component:bw,name:"link___de"},{path:"/de/login",component:ww,name:"login___de"},{path:"/de/mylists",component:kw,name:"mylists___de"},{path:"/de/parentalcontrols",component:Cw,name:"parentalcontrols___de"},{path:"/de/privacy",component:Tw,name:"privacy___de"},{path:"/de/search",component:Sw,name:"search___de"},{path:"/de/signup",component:xw,name:"signup___de"},{path:"/de/terms",component:Ew,name:"terms___de"},{path:"/de/tv",component:Iw,name:"tv___de"},{path:"/de/wayf",component:Aw,name:"wayf___de"},{path:"/en/about-us",component:dw,name:"about-us___en"},{path:"/en/accessibility",component:hw,name:"accessibility___en"},{path:"/en/catalog",component:pw,name:"catalog___en"},{path:"/en/contact",component:fw,name:"contact___en"},{path:"/en/frontpage",component:_w,name:"frontpage___en"},{path:"/en/help",component:gw,name:"help___en"},{path:"/en/kids",component:yw,name:"kids___en"},{path:"/en/libbywelcome",component:vw,name:"libbywelcome___en"},{path:"/en/link",component:bw,name:"link___en"},{path:"/en/login",component:ww,name:"login___en"},{path:"/en/mylists",component:kw,name:"mylists___en"},{path:"/en/parentalcontrols",component:Cw,name:"parentalcontrols___en"},{path:"/en/privacy",component:Tw,name:"privacy___en"},{path:"/en/search",component:Sw,name:"search___en"},{path:"/en/signup",component:xw,name:"signup___en"},{path:"/en/terms",component:Ew,name:"terms___en"},{path:"/en/tv",component:Iw,name:"tv___en"},{path:"/en/wayf",component:Aw,name:"wayf___en"},{path:"/fr/about-us",component:dw,name:"about-us___fr"},{path:"/fr/accessibility",component:hw,name:"accessibility___fr"},{path:"/fr/catalog",component:pw,name:"catalog___fr"},{path:"/fr/contact",component:fw,name:"contact___fr"},{path:"/fr/frontpage",component:_w,name:"frontpage___fr"},{path:"/fr/help",component:gw,name:"help___fr"},{path:"/fr/kids",component:yw,name:"kids___fr"},{path:"/fr/libbywelcome",component:vw,name:"libbywelcome___fr"},{path:"/fr/link",component:bw,name:"link___fr"},{path:"/fr/login",component:ww,name:"login___fr"},{path:"/fr/mylists",component:kw,name:"mylists___fr"},{path:"/fr/parentalcontrols",component:Cw,name:"parentalcontrols___fr"},{path:"/fr/privacy",component:Tw,name:"privacy___fr"},{path:"/fr/search",component:Sw,name:"search___fr"},{path:"/fr/signup",component:xw,name:"signup___fr"},{path:"/fr/terms",component:Ew,name:"terms___fr"},{path:"/fr/tv",component:Iw,name:"tv___fr"},{path:"/fr/wayf",component:Aw,name:"wayf___fr"},{path:"/mylists/customplaylists",component:Ow,name:"mylists-customplaylists"},{path:"/mylists/mywatchlist",component:Lw,name:"mylists-mywatchlist"},{path:"/user/password",component:Dw,name:"user-password"}
679,{path:"/de/about-us/libraries",component:Pw,name:"about-us-libraries___de"},{path:"/de/mylists/customplaylists",component:Ow,name:"mylists-customplaylists___de"},{path:"/de/mylists/mywatchlist",component:Lw,name:"mylists-mywatchlist___de"},{path:"/de/user/password",component:Dw,name:"user-password___de"},{path:"/en/about-us/libraries",component:Pw,name:"about-us-libraries___en"},{path:"/en/mylists/customplaylists",component:Ow,name:"mylists-customplaylists___en"},{path:"/en/mylists/mywatchlist",component:Lw,name:"mylists-mywatchlist___en"},{path:"/en/user/password",component:Dw,name:"user-password___en"},{path:"/fr/about-us/libraries",component:Pw,name:"about-us-libraries___fr"},{path:"/fr/mylists/customplaylists",component:Ow,name:"mylists-customplaylists___fr"},{path:"/fr/mylists/mywatchlist",component:Lw,name:"mylists-mywatchlist___fr"},{path:"/fr/user/password",component:Dw,name:"user-password___fr"},{path:"/signup/find/publiclibrary",component:Rw,name:"signup-find-publiclibrary"},{path:"/signup/find/university",component:Mw,name:"signup-find-university"},{path:"/de/signup/find/publiclibrary",component:Rw,name:"signup-find-publiclibrary___de"},{path:"/de/signup/find/university",component:Mw,name:"signup-find-university___de"},{path:"/en/signup/find/publiclibrary",component:Rw,name:"signup-find-publiclibrary___en"},{path:"/en/signup/find/university",component:Mw,name:"signup-find-university___en"},{path:"/fr/signup/find/publiclibrary",component:Rw,name:"signup-find-publiclibrary___fr"},{path:"/fr/signup/find/university",component:Mw,name:"signup-find-university___fr"},{path:"/",component:mw,name:"index"},{path:"/de/mylists/customplaylists/edit/:customplaylistid",component:Nw,name:"mylists-customplaylists-edit-customplaylistid___de"},{path:"/en/mylists/customplaylists/edit/:customplaylistid",component:Nw,name:"mylists-customplaylists-edit-customplaylistid___en"},{path:"/fr/mylists/customplaylists/edit/:customplaylistid",component:Nw,name:"mylists-customplaylists-edit-customplaylistid___fr"},{path:"/de/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:jw,name:"mylists-customplaylists-edit-customplaylistid-clipid___de"},{path:"/en/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:jw,name:"mylists-customplaylists-edit-customplaylistid-clipid___en"},{path:"/fr/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:jw,name:"mylists-customplaylists-edit-customplaylistid-clipid___fr"},{path:"/de/embed/customplaylists/:customplaylistid",component:Uw,name:"embed-customplaylists-customplaylistid___de"},{path:"/de/embed/video/:id",component:$w,name:"embed-video-id___de"},{path:"/de/mylists/customplaylists/:customplaylistsid",component:Bw,name:"mylists-customplaylists-customplaylistsid___de"},{path:"/de/watch/customplaylists/:customplaylistid",component:Fw,name:"watch-customplaylists-customplaylistid___de"},{path:"/de/watch/video/:id",component:qw,name:"watch-video-id___de"},{path:"/en/embed/customplaylists/:customplaylistid",component:Uw,name:"embed-customplaylists-customplaylistid___en"},{path:"/en/embed/video/:id",component:$w,name:"embed-video-id___en"},{path:"/en/mylists/customplaylists/:customplaylistsid",component:Bw,name:"mylists-customplaylists-customplaylistsid___en"},{path:"/en/watch/customplaylists/:customplaylistid",component:Fw,name:"watch-customplaylists-customplaylistid___en"},{path:"/en/watch/video/:id",component:qw,name:"watch-video-id___en"},{path:"/fr/embed/customplaylists/:customplaylistid",component:Uw,name:"embed-customplaylists-customplaylistid___fr"},{path:"/fr/embed/video/:id",component:$w,name:"embed-video-id___fr"},{path:"/fr/mylists/customplaylists/:customplaylistsid",component:Bw,name:"mylists-customplaylists-customplaylistsid___fr"},{path:"/fr/watch/customplaylists/:customplaylistid",component:Fw,name:"watch-customplaylists-customplaylistid___fr"},{path:"/fr/watch/video/:id",component:qw,name:"watch-video-id___fr"},{path:"/mylists/customplaylists/edit/:customplaylistid",component:Nw,name:"mylists-customplaylists-edit-customplaylistid"},{path:"/de/embed/customplaylists/:customplaylistid?/:clipid",component:Vw,name:"embed-customplaylists-customplaylistid-clipid___de"},{path:"/de/embed/video/:id?/:episodeid",component:Hw,name:"embed-video-id-episodeid___de"},{path:"/de/mylists/customplaylists/:customplaylistsid/:clipid",component:zw,name:"mylists-customplaylists-customplaylistsid-clipid___de"},{path:"/de/watch/customplaylists/:customplaylistid?/:clipid",component:Gw,name:"watch-customplaylists-customplaylistid-clipid___de"},{path:"/de/watch/video/:id?/:episodeid",component:Kw,name:"watch-video-id-episodeid___de"},{path:"/en/embed/customplaylists/:customplaylistid?/:clipid",component:Vw,name:"embed-customplaylists-customplaylistid-clipid___en"},{path:"/en/embed/video/:id?/:episodeid",component:Hw,name:"embed-video-id-episodeid___en"},{path:"/en/mylists/customplaylists/:customplaylistsid/:clipid",component:zw,name:"mylists-customplaylists-customplaylistsid-clipid___en"},{path:"/en/watch/customplaylists/:customplaylistid?/:clipid",component:Gw,name:"watch-customplaylists-customplaylistid-clipid___en"},{path:"/en/watch/video/:id?/:episodeid",component:Kw,name:"watch-video-id-episodeid___en"},{path:"/fr/embed/customplaylists/:customplaylistid?/:clipid",component:Vw,name:"embed-customplaylists-customplaylistid-clipid___fr"},{path:"/fr/embed/video/:id?/:episodeid",component:Hw,name:"embed-video-id-episodeid___fr"},{path:"/fr/mylists/customplaylists/:customplaylistsid/:clipid",component:zw,name:"mylists-customplaylists-customplaylistsid-clipid___fr"},{path:"/fr/watch/customplaylists/:customplaylistid?/:clipid",component:Gw,name:"watch-customplaylists-customplaylistid-clipid___fr"},{path:"/fr/watch/video/:id?/:episodeid",component:Kw,name:"watch-video-id-episodeid___fr"},{path:"/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:jw,name:"mylists-customplaylists-edit-customplaylistid-clipid"},{path:"/de/watch/video/:id?/:episodeid/:seasonepisodeid",component:Ww,name:"watch-video-id-episodeid-seasonepisodeid___de"},{path:"/en/watch/video/:id?/:episodeid/:seasonepisodeid",component:Ww,name:"watch-video-id-episodeid-seasonepisodeid___en"},{path:"/fr/watch/video/:id?/:episodeid/:seasonepisodeid",component:Ww,name:"watch-video-id-episodeid-seasonepisodeid___fr"},{path:"/de/category/:termid",component:Xw,name:"category-termid___de"},{path:"/de/group/:stem?",component:Yw,name:"group-stem___de"},{path:"/de/product/:id?",component:Zw,name:"product-id___de"},{path:"/de/shelf/:shelfid",component:Jw,name:"shelf-shelfid___de"},{path:"/de/user/:id",component:Qw,name:"user-id___de"},{path:"/de/video/:id",component:ek,name:"video-id___de"},{path:"/embed/customplaylists/:customplaylistid",component:Uw,name:"embed-customplaylists-customplaylistid"},{path:"/embed/video/:id",component:$w,name:"embed-video-id"},{path:"/en/category/:termid",component:Xw,name:"category-termid___en"},{path:"/en/group/:stem?",component:Yw,name:"group-stem___en"},{path:"/en/product/:id?",component:Zw,name:"product-id___en"},{path:"/en/shelf/:shelfid",component:Jw,name:"shelf-shelfid___en"},{path:"/en/user/:id",component:Qw,name:"user-id___en"},{path:"/en/video/:id",component:ek,name:"video-id___en"},{path:"/fr/category/:termid",component:Xw,name:"category-termid___fr"},{path:"/fr/group/:stem?",component:Yw,name:"group-stem___fr"},{path:"/fr/product/:id?",component:Zw,name:"product-id___fr"},{path:"/fr/shelf/:shelfid",component:Jw,name:"shelf-shelfid___fr"},{path:"/fr/user/:id",component:Qw,name:"user-id___fr"}
679,{path:"/fr/video/:id",component:ek,name:"video-id___fr"},{path:"/mylists/customplaylists/:customplaylistsid",component:Bw,name:"mylists-customplaylists-customplaylistsid"},{path:"/watch/customplaylists/:customplaylistid",component:Fw,name:"watch-customplaylists-customplaylistid"},{path:"/watch/video/:id",component:qw,name:"watch-video-id"},{path:"/de/user/:id?/identities",component:tk,name:"user-id-identities___de"},{path:"/de/user/:id?/information",component:nk,name:"user-id-information___de"},{path:"/de/user/:id?/parental-controls",component:rk,name:"user-id-parental-controls___de"},{path:"/en/user/:id?/identities",component:tk,name:"user-id-identities___en"},{path:"/en/user/:id?/information",component:nk,name:"user-id-information___en"},{path:"/en/user/:id?/parental-controls",component:rk,name:"user-id-parental-controls___en"},{path:"/fr/user/:id?/identities",component:tk,name:"user-id-identities___fr"},{path:"/fr/user/:id?/information",component:nk,name:"user-id-information___fr"},{path:"/fr/user/:id?/parental-controls",component:rk,name:"user-id-parental-controls___fr"},{path:"/de/user/:id?/delete-account/confirm",component:ik,name:"user-id-delete-account-confirm___de"},{path:"/de/user/:id?/delete-account/verify",component:sk,name:"user-id-delete-account-verify___de"},{path:"/de/user/:id?/parental-controls/forgotpin",component:ok,name:"user-id-parental-controls-forgotpin___de"},{path:"/en/user/:id?/delete-account/confirm",component:ik,name:"user-id-delete-account-confirm___en"},{path:"/en/user/:id?/delete-account/verify",component:sk,name:"user-id-delete-account-verify___en"},{path:"/en/user/:id?/parental-controls/forgotpin",component:ok,name:"user-id-parental-controls-forgotpin___en"},{path:"/fr/user/:id?/delete-account/confirm",component:ik,name:"user-id-delete-account-confirm___fr"},{path:"/fr/user/:id?/delete-account/verify",component:sk,name:"user-id-delete-account-verify___fr"},{path:"/fr/user/:id?/parental-controls/forgotpin",component:ok,name:"user-id-parental-controls-forgotpin___fr"},{path:"/de/user/:id?/parental-controls/reset/:jwt",component:ak,name:"user-id-parental-controls-reset-jwt___de"},{path:"/de/user/:id?/password/reset/:jwt?",component:lk,name:"user-id-password-reset-jwt___de"},{path:"/en/user/:id?/parental-controls/reset/:jwt",component:ak,name:"user-id-parental-controls-reset-jwt___en"},{path:"/en/user/:id?/password/reset/:jwt?",component:lk,name:"user-id-password-reset-jwt___en"},{path:"/fr/user/:id?/parental-controls/reset/:jwt",component:ak,name:"user-id-parental-controls-reset-jwt___fr"},{path:"/fr/user/:id?/password/reset/:jwt?",component:lk,name:"user-id-password-reset-jwt___fr"},{path:"/de/user/:id?/activate/:jwt?",component:ck,name:"user-id-activate-jwt___de"},{path:"/en/user/:id?/activate/:jwt?",component:ck,name:"user-id-activate-jwt___en"},{path:"/fr/user/:id?/activate/:jwt?",component:ck,name:"user-id-activate-jwt___fr"},{path:"/de/category/:termid?/:subtermid",component:uk,name:"category-termid-subtermid___de"},{path:"/de/video/:id?/:episodeid",component:dk,name:"video-id-episodeid___de"},{path:"/embed/customplaylists/:customplaylistid?/:clipid",component:Vw,name:"embed-customplaylists-customplaylistid-clipid"},{path:"/embed/video/:id?/:episodeid",component:Hw,name:"embed-video-id-episodeid"},{path:"/en/category/:termid?/:subtermid",component:uk,name:"category-termid-subtermid___en"},{path:"/en/video/:id?/:episodeid",component:dk,name:"video-id-episodeid___en"},{path:"/fr/category/:termid?/:subtermid",component:uk,name:"category-termid-subtermid___fr"},{path:"/fr/video/:id?/:episodeid",component:dk,name:"video-id-episodeid___fr"},{path:"/mylists/customplaylists/:customplaylistsid/:clipid",component:zw,name:"mylists-customplaylists-customplaylistsid-clipid"},{path:"/watch/customplaylists/:customplaylistid?/:clipid",component:Gw,name:"watch-customplaylists-customplaylistid-clipid"},{path:"/watch/video/:id?/:episodeid",component:Kw,name:"watch-video-id-episodeid"},{path:"/de/video/:id?/:episodeid/:seasonepisodeid",component:hk,name:"video-id-episodeid-seasonepisodeid___de"},{path:"/en/video/:id?/:episodeid/:seasonepisodeid",component:hk,name:"video-id-episodeid-seasonepisodeid___en"}
679,{path:"/fr/video/:id?/:episodeid/:seasonepisodeid",component:hk,name:"video-id-episodeid-seasonepisodeid___fr"},{path:"/watch/video/:id?/:episodeid/:seasonepisodeid",component:Ww,name:"watch-video-id-episodeid-seasonepisodeid"},{path:"/category/:termid",component:Xw,name:"category-termid"},{path:"/de/:subpath",component:pk,name:"subpath___de"},{path:"/en/:subpath",component:pk,name:"subpath___en"},{path:"/fr/:subpath",component:pk,name:"subpath___fr"},{path:"/group/:stem?",component:Yw,name:"group-stem"},{path:"/product/:id?",component:Zw,name:"product-id"},{path:"/shelf/:shelfid",component:Jw,name:"shelf-shelfid"},{path:"/user/:id",component:Qw,name:"user-id"},{path:"/video/:id",component:ek,name:"video-id"},{path:"/de/:subpath/about-kids",component:fk,name:"subpath-about-kids___de"},{path:"/de/:subpath/about-us",component:mk,name:"subpath-about-us___de"},{path:"/de/:subpath/accessibility",component:_k,name:"subpath-accessibility___de"},{path:"/de/:subpath/catalog",component:gk,name:"subpath-catalog___de"},{path:"/de/:subpath/contact",component:yk,name:"subpath-contact___de"},{path:"/de/:subpath/frontpage",component:vk,name:"subpath-frontpage___de"},{path:"/de/:subpath/help",component:bk,name:"subpath-help___de"},{path:"/de/:subpath/kids",component:wk,name:"subpath-kids___de"},{path:"/de/:subpath/libbywelcome",component:kk,name:"subpath-libbywelcome___de"},{path:"/de/:subpath/link",component:Ck,name:"subpath-link___de"},{path:"/de/:subpath/login",component:Tk,name:"subpath-login___de"},{path:"/de/:subpath/mylists",component:Sk,name:"subpath-mylists___de"},{path:"/de/:subpath/parentalcontrols",component:xk,name:"subpath-parentalcontrols___de"},{path:"/de/:subpath/privacy",component:Ek,name:"subpath-privacy___de"},{path:"/de/:subpath/search",component:Ik,name:"subpath-search___de"},{path:"/de/:subpath/signup",component:Ak,name:"subpath-signup___de"},{path:"/de/:subpath/terms",component:Pk,name:"subpath-terms___de"},{path:"/de/:subpath/wayf",component:Ok,name:"subpath-wayf___de"},{path:"/en/:subpath/about-kids",component:fk,name:"subpath-about-kids___en"},{path:"/en/:subpath/about-us",component:mk,name:"subpath-about-us___en"},{path:"/en/:subpath/accessibility",component:_k,name:"subpath-accessibility___en"},{path:"/en/:subpath/catalog",component:gk,name:"subpath-catalog___en"},{path:"/en/:subpath/contact",component:yk,name:"subpath-contact___en"},{path:"/en/:subpath/frontpage",component:vk,name:"subpath-frontpage___en"},{path:"/en/:subpath/help",component:bk,name:"subpath-help___en"},{path:"/en/:subpath/kids",component:wk,name:"subpath-kids___en"},{path:"/en/:subpath/libbywelcome",component:kk,name:"subpath-libbywelcome___en"},{path:"/en/:subpath/link",component:Ck,name:"subpath-link___en"},{path:"/en/:subpath/login",component:Tk,name:"subpath-login___en"},{path:"/en/:subpath/mylists",component:Sk,name:"subpath-mylists___en"},{path:"/en/:subpath/parentalcontrols",component:xk,name:"subpath-parentalcontrols___en"},{path:"/en/:subpath/privacy",component:Ek,name:"subpath-privacy___en"},{path:"/en/:subpath/search",component:Ik,name:"subpath-search___en"},{path:"/en/:subpath/signup",component:Ak,name:"subpath-signup___en"},{path:"/en/:subpath/terms",component:Pk,name:"subpath-terms___en"},{path:"/en/:subpath/wayf",component:Ok,name:"subpath-wayf___en"},{path:"/fr/:subpath/about-kids",component:fk,name:"subpath-about-kids___fr"},{path:"/fr/:subpath/about-us",component:mk,name:"subpath-about-us___fr"},{path:"/fr/:subpath/accessibility",component:_k,name:"subpath-accessibility___fr"},{path:"/fr/:subpath/catalog",component:gk,name:"subpath-catalog___fr"},{path:"/fr/:subpath/contact",component:yk,name:"subpath-contact___fr"},{path:"/fr/:subpath/frontpage",component:vk,name:"subpath-frontpage___fr"},{path:"/fr/:subpath/help",component:bk,name:"subpath-help___fr"},{path:"/fr/:subpath/kids",component:wk,name:"subpath-kids___fr"},{path:"/fr/:subpath/libbywelcome",component:kk,name:"subpath-libbywelcome___fr"},{path:"/fr/:subpath/link",component:Ck,name:"subpath-link___fr"},{path:"/fr/:subpath/login",component:Tk,name:"subpath-login___fr"},{path:"/fr/:subpath/mylists",component:Sk,name:"subpath-mylists___fr"},{path:"/fr/:subpath/parentalcontrols",component:xk,name:"subpath-parentalcontrols___fr"},{path:"/fr/:subpath/privacy",component:Ek,name:"subpath-privacy___fr"},{path:"/fr/:subpath/search",component:Ik,name:"subpath-search___fr"},{path:"/fr/:subpath/signup",component:Ak,name:"subpath-signup___fr"},{path:"/fr/:subpath/terms",component:Pk,name:"subpath-terms___fr"},{path:"/fr/:subpath/wayf",component:Ok,name:"subpath-wayf___fr"},{path:"/user/:id?/identities",component:tk,name:"user-id-identities"},{path:"/user/:id?/information",component:nk,name:"user-id-information"}
679,{path:"/user/:id?/parental-controls",component:rk,name:"user-id-parental-controls"},{path:"/de/:subpath/about-us/libraries",component:Lk,name:"subpath-about-us-libraries___de"},{path:"/de/:subpath/mylists/customplaylists",component:Dk,name:"subpath-mylists-customplaylists___de"},{path:"/de/:subpath/mylists/mywatchlist",component:Rk,name:"subpath-mylists-mywatchlist___de"},{path:"/de/:subpath/signup/welcome",component:Mk,name:"subpath-signup-welcome___de"},{path:"/de/:subpath/user/password",component:Nk,name:"subpath-user-password___de"},{path:"/en/:subpath/about-us/libraries",component:Lk,name:"subpath-about-us-libraries___en"},{path:"/en/:subpath/mylists/customplaylists",component:Dk,name:"subpath-mylists-customplaylists___en"},{path:"/en/:subpath/mylists/mywatchlist",component:Rk,name:"subpath-mylists-mywatchlist___en"},{path:"/en/:subpath/signup/welcome",component:Mk,name:"subpath-signup-welcome___en"},{path:"/en/:subpath/user/password",component:Nk,name:"subpath-user-password___en"},{path:"/fr/:subpath/about-us/libraries",component:Lk,name:"subpath-about-us-libraries___fr"},{path:"/fr/:subpath/mylists/customplaylists",component:Dk,name:"subpath-mylists-customplaylists___fr"},{path:"/fr/:subpath/mylists/mywatchlist",component:Rk,name:"subpath-mylists-mywatchlist___fr"},{path:"/fr/:subpath/signup/welcome",component:Mk,name:"subpath-signup-welcome___fr"},{path:"/fr/:subpath/user/password",component:Nk,name:"subpath-user-password___fr"},{path:"/user/:id?/delete-account/confirm",component:ik,name:"user-id-delete-account-confirm"},{path:"/user/:id?/delete-account/verify",component:sk,name:"user-id-delete-account-verify"},{path:"/user/:id?/parental-controls/forgotpin",component:ok,name:"user-id-parental-controls-forgotpin"},{path:"/de/:subpath/signup/auth/publiclibrary",component:jk,name:"subpath-signup-auth-publiclibrary___de"},{path:"/de/:subpath/signup/auth/university",component:Uk,name:"subpath-signup-auth-university___de"},{path:"/de/:subpath/signup/create/publiclibrary",component:$k,name:"subpath-signup-create-publiclibrary___de"},{path:"/de/:subpath/signup/create/university",component:Bk,name:"subpath-signup-create-university___de"},{path:"/de/:subpath/signup/find/publiclibrary",component:Fk,name:"subpath-signup-find-publiclibrary___de"},{path:"/de/:subpath/signup/find/university",component:qk,name:"subpath-signup-find-university___de"},{path:"/en/:subpath/signup/auth/publiclibrary",component:jk,name:"subpath-signup-auth-publiclibrary___en"},{path:"/en/:subpath/signup/auth/university",component:Uk,name:"subpath-signup-auth-university___en"},{path:"/en/:subpath/signup/create/publiclibrary",component:$k,name:"subpath-signup-create-publiclibrary___en"},{path:"/en/:subpath/signup/create/university",component:Bk,name:"subpath-signup-create-university___en"},{path:"/en/:subpath/signup/find/publiclibrary",component:Fk,name:"subpath-signup-find-publiclibrary___en"},{path:"/en/:subpath/signup/find/university",component:qk,name:"subpath-signup-find-university___en"},{path:"/fr/:subpath/signup/auth/publiclibrary",component:jk,name:"subpath-signup-auth-publiclibrary___fr"},{path:"/fr/:subpath/signup/auth/university",component:Uk,name:"subpath-signup-auth-university___fr"},{path:"/fr/:subpath/signup/create/publiclibrary",component:$k,name:"subpath-signup-create-publiclibrary___fr"},{path:"/fr/:subpath/signup/create/university",component:Bk,name:"subpath-signup-create-university___fr"},{path:"/fr/:subpath/signup/find/publiclibrary",component:Fk,name:"subpath-signup-find-publiclibrary___fr"},{path:"/fr/:subpath/signup/find/university",component:qk,name:"subpath-signup-find-university___fr"},{path:"/de/:subpath/mylists/customplaylists/edit/:customplaylistid",component:Vk,name:"subpath-mylists-customplaylists-edit-customplaylistid___de"},{path:"/en/:subpath/mylists/customplaylists/edit/:customplaylistid",component:Vk,name:"subpath-mylists-customplaylists-edit-customplaylistid___en"},{path:"/fr/:subpath/mylists/customplaylists/edit/:customplaylistid",component:Vk,name:"subpath-mylists-customplaylists-edit-customplaylistid___fr"},{path:"/de/:subpath/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:Hk,name:"subpath-mylists-customplaylists-edit-customplaylistid-clipid___de"},{path:"/en/:subpath/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:Hk,name:"subpath-mylists-customplaylists-edit-customplaylistid-clipid___en"},{path:"/fr/:subpath/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:Hk,name:"subpath-mylists-customplaylists-edit-customplaylistid-clipid___fr"},{path:"/de/:subpath/embed/customplaylists/:customplaylistid",component:zk,name:"subpath-embed-customplaylists-customplaylistid___de"},{path:"/de/:subpath/embed/video/:id",component:Gk,name:"subpath-embed-vi
679deo-id___de"},{path:"/de/:subpath/mylists/customplaylists/:customplaylistid",component:Kk,name:"subpath-mylists-customplaylists-customplaylistid___de"},{path:"/de/:subpath/watch/customplaylists/:customplaylistid",component:Wk,name:"subpath-watch-customplaylists-customplaylistid___de"},{path:"/de/:subpath/watch/video/:id",component:Xk,name:"subpath-watch-video-id___de"},{path:"/en/:subpath/embed/customplaylists/:customplaylistid",component:zk,name:"subpath-embed-customplaylists-customplaylistid___en"},{path:"/en/:subpath/embed/video/:id",component:Gk,name:"subpath-embed-video-id___en"},{path:"/en/:subpath/mylists/customplaylists/:customplaylistid",component:Kk,name:"subpath-mylists-customplaylists-customplaylistid___en"},{path:"/en/:subpath/watch/customplaylists/:customplaylistid",component:Wk,name:"subpath-watch-customplaylists-customplaylistid___en"},{path:"/en/:subpath/watch/video/:id",component:Xk,name:"subpath-watch-video-id___en"},{path:"/fr/:subpath/embed/customplaylists/:customplaylistid",component:zk,name:"subpath-embed-customplaylists-customplaylistid___fr"},{path:"/fr/:subpath/embed/video/:id",component:Gk,name:"subpath-embed-video-id___fr"},{path:"/fr/:subpath/mylists/customplaylists/:customplaylistid",component:Kk,name:"subpath-mylists-customplaylists-customplaylistid___fr"},{path:"/fr/:subpath/watch/customplaylists/:customplaylistid",component:Wk,name:"subpath-watch-customplaylists-customplaylistid___fr"},{path:"/fr/:subpath/watch/video/:id",component:Xk,name:"subpath-watch-video-id___fr"},{path:"/user/:id?/parental-controls/reset/:jwt",component:ak,name:"user-id-parental-controls-reset-jwt"},{path:"/user/:id?/password/reset/:jwt?",component:lk,name:"user-id-password-reset-jwt"},{path:"/de/:subpath/embed/customplaylists/:customplaylistid?/:clipid",component:Yk,name:"subpath-embed-customplaylists-customplaylistid-clipid___de"},{path:"/de/:subpath/embed/video/:id?/:episodeid",component:Zk,name:"subpath-embed-video-id-episodeid___de"},{path:"/de/:subpath/mylists/customplaylists/:customplaylistid/:clipid",component:Jk,name:"subpath-mylists-customplaylists-customplaylistid-clipid___de"},{path:"/de/:subpath/watch/customplaylists/:customplaylistid?/:clipid",component:Qk,name:"subpath-watch-customplaylists-customplaylistid-clipid___de"},{path:"/de/:subpath/watch/video/:id?/:episodeid",component:eC,name:"subpath-watch-video-id-episodeid___de"},{path:"/en/:subpath/embed/customplaylists/:customplaylistid?/:clipid",component:Yk,name:"subpath-embed-customplaylists-customplaylistid-clipid___en"},{path:"/en/:subpath/embed/video/:id?/:episodeid",component:Zk,name:"subpath-embed-video-id-episodeid___en"},{path:"/en/:subpath/mylists/customplaylists/:customplaylistid/:clipid",component:Jk,name:"subpath-mylists-customplaylists-customplaylistid-clipid___en"},{path:"/en/:subpath/watch/customplaylists/:customplaylistid?/:clipid",component:Qk,name:"subpath-watch-customplaylists-customplaylistid-clipid___en"},{path:"/en/:subpath/watch/video/:id?/:episodeid",component:eC,name:"subpath-watch-video-id-episodeid___en"},{path:"/fr/:subpath/embed/customplaylists/:customplaylistid?/:clipid",component:Yk,name:"subpath-embed-customplaylists-customplaylistid-clipid___fr"},{path:"/fr/:subpath/embed/video/:id?/:episodeid",component:Zk,name:"subpath-embed-video-id-episodeid___fr"},{path:"/fr/:subpath/mylists/customplaylists/:customplaylistid/:clipid",component:Jk,name:"subpath-mylists-customplaylists-customplaylistid-clipid___fr"},{path:"/fr/:subpath/watch/customplaylists/:customplaylistid?/:clipid",component:Qk,name:"subpath-watch-customplaylists-customplaylistid-clipid___fr"},{path:"/fr/:subpath/watch/video/:id?/:episodeid",component:eC,name:"subpath-watch-video-id-episodeid___fr"},{path:"/de/:subpath/watch/video/:id?/:episodeid/:seasonepisodeid",component:tC,name:"subpath-watch-video-id-episodeid-seasonepisodeid___de"},{path:"/en/:subpath/watch/video/:id?/:episodeid/:seasonepisodeid",component:tC,name:"subpath-watch-video-id-episodeid-seasonepisodeid___en"},{path:"/fr/:subpath/watch/video/:id?/:episodeid/:seasonepisodeid",component:tC,name:"subpath-watch-video-id-episodeid-seasonepisodeid___fr"},{path:"/de/:subpath/category/:termid",component:nC,name:"subpath-category-termid___de"},{path:"/de/:subpath/product/:id?",component:rC,name:"subpath-product-id___de"},{path:"/de/:subpath/shelf/:shelfid",component:iC,name:"subpath-shelf-shelfid___de"},{path:"/de/:subpath/user/:id",component:sC,name:"subpath-user-id___de"},{path:"/de/:subpath/video/:id",component:oC,name:"subpath-video-id___de"},{path:"/en/:subpath/category/:termid",component:nC,name:"subpath-category-termid___en"},{path:"/en/:subpath/product/:id?",component:rC,name:"subpath-product-id___en"},{path:"/en/:subpath/shelf/:shelfid",component:iC,name:"subpath-shelf-shelfid___en"},{path:"/en/:subpath/user/:id",component:sC,name:"subpath-user-id___en"},{path:"/en/:subpath/video/:id",component:oC,name:"subpath-video-id___en"},{path:"/fr/:subpath/category/:termid",component:nC,name:"subpath-category-termid___fr"},{path:"/fr/:subpath/product/:id?",component:rC,name:"subpath-product-id___fr"},{path:"/fr/:subpath/shelf/:shelfid",component:iC,name:"subpath-shelf-shelfid___fr"},{path:"/fr/:subpath/user/:id",component:sC,name:"subpath-user-id___fr"},{path:"/fr/:subpath/video/:id",component:oC,name:"subpath-video-id___fr"},{path:"/user/:id?/activate/:jwt?",component:ck,name:"user-id-activate-jwt"},{path:"/de/:subpath/user/:id?/identities",component:aC,name:"subpath-user-id-identities___de"},{path:"/de/:subpath/user/:id?/information",component:lC,name:"subpath-user-id-information___de"}
679,{path:"/de/:subpath/user/:id?/parental-controls",component:cC,name:"subpath-user-id-parental-controls___de"},{path:"/de/:subpath/video/:id?/request",component:uC,name:"subpath-video-id-request___de"},{path:"/en/:subpath/user/:id?/identities",component:aC,name:"subpath-user-id-identities___en"},{path:"/en/:subpath/user/:id?/information",component:lC,name:"subpath-user-id-information___en"},{path:"/en/:subpath/user/:id?/parental-controls",component:cC,name:"subpath-user-id-parental-controls___en"},{path:"/en/:subpath/video/:id?/request",component:uC,name:"subpath-video-id-request___en"},{path:"/fr/:subpath/user/:id?/identities",component:aC,name:"subpath-user-id-identities___fr"},{path:"/fr/:subpath/user/:id?/information",component:lC,name:"subpath-user-id-information___fr"},{path:"/fr/:subpath/user/:id?/parental-controls",component:cC,name:"subpath-user-id-parental-controls___fr"},{path:"/fr/:subpath/video/:id?/request",component:uC,name:"subpath-video-id-request___fr"},{path:"/de/:subpath/user/:id?/parental-controls/forgotpin",component:dC,name:"subpath-user-id-parental-controls-forgotpin___de"},{path:"/en/:subpath/user/:id?/parental-controls/forgotpin",component:dC,name:"subpath-user-id-parental-controls-forgotpin___en"},{path:"/fr/:subpath/user/:id?/parental-controls/forgotpin",component:dC,name:"subpath-user-id-parental-controls-forgotpin___fr"},{path:"/de/:subpath/user/:id?/parental-controls/reset/:jwt",component:hC,name:"subpath-user-id-parental-controls-reset-jwt___de"},{path:"/de/:subpath/user/:id?/password/reset/:jwt?",component:pC,name:"subpath-user-id-password-reset-jwt___de"},{path:"/en/:subpath/user/:id?/parental-controls/reset/:jwt",component:hC,name:"subpath-user-id-parental-controls-reset-jwt___en"},{path:"/en/:subpath/user/:id?/password/reset/:jwt?",component:pC,name:"subpath-user-id-password-reset-jwt___en"},{path:"/fr/:subpath/user/:id?/parental-controls/reset/:jwt",component:hC,name:"subpath-user-id-parental-controls-reset-jwt___fr"},{path:"/fr/:subpath/user/:id?/password/reset/:jwt?",component:pC,name:"subpath-user-id-password-reset-jwt___fr"},{path:"/de/:subpath/user/:id?/activate/:jwt?",component:fC,name:"subpath-user-id-activate-jwt___de"},{path:"/en/:subpath/user/:id?/activate/:jwt?",component:fC,name:"subpath-user-id-activate-jwt___en"},{path:"/fr/:subpath/user/:id?/activate/:jwt?",component:fC,name:"subpath-user-id-activate-jwt___fr"},{path:"/de/:subpath/category/:termid?/:subtermid",component:mC,name:"subpath-category-termid-subtermid___de"},{path:"/de/:subpath/video/:id?/:episodeid",component:_C,name:"subpath-video-id-episodeid___de"},{path:"/en/:subpath/category/:termid?/:subtermid",component:mC,name:"subpath-category-termid-subtermid___en"},{path:"/en/:subpath/video/:id?/:episodeid",component:_C,name:"subpath-video-id-episodeid___en"},{path:"/fr/:subpath/category/:termid?/:subtermid",component:mC,name:"subpath-category-termid-subtermid___fr"},{path:"/fr/:subpath/video/:id?/:episodeid",component:_C,name:"subpath-video-id-episodeid___fr"},{path:"/de/:subpath/video/:id?/:episodeid/:seasonepisodeid",component:gC,name:"subpath-video-id-episodeid-seasonepisodeid___de"},{path:"/en/:subpath/video/:id?/:episodeid/:seasonepisodeid",component:gC,name:"subpath-video-id-episodeid-seasonepisodeid___en"},{path:"/fr/:subpath/video/:id?/:episodeid/:seasonepisodeid",component:gC,name:"subpath-video-id-episodeid-seasonepisodeid___fr"},{path:"/category/:termid?/:subtermid",component:uk,name:"category-termid-subtermid"},{path:"/video/:id?/:episodeid",component:dk,name:"video-id-episodeid"},{path:"/video/:id?/:episodeid/:seasonepisodeid",component:hk,name:"video-id-episodeid-seasonepisodeid"},{path:"/:subpath",component:pk,name:"subpath"},{path:"/:subpath/about-kids",component:fk,name:"subpath-about-kids"},{path:"/:subpath/about-us",component:mk,name:"subpath-about-us"},{path:"/:subpath/accessibility",component:_k,name:"subpath-accessibility"},{path:"/:subpath/catalog",component:gk,name:"subpath-catalog"},{path:"/:subpath/contact",component:yk,name:"subpath-contact"},{path:"/:subpath/frontpage",component:vk,name:"subpath-frontpage"},{path:"/:subpath/help",component:bk,name:"subpath-help"},{path:"/:subpath/kids",component:wk,name:"subpath-kids"},{path:"/:subpath/libbywelcome",component:kk,name:"subpath-libbywelcome"},{path:"/:subpath/link",component:Ck,name:"subpath-link"},{path:"/:subpath/login",component:Tk,name:"subpath-login"},{path:"/:subpath/mylists",component:Sk,name:"subpath-mylists"},{path:"/:subpath/parentalcontrols",component:xk,name:"subpath-parentalcontrols"},{path:"/:subpath/privacy",component:Ek,name:"subpath-privacy"},{path:"/:subpath/search",component:Ik,name:"subpath-search"},{path:"/:subpath/signup",component:Ak,name:"subpath-signup"},{path:"/:subpath/terms",component:Pk,name:"subpath-terms"},{path:"/:subpath/wayf",component:Ok,name:"subpath-wayf"},{path:"/:subpath/about-us/libraries",component:Lk,name:"subpath-about-us-l
679ibraries"},{path:"/:subpath/mylists/customplaylists",component:Dk,name:"subpath-mylists-customplaylists"},{path:"/:subpath/mylists/mywatchlist",component:Rk,name:"subpath-mylists-mywatchlist"},{path:"/:subpath/signup/welcome",component:Mk,name:"subpath-signup-welcome"},{path:"/:subpath/user/password",component:Nk,name:"subpath-user-password"},{path:"/:subpath/signup/auth/publiclibrary",component:jk,name:"subpath-signup-auth-publiclibrary"},{path:"/:subpath/signup/auth/university",component:Uk,name:"subpath-signup-auth-university"},{path:"/:subpath/signup/create/publiclibrary",component:$k,name:"subpath-signup-create-publiclibrary"},{path:"/:subpath/signup/create/university",component:Bk,name:"subpath-signup-create-university"},{path:"/:subpath/signup/find/publiclibrary",component:Fk,name:"subpath-signup-find-publiclibrary"},{path:"/:subpath/signup/find/university",component:qk,name:"subpath-signup-find-university"},{path:"/:subpath/mylists/customplaylists/edit/:customplaylistid",component:Vk,name:"subpath-mylists-customplaylists-edit-customplaylistid"},{path:"/:subpath/mylists/customplaylists/edit/:customplaylistid?/:clipid",component:Hk,name:"subpath-mylists-customplaylists-edit-customplaylistid-clipid"},{path:"/:subpath/embed/customplaylists/:customplaylistid",component:zk,name:"subpath-embed-customplaylists-customplaylistid"},{path:"/:subpath/embed/video/:id",component:Gk,name:"subpath-embed-video-id"},{path:"/:subpath/mylists/customplaylists/:customplaylistid",component:Kk,name:"subpath-mylists-customplaylists-customplaylistid"},{path:"/:subpath/watch/customplaylists/:customplaylistid",component:Wk,name:"subpath-watch-customplaylists-customplaylistid"},{path:"/:subpath/watch/video/:id",component:Xk,name:"subpath-watch-video-id"},{path:"/:subpath/embed/customplaylists/:customplaylistid?/:clipid",component:Yk,name:"subpath-embed-customplaylists-customplaylistid-clipid"},{path:"/:subpath/embed/video/:id?/:episodeid",component:Zk,name:"subpath-embed-video-id-episodeid"},{path:"/:subpath/mylists/customplaylists/:customplaylistid/:clipid",component:Jk,name:"subpath-mylists-customplaylists-customplaylistid-clipid"},{path:"/:subpath/watch/customplaylists/:customplaylistid?/:clipid",component:Qk,name:"subpath-watch-customplaylists-customplaylistid-clipid"},{path:"/:subpath/watch/video/:id?/:episodeid",component:eC,name:"subpath-watch-video-id-episodeid"},{path:"/:subpath/watch/video/:id?/:episodeid/:seasonepisodeid",component:tC,name:"subpath-watch-video-id-episodeid-seasonepisodeid"},{path:"/:subpath/category/:termid",component:nC,name:"subpath-category-termid"},{path:"/:subpath/product/:id?",component:rC,name:"subpath-product-id"},{path:"/:subpath/shelf/:shelfid",component:iC,name:"subpath-shelf-shelfid"},{path:"/:subpath/user/:id",component:sC,name:"subpath-user-id"},{path:"/:subpath/video/:id",component:oC,name:"subpath-video-id"},{path:"/:subpath/user/:id?/identities",component:aC,name:"subpath-user-id-identities"},{path:"/:subpath/user/:id?/information",component:lC,name:"subpath-user-id-information"},{path:"/:subpath/user/:id?/parental-controls",component:cC,name:"subpath-user-id-parental-controls"},{path:"/:subpath/video/:id?/request",component:uC,name:"subpath-video-id-request"},{path:"/:subpath/user/:id?/parental-controls/forgotpin",component:dC,name:"subpath-user-id-parental-controls-forgotpin"},{path:"/:subpath/user/:id?/parental-controls/reset/:jwt",component:hC,name:"subpath-user-id-parental-controls-reset-jwt"},{path:"/:subpath/user/:id?/password/reset/:jwt?",component:pC,name:"subpath-user-id-password-reset-jwt"},{path:"/:subpath/user/:id?/activate/:jwt?",component:fC,name:"subpath-user-id-activate-jwt"},{path:"/:subpath/category/:termid?/:subtermid",component:mC,name:"subpath-category-termid-subtermid"},{path:"/:subpath/video/:id?/:episodeid",component:_C,name:"subpath-video-id-episodeid"},{path:"/:subpath/video/:id?/:episodeid/:seasonepisodeid",component:gC,name:"subpath-video-id-episodeid-seasonepisodeid"}],fallback:!1};const bC={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render(e,{parent:t,data:n,props:r}){const i=t.$createElement;n.nuxtChild=!0;const s=t,o=t.$nuxt.nuxt.transitions,a=t.$nuxt.nuxt.defaultTransition;let l=0;for(;t;)t.$vnode&&t.$vnode.data.nuxtChild&&l++,t=t.$parent;n.nuxtChildDepth=l;const c=o[l]||a,u={};
679wC.forEach(e=>{void 0!==c[e]&&(u[e]=c[e])});const d={};kC.forEach(e=>{"function"==typeof c[e]&&(d[e]=c[e].bind(s))});{const e=d.beforeEnter;d.beforeEnter=t=>{if(window.$nuxt.$nextTick(()=>{window.$nuxt.$emit("triggerScroll")}),e)return e.call(s,t)}}if(!1===c.css){const e=d.leave;(!e||e.length<2)&&(d.leave=(t,n)=>{e&&e.call(s,t),s.$nextTick(n)})}let h=i("routerView",n);return r.keepAlive&&(h=i("keep-alive",{props:r.keepAliveProps},[h])),i("transition",{props:u,on:d},[h])}},wC=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],kC=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"];function CC(e,t,n,r,i,s,o,a){var l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),s&&(l._scopeId="data-v-"+s),{exports:e,options:l}}const TC=CC(Xn.extend({name:"ForbiddenContentHeader"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"forbidden-header"},[t("h3",{staticClass:"title"},[e._v(e._s("Access Restricted".localized()))]),t("h4",{staticClass:"subtitle"},[e._v("("+e._s("Error".localized())+" 403)")])])},[],0,0,"5c343123").exports;const SC=CC(Xn.extend({name:"SectionDivider"}),function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"divider"})},[],0,0,"a0630eb8").exports;class xC{static preventDefault(e){null!=e.preventDefault?e.preventDefault():e.returnValue=!1}static inNextEventTick(e){setTimeout(e,0)}}const EC=CC(Xn.extend({name:"KanopyLink",props:{title:{type:String,required:!1,default:""},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},click_only:{type:Boolean,required:!1,default:!1},use_vp_subpath:{type:Boolean,required:!1,default:!0}},computed:{link_type(){if(Va.isEmpty(this.to))return"empty";if(this.to.startsWith("/"))return"relative_internal";return Aa.is_absolute_kanopy_url(this.to)?"absolute_internal":"external"},is_link_external(){return"external"===this.link_type},is_link_internal(){return"relative_internal"===this.link_type||"absolute_internal"===this.link_type},can_use_nuxt_link(){return!this.disabled&&!this.click_only&&this.is_link_internal&&!this.in_new_tab},can_use_a_tag(){return this.is_link_external||this.is_link_internal},target(){return this.in_new_tab?"_blank":"_self"},rel(){return"_blank"===this.target?"noopener":""},internal_link_destination(){let e=this.to;if("absolute_internal"===this.link_type&&(e=Aa.from_absolute_url_to_relative_path(this.to)??"/"),this.use_vp_subpath&&!Aa.is_on_default_subpath(this.$route)){e=`/${Aa.get_vp_subpath(this.$route)}${e}`}return this.localePath(e)},external_link_destination(){return this.to.startsWith("http")||this.to.startsWith("mailto:")?this.to:`https://${this.to}`}},methods:{on_click(e){(this.click_only||this.disabled)&&xC.preventDefault(e),this.disabled||this.$emit("click")},on_keyup(e){this.$emit("keyup",e)}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.can_use_nuxt_link?t("nuxt-link",{attrs:{to:e.internal_link_destination},nativeOn:{click:function(t){return e.on_click.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.title))]},{title:e.title})],2):e.can_use_a_tag?t("a",{attrs:{href:e.is_link_internal?e.internal_link_destination:e.external_link_destination,target:e.target,rel:e.rel,disabled:e.disabled,"aria-disabled":e.disabled,tabindex:e.disabled?-1:void 0},on:{click:e.on_click}},[e._t("default",function(){return[e._v(e._s(e.title))]},{title:e.title})],2):t("button",{attrs:{type:"button",title:e.title,disabled:e.disabled,tabindex:e.disabled?-1:void 0},on:{click:e.on_click,keyup:e.on_keyup}},[e._t("default",function(){return[e._v(e._s(e.title))]},{title:e.title})],2)},[],0,0,"3acd787f").exports;const IC=CC(Xn.extend({name:"CTAButton",props:{title:{type:String,required:!1,default:""},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},rounded:{type:Boolean,required:!1,default:!0},uppercase:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},outline:{type:Boolean,required:!1,default:!1},use_vp_subpath:{type:Boolean,required:!1,default:!0},click_only:{type:Boolean,required:!1,default:!1},aria_label:{type:String,required:!1,default:void 0}},computed:{is_action_button(){return Va.isEmpty(this.to)}
679,aria_label_value(){return this.aria_label??this.title}},methods:{on_click(){this.$emit("click")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"cta-button",class:{rounded:e.rounded,uppercase:e.uppercase,disabled:e.disabled,outline:e.outline,"is-action-button":e.is_action_button},attrs:{title:e.title,to:e.to,in_new_tab:e.in_new_tab,disabled:e.disabled,use_vp_subpath:e.use_vp_subpath,click_only:e.click_only,"aria-label":e.aria_label_value},on:{click:e.on_click}},[e._t("default")],2)},[],0,0,"0243fcc1").exports,AC=Xn.extend({name:"ForbiddenContent",components:{CTAButton:IC}});const PC=CC(AC,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"forbidden-content"},[t("img",{staticClass:"error-icon",attrs:{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='112px'%20height='87px'%20viewBox='0%200%20112%2087'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2055.2%20(78181)%20-%20https://sketchapp.com%20--%3e%3ctitle%3eGroup%209%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Desktop---Error-404'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Desktop---Error-403-VP'%20transform='translate(-664.000000,%20-318.000000)'%3e%3cg%20id='Group-9'%20transform='translate(665.000000,%20319.000000)'%3e%3cg%20id='Group-6'%3e%3cg%20id='Group-7'%3e%3cg%20id='Group-3'%3e%3crect%20id='Rectangle'%20stroke='%23000000'%20stroke-width='2'%20fill='%23FFFFFF'%20x='0'%20y='0'%20width='110'%20height='85'%20rx='2'%3e%3c/rect%3e%3cpath%20d='M0,19.6153846%20L110,19.6153846'%20id='Path-4'%20stroke='%23000000'%20stroke-width='2'%3e%3c/path%3e%3cg%20id='Group'%20transform='translate(8.208955,%207.355769)'%20fill='%23000000'%3e%3cellipse%20id='Oval'%20cx='2.46268657'%20cy='2.45192308'%20rx='2.46268657'%20ry='2.45192308'%3e%3c/ellipse%3e%3cellipse%20id='Oval'%20cx='18.0597015'%20cy='2.45192308'%20rx='2.46268657'%20ry='2.45192308'%3e%3c/ellipse%3e%3cellipse%20id='Oval-Copy'%20cx='10.6716418'%20cy='2.45192308'%20rx='2.46268657'%20ry='2.45192308'%3e%3c/ellipse%3e%3c/g%3e%3c/g%3e%3c/g%3e%3ccircle%20id='Oval'%20fill='%23DE3F00'%20style='mix-blend-mode:%20multiply;'%20transform='translate(43.000000,%2048.000000)%20scale(1,%20-1)%20translate(-43.000000,%20-48.000000)%20'%20cx='43'%20cy='48'%20r='9'%3e%3c/circle%3e%3c/g%3e%3cg%20id='noun_locked_107698'%20transform='translate(40.000000,%2030.000000)'%20fill='%23000000'%20fill-rule='nonzero'%20stroke='%23000000'%20stroke-width='0.5'%3e%3cpath%20d='M28.5,16.8195652%20L24.9,16.8195652%20L24.9,10.5195652%20C24.9,5.07456522%2020.445,0.619565217%2015,0.619565217%20C9.555,0.619565217%205.1,5.07456522%205.1,10.5195652%20L5.1,16.8195652%20L1.5,16.8195652%20C1.005,16.8195652%200.6,17.2245652%200.6,17.7195652%20L0.6,40.2195652%20C0.6,40.7145652%201.005,41.1195652%201.5,41.1195652%20L28.5,41.1195652%20C28.995,41.1195652%2029.4,40.7145652%2029.4,40.2195652%20L29.4,17.7195652%20C29.4,17.2245652%2028.995,16.8195652%2028.5,16.8195652%20Z%20M6.9,10.5195652%20C6.9,6.06456522%2010.545,2.41956522%2015,2.41956522%20C19.455,2.41956522%2023.1,6.06456522%2023.1,10.5195652%20L23.1,16.8195652%20L6.9,16.8195652%20L6.9,10.5195652%20Z%20M27.6,39.3195652%20L2.4,39.3195652%20L2.4,18.6195652%20L27.6,18.6195652%20L27.6,39.3195652%20Z%20M14.1,29.6895652%20L14.1,32.5695652%20C14.1,33.0645652%2014.505,33.4695652%2015,33.4695652%20C15.495,33.4695652%2015.9,33.0645652%2015.9,32.5695652%20L15.9,29.6895652%20C16.935,29.3295652%2017.7,28.3395652%2017.7,27.1695652%20C17.7,25.6845652%2016.485,24.4695652%2015,24.4695652%20C13.515,24.4695652%2012.3,25.6845652%2012.3,27.1695652%20C12.3,28.3395652%2013.065,29.3295652%2014.1,29.6895652%20Z%20M15,26.2695652%20C15.495,26.2695652%2015.9,26.6745652%2015.9,27.1695652%20C15.9,27.6645652%2015.495,28.0695652%2015,28.0695652%20C14.505,28.0695652%2014.1,27.6645652%2014.1,27.1695652%20C14.1,26.6745652%2014.505,26.2695652%2015,26.2695652%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"}}),t("p",{staticClass:"error-instruction"},[e._v(e._s("The page you are trying to visit is restricted.".localized())),t("br"),e._v(e._s("Try to log in for access.".localized()))]),t("c-t-a-button",{staticClass:"login-button",attrs:{title:"Log in".localized(),to:"/login",uppercase:!0,rounded:!1}})],1)},[],0,0,"010227e2").exports;const OC=CC(Xn.extend({name:"Error403",head:{title:"Please login... | Kanopy"},components:{ForbiddenContentHeader:TC,SectionDivider:SC,ForbiddenContent:PC}}),function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"container"},[e("forbidden-content-header",{staticClass:"onboarding-header"}),e("section-divider",{staticClass:"onboarding-section-divider"}),e("forbidden-content",{staticClass:"onboarding-content"})],1)},[],0,0,"c9d2a1ad").exports,LC=Xn.extend({name:"KanopyLogo"}),DC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201600%20448.45'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3ekanopy%20logo%20white%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M85.22,238.68,144,178.88c5.49-6,12-11,12-18.43C156,150,145,149,134.54,149h-8.46V127.
67906H240.67V149c-29.39,2-47.83,15.94-71.25,39.36L141,216.26,205.3,299c13.95,17.94,27.9,31.89,51.32,33.39v21.92H141V332.36h4.48c4.49,0,17.44,0,17.44-11.47,0-6-8-15.44-10.46-18.93l-45.34-56.31L82.22,271.57v44.84c0,15.45,5.48,15.95,16.94,15.95h9v21.92H0V332.36H21.93c10,0,17.43,0,17.43-15.45V40.36c0-9.47-6-11-22.42-11H0V7L82.22,0V238.68Z'/%3e%3cpath%20class='cls-1'%20d='M522.64,336.84c-19.92,17.44-29.39,24.41-49.83,24.41-29.89,0-37.86-22.92-39.36-38.86h-3c-17.94,25.91-46.34,38.86-80.23,38.86C294.43,361.25,282,328.37,282,303c0-22.43,12-69.27,148-93.18V190.34c0-6-.5-48.33-53.33-48.33-18.43,0-42.84,8.47-42.84,20.43,0,5.48,5,6.47,10.47,11,6,5.48,9,9,9,16.44,0,15.45-11.45,25.42-24.9,25.42-14.46,0-29.91-10-29.91-27.41,0-27.9,23.92-67.76,85.22-67.76,83.21,0,89.18,54.81,89.18,82.21V314.42c0,10,.5,24.91,16.95,24.91,9.46,0,14-3.48,23.41-12.95ZM430,230.7c-43.36,8-96.17,22.92-96.17,64.28,0,20.43,10,44.35,36.37,44.35,26.91,0,59.8-25.41,59.8-71.25Z'/%3e%3cpath%20class='cls-1'%20d='M546,127.06l82.22-7V141l-2.49,25.41h2.49c13.95-27.91,39.86-46.34,77.23-46.34,63.78,0,66.76,59.79,66.76,79.72v117.1c0,15.45,7.49,15.45,17.45,15.45H811.6v21.92H698.49V332.36h13.45c10,0,17.44,0,17.44-15.45V200.8C729.38,149,705,142,689,142c-51.83,0-60.79,76.74-60.79,90.19v84.71c0,15.45,7.48,15.45,17.43,15.45h14v21.92H546V332.36h21.92c10,0,17.44,0,17.44-15.45V165.43c0-15.45-5-16.44-22.42-16.44H546Z'/%3e%3cpath%20class='cls-1'%20d='M942.63,361.25c-71.75,0-114.1-60.78-114.1-120.58s42.35-120.58,114.1-120.58,114.11,60.79,114.11,120.58S1014.38,361.25,942.63,361.25Zm0-21.92c31.89,0,62.3-20.93,62.3-98.66,0-82.72-34.39-98.66-62.3-98.66S880.35,158,880.35,240.67C880.35,318.4,910.74,339.33,942.63,339.33Z'/%3e%3cpath%20class='cls-1'%20d='M1155.65,120.09v34.38c22.92-29.9,47.83-34.38,64.27-34.38,73.74,0,106.13,63.28,106.13,124.57,0,58.3-39.86,116.59-106.13,116.59-16.94,0-43.85-3-63.79-36.37h-4l3.49,20.93V406.1c0,15.45,7.47,15.45,17.43,15.45H1201v21.92H1073.43V421.55h21.92c10,0,17.44,0,17.44-15.45V164.44c0-15.45-7.47-15.45-17.44-15.45h-21.42V127.06Zm59.29,219.24c21.92,0,59.3-13.95,59.3-97.66,0-86.21-34.89-99.66-59.3-99.66-25.42,0-59.29,17.44-59.29,100.15C1155.65,309.93,1184.54,339.33,1214.94,339.33Z'/%3e%3cpath%20class='cls-1'%20d='M1338.9,127.06H1452V149h-14.45c-15.46,0-16.45,7.47-16.45,11.46,0,6,2,9,4.48,14.45l57.81,133h3l48.83-121.08c4.49-10.47,5-16.45,5-20.93,0-15.45-16.44-16.94-25.91-16.94h-12V127.06H1600V149h-4.48c-15.44,0-22.42,9.46-28.41,23.42l-95.67,223.23c-18.93,43.85-42.34,52.81-67.26,52.81-31.89,0-43.36-23.91-43.36-37.86,0-17.45,13-28.41,27.41-28.41,13.45,0,24.92,10,24.92,23.92,0,8-4,10-4,15.45,0,2,0,6,8.47,6,16.94,0,28.9-26.41,32.39-34.39l13.45-31.89-86.7-191.84c-7.47-16.44-13-20.42-29.4-20.42h-8.47Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";const RC=CC(LC,function(){var e=this._self._c;return this._self._setupProxy,e("img",{staticClass:"kanopy-logo",attrs:{src:DC,alt:"Kanopy"}})},[],0,0,"3976e998").exports;const MC=CC(Xn.extend({name:"ErrorRedirectionButton",props:{title:{type:String,required:!1,default:""},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},accessibility_label:{type:String,required:!1,default:""}},methods:{on_click(){this.$emit("click")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"error-redirection-button",attrs:{title:e.title,to:e.to,in_new_tab:e.in_new_tab,"aria-label":e.accessibility_label},on:{click:e.on_click}})},[],0,0,"49d18598").exports,NC={homepage:{title:"Go to homepage",to:"/",in_new_tab:!1},help_center:{title:"Visit help center",to:"https://help.kanopy.com",in_new_tab:!0},refresh:{title:"Refresh",to:void 0,in_new_tab:!1}};const jC=CC(Xn.extend({name:"ErrorPageTemplate",data:()=>({is_mounted:!1}),props:{error_name:{type:String,required:!0},error_title_html:{type:String,required:!0},error_instruction_html:{type:String,required:!1,default:""},redirection_buttons:{type:Array,required:!1,default:()=>[]},background_img:{type:String,required:!1,default:void 0}},mounted(){this.is_mounted=!0},computed:{img_background_style(){return null==this.background_img?{}:{"background-image":`url(${this.background_img})`}}},methods:{on_click(e){e.title===NC.refresh.title&&location.reload()}},components:{KanopyLogo:RC,ErrorRedirectionButton:MC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"error-page-container"},[t("div",{staticClass:"error-content",class:{in:e.is_mounted}},[t("kanopy-logo",{staticClass:"kanopy-logo"}
679),t("h1",{staticClass:"err-header"},[e._v(e._s(e.error_name))]),t("h3",{staticClass:"err-title",domProps:{innerHTML:e._s(e.error_title_html)}}),t("hr",{staticClass:"separator"}),t("p",{staticClass:"err-instructions",domProps:{innerHTML:e._s(e.error_instruction_html)}}),t("div",{staticClass:"error-buttons"},e._l(e.redirection_buttons,function(n,r){return t("error-redirection-button",{key:r,attrs:{title:n.title.localized(),to:n.to,in_new_tab:n.in_new_tab},on:{click:function(t){return e.on_click(n)}}})}),1)],1),t("div",{staticClass:"error-background",style:e.img_background_style})])},[],0,0,"f985bc2a").exports,UC=""+new URL("error404bg-HYjqiB53.jpg",import.meta.url).href;const $C=CC(Xn.extend({name:"Error404",computed:{no_found_background_img:()=>UC,redirection_buttons:()=>[NC.homepage,NC.help_center]},components:{ErrorPageTemplate:jC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("error-page-template",{attrs:{error_name:"404",error_title_html:"Oops, the page you're<br>looking for does not exist.".localized(),error_instruction_html:"You may want to head back to the homepage.".localized()+"<br>"+"If you have further questions, please visit our help center.".localized(),redirection_buttons:e.redirection_buttons,background_img:e.no_found_background_img}})},[],0,0,"ae306101").exports,BC=""+new URL("maintenance-pcookYhW.jpg",import.meta.url).href;const FC=CC(Xn.extend({name:"Error500",computed:{maintenance_background_img:()=>BC,redirection_buttons:()=>[NC.refresh,NC.help_center]},components:{ErrorPageTemplate:jC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("error-page-template",{attrs:{error_name:"Sorry".localized(),error_title_html:"An unexpected error occurred.".localized(),error_instruction_html:"Try refreshing this page. If the problem persists, contact our support.".localized(),redirection_buttons:e.redirection_buttons,background_img:e.maintenance_background_img}})},[],0,0,"57e8a64a").exports,qC=""+new URL("error503bg-CDbrNbaI.jpg",import.meta.url).href;const VC=CC(Xn.extend({name:"Error503",props:{error_code:{type:Number,required:!1,default:503}},computed:{error_name(){return`${this.error_code}`},server_error_background_img:()=>qC,redirection_buttons:()=>[NC.help_center]},components:{ErrorPageTemplate:jC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("error-page-template",{attrs:{error_name:e.error_name,error_title_html:"Looks like we're having".localized()+"<br>"+"some server issues.".localized(),error_instruction_html:"Go back to the previous page and try again. If you have further questions, please visit our help center.".localized(),redirection_buttons:e.redirection_buttons,background_img:e.server_error_background_img}})},[],0,0,"3ae7f855").exports;const HC=CC(Xn.extend({name:"ErrorMaintenance",computed:{maintenance_background_img:()=>BC},components:{ErrorPageTemplate:jC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("error-page-template",{attrs:{error_name:"Maintenance".localized(),error_title_html:"We're undergoing a bit of".localized()+"<br>"+"scheduled maintenance.".localized(),error_instruction_html:"Sorry for the inconvenience. We'll be back up and running as fast as possible.".localized(),background_img:e.maintenance_background_img}})},[],0,0,"72d3a2be").exports;class zC{static setCSSVariable(e,t,n){e.startsWith("--")||(e=`--${e}`);(n??document.querySelector(":root")).style.setProperty(e,t)}}const GC=CC(Xn.extend({name:"CTAButtonGray",props:{title:{type:String,required:!0},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},rounded:{type:Boolean,required:!1,default:!0},uppercase:{type:Boolean,required:!1,default:!1}},methods:{on_click(){this.$emit("click")}},components:{CTAButton:IC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("c-t-a-button",{staticClass:"cta-button",attrs:{title:e.title,to:e.to,in_new_tab:e.in_new_tab,rounded:e.rounded,uppercase:e.uppercase},on:{click:e.on_click}},[e._t("default")],2)},[],0,0,"9535abf0").exports;var KC=(e=>(e[e.Row=0]="Row",e[e.ColumnFullWidth=1]="ColumnFullWidth",e[e.ColumnHalfWidth=2]="ColumnHalfWidth",e))(KC||{});const WC=CC(Xn.extend({name:"KanopyModalContents",props:{title:{type:String,required:!0},show_title_gray_line:{type:Boolean,required:!1,default:!1},show_close_button:{type:Boolean,required:!1,default:!0},primary_action_title:{type:String,required:!1,default:void 0},secondary_action_title:{type:String,required:!1,default:void 0},secondary_action_is_link:{type:Boolean,required:!1,default:!1},buttons_layout:{type:Number,required:!1,default:0}
679,previous_focus:{type:HTMLElement,required:!1,default:void 0},fallback_focus:{type:HTMLElement,required:!1,default:void 0},use_updated_border_and_button_style:{type:Boolean,required:!1,default:!1},background_image:{type:String,required:!1,default:void 0},uppercase_cta:{type:Boolean,required:!1,default:!1}},mounted(){null!=this.background_image&&zC.setCSSVariable("--modal-bg-img",`url(${this.background_image})`),this.reposition()},computed:{buttons_are_in_column(){return 1===this.buttons_layout||2===this.buttons_layout},buttons_take_full_width(){return 1===this.buttons_layout}},methods:{on_close_clicked(){this.$emit("close")},on_primary_button_clicked(){this.$emit("primary_action")},on_secondary_button_clicked(){this.$emit("secondary_action")},reposition(){window.outerHeight<this.$el.offsetHeight?this.$el.classList.add("short"):this.$el.classList.remove("short")}},components:{CTAButton:IC,CTAButtonGray:GC,KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.reposition,expression:"reposition"}],staticClass:"modal-content",class:{"border-and-slide":e.use_updated_border_and_button_style,"background-img":null!=e.background_image},attrs:{role:"dialog",tabindex:"-1","aria-labelledby":"modal-title"}},[t("div",{staticClass:"title-close-row",class:{"gray-line":e.show_title_gray_line}},[t("h2",{staticClass:"modal-title",attrs:{id:"modal-title"}},[e._v(e._s(e.title))]),e.show_close_button?t("button",{staticClass:"close",class:{"styled-close":e.use_updated_border_and_button_style},attrs:{"aria-label":"Close".localized()},on:{click:e.on_close_clicked}}):e._e()]),t("div",{staticClass:"content-and-buttons"},[e._t("default"),t("div",{staticClass:"buttons-container",class:{column:e.buttons_are_in_column,"full-width":e.buttons_take_full_width}},[null!=e.primary_action_title?t("c-t-a-button",{staticClass:"primary-button",class:{"styled-button":e.use_updated_border_and_button_style},attrs:{title:e.primary_action_title,uppercase:e.uppercase_cta},on:{click:e.on_primary_button_clicked}}):e._e(),null!=e.secondary_action_title&&e.secondary_action_is_link?t("kanopy-link",{staticClass:"secondary-button link",attrs:{title:e.secondary_action_title},on:{click:e.on_secondary_button_clicked}}):e._e(),null==e.secondary_action_title||e.secondary_action_is_link?e._e():t("c-t-a-button-gray",{staticClass:"secondary-button",attrs:{title:e.secondary_action_title},on:{click:e.on_secondary_button_clicked}})],1)],2)])},[],0,0,"cff00abe").exports;var XC=(e=>(e.CookiePrefsFooterButton="cookie-prefs-footer",e.Footer="footer",e.ForgotPinPageHeading="forgot-pin-heading",e.HeaderMenuButton="header-menu-button",e.MainContent="main-content",e.Page="layout-container",e.ExitKidsButton="exit-kids",e))(XC||{}),YC=(e=>(e.ForgotPin="ForgotPin",e))(YC||{}),ZC=(e=>(e.CookiePreferencesMenu="CookiePreferencesMenu",e.MapboxMarkerPopup="MapboxMarkerPopup",e))(ZC||{});class JC{static instance=new JC;_blockingFocus={};_blockingFocusListenerTracker={};_postNavigationOrActionFocus={};_maintainedFocusAcrossPages={};FOCUSABLE_SELECTORS=['button:not([disabled]):not([tabindex="-1"])',"input","a[href]",'[tabindex]:not([tabindex="-1"]):not(canvas)',"select","textarea"];trapFocus(e,t){e.shiftKey||"ArrowUp"===e.key?document.activeElement!==this.getFirstFocusableElement(t)&&document.activeElement!==t||(this.getLastFocusableElement(t)?.focus(),e.preventDefault()):document.activeElement===this.getLastFocusableElement(t)&&(this.getFirstFocusableElement(t)?.focus(),e.preventDefault())}findFocus(e,t){null!=e&&("string"==typeof e&&(e=document.getElementById(e)??void 0),null!=e&&e.isConnected&&this._isElementFocusable(e)?e.focus():t?.focus())}getFirstFocusableElement(e){return this.getFocusableElements(e)?.[0]}getLastFocusableElement(e){const t=this.getFocusableElements(e);return t[t.length-1]}getPreviousFocusableSibling(e,t){return this._getFocusableSibling(e,t,!0)}getNextFocusableSibling(e,t){return this._getFocusableSibling(e,t)}getFocusableContainer(e){return e.querySelector("[tabindex]")}setPostNavOrActionFocus(e,t){this._postNavigationOrActionFocus[e]=t}focusElementPostNavOrAction(e,t=!0){const n=this._postNavigationOrActionFocus[e];if(this._postNavigationOrActionFocus[e]=void 0,null!=n){if(t){const e="string"==typeof n?document.getElementById(n):n;e?.focus()}return n}}addBlockingFocus(e,t,n){const r=document.getElementById(t);null!=r&&(null==this._blockingFocusListenerTracker[e]&&(this._blockingFocusListenerTracker[e]={}),this._blockingFocusListenerTracker[e][t]={focusin:()=>this._createBlockingFocus(e,t,n),focusout:()=>this._onFocusoutOfBlockingFocus(e,t)},r.addEventListener("focusin",this._blockingFocusListenerTracker[e][t].focusin),r.addEventListener("focusout",this._blockingFocusListenerTracker[e][t].focusout))}removeBlockingFocus(e,t){if(null==this._blockingFocus[e]?.[t])return;const n=document.getElementById(t);n?.removeEventListener("focusin",this._blockingFocusListenerTracker[e][t].focusin),n?.removeEventListener("focusout",this._blockingFocusListenerTracker[e][t].focusout),delete this._blockingFocusListenerTracker[e][t],delete this._blockingFocus[e][t]}removeAllBlockingFocuses(e){null!=this._blockingFocus[e]&&Object.keys(this._blockingFocus[e]).forEac
679h(t=>{this.removeBlockingFocus(e,t)}),delete this._blockingFocusListenerTracker[e],delete this._blockingFocus[e]}hasBlockingFocus(e,t){return null!=this._blockingFocus[e]?.[t]&&this.focusInElement(t)}focusInElement(e){return document.getElementById(e)?.contains(document.activeElement)??!1}setMaintainingFocusAcrossPages(e,t){this._maintainedFocusAcrossPages[e]=t}getMaintainingFocusAcrossPages(e){return this._maintainedFocusAcrossPages[e]??!1}getFocusableElements(e){return Array.from(e.querySelectorAll(this.FOCUSABLE_SELECTORS.join(", ")))??[]}_isElementFocusable(e){const t=document.createElement("div"),n=e.cloneNode();return t.appendChild(n),1===this.getFocusableElements(t).length}_createBlockingFocus(e,t,n){null==this._blockingFocus[e]?this._blockingFocus[e]={[t]:n}:null==this._blockingFocus[e][t]&&(this._blockingFocus[e][t]=n)}_onFocusoutOfBlockingFocus(e,t){setTimeout(()=>{const n=document.getElementById(t);if(!n?.contains(document.activeElement))try{this._blockingFocus[e][t]?.()}catch{}},0)}_getFocusableSibling(e,t,n){if(!t.hasChildNodes()||t.children.length<=1)return;if(-1===Array.from(t.children).findIndex(t=>t.contains(e)))return;const r=this.getFocusableElements(t),i=this._isElementFocusable(e)?e:this.getFirstFocusableElement(e),s=r.findIndex(e=>e===i);return-1!==s?r[s+(n?-1:1)]:void 0}}const QC=CC(Xn.extend({name:"Modal",props:{block_page_scroll:{type:Boolean,required:!1,default:!0},label:{type:String,required:!1,default:void 0},previous_focus:{type:HTMLElement,required:!1,default:void 0},fallback_focus:{type:HTMLElement,required:!1,default:void 0},opaque:{type:Boolean,required:!1,default:!1}},created(){this.start_background_click_listener()},mounted(){this.block_page_scroll&&this.$nextTick(()=>{document.body.style.overflow="hidden"}),this.$nuxt.$emit(Mu.A11yHideMainContent);const e=JC.instance.getFocusableContainer(this.$el),t=JC.instance.getFirstFocusableElement(this.$el);this.$nextTick(()=>(e??t??this.$el).focus())},beforeDestroy(){this.block_page_scroll&&(document.body.style.overflow="auto"),this.$nuxt.$emit(Mu.A11yShowMainContent),this.stop_background_click_listener(),this.$el.parentElement?.removeChild(this.$el),JC.instance.findFocus(this.previous_focus,this.fallback_focus)},methods:{start_background_click_listener(){window.addEventListener("click",this.on_background_click)},stop_background_click_listener(){window.removeEventListener("click",this.on_background_click)},on_escape_pressed(e){this.on_close_clicked()},on_background_click(e){e.target===this.$el&&this.on_close_clicked()},on_close_clicked(){this.$emit("close")},handle_focus(e){JC.instance.trapFocus(e,this.$el)}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowescape",rawName:"v-windowescape",value:e.on_escape_pressed,expression:"on_escape_pressed"}],staticClass:"modal",class:{opaque:e.opaque},attrs:{"aria-modal":"true",tabindex:"-1","aria-label":e.label},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[e._t("default")],2)},[],0,0,"929a9fa2").exports;const eT=CC(Xn.extend({name:"KanopyModal",props:{title:{type:String,required:!0},show_title_gray_line:{type:Boolean,required:!1,default:!1},show_close_button:{type:Boolean,required:!1,default:!0},primary_action_title:{type:String,required:!1,default:void 0},secondary_action_title:{type:String,required:!1,default:void 0},secondary_action_is_link:{type:Boolean,required:!1,default:!1},buttons_layout:{type:Number,required:!1,default:KC.Row},previous_focus:{type:HTMLElement,required:!1,default:void 0},fallback_focus:{type:HTMLElement,required:!1,default:void 0},use_updated_border_and_button_style:{type:Boolean,required:!1,default:!1},background_image:{type:String,required:!1,default:void 0},uppercase_cta:{type:Boolean,required:!1,default:!1}},methods:{on_close_clicked(){this.$emit("close")},on_primary_button_clicked(){this.$emit("primary_action")},on_secondary_button_clicked(){this.$emit("secondary_action")}},components:{Modal:QC,KanopyModalContents:WC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("modal",{staticClass:"modal",attrs:{opaque:e.use_updated_border_and_button_style,previous_focu
679s:e.previous_focus,fallback_focus:e.fallback_focus},on:{close:e.on_close_clicked}},[t("kanopy-modal-contents",{attrs:{title:e.title,show_title_gray_line:e.show_title_gray_line,show_close_button:e.show_close_button,primary_action_title:e.primary_action_title,secondary_action_title:e.secondary_action_title,secondary_action_is_link:e.secondary_action_is_link,buttons_layout:e.buttons_layout,previous_focus:e.previous_focus,fallback_focus:e.fallback_focus,use_updated_border_and_button_style:e.use_updated_border_and_button_style,background_image:e.background_image,uppercase_cta:e.uppercase_cta},on:{close:e.on_close_clicked,primary_action:e.on_primary_button_clicked,secondary_action:e.on_secondary_button_clicked}},[e._t("default")],2)],1)},[],0,0,"1a058ad2").exports;const tT=CC(Xn.extend({name:"CloseIconSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},stroke_width:{type:Number,required:!1,default:1}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"17px",height:"16px",viewBox:"0 0 17 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("g",{attrs:{id:"Symbols",stroke:"none","stroke-width":e.stroke_width,fill:"none","fill-rule":"evenodd",opacity:"1"}},[t("g",{attrs:{id:"btn_close",transform:"translate(1.000000, 0.000000)",stroke:e.color}},[t("g",{attrs:{id:"icon_close_thin"}},[t("g",{attrs:{id:"btn_close"}},[t("path",{attrs:{d:"M0.294736842,0.294736842 L15.4526316,15.4526316",id:"Shape"}}),t("path",{attrs:{d:"M0.294736842,15.4526316 L15.4526316,0.294736842",id:"Shape"}})])])])])])},[],0,0,"ac955dcc").exports;const nT=CC(Xn.extend({name:"ChannelButton",data:()=>({show_modal:!1}),computed:{channel_name:()=>Ba.instance.get(Ua.channel),channels(){return this.$kuistore.state.site.channels},hide_button(){return this.$kuistore.state.debug.hide_channel_button.value}},methods:{change_channel(e){if(this.channel_name===e)return;const t=Ua.channel;t.value=e,t.opts={...t.opts,domain:Aa.is_localhost()?window.location.hostname:Aa.get_env_domain(this.$nuxt.context)},Ba.instance.set(t),window.location.reload()},close_modal(){this.show_modal=!1},open_modal(){this.show_modal=!0,this.$kuistore.dispatch("site/fetch_channel_guide")},hide_ui(){this.$kuistore.dispatch("debug/set_debug_property",{key:"hide_channel_button",value:!0})}},components:{KanopyModal:eT,CloseIconSvg:tT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.hide_button?e._e():t("div",{staticClass:"channel-container"},[t("div",{staticClass:"channel-button",on:{click:e.open_modal}},[t("div",{staticClass:"channel-icon"},[e._v("ðº")]),t("div",{staticClass:"channel-name"},[e._v(e._s(e.channel_name))]),t("button",{staticClass:"hide",on:{click:e.hide_ui}},[t("close-icon-svg")],1)]),e.show_modal?t("kanopy-modal",{staticClass:"channel-modal",attrs:{title:"Channel Changer"},on:{close:e.close_modal}},[t("ul",{staticClass:"channel-list"},e._l(e.channels,function(n){return t("li",{key:n,staticClass:"channel",class:{current:e.channel_name===n},on:{click:function(t){return e.change_channel(n)}}},[e._v(" "+e._s(n)+" ")])}),0)]):e._e()],1)},[],0,0,"19c835e3").exports;const rT=CC(Xn.extend({layout:"empty",props:{error:{type:Object,required:!1,default:void 0}},created(){this.is_forbidden_error&&this.$nuxt.setLayout("onboarding-default")},computed:{error_code(){return null==this.error.statusCode?void 0:Ha.parse(this.error.statusCode.toString())},is_forbidden_error(){return 403===this.error_code},is_page_not_found_error(){return 404===this.error_code},is_server_issue_error(){return(this.error_code??0)>=500&&!this.is_kui_crash_error},is_maintenance_error(){return(this.error_code??0)>=500&&"maintenance"===this.error.message},is_kui_crash_error(){return 500===this.error_code&&null!=this.error.message},show_channel_button(){return Aa.are_channels_enabled_for_env(this.$nuxt.context)}},components:{Error403:OC,Error404:$C,Error500:FC,Error503:VC,ErrorMaintenance:HC,ChannelButton:nT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"layout-container"},[e.is_forbidden_error?t("error403",{staticClass:"page-content"}):e.is_page_not_found_error?t("error404",{staticClass:"page-content"}):e.is_maintenance_error?t("error-maintenance",{staticClass:"page-content"}):e.is_server_issue_error?t("error503",{staticClass:"page-content",attrs:{error_code:e.error_code}}):t("error500",{staticClass:"page-content"}),e.show_channel_button?t("channel-button"):e._e()],1)},[],0,0,"557d54df").exports,iT={name:"Nuxt",components:{NuxtChild:bC,NuxtError:rT},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||z_(this.$route.matched[0].path)(this.$route.params);const[e]=this.$route.matched;
679if(!e)return this.$route.path;const t=e.components.default;if(t&&t.options){const{options:e}=t;if(e.key)return"function"==typeof e.key?e.key(this.$route):e.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate(){Xn.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render(e){return this.nuxt.err&&this.nuxt.errPageReady?this.errorFromNuxtError?(this.$nextTick(()=>this.errorFromNuxtError=!1),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p",`Error details: ${this.errorFromNuxtError.toString()}`),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick(()=>this.displayingNuxtError=!1),e(rT,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}};const sT=CC({name:"NuxtLoading",data:()=>({percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}),computed:{left(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy(){this.clear()},methods:{clear(){clearInterval(this._timer),clearTimeout(this._throttle),clearTimeout(this._hide),this._timer=null},start(){return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout(()=>this.startTimer(),this.throttle):this.startTimer(),this},set(e){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(e))),this},get(){return this.percent},increase(e){return this.percent=Math.min(100,Math.floor(this.percent+e)),this},decrease(e){return this.percent=Math.max(0,Math.floor(this.percent-e)),this},pause(){return clearInterval(this._timer),this},resume(){return this.startTimer(),this},finish(){return this.percent=this.reversed?0:100,this.hide(),this},hide(){return this.clear(),this._hide=setTimeout(()=>{this.show=!1,this.$nextTick(()=>{this.percent=0,this.reversed=!1})},500),this},fail(e){return this.canSucceed=!1,this},startTimer(){this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval(()=>{this.skipTimerCount>0?this.skipTimerCount--:(this.reversed?this.decrease(this._cut):this.increase(this._cut),this.continuous&&(this.percent>=100||this.percent<=0)&&(this.skipTimerCount=1,this.reversed=!this.reversed))},100)}},render(e){let t=e(!1);return this.show&&(t=e("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),t}},null,null,0,0,null).exports,oT=Xn.extend({name:"AndroidMobileBanner",computed:{playstore_link(){return xa.applicationPlayStoreLink(this.$nuxt.context)}},methods:{handle_close(){this.$emit("close")}},components:{KanopyLink:EC}}),aT="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2025.2.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%201024%201024'%20style='enable-background:new%200%200%201024%201024;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFFFFF;}%20%3c/style%3e%3crect%20width='1024'%20height='1024'/%3e%3cg%3e%3cpath%20class='st0'%20d='M431.3,612.3l120.4-122.4c11.2-12.2,24.5-22.4,24.5-37.7c0-21.4-22.5-23.5-43.9-23.5H515v-44.9h234.6v44.9%20c-60.2,4.1-97.9,32.6-145.9,80.6l-58.1,57.1l131.6,169.4c28.6,36.7,57.1,65.3,105.1,68.4V849H545.6v-44.9h9.2%20c9.2,0,35.7,0,35.7-23.5c0-12.2-16.3-31.6-21.4-38.8l-92.8-115.3l-51,53.1v91.8c0,31.6,11.2,32.6,34.7,32.6h18.4v45H256.8v-44.9%20h44.9c20.4,0,35.7,0,35.7-31.6V206.3c0-19.4-12.2-22.4-45.9-22.4h-34.7V138l168.3-14.3v488.7h6.2V612.3z'/%3e%3c/g%3e%3c/svg%3e";const lT=CC(oT,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"android-mobile-banner-container"},[t("div",{staticClass:"contents"},[t("div",{staticClass:"close-container"},[t("kanopy-link",{staticClass:"close",on:{click:e.handle_close}},[e._v("X")])],1),t("img",{staticClass:"kanopy-logo",attrs:{src:aT,alt:"kanopy app icon"}}),e._m(0)]),t("kanopy-link",{staticClass:"view-button",attrs:{to:e.playstore_link,in_new_tab:!0}},[e._v("View")])],1)},[function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"banner-info"},[t("p",{staticClass:"title"},[e._v("Kanopy")]),t("p",{staticClass:"google-play"},[e._v("FREE - In Google Play")])])}],0,0,"7abbac14").exports;const cT=CC(Xn.extend({name:"IosMobileBanner",computed:{app_store_link(){return xa.applicationAppStoreLink(this.$nuxt.context)}},methods:{handle_close(){this.$emit("close")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"ios-mobile-banner-container"},[t("div",{staticClass:"contents"},[t("div",{staticClass:"close-container"},[t("kanopy-link",{staticClass:"close",on:{click:e.handle_close}},[e._v("X")])],1),t("img",{staticClass:"kanopy-logo",attrs:{src:aT,alt:"kanopy app icon"}}),e._m(0)]),t("kanopy-link",{staticClass:"view-button",attrs:{to:e.app_store_link,in_new_tab:!0}},[e._v("View")])],1)},[function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"banner-info"},[t("p",{staticClass:"title"},[e._v("Kanopy")]),t("p",{staticClass:"apple-store"},[e._v("Get - On the App Store")])])}],0,0,"54ed401f").exports;const uT=CC(Xn.extend({name:"MobileSmartBanner",data(){const e=Ba.instance.get(Ua.has_closed_mobile_banner);return{show_banner:!wa.parse(e)}},computed:{is_safari:()=>xa.isSafari(),is_android_device:()=>xa.isAndroidDevice(),is_ios_device:()=>xa.isIOSDevice()},methods:{handle_close(){const e=Ua.has_closed_mobile_banner;e.value="true",Ba.instance.set(e),this.show_banner=!1}},components:{AndroidMobileBanner:lT,IosMobileBanner:cT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.is_android_device&&e.show_banner?t("android-mobile-banner",{on:{close:e.handle_close}}):e.is_ios_device&&!e.is_safari&&e.show_banner?t("ios-mobile-banner",{on:{close:e.handle_close}}):t("div")},[],0,0,"0723fab9").exports;var dT=function(){return ms.Date.now()},hT=/\s/;var pT=/^\s+/;function fT(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&hT.test(e.charAt(t)););return t}(e)+1).replace(pT,""):e}var mT=/^[-+]0x[0-9a-f]+$/i,_T=/^0b[01]+$/i,gT=/^0o[0-7]+$/i,yT=parseInt;function vT(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||Ys(e)&&"[object Symbol]"==Cs(e)}(e))return NaN;if(Ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fT(e);var n=_T.test(e);return n||gT.test(e)?yT(e.slice(2),n?2:8):mT.test(e)?NaN:+e}var bT=Math.max,wT=Math.min;function kT(e,t,n){var r,i,s,o,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,s=i;return r=i=void 0,c=t,o=e.apply(s,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=s}function m(){var e=dT();if(f(e))return _(e);a=setTimeout(m,function(e){var n=t-(e-l);return d?wT(n,s-(e-c)):n}(e))}function _(e){return a=void 0,h&&r?p(e):(r=i=void 0,o)}function g(){var e=dT(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),u?p(e):o}(l);if(d)return clearTimeout(a),a=setTimeout(m,t),p(l)}return void 0===a&&(a=setTimeout(m,t)),o}return t=vT(t)||0,Ts(n)&&(u=!!n.leading,s=(d="maxWait"in n)?bT(vT(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=i=a=void 0},g.flush=function(){return void 0===a?o:_(dT())},g}const CT=Xn.extend({name:"KanopyKidsLogo"}),TT=""+new URL("kanopy-kids-2.0-logo-BZrCdFF3.svg",import.meta.url).href;const ST=CC(CT,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"logo-container"},[e("img",{staticClass:"kanopy-logo",attrs:{src:TT,alt:"Go to Kanopy Kids Home".localized()}})])},[],0,0,"634ec75c").exports;const xT=CC(Xn.extend({name:"HeaderLogoLink",data:()=>({disabled:!1}),props:{},watch:{$route(e){this.disabled=!this.page_enables_link(e)}},created(){this.disabled=!this.page_enables_link(this.$router.currentRoute)},computed:{logo_link(){if(this.is_logged_out||this.is_on_active_membership)return"/";if(this.has_membership_on_current_domain)return this.user_identities_link;const e=this.$kuistore.getters["user/user_default_stem"];return null!=e?`/${e}`:`/user/${this.$kuistore.getters["user/userId"]}/identities`},use_vp_subpath(){return"/"===this.logo_link||this.logo_link===this.user_identities_link}
679,is_in_kids_mode(){return this.$kuistore.state.site.is_in_kids_mode},is_logged_out(){return!this.$kuistore.getters["user/has_user_account_logged_in"]},is_on_active_membership(){return this.$kuistore.getters["user/has_active_membership_on_current_domain"]},has_membership_on_current_domain(){return this.$kuistore.getters["user/has_membership_on_current_domain"]},user_identities_link(){return`/user/${this.$kuistore.getters["user/userId"]}/identities`}},methods:{page_enables_link:e=>null==["/tv"].find(t=>e.path.endsWith(t)),send_analytics(){this.$emit("click",mf.Logo)}},components:{KanopyLink:EC,KanopyLogo:RC,KanopyKidsLogo:ST}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{attrs:{to:e.logo_link,use_vp_subpath:e.use_vp_subpath,disabled:e.disabled},on:{click:e.send_analytics}},[e.is_in_kids_mode?t("kanopy-kids-logo",{staticClass:"kanopy-logo",attrs:{"aria-label":"Go to Kanopy Home".localized()}}):t("kanopy-logo",{staticClass:"kanopy-logo",attrs:{"aria-label":"Go to Kanopy Home".localized()}})],1)},[],0,0,"5a3386e1").exports;const ET=CC(Xn.extend({name:"KanopyEnvironment",computed:{environment(){return this.$kuistore.state.site.environment},show_environment(){return this.environment!==_a.PROD}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_environment?t("div",{staticClass:"kanopy-environment"},[e._v(e._s(e.environment))]):e._e()},[],0,0,"ebfc69eb").exports;const IT=CC(Xn.extend({name:"MenuView",data:()=>({window_click_timer:void 0}),props:{items:{type:Array,required:!1,default:()=>[]},opened:{type:Boolean,required:!1,default:!1},animated:{type:Boolean,required:!1,default:!1},align_right:{type:Boolean,required:!1,default:!0}},watch:{opened(e){e?this.window_click_timer=setTimeout(()=>{window.addEventListener("click",this.on_window_click),this.cancel_window_click_timer()},100):(this.cancel_window_click_timer(),window.removeEventListener("click",this.on_window_click),this.$el.style.height=`${this.$el.scrollHeight}px`)}},beforeDestroy(){window.removeEventListener("click",this.on_window_click)},methods:{cancel_window_click_timer(){null!=this.window_click_timer&&(clearTimeout(this.window_click_timer),this.window_click_timer=void 0)},on_item_selected(e){this.$emit("click",e)},on_window_click(e){this.opened&&e.target!==this.$el&&this.$emit("background_click")},beforeEnter(e){e.style.height="0px"},enter(e){e.style.height=`${e.scrollHeight}px`},afterEnter(e){e.style.height="auto"},beforeLeave(e){e.style.height=`${e.scrollHeight}px`},leave(e){e.style.height="0px"}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("transition",{attrs:{name:"open-close-transition"},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave,leave:e.leave}},[e.opened?t("div",{staticClass:"menu-container",class:{"no-animation":!e.animated,left:!e.align_right}},[e._t("default",function(){return e._l(e.items,function(n,r){return t("kanopy-link",{key:r,staticClass:"menu-item",attrs:{title:n.title,to:n.link,in_new_tab:n.in_new_tab,"aria-label":n.title},on:{click:function(t){return e.on_item_selected(n)}}})})})],2):e._e()])},[],0,0,"d5bd80c3").exports;var AT=(e=>(e.ChangeAccountTab="change_account_tab",e.UserProperties="user_properties",e.TitleCard="title_card",e.Navigation="navigation",e.Footer="footer",e.Banner="banner",e.SearchResultsFilter="search_results_filter",e.SearchResultsSort="search_results_sort",e.SearchResultsMatch="search_results_match",e.SearchResultsPopular="search_results_popular",e.Play="play",e.PercentWatched="percent_watched",e.WatchlistAdd="watchlist_add",e.WatchlistRemove="watchlist_remove",e.Trailer="trailer",e.ReadMore="read_more",e.MetadataClick="metadata_click",e.ShareLink="share_link",e.ShareEmbed="share_embed",e.ShareSocial="share_social",e.CitationTool="citation_tool",e.CitationIssue="citation_issue",e.RelatedVideos="related_videos",e.PlaylistAdd="playlist_add",e.PlaylistCreate="playlist_create",e.PlaylistEdit="playlist_edit",e.PlaylistDelete="playlist_delete",e.PlaylistShare="playlist_share",e.AudioSubmenu="audio_track_submenu",e.AudioSelect="audio_track_selected",e.TextTrackSubmenu="text_track_submenu",e.TextTrackSelect="text_track_selected",e.TextTrackToggle="text_track_toggle",e.EmbedError="embed_error",e.EmbedWordmarkClick="embed_wordmark_click",e.ClipEdit="clip_edit",e.ClipAbandonEdit="clip_abandon_edit",e))(AT||{});const PT=CC(Xn.extend({name:"BrowseMenuView",props:{opened:{type:Boolean,required:!1,default:!1}},watch:{opened(e){e?this.$nextTick(()=>{JC.instance.getFirstFocusableElement(this.$el)?.focus(),window.addEventListener("keydown",this.block_arrow_key_scrolling)}):window.removeEventListener("keydown",this.block_arrow_key_scrolling)}},computed:{browse_categories(){return this.$kuistore.state.shelves.categories??[]}},methods:{on_background_click(){this.$emit("background_click")},send_analytics(e){const t={navigation_option:`${mf.Browse}: ${e}`};gf.sendEvent(this.$nuxt.context,AT.Navigation,t)},handle_focus(e){JC.instance.trapFocus(e,this.$el)},focus_previous(e){const t=JC.instance.getPreviousFocusableSibling(document.activeElement,this.$el);
679t?t.focus():JC.instance.trapFocus(e,this.$el)},focus_next(e){const t=JC.instance.getNextFocusableSibling(document.activeElement,this.$el);t?t.focus():JC.instance.trapFocus(e,this.$el)},close(){this.$emit("close")},block_arrow_key_scrolling(e){["ArrowUp","ArrowDown"].includes(e.code)&&e.preventDefault()}},components:{MenuView:IT,KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("menu-view",{staticClass:"browse-menu",attrs:{opened:e.opened,align_right:!1},on:{background_click:e.on_background_click}},e._l(e.browse_categories,function(n,r){return t("div",{key:r,staticClass:"browse-section"},[t("h2",{staticClass:"menu-section-title"},[e._v(e._s(n.name))]),t("div",{staticClass:"menu-items"},e._l(n.terms,function(n,r){return t("kanopy-link",{key:r,staticClass:"menu-item",attrs:{title:n.name,to:"/category/"+n.termId},on:{click:function(t){return e.send_analytics(n.name)}},nativeOn:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.focus_previous.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.focus_next.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:e.close.apply(null,arguments)}],keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}})}),1)])}),0)},[],0,0,"df2e108d").exports;const OT=CC(Xn.extend({name:"HoverBubble",props:{text:{type:String,required:!1,default:""}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"hover-bubble-container"},[t("div",{staticClass:"inner"},[t("p",[e._v(e._s(e.text))])])])},[],0,0,"803ab336").exports;const LT=CC(Xn.extend({name:"FadeTransition"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("transition",{attrs:{name:"fade-transition"}},[e._t("default")],2)},[],0,0,"53b86489").exports;const DT=CC(Xn.extend({name:"HoverableDiv",data:()=>({is_hovered:!1}),props:{tooltip_text:{type:String,required:!1,default:void 0}},computed:{show_tooltip(){return this.is_hovered&&null!=this.tooltip_text}},methods:{on_hover_starts(){this.is_hovered=!0,this.$emit("hoverstarts")},on_hover_ends(){this.is_hovered=!1,this.$emit("hoverends")}},components:{HoverBubble:OT,FadeTransition:LT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"hoverable-div-container"},[t("div",{staticClass:"hoverable-content-container",on:{mouseenter:e.on_hover_starts,mouseleave:e.on_hover_ends}},[e._t("default")],2),e.show_tooltip?t("fade-transition",[t("hover-bubble",{attrs:{text:e.tooltip_text}})],1):e._e()],1)},[],0,0,"d3acbe7c").exports;const RT=CC(Xn.extend({name:"HeaderBrowseButton",data:()=>({showing_browse_menu:!1}),methods:{on_browse_button_click:kT(function(){this.showing_browse_menu=!this.showing_browse_menu,this.showing_browse_menu||JC.instance.findFocus(this.$el,void 0),this.$emit("toggle_active",this.showing_browse_menu)},100),on_browse_button_hover_starts(){this.showing_browse_menu=!0,this.$emit("toggle_active",!0)},on_browse_button_hover_ends(){this.close()},close(){this.showing_browse_menu=!1,this.$emit("toggle_active",!1)}},components:{KanopyLink:EC,BrowseMenuView:PT,HoverableDiv:DT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("hoverable-div",{staticClass:"header-browse-container",on:{hoverstarts:e.on_browse_button_hover_starts,hoverends:e.on_browse_button_hover_ends},nativeOn:{click:function(t){return e.on_browse_button_click.apply(null,arguments)}}},[t("kanopy-link",{staticClass:"header-button",class:{active:e.showing_browse_menu},attrs:{title:"Browse".localized(),"aria-expanded":e.showing_browse_menu.toString(),"aria-controls":"browse-menu","aria-haspopup":"true"},on:{click:e.on_browse_button_click}}),t("browse-menu-view",{staticClass:"browse-menu",attrs:{id:"browse-menu",opened:e.showing_browse_menu},on:{close:e.close}})],1)},[],0,0,"6212b16f").exports;const MT=CC(Xn.extend({name:"HeaderMyListsButton",watch:{active(){this.$emit("toggle_active",this.active)}},computed:{active(){return Aa.path_without_vp_subpath(this.$route).startsWith("/mylists")}},methods:{send_analytics(){this.$emit("click",mf.MyLists)}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"header-button",class:{active:e.active},attrs:{title:"My Lists".localized(),to:"/mylists"},on:{click:e.send_analytics}})},[],0,0,"6c448c66").exports,NT=Xn.extend({name:"KanopyKidsPuzzleLogo"});const jT=CC(NT,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"logo-container"},[e("img",{attrs:{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1258_9304)'%3e%3cpath%20d='M0.967483%2023.1825C0.674983%2
679019.2525%200.674983%205.2875%200.967483%201.545C0.967483%201.5%201.00498%201.4775%201.01998%201.47C3.28498%201.125%205.56498%200.8925%207.86748%200.765C7.97998%200.765%208.17498%200.7575%208.43748%200.75C8.70748%200.75%208.93248%200.9975%208.87998%201.2975C8.79748%201.7475%208.75998%202.1825%208.75998%202.5575C8.75998%204.3575%2010.2075%205.835%2012.0075%205.835C13.8075%205.835%2015.255%204.3575%2015.255%202.5575C15.255%202.535%2015.255%202.5125%2015.255%202.4975L15.135%201.32C15.075%201.005%2015.3225%200.7575%2015.585%200.7725C15.5925%200.7725%2015.6%200.7725%2015.615%200.7725C17.9175%200.9%2020.2125%201.1325%2022.4775%201.485C22.4775%201.485%2022.4925%201.485%2022.5075%201.5C22.5225%201.515%2022.53%201.53%2022.53%201.545C22.875%203.8475%2023.1075%206.1725%2023.235%208.5125C23.235%208.5575%2023.235%208.6175%2023.235%208.6925C23.235%208.73%2023.235%208.775%2023.235%208.835C23.235%209.15%2022.95%209.3675%2022.6575%209.285C22.005%209.0975%2021.345%209.0225%2020.8125%209.0225C19.0125%209.0225%2017.565%2010.5%2017.565%2012.3C17.565%2014.1%2019.0125%2015.5775%2020.8125%2015.5775C21.345%2015.5775%2022.0125%2015.495%2022.665%2015.3075C22.965%2015.225%2023.25%2015.4425%2023.2425%2015.7575C23.2425%2016.02%2023.235%2016.2225%2023.2275%2016.335C23.1075%2018.6375%2022.875%2020.9325%2022.5375%2023.205C22.5375%2023.2425%2022.5%2023.265%2022.47%2023.265H1.03498C1.00498%2023.265%200.974983%2023.2425%200.967483%2023.1975'%20stroke='%23F9F9F9'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.53748%2015.2475C5.46748%2016.9725%207.03498%2018.105%208.81998%2018.105C10.605%2018.105%2012.1725%2016.9725%2013.1025%2015.2475C13.1025%2015.2475%2010.5%2016.2%208.81998%2016.2C7.13998%2016.2%204.53748%2015.2475%204.53748%2015.2475Z'%20fill='%23F9F9F9'%20stroke='%23F9F9F9'%20stroke-width='1.425'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.40745%2011.8125C5.97078%2011.8125%206.42745%2011.3525%206.42745%2010.785C6.42745%2010.2175%205.97078%209.75751%205.40745%209.75751C4.84412%209.75751%204.38745%2010.2175%204.38745%2010.785C4.38745%2011.3525%204.84412%2011.8125%205.40745%2011.8125Z'%20fill='%23F9F9F9'/%3e%3cpath%20d='M13.56%2010.7775C14.1233%2010.7775%2014.58%2010.3175%2014.58%209.75003C14.58%209.18256%2014.1233%208.72253%2013.56%208.72253C12.9966%208.72253%2012.54%209.18256%2012.54%209.75003C12.54%2010.3175%2012.9966%2010.7775%2013.56%2010.7775Z'%20fill='%23F9F9F9'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1258_9304'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"Kanopy Kids puzzle icon".localized()}}),e("img",{staticClass:"kids-logo",attrs:{src:"data:image/svg+xml,%3csvg%20width='47'%2
6790height='18'%20viewBox='0%200%2047%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='kids'%3e%3cpath%20id='Vector'%20d='M12.831%2016.9305H7.755L5.5225%2012.9208L4.5355%2014.1401V16.9305H0V0.530762H4.5355V9.07062L7.661%204.79835H12.737L8.4835%2010.032L12.831%2016.9305Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M13.7476%204.80298H18.2831V16.9351H13.7476V4.80298Z'%20fill='white'/%3e%3cpath%20id='Vector_3'%20d='M34.0938%200.530762V16.9305H29.5583V15.5001C28.5948%2016.5788%2027.2553%2017.2119%2025.6808%2017.2119C22.4143%2017.2119%2020.1113%2014.5857%2020.1113%2010.8527C20.1113%207.14786%2022.4143%204.51697%2025.6808%204.51697C27.2553%204.51697%2028.5948%205.15007%2029.5583%206.22869V0.530762H34.0938ZM29.5583%2010.8527C29.5583%209.352%2028.5478%208.27338%2027.1143%208.27338C25.5398%208.27338%2024.4353%209.352%2024.4353%2010.8527C24.4353%2012.3768%2025.5398%2013.4554%2027.1143%2013.4554C28.5478%2013.4601%2029.5583%2012.3815%2029.5583%2010.8527Z'%20fill='white'/%3e%3cpath%20id='Vector_4'%20d='M35.499%2015.383L37.191%2012.6395C38.366%2013.4602%2040.105%2014.0699%2041.3975%2014.0699C42.2435%2014.0699%2042.549%2013.8588%2042.549%2013.4602C42.549%2013.0381%2041.844%2012.8037%2040.716%2012.5692C38.507%2012.1002%2036.0395%2011.5609%2036.0395%208.70021C36.0395%206.35538%2037.943%204.52173%2041.1155%204.52173C42.9955%204.52173%2044.805%205.20173%2046.1915%206.11621L44.664%208.88311C43.6535%208.22656%2042.267%207.59345%2041.1155%207.59345C40.481%207.59345%2040.058%207.92173%2040.058%208.27345C40.058%208.67207%2040.5985%208.74242%2041.8205%209.0238C44.0295%209.51621%2046.5675%2010.2431%2046.5675%2013.1085C46.5675%2015.6175%2044.57%2017.2166%2041.28%2017.2166C39.165%2017.2119%2036.9795%2016.5319%2035.499%2015.383Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",alt:"Kanopy Kids"}})])},[],0,0,"902e7e6a").exports;const UT=CC(Xn.extend({name:"HeaderKidsButton",data:()=>({exit_button_id:XC.ExitKidsButton}),computed:{has_kids_access(){return this.$kuistore.state.site.domain?.hasKids??!1},is_in_kids_mode(){return this.$kuistore.state.site.is_in_kids_mode},is_kids_only_vp(){return this.$kuistore.getters["site/is_kids_only_vp"]}},methods:{async on_kids_click(){this.send_analytics();const e=this.is_in_kids_mode;e?(this.$kuistore.commit("site/set_focus_ids",{previous:XC.ExitKidsButton}),await this.$kuistore.dispatch("site/switch_to_adult",!1)):await this.$kuistore.dispatch("site/switch_to_kids"),this.$kuistore.state.site.is_in_kids_mode!==e&&(Ia.navigate(this.$router,"/"),this.$kuistore.getters["site/show_kids_guide_modal"]||JC.instance.getFirstFocusableElement(this.$el)?.focus())},send_analytics(){this.$emit("click",mf.Kids)}},components:{KanopyLink:EC,CTAButton:IC,KanopyKidsPuzzleLogo:jT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.has_kids_access&&!e.is_kids_only_vp?t("div",{staticClass:"header-kids-container"},[e.is_in_kids_mode?e._e():t("kanopy-link",{attrs:{"aria-label":"Go to Kanopy Kids".localized()},on:{click:e.on_kids_click}},[t("kanopy-kids-puzzle-logo")],1),e.is_in_kids_mode?t("c-t-a-button",{staticClass:"header-button exit-kids",attrs:{id:e.exit_button_id,title:"Exit Kanopy Kids".localized(),"aria-label":"Exit Kanopy Kids".localized()},on:{click:e.on_kids_click}}):e._e()],1):e._e()},[],0,0,"096ad9b7").exports,$T={glass:61440,music:61441,search:61442,"envelope-o":61443,heart:61444,star:61445,"star-o":61446,user:61447,film:61448,"th-large":61449,th:61450,"th-list":61451,check:61452,remove:61453,close:61453,times:61453,"search-plus":61454,"search-minus":61456,"power-off":61457,signal:61458,gear:61459,cog:61459,"trash-o":61460,home:61461,"file-o":61462,"clock-o":61463,road:61464,download:61465,"arrow-circle-o-down":61466,"arrow-circle-o-up":61467,inbox:61468,"play-circle-o":61469,"rotate-right":61470,repeat:61470,refresh:61473,"list-alt":61474,lock:61475,flag:61476,headphones:61477,"volume-off":61478,"volume-down":61479,"volume-up":61480,qrcode:61481,barcode:61482,tag:61483,tags:61484,book:61485,bookmark:61486,print:61487,camera:61488,font:61489,bold:61490,italic:61491,"text-height":61492,"text-width":61493,"align-left":61494,"align-center":61495,"align-right":61496,"align-justify":61497,list:61498,dedent:61499,outdent:61499,indent:61500,"video-camera":61501,photo:61502,image:61502,"picture-o":61502,pencil:61504,"map-marker":61505,adju
679st:61506,tint:61507,edit:61508,"pencil-square-o":61508,"share-square-o":61509,"check-square-o":61510,arrows:61511,"step-backward":61512,"fast-backward":61513,backward:61514,play:61515,pause:61516,stop:61517,forward:61518,"fast-forward":61520,"step-forward":61521,eject:61522,"chevron-left":61523,"chevron-right":61524,"plus-circle":61525,"minus-circle":61526,"times-circle":61527,"check-circle":61528,"question-circle":61529,"info-circle":61530,crosshairs:61531,"times-circle-o":61532,"check-circle-o":61533,ban:61534,"arrow-left":61536,"arrow-right":61537,"arrow-up":61538,"arrow-down":61539,"mail-forward":61540,share:61540,expand:61541,compress:61542,plus:61543,minus:61544,asterisk:61545,"exclamation-circle":61546,gift:61547,leaf:61548,fire:61549,eye:61550,"eye-slash":61552,warning:61553,"exclamation-triangle":61553,plane:61554,calendar:61555,random:61556,comment:61557,magnet:61558,"chevron-up":61559,"chevron-down":61560,retweet:61561,"shopping-cart":61562,folder:61563,"folder-open":61564,"arrows-v":61565,"arrows-h":61566,"bar-chart-o":61568,"bar-chart":61568,"twitter-square":61569,"facebook-square":61570,"camera-retro":61571,key:61572,gears:61573,cogs:61573,comments:61574,"thumbs-o-up":61575,"thumbs-o-down":61576,"star-half":61577,"heart-o":61578,"sign-out":61579,"linkedin-square":61580,"thumb-tack":61581,"external-link":61582,"sign-in":61584,trophy:61585,"github-square":61586,upload:61587,"lemon-o":61588,phone:61589,"square-o":61590,"bookmark-o":61591,"phone-square":61592,twitter:61593,"facebook-f":61594,facebook:61594,github:61595,unlock:61596,"credit-card":61597,feed:61598,rss:61598,"hdd-o":61600,bullhorn:61601,bell:61683,certificate:61603,"hand-o-right":61604,"hand-o-left":61605,"hand-o-up":61606,"hand-o-down":61607,"arrow-circle-left":61608,"arrow-circle-right":61609,"arrow-circle-up":61610,"arrow-circle-down":61611,globe:61612,wrench:61613,tasks:61614,filter:61616,briefcase:61617,"arrows-alt":61618,group:61632,users:61632,chain:61633,link:61633,cloud:61634,flask:61635,cut:61636,scissors:61636,copy:61637,"files-o":61637,paperclip:61638,save:61639,"floppy-o":61639,square:61640,navicon:61641,reorder:61641,bars:61641,"list-ul":61642,"list-ol":61643,strikethrough:61644,underline:61645,table:61646,magic:61648,truck:61649,pinterest:61650,"pinterest-square":61651,"google-plus-square":61652,"google-plus":61653,money:61654,"caret-down":61655,"caret-up":61656,"caret-left":61657,"caret-right":61658,columns:61659,unsorted:61660,sort:61660,"sort-down":61661,"sort-desc":61661,"sort-up":61662,"sort-asc":61662,envelope:61664,linkedin:61665,"rotate-left":61666,undo:61666,legal:61667,gavel:61667,dashboard:61668,tachometer:61668,"comment-o":61669,"comments-o":61670,flash:61671,bolt:61671,sitemap:61672,umbrella:61673,paste:61674,clipboard:61674,"lightbulb-o":61675,exchange:61676,"cloud-download":61677,"cloud-upload":61678,"user-md":61680,stethoscope:61681,suitcase:61682,"bell-o":61602,coffee:61684,cutlery:61685,"file-text-o":61686,"building-o":61687,"hospital-o":61688,ambulance:61689,medkit:61690,"fighter-jet":61691,beer:61692,"h-square":61693,"plus-square":61694,"angle-double-left":61696,"angle-double-right":61697,"angle-double-up":61698,"angle-double-down":61699,"angle-left":61700,"angle-right":61701,"angle-up":61702,"angle-down":61703,desktop:61704,laptop:61705,tablet:61706,"mobile-phone":61707,mobile:61707,"circle-o":61708,"quote-left":61709,"quote-right":61710,spinner:61712,circle:61713,"mail-reply":61714,reply:61714,"github-alt":61715,"folder-o":61716,"folder-open-o":61717,"smile-o":61720,"frown-o":61721,"meh-o":61722,gamepad:61723,"keyboard-o":61724,"flag-o":61725,"flag-checkered":61726,terminal:61728,code:61729,"mail-reply-all":61730,"reply-all":61730,"star-half-empty":61731,"star-half-full":61731,"star-half-o":61731,"location-arrow":61732,crop:61733,"code-fork":61734,unlink:61735,"chain-broken":61735,question:61736,info:61737,exclamation:61738,superscript:61739,subscript:61740,eraser:61741,"puzzle-piece":61742,microphone:61744,"microphone-slash":61745,shield:61746,"calendar-o":61747,"fire-extinguisher":61748,rocket:61749,maxcdn:61750,"chevron-circle-left":61751,"chevron-circle-right":61752,"chevron-circle-up":61753,"chevron-circle-down":61754,html5:61755,css3:61756,anchor:61757,"unlock-alt":61758,bullse
679ye:61760,"ellipsis-h":61761,"ellipsis-v":61762,"rss-square":61763,"play-circle":61764,ticket:61765,"minus-square":61766,"minus-square-o":61767,"level-up":61768,"level-down":61769,"check-square":61770,"pencil-square":61771,"external-link-square":61772,"share-square":61773,compass:61774,"toggle-down":61776,"caret-square-o-down":61776,"toggle-up":61777,"caret-square-o-up":61777,"toggle-right":61778,"caret-square-o-right":61778,euro:61779,eur:61779,gbp:61780,dollar:61781,usd:61781,rupee:61782,inr:61782,cny:61783,rmb:61783,yen:61783,jpy:61783,ruble:61784,rouble:61784,rub:61784,won:61785,krw:61785,bitcoin:61786,btc:61786,file:61787,"file-text":61788,"sort-alpha-asc":61789,"sort-alpha-desc":61790,"sort-amount-asc":61792,"sort-amount-desc":61793,"sort-numeric-asc":61794,"sort-numeric-desc":61795,"thumbs-up":61796,"thumbs-down":61797,"youtube-square":61798,youtube:61799,xing:61800,"xing-square":61801,"youtube-play":61802,dropbox:61803,"stack-overflow":61804,instagram:61805,flickr:61806,adn:61808,bitbucket:61809,"bitbucket-square":61810,tumblr:61811,"tumblr-square":61812,"long-arrow-down":61813,"long-arrow-up":61814,"long-arrow-left":61815,"long-arrow-right":61816,apple:61817,windows:61818,android:61819,linux:61820,dribbble:61821,skype:61822,foursquare:61824,trello:61825,female:61826,male:61827,gittip:61828,gratipay:61828,"sun-o":61829,"moon-o":61830,archive:61831,bug:61832,vk:61833,weibo:61834,renren:61835,pagelines:61836,"stack-exchange":61837,"arrow-circle-o-right":61838,"arrow-circle-o-left":61840,"toggle-left":61841,"caret-square-o-left":61841,"dot-circle-o":61842,wheelchair:61843,"vimeo-square":61844,"turkish-lira":61845,try:61845,"plus-square-o":61846,"space-shuttle":61847,slack:61848,"envelope-square":61849,wordpress:61850,openid:61851,institution:61852,bank:61852,university:61852,"mortar-board":61853,"graduation-cap":61853,yahoo:61854,google:61856,reddit:61857,"reddit-square":61858,"stumbleupon-circle":61859,stumbleupon:61860,delicious:61861,digg:61862,"pied-piper-pp":61863,"pied-piper-alt":61864,drupal:61865,joomla:61866,language:61867,fax:61868,building:61869,child:61870,paw:61872,spoon:61873,cube:61874,cubes:61875,behance:61876,"behance-square":61877,steam:61878,"steam-square":61879,recycle:61880,automobile:61881,car:61881,cab:61882,taxi:61882,tree:61883,spotify:61884,deviantart:61885,soundcloud:61886,database:61888,"file-pdf-o":61889,"file-word-o":61890,"file-excel-o":61891,"file-powerpoint-o":61892,"file-photo-o":61893,"file-picture-o":61893,"file-image-o":61893,"file-zip-o":61894,"file-archive-o":61894,"file-sound-o":61895,"file-audio-o":61895,"file-movie-o":61896,"file-video-o":61896,"file-code-o":61897,vine:61898,codepen:61899,jsfiddle:61900,"life-bouy":61901,"life-buoy":61901,"life-saver":61901,support:61901,"life-ring":61901,"circle-o-notch":61902,ra:61904,resistance:61904,rebel:61904,ge:61905,empire:61905,"git-square":61906,git:61907,"y-combinator-square":61908,"yc-square":61908,"hacker-news":61908,"tencent-weibo":61909,qq:61910,wechat:61911,weixin:61911,send:61912,"paper-plane":61912,"send-o":61913,"paper-plane-o":61913,history:61914,"circle-thin":61915,header:61916,paragraph:61917,sliders:61918,"share-alt":61920,"share-alt-square":61921,bomb:61922,"soccer-ball-o":61923,"futbol-o":61923,tty:61924,binoculars:61925,plug:61926,slideshare:61927,twitch:61928,yelp:61929,"newspaper-o":61930,wifi:61931,calculator:61932,paypal:61933,"google-wallet":61934,"cc-visa":61936,"cc-mastercard":61937,"cc-discover":61938,"cc-amex":61939,"cc-paypal":61940,"cc-stripe":61941,"bell-slash":61942,"bell-slash-o":61943,trash:61944,copyright:61945,at:61946,eyedropper:61947,"paint-brush":61948,"birthday-cake":61949,"area-chart":61950,"pie-chart":61952,"line-chart":61953,lastfm:61954,"lastfm-square":61955,"toggle-off":61956,"toggle-on":61957,bicycle:61958,bus:61959,ioxhost:61960,angellist:61961,cc:61962,shekel:61963,sheqel:61963,ils:61963,meanpath:61964,buysellads:61965,connectdevelop:61966,dashcube:61968,forumbee:61969,leanpub:61970,sellsy:61971,shirtsinbulk:61972,simplybuilt:61973,skyatlas:61974,"cart-plus":61975,"cart-arrow-down":61976,diamond:61977,ship:61978,"user-secret":61979,motorcycle:61980,"street-view":61981,heartbeat:61982,venus:61985,mars:6198
6796,mercury:61987,intersex:61988,transgender:61988,"transgender-alt":61989,"venus-double":61990,"mars-double":61991,"venus-mars":61992,"mars-stroke":61993,"mars-stroke-v":61994,"mars-stroke-h":61995,neuter:61996,genderless:61997,"facebook-official":62e3,"pinterest-p":62001,whatsapp:62002,server:62003,"user-plus":62004,"user-times":62005,hotel:62006,bed:62006,viacoin:62007,train:62008,subway:62009,medium:62010,yc:62011,"y-combinator":62011,"optin-monster":62012,opencart:62013,expeditedssl:62014,"battery-4":62016,battery:62016,"battery-full":62016,"battery-3":62017,"battery-three-quarters":62017,"battery-2":62018,"battery-half":62018,"battery-1":62019,"battery-quarter":62019,"battery-0":62020,"battery-empty":62020,"mouse-pointer":62021,"i-cursor":62022,"object-group":62023,"object-ungroup":62024,"sticky-note":62025,"sticky-note-o":62026,"cc-jcb":62027,"cc-diners-club":62028,clone:62029,"balance-scale":62030,"hourglass-o":62032,"hourglass-1":62033,"hourglass-start":62033,"hourglass-2":62034,"hourglass-half":62034,"hourglass-3":62035,"hourglass-end":62035,hourglass:62036,"hand-grab-o":62037,"hand-rock-o":62037,"hand-stop-o":62038,"hand-paper-o":62038,"hand-scissors-o":62039,"hand-lizard-o":62040,"hand-spock-o":62041,"hand-pointer-o":62042,"hand-peace-o":62043,trademark:62044,registered:62045,"creative-commons":62046,gg:62048,"gg-circle":62049,tripadvisor:62050,odnoklassniki:62051,"odnoklassniki-square":62052,"get-pocket":62053,"wikipedia-w":62054,safari:62055,chrome:62056,firefox:62057,opera:62058,"internet-explorer":62059,tv:62060,television:62060,contao:62061,"500px":62062,amazon:62064,"calendar-plus-o":62065,"calendar-minus-o":62066,"calendar-times-o":62067,"calendar-check-o":62068,industry:62069,"map-pin":62070,"map-signs":62071,"map-o":62072,map:62073,commenting:62074,"commenting-o":62075,houzz:62076,vimeo:62077,"black-tie":62078,fonticons:62080,"reddit-alien":62081,edge:62082,"credit-card-alt":62083,codiepie:62084,modx:62085,"fort-awesome":62086,usb:62087,"product-hunt":62088,mixcloud:62089,scribd:62090,"pause-circle":62091,"pause-circle-o":62092,"stop-circle":62093,"stop-circle-o":62094,"shopping-bag":62096,"shopping-basket":62097,hashtag:62098,bluetooth:62099,"bluetooth-b":62100,percent:62101,gitlab:62102,wpbeginner:62103,wpforms:62104,envira:62105,"universal-access":62106,"wheelchair-alt":62107,"question-circle-o":62108,blind:62109,"audio-description":62110,"volume-control-phone":62112,braille:62113,"assistive-listening-systems":62114,"asl-interpreting":62115,"american-sign-language-interpreting":62115,deafness:62116,"hard-of-hearing":62116,deaf:62116,glide:62117,"glide-g":62118,signing:62119,"sign-language":62119,"low-vision":62120,viadeo:62121,"viadeo-square":62122,snapchat:62123,"snapchat-ghost":62124,"snapchat-square":62125,"pied-piper":62126,"first-order":62128,yoast:62129,themeisle:62130,"google-plus-circle":62131,"google-plus-official":62131,fa:62132,"font-awesome":62132,"handshake-o":62133,"envelope-open":62134,"envelope-open-o":62135,linode:62136,"address-book":62137,"address-book-o":62138,vcard:62139,"address-card":62139,"vcard-o":62140,"address-card-o":62140,"user-circle":62141,"user-circle-o":62142,"user-o":62144,"id-badge":62145,"drivers-license":62146,"id-card":62146,"drivers-license-o":62147,"id-card-o":62147,quora:62148,"free-code-camp":62149,telegram:62150,"thermometer-4":62151,thermometer:62151,"thermometer-full":62151,"thermometer-3":62152,"thermometer-three-quarters":62152,"thermometer-2":62153,"thermometer-half":62153,"thermometer-1":62154,"thermometer-quarter":62154,"thermometer-0":62155,"thermometer-empty":62155,shower:62156,bathtub:62157,s15:62157,bath:62157,podcast:62158,"window-maximize":62160,"window-minimize":62161,"window-restore":62162,"times-rectangle":62163,"window-close":62163,"times-rectangle-o":62164,"window-close-o":62164,bandcamp:62165,grav:62166,etsy:62167,imdb:62168,ravelry:62169,eercast:62170,microchip:62171,"snowflake-o":62172,superpowers:62173,wpexplorer:62174,meetup:62176};const BT=CC(Xn.extend({name:"FontAwesomeIcon",props:{name:{type:String,required:!1,default:void 0}},computed:{icon_code(){const e=$T[this.name];if(null==e)return{};return{"--charcode":`"\\${e.toString(16)}"`}}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("i",{staticClass:"font-awesome-icon",style:e.icon_code})},[],0,0,"1e7f4835").exports;const FT=CC(Xn.extend({name:"HeaderSearchButton",computed:{active(){return Aa.path_without_vp_subpath(this.$route).startsWith("/search")}},methods:{reset_search(){this.send_analytics(),this.active||(this.$kuistore.dispatch("search/reset"),Ia.navigate(this.$router,"/search"))},send_analytics(){this.$emit("click",mf.Search)}},components:{KanopyLink:EC,FontAwesomeIcon:BT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"header-button",class:{active:e.active},attrs:{title:"Search".localized(),to:"/search",click_only:!0},on:{click:e.reset_search}},[t("font-awesome-icon",{staticClass:"search-icon",attrs:{name:"search","aria-hidden":"true"}}),t("div",[e._v(e._s("Search".localized()))])],1)},[],0,0,"a0add4d8").exports,qT="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.8%2018.0564C21.8001%2019.1864%2021.8001%2020.1152%2021.7014%2020.8494C21.598%2021.6189%2021.3728%2022.2942%2020.8332%2022.8337C20.2938%2023.373%2019.6192%2023.5975%2018.8499%2023.7009C18.1156%2023.7996%2017.187%2023.7996%2016.0569%2023.7996L7.9436%2023.7996C6.81359%2023.7996%205.8848%2023.7996%205.15063%2023.7009C4.38114%2023.5975%203.70579%2023.3733%203.16626%2022.8337C2.62673%2022.2942%202.40253%2021.6189%202.29907%2020.8494C2.2004%2020.1152%202.20041%2019.1864%202.20044%2018.0564L2.20044%208.49976L5.00024%208.49976C5.42972%208.49967%205.77759%208.16392%205.77759%207.74976C5.77745%207.33571%205.42963%206.99984%205.00024%206.99976L2.20044%206.99976L2.20044%204.28003C2.2004%203.53999%202.19964%202.90556%202.26782%202.39819C2.34075%201.85575%202.50484%201.34005%202.92212%200.922608C3.33953%200.505197%203.85525%200.341279%204.3977%200.268311C4.90516%200.200085%205.54024%200.199914%206.28052%200.199952L9.33325%200.199952C9.77501%200.199953%2010.1329%200.558021%2010.1331%200.999757C10.1331%202.10008%2010.9923%202.94995%2012.0002%202.94995C13.008%202.94983%2013.8664%202.1%2013.8665%200.999757C13.8666%200.558165%2014.2247%200.200187%2014.6663%200.199952L17.72%200.199953C18.46%200.199914%2019.0944%200.200125%2019.6018%200.268312C20.1444%200.341258%2020.6599%200.505117%2021.0774%200.922609C21.4949%201.3401%2021.6587%201.85563%2021.7317%202.39819C21.7999%202.90558%2021.8001%203.53995%2021.8%204.28003L21.8%206.99976L18.5002%2
67906.99976C18.0708%206.99976%2017.7221%207.33566%2017.7219%207.74976C17.7219%208.16397%2018.0707%208.49976%2018.5002%208.49976L21.8%208.49976L21.8%2018.0564ZM15.8381%2014.5349C16.1509%2014.2512%2015.9827%2013.7138%2015.5715%2013.6794L13.3137%2013.4783L12.4299%2011.2976C12.271%2010.9014%2011.7285%2010.9014%2011.5696%2011.2976L10.6868%2013.4734L8.42895%2013.6746C8.01761%2013.7088%207.84922%2014.2463%208.16235%2014.53L9.87817%2016.0857L9.36352%2018.3943C9.27005%2018.8148%209.70459%2019.1473%2010.0598%2018.9226L12.0002%2017.7L13.9397%2018.9275C14.2949%2019.1525%2014.7304%2018.8198%2014.637%2018.3992L14.1223%2016.0906L15.8381%2014.5349ZM15.2776%207.74976C15.2774%207.33571%2014.9296%206.99984%2014.5002%206.99976L9.38891%206.99976C8.95947%206.99978%208.61171%207.33567%208.61157%207.74976C8.61157%208.16395%208.95938%208.49973%209.38891%208.49976L14.5002%208.49976C14.9297%208.49967%2015.2776%208.16392%2015.2776%207.74976Z'%20fill='white'/%3e%3c/svg%3e";const VT=CC(Xn.extend({name:"HeaderTicketsButton",props:{disable_hover:{type:Boolean,required:!1,default:!1}},watch:{domain_uses_tickets(e){e&&xC.inNextEventTick(()=>this.on_resize())}},mounted(){xC.inNextEventTick(()=>this.on_resize())},computed:{domain_uses_tickets(){return this.$kuistore.getters["site/domain_uses_tickets"]},num_tickets_available(){return this.$kuistore.getters["user/current_membership"]?.ticketsAvailable??0},show_ticket_menu(){return this.$kuistore.state.site.show_ticket_menu},ticket_icon:()=>qT},methods:{send_analytics(){this.$emit("click",mf.Tickets)},on_resize(){null!=this.$el.getBoundingClientRect&&this.$emit("ticket_button_reposition",this.$el?.getBoundingClientRect())},on_ticket_button_click(){this.send_analytics(),this.disable_hover||(this.$kuistore.dispatch("site/toggle_ticket_menu",!this.show_ticket_menu),xC.inNextEventTick(()=>this.on_resize()))}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.domain_uses_tickets?t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.on_resize,expression:"on_resize"}],staticClass:"header-tickets-container",class:{invisible:e.show_ticket_menu}},[t("div",{staticClass:"ticket-box"},[t("kanopy-link",{staticClass:"ticket-container",class:{"gray-highlight":e.show_ticket_menu},attrs:{"aria-label":"{tickets} tickets available".localized({tickets:e.num_tickets_available},e.num_tickets_available),"aria-expanded":e.show_ticket_menu.toString(),disabled:e.disable_hover},on:{click:e.on_ticket_button_click}},[t("p",[e._v(e._s(e.num_tickets_available))]),t("img",{attrs:{src:e.ticket_icon,alt:""}})])],1)]):e._e()},[],0,0,"6e5fe0f2").exports,HT=1920,zT=1600,GT=1440,KT=1024,WT=768,XT=450,YT=500,ZT=1200;class JT{values;constructor(e){this.values=e.sort((e,t)=>e.width-t.width)}get_size_for_width(e){return this.get_value_for_width(e)?.value??0}get_percentage_for_width(e){return 100/this.get_size_for_width(e)}get_buffer_for_width(e){return this.get_value_for_width(e)?.buffer_pct??0}get_value_for_width(e){if(0===this.values.length)return;const t=this.values.findIndex(t=>t.width>e);return-1===t?this.values[this.values.length-1]:0===t?this.values[0]:this.values[t-1]}}const QT=Xn.extend({name:"InitialEmblem",props:{in_menu:{type:Boolean,required:!1,default:!1}},computed:{first_initial(){return this.username?.charAt(0)??""},username(){return this.$kuistore.getters["user/username"]}}});const eS=CC(QT,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"gradient",class:{"in-menu":e.in_menu},attrs:{"data-clarity-mask":"true"}},[t("div",{staticClass:"emblem-container",attrs:{"aria-hidden":"true"}},[e.first_initial?t("div",{staticClass:"emblem"},[e._v(e._s(e.first_initial))]):t("img",{attrs:{src:"data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%207.08333C10.0073%207.08333%2011.6218%205.49667%2011.6218%203.54167C11.6218%201.58667%2010.0073%200%208%200C5.99273%200%204.36364%201.58667%204.36364%203.54167C4.36364%205.49667%205.99273%207.08333%208%207.08333ZM8%209.91667C5.33818%209.91667%200%2011.22%200%2013.8125V15.5833C0%2016.3625%200.654545%2017%201.45455%2017H14.5455C15.3455%2017%2016%2016.3625%2016%2015.5833V13.8125C16%2011.22%2010.6618%209.91667%208%209.91667Z'%20fill='white'%20fill-opacity='0.87'/%3e%3c/svg%3e",alt:""}})])])},[],0,0,"26bfb8ef").exports;const tS=CC(Xn.extend({name:"HeaderMenuButton",computed:{username(){return this.$kuistore.getters["user/username"]},show_menu(){return this.$kuistore.state.site.show_menu},id:()=>XC.HeaderMenuButton,label(){return(null!=this.username?`${this.username} - `:"")+"Main Menu".localized()}},methods:{on_click(){this.$emit("click",mf.Account)}},components:{InitialEmblem:eS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("button",{staticClass:"menu-button",attrs:{id:e.id,"aria-label":e.label,"aria-expanded":e.show_menu.toString(),"data-clarity-mask":"true"},on:{click:e.on_click}},[t("initial-emblem"),e.username?t("div",{staticClass:"username"}
679,[e._v(e._s(e.username))]):e._e()],1)])},[],0,0,"5f377d14").exports;const nS=CC(Xn.extend({name:"HeaderButton",data:()=>({active:!1}),methods:{toggle_active(e){this.active=e}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",{staticClass:"button-container"},[e._t("default",null,{toggle_active:e.toggle_active})],2)},[],0,0,"76569e9c").exports;const rS=CC(Xn.extend({name:"KanopyHeader",data:()=>({vw:window.innerWidth}),props:{},mounted(){window.addEventListener("resize",this.on_window_resize)},beforeDestroy(){window.removeEventListener("resize",this.on_window_resize)},computed:{is_big_phone(){return this.vw<=WT},has_room_for_left_buttons(){return this.vw>=700},show_all_navigation_buttons(){return this.has_room_for_left_buttons&&this.has_domain_content_access},show_kids_button(){return!this.is_big_phone&&this.has_domain_content_access},has_domain_content_access(){return this.$kuistore.getters["user/has_active_membership_on_current_domain"]},has_user_account_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},show_my_lists_button(){return this.show_all_navigation_buttons&&this.has_user_account_logged_in}},methods:{on_window_resize(){this.vw=window.innerWidth},send_analytics(e){const t={navigation_option:e};gf.sendEvent(this.$nuxt.context,AT.Navigation,t)},on_menu_button_click(e){this.$kuistore.dispatch("site/toggle_menu",!0),this.send_analytics(e)},on_ticket_button_reposition(e){this.$emit("ticket_button_reposition",e)}},components:{HeaderLogoLink:xT,KanopyEnvironment:ET,HeaderBrowseButton:RT,HeaderMyListsButton:MT,HeaderKidsButton:UT,HeaderSearchButton:FT,HeaderTicketsButton:VT,HeaderMenuButton:tS,HeaderButton:nS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("header",{staticClass:"header-container"},[t("div",{staticClass:"header-left"},[t("header-logo-link",{on:{click:e.send_analytics}}),t("kanopy-environment"),e.show_all_navigation_buttons?t("div",{staticClass:"header-buttons"},[t("header-button",{staticClass:"complex-active",scopedSlots:e._u([{key:"default",fn:function(e){return[t("header-browse-button",{on:{toggle_active:e.toggle_active}})]}}],null,!1,2628823899)}),e.show_my_lists_button?t("header-button",{on:{click:e.send_analytics}},[t("header-my-lists-button")],1):e._e(),t("header-button",{on:{click:e.send_analytics}},[t("header-search-button")],1)],1):e._e()],1),t("div",{staticClass:"header-right"},[e.show_kids_button?t("header-kids-button",{on:{click:e.send_analytics}}):e._e(),t("header-tickets-button",{staticClass:"ticket-button",on:{click:e.send_analytics,ticket_button_reposition:e.on_ticket_button_reposition}}),t("header-menu-button",{on:{click:e.on_menu_button_click}})],1)])},[],0,0,"ac4e4b3c").exports,iS=Xn.extend({name:"VerifyLaterBanner",data:()=>({email_resent:!1}),computed:{user_email(){return this.$kuistore.state.user.user?.email},verify_email_title(){return this.email_resent?"Email sent".localized():"Please verify your email address".localized()},resend_email_action_title(){return"Resend verification email to {email}".localized({email:this.user_email})}},methods:{on_resend_verify_email_clicked(){this.$kuistore.dispatch("user/send_verification_email").then(()=>{this.email_resent=!0}
679).catch(e=>tm.notify(e.userMessaging?.message??"An error occurred".localized()).asFailure().push())}},components:{KanopyLink:EC}}),sS=""+new URL("verify-email-icon-DSURf7iE.svg",import.meta.url).href;const oS=CC(iS,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"verify-later-banner-container",attrs:{"data-clarity-mask":"true"}},[t("div",{staticClass:"left-side"},[e.email_resent?t("img",{attrs:{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='51px'%20height='35px'%20viewBox='0%200%2051%2035'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2052.6%20(67491)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eGroup%2012%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cpolygon%20id='path-1'%20points='0%2034.6426%2050.564%2034.6426%2050.564%20-0.0004%200%20-0.0004'%3e%3c/polygon%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='2b.-Verify-Message-Phone-Portrait-Copy'%20transform='translate(-16.000000,%20-160.000000)'%3e%3cg%20id='Group-12'%20transform='translate(16.000000,%20160.000000)'%3e%3cpath%20d='M13.6321,6.8159%20C13.6321,10.5809%2010.5801,13.6319%206.8161,13.6319%20C3.0511,13.6319%200.0001,10.5809%200.0001,6.8159%20C0.0001,3.0519%203.0511,-0.0001%206.8161,-0.0001%20C10.5801,-0.0001%2013.6321,3.0519%2013.6321,6.8159'%20id='Fill-1'%20fill='%23DE3F00'%3e%3c/path%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Clip-4'%3e%3c/g%3e%3cpolygon%20id='Fill-3'%20fill='%23FFFFFF'%20mask='url(%23mask-2)'%20points='5.564%2033.3176%2039.564%2033.3176%2039.564%205.8886%205.564%205.8886'%3e%3c/polygon%3e%3cpath%20d='M25.1526,21.8999%20L20.1056,21.8999%20C18.9546,21.8999%2017.8316,21.5039%2016.9426,20.7849%20L4.7316,6.9199%20L6.3966,4.8589%20L18.6076,18.7249%20C19.0266,19.0639%2019.5586,19.2499%2020.1056,19.2499%20L25.1526,19.2499%20C25.7036,19.2499%2026.2386,19.0609%2026.6596,18.7169%20L38.7266,4.8629%20L40.4026,6.9149%20L28.3356,20.7689%20C27.4426,21.4979%2026.3126,21.8999%2025.1526,21.8999'%20id='Fill-5'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%3e%3c/path%3e%3cpath%20d='M25.1521,21.8999%20L20.1051,21.8999%20C18.9541,21.8999%2017.8281,21.5019%2016.9341,20.7789%20L4.7321,6.9199%20L6.3971,4.8589%20L18.5991,18.7179%20C19.0241,19.0609%2019.5581,19.2499%2020.1051,19.2499%20L25.1521,19.2499%20C25.7041,19.2499%2026.2421,19.0579%2026.6701,18.7099%20L38.7261,4.8629%20L40.4021,6.9149%20L28.3451,20.7609%20C27.4471,21.4959%2026.3131,21.8999%2025.1521,21.8999'%20id='Fill-6'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%3e%3c/path%3e%3cpolygon%20id='Fill-7'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%20points='35.6131%2029.228%2027.8421%2019.456%2029.9161%2017.808%2037.6871%2027.58'%3e%3c/polygon%3e%3cpolygon%20id='Fill-8'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%20points='10.4866%2029.228%208.4136%2027.58%2016.1846%2017.808%2018.2576%2019.456'%3e%3c/polygon%3e%3cpath%20d='M8.1326,7.2139%20C7.4466,7.2139%206.8886,7.7719%206.8886,8.4569%20L6.8886,31.8709%20C6.8886,31.9299%206.9526,31.9939%207.0486,31.9939%20L38.0796,31.9939%20C38.1756,31.9939%2038.2396,31.9299%2038.2396,31.8709%20L38.2396,8.4569%20C38.2396,7.7719%2037.6816,7.2139%2036.9956,7.2139%20L8.1326,7.2139%20Z%20M38.0796,34.6419%20L7.0486,34.6419%20C5.4996,34.6419%204.2396,33.3999%204.2396,31.8709%20L4.2396,8.4569%20C4.2396,6.3109%205.9866,4.5649%208.1326,4.5649%20L36.9956,4.5649%20C39.1426,4.5649%2040.8886,6.3109%2040.8886,8.4569%20L40.8886,31.8709%20C40.8886,33.3999%2039.6286,34.6419%2038.0796,34.6419%20Z'%20id='Fill-9'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%3e%3c/path%3e%3cpath%20d='M48.1697,19.4375%20C48.1697,24.7455%2043.8657,29.0495%2038.5587,29.0495%20C33.2497,29.0495%2028.9457,24.7455%2028.9457,19.4375%20C28.9457,14.1285%2033.2497,9.8255%2038.5587,9.8255%20C43.8657,9.8255%2048.1697,14.1285%2048.1697,19.4375'%20id='Fill-10'%20fill='%23FFFFFF'%20mask='url(%23mask-2)'%3e%3c/path%3e%3cpath%20d='M38.5584,31.4429%20C45.1884,31.4429%2050.5644,26.0649%2050.5644,19.4359%20C50.5644,12.7969%2045.1624,7.4309%2038.5584,7.4309%20C31.9524,7.4309%2026.5514,12.7929%2026.5514,19.4359%20C26.5514,26.0469%2031.9054,31.4429%2038.5584,31.4429%20Z%20M40.6414,23.0739%2
6790L44.5814,19.4289%20L40.6404,15.7989%20L40.6404,17.6699%20L32.5334,17.6699%20L32.5334,21.1879%20L40.6404,21.1879%20L40.6404,23.0739%20L40.6414,23.0739%20Z%20M38.5584,9.8259%20C43.8494,9.8259%2048.1684,14.0969%2048.1684,19.4359%20C48.1684,24.7519%2043.8714,29.0469%2038.5584,29.0469%20C33.2264,29.0469%2028.9474,24.7189%2028.9474,19.4359%20C28.9474,14.1049%2033.2714,9.8259%2038.5584,9.8259%20Z'%20id='Fill-11'%20fill='%23C0C0C0'%20mask='url(%23mask-2)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:"email sent"}}):t("img",{attrs:{src:sS,alt:"verify email"}}),t("div",{staticClass:"main-content"},[t("h6",[e._v(e._s(e.verify_email_title))]),e.email_resent?t("p",[e._v(e._s("Check your email and follow the instructions to verify your account".localized()))]):t("kanopy-link",{attrs:{title:e.resend_email_action_title},on:{click:e.on_resend_verify_email_clicked}})],1)]),t("kanopy-link",{staticClass:"why-verify",class:{"email-resent":e.email_resent},attrs:{title:"Why verify?".localized(),to:"https://help.kanopy.com/hc/en-us/articles/360026504533",in_new_tab:!0}})],1)},[],0,0,"bc10b16b").exports;const aS=CC(Xn.extend({name:"OfflineBanner"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"offline-banner-container"},[e._v(" "+e._s("Your network connection was interrupted".localized())+" ")])},[],0,0,"1cc5030e").exports;const lS=CC(Xn.extend({name:"ExitKidsBanner"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"exit-kids-banner-container"},[e._v(" "+e._s("You have exited Kanopy Kids".localized())+" ")])},[],0,0,"b25d0afa").exports,cS=Xn.extend({name:"PreviewBannerStickingView",computed:{is_mobile_device:()=>xa.isMobileDevice()},methods:{on_close_clicked(){window.close()}},components:{CTAButton:IC}});const uS=CC(cS,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"preview-banner-container"},[t("div",{staticClass:"icon-and-text-container"},[e.is_mobile_device?e._e():t("img",{staticClass:"preview-eye-icon",attrs:{src:"data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.9823%2010.5C13.9229%2010.5%209.75882%2012.8495%206.4807%2017.5484C6.38713%2017.684%206.33585%2017.8443%206.33335%2018.0091C6.33085%2018.1738%206.37723%2018.3356%206.46664%2018.474C8.98539%2022.4167%2013.0937%2025.5%2017.9823%2025.5C22.8177%2025.5%2027.0104%2022.4073%2029.5338%2018.4557C29.6211%2018.3201%2029.6676%2018.1621%2029.6676%2018.0008C29.6676%2017.8394%2029.6211%2017.6815%2029.5338%2017.5458C27.0047%2013.6396%2022.7812%2010.5%2017.9823%2010.5Z'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18%2021C19.6569%2021%2021%2019.6569%2021%2018C21%2016.3431%2019.6569%2015%2018%2015C16.3431%2015%2015%2016.3431%2015%2018C15%2019.6569%2016.3431%2021%2018%2021Z'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M7.5%201.5H6C3.87868%201.5%202.81802%201.5%202.15901%202.15901C1.5%202.81802%201.5%203.87868%201.5%206V7.5'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-linecap='round'/%3e%3cpath%20d='M28.5%2034.5L30%2034.5C32.1213%2034.5%2033.182%2034.5%2033.841%2033.841C34.5%2033.182%2034.5%2032.1213%2034.5%2030L34.5%2028.5'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-linecap='round'/%3e%3cpath%20d='M34.5%207.5L34.5%206C34.5%203.87868%2034.5%202.81802%2033.841%202.15901C33.182%201.5%2032.1213%201.5%2030%201.5L28.5%201.5'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-linecap='round'/%3e%3cpath%20d='M1.5%2028.5L1.5%2030C1.5%2032.1213%201.5%2033.182%202.15901%2033.841C2.81802%2034.5%203.87868%2034.5%206%2034.5L7.5%2034.5'%20stroke='%23F9F9F9'%20stroke-width='2.25'%20stroke-linecap='round'/%3e%3c/svg%3e",alt:""}}),t("div",{staticClass:"preview-text-container"},[t("p",{staticClass:"preview-text-main"},[e._v(e._s("You're previewing the site as an admin.".localized()))]),t("p",{staticClass:"preview-text-sub"},[e._v(e._s("Some features aren't available while previewing.".localized()))])])]),t("div",{staticClass:"button-container"},[t("c-t-a-button",{staticClass:"exit-button",attrs:{title:"Exit".localized(),"aria-label":"Close Preview Window".localized()},on:{click:e.on_close_clicked}})],1)])},[],0,0,"35a48ccd").exports;const dS=CC(Xn.extend({name:"KanopyHeaderAndBanners",data:()=>({is_destroyed:!1,ticket_button_position:new DOMRect}),mounted(){this.set_header_height_css(!0)},destroyed(){this.is_destroyed=!0},computed:{is_com_user(){return this.$kuistore.getters["user/is_consumer_user"]},is_offline(){return this.$nuxt.isOffline},user_has_verified_email(){return this.$kuistore.state.user.user?.emailVerified??!0},has_exited_kids(){return this.$kuistore.state.site?.show_exit_kids_banner??!1}},methods:{set_header_height_css(e=!1){null!=this.$el?zC.setCSSVariable("--header-height",`${this.$el.offsetHeight}px`):kT(()=>{Du.instance.captureException({message:"KanopyHeaderAndBanners header is undefined",error_details:{header_ref_exists:null!=this.$refs?.header,destroyed:this.is_destroyed,on_mounted:e}})},500)},on_ticket_button_reposition(e){this.$emit("ticket_button_reposition",e),this.$kuistore.dispatch("site/save_ticket_button_position",e)}},components:{KanopyHeader:rS,VerifyLaterBanner:oS,OfflineBanner:aS,ExitKidsBanner:lS,PreviewBannerStickingView:uS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.set_header_height_css,expression:"set_header_height_css"}],ref:"header",staticClass:"header-and-banners-container"},[e.is_com_user?e._e():t("preview-banner-sticking-view"),t("kanopy-header",{on:{ticket_button_reposition:e.on_ticket_button_reposition}}
679),e.is_offline?t("offline-banner"):e._e(),e.user_has_verified_email?e._e():t("verify-later-banner"),e.has_exited_kids?t("exit-kids-banner"):e._e()],1)},[],0,0,"9fddd752").exports;const hS=CC(Xn.extend({name:"GradientLine"}),function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"gradient-line"})},[],0,0,"a64b6f98").exports;const pS=CC(Xn.extend({name:"HelpLinksRow",methods:{send_analytics(e){this.$emit("click",e)}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"help-links-row-container"},[t("kanopy-link",{attrs:{title:"About".localized(),to:"/about-us"},on:{click:function(t){return e.send_analytics("about")}}}),t("kanopy-link",{attrs:{title:"Librarians".localized(),to:"https://lib.kanopy.com",in_new_tab:!0},on:{click:function(t){return e.send_analytics("librarians")}}}),t("kanopy-link",{attrs:{title:"Careers".localized(),to:"https://careers.kanopy.com/",in_new_tab:!0},on:{click:function(t){return e.send_analytics("careers")}}}),t("kanopy-link",{attrs:{title:"Press".localized(),to:"https://press.kanopy.com",in_new_tab:!0},on:{click:function(t){return e.send_analytics("press")}}}),t("kanopy-link",{attrs:{title:"Support".localized(),to:"https://survey.alchemer.com/s3/6586124/Kanopy-Support-Form",in_new_tab:!0},on:{click:function(t){return e.send_analytics("contact")}}}),t("kanopy-link",{attrs:{title:"Help".localized(),to:"https://help.kanopy.com/hc/en-us",in_new_tab:!0},on:{click:function(t){return e.send_analytics("support")}}})],1)},[],0,0,"2b3dd3b5").exports;const fS=CC(Xn.extend({name:"ImageLink",props:{to:{type:String,required:!0},src:{type:String,required:!1,default:void 0},newtab:{type:Boolean,required:!1,default:!1},img_desc:{type:String,required:!1,default:void 0},img_width:{type:Number,required:!1,default:void 0},img_max_height:{type:Number,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},click_only:{type:Boolean,required:!1,default:!1}},computed:{image_style(){return{width:null!=this.img_width?`${this.img_width}px`:void 0,"max-height":null!=this.img_max_height?`${this.img_max_height}px`:void 0}}},methods:{on_click(e){this.$emit("click")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{attrs:{to:e.to,in_new_tab:e.newtab,disabled:e.disabled,click_only:e.click_only},on:{click:e.on_click}},[e._t("default",function(){return[t("img",{class:{"fit-width":null==e.img_width},style:e.image_style,attrs:{src:e.src,alt:e.img_desc}})]})],2)},[],0,0,"5f52a50f").exports,mS=""+new URL("linkedin-CnW_Aeq9.svg",import.meta.url).href;var _S=(e=>(e[e.Instagram=0]="Instagram",e[e.Facebook=1]="Facebook",e[e.LinkedIn=2]="LinkedIn",e[e.Email=3]="Email",e[e.Threads=4]="Threads",e[e.Bluesky=5]="Bluesky",e))(_S||{});const gS=CC(Xn.extend({name:"SocialLogosRow",props:{logos:{type:Array,required:!1,default:()=>[]},email_content:{type:Object,required:!1,default:void 0},facebook_link:{type:String,required:!1,default:"https://www.facebook.com/Kanopy"},linkedin_link:{type:String,required:!1,default:"https://www.linkedin.com/company/kanopy"},instagram_link:{type:String,required:!1,default:"https://www.instagram.com/kanopy/"},threads_link:{type:String,required:!1,default:"https://www.threads.net/@kanopy"},bluesky_link:{type:String,required:!1,default:"https://bsky.app/profile/kanopy.com"},product_title:{type:String,required:!1,default:void 0}},computed:{social_logos:()=>_S,email_link(){return null==this.email_content?"":`mailto:?subject=${this.email_content.subject}&body=${this.email_content.body}`},logo_data(){const e=[];return this.logos.forEach(t=>{e.push(this.get_logo_data(t))}),e}},methods:{on_click(e){this.$emit("click",e)},get_logo_data(e){switch(e){case 1:return{link:this.facebook_link,icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15300_249)'%3e%3cpath%20d='M24%2012C24%205.37258%2018.6274%200%2012%200C5.37258%200%200%205.37258%200%2012C0%2017.9895%204.3882%2022.954%2010.125%2023.8542V15.4688H7.07812V12H10.125V9.35625C10.125%206.34875%2011.9166%204.6875%2014.6576%204.6875C15.9701%204.6875%2017.3438%204.92188%2017.3438%204.92188V7.875H15.8306C14.34%207.875%2013.875%208.80008%2013.875%209.75V12H17.2031L16.6711%2015.4688H13.875V23.8542C19.6118%2022.954%2024%2017.9895%2024%2012Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_15300_249'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",img_desc:null==this.product_title?"Kanopy Facebook":'Facebook Logo - Share "{title}" on Facebook'.localized({title:this.product_title}),click:()=>this.on_click("facebook")};case 2:return{link:this.linkedin_link,icon:mS,img_desc:null==this.product_title?"Kanopy LinkedIn":'LinkedIn Logo - Share "{title}" on LinkedIn'.localized({title:this.product_title}),click:()=>this.on_click("linkedin")};case 3:return{link:this.email_link,icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%200C0.895431%200%200%200.89543%200%202V22C0%2023.1046%200.89543%2024%202%2024H22C23.1046%2024%2024%2023.1046%2024%2022V2C24%200.895431%2023.1046%200%2022%200H2ZM4.7378%207.08537C4.8718%207.03221%205.01737%207%205.17073%207H18.8293C18.9799%207%2019.124%207.02788%2019.2561%207.07926L12.4573%2012.8659C12.1593%2013.1193%2011.8278%2013.1191%2011.5305%2012.8659L4.7378%207.08537ZM4%208.17073C4%208.11321%204.00426%208.05526%204.0122%208L10.7683%2013.7561C11.4699%2014.3537%2012.5179%2014.3527%2013.2195%2013.7561L19.9878%208C19.9957%208.05526%2020%208.11321%2020%208.17073V15.9756C20%2016.6242%2019.4778%2017.1463%2018.8293%2017.1463H5.17073C4.52216%2017.1463%204%2016.6242%204%2015.9756V8.17073Z'%20fill='%23F9F9F9'/%3e%3c/svg%3e",img_desc:null==this.product_title?"Kanopy Email":'Email Logo - Share "{title}" via email'.localized({title:this.product_title}),click:()=>this.on_click("email")};case 0:return{link:this.instagram_link,icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15300_258)'%3e%3cpath%20d='M12%2
67902.16094C15.2063%202.16094%2015.5859%202.175%2016.8469%202.23125C18.0188%202.28281%2018.6516%202.47969%2019.0734%202.64375C19.6313%202.85938%2020.0344%203.12188%2020.4516%203.53906C20.8734%203.96094%2021.1313%204.35938%2021.3469%204.91719C21.5109%205.33906%2021.7078%205.97656%2021.7594%207.14375C21.8156%208.40937%2021.8297%208.78906%2021.8297%2011.9906C21.8297%2015.1969%2021.8156%2015.5766%2021.7594%2016.8375C21.7078%2018.0094%2021.5109%2018.6422%2021.3469%2019.0641C21.1313%2019.6219%2020.8687%2020.025%2020.4516%2020.4422C20.0297%2020.8641%2019.6313%2021.1219%2019.0734%2021.3375C18.6516%2021.5016%2018.0141%2021.6984%2016.8469%2021.75C15.5813%2021.8062%2015.2016%2021.8203%2012%2021.8203C8.79375%2021.8203%208.41406%2021.8062%207.15313%2021.75C5.98125%2021.6984%205.34844%2021.5016%204.92656%2021.3375C4.36875%2021.1219%203.96563%2020.8594%203.54844%2020.4422C3.12656%2020.0203%202.86875%2019.6219%202.65313%2019.0641C2.48906%2018.6422%202.29219%2018.0047%202.24063%2016.8375C2.18438%2015.5719%202.17031%2015.1922%202.17031%2011.9906C2.17031%208.78438%202.18438%208.40469%202.24063%207.14375C2.29219%205.97187%202.48906%205.33906%202.65313%204.91719C2.86875%204.35938%203.13125%203.95625%203.54844%203.53906C3.97031%203.11719%204.36875%202.85938%204.92656%202.64375C5.34844%202.47969%205.98594%202.28281%207.15313%202.23125C8.41406%202.175%208.79375%202.16094%2012%202.16094ZM12%200C8.74219%200%208.33438%200.0140625%207.05469%200.0703125C5.77969%200.126563%204.90313%200.332812%204.14375%200.628125C3.35156%200.9375%202.68125%201.34531%202.01563%202.01562C1.34531%202.68125%200.9375%203.35156%200.628125%204.13906C0.332812%204.90313%200.126563%205.775%200.0703125%207.05C0.0140625%208.33437%200%208.74219%200%2012C0%2015.2578%200.0140625%2015.6656%200.0703125%2016.9453C0.126563%2018.2203%200.332812%2019.0969%200.628125%2019.8563C0.9375%2020.6484%201.34531%2021.3188%202.01563%2021.9844C2.68125%2022.65%203.35156%2023.0625%204.13906%2023.3672C4.90313%2023.6625%205.775%2023.8687%207.05%2023.925C8.32969%2023.9812%208.7375%2023.9953%2011.9953%2023.9953C15.2531%2023.9953%2015.6609%2023.9812%2016.9406%2023.925C18.2156%2023.8687%2019.0922%2023.6625%2019.8516%2023.3672C20.6391%2023.0625%2021.3094%2022.65%2021.975%2021.9844C22.6406%2021.3188%2023.0531%2020.6484%2023.3578%2019.8609C23.6531%2019.0969%2023.8594%2018.225%2023.9156%2016.95C23.9719%2015.6703%2023.9859%2015.2625%2023.9859%2012.0047C23.9859%208.74688%2023.9719%208.33906%2023.9156%207.05938C23.8594%205.78438%2023.6531%204.90781%2023.3578%204.14844C23.0625%203.35156%2022.6547%202.68125%2021.9844%202.01562C21.3188%201.35%2020.6484%200.9375%2019.8609%200.632812C19.0969%200.3375%2018.225%200.13125%2016.95%200.075C15.6656%200.0140625%2015.2578%200%2012%200Z'%20fill='white'/%3e%3cpath%20d='M12%205.83594C8.59688%205.83594%205.83594%208.59688%205.83594%2012C5.83594%2015.4031%208.59688%2018.1641%2012%2018.1641C15.4031%2018.1641%2018.1641%2015.4031%2018.1641%2012C18.1641%208.59688%2015.4031%205.83594%2012%205.83594ZM12%2015.9984C9.79219%2015.9984%208.00156%2014.2078%208.00156%2012C8.00156%209.79219%209.79219%208.00156%2012%208.00156C14.2078%208.00156%2015.9984%209.79219%2015.9984%2012C15.9984%2014.2078%2014.2078%2015.9984%2012%2015.9984Z'%20fill='white'/%3e%3cpath%20d='M19.8469%205.59214C19.8469%206.38902%2019.2%207.0312%2018.4078%207.0312C17.6109%207.0312%2016.9688%206.38433%2016.9688%205.59214C16.9688%204.79526%2017.6156%204.15308%2018.4078%204.15308C19.2%204.15308%2019.8469%204.79995%2019.8469%205.59214Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_15300_258'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",img_desc:null==this.product_title?"Kanopy Instagram":'Instagram Logo - Share "{title}" on Instagram'.localized({title:this.product_title}),click:()=>this.on_click("instagram")};case 4:return{link:this.threads_link,icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.7063%2011.1235C17.6029%2011.074%2017.4979%2011.0263%2017.3915%2010.9806C17.2063%207.56728%2015.3412%205.61312%2012.2094%205.59312C12.1952%205.59304%2012.1811%205.59304%2012.1669%205.59304C10.2937%205.59304%208.7358%206.39261%207.77691%207.84759L9.49928%209.029
6791C10.2156%207.94229%2011.3398%207.7106%2012.1677%207.7106C12.1773%207.7106%2012.1869%207.7106%2012.1964%207.71069C13.2275%207.71726%2014.0057%208.01708%2014.5093%208.60175C14.8758%209.02741%2015.1209%209.61563%2015.2423%2010.358C14.328%2010.2026%2013.3393%2010.1548%2012.2823%2010.2154C9.30475%2010.3869%207.39055%2012.1235%207.51911%2014.5365C7.58435%2015.7605%208.19412%2016.8135%209.23604%2017.5014C10.117%2018.0829%2011.2515%2018.3673%2012.4307%2018.3029C13.9879%2018.2175%2015.2095%2017.6234%2016.0618%2016.537C16.709%2015.712%2017.1184%2014.6429%2017.2992%2013.2957C18.0413%2013.7436%2018.5913%2014.333%2018.895%2015.0415C19.4115%2016.2459%2019.4417%2018.225%2017.8268%2019.8385C16.4119%2021.252%2014.7112%2021.8635%2012.1408%2021.8824C9.28968%2021.8612%207.13338%2020.9469%205.73142%2019.1646C4.4186%2017.4958%203.74012%2015.0852%203.71481%2012C3.74012%208.91473%204.4186%206.5042%205.73142%204.83534C7.13338%203.05311%209.28965%202.13875%2012.1408%202.11756C15.0127%202.13891%2017.2065%203.05767%2018.6622%204.8485C19.3759%205.7267%2019.914%206.8311%2020.2688%208.11879L22.2872%207.58028C21.8572%205.99528%2021.1805%204.62946%2020.2598%203.49675C18.3937%201.20084%2015.6644%200.0243935%2012.1478%200H12.1338C8.62436%200.0243088%205.92567%201.20522%204.1127%203.50991C2.4994%205.5608%201.66721%208.41446%201.63925%2011.9916L1.63916%2012L1.63925%2012.0084C1.66721%2015.5855%202.4994%2018.4393%204.1127%2020.4901C5.92567%2022.7948%208.62436%2023.9757%2012.1338%2024H12.1478C15.2679%2023.9784%2017.4672%2023.1615%2019.2789%2021.3514C21.6493%2018.9832%2021.5779%2016.0149%2020.7967%2014.1926C20.2362%2012.8859%2019.1675%2011.8245%2017.7063%2011.1235ZM12.3192%2016.1884C11.0142%2016.2619%209.65846%2015.6761%209.59161%2014.4215C9.54206%2013.4913%2010.2536%2012.4532%2012.3993%2012.3296C12.645%2012.3154%2012.8862%2012.3085%2013.123%2012.3085C13.9024%2012.3085%2014.6315%2012.3842%2015.2944%2012.5291C15.0472%2015.6169%2013.5969%2016.1182%2012.3192%2016.1884Z'%20fill='white'/%3e%3c/svg%3e",img_desc:null==this.product_title?"Kanopy Threads":'Threads Logo - Share "{title}" on Threads'.localized({title:this.product_title}),click:()=>this.on_click("threads")};case 5:return{link:this.bluesky_link,icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15300_264)'%3e%3cpath%20d='M5.20061%202.85185C7.95215%204.91754%2010.9117%209.10589%2011.9984%2011.3536C13.0851%209.10605%2016.0445%204.9175%2018.7961%202.85185C20.7815%201.36134%2023.9983%200.208061%2023.9983%203.87785C23.9983%204.61075%2023.5781%2010.0346%2023.3316%2010.9152C22.475%2013.9766%2019.3533%2014.7574%2016.5765%2014.2848C21.4303%2015.1109%2022.665%2017.8472%2019.9984%2020.5835C14.934%2025.7803%2012.7194%2019.2796%2012.1517%2017.6139C12.0477%2017.3086%2011.999%2017.1657%2011.9983%2017.2872C11.9976%2017.1657%2011.9489%2017.3086%2011.8449%2017.6139C11.2774%2019.2796%209.06283%2025.7805%203.99816%2020.5835C1.33152%2017.8472%202.56623%2015.1107%207.42008%2014.2848C4.64322%2014.7574%201.5215%2013.9766%200.664949%2010.9152C0.418487%2010.0346%20-0.00170898%204.61067%20-0.00170898%203.87785C-0.00170898%200.208061%203.21518%201.36134%205.20047%202.85185H5.20061Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_15300_264'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",img_desc:null==this.product_title?"Kanopy Bluesky":'Bluesky Logo - Share "{title}" on Bluesky'.localized({title:this.product_title}),click:()=>this.on_click("bluesky")}}}},components:{ImageLink:fS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"social-row-container"},e._l(e.logo_data,function(e,n){return t("image-link",{key:n,staticClass:"social-logo",attrs:{to:e.link,src:e.icon,newtab:!0,img_desc:e.img_desc,img_width:24},on:{click:e.click}})}),1)},[],0,0,"cb1cda79").exports;const yS=CC(Xn.extend({name:"LegalRow",props:{in_menu:{required:!1,type:Boolean,default:!1}},methods:{send_analytics(e){this.$emit("click",e)},open_cookie_preferences(){this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!0),this.$kuistore.dispatch("site/toggle_menu",!1),this.send_analytics("cookies"),JC.instance.setPostNavOrActionFocus(ZC.CookiePreferencesMenu,this.in_menu?XC.HeaderMenuButton:this.$refs.cookies.$el)}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"legal-row-container"},[t("kanopy-link",{staticClass:"legal-link",attrs:{title:"Terms of Service".localized(),to:"/terms",in_new_tab:!0},on:{click:function(t){return e.send_analytics("terms of service")}}}),t("kanopy-link",{staticClass:"legal-link",attrs:{title:"Privacy Policy".localized(),to:"/privacy",in_new_tab:!0},on:{click:function(t){return e.send_analytics("privacy policy")}}}),t("kanopy-link",{ref:"cookies",staticClass:"legal-link",attrs:{title:"Cookies".localized()},on:{click:e.open_cookie_preferences}}),t("kanopy-link",{staticClass:"legal-link",attrs:{title:"Accessibility".localized(),to:"https://www.overdrive.com/policies/kanopy-accessibility-statement",in_new_tab:!0},on:{click:function(t){return e.send_analytics("accessibility")}}})],1)},[],0,0,"60753f1f").exports,vS=Xn.extend({name:"RegionSelectionDropdown",data(){return{selected:this.$kuistore.state.site.webshop.name}},computed:{current_region(){return this.$kuistore.state.site.webshop},region_human_name(){return this.current_region.name},webshop_list:()=>Ou},methods:{on_webshop_selected(){this.on_click(this.selected);const e=this.webshop_list.find(e=>e.name===this.selected);this.$kuistore.dispatch("site/set_current_region",e)},on_click(e){this.$emit("click",e)}}});const bS=CC(vS,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"region-container"},[t("span",{staticClass:"label"},[e._v(e._s("Change region:".localized()))]),t("span",{staticClass:"select-container"},[t("img",{attrs:{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.585786%200.585786C0.210714%200.960859%200%201.46957%200%202V9C0%209.53043%200.210714%2010.0391%200.585786%2010.4142C0.960859%2010.7893%201.46957%2011%202%2011H5V14C5%2014.5304%205.21071%2015.0391%205.58579%2015.4142C5.96086%2015.7893%206.46957%2016%207%2016H14C14.5304%2016%2015.0391%2015.7893%2015.4142%2015.4142C15.7893%2015.0391%2016%2014.5304%2016%2014V7C16%206.46957%2015.7893%205.96086%2015.4142%205.58579C15.0391%205.21071%2014.5304%205%2014%205H11V2C11%201.46957%2010.7893%200.960859%2010.4142%200.585786C10.0391%200.210714%209.53043%200%209%200H2C1.46957%200%200.960859%200.210714%200.585786%200.585786ZM1.29289%201.29289C1.48043%201.10536%201.73478%201%202%201H9C9.26522%201%209.51957%201.10536%209.70711%201.29289C9.89464%201.48043%2010%201.73478%2010%202V9C10%209.26522%209.89464%209.51957%209.70711%209.70711C9.51957%209.89464%209.26522%2010%209%2010H2C1.73478%2010%201.48043%209.89464%201.29289%209.70711C1.10536%209.51957%201%209.26522%201%209V2C1%201.73478%201.10536%201.48043%201.29289%201.29289ZM9.768%2011.841C9.54067%2011.5777%209.33067%2011.2957%209.138%2010.995C9.47236%2010.9721%209.79559%2010.8655%2010.078%2010.685C10.2074%2010.8563%2010.346%2011.0205%2010.493%2011.177C11.025%2010.593%2011.447%209.891%2011.765%209.047H11V8H14V9.047H12.801C12.402%2010.153%2011.861%2011.057%2011.18%2011.804C11.943%2012.394%2012.875%2012.835%2014%2013.088C13.785%2013.305%2013.504%2013.724%2013.371%2013.978C12.18%2013.671%2011.218%2013.171%2010.441%2012.506C9.635%2013.156%208.68%2013.641%207.555%2014C7.451%2013.768%207.178%2013.35%207%2013.133C8.095%2012.842%209.02%2012.416%209.768%2011.841ZM4.11%208L4.545%206.714H6.398L6.833%2
67908H8L6.146%203H4.862L3%208H4.11ZM5.5%203.956L6.179%205.978H4.772L5.451%203.956H5.5Z'%20fill='white'/%3e%3c/svg%3e",alt:""}}),t("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],staticClass:"region-dropdown-row",attrs:{"aria-label":"Change region".localized(),selected:e.selected},on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selected=t.target.multiple?n:n[0]},e.on_webshop_selected]}},e._l(e.webshop_list,function(n,r){return t("option",{key:r,staticClass:"opt"},[e._v(" "+e._s(n.name)+" ")])}),0)])])},[],0,0,"58d53d81").exports,wS=""+new URL("overdrive-DkjYjXGw.svg",import.meta.url).href;const kS=CC(Xn.extend({name:"CopyrightRow",computed:{wordmark_text:()=>"an {overdrive_logo} Company.".localized({overdrive_logo:`<img src="${wS}" alt="OverDrive logo" />`}),copyright:()=>"© {year} OverDrive. All rights reserved.".localized({year:(new Date).getFullYear()})}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"copyright-row"},[t("span",{domProps:{innerHTML:e._s(e.wordmark_text)}}),t("span",[e._v(e._s(e.copyright))])])},[],0,0,"60cb3e7b").exports;const CS=CC(Xn.extend({name:"IPhoneLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"77",height:"18",viewBox:"0 0 77 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2058 0.336335C10.2058 1.20397 9.83711 2.06076 9.31647 2.68976C8.75251 3.37303 7.79804 3.88261 7.03883 3.88261C6.95207 3.88261 6.86525 3.8718 6.8111 3.86109C6.79977 3.81771 6.77836 3.68749 6.77836 3.55735C6.77836 2.68965 7.22301 1.82216 7.7002 1.27986C8.30761 0.564032 9.3271 0.0327407 10.1731 0C10.1951 0.0975926 10.2058 0.217021 10.2058 0.336335ZM7.96923 4.54456C8.5197 4.32677 9.17613 4.06708 9.91298 4.06708C10.3902 4.06708 12.1147 4.11054 13.2427 5.73738C13.2359 5.74261 13.2215 5.75207 13.2005 5.76584C12.917 5.95201 11.4314 6.92729 11.4314 8.93687C11.4314 11.4314 13.6114 12.3209 13.6765 12.3423C13.6656 12.3966 13.3294 13.5462 12.5268 14.7284C11.811 15.7587 11.0518 16.8002 9.91298 16.8002C9.35717 16.8002 9.00164 16.6429 8.63434 16.4805C8.24192 16.307 7.83607 16.1275 7.15819 16.1275C6.47824 16.1275 6.03008 16.3202 5.60597 16.5025C5.22504 16.6663 4.8635 16.8217 4.37082 16.8217C3.31877 16.8217 2.59215 15.8564 1.75708 14.685C0.780961 13.2968 0 11.1493 0 9.11026C0 5.8457 2.12576 4.11073 4.21903 4.11073C4.8342 4.11073 5.39234 4.33538 5.88789 4.53482C6.28348 4.69404 6.63917 4.8372 6.95213 4.8372C7.22952 4.8372 7.57176 4.70181 7.96923 4.54456ZM19.9893 5.57172C19.3301 5.57172 18.7939 5.03558 18.7939 4.38519C18.7939 3.72601 19.3301 3.18988 19.9893 3.18988C20.6396 3.18988 21.1846 3.72601 21.1846 4.38519C21.1846 5.03558 20.6396 5.57172 19.9893 5.57172ZM19.0312 16.8217V7.27679H20.9297V16.8217H19.0312ZM35.4844 16.8217V3.53265H37.3916V8.72699H37.5322C37.998 7.70746 38.9121 7.09222 40.3008 7.09222C42.4365 7.09222 43.6143 8.36664 43.6143 10.643V16.8217H41.7158V11.0912C41.7158 9.50922 41.0566 8.72699 39.6592 8.72699C38.2617 8.72699 37.3916 9.685 37.3916 11.2231V16.8217H35.4844ZM45.8027 12.058C45.8027 15.1342 47.5166 17.0063 50.3203 17.0063C53.1152 17.0063 54.8291 15.1342 54.8291 12.058V12.0405C54.8291 8.96429 53.1064 7.09222 50.3203 7.09222C47.5254 7.09222 45.8027 8.97308 45.8027 12.0405V12.058ZM52.8867 12.058C52.8867 14.1674 51.9551 15.4155 50.3203 15.4155C48.6768 15.4155 47.7539 14.1762 47.7539 12.058V12.0405C47.7539 9.9223 48.6768 8.68304 50.3203 8.68304C51.9551 8.68304 52.8867 9.9223 52.8867 12.0405V12.058ZM57.1055 16.8217V7.27679H59.0127V8.72699H59.1533C59.6191 7.70746 60.5332 7.09222 61.9219 7.09222C64.0576 7.09222 65.2354 8.36664 65.2354 10.643V16.8217H63.3369V11.0912C63.3369 9.50922 62.6777 8.72699 61.2803 8.72699C59.8828 8.72699 59.0127 9.685 59.0127 11.2231V16.8217H57.1055ZM71.9062 17.0063C69.1113 17.0063 67.4238 15.0991 67.4238 12.0756V12.0668C67.4238 9.08734 69.1465 7.09222 71.8096 7.09222C74.4727 7.09222 76.1074 9.01703 76.1074 11.8823V12.5502H69.3398C69.375 14.3784 70.377 15.4418 71.9502 15.4418C73.1719 15.4418 73.9014 14.8354 74.1299 14.3432L74.165 14.2729L76.002 14.2641L75.9844 14.3432C75.668 15.6 74.3496 17.0063 71.9062 17.0063ZM71.8184 8.65668C70.5176 8.65668 69.5332 9.54437 69.3662 11.1879H74.2178C74.0684 9.48285 73.1104 8.65668 71.8184 8.65668ZM23.9268 4.1391V16.8217H25.8955V12.4887H28.8662C31.3535 12.4887 33.0762 10.7924 33.0762 8.3139V8.29633C33.0762 5.80902 31.3535 4.1391 28.8662 4.1391H23.9268ZM25.8955 5.80023H28.374C30.0791 5.80023 31.0723 6.72308 31.0723 8.30511V8.32269C31.0723 9.91351 30.0791 10.8364 28.374 10.8364H25.8955V5.80023Z",fill:e.color}})])},[],0,0,null).exports;const TS=CC(Xn.extend({name:"IPadLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"54",height:"18",viewBox:"0 0 54 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8888 0C9.76777 0.0858148 8.73893 0.654716 8.06846 1.55951H8.03939C7.43095 2.2719 7.
6791511 3.20887 7.26889 4.13927C8.31723 4.23068 9.33705 3.76644 9.95837 2.91498C10.6619 2.11677 10.9994 1.0594 10.8888 0ZM10.6417 4.37247C9.55185 4.52627 8.48031 4.78995 7.44334 5.15951C7.14185 5.15951 6.78047 5.01853 6.3636 4.85591C5.7955 4.63429 5.12436 4.37247 4.36133 4.37247C2.22428 4.37247 0 6.20891 0 9.83806C0 13.4672 2.63134 18 4.84108 18C5.13815 18 5.5385 17.8533 5.98351 17.6903C6.54026 17.4863 7.1669 17.2567 7.74863 17.2567C8.27199 17.2567 8.7372 17.4352 9.20241 17.6138C9.66762 17.7923 10.1328 17.9708 10.6562 17.9708C12.9386 17.9708 14.625 13.1903 14.625 13.1903C13.1649 12.5625 12.2165 11.1248 12.2117 9.53198C12.2048 8.12737 12.9479 6.82637 14.1598 6.12146C13.3693 4.96587 12.0376 4.30387 10.6417 4.37247ZM19.9893 4.57172C19.3301 4.57172 18.7939 4.03558 18.7939 3.38519C18.7939 2.72601 19.3301 2.18988 19.9893 2.18988C20.6396 2.18988 21.1846 2.72601 21.1846 3.38519C21.1846 4.03558 20.6396 4.57172 19.9893 4.57172ZM19.0312 15.8217V6.27679H20.9297V15.8217H19.0312ZM48.7031 15.9799C46.3037 15.9799 44.748 14.0551 44.748 11.058V11.0405C44.748 8.01703 46.2773 6.1098 48.7031 6.1098C50.0127 6.1098 51.1289 6.76019 51.6387 7.78851H51.7881V2.53265H53.6865V15.8217H51.7881V14.3188H51.6387C51.085 15.3647 50.0391 15.9799 48.7031 15.9799ZM49.248 14.3539C50.8389 14.3539 51.8145 13.0971 51.8145 11.058V11.0405C51.8145 9.0014 50.8301 7.74457 49.248 7.74457C47.6484 7.74457 46.6904 8.99261 46.6904 11.0405V11.058C46.6904 13.1059 47.6484 14.3539 49.248 14.3539ZM37.6641 15.9799C35.8447 15.9799 34.5 14.8725 34.5 13.1411V13.1235C34.5 11.4184 35.7832 10.4252 38.0596 10.2846L40.6436 10.1352V9.29144C40.6436 8.24554 39.9844 7.66547 38.6924 7.66547C37.6377 7.66547 36.9434 8.05219 36.7148 8.72894L36.7061 8.7641H34.8691L34.8779 8.70258C35.1064 7.13812 36.6094 6.09222 38.7803 6.09222C41.1797 6.09222 42.5332 7.28754 42.5332 9.29144V15.8217H40.6436V14.4682H40.4941C39.9316 15.435 38.9297 15.9799 37.6641 15.9799ZM36.3984 13.062C36.3984 13.9409 37.1455 14.4594 38.1738 14.4594C39.5977 14.4594 40.6436 13.5278 40.6436 12.2973V11.4799L38.3145 11.6293C36.9961 11.7084 36.3984 12.183 36.3984 13.0444V13.062ZM23.9268 3.1391V15.8217H25.8955V11.4887H28.8662C31.3535 11.4887 33.0762 9.79242 33.0762 7.3139V7.29633C33.0762 4.80902 31.3535 3.1391 28.8662 3.1391H23.9268ZM25.8955 4.80023H28.374C30.0791 4.80023 31.0723 5.72308 31.0723 7.30511V7.32269C31.0723 8.91351 30.0791 9.83636 28.374 9.83636H25.8955V4.80023Z",fill:e.color}})])},[],0,0,null).exports;const SS=CC(Xn.extend({name:"AppleTVLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"37",height:"17",viewBox:"0 0 37 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7967 0.0588379C9.68514 0.13967 8.665 0.675541 8.00021 1.52781H7.98579C7.38369 2.19992 7.10176 3.08002 7.20739 3.95778C8.24638 4.04114 9.25622 3.60444 9.87413 2.80457C10.5702 2.05186 10.9046 1.05655 10.7967 0.0588379ZM10.5516 4.17744C9.47067 4.32043 8.408 4.56885 7.38037 4.91879C7.08143 4.91879 6.72311 4.78599 6.30976 4.63281C5.74647 4.42406 5.08101 4.17744 4.32444 4.17744C2.20546 4.17744 0 5.87979 0 9.31196C0 12.7441 2.60908 17 4.80013 17C5.08652 17 5.4797 16.8662 5.91887 16.7167C6.47437 16.5277 7.10345 16.3136 7.68308 16.3136C8.20201 16.3136 8.66329 16.4783 9.12456 16.6431C9.58583 16.8078 10.0471 16.9726 10.566 16.9726C12.8292 16.9726 14.5013 12.4833 14.5013 12.4833C13.0535 11.8919 12.1131 10.5377 12.1084 9.03739C12.0956 7.71641 12.8273 6.49027 14.0256 5.82488C13.2483 4.73652 11.932 4.11228 10.5516 4.17744ZM22.2051 16.0752C19.6377 16.0752 18.585 15.1729 18.585 12.9277V6.17091H16.7588V4.334H18.585V1.39064H20.959V4.334H23.4619V6.17091H20.959V12.3692C20.959 13.626 21.4316 14.1416 22.5811 14.1416C22.9355 14.1416 23.1396 14.1309 23.4619 14.0986V15.957C23.0859 16.0215 22.6562 16.0752 22.2051 16.0752ZM29.3916 16L25.1699 4.334H27.6406L30.5518 13.6367H30.7344L33.6348 4.334H36.084L31.873 16H29.3916Z",fill:e.color}})])},[],0,0,null).exports;const xS=CC(Xn.extend({name:"AndroidLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"76",height:"18",viewBox:"0 0 76 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{d:"M66.0578 11.3348C66.0578 9.41034 67.4603 7.89359 69.2258 7.89359C70.9913 7.89359 72.2838 9.36957 72.2838 11.3348C72.2838 13.3001 70.9709 14.8209 69.2258 14.8209C67.4807 14.8209 66.
6790578 13.2797 66.0578 11.3348ZM59.9826 16.7005H62.4616V6.0099H59.9826V16.7005ZM59.5953 2.43821C59.5953 3.35967 60.3496 4.10581 61.2343 4.10581C62.1191 4.10581 62.8489 3.35559 62.8489 2.43821C62.8489 1.58198 62.115 0.856227 61.2343 0.856227C60.3496 0.856227 59.5953 1.58198 59.5953 2.43821ZM49.8751 11.3103C49.8751 9.38587 51.298 7.88952 53.1287 7.88952C54.9594 7.88952 56.3824 9.38587 56.3824 11.3103C56.3824 13.2348 54.939 14.8168 53.1287 14.8168C51.3184 14.8209 49.8751 13.2593 49.8751 11.3103ZM47.3553 11.3103C47.3553 14.5192 49.8995 17.043 53.1287 17.043C56.362 17.043 58.9062 14.5192 58.9062 11.3103C58.9062 8.10153 56.4028 5.66741 53.1287 5.66741C49.8547 5.66741 47.3553 8.126 47.3553 11.3103ZM40.6523 16.7005H43.1313V11.0983C43.1313 8.87622 44.3178 7.88952 46.2993 7.88952C46.6663 7.88952 46.9435 7.9099 47.2045 7.97514V5.81419C46.9476 5.72856 46.495 5.66333 45.9976 5.66333C42.6379 5.66333 40.6523 7.75904 40.6523 11.0943V16.7005ZM30.716 11.3348C30.716 9.41034 32.1186 7.89359 33.884 7.89359C35.6495 7.89359 36.9461 9.36957 36.9461 11.3348C36.9461 13.3001 35.6332 14.8209 33.884 14.8209C32.139 14.8209 30.716 13.2797 30.716 11.3348ZM28.1962 11.3348C28.1962 14.4335 30.6956 17.043 33.6475 17.043C34.8748 17.043 35.996 16.5496 36.6647 15.7383H36.7707V16.7005H39.2497V0H36.7707V6.88651H36.6647C36.0205 6.1159 34.8993 5.66741 33.6475 5.66741C30.6752 5.66741 28.1962 8.25239 28.1962 11.3348ZM17.3344 16.7005H19.8134V10.4337C19.8134 8.93738 20.8245 7.88952 22.2271 7.88952C23.6297 7.88952 24.6409 8.93738 24.6409 10.4337V16.7005H27.1198V10.4337C27.1198 7.82428 25.0282 5.66333 22.2271 5.66333C19.426 5.66333 17.3344 7.82428 17.3344 10.4337V16.7005ZM5.9588 10.287L8.62942 2.69508H8.75989L11.4305 10.287H5.9588ZM0.915222 16.7005H3.71631L5.11889 12.7211H12.2745L13.6771 16.7005H16.4782L10.244 0H7.14121L0.915222 16.7005ZM68.9893 17.043C70.2166 17.043 71.3378 16.5496 72.0065 15.7383H72.1125V16.7005H74.5915V0H72.1125V6.88651H72.0065C71.3623 6.1159 70.241 5.66741 68.9893 5.66741C66.017 5.66741 63.538 8.25647 63.538 11.3348C63.538 14.4131 66.0374 17.043 68.9893 17.043Z",fill:e.color}})])},[],0,0,null).exports;const ES=CC(Xn.extend({name:"AndroidTVLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"105",height:"18",viewBox:"0 0 105 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M65.9401 11.3348C65.9401 9.41034 67.3427 7.89359 69.1081 7.89359C70.8736 7.89359 72.1661 9.36957 72.1661 11.3348C72.1661 13.3001 70.8532 14.8209 69.1081 14.8209C67.3631 14.8209 65.9401 13.2797 65.9401 11.3348ZM59.8649 16.7005H62.3439V6.0099H59.8649V16.7005ZM59.4776 2.43821C59.4776 3.35967 60.2319 4.10581 61.1167 4.10581C62.0014 4.10581 62.7313 3.35559 62.7313 2.43821C62.7313 1.58198 61.9974 0.856227 61.1167 0.856227C60.2319 0.856227 59.4776 1.58198 59.4776 2.43821ZM49.7574 11.3103C49.7574 9.38587 51.1804 7.88952 53.0111 7.88952C54.8418 7.88952 56.2647 9.38587 56.2647 11.3103C56.2647 13.2348 54.8214 14.8168 53.0111 14.8168C51.2008 14.8209 49.7574 13.2593 49.7574 11.3103ZM47.2376 11.3103C47.2376 14.5192 49.7819 17.043 53.0111 17.043C56.2443 17.043 58.7886 14.5192 58.7886 11.3103C58.7886 8.10153 56.2851 5.66741 53.0111 5.66741C49.737 5.66741 47.2376 8.126 47.2376 11.3103ZM40.5346 16.7005H43.0136V11.0983C43.0136 8.87622 44.2001 7.88952 46.1816 7.88952C46.5486 7.88952 46.8258 7.9099 47.0868 7.97514V5.81419C46.8299 5.72856 46.3773 5.66333 45.8799 5.66333C42.5202 5.66333 40.5346 7.75904 40.5346 11.0943V16.7005ZM30.5983 11.3348C30.5983 9.41034 32.0009 7.89359 33.7663 7.89359C35.5318 7.89359 36.8284 9.36957 36.8284 11.3348C36.8284 13.3001 35.5155 14.8209 33.7663 14.8209C32.0213 14.8209 30.5983 13.2797 30.5983 11.3348ZM28.0786 11.3348C28.0786 14.4335 30.5779 17.043 33.5299 17.043C34.7571 17.043 35.8784 16.5496 36.547 15.7383H36.6531V16.7005H39.132V0H36.6531V6.88651H36.547C35.9028 6.1159 34.7816 5.66741 33.5299 5.66741C30.5575 5.66741 28.0786 8.25239 28.0786 11.3348ZM17.2167 16.7005H19.6957V10.4337C19.6957 8.93738 20.7069 7.88952 22.1094 7.88952C23.512 7.88952 24.5232 8.93738 24.5232 10.4337V16.7005H27.0022V10.4337C27.0022 7.82428 24.9105 5.66333 22.1094 5.66333C19.3084 5.66333 17.2167 7.82428 17.2167 10.4337V16.7005ZM5.84113 10.287L8.51174 2.69508H8.64221L11.3128 10.287H5.84113ZM0.797546 16.7005H3.59863L5.00121 12.7211H12.1568L13.5594 16.7005H16.3605L10.1263 0H7.02354L0.797546 16.7005ZM68.8716 17.043C70.0989 17.043 71.2201 16.5496 71.8888 15.7383H71.9948V16.7005H74.4738V0H71.9948V6.88651H71.8888C71.2446 6.1159 70.1234 5.66741 68.8716 5.66741C65.8993 5.66741 63.4203 8.25647 63.4203 11.3348C63.4203 14.4131 65.9197 17.043 68.8716 17.043ZM103.17 0L97.8692 15.1471H97.5797L92.2792 0H90.5994L96.7357 17.0471H97.2046H98.2484H98.7132L104.849 0H103.17ZM78.5633 0H89.6127H89.6168V1.39443H84.7852V17.0389H83.3949V1.39443H78.5633V0Z",fill:e.color}})])},[],0,0,null).exports;const IS=CC(Xn.extend({name:"RokuLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"59",height:"18",viewBox:"0 0 59 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.19439 3.68903C8.73948 4.22545 9.04332 4.95069 9.03907 5.70518C9.03909 7.27028 7.74034 8.54145 6.13251 8.55H4.67924V2.84482H6.13251C6.90762 2.84893 7.6493 3.1526 8.19439 3.68903ZM10.3167 17.1H15.6187L10.668 10.3688C12.4714 9.46032 13.6358 7.68015 13.7183 5.70518C13.7183 2.565 10.5722 0 6.70744 0H0V17.1H4.67924V11.3948H6.10057L10.3167 17.1ZM18.838 10.7361C18.838 8.58091 19.9216 6.98449 21.1858 6.98449V6.92063C22.4828 6.92063 23.5665 8.50109 23.5665 10.6722C23.5665 12.8434 22.45 14.4398 21.1858 14.4398C19.9216 14.4398 18.838 12.8912 18.838 10.7361ZM24.0652 17.4332C26.8299 16.2987 28.6171 13.6538 28.5904 10.7361C28.5817 8.83502 27.7967 7.01518 26.4081 5.67691C25.0194 4.33865 23.1409 3.59158 21.1858 3.60007C18.185 3.60019 15.4809 5.36137 14.3388 8.05962C13.1966 10.7579 13.8423 13.8596 15.9736 15.9136C18.105 17.9677 21.3005 18.5678 24.0652 17.4332ZM34.3368 9.26737L39.8862 3.88743H49.6879V11.4864C49.6879 13.6575 50.2297 14.344 51.4118 14.344C52.4637 14.3545 53.4256 13.7684 53.8745 12.8434V3.88743H58.8V17.6326H57.7L55.5163 15.7967C54.2976 17.08 52.5998 17.8335 50.8043 17.888C46.552 17.888 44.9102 15.3976 44.9102 12.6837V4.54196L38.819 10.4487L46.1744 17.6326H40.1325L34.3368 12.0292V17.6326H29.5263V3.87146H34.3368V9.26737Z",fill:e.color}})])},[],0,0,null).exports;const AS=CC(Xn.extend({name:"FireTVLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"34",height:"18",viewBox:"0 0 34 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.32151 0H3.70188C3.9993 0.0183388 4.29435 0.064387 4.58321 0.137547C4.64148 0.144028 4.69749 0.163775 4.74694 0.195272C4.7964 0.226769 4.83798 0.26918 4.86849 0.319246C4.90118 0.432807 4.91438 0.551084 4.90755 0.669057C4.91533 0.801354 4.90793 0.934106 4.88547 1.06472C4.87584 1.10208 4.85378 1.13505 4.82292 1.1582C4.79205 1.18135 4.75422 1.19329 4.71566 1.19207C4.52154 1.18005 4.32823 1.15738 4.1366 1.12415C3.88652 1.09868 3.63419 1.10611 3.38604 1.14623C3.18961 1.17307 3.00909 1.26875 2.8766 1.41623C2.74714 1.6037 2.67946 1.82692 2.68302 2.05472V3.41321H4.55094C4.60114 3.40777 4.65185 3.41688 4.69701 3.43946C4.74218 3.46204 4.77989 3.49714 4.80566 3.54057C4.8394 3.67592 4.8503 3.81596 4.83792 3.9549C4.8492 4.09368 4.83947 4.23337 4.80906 4.36924C4.78409 4.41449 4.74619 4.45126 4.70021 4.47485C4.65423 4.49844 4.60226 4.50779 4.55094 4.50169H2.67453V10.1462C2.67965 10.2248 2.65612 10.3027 2.6083 10.3653C2.5823 10.3898 2.55157 10.4088 2.518 10.421C2.48442 10.4333 2.4487 10.4386 2.41302 10.4366H1.56396C1.52529 10.4392 1.48652 10.4333 1.45041 10.4192C1.41431 10.4051 1.38176 10.3832
6791.3551 10.3551C1.31058 10.2861 1.29027 10.2043 1.29736 10.1225V4.50509H0.312452C0.227491 4.51292 0.14254 4.49003 0.0730176 4.44057C0.0314872 4.3984 0.00570927 4.34324 0 4.28434V3.80547C0.00368748 3.77168 0.0145285 3.73905 0.0318033 3.70977C0.0490782 3.68049 0.0723902 3.65523 0.100188 3.63566C0.1796 3.59543 0.266146 3.57119 0.354905 3.56434L1.29736 3.44717V2.41811C1.2862 2.04117 1.33374 1.66478 1.4383 1.30245C1.54669 0.92774 1.77745 0.600131 2.09377 0.371887C2.46057 0.13639 2.88568 0.0076226 3.32151 0ZM6.45112 0.53152C6.6849 0.479988 6.92916 0.507459 7.14565 0.609631C7.24276 0.661157 7.32725 0.733569 7.39302 0.821657C7.45879 0.909745 7.50422 1.01132 7.52603 1.11907C7.57678 1.34023 7.55042 1.5721 7.45131 1.77623C7.39592 1.87734 7.31818 1.96447 7.22401 2.03098C7.12984 2.09748 7.02173 2.14162 6.90792 2.16001C6.70462 2.19793 6.49492 2.18153 6.29999 2.11246C6.1853 2.06588 6.08397 1.99152 6.00513 1.89607C5.92629 1.80063 5.8724 1.6871 5.8483 1.56567C5.79825 1.34195 5.82767 1.10779 5.9315 0.903407C5.9856 0.807152 6.06018 0.723953 6.14997 0.659692C6.23976 0.595431 6.34256 0.551677 6.45112 0.53152ZM22.9153 1.53912C22.8751 1.58336 22.8514 1.64011 22.8481 1.6998C22.8317 1.85119 22.8156 2.00268 22.7994 2.15429L22.7993 2.15603L22.7991 2.15757L22.7989 2.15907C22.7533 2.58751 22.7075 3.01688 22.6562 3.44716L21.7698 3.55585C21.663 3.56099 21.5579 3.58455 21.4591 3.62547C21.4279 3.64248 21.4015 3.66685 21.3819 3.69645C21.3624 3.72605 21.3504 3.75998 21.347 3.79528C21.3407 3.9084 21.3407 4.02178 21.347 4.1349C21.3346 4.23266 21.3549 4.33177 21.4047 4.41679C21.4357 4.44764 21.473 4.47137 21.514 4.48633C21.5551 4.50128 21.5989 4.50711 21.6425 4.50339H22.6291V7.86905C22.6291 7.97094 22.6274 8.07283 22.6257 8.17471C22.6223 8.37849 22.6189 8.58226 22.6291 8.78603C22.6379 9.15743 22.7457 9.51973 22.9415 9.83547C23.1122 10.0872 23.3574 10.279 23.6428 10.384C23.9478 10.4928 24.27 10.5457 24.5938 10.5402C24.9518 10.5421 25.3089 10.5039 25.6585 10.4264C25.8116 10.4084 25.9552 10.3431 26.0694 10.2396C26.1314 10.0905 26.153 9.92769 26.1323 9.76755C26.1454 9.63908 26.1333 9.50929 26.0966 9.38547C26.0392 9.29386 25.9192 9.31157 25.8238 9.32566L25.7977 9.32943C25.4156 9.42242 25.0195 9.4443 24.6294 9.39396C24.4425 9.37187 24.2715 9.27811 24.1523 9.13244C24.0344 8.93333 23.9816 8.70243 24.0011 8.47188V4.50339H25.7723C25.8189 4.50861 25.866 4.50254 25.9097 4.48569C25.9535 4.46884 25.9925 4.44171 26.0236 4.4066C26.0675 4.32324 26.0841 4.22821 26.0711 4.1349C26.0711 4.07839 26.0723 4.02189 26.0734 3.96538L26.0734 3.96509C26.0757 3.85188 26.0779 3.73868 26.0711 3.62547C26.0615 3.56294 26.0279 3.5066 25.9776 3.46829C25.9272 3.42997 25.864 3.41266 25.8011 3.41999H24.0011V1.74735C24.0057 1.67064 23.9828 1.59482 23.9366 1.53339C23.9086 1.50597 23.8749 1.48494 23.838 1.47175C23.8011 1.45855 23.7617 1.45352 23.7226 1.45698H23.0689C23.0098 1.46587 22.9555 1.49489 22.9153 1.53912ZM15.2219 3.49981C15.7178 3.29056 16.253 3.19093 16.7909 3.20774C17.2011 3.2069 17.6077 3.28293 17.9898 3.43189C18.3884 3.59117 18.7314 3.86396 18.9764 4.21641C19.2144 4.57287 19.3661 4.97984 19.4196 5.40509C19.4858 5.91289 19.479 6.42755 19.3992 6.9334C19.3928 7.01936 19.3635 7.10204 19.3143 7.17283C19.2469 7.22251 19.1634 7.2455 19.08 7.23736H14.7498C14.7361 7.77423 14.8744 8.30405 15.1489 8.76566C15.3591 9.07084 15.665 9.29729 16.0183 9.40924C16.5443 9.56309 17.0966 9.60588 17.64 9.5349C18.0698 9.48331 18.4931 9.38772 18.9034 9.24962C18.9988 9.20486 19.1067 9.19407 19.2091 9.21906C19.244 9.24461 19.2715 9.27899 19.2888 9.31867C19.3061 9.35835 19.3126 9.40191 19.3075 9.44491V9.91019C19.3094 9.96922 19.2945 10.0276 19.2644 10.0784C19.2343 10.1292 19.1904 10.1704 19.1377 10.1972C18.8552 10.3379 18.5555 10.4413 18.2462 10.5045C17.8145 10.6039 17.3732 10.6562 16.9302 10.6608C16.5017 10.6702 16.0738 10.6216 15.6583 10.5164C15.2654 10.416 14.8976 10.235 14.5783 9.98491C14.3164 9.77544 14.0964 9.5185 13.9296 9.22754C13.6878 8.78874 13.5332 8.30722 13.4745 7.80962C13.4188 7.3801 13.4046 6.94621 13.4321 6.51396C13.4547 5.99239 13.5697 5.47896 13.7717 4.99755C14.0517 4.33509 14.5688 3.80098 15.2219 3.49981ZM16.0896 4.3183C15.706 4.40619 15.3695 4.63537 15.1472 4.96019C14.895 5.36945 14.7556 5.83813 14.743 6.31868H18.1868C18.2191 5.86019 18.2089 5.37113 17.9898 4.96019C17.9097 4.80817 17.7989 4.67444 17.6645 4.56745C17.53 4.46047 17.3748 4.38257 17.2087 4.33868C16.843 4.23995 16.4586 4.23296 16.0896 4.3183ZM12.6781 3.36397C12.3055 3.34737 11.9342 3.4171 11.593 3.56774C11.1607 3.78432 10.7744 4.08243 10.4553 4.44566L10.3636 3.70868C10.3581 3.62847 10.3278 3.55193 10.277 3.48962C10.2019 3.43203 10.108 3.40476 10.0138 3.41321H9.4568C9.37453 3.40593 9.29243 3.42886 9.22585 3.47774C9.1952 3.51164 9.17245 3.55192 9.15923 3.59567C9.14602 3.63942 9.14267 3.68556 9.14944 3.73076V10.1938C9.14658 10.2543 9.16727 10.3136 9.20716 10.3591C9.24705 10.4047 9.30305 10.4331 9.3634 10.4383H10.2379C10.2751 10.4424 10.3126 10.4391 10.3485 10.4286C10.3843 10.4181 10.4177 10.4006 10.4468 10.3772C10.4739 10.3503 10.4947 10.3178 10.5079 10.282C10.5211 10.2463 10.5264 10.208 10.5232 10.17V5.29302C10.5197 5.2576 10.5481 5.23778 10.5755 5.21871C10.5875 5.21036 10.5993 5.20215 10.6081 5.19283C11.1727 4.75972 11.8768 4.54938 12.5864 4.60189C12.6178 4.60424 12.6491 4.60697 12.6803 4.60969L12.6803 4.60969L12.6803 4.6097L12.6804 4.6097L12.6804 4.6097C12.7622 4.61685 12.8437 4.62396 12.926 4.6239
6796C12.9614 4.62588 12.9967 4.62037 13.0297 4.60779C13.0628 4.59522 13.0928 4.57585 13.1179 4.55095C13.1554 4.50263 13.1736 4.4421 13.1689 4.38113V3.59661C13.1693 3.55083 13.1547 3.50617 13.1274 3.4694C13.1002 3.43263 13.0617 3.40575 13.0177 3.39283C12.9062 3.36925 12.7921 3.35956 12.6781 3.36397ZM6.15566 3.4319C6.21129 3.41888 6.26837 3.41317 6.32547 3.41491H7.06245C7.14436 3.40853 7.22581 3.43206 7.2917 3.48114C7.33886 3.53108 7.36447 3.59757 7.36302 3.66624V10.1955C7.36633 10.2554 7.34621 10.3142 7.30691 10.3595C7.26761 10.4049 7.21221 10.4331 7.15245 10.4383H6.25755C6.21325 10.4427 6.16859 10.4351 6.12825 10.4163C6.08791 10.3974 6.05339 10.3681 6.0283 10.3313C5.99196 10.2451 5.9785 10.1509 5.98924 10.0579V3.82076C5.97948 3.72613 5.9905 3.63051 6.02151 3.54058C6.03474 3.51388 6.05357 3.49035 6.07672 3.4716C6.09988 3.45284 6.1268 3.4393 6.15566 3.4319ZM26.8907 3.4416C26.8553 3.46283 26.828 3.49528 26.8132 3.53378C26.8073 3.67189 26.8383 3.80907 26.9032 3.93114L29.233 9.77605C29.2983 9.95916 29.3755 10.1378 29.464 10.3109C29.497 10.3559 29.5411 10.3915 29.592 10.4144C29.6429 10.4373 29.6988 10.4467 29.7543 10.4417H30.5151C30.6302 10.455 30.7464 10.4286 30.8445 10.367C30.9289 10.2546 30.9928 10.1281 31.033 9.9934L33.2219 4.48133C33.2571 4.38874 33.2942 4.29654 33.3314 4.20421L33.3315 4.20386L33.3317 4.20348L33.3317 4.20336C33.4056 4.01993 33.4796 3.83599 33.5394 3.64755V3.53548C33.5021 3.41152 33.356 3.41152 33.249 3.41152C33.1463 3.41454 33.0431 3.41304 32.9399 3.41155C32.7531 3.40884 32.5662 3.40613 32.3813 3.43019C32.2329 3.45118 32.1745 3.59653 32.1243 3.72144C32.1176 3.73804 32.1111 3.75428 32.1045 3.76982C31.4717 5.57434 30.8377 7.37831 30.2026 9.18171L28.44 4.16548C28.4187 4.10787 28.3988 4.04934 28.3788 3.99068C28.338 3.87124 28.2971 3.75124 28.2447 3.63736L28.2364 3.62209C28.198 3.55103 28.1557 3.47263 28.0749 3.44888C27.93 3.41749 27.7813 3.40663 27.6334 3.41661H27.0085C26.9675 3.41158 26.9261 3.42038 26.8907 3.4416ZM27.3226 12.077C27.8839 12.0389 28.4478 12.0852 28.9953 12.2145C29.1628 12.248 29.3199 12.3207 29.4538 12.4268C29.5341 12.5737 29.5712 12.7403 29.5608 12.9074C29.5471 13.4757 29.4445 14.0383 29.2568 14.5749C29.0129 15.3597 28.5856 16.075 28.0104 16.6619C27.9323 16.7409 27.847 16.8125 27.7557 16.8759C27.7196 16.9009 27.6775 16.9161 27.6338 16.92C27.59 16.9238 27.546 16.9162 27.506 16.8979C27.4749 16.8684 27.4543 16.8296 27.4472 16.7873C27.4402 16.745 27.4471 16.7016 27.467 16.6636C27.6368 16.2475 27.7981 15.8315 27.9424 15.407C28.1067 14.9604 28.2284 14.4993 28.3058 14.0298C28.3433 13.8363 28.3311 13.6365 28.2702 13.4491C28.2393 13.3909 28.1966 13.3399 28.1449 13.2993C28.0931 13.2586 28.0334 13.2292 27.9696 13.213C27.6933 13.1354 27.4075 13.0971 27.1206 13.0992C26.4094 13.1041 25.6992 13.1545 24.9945 13.2504C24.8958 13.2784 24.7905 13.2725 24.6957 13.2334C24.6653 13.2084 24.6452 13.1731 24.6393 13.1343C24.6333 13.0954 24.6419 13.0557 24.6634 13.0228C24.7405 12.9131 24.8438 12.8244 24.964 12.7647C25.6823 12.3465 26.4921 12.1104 27.3226 12.077ZM3.60424 12.5866C3.55335 12.5789 3.50138 12.5829 3.45227 12.5983C3.40313 12.6171 3.36255 12.6531 3.33816 12.6997C3.31376 12.7463 3.30724 12.8003 3.31981 12.8513C3.34977 12.9425 3.4096 13.0209 3.48962 13.0738C6.27382 15.5707 9.72858 17.1971 13.427 17.7521C14.2639 17.8774 15.1078 17.9511 15.9538 17.9728H16.8436C18.9645 17.9096 21.0623 17.5136 23.0604 16.7994C24.4702 16.3069 25.8026 15.6156 27.017 14.7464C27.0745 14.7105 27.1242 14.6634 27.1633 14.608C27.2024 14.5526 27.23 14.49 27.2445 14.4238C27.2539 14.3534 27.2417 14.2818 27.2096 14.2184C27.1775 14.155 27.1269 14.1029 27.0645 14.0689C26.9982 14.0323 26.9244 14.0114 26.8487 14.0078C26.773 14.0043 26.6976 14.0182 26.6281 14.0485C24.8817 14.7858 23.0594 15.3285 21.1942 15.6668C19.9092 15.9022 18.608 16.0384 17.3021 16.0743C13.564 16.1556 9.85143 15.4413 6.41038 13.9789C5.49585 13.5881 4.60608 13.1418 3.74604 12.6425C3.70362 12.6133 3.65513 12.5942 3.60424 12.5866Z",fill:e.color}})])},[],0,0,null).exports;const PS=CC(Xn.extend({name:"FireTabletLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.93862 0.737915H4.31817C4.61494 0.756214 4.90936 0.802
679163 5.19759 0.875165C5.25574 0.881633 5.31163 0.901337 5.36098 0.932766C5.41032 0.964195 5.45182 1.00651 5.48226 1.05647C5.51488 1.16979 5.52805 1.28781 5.52123 1.40553C5.529 1.53754 5.52161 1.67001 5.49921 1.80033C5.4896 1.83762 5.46758 1.87052 5.43679 1.89362C5.40599 1.91671 5.36824 1.92864 5.32976 1.92742C5.13606 1.91542 4.94317 1.8928 4.75195 1.85964C4.50241 1.83423 4.25062 1.84164 4.00301 1.88167C3.80701 1.90845 3.62687 2.00393 3.49467 2.15109C3.36549 2.33815 3.29795 2.5609 3.3015 2.7882V4.14376H5.1654C5.21549 4.13834 5.26609 4.14743 5.31115 4.16996C5.35622 4.19249 5.39385 4.22752 5.41957 4.27085C5.45323 4.40591 5.46411 4.54564 5.45176 4.68429C5.46301 4.82277 5.4533 4.96216 5.42296 5.09774C5.39804 5.14288 5.36022 5.17957 5.31434 5.20312C5.26847 5.22666 5.2166 5.23599 5.1654 5.2299H3.29303V10.8623C3.29814 10.9407 3.27466 11.0184 3.22694 11.0808C3.201 11.1053 3.17034 11.1243 3.13684 11.1365C3.10334 11.1487 3.06769 11.154 3.03208 11.152H2.18486C2.14627 11.1546 2.10758 11.1487 2.07155 11.1346C2.03553 11.1206 2.00305 11.0987 1.97644 11.0707C1.93202 11.0018 1.91176 10.9202 1.91883 10.8385V5.2333H0.936046C0.851268 5.24111 0.7665 5.21826 0.697128 5.16891C0.655687 5.12683 0.629965 5.07179 0.624268 5.01301V4.53518C0.627947 4.50146 0.638765 4.46891 0.656002 4.43969C0.67324 4.41047 0.696502 4.38527 0.72424 4.36574C0.80348 4.32559 0.88984 4.30141 0.978408 4.29457L1.91883 4.17765V3.15081C1.90769 2.77468 1.95514 2.3991 2.05947 2.03756C2.16762 1.66365 2.39788 1.33675 2.71353 1.109C3.07954 0.874011 3.50373 0.745521 3.93862 0.737915ZM7.0615 1.26831C7.29477 1.21689 7.53851 1.2443 7.75453 1.34625C7.85143 1.39767 7.93574 1.46992 8.00137 1.55782C8.067 1.64572 8.11233 1.74707 8.13409 1.85459C8.18474 2.07528 8.15843 2.30665 8.05954 2.51034C8.00427 2.61123 7.92669 2.69817 7.83272 2.76453C7.73875 2.8309 7.63088 2.87493 7.51731 2.89329C7.31445 2.93112 7.10521 2.91476 6.9107 2.84584C6.79625 2.79935 6.69515 2.72516 6.61647 2.62992C6.5378 2.53468 6.48402 2.42139 6.45997 2.30023C6.41003 2.07699 6.43939 1.84334 6.543 1.63939C6.59698 1.54335 6.6714 1.46033 6.761 1.3962C6.85059 1.33208 6.95318 1.28842 7.0615 1.26831ZM17.379 3.93879C16.8422 3.92202 16.3082 4.02144 15.8134 4.23024C15.1617 4.53076 14.6456 5.06372 14.3663 5.72475C14.1648 6.20512 14.05 6.71744 14.0274 7.23789C14 7.66921 14.0142 8.10216 14.0698 8.53076C14.1283 9.02729 14.2825 9.50776 14.5239 9.94562C14.6903 10.236 14.9098 10.4923 15.1712 10.7014C15.4897 10.9509 15.8567 11.1315 16.2488 11.2317C16.6635 11.3367 17.0904 11.3852 17.518 11.3757C17.96 11.3712 18.4003 11.319 18.8312 11.2199C19.1398 11.1567 19.4388 11.0536 19.7208 10.9132C19.7733 10.8865 19.8171 10.8453 19.8471 10.7946C19.8772 10.7439 19.8921 10.6857 19.8902 10.6268V10.1625C19.8952 10.1196 19.8888 10.0761 19.8715 10.0366C19.8543 9.99696 19.8268 9.96266 19.7919 9.93715C19.6898 9.91222 19.5821 9.92298 19.4869 9.96765C19.0776 10.1054 18.6551 10.2008 18.2263 10.2523C17.684 10.3231 17.1329 10.2804 16.6081 10.1269C16.2555 10.0152 15.9503 9.78926 15.7405 9.48474C15.4666 9.02412 15.3286 8.49544 15.3423 7.95973H19.6631C19.7464 7.96785 19.8297 7.94491 19.897 7.89534C19.9461 7.8247 19.9753 7.7422 19.9817 7.65642C20.0613 7.15166 20.0681 6.63811 20.002 6.13141C19.9487 5.70708 19.7973 5.30099 19.5598 4.9453C19.3153 4.5936 18.973 4.3214 18.5753 4.16246C18.194 4.01383 17.7883 3.93796 17.379 3.93879ZM15.7388 5.68747C15.9606 5.36335 16.2964 5.13467 16.6792 5.04697C17.0474 4.9618 17.431 4.96879 17.7959 5.0673C17.9616 5.11109 18.1165 5.18883 18.2507 5.29558C18.3848 5.40233 18.4954 5.53578 18.5753 5.68747C18.7939 6.09753 18.8041 6.58553 18.7719 7.04303H15.3355C15.348 6.56352 15.4872 6.09585 15.7388 5.68747ZM12.1923 4.29791C12.5327 4.1476 12.9033 4.07802 13.2751 4.09458C13.3888 4.09018 13.5026 4.09986 13.6139 4.12338C13.6578 4.13628 13.6962 4.1631 13.7234 4.19979C13.7506 4.23648 13.7651 4.28104 13.7647 4.32672V5.10956C13.7694 5.17039 13.7513 5.23079 13.7139 5.279C13.6889 5.30385 13.6589 5.32318 13.6259 5.33573C13.5929 5.34828 13.5577 5.35377 13.5224 5.35186C13.4403 5.35186 13.359 5.34476 13.2773 5.33763L13.2773 5.33763C13.2461 5.33491 13.2149 5.33218 13.1835 5.32984C12.4755 5.27744 11.7728 5.48732 11.2095 5.9195C11.2007 5.9288 11.189 5.93699 11.177 5.94533C11.1497 5.96435 11.1213 5.98413 11.1248 6.01948V10.886C11.1279 10.9239 11.1227 10.962 11.1096 10.9977C11.0964 11.0335 11.0756 11.0659 11.0485 11.0927C11.0195 11.1161 10.9862 11.1335 10.9504 11.144C10.9147 11.1544 10.8772 11.1577 10.8401 11.1537H9.96748C9.90726 11.1485 9.85138 11.1202 9.81157 11.0747C9.77177 11.0292 9.75113 10.97 9.75398 10.9097V4.46058C9.74723 4.41548 9.75057 4.36944 9.76375 4.32578C9.77694 4.28213 9.79964 4.24193 9.83023 4.20811C9.89666 4.15934 9.97859 4.13645 10.0607 4.14372H10.6165C10.7105 4.13529 10.8042 4.1625 10.8791 4.21997C10.9298 4.28214 10.96 4.35851 10.9655 4.43855L11.057 5.17395C11.3754 4.8115 11.7609 4.51403 12.1923 4.29791ZM6.93614 4.14552C6.87916 4.14378 6.8222 4.14948 6.76669 4.16247C6.73789 4.16985 6.71103 4.18337 6.68793 4.20208C6.66483 4.2208 6.64603 4.24428 6.63283 4.27091C6.
67960188 4.36066 6.5909 4.45607 6.60064 4.5505V10.7742C6.58992 10.867 6.60334 10.961 6.63961 11.047C6.66464 11.0837 6.69909 11.113 6.73934 11.1318C6.77959 11.1506 6.82416 11.1582 6.86836 11.1538H7.76134C7.82097 11.1486 7.87624 11.1204 7.91546 11.0752C7.95467 11.0299 7.97475 10.9712 7.97145 10.9115V4.3963C7.9729 4.32778 7.94734 4.26144 7.90028 4.21161C7.83454 4.16264 7.75326 4.13916 7.67153 4.14552H6.93614ZM18.6298 13.6221C19.0446 13.5939 19.4614 13.6282 19.8661 13.7237C19.9899 13.7485 20.106 13.8022 20.205 13.8806C20.2643 13.9892 20.2918 14.1123 20.284 14.2358C20.2739 14.6559 20.1981 15.0718 20.0594 15.4684C19.8791 16.0484 19.5633 16.5772 19.1381 17.0109C19.0804 17.0693 19.0173 17.1223 18.9498 17.1691C18.9231 17.1876 18.8921 17.1988 18.8597 17.2017C18.8274 17.2045 18.7949 17.1989 18.7653 17.1854C18.7423 17.1636 18.7271 17.1349 18.7218 17.1036C18.7166 17.0724 18.7218 17.0402 18.7365 17.0122C18.862 16.7047 18.9812 16.3972 19.0879 16.0834C19.2093 15.7533 19.2993 15.4125 19.3565 15.0655C19.3842 14.9225 19.3751 14.7748 19.3301 14.6362C19.3073 14.5933 19.2758 14.5555 19.2375 14.5255C19.1992 14.4954 19.1551 14.4737 19.108 14.4617C18.9038 14.4044 18.6925 14.3761 18.4804 14.3777C17.9548 14.3812 17.4299 14.4185 16.909 14.4894C16.836 14.5101 16.7582 14.5057 16.6881 14.4768C16.6657 14.4584 16.6508 14.4323 16.6464 14.4035C16.642 14.3748 16.6484 14.3455 16.6642 14.3212C16.7213 14.2401 16.7976 14.1745 16.8864 14.1304C17.4174 13.8213 18.0159 13.6467 18.6298 13.6221ZM1.09879 13.9987C1.06117 13.9931 1.02276 13.996 0.986461 14.0074C0.950144 14.0213 0.92015 14.0479 0.90212 14.0824C0.88409 14.1168 0.879267 14.1567 0.888561 14.1944C0.9107 14.2618 0.954922 14.3197 1.01407 14.3588C3.07196 16.2044 5.62547 17.4065 8.35908 17.8167C8.97769 17.9093 9.60141 17.9638 10.2267 17.9799H10.8844C12.452 17.9331 14.0026 17.6405 15.4794 17.1126C16.5215 16.7485 17.5062 16.2376 18.4039 15.5951C18.4463 15.5686 18.4831 15.5338 18.512 15.4929C18.5409 15.4519 18.5613 15.4056 18.572 15.3567C18.579 15.3046 18.57 15.2517 18.5462 15.2049C18.5225 15.158 18.4851 15.1195 18.439 15.0943C18.39 15.0673 18.3354 15.0518 18.2795 15.0492C18.2235 15.0466 18.1678 15.0569 18.1164 15.0793C16.8256 15.6243 15.4787 16.0254 14.1 16.2754C13.1502 16.4494 12.1885 16.5501 11.2233 16.5766C8.46038 16.6367 5.71627 16.1088 3.17289 15.0278C2.49694 14.739 1.83928 14.4091 1.2036 14.04C1.17224 14.0185 1.13641 14.0044 1.09879 13.9987Z",fill:e.color}})])},[],0,0,null).exports;const OS=CC(Xn.extend({name:"SamsungLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"115",height:"18",viewBox:"0 0 115 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110.369 5.93128C110.354 5.75493 110.343 5.58805 110.332 5.42795C110.31 5.09626 110.289 4.79369 110.237 4.49638C110.075 3.57617 109.347 3.04109 108.366 3.08015C107.456 3.11632 106.69 3.73053 106.678 4.60404C106.639 7.51596 106.638 10.4289 106.676 13.3408C106.687 14.1631 107.624 14.8325 108.529 14.8111C109.463 14.7891 110.284 14.0758 110.329 13.1695C110.359 12.5691 110.352 11.9669 110.345 11.3336V11.3335V11.3335V11.333V11.332V11.331V11.3301C110.342 11.044 110.339 10.7516 110.339 10.4501H108.622V8.04747H114.853C114.815 8.69335 114.79 9.34235 114.764 9.99244C114.704 11.5212 114.644 13.056 114.429 14.5703C114.219 16.0503 112.982 16.9047 111.537 17.3611C109.594 17.9748 107.629 17.9884 105.671 17.437C103.785 16.9058 102.446 15.7335 102.372 13.8102C102.247 10.5395 102.28 7.25649 102.421 3.98558C102.501 2.12479 103.79 0.975 105.586 0.436188C107.532 -0.147283 109.513 -0.146604 111.458 0.444169C114.082 1.24109 114.827 3.2413 114.672 5.44902C114.66 5.61849 114.39 5.90547 114.234 5.91006C113.253 5.93894 112.272 5.93602 111.281 5.93308C110.978 5.93218 110.674 5.93128 110.369 5.93128ZM49.1726 1.05486L49.554 17.9349H45.2854V3.10627C45.2036 3.09574 45.1219 3.08503 45.0403 3.07432C44.9919 3.30432 44.9421 3.53406 44.8924 3.7638C44.7831 4.26811 44.6739 4.77242 44.5792 5.27937C44.3606 6.44898 44.1434 7.61886 43.9261 8.78873L43.9259 8.79008L43.9257 8.79121L43.9255 8.79234L43.9253 8.79346L43.9252 8.79391L43.9246 8.79681C43.3952 11.6483 42.8
679657 14.4997 42.317 17.3474C42.2704 17.5889 41.9486 17.9505 41.741 17.9602C40.812 18.0031 39.8808 17.9979 38.9113 17.9925H38.9112H38.9112H38.9111H38.9111H38.9111H38.911C38.5809 17.9906 38.2463 17.9888 37.9059 17.9888L35.1348 3.17153L34.9203 3.1751V17.9436H30.5759L30.9484 1.0744H37.919L39.9796 13.7383L40.0676 13.7514L40.1329 13.761C40.8242 9.54212 41.5154 5.32322 42.2146 1.05486H49.1726ZM97.8273 17.9862H97.8263C96.2734 17.9893 94.7417 17.9922 93.2112 17.9545C93.0306 17.9501 92.7808 17.5494 92.6984 17.2913C91.6767 14.0886 90.6691 10.8816 89.6614 7.67457L89.658 7.66383L89.6542 7.65181L89.6509 7.64116L89.6476 7.63055L89.6446 7.6213C89.3838 6.79115 89.123 5.961 88.8619 5.13092C88.8139 4.97836 88.7634 4.82652 88.6967 4.62573L88.6964 4.62482L88.6959 4.62319C88.6598 4.51453 88.619 4.39154 88.5712 4.24639V17.9895C88.2748 17.9895 87.9772 17.9911 87.6788 17.9928H87.6784H87.6781H87.6777C86.7375 17.9979 85.7892 18.003 84.8435 17.958C84.6685 17.9496 84.3784 17.5161 84.3733 17.2745C84.3429 15.8539 84.3461 14.4328 84.3492 13.0115V13.0105C84.3502 12.5745 84.3512 12.1384 84.3512 11.7024C84.351 9.56864 84.3511 7.43489 84.3511 5.30114L84.3512 2.10051V1.05486H89.2318C90.881 1.05486 90.8811 1.0552 91.3498 2.60534L91.3509 2.6091C92.449 6.24007 93.5484 9.87069 94.6485 13.5011C94.6892 13.6355 94.7347 13.7684 94.7976 13.9519C94.8331 14.0555 94.8742 14.1753 94.923 14.3205V1.11852H99.108V17.9846C98.6804 17.9846 98.2546 17.9854 97.8305 17.9862H97.8295H97.8284H97.8273ZM73.0662 1.05486H68.6378C68.62 1.08802 68.6025 1.11537 68.5874 1.13901L68.5874 1.13905C68.5606 1.18086 68.5413 1.21104 68.5414 1.24116C68.543 2.42182 68.54 3.60258 68.5369 4.78334C68.5289 7.90321 68.5209 11.0231 68.5992 14.1411C68.6414 15.8281 69.7573 17.085 71.5363 17.5335C72.8713 17.8699 74.3294 18.0747 75.6979 17.9673C79.878 17.6391 81.185 16.2204 81.1841 12.379C81.1836 9.95005 81.1837 7.52119 81.1838 5.0923L81.1839 1.95677V1.06197H76.6102V2.09278C76.6102 3.11902 76.6108 4.14523 76.6114 5.17143C76.6128 7.83994 76.6143 10.5083 76.6059 13.1768C76.6021 14.3393 75.904 15.0789 74.8572 15.0976C73.7535 15.1175 73.0667 14.3777 73.0664 13.1596C73.0653 10.4117 73.0656 7.66375 73.0659 4.91574L73.0662 1.99284V1.05486ZM4.27495 12.2136H7.13434e-05L3.4388e-05 12.6453L7.13434e-05 13.4295C0.000713434 15.6163 1.03015 17.0214 3.15161 17.631C4.96584 18.1523 6.79403 18.1047 8.59606 17.5557C9.76932 17.1985 10.7671 16.5325 11.1586 15.3528C11.9996 12.8176 11.7612 10.5472 9.30654 9.03507C8.9773 8.8322 8.6437 8.63622 8.31006 8.44021L8.30996 8.44015L8.30976 8.44004C8.09367 8.31309 7.87756 8.18613 7.66262 8.05729C7.37812 7.88667 7.09035 7.72046 6.80256 7.55423C6.10113 7.14909 5.3996 6.74389 4.74512 6.27482C4.11234 5.82125 4.03641 4.99503 4.42793 4.34191C4.82651 3.67738 5.44837 3.55021 6.16687 3.73819C6.93144 3.93838 7.23772 4.4591 7.22488 5.20614C7.22174 5.39415 7.22247 5.58216 7.22327 5.79174V5.79175V5.79184C7.22366 5.89346 7.22407 6.00016 7.22407 6.11439L8.13296 6.11468C8.95774 6.11507 9.74061 6.11545 10.5233 6.11265C10.6662 6.11211 10.8091 6.10065 10.9484 6.08947C11.0119 6.08438 11.0746 6.07935 11.1363 6.07543C11.5895 3.46786 10.54 1.7546 7.98752 1.25684C6.7287 1.01136 5.38063 1.01326 4.09613 1.13695C2.02635 1.33602 0.698024 2.50559 0.274886 4.21442C-0.257407 6.36462 0.314054 7.90731 2.12491 9.18315C2.45029 9.41247 2.78723 9.62817 3.13171 9.82835C3.45729 10.0176 3.7863 10.2016 4.11529 10.3856C4.73843 10.734 5.36147 11.0824 5.96092 11.4667C6.44329 11.7758 6.89372 12.1773 7.25168 12.6211C7.69521 13.1709 7.62073 14.0888 7.15954 14.6089C6.66834 15.1628 6.02898 15.2709 5.33199 15.0701C4.58316 14.8544 4.27286 14.3242 4.27479 13.5829C4.27566 13.2842 4.27543 12.9854 4.27519 12.6735L4.27495 12.2136ZM27.4129 17.9956L26.4363 17.9958C25.3997 17.9962 24.4169 17.9966 23.434 17.9927C23.3257 17.9923 23.2175 17.9758 23.0938 17.9569C23.0314 17.9474 22.965 17.9373 22.8927 17.9283C22.1504 12.8649 21.4111 7.82091 20.6718 2.7769L20.5224 2.77588L18.2457 17.947H13.7065L16.8051 1.05486H24.3151L27.4129 17.9956ZM56.9761 12.1672H52.7215C52.7215 12.3403 52.7203 12.5049 52.7191 12.6635C52.7167 12.9907 52.7145 13.2931 52.7234 13.5952C52.7846 15.659 53.886 17.0886 55.8812 17.6359C57.4396 18.0636 59.0215 18.1158 60.6053 17.7634C62.4222 17.3595 63.8078 16.4574 64.1593 14.5089C64.5249 12.4805 64.3594 10.5753 62.4076 9.32325C61.706 8.87326 60.9811 8.45941 60.2559 8.04547C59.7215 7.74036 59.1869 7.43522 58.6616 7.11553C58.1617 6.81131 57.6583 6.47498 57.2576 6.05806C56.752 5.53198 56.8172 4.85628 57.1607 4.27031C57.568 3.57486 58.2924 3.57534 58.9602 3.74134C59.6025 3.90091 59.91 4.40243 59.9002 5.07204C59.8971 5.28615 59.8979 5.50042 59.8987 5.72205C59.8991 5.82412 59.8994 5.92776 59.8994 6.03366H63.8904C64.0605 3.13531 63.1607 1.64295 60.707 1.22699C59.301 0.988754 57.7968 1.01027 56.381 1.21495C54.6139 1.47037 53.2871 2.48031 52.9282 4.3517C52.541 6.37176 53.0885 8.06944 54.9026 9.21504C55.4255 9.54537 55.9639 9.8518 56.5023 10.1582C57.0615 10.4765 57.6207 10.7947 58.1625 11.1397C58.7906 11.5396 59.3933 12.0058 59.9176 12.5303C60.3796 12.9922 60.3489 14.0235 59.9537 14.5549C59.4587 15.2208 58.7207 15.2111 58.0372 15.057C57.3332 14.8984 56.9987 14.3335 56.9787 13.618C56.9696 13.2941 56.9718 12.9699 56.974 12.6344C56.9751 12.4814 56.9761 12.326 56.9761 12.1672Z",fill:e.color}})])},[],0,0,null).exports;const LS=CC(Xn.extend({name:"ChromecastLogoSvg",props:{color:{type:String,required:!1,default:"#FFFFFF"},desc:{type:String,required:!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"129",height:"18",viewBox:"0 0 129 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("title",[e._v(e._s(e.desc))]),t("path",{attrs:{d:"M22.7647 11.4671C22.7133 10.099 23.2437 8.77031 24.2322 7.79131C25.2206 6.81231 26.5806 6.26867 27.9945 6.28731C29.9293 6.23158 31.6954 7.34743 32.4218 9.08439L30.7098 9.87431C30.2946 8.73468 29.1616 7.98938 27.9143 8.03549C26.9988 8.09471 26.1465 8.50853 25.55 9.18351C24.9535 9.85848 24.6631 10.7377 24.7443 11.6225C24.6134 13.4527 26.0258 15.0451 27.9143 15.1965C29.2035 15.2439 30.3875 14.5108 30.8836 13.3577L32.5957 14.057C31.8341 15.8012 30.0432 16.9126 28.0882 16.8541C26.636 16.8482 25.2487 16.271 24.2447 15.2551C23.2408 14.2392 22.7066 12.8719 22.7647 11.4671ZM35.8459 6.5722L35.7523 7.97074H35.8459C36.575 6.92686 37.7947 6.30484 39.0962 6.31321C41.7044 6.31321 42.9751 7.97074 42.9751 10.4182V16.4397H41.0758V10.6772C41.0758 8.67001 39.9924 7.97074 38.5478 7.97074C36.942 8.10804 35.7492 9.47068 35.8727 11.0268V16.4397H33.9466V2.11758H35.8459V6.5722ZM44.968 16.4397V6.5722H46.7737V8.13908H46.8674C47.4222 7.03697 48.5705 6.33092 49.8367 6.31321C50.3323 6.29258 50.8262 6.38114 51.2813 6.5722L50.559 8.32037C50.2415 8.20816 49.9071 8.14692 49.5692 8.13908C48.8127 8.16164 48.0986 8.48309 47.5933 9.02863C47.0879 9.57417 46.8353 10.2962 46.8941 11.0268V16.4397H44.968ZM61.7409 11.4671C61.8387 13.3395 60.8626 15.1116 59.2021 16.0762C57.5416 17.0407 55.4672 17.0407 53.8067 16.0762C52.1463 15.1116 51.1701 13.3395 51.2679 11.4671C51.1701 9.59473 52.1463 7.82262 53.8067 6.85804C55.4672 5.89345 57.5416 5.89345 59.2021 6.85804C60.8626 7.82262 61.8387 9.59473
67961.7409 11.4671ZM59.8416 11.4671C59.955 10.2414 59.3436 9.05877 58.2621 8.412C57.1807 7.76524 55.8148 7.76524 54.7333 8.412C53.6519 9.05877 53.0405 10.2414 53.1539 11.4671C53.0405 12.6928 53.6519 13.8754 54.7333 14.5222C55.8148 15.169 57.1807 15.169 58.2621 14.5222C59.3436 13.8754 59.955 12.6928 59.8416 11.4671ZM63.2657 6.5722H65.0313V7.97074H65.1249C65.8171 6.93402 67.0065 6.30947 68.2816 6.31321C69.6774 6.2111 70.985 6.98216 71.5318 8.22973C72.263 7.02483 73.6063 6.293 75.0496 6.31321C77.4839 6.31321 78.6476 7.97074 78.6476 10.4182V16.4397H76.7081V10.6772C76.7081 8.67001 75.8922 7.97074 74.4477 7.97074C72.8687 8.14074 71.7142 9.49349 71.8394 11.0268V16.4397H69.9401V10.6772C69.9401 8.67001 69.1242 7.97074 67.6797 7.97074C66.0846 8.12124 64.9072 9.47987 65.0313 11.0268V16.4397H63.1721V6.5722H63.2657ZM80.052 11.4671C79.9868 10.1418 80.4742 8.84672 81.4048 7.87272C82.3354 6.89873 83.6311 6.32748 85.0009 6.28731C87.9837 6.28731 89.9633 8.38512 89.9633 11.5318V11.8815H81.938C81.9272 12.7228 82.2649 13.5332 82.8756 14.1317C83.4863 14.7303 84.3192 15.0671 85.1882 15.067C86.3904 15.1213 87.5025 14.4516 87.9837 13.3836L89.6957 14.0829C88.9396 15.7843 87.1802 16.8598 85.2684 16.7893C83.8373 16.7839 82.4707 16.2123 81.4856 15.2073C80.5006 14.2022 79.9826 12.851 80.052 11.4671ZM85.0009 7.97074C83.5844 7.99157 82.3803 8.97836 82.1252 10.3275H87.9837C87.8086 8.89173 86.489 7.84902 85.0009 7.97074ZM91.0467 11.4671C90.9953 10.099 91.5257 8.77031 92.5142 7.79131C93.5026 6.81231 94.8626 6.26867 96.2765 6.28731C98.2134 6.22392 99.9838 7.34237 100.704 9.08439L98.9917 9.78367C98.6001 8.61839 97.4614 7.84298 96.1962 7.88009C95.2817 7.93915 94.4307 8.35342 93.8363 9.02886C93.2419 9.7043 92.9546 10.5836 93.0396 11.4671C92.8856 13.3048 94.2983 14.9159 96.1962 15.067C97.4833 15.1203 98.6683 14.3917 99.1656 13.2412L100.878 13.9404C100.115 15.6821 98.3229 16.7889 96.3701 16.7246C94.9378 16.7682 93.5507 16.2365 92.5374 15.2555C91.5241 14.2744 90.9749 12.9315 91.0199 11.5448L91.0467 11.4671ZM101.881 13.4743C101.881 11.2858 103.954 10.0686 106.295 10.0686C107.227 10.0298 108.153 10.2404 108.97 10.6772V10.3275C108.965 9.66253 108.673 9.02974 108.165 8.58215C107.657 8.13456 106.979 7.91289 106.295 7.97074C105.298 7.94921 104.381 8.49698 103.954 9.36928L102.242 8.67001C103.21 6.90945 105.27 5.98682 107.283 6.41155C109.296 6.83628 110.772 8.50482 110.896 10.4959V16.4397H109.09V15.067H108.997C108.254 16.1362 106.996 16.7618 105.666 16.7246C104.714 16.8186 103.765 16.5243 103.046 15.9123C102.328 15.3004 101.906 14.4262 101.881 13.5002V13.4743ZM108.997 12.1793C108.275 11.7247 107.422 11.5067 106.562 11.5577C104.583 11.5577 103.767 12.6067 103.767 13.4872C103.767 14.3678 104.85 15.067 105.84 15.067C107.536 15.1033 108.946 13.8084 108.997 12.1664V12.1793ZM112.073 13.9275L113.785 13.2282C114.194 14.3191 115.262 15.0478 116.46 15.0541C117.664 15.067 118.533 14.5232 118.533 13.6426C118.533 13.1246 118.252 12.5937 117.196 12.3477L115.123 11.9074C114.226 11.6484 112.447 10.9491 112.447 9.20094C112.447 7.45276 114.347 6.32616 116.46 6.32616C118.059 6.29388 119.526 7.18432 120.192 8.59231L118.533 9.27864C118.123 8.40325 117.18 7.88117 116.193 7.98369C115.109 7.98369 114.213 8.42397 114.213 9.20094C114.213 9.97791 114.748 10.1721 115.551 10.3405L117.53 10.7808C119.087 10.9039 120.303 12.132 120.366 13.6426C120.366 15.3908 118.747 16.6987 116.353 16.6987C114.447 16.7587 112.711 15.6403 112.033 13.9145L112.073 13.9275ZM122.894 13.3966V8.21678H121.088V6.5722H122.894V3.60677H124.793V6.5722H127.227V8.22973H124.793V13.2153C124.793 14.3419 125.234 14.7822 126.131 14.7822C126.442 14.8193 126.757 14.7556 127.027 14.6009L127.655 16.1807C127.169 16.362 126.651 16.45 126.131 16.4397C125.254 16.5625 124.368 16.2834 123.734 15.6846C123.099 15.0857 122.789 14.2353 122.894 13.3836V13.3966ZM17.6894 5.5941H11.3628C12.5834 6.35351 13.3236 7.65987 13.329 9.06456C13.3153 9.36945 13.275 9.67268 13.2087 9.97102C13.1382 10.4274 12.9794 10.8667 12.7405 11.266L8.72786 17.9997H9.08899C11.5483 18.0169 13.9129 17.0832 15.6582 15.4057C17.4035 13.7281 18.385 11.4456 18.385 9.06456C18.3982 7.87699 18.1568 6.69968 17.6761 5.60705L17.6894 5.5941ZM9.196 13.0659C8.04785 13.0357 6.95773 12.5708 6.15976 11.771C5.86692 11.5014 5.61073 11.1968 5.39736 10.8645L5.30373 10.7998L1.3847 4.32505C-0.262021 6.89477 -0.452175 10.0971 0.879529 12.8326C2.21123 15.5681 4.88351 17.4643 7.97883 17.8702L11.1889 12.548C10.5841 12.8893 9.8961 13.0681 9.196 13.0659ZM9.196 0.116475C6.26595 0.110129 3.50844 1.45699 1.77259 3.74233L4.92921 8.92212C4.95386 8.99798 4.95386 9.07934 4.92921 9.15521V8.98686C4.93555 7.01017 6.41824 5.32815 8.43359 5.
67901138C8.77391 4.92578 9.12571 4.89085 9.47688 4.90778H17.3417C15.7593 1.96385 12.6238 0.109624 9.196 0.0905762V0.116475ZM12.5265 9.06456C12.5265 10.8525 11.0294 12.3019 9.18262 12.3019C7.33585 12.3019 5.83875 10.8525 5.83875 9.06456C5.83875 7.26946 7.34184 5.81424 9.196 5.81424C10.0884 5.79987 10.9483 6.13856 11.5769 6.75203C12.2055 7.36551 12.5485 8.20069 12.5265 9.06456Z",fill:e.color}})])},[],0,0,null).exports,DS=""+new URL("logo_chromecast-CI1o2hJy.svg",import.meta.url).href,RS=""+new URL("logo_samsung-D8FC3WKu.svg",import.meta.url).href,MS=""+new URL("badge_appstore-hjD459mt.svg",import.meta.url).href,NS=""+new URL("badge_googleplay-bjLfc7y7.svg",import.meta.url).href,jS=""+new URL("badge_firetablet-DfuZ88Cq.svg",import.meta.url).href,US="https://apps.apple.com/app/apple-store/id1205614510?pt=118563515&ct=KWEB&mt=8",$S="https://play.google.com/store/apps/details?id=com.kanopy",BS="https://play.google.com/store/apps/details?id=com.kanopy.tvapp",FS="https://help.kanopy.com/hc/en-us/articles/235868727-Watching-Kanopy-with-Chromecast",qS="https://channelstore.roku.com/details/ce0521da8b84e9ad934530f7f12b5c16:a6be98dfb1c9504c7fe71de31829002c/kanopy",VS="https://www.amazon.com/Kanopy/dp/B07HKPNGVD",HS="https://www.amazon.com/Kanopy/dp/B075SJCV38",zS="https://help.kanopy.com/en-us
679/4148.htm",GS={iPhone:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2059.97%2012.35'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_iphone%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M15.47,1.93a.69.69,0,1,1,.69.69A.69.69,0,0,1,15.47,1.93Zm.23,2.29h.93v7.69H15.7Z'/%3e%3cpath%20class='cls-1'%20d='M22.85,1.61a3.1,3.1,0,0,1,3.3,3.23A3.1,3.1,0,0,1,22.84,8H20.17v3.88h-1V1.61ZM20.17,7.16h2.45a2.25,2.25,0,0,0,2.54-2.32,2.25,2.25,0,0,0-2.54-2.36H20.17Z'/%3e%3cpath%20class='cls-1'%20d='M28,1.16H29V5.61h.09a2.57,2.57,0,0,1,2.52-1.52,2.53,2.53,0,0,1,2.67,2.82v5h-.93V7.15c0-1.45-.7-2.21-2-2.21A2.25,2.25,0,0,0,29,7.34v4.57H28Z'/%3e%3cpath%20class='cls-1'%20d='M36.18,8.06c0-2.45,1.34-4,3.49-4s3.5,1.52,3.5,4-1.35,4-3.5,4S36.18,10.52,36.18,8.06Zm6,0c0-1.95-1-3.12-2.53-3.12s-2.53,1.17-2.53,3.12.94,3.13,2.53,3.13S42.2,10,42.2,8.06Z'/%3e%3cpath%20class='cls-1'%20d='M45.14,4.22H46V5.61h.09a2.73,2.73,0,0,1,5.18,1.3v5h-.94V7.15c0-1.46-.67-2.21-2-2.21a2.22,2.22,0,0,0-2.29,2.4v4.57h-.94Z'/%3e%3cpath%20class='cls-1'%20d='M59.85,10a3.07,3.07,0,0,1-3.18,2c-2.11,0-3.44-1.54-3.44-4s1.34-4,3.43-4S60,5.55,60,7.9v.41H54.19v0c.05,1.73,1,2.85,2.5,2.85A2.22,2.22,0,0,0,58.9,10ZM54.2,7.54H59a2.36,2.36,0,0,0-2.33-2.62A2.49,2.49,0,0,0,54.2,7.54Z'/%3e%3cpath%20class='cls-1'%20d='M5.55,1.07A2.67,2.67,0,0,1,7.49,0a2.61,2.61,0,0,1-.64,2A2.07,2.07,0,0,1,5,2.84a2.28,2.28,0,0,1,.53-1.77ZM5.12,3.54A11.25,11.25,0,0,1,7.32,3,2.77,2.77,0,0,1,9.74,4.2,2.69,2.69,0,0,0,8.4,6.54a2.74,2.74,0,0,0,1.66,2.51S8.9,12.33,7.33,12.33c-.72,0-1.28-.49-2-.49s-1.54.51-2,.51C1.81,12.35,0,9.24,0,6.75S1.53,3,3,3C3.91,3,4.63,3.54,5.12,3.54Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:58,url:US,accessibility_label:"Apple iPhone logo. Download on the App Store".localized(),component:CS},iPad:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2042.72%2012.35'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_ipad%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M15.69,1.81a.7.7,0,0,1,1.39,0,.7.7,0,1,1-1.39,0Zm.23,2.41h.93v7.69h-.93Z'/%3e%3cpath%20class='cls-1'%20d='M23.07,1.61a3.09,3.09,0,0,1,3.29,3.23A3.09,3.09,0,0,1,23.05,8H20.38v3.88h-1V1.61ZM20.38,7.16h2.45a2.24,2.24,0,0,0,2.54-2.32,2.24,2.24,0,0,0-2.54-2.36H20.38Z'/%3e%3cpath%20class='cls-1'%20d='M27.77,9.79c0-1.35,1-2.13,2.78-2.25L33,7.39V6.64c0-1.1-.66-1.71-1.91-1.71-1.06,0-1.82.45-2,1.19h-1c.18-1.22,1.37-2,3-2,1.8,0,2.82,1,2.82,2.55v5.27H33V10.59h-.08A2.74,2.74,0,0,1,30.37,12,2.32,2.32,0,0,1,27.77,9.79ZM33,9.05v-.9l-2.28.16c-1.3.1-1.93.58-1.93,1.46s.75,1.44,1.78,1.44A2.27,2.27,0,0,0,33,9.05Z'/%3e%3cpath%20class='cls-1'%20d='M35.85,8.07c0-2.38,1.31-4,3.26-4A2.74,2.74,0,0,1,41.7,5.72h.08V1.16h.94V11.91h-.9V10.38h-.09A2.79,2.79,0,0,1,39.11,12C37.14,12,35.85,10.46,35.85,8.07Zm1,0c0,1.92,1,3.13,2.5,3.13S41.8,10,41.8,8.06s-1-3.12-2.49-3.12S36.81,6.16,36.81,8.06Z'/%3e%3cpath%20class='cls-1'%20d='M5.55,1.07A2.67,2.67,0,0,1,7.49,0a2.61,2.61,0,0,1-.64,2A2.07,2.07,0,0,1,5,2.84a2.28,2.28,0,0,1,.53-1.77ZM5.12,3.54A11.25,11.25,0,0,1,7.32,3,2.77,2.77,0,0,1,9.74,4.2,2.69,2.69,0,0,0,8.4,6.54a2.74,2.74,0,0,0,1.66,2.51S8.9,12.33,7.33,12.33c-.72,0-1.28-.49-2-.49s-1.54.51-2,.51C1.81,12.35,0,9.24,0,6.75S1.53,3,3,3C3.91,3,4.63,3.54,5.12,3.54Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:42,url:US,accessibility_label:"Apple iPad logo. Download on the App Store".localized(),component:TS},AppleTV:{src:"data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2026%2013'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3eapple-tv-icon%3c/title%3e%3cpath%20class='cls-1'%20d='M15,1V3h2.53v.72H15v6a2.66,2.66,0,0,0,.3,1.39,1.09,1.09,0,0,0,1,.49,3.42,3.42,0,0,0,.59,0,3.38,3.38,0,0,0,.42-.09l.09.68a2.94,2.94,0,0,1-1.22.21,2.22,2.22,0,0,1-1-.21,1.59,1.59,0,0,1-.65-.58,2.36,2.36,0,0,1-.33-.89,5.8,5.8,0,0,1-.1-1.13V3.74h-1.5V3h1.5V1.35L15,1Zm4,2,2.09,5.67c.18.44.34.86.48,1.25L22,11.1h0L22.45,10c.15-.4.31-.82.49-1.26L25.05,3H26l-3.63,9.13h-.78L18.09,3Z'/%3e%3cpath%20class='cls-1'%20d='M5.55,1.07A2.67,2.67,0,0,1,7.49,0a2.62,2.62,0,0,1-.64,2A2.08,2.08,0,0,1,5,2.84a2.32,2.32,0,0,1,.54-1.77ZM5.12,3.54A11.05,11.05,0,0,1,7.32,3,2.75,2.75,0,0,1,9.73,4.2,2.68,2.68,0,0,0,8.4,6.54a2.74,2.74,0,0,0,1.66,2.51S8.9,12.32,7.33,12.32c-.72,0-1.28-.48-2-.48s-1.55.5-2,.5C1.81,12.34,0,9.24,0,6.74S1.53,3,3,3C3.91,3,4.63,3.54,5.12,3.54Z'/%3e%3c/svg%3e",width:26,url:US,accessibility_label:"Apple TV logo. Download on the App Store".localized(),component:SS},Android:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2054.89%2011.87'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_android%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M0,7.45A4.76,4.76,0,0,1,.31,5.71,4.4,4.4,0,0,1,1.18,4.3a4.12,4.12,0,0,1,1.35-.93A4.18,4.18,0,0,1,4.24,3a3.7,3.7,0,0,1,1.28.2,3.58,3.58,0,0,1,1.12.68V3.19H8.75V11.7H6.64V11a3.58,3.58,0,0,1-1.12.68,3.7,3.7,0,0,1-1.28.21,4.35,4.35,0,0,1-1.71-.34,4.15,4.15,0,0,1-1.35-.94A4.4,4.4,0,0,1,.31,9.18,4.67,4.67,0,0,1,0,7.45ZM4.51,9.88A3.38,3.38,0,0,0,5,9.83a2.57,2.57,0,0,0,.55-.19,2.43,2.43,0,0,0,.54-.34,2.87,2.87,0,0,0,.51-.53V6.12a2.8,2.8,0,0,0-.51-.52,2.92,2.92,0,0,0-.54-.35A2.08,2.08,0,0,0,5,5.07,2.53,2.53,0,0,0,4.51,5a2.39,2.39,0,0,0-.92.18,2.42,2.42,0,0,0-.74.52,2.12,2.12,0,0,0-.49.77,2.54,2.54,0,0,0-.18,1,2.49,2.49,0,0,0,.18,1A2.25,2.25,0,0,0,3.59,9.7a2.39,2.39,0,0,0,.92.18ZM14,5.13a1.78,1.78,0,0,0-1.87,1.73V11.7H10.05V6.92A4,4,0,0,1,14,3h.06a4,4,0,0,1,4,3.89V11.7H15.89V6.86A1.77,1.77,0,0,0,14,5.13m5,2.32a4.76,4.76,0,0,1,.32-1.74,4.08,4.08,0,0,1,.87-1.41,4,4,0,0,1,1.34-.93A4.18,4.18,0,0,1,23.24,3a3.8,3.8,0,0,1,1.29.2,3.43,3.43,0,0,1,1.11.68V.64h2.11V11.7H25.64V11a3.24,3.24,0,0,1-1.11.67,3.79,3.79,0,0,1-1.29.21,4.35,4.35,0,0,1-1.71-.34,4,4,0,0,1-1.34-.94,4.08,4.08,0,0,1-.87-1.41A4.67,4.67,0,0,1,19,7.45Zm4.52,2.43A3.26,3.26,0,0,0,24,9.83a2.4,2.4,0,0,0,.55-.19,2.48,2.48,0,0,0,.55-.34,3.2,3.2,0,0,0,.5-.53V6.12a3.12,3.12,0,0,0-.5-.52,3,3,0,0,0-.55-.35A2,2,0,0,0,24,5.07,2.44,2.44,0,0,0,23.52,5a2.32,2.32,0,0,0-.92.18,2.46,2.46,0,0,0-.75.52,2.26,2.26,0,0,0-.49.77,2.54,2.54,0,0,0-.18,1,2.49,2.49,0,0,0,.18,1,2.4,2.4,0,0,0,.49.78,2.27,2.27,0,0,0,.75.51,2.32,2.32,0,0,0,.92.18Zm14.12,0a2.21,2.21,0,0,0,.89-.18,1.94,1.94,0,0,0,.73-.5,2.2,2.2,0,0,0,.49-.77,2.76,2.76,0,0,0,0-2,2.38,2.38,0,0,0-.5-.77,2.46,2.46,0,0,0-.73-.51,2.27,2.27,0,0,0-1.77,0A2.39,2.39,0,0,0,36,5.7a2.53,2.53,0,0,0-.49.77,2.76,2.76,0,0,0,0,2A2.36,2.36,0,0,0,36,9.2a1.94,1.94,0,0,0,.73.5A2.26,2.26,0,0,0,37.64,9.88Zm0,2a4.56,4.56,0,0,1-3.16-1.26,4.49,4.49,0,0,1-1-1.41,4.41,4.41,0,0,1-.35-1.75,4.31,4.31,0,0,1,.35-1.73,4.63,4.63,0,0,1,1-1.41,4.5,4.5,0,0,1,1.43-.94A4.39,4.39,0,0,1,37.64,3a4.46,4.46,0,0,1,1.74.34,4.57,4.57,0,0,1,1.42.94,4.63,4.63,0,0,1,1,1.41,4.35,4.35,0,0,1,.35,1.73,4.41,4.41,0,0,1-.35,1.75,4.49,4.49,0,0,1-1,1.41,4.56,4.56,0,0,1-3.15,1.26Zm6.47-9.34a1.13,1.13,0,0,1-.48-.11,1.09,1.09,0,0,1-.4-.27,1.26,1.26,0,0,1-.28-.4,1.33,1.33,0,0,1-.1-.48A1.34,1.34,0,0,1,43,.78a1.42,1.42,0,0,1,.28-.41,1.41,1.41,0,0,1,.4-.27,1.12,1.12,0,0,1,.48-.1,1.16,1.16,0,0,1,.49.1,1.23,1.23,0,0,1,.4.27,1.42,1.42,0,0,1,.28.41,1.34,1.34,0,0,1,.1.49,1.29,1.29,0,0,1-.1.48,1.26,1.26,0,0,1-.28.4,1.09,1.09,0,0,1-.4.27,1.17,1.17,0,0,1-.49.11Zm-1,.66h2.11V11.7H43.06Zm3.08,4.26a4.76,4.76,0,0,1,.31-1.74,4.4,4.4,0,0,1,.87-1.41,4.08,4.08,0,0,1,1.34-.93A4.19,4.19,0,0,1,50.38,3a3.7,3.7,0,0,1,1.28.2,3.58,3.58,0,0,1,1.12.68V.64h2.11V11.7H52.78V11a3.37,3.37,0,0,1-1.12.67,3.7,3.7,0,0,1-1.28.21,4.36,4.36,0,0,1-1.72-.34,4.11,4.11,0,0,1-1.34-.94,4.4,4.4,0,0,1-.87-1.41A4.67,4.67,0,0,1,46.14,7.45Zm4.51,2.43a3.15,3.15,0,0,0,.52-.05,2.47,2.47,0,0,0,.56-.19,2.68,2.68,0,0,0,.54-.34,2.87,2.87,0,0,0,.51-.53V6.12a2.8,2.8,0,0,0-.51-.52,3.29,3.29,0,0,0-.54-.35,2,2,0,0,0-.56-.18,2.38,2.38,0,0,0-1.44.12,2.42,2.42,0,0,0-.74.52,2.28,2.28,0,0,0-.5.77,2.54,2.54,0,0,0-.18,1,2.49,2.49,0,0,0,.18,1,2.43,2.43,0,0,0,.5.78,2.23,2.23,0,0,0,.74.51,2.36,2.36,0,0,0,.92.18ZM33,5.1c-1.42,0-2,.73-2,1.76V11.7H28.81V6.92A3.76,3.76,0,0,1,33,3'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:45,url:$S,accessibility_label:"Android logo. Download on the Play Store".localized(),component:xS},AndroidTV:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2070.26%2012'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_androidtv%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cg%20id='layer1'%3e%3cg%20id='g33668'%3e%3cg%20id='g33674'%3e%3cpath%20id='path33676'%20class='cls-1'%20d='M4.55,9.94A2.42,2.42,0,0,1,2.17,7.47,2.43,2.43,0,0,1,4.55,5,2.35,2.35,0,0,1,6.67,6.16a.4.4,0,0,1,.06.21V8.55a.47.47,0,0,1,0,.17A2.45,2.45,0,0,1,4.55,9.94m4.32,1.88V3.15H6.73v.73A3.36,3.36,0,0,0,4.31,3,4.35,4.35,0,0,0,0,7.47,4.37,4.37,0,0,0,4.31,12a3.37,3.37,0,0,0,2.42-.92v.75Zm9.3,0V7.13a4.08,4.08,0,1,0-8.16,0v4.69h2.14V7.13a1.94,1.94,0,1,1,3.88,0v4.69Zm5.44-1.88a2.42,2.42,0,0,1-2.38-2.47,2.43,2.43,0,0,1,4.5-1.31.4.4,0,0,1,.06.21V8.56a.42.42,0,0,1,0,.16,2.45,2.45,0,0,1-2.14,1.22m4.32,1.88V.55H25.79V3.88A3.35,3.35,0,0,0,23.38,3a4.37,4.37,0,0,0-4.32,4.52A4.37,4.37,0,0,0,23.38,12a3.34,3.34,0,0,0,2.41-.92v.75Zm3.28,0V7.19a1.87,1.87,0,0,1,2.09-2.1V3c-2.76,0-4.23,1.46-4.23,4.21v4.63Zm6.77-2a2.36,2.36,0,1,1,2.36-2.36A2.36,2.36,0,0,1,38,9.83M38,12a4.51,4.51,0,1,0-4.53-4.52A4.52,4.52,0,0,0,38,12M44.55,2.5a1.25,1.25,0,0,0,1.24-1.25,1.24,1.24,0,1,0-2.48,0A1.25,1.25,0,0,0,44.55,2.5m1.07.65H43.48v8.67h2.14Zm5.52,6.79a2.47,2.47,0,1,1,2.12-3.78.4.4,0,0,1,.06.21v2.2a.66.66,0,0,1,0,.15,2.45,2.45,0,0,1-2.14,1.22m4.32,1.88V.55H53.32V3.88A3.36,3.36,0,0,0,50.9,3a4.35,4.35,0,0,0-4.31,4.49A4.38,4.38,0,0,0,50.9,12a3.38,3.38,0,0,0,2.42-.93v.75Z'/%3e%3c/g%3e%3cg%20id='g33678'%3e%3cpath%20id='path33680'%20class='cls-1'%20d='M66.74,11.82l3.52-8.68H68.49l-2.88,7.53h.6L63.33,3.15H61.51L65,11.82Zm-5.66.1V10.38H60.9a2,2,0,0,1-2.14-2V4.58H61V3.15H58.76V.81H57.19V8.35a3.37,3.37,0,0,0,3.71,3.57Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:60,url:BS,accessibility_label:"Android T
679V logo. Download on the Play Store".localized(),component:ES},Chromecast:{src:DS,width:84,url:FS,accessibility_label:"Chromecast logo. Watch Kanopy on Chromecast".localized(),component:LS},Roku:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2035.96%2011.16'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_roku%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M5.66,3.67A1.83,1.83,0,0,0,3.84,1.83H2.93V5.5h.91A1.83,1.83,0,0,0,5.66,3.67M9.78,11H6.46L3.82,7.33H2.93V11H0V0H4.2C6.62,0,8.59,1.65,8.59,3.67a3.54,3.54,0,0,1-1.91,3L9.78,11'/%3e%3cpath%20class='cls-1'%20d='M13.09,4.33c-.77,0-1.43,1-1.43,2.35S12.32,9,13.09,9s1.45-1,1.45-2.36-.66-2.35-1.45-2.35M17.6,6.68a4.51,4.51,0,1,1-4.51-4.47A4.49,4.49,0,0,1,17.6,6.68m6.88-4.29L21.1,5.76V2.38H18.17V11H21.1V7.49L24.63,11h3.68L23.83,6.5l3.71-3.7V7.9c0,1.7,1,3.26,3.59,3.26A4.08,4.08,0,0,0,34,9.85L35.33,11H36V2.39H33V8a1.64,1.64,0,0,1-1.5.94c-.72,0-1.05-.43-1.05-1.79V2.39Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:34,url:qS,accessibility_label:"Roku logo. Download on the Channel Store for Roku".localized(),component:IS},FireTV:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2036.53%2013'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_firetv%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M18.34,13a4.74,4.74,0,0,1-.75-.06,3.52,3.52,0,0,1-2.75-2,5.58,5.58,0,0,1,.09-5.21A3.19,3.19,0,0,1,17.82,4a4,4,0,0,1,.9.11A3,3,0,0,1,20.79,5.9a6.65,6.65,0,0,1,.47,2.83V8.8H15.79a3.26,3.26,0,0,0,.59,1.92,2.52,2.52,0,0,0,2,1h.12a4.09,4.09,0,0,0,1.88-.47l.23-.12.49,1-.05,0a4.32,4.32,0,0,1-1.18.54A5.32,5.32,0,0,1,18.34,13Zm1.39-5.37a2.84,2.84,0,0,0-.51-1.7,1.72,1.72,0,0,0-1.41-.73,1.76,1.76,0,0,0-1.06.36A2.3,2.3,0,0,0,15.86,7c0,.15,0,.3-.07.46s0,.09,0,.14Z'/%3e%3cpath%20class='cls-1'%20d='M1.12,12.81V5.42H0V4.2H1.12V3.45a11,11,0,0,1,0-1.29A2.29,2.29,0,0,1,3.6,0l.32,0a4.42,4.42,0,0,1,.71.13L5,.22,5,.24,4.7,1.46H4.64L4.42,1.4A2.56,2.56,0,0,0,4,1.31H3.73a1.51,1.51,0,0,0-.39,0,.91.91,0,0,0-.7.79,4.85,4.85,0,0,0-.07.73c0,.32,0,.64,0,1V4.2H4.75L4.3,5.42H2.57v7.39Z'/%3e%3cpath%20class='cls-1'%20d='M9.58,12.81V4.21h1.23l.16,1L11,5.13c.11-.12.22-.24.34-.35A2.73,2.73,0,0,1,13.25,4h.25a3,3,0,0,1,.5.1l.23.06.08,0-.53,1.37-.07,0a1.64,1.64,0,0,0-.7-.17,1.76,1.76,0,0,0-1,.39l-.65.53L11,6.51v6.3Z'/%3e%3crect%20class='cls-1'%20x='5.95'%20y='4.21'%20width='1.42'%20height='8.6'/%3e%3cpath%20class='cls-1'%20d='M6.64,2.43a.91.91,0,0,1-.93-.91A1,1,0,0,1,6,.81,1,1,0,0,1,6.62.52h0a.91.91,0,0,1,1,.92.93.93,0,0,1-.92,1Z'/%3e%3cg%20id='Ka0Vkh'%3e%3cpath%20class='cls-1'%20d='M36.53,4.25l-.27.69q-1.08,2.64-2.14,5.28l-1,2.55a.13.13,0,0,1-.09.07h-1.2L28.3,4.26l-.4,1.27H25.6v7.31H24V5.54H21.53V4.25H30a.29.29,0,0,0,0,.09l.67,1.74,1.63,4.33.09.24,0-.08c.15-.44.3-.88.47-1.31l1.92-5Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:36,url:VS,accessibility_label:"FireTV logo. Download on the Amazon App Store".localized(),style:{height:"18px"},component:AS},FireTablet:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2061.2%2013'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3elogo_firetablet%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M38.88,12.85H37.49V4.25h.86l1.55,0a2.36,2.36,0,0,1,1.86.88,2.13,2.13,0,0,1,.4,1.78,1.88,1.88,0,0,1-1,1.37,2.13,2.13,0,0,1,1.52,2.29,2.39,2.39,0,0,1-2.21,2.21,5.63,5.63,0,0,1-.77.05Zm-.27-.94.45,0,1.17,0a1.46,1.46,0,0,0,1-.44,1.48,1.48,0,0,0,.27-1.49A1.25,1.25,0,0,0,40.39,9a10.79,10.79,0,0,0-1.27-.05h-.51ZM38.73,8h.47a3.38,3.38,0,0,0,1-.11,1.19,1.19,0,0,0,.61-.4A1.43,1.43,0,0,0,41,6.23a1.05,1.05,0,0,0-.9-.94,8,8,0,0,0-1.09-.06h-.44V8Z'/%3e%3cpath%20class='cls-1'%20d='M35.17,12.84l-.84-2.24H31.06l-.83,2.24H29.05l3.26-8.62h.77l3.28,8.62ZM34,9.6,32.69,6.06,31.42,9.6Z'/%3e%3cpolygon%20class='cls-1'%20points='49.82%2012.83%2049.82%204.24%2054.09%204.24%2053.73%205.2%2050.94%205.2%2050.94%207.97%2053.69%207.97%2053.69%208.91%2050.95%208.91%2050.95%2011.89%2054.12%2011.89%2054.12%2012.83%2049.82%2012.83'/%3e%3cpolygon%20class='cls-1'%20points='25.9%2012.84%2025.9%205.21%2023.49
679%205.21%2023.49%204.25%2029.71%204.25%2029.37%205.2%2027.02%205.2%2027.02%2012.84%2025.9%2012.84'/%3e%3cpolygon%20class='cls-1'%20points='57.39%2012.84%2057.39%205.2%2054.97%205.2%2054.97%204.25%2061.2%204.25%2060.86%205.2%2058.5%205.2%2058.5%2012.84%2057.39%2012.84'/%3e%3cpath%20class='cls-1'%20d='M44.33,12.83V4.25h1.11v7.64h3.12V12s0,.06,0,.09v.72Z'/%3e%3cpath%20class='cls-1'%20d='M18.34,13a4.74,4.74,0,0,1-.75-.06,3.52,3.52,0,0,1-2.75-2,5.58,5.58,0,0,1,.09-5.21A3.19,3.19,0,0,1,17.82,4a4,4,0,0,1,.9.11A3,3,0,0,1,20.79,5.9a6.65,6.65,0,0,1,.47,2.83V8.8H15.79a3.26,3.26,0,0,0,.59,1.92,2.52,2.52,0,0,0,2,1h.12a4.09,4.09,0,0,0,1.88-.47l.23-.12.49,1-.05,0a4.32,4.32,0,0,1-1.18.54A5.32,5.32,0,0,1,18.34,13Zm1.39-5.37a2.84,2.84,0,0,0-.51-1.7,1.72,1.72,0,0,0-1.41-.73,1.76,1.76,0,0,0-1.06.36A2.3,2.3,0,0,0,15.86,7c0,.15,0,.3-.07.46s0,.09,0,.14Z'/%3e%3cpath%20class='cls-1'%20d='M1.12,12.81V5.42H0V4.2H1.12V3.45a11,11,0,0,1,0-1.29A2.29,2.29,0,0,1,3.6,0l.32,0a4.42,4.42,0,0,1,.71.13L5,.22,5,.24,4.7,1.46H4.64L4.42,1.4A2.56,2.56,0,0,0,4,1.31H3.73a1.51,1.51,0,0,0-.39,0,.91.91,0,0,0-.7.79,4.85,4.85,0,0,0-.07.73c0,.32,0,.64,0,1V4.2H4.75L4.3,5.42H2.57v7.39Z'/%3e%3cpath%20class='cls-1'%20d='M9.58,12.81V4.21h1.23l.16,1L11,5.13c.11-.12.22-.24.34-.35A2.73,2.73,0,0,1,13.25,4h.25a3,3,0,0,1,.5.1l.23.06.08,0-.53,1.37-.07,0a1.64,1.64,0,0,0-.7-.17,1.76,1.76,0,0,0-1,.39l-.65.53L11,6.51v6.3Z'/%3e%3crect%20class='cls-1'%20x='5.95'%20y='4.21'%20width='1.42'%20height='8.6'/%3e%3cpath%20class='cls-1'%20d='M6.64,2.43a.91.91,0,0,1-.93-.91A1,1,0,0,1,6,.81,1,1,0,0,1,6.62.52h0a.91.91,0,0,1,1,.92.93.93,0,0,1-.92,1Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:58,url:HS,accessibility_label:"Fire Tablet logo. Download on the Amazon App Store".localized(),style:{height:"18px"},component:PS},Samsung:{src:RS,width:58,url:zS,accessibility_label:"Samsung logo. Read how to get the Samsung app".localized(),component:OS},AppleStore:{src:MS,width:120,url:US,accessibility_label:"Apple App Store logo. Download on the App Store".localized()},GooglePlay:{src:NS,width:135,url:$S,accessibility_label:"Google Play Store logo. Download on the Google Play Store".localized()},RokuStore:{src:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20136%2040'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23653484;}.cls-2{fill:%23a5a3a3;}.cls-3{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3ebadge_roku%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='136'%20height='40'%20rx='5'%20ry='5'/%3e%3cpath%20class='cls-2'%20d='M131,.8A4.2,4.2,0,0,1,135.2,5V35a4.2,4.2,0,0,1-4.2,4.2H5A4.2,4.2,0,0,1,.8,35V5A4.2,4.2,0,0,1,5,.8H131m0-.8H5A5,5,0,0,0,0,5V35a5,5,0,0,0,5,5H131a5,5,0,0,0,5-5V5a5,5,0,0,0-5-5Z'/%3e%3cpath%20class='cls-3'%20d='M41.74,15.88A3.93,3.93,0,0,0,37.84,12H35.9v7.83h1.94a3.9,3.9,0,0,0,3.9-3.89M50.53,31.5h-7.1L37.8,23.68H35.9v7.81H29.65V8.05h9c5.16,0,9.38,3.51,9.38,7.83A7.62,7.62,0,0,1,44,22.31l6.62,9.19'/%3e%3cpath%20class='cls-3'%20d='M57.58,17.28c-1.65,0-3,2.24-3,5s1.4,5,3,5,3.1-2.25,3.1-5-1.41-5-3.1-5m9.63,5a9.61,9.61,0,1,1-9.66-9.55h0a9.59,9.59,0,0,1,9.63,9.53v0m14.68-9.17-7.21,7.21V13.11H68.43V31.49h6.25V24l7.53,7.45h7.87L80.52,22,88.44,14V25c0,3.62,2.17,7,7.65,7a8.62,8.62,0,0,0,6.15-2.8L105,31.49h1.33V13.14h-6.21V25a3.49,3.49,0,0,1-3.2,2c-1.54,0-2.25-.91-2.25-3.83v-10Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",width:114,url:qS,accessibility_label:"Roku store logo. Download on the Roku Channel Store".localized()},FireTabletStore:{src:jS,width:112,url:HS,accessibility_label:"Fire Tablet store logo. Download on the Amazon App Store".localized()}};const KS=CC(Xn.extend({name:"DeviceLogoRow",props:{logos:{type:Array,required:!1,default:()=>[]},enable_links:{type:Boolean,required:!1,default:!1},logo_color:{type:String,required:!1,default:void 0}},computed:{component_container(){return this.enable_links?fS:"span"}},methods:{on_click(){this.$emit("click")}},components:{ImageLink:fS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"device-row-container"},[e._t("default"),t("ul",{staticClass:"devices"},e._l(e.logos,function(n,r){return t("li",{key:r},[t(e.component_container,{tag:"component",staticClass:"logo",attrs:{to:n.url,newtab:!0},on:{click:e.on_click}},[null!=n.component?t(n.component,{tag:"component",staticClass:"logo",style:n.style,attrs:{desc:n.accessibility_label,color:e.logo_color}}):t("img",{key:r,attrs:{src:n.src,width:n.width,alt:n.accessibility_label}})],1)],1)}),0)],2)},[],0,0,"8988d10e").exports;const WS=CC(Xn.extend({name:"BCorpLogoLink"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("a",{staticClass:"link",attrs:{href:"https://bcorp.com",target:"_blank"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"75",viewBox:"0 0 45 75",fill:"none",role:"img","aria-labelledby":"bcorp_title"}},[t("title",{attrs:{id:"bcorp_title"}},[e._v(e._s("Certified B Corporationâ¢".localized()))]),t("g",{attrs:{"clip-path":"url(#clip0_20223_3233)"}},[t("path",{attrs:{d:"M37.6661 53.35C37.8483 52.9538 38.0897 52.6168 38.3902 52.3391C38.6953 52.0613 39.046 51.8472 39.4422 51.6969C39.8384 51.5467 40.2574 51.4692 40.69 51.4692C41.1226 51.4692 41.5416 51.5467 41.9378 51.6969C42.334 51.8472 42.6846 52.0613 42.9898 52.3391C43.2949 52.6168 43.5362 52.9538 43.7138 53.35C43.896 53.7462 43.9825 54.188 43.9825 54.6707C43.9825 55.1534 43.8914 55.6043 43.7138 56.0005C43.5317 56.3967 43.2903 56.7337 42.9898 57.0114C42.6846 57.2938 42.334 57.5078 41.9378 57.6536C41.5416 57.7993 41.1226 57.8767 40.69 57.8767C40.2574 57.8767 39.8384 57.8038 39.4422 57.6536C39.046 57.5033 38.6953 57.2892 38.3902 57.0114C38.0851 56.7291 37.8438 56.3921 37.6661 56.0005C37.484 55.6043 37.3975 55.1625 37.3975 54.6707C37.3975 54.1789 37.4885 53.7417 37.6661 53.35ZM38.4585 55.6817C38.586 55.9914 38.7545 56.26 38.9731 56.4832C39.1917 56.7109 39.4468 56.8839 39.7428 57.0114C40.0388 57.139 40.353 57.1982 40.69 57.1982C41.027 57.1982 41.3367 57.1344 41.6327 57.0114C41.9287 56.8839 42.1837 56.7109 42.4023 56.4832C42.6209 56.2555 42.7939 55.9914 42.9215 55.6817C43.049 55.372 43.1127 55.035 43.1127 54.6707C43.1127 54.3064 43.049 53.9694 42.9215 53.6597C42.7939 53.35 42.6209 53.0905 42.4023 52.8673C42.1837 52.6442 41.9287 52.4711 41.6327 52.3436C41.3367 52.2161 41.0224 52.1569 40.69 52.1569C40.3576 52.1569 40.0342 52.2206 39.7428 52.3436C39.4513 52.4666 39.1917 52.6442 38.9731 52.8673C38.7545 53.0905 38.5815 53.3546 38.4585 53.6597C38.3356 53.9648 38.2718 54.3018 38.2718 54.6707C38.2718 55.0396 38.3356 55.3766 38.4585 55.6817ZM40.7674 52.8673C41.2183 52.8673 41.5689 52.9493 41.8103 53.1087C42.0516 53.2681 42.1746 53.5459 42.1746 53.9329C42.1746 54.1014 42.1518 54.2426 42.1017 54.3565C42.0516 54.4749 41.9879 54.5705 41.9014 54.6434C41.8148 54.7162 41.7146 54.7754 41.6008 54.8164C41.4869 54.8574 41.364 54.8802 41.2319 54.8938L42.1928 56.465H41.446L40.5716 54.9303H40.1253V56.465H39.4149V52.8673H40.772H40.7674ZM40.7583 54.3701C40.9632 54.3701 41.1317 54.3428 41.2638 54.2836C41.3959 54.2244 41.4596 54.0878 41.4596 53.8692C41.4596 53.7736 41.4368 53.6961 41.3913 53.6369C41.3458 53.5823 41.2866 53.5368 41.2137 53.5049C41.1408 53.473 41.0634 53.4502 40.9723 53.4411C40.8858 53.4275 40.7993 53.4229 40.7173 53.4229H40.1162V54.3656H40.7537L40.7583 54.3701Z",fill:"white"}}),t("path",{attrs:{d:"M12.8561 21.4083H21.955C24.1682 21.4083 27.0873 21.4083 28.5947 22.3237C30.2478 23.3073 31.5457 25.0971 31.5457 27.5608C31.5457 30.2294 30.1431 32.2332 27.8205 33.1804V33.2533C30.9127 33.8863 32.5977 36.2042 32.5977 39.2964C32.5977 42.9851 29.9609 46.5008 24.9743 46.5008H12.8516V21.4129L12.8561 21.4083ZM16.1896 32.1922H22.8703C26.6638 32.1922 28.2122 30.8214 28.2122 28.1847C28.2122 24.7054 25.753 24.2136 22.8703 24.2136H16.1896V32.1876V32.1922ZM16.1896 43.6819H24.5553C27.4334 43.6819 29.2641 41.9241 29.2641 39.1871C29.2641 35.9173 26.6274 35.0065 23.8176 35.006
6795H16.1942V43.6864L16.1896 43.6819Z",fill:"white"}}),t("path",{attrs:{d:"M41.1366 33.9591C41.1366 44.4971 32.5933 53.0403 22.0508 53.0403C11.5083 53.0403 2.96958 44.5016 2.96958 33.9591C2.96958 23.4166 11.5129 14.8779 22.0508 14.8779C32.5887 14.8779 41.1366 23.4212 41.1366 33.9591ZM22.0508 11.9679C9.91442 11.9679 0.0732422 21.8091 0.0732422 33.95C0.0732422 46.091 9.91442 55.9276 22.0508 55.9276C34.1872 55.9276 44.0329 46.0864 44.0329 33.95C44.0329 21.8136 34.1917 11.9724 22.0508 11.9724V11.9679Z",fill:"white"}}),t("path",{attrs:{d:"M43.9868 60.5635H0.118164V63.4462H43.9868V60.5635Z",fill:"white"}}),t("path",{attrs:{d:"M5.43291 2.30428C5.32817 2.13578 5.20066 1.99006 5.04582 1.8671C4.89099 1.73959 4.71338 1.64395 4.51756 1.57109C4.32174 1.50278 4.11681 1.46635 3.90277 1.46635C3.51113 1.46635 3.17869 1.54377 2.90089 1.69405C2.62765 1.84433 2.40451 2.04926 2.23601 2.30428C2.06751 2.55931 1.94 2.85076 1.86258 3.17865C1.78516 3.50654 1.74418 3.84353 1.74418 4.18963C1.74418 4.53574 1.78061 4.84541 1.86258 5.15963C1.94 5.47386 2.06296 5.75621 2.23601 6.01123C2.40451 6.2617 2.62765 6.46663 2.90089 6.61691C3.17413 6.76719 3.50657 6.84461 3.90277 6.84461C4.43559 6.84461 4.85455 6.68067 5.15056 6.35733C5.45113 6.02945 5.63329 5.60137 5.7016 5.06855H7.39113C7.34559 5.56494 7.23174 6.01123 7.04502 6.41198C6.85831 6.81273 6.61695 7.15428 6.31183 7.43208C6.00671 7.71442 5.6515 7.92846 5.2462 8.07874C4.84089 8.22447 4.39005 8.30189 3.90277 8.30189C3.29709 8.30189 2.75061 8.19715 2.26333 7.98311C1.77606 7.77362 1.37075 7.48217 1.03376 7.10874C0.701315 6.73987 0.446291 6.30269 0.268685 5.80175C0.0910798 5.30536 0 4.76799 0 4.18963C0 3.61128 0.0865258 3.04658 0.268685 2.54109C0.446291 2.0356 0.701315 1.58931 1.03376 1.21588C1.3662 0.837897 1.77606 0.541888 2.26333 0.32785C2.74606 0.113812 3.29254 0.0045166 3.90277 0.0045166C4.33995 0.0045166 4.75437 0.0682725 5.14146 0.19123C5.52854 0.318742 5.8792 0.500902 6.18432 0.742263C6.48944 0.983625 6.74446 1.27963 6.94484 1.63485C7.14521 1.99006 7.27272 2.39992 7.32282 2.85531H5.63329C5.60596 2.65494 5.53765 2.47278 5.43291 2.30428Z",fill:"white"}}),t("path",{attrs:{d:"M9.66361 6.74441C9.90042 6.97211 10.242 7.09052 10.6837 7.09052C11.0025 7.09052 11.2757 7.0131 11.508 6.85371C11.7357 6.69432 11.8769 6.52582 11.9315 6.34822H13.3205C13.0973 7.03587 12.7558 7.53225 12.2958 7.82826C11.8359 8.12427 11.2803 8.27455 10.6291 8.27455C10.1782 8.27455 9.76835 8.20169 9.40859 8.05596C9.04427 7.91023 8.73915 7.7053 8.48413 7.44117C8.23366 7.17704 8.03784 6.85826 7.90122 6.48484C7.7646 6.11596 7.69629 5.7061 7.69629 5.26437C7.69629 4.82263 7.7646 4.43554 7.90577 4.06667C8.04695 3.69779 8.24732 3.37446 8.5069 3.10577C8.76648 2.83709 9.07615 2.62305 9.43591 2.46822C9.79568 2.31338 10.1919 2.23596 10.6291 2.23596C11.1163 2.23596 11.5444 2.3316 11.9087 2.51831C12.273 2.70958 12.5691 2.96005 12.8013 3.27883C13.0336 3.59761 13.2021 3.96192 13.3068 4.36723C13.4115 4.77253 13.448 5.20061 13.4161 5.6469H9.27197C9.29474 6.15695 9.42225 6.53038 9.65906 6.75807L9.66361 6.74441ZM11.4488 3.72056C11.2575 3.51563 10.9706 3.41089 10.5881 3.41089C10.3376 3.41089 10.1281 3.45188 9.95962 3.5384C9.79113 3.62493 9.65906 3.72967 9.55887 3.85263C9.45868 3.98014 9.39037 4.11221 9.34939 4.25338C9.3084 4.39455 9.28563 4.51751 9.27652 4.63136H11.845C11.7721 4.23061 11.64 3.92549 11.4488 3.72056Z",fill:"white"}}),t("path",{attrs:{d:"M15.6295 2.37713V3.44276H15.6522C15.7251 3.26515 15.8253 3.10121 15.9528 2.94637C16.0803 2.79609 16.2215 2.66403 16.3854 2.55929C16.5494 2.45454 16.7224 2.36802 16.9091 2.30882C17.0958 2.24961 17.2871 2.22229 17.4875 2.22229C17.5922 2.22229 17.7061 2.24051 17.8336 2.27694V3.74332C17.7607 3.72966 17.6696 3.716 17.5649 3.70689C17.4602 3.69778 17.36 3.68868 17.2643 3.68868C16.9774 3.68868 16.7315 3.73877 16.5311 3.8344C16.3308 3.93004 16.1714 4.0621 16.0484 4.2306C15.9255 4.3991 15.8389 4.59036 15.7888 4.81351C15.7387 5.03666 15.7114 5.27802 15.7114 5.5376V8.12882H14.1357V2.37713H15.634H15.6295Z",fill:"white"}}),t("path",{attrs:{d:"M22.0553 2.37717V3.4337H20.8985V6.27994C20.8985 6.54863 20.9441 6.72623 21.0306 6.81276C21.1171 6.89928 21.2993 6.94482 21.5634 6.94482C21.6545 6.94482 21.7365 6.94482 21.8185 6.93571C21.9004 6.92661 21.9778 6.9175 22.0507 6.90384V8.12431C21.9186 8.14708 21.7684 8.16074 21.6044 8.16985C21.4405 8.17895 21.2811 8.18351 21.1262 8.18351C20.8803 8.18351 20.6481 8.16529 20.434 8.13341C20.2154 8.10154 20.0242 8.03778 19.8557 7.93759C19.6872 7.84196 19.5597 7.70534 19.4595 7.52773C19.3639 7.35013 19.3138 7.11787 19.3138 6.82642V3.43825H18.3574V2.38172H19.3138V0.655762H20.8894V2.37717H22.0462H22.0553Z",fill:"white"}}),t("path",{attrs:{d:"M22.9707 1.48921V0.186768H24.5464V1.48921H22.9707ZM24.5509 2.37724V8.11982H22.9753V2.37724H24.5509Z",fill:"white"}}),t("path",{attrs:{d:"M25.1748 3.43376V2.37724H26.1175V1.93095C26.1175 1.4209 26.2769 1.00193 26.5957 0.674045C26.9144 0.346157 27.3972 0.186768 28.0393 0.186768C28.1804 0.186768 28.3216 0.191322 28.4628 0.204984C28.604 0.214092 28.7406 0.227753 28.8726 0.232307V1.41179C28.6859 1.38902 28.4947 1.37991 28.2943 1.37991C28.0803 1.37991 27.9254 1.43001 27.8343 1.53019C27.7433 1.63038 27.6977 1.79888 27.6977 2.03569V2.38179H28.7861V3.43832H27.6977V8.12893H26.1175V3.43376H25.1748Z",fill:"white"}}),t("path",{attrs:{d:"M29.8564 1.48921V0.186768H31.4321V1.48921H29.8564ZM31.4321 2.37724V8.11982H29.8564V2.37724H31.4321Z",fill:"white"}}),t("path",{attrs:{d:"M33.9227 6.74441C34.1595 6.97211 34.5011 7.09052 34.9428 7.09052C35.2616 7.09052 35.5348 7.0131 35.7671 6.85371C35.9948 6.69432 36.136 6.52582 36.1906 6.34822H37.5796C37.3564 7.03587 37.0149 7.53225 36.5595 7.82826C36.0995 8.12427 35.544 8.27455 34.8927 8.27455C34.4419 8.27455 34.032 8.20169 33.6723 8.05596C33.3079 7.91023 33.0028 7.7053 32.7478 7.44117C32.4973 7.17704 32.3015 6.85826 32.1649 6.48484C32.0283 6.11596 31.96 5.7061 31.96 5.26437C31.96 4.82263 32.0328 4.43554 32.1694 4.06667C32.3106 3.69779 32.511 3.37446 32.7706 3.10577C33.0301 2.83709 33.3398 2.62305 33.6996 2.46822C34.0594 2.31338 34.4555 2.23596 34.8927 2.23596C35.38 2.23596 35.8081 2.3316 36.1724 2.51831C36.5367 2.70958 36.8327 2.96005 37.065 3.27883C37.2972 3.59761 37.4657 3.96192 37.5705 4.36723C37.6752 4.77253 37.7117 5.20061 37.6843 5.6469H33.5402C33.563 6.15695 33.6905 6.53038 33.9273 6.75807L33.9227 6.74441ZM35.7033 3.72056C35.5166 3.51563 35.2252 3.41089 34.8426 3.41089C34.5922 3.41089 34.3827 3.45188 34.2142 3.5384C34.0457 3.62493 33.9136 3.72967 33.8134 3.85263C33.7132 3.98014 33.6449 4.11221 33.604 4.25338C33.563 4.39455 33.5402 4.51751 33.5311 4.63136H36.095C36.0221 4.23061 35.8901 3.92549 35.6988 3.72056H35.7033Z",fill:"white"}}),t("path",{attrs:{d:"M42.4663 7.38663C42.2796 7.6963 42.0382 7.924 41.7376 8.06062C41.4371 8.19724 41.1001 8.26555 40.7221 8.26555C40.294 8.26555 39.916 8.18358 39.5881 8.01508C39.2603 7.84658 38.9916 7.62343 38.7821 7.33653C38.5726 7.04963 38.4132 6.72174 38.3039 6.35287C38.1946 5.984 38.1445 5.59691 38.1445 5.19616C38.1445 4.79541 38.1992 4.4402 38.3039 4.08043C38.4087 3.72066 38.5726 3.40644 38.7821 3.12865C38.9916 2.85541 39.2603 2.63226 39.5745 2.46832C39.8933 2.29982 40.2621 2.21785 40.6857 2.21785C41.0272 2.21785 41.3505 2.29071 41.6557 2.43644C41.9653 2.58217 42.2067 2.79165 42.3843 3.074H42.4071V0.186768H43.9827V8.11982H42.4845V7.38663H42.4617H42.4663ZM42.398 4.54949C42.3524 4.3309 42.2796 4.13963 42.1703 3.97113C42.061 3.80264 41.9243 3.67057 41.7513 3.56583C41.5828 3.46109 41.3642 3.41099 41.1092 3.41099C40.8542 3.41099 40.631 3.46109 40.4534 3.56583C40.2758 3.67057 40.1346 3.80719 40.0253 3.97569C39.9206 4.14419 39.8432 4.34001 39.7931 4.5586C39.743 4.77719 39.7202 5.00489 39.7202 5.2417C39.7202 5.46484 39.7475 5.68799 39.7976 5.90658C39.8477 6.12973 39.9342 6.32555 40.0481 6.50315C40.1619 6.6762 40.3077 6.81738 40.4807 6.92667C40.6538 7.03597 40.8633 7.08606 41.1092 7.08606C41.3688 7.08606 41.5828 7.03597 41.7604 6.93123C41.9334 6.82649 42.0746 6.68987 42.1794 6.51226C42.2841 6.33921 42.357 6.13883 42.4025 5.92024C42.4481 5.6971 42.4708 5.4694 42.4708 5.23259C42.4708 4.99578 42.4481 4.76808 42.4025 4.54949H42.398Z",fill:"white"}}),t("path",{attrs:{d:"M3.96653 69.1114C3.88911 68.5558 3.35629 68.1323 2.74606 68.1323C1.64399 68.1323 1.22958 69.0704 1.22958 70.0495C1.22958 71.0286 1.64399 71.9166 2.74606 71.9166C3.49747 71.9166 3.92099 71.402 4.01207 70.6643H5.20521C5.0777 72.0578 4.11681 72.9504 2.74606 72.9504C1.
67901554 72.9504 0 71.6571 0 70.0495C0 68.4419 1.01554 67.0985 2.74606 67.0985C3.97563 67.0985 5.00484 67.818 5.15512 69.1114H3.96653Z",fill:"white"}}),t("path",{attrs:{d:"M7.76899 68.665C9.04411 68.665 9.86383 69.5075 9.86383 70.8009C9.86383 72.0942 9.04411 72.9276 7.76899 72.9276C6.49387 72.9276 5.67871 72.0805 5.67871 70.8009C5.67871 69.5212 6.49843 68.665 7.76899 68.665ZM7.76899 72.0896C8.52951 72.0896 8.75265 71.4384 8.75265 70.8009C8.75265 70.1633 8.52495 69.503 7.76899 69.503C7.01303 69.503 6.78988 70.1542 6.78988 70.8009C6.78988 71.4475 7.01758 72.0896 7.76899 72.0896Z",fill:"white"}}),t("path",{attrs:{d:"M10.5518 68.7653H11.6083V69.5167H11.6265C11.8269 69.0067 12.3779 68.656 12.9198 68.656C12.9973 68.656 13.0929 68.6697 13.1612 68.6924V69.7262C13.0565 69.7034 12.8925 69.6898 12.7604 69.6898C11.9453 69.6898 11.6629 70.2772 11.6629 70.9877V72.8092H10.5518V68.7653Z",fill:"white"}}),t("path",{attrs:{d:"M13.5895 68.7743H14.646V69.2889H14.6597C14.9238 68.8609 15.361 68.665 15.862 68.665C17.1325 68.665 17.7018 69.6897 17.7018 70.8373C17.7018 71.9166 17.1098 72.9276 15.9257 72.9276C15.443 72.9276 14.9785 72.7181 14.7144 72.3173H14.6961V74.2437H13.585V68.7743H13.5895ZM16.5951 70.81C16.5951 70.1679 16.3356 69.503 15.6251 69.503C14.9147 69.503 14.6643 70.1542 14.6643 70.81C14.6643 71.4657 14.9147 72.0942 15.6343 72.0942C16.3538 72.0942 16.5951 71.4703 16.5951 70.81Z",fill:"white"}}),t("path",{attrs:{d:"M20.1424 68.665C21.4175 68.665 22.2418 69.5075 22.2418 70.8009C22.2418 72.0942 21.4175 72.9276 20.1424 72.9276C18.8673 72.9276 18.0566 72.0805 18.0566 70.8009C18.0566 69.5212 18.8764 68.665 20.1424 68.665ZM20.1424 72.0896C20.9029 72.0896 21.1306 71.4384 21.1306 70.8009C21.1306 70.1633 20.9029 69.503 20.1424 69.503C19.3819 69.503 19.1633 70.1542 19.1633 70.8009C19.1633 71.4475 19.391 72.0896 20.1424 72.0896Z",fill:"white"}}),t("path",{attrs:{d:"M22.9245 68.7653H23.981V69.5167H23.9992C24.1996 69.0067 24.7506 68.656 25.288 68.656C25.3654 68.656 25.461 68.6697 25.5294 68.6924V69.7262C25.4292 69.7034 25.2652 69.6898 25.1286 69.6898C24.3134 69.6898 24.0311 70.2772 24.0311 70.9877V72.8092H22.9199V68.7653H22.9245Z",fill:"white"}}),t("path",{attrs:{d:"M25.8573 70.0176C25.9211 68.9747 26.8501 68.665 27.7609 68.665C28.567 68.665 29.537 68.8426 29.537 69.8126V71.9166C29.537 72.2855 29.5734 72.6498 29.6781 72.8183H28.5487C28.5123 72.6908 28.4759 72.5587 28.4713 72.4266C28.1207 72.7955 27.6061 72.9276 27.1097 72.9276C26.3446 72.9276 25.7344 72.545 25.7344 71.7162C25.7344 70.8009 26.422 70.5823 27.1097 70.4866C27.7928 70.3864 28.4258 70.4092 28.4258 69.9538C28.4258 69.4984 28.0933 69.4073 27.7063 69.4073C27.2827 69.4073 27.0095 69.5804 26.9685 70.0176H25.8573ZM28.4258 70.8373C28.2345 71.0012 27.8474 71.0103 27.5013 71.0741C27.1552 71.1424 26.8455 71.2608 26.8455 71.6707C26.8455 72.0805 27.1643 72.1853 27.5286 72.1853C28.3939 72.1853 28.4303 71.4976 28.4303 71.2563V70.8418L28.4258 70.8373Z",fill:"white"}}),t("path",{attrs:{d:"M31.7822 68.7743H32.5974V69.5166H31.7822V71.5204C31.7822 71.8984 31.8779 71.9894 32.2513 71.9894C32.3697 71.9894 32.479 71.9803 32.5974 71.9576V72.8274C32.4107 72.8592 32.1648 72.8683 31.9462 72.8683C31.2676 72.8683 30.6711 72.709 30.6711 71.9075V69.5212H29.9971V68.7789H30.6711V67.5675H31.7822V68.7789V68.7743Z",fill:"white"}}),t("path",{attrs:{d:"M34.5418 68.1505H33.4307V67.2351H34.5418V68.1505ZM33.4307 68.7744H34.5418V72.8183H33.4307V68.7744Z",fill:"white"}}),t("path",{attrs:{d:"M37.3787 68.665C38.6538 68.665 39.4781 69.5075 39.4781 70.8009C39.4781 72.0942 38.6538 72.9276 37.3787 72.9276C36.1036 72.9276 35.293 72.0805 35.293 70.8009C35.293 69.5212 36.1127 68.665 37.3787 68.665ZM37.3787 72.0896C38.1392 72.0896 38.3669 71.4384 38.3669 70.8009C38.3669 70.1633 38.1392 69.503 37.3787 69.503C36.6182 69.503 36.3996 70.1542 36.3996 70.8009C36.3996 71.4475 36.6273 72.0896 37.3787 72.0896Z",fill:"white"}}),t("path",{attrs:{d:"M40.1934 68.7743H41.2499V69.339H41.2727C41.555 68.8836 42.0377 68.665 42.5113 68.665C43.6908 68.665 43.9914 69.3299 43.9914 70.3318V72.8183H42.8802V70.5322C42.8802 69.8673 42.6844 69.5394 42.1698 69.5394C41.5641 69.5394 41.3091 69.8764 41.3091 70.7007V72.8228H40.1979V68.7789L40.1934 68.7743Z",fill:"white"}})]),t("defs",[t("clipPath",{attrs:{id:"clip0_20223_3233"}},[t("rect",{attrs:{width:"44.0325",height:"74.2437",fill:"white"}})])])])])},[],0,0,"a5f6a57d").exports;const XS=CC(Xn.extend({name:"KanopyFooter",data:()=>({id:XC.Footer}),props:{show_available_platforms:{type:Boolean,required:!1,default:!1}},computed:{device_logos:()=>[GS.iPhone,GS.iPad,GS.AppleTV,GS.Android,GS.AndroidTV,GS.Chromecast,GS.Roku,GS.FireTV,GS.FireTablet,GS.Samsung],social_logos:()=>[_S.Facebook,_S.Threads,_S.Instagram,_S.Bluesky]},methods:{send_analytics(e){const t={footer_option:e};gf.sendEvent(this.$nuxt.context,AT.Footer,t)}},components:{GradientLine:hS,KanopyLogo:RC,HelpLinksRow:pS,SocialLogosRow:gS,LegalRow:yS,RegionSelectionDropdown:bS,CopyrightRow:kS,DeviceLogoRow:KS,BCorpLogoLink:WS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("footer",{staticClass:"footer-container",attrs:{id:e.id,tabindex:"-1","aria-label":"Footer".localized()}},[t("gradient-line"),t("div",{staticClass:"footer-content"},[t("div",{staticClass:"footer-row help-region-row"},[t("help-links-row",{staticClass:"help-links-row",on:{click:e.send_analytics}}),t("region-selection-dropdown")],1),t("div",{staticClass:"lower-footer-rows"},[t("div",{staticClass:"footer-row logo-row"},[t("kanopy-logo",{staticClass:"kanopy-logo"}),t("b-corp-logo-link")],1),t("div",{staticClass:"footer-row legal-social-row"},[t("legal-row",{staticClass:"legal-row",on:{click:e.send_analytics}}),t("social-logos-row",{staticClass:"social-row",attrs:{logos:e.social_logos},on:{click:e.send_analytics}})],1),t("div",{staticClass:"footer-row devices-copyright-row"},[t("div",{staticClass:"device-logo-row"},[t("span",{staticClass:"available-text"},[e._v(e._s("Available on".localized())+":")]),t("device-logo-row",{staticClass:"device-logos",attrs:{logos:e.device_logos,enable_links:!0,logo_color:"#828282",inline_text:!0},on:{click:function(t){return e.send_analytics("app links")}}})],1),t("copyright-row",{staticClass:"copyright-row"}
679)],1)])])],1)},[],0,0,"f12a10b8").exports;const YS=CC(Xn.extend({name:"OrangeLink",props:{title:{type:String,required:!1,default:""},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},methods:{on_click(){this.$emit("click")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{attrs:{title:e.title,to:e.to,in_new_tab:e.in_new_tab,disabled:e.disabled},on:{click:e.on_click}})},[],0,0,"dcb98591").exports;var ZS=(e=>(e[e.Access=0]="Access",e[e.None=1]="None",e[e.Exit=2]="Exit",e))(ZS||{});const JS=Xn.extend({name:"KidsGuideModal",data:()=>({fallback_focus:void 0}),props:{},watch:{is_in_kids_mode(e){e&&"default"===this.$nuxt.layoutName?(this.show_if_allowed(),this.$nextTick(()=>{this.fallback_focus=document.getElementById(XC.ExitKidsButton)})):this.$kuistore.commit("site/set_show_kids_guide_modal",!1)}},created(){this.$kuistore.getters["site/is_in_kids_mode"]&&!this.$route.fullPath.includes("/kids")&&"default"===this.$nuxt.layoutName&&this.show_if_allowed()},mounted(){this.$nextTick(()=>{this.fallback_focus=document.getElementById(XC.ExitKidsButton)})},computed:{is_in_kids_mode(){return this.$kuistore.state.site.is_in_kids_mode},is_kids_only_vp(){return this.$kuistore.getters["site/is_kids_only_vp"]},user_id(){return this.$kuistore.getters["user/userId"]},parental_controls_link(){return`/user/${this.user_id}/parental-controls`},buttons_layout:()=>KC.ColumnHalfWidth,show(){return this.$kuistore.getters["site/show_kids_guide_modal"]}},methods:{show_if_allowed(){if(this.is_kids_only_vp)return;const e=Ua.dont_show_kids_guide,t=wa.parse(Ba.instance.get(e.name)),n=Ua.has_entered_kids,r=wa.parse(Ba.instance.get(n.name)),i=!(t||r);this.$kuistore.getters["site/require_parental_control_pin"]!==ZS.Exit&&this.$kuistore.commit("site/set_show_kids_guide_modal",i),r&&Ba.instance.delete(Ua.has_entered_kids)},handle_dont_show(){const e=Ua.dont_show_kids_guide;e.value=!0,Ba.instance.set(e),this.dismiss()},dismiss(){this.$kuistore.commit("site/set_show_kids_guide_modal",!1),this.$nextTick(()=>this.fallback_focus?.focus())}},components:{KanopyModal:eT,OrangeLink:YS}}),QS=""+new URL("kids_banner-C4XvP0gs.svg",import.meta.url).href;const ex=CC(JS,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show?t("kanopy-modal",{staticClass:"kids-guide-modal",attrs:{title:"Welcome To Kanopy Kids!".localized(),primary_action_title:"Start Watching".localized(),secondary_action_title:"Don't show this again".localized(),secondary_action_is_link:!0,buttons_layout:e.buttons_layout,fallback_focus:e.fallback_focus},on:{close:e.dismiss,primary_action:e.dismiss,secondary_action:e.handle_dont_show}},[t("div",{staticClass:"kids-guide-modal-content"},[t("img",{staticClass:"kids-banner",attrs:{src:QS,alt:"kids banner"}}),t("p",[e._v(e._s("Enjoy unlimited plays in our curated collection for kids. To set Parental Controls, please".localized())+" "),t("orange-link",{staticClass:"orange-link",attrs:{title:"click here".localized(),to:e.parental_controls_link},on:{click:e.dismiss}}),e._v(".")],1),t("p",[e._v(e._s("To exit, click on the âExit Kanopy Kidsâ button on the top right.".localized()))])])]):e._e()},[],0,0,"f3e5a76f").exports;class tx{static instance=new tx;id_tracker={};getId(e="default"){return null==this.id_tracker[e]&&(this.id_tracker[e]=0),this.id_tracker[e]++,`${e}_${this.id_tracker[e]}`}}class nx{static html_element(e){if(null==e)return;if(null!=e.length)return void console.error("html_element shouldn't be called with array reference");return null!=e.$el?e.$el:e}static as_focusable(e){if("function"==typeof e.focus&&"function"==typeof e.unfocus)return e}}const rx=Xn.extend({name:"InputErrorMessage",props:{message:{type:String,required:!1,default:void 0}},watch:{message(e,t){null!=e&&null!=t&&this.$nextTick(()=>{this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:this.message,assertive:!0})})}},created(){this.$nextTick(()=>{this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:this.message,assertive:!0})})},computed:{has_error(){return null!=this.message}}}),ix="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%2016C12.4183%2016%2016%2012.4183%2016%208C16%203.58172%2012.4183%200%208%200C3.58172%200%200%203.58172%200%208C0%2012.4183%203.58172%2016%208%2016ZM7.99999%202.92113C8.55227%202.92113%208.99999%203.36885%208.99999%203.92113V8.1503C8.99999%208.70258%208.55227%209.1503%207.99999%209.1503C7.4477%209.1503%206.99999%208.70258%206.99999%208.1503V3.92113C6.99999%203.36885%207.4477%202.92113%207.99999%202.92113ZM7.99999%2010.7128
679C8.55227%2010.7128%208.99999%2011.1605%208.99999%2011.7128V11.7336C8.99999%2012.2859%208.55227%2012.7336%207.99999%2012.7336C7.4477%2012.7336%206.99999%2012.2859%206.99999%2011.7336V11.7128C6.99999%2011.1605%207.4477%2010.7128%207.99999%2010.7128Z'%20fill='%23E30C03'/%3e%3c/svg%3e";const sx=CC(rx,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"error"},[t("img",{attrs:{src:ix,alt:""}}),e._t("error",function(){return[t("span",{domProps:{innerHTML:e._s(e.message.localized())}})]},{error_msg:e.message})],2)},[],0,0,"ad837b35").exports;var ox=(e=>(e.Date="date",e.Email="email",e.Number="number",e.Password="password",e.Phone="tel",e.Text="text",e.Time="time",e))(ox||{}),ax=(e=>(e.BACKSPACE="Backspace",e.TAB="Tab",e.LEFT="Left",e.RIGHT="Right",e.UP="Up",e.DOWN="Down",e.LEFT_ARROW="ArrowLeft",e.TOP_ARROW="ArrowUp",e.RIGHT_ARROW="ArrowRight",e.DOWN_ARROW="ArrowDown",e.DELETE="Delete",e.CONTROL="Control",e.ALT="Alt",e.META="Meta",e.SHIFT="Shift",e))(ax||{});const lx=CC(Xn.extend({name:"Textfield",data(){return{input:this.default_text,last_input_update:void 0,can_emit_last_char:!1,is_readonly:!1,is_hovered:!1}},props:{default_text:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},is_secured:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"text",validator:e=>null!=Object.values(ox).find(t=>t===e)},maxlength:{type:Number,required:!1,default:void 0},autocomplete_value:{type:String,required:!1,default:"off"},error_msg:{type:String,required:!1,default:void 0},valid_char_regex:{type:RegExp,required:!1,default:void 0},id:{type:String,required:!1,default:void 0},aria_label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:void 0},active_descendant_id:{type:String,required:!1,default:void 0},autocomplete_id:{type:String,required:!1,default:void 0},aria_expanded:{type:Boolean,required:!1,default:void 0},use_dark_mode:{type:Boolean,required:!1,default:!1},described_by_id:{type:String,required:!1,default:void 0},explicitly_avoid_autocomplete:{type:Boolean,required:!1,default:!1},input_mode:{type:String,required:!1,default:"text"}},created(){this.is_readonly=this.explicitly_avoid_autocomplete},mounted(){setTimeout(()=>{this.is_readonly=!1},200)},computed:{input_type(){return this.is_secured?"password":"numeric"===this.input_mode?"number":this.type},has_autocomplete(){return"off"!==this.autocomplete_value},has_error(){return null!=this.error_msg},has_error_msg(){return!Va.isEmpty(this.error_msg)},described_by(){return this.has_error_msg?this.error_id:this.described_by_id},error_id:()=>tx.instance.getId("error_msg"),text_for_hover(){return this.is_hovered?this.input:void 0}},methods:{focus(){nx.html_element(this.$refs.input_component).focus()},unfocus(){nx.html_element(this.$refs.input_component).blur()},clear(){this.set_input("")},clear_only(){this.input=""},set_input(e){this.input=e,this.on_input_update()},on_key_up(e){const t=nx.html_element(this.$refs.input_component).value;this.input=t,this.can_emit_last_char&&(this.on_input_update(),this.can_emit_last_char=!1)},on_input_update(){if(null!=this.valid_char_regex){let e=this.valid_char_regex;if(!this.valid_char_regex.global){let t=this.valid_char_regex.source;t.startsWith("^")&&(t=t.slice(1)),t.endsWith("$")&&(t=t.slice(0,-1)),e=RegExp(t,"g")}const t=this.input.match(e);null===t&&this.input.length>0?this.input="":null!==t&&t.length!==this.input.length&&(this.input=t.join(""))}this.last_input_update!==this.input&&(this.last_input_update=this.input,this.$emit("update_value",this.input))},on_focus(){this.$emit("focus")},on_blur(){this.$emit("blur")},on_hover_start(){this.is_hovered=!0},on_hover_end(){this.is_hovered=!1},on_submit(){this.$emit("submit",this.input)},validate_key_down(e){this.can_emit_last_char=!0;let t=e.key;if("KeyD"===e.code&&e.ctrlKey&&navigator.platform.toLowerCase().includes("mac")&&(t="Delete"),n=t,Object.values(ax).includes(n))this.can_emit_last_char=function(e){return["Backspace","Delete"].includes(e)}(t);else if(null!=this.valid_char_regex){null!=t.match(this.valid_char_regex)||(xC.preventDefault(e),this.can_emit_last_char=!1)}var n}},components:{InputErrorMessage:sx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"textfield-container",class:{has_error:e.has_error,dark:e.use_dark_mode}},["checkbox"===e.input_type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.input,expression:"input"}],ref:"input_component",class:{has_error:e.has_error},attrs:{id:e.id,placeholder:e.placeholder,maxlength:e.maxlength,autocomplete:e.autocomplete_value,"aria-label":e.aria_label,"aria-describedby":null!=e.described_by?e.described_by:void 0,"aria-invalid":e.has_error.toString(),disabled:e.disabled,required:e.required,"aria-activedescendant":e.active_descendant_id,"aria-controls":e.autocomplete_id,"aria-autocomplete":null!=e.autocomplete_id?"list":void 0,"aria-owns":e.autocomplete_id,"aria-expanded":null!=e.aria_expanded?e.aria_expanded.toString():void 0,role:null!=e.autocomplete_id?"combobox":void 0,readonly:e.is_readonly,title:e.text_for_hover,inputmode:e.input_mode,type:"checkbox"},domProps:{checked:Array.isArray(e.input)?e._i(e.input,null)>-1:e.input},on:{focus:e.on_focus,blur:e.on_blur,keydown:e.validate_key_down,keyup:[e.on_key_up,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_submit.apply(null,arguments)}],input:e.on_input_update,mouseenter:e.on_hover_start,mouseleave:e.on_hover_end,change:function(t){var n=e.input,r=t.target,i=!!r.checked;if(Array.isArray(n)){var s=e._i(n,null);r.checked?s<0&&(e.input=n.concat([null])):s>-1&&(e.input=n.slice(0,s).concat(n.slice(s+1)))}else e.input=i}}}):"radio"===e.input_type?t("input",{directives:[{name:"model",rawName:"v-model",value:e.input,expression:"input"}],ref:"input_component",class:{has_error:e.has_error},attrs:{id:e.id,placeholder:e.placeholder,maxlength:e.maxlength,autocomplete:e.autocomplete_value,"aria-label":e.aria_label,"aria-describedby":null!=e.described_by?e.described_by:void 0,"aria-invalid":e.has_error.toString(),disabled:e.disabled,required:e.required,"aria-activedescendant":e.active_descendant_id,"aria-controls":e.autocomplete_id,"aria-autocomplete":null!=e.autocomplete_id?"list":void 0,"aria-owns":e.autocomplete_id,"aria-expanded":null!=e.aria_expanded?e.aria_expanded.toString():void 0,role:null!=e.autocomplete_id?"combobox":void 0,readonly:e.is_readonly,title:e.text_for_hover,inputmode:e.input_mode,type:"radio"},domProps:{checked:e._q(e.input,null)},on:{focus:e.on_focus,blur:e.on_blur,keydown:e.validate_key_down,keyup:[e.on_key_up,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_submit.apply(null,arguments)}],input:e.on_input_update,mouseenter:e.on_hover_start,mouseleave:e.on_hover_end,change:function(t){e.input=null}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.input,expression:"input"}],ref:"input_component",class:{has_error:e.has_error},attrs:{id:e.id,placeholder:e.placeholder,maxlength:e.maxlength,autocomplete:e.autocomplete_value,"aria-label":e.aria_label,"aria-describedby":null!=e.described_by?e.described_by:void 0,"aria-invalid":e.has_error.toString(),disabled:e.disabled,required:e.required,"aria-activedescendant":e.active_descendant_id,"aria-controls":e.autocomplete_id,"aria-autocomplete":null!=e.autocomplete_id?"list":void 0,"aria-owns":e.autocomplete_id,"aria-expanded":null!=e.aria_expanded?e.aria_expanded.toString():void 0,role:null!=e.autocomplete_id?"combobox":void 0,readonly:e.is_readonly,title:e.text_for_hover,inputmode:e.input_mode,type:e.input_type},domProps:{value:e.input},on:{focus:e.on_focus,blur:e.on_blur,keydown:e.validate_key_down,keyup:[e.on_key_up,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_submit.apply(null,arguments)}],input:[function(t){t.target.composing||(e.input=t.target.value)},e.on_input_update],mouseenter:e.on_hover_start,mouseleave:e.on_hover_end}}),e.has_error_msg?t("input-error-message",{attrs:{id:e.error_id,message:e.error_msg}}
679):e._e()],1)},[],0,0,"2e72f1a9").exports;const cx=CC(Xn.extend({name:"PinInput",data:()=>({value:"",input_focused:!1,error_id:tx.instance.getId("pin-input-error")}),props:{size:{type:Number,required:!0,validator:e=>e>=0},is_secured:{type:Boolean,required:!1,default:!1},valid_char_regex:{type:RegExp,required:!1,default:()=>/[0-9A-Za-z]/g},error_msg:{type:String,required:!1,default:void 0},aria_label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},id:{type:String,required:!0},input_mode:{type:String,required:!1,default:"text"}},computed:{input_values(){return this.is_secured?Array(this.value.length).fill("â¢"):[...this.value]},focused_index(){return this.value.length+1}},methods:{focus(){this.$refs.input.focus()},on_input_blur(){this.input_focused=!1},on_input_focus(){this.input_focused=!0},on_submit(){this.value.length===this.size&&this.$emit("submit",this.value)},on_update_value(e){this.value=e,this.$emit("update_value",e)},reset(){this.$refs.input.clear()},unfocus(){this.$refs.input.unfocus()}},components:{Textfield:lx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pin-input-container"},[t("textfield",{ref:"input",staticClass:"input",attrs:{id:e.id,type:"text",maxlength:e.size,explicitly_avoid_autocomplete:!0,required:!0,valid_char_regex:e.valid_char_regex,use_default_cursor:"false",aria_describedby:e.error_id,"aria-label":e.aria_label,disabled:e.disabled,input_mode:e.input_mode},on:{update_value:e.on_update_value,focus:e.on_input_focus,blur:e.on_input_blur,submit:e.on_submit}}),t("div",{staticClass:"input-display",attrs:{"aria-hidden":"true"},on:{click:e.focus}},e._l(e.size,function(n){return t("div",{key:n,staticClass:"pin-char",class:{"has-error":null!=e.error_msg,focused:e.focused_index===n&&e.input_focused}},[e._v(" "+e._s(e.input_values[n-1])+" ")])}),0),e.error_msg?t("p",{staticClass:"pin-code-error-message",attrs:{id:e.error_id,role:"alert"}},[t("img",{attrs:{src:ix,alt:""}}),e._v(" "+e._s(e.error_msg)+" ")]):e._e()],1)},[],0,0,null).exports,ux=4;const dx=CC(Xn.extend({name:"ParentalPinInput",data:()=>({pin_size:4}),props:{show_input:{type:Boolean,required:!1,default:!1},has_error:{type:Boolean,required:!1,default:!1},aria_label:{type:String,required:!1,default:void 0},id:{type:String,required:!0}},computed:{error_msg(){return this.has_error?"Incorrect PIN. Reset your PIN or try again".localized():void 0}},methods:{focus(){nx.as_focusable(this.$refs.parental_pin_input)?.focus()},unfocus(){nx.as_focusable(this.$refs.parental_pin_input)?.unfocus()},on_pin_update(e){this.$emit("pin_update",e)},on_pin_submit(e){this.$emit("pin_submit",e)},reset(){this.$refs.parental_pin_input.reset()}},components:{PinInput:cx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("pin-input",{ref:"parental_pin_input",staticClass:"parental-pin-input",attrs:{id:e.id,size:e.pin_size,is_secured:!e.show_input,valid_char_regex:/[0-9]/g,error_msg:e.error_msg,aria_label:e.aria_label,input_mode:"numeric"},on:{update_value:e.on_pin_update,submit:e.on_pin_submit}})},[],0,0,"40bf071b").exports;const hx=CC(Xn.extend({name:"ParentalControlsModal",data:()=>({parental_controls_pin:"",pin_error:!1,pin_id:tx.instance.getId("pin"),previous_focus:void 0,fallback_focus:void 0}),computed:{show_parental_control_pin_modal(){return this.parental_control_pin_requirement!==ZS.None&&!Ia.isEmbeddedRoute(this.$route)},parental_control_pin_requirement(){return this.$kuistore.state.site.require_parental_control_pin},button_layout:()=>KC.ColumnFullWidth,primary_action(){return this.is_exit_modal?"Exit Kanopy Kids".localized():"Access account settings".localized()},secondary_action(){return this.vp_has_kids_enabled?"Forgot PIN?".localized():void 0},vp_has_kids_enabled(){return this.$kuistore.state.site.domain?.hasKids??!1},is_exit_modal(){return this.parental_control_pin_requirement===ZS.Exit},aria_label(){return this.is_exit_modal?this.exit_description:"Enter parental controls PIN to access this page.".localized()},exit_description:()=>"Enter your PIN to exit Kanopy Kids.".localized()},methods:{on_close_clicked(){if(this.is_exit_modal)this.previous_focu
679s=document.getElementById(this.$kuistore.state.site.focus_ids.previous)??void 0;else if(this.$nuxt.context?.from?.fullPath!==this.$nuxt.context?.route?.fullPath)this.$router.back();else{const e=this.$kuistore.state.user.user?.userId;Ia.navigate(this.$router,`/user/${e}/parental-controls`)}this.$nextTick(this.abort_parental_controls_process)},on_primary_clicked(){this.send_parental_controls_pin(this.parental_controls_pin)},on_secondary_clicked(){this.previous_focus=void 0,this.fallback_focus=document.getElementById(XC.ForgotPinPageHeading)??void 0,this.$nextTick(()=>{this.abort_parental_controls_process(),JC.instance.setPostNavOrActionFocus(YC.ForgotPin,XC.ForgotPinPageHeading);const e=this.$kuistore.state.user.user?.userId;Ia.navigate(this.$router,`/user/${e}/parental-controls/forgotpin`)})},on_pin_submit(e){this.send_parental_controls_pin(e)},on_pin_update(e){this.parental_controls_pin=e,this.pin_error=!1},clear_input(){const e=this.$refs.parental_pin_input;e.reset(),e.focus()},abort_parental_controls_process(){this.parental_controls_pin="",this.pin_error=!1,this.vp_has_kids_enabled&&this.$kuistore.dispatch("site/cancel_parental_controls_modal")},send_parental_controls_pin(e){this.$kuistore.dispatch("site/send_parental_control_pin",e).then(()=>{this.parental_controls_pin=""}).catch(()=>{this.clear_input(),this.pin_error=!0})}},components:{KanopyModal:eT,ParentalPinInput:dx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_parental_control_pin_modal?t("kanopy-modal",{staticClass:"parental-controls-modal",attrs:{title:"Parental controls enabled".localized(),buttons_layout:e.button_layout,show_close_button:e.vp_has_kids_enabled,primary_action_title:e.primary_action,secondary_action_is_link:!0,secondary_action_title:e.secondary_action,previous_focus:e.previous_focus,fallback_focus:e.fallback_focus},on:{close:e.on_close_clicked,primary_action:e.on_primary_clicked,secondary_action:e.on_secondary_clicked}},[e.is_exit_modal?t("label",{staticClass:"modal-text",attrs:{for:e.pin_id}},[e._v(e._s(e.exit_description))]):e._e(),t("parental-pin-input",{ref:"parental_pin_input",staticClass:"parental-pin-input",attrs:{id:e.pin_id,has_error:e.pin_error,aria_label:e.aria_label},on:{pin_submit:e.on_pin_submit,pin_update:e.on_pin_update}})],1):e._e()},[],0,0,"4cd9cb93").exports;const px=CC(Xn.extend({name:"KanopyMenuFooter",computed:{version(){return this.$nuxt.context.env.VERSION},social_logos:()=>[_S.Facebook,_S.Threads,_S.Instagram,_S.Bluesky]},methods:{open_cookie_preferences(){this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!0),this.$kuistore.dispatch("site/toggle_menu",!1)}},components:{BCorpLogoLink:WS,CopyrightRow:kS,KanopyLogo:RC,LegalRow:yS,SocialLogosRow:gS}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"menu-footer-container"},[t("div",{staticClass:"gradient-border"}),t("div",{staticClass:"menu-footer"},[t("div",{staticClass:"footer-content"},[t("div",{staticClass:"logo-row"},[t("kanopy-logo",{staticClass:"kanopy-logo"}),t("b-corp-logo-link")],1),t("div",{staticClass:"middle-row"},[t("div",{staticClass:"version"},[e._v(e._s("Version {version}".localized({version:e.version})))]),t("legal-row",{staticClass:"legal-row",attrs:{in_menu:!0}}),t("social-logos-row",{staticClass:"social-row",attrs:{logos:e.social_logos}})],1),t("copyright-row",{staticClass:"copyright-row"})],1)])])},[],0,0,"190ce4eb").exports;const fx=CC(Xn.extend({name:"AbsoluteTranslateTransition"}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("transition",{attrs:{name:"absolute-translate-transition"}},[e._t("default")],2)},[],0,0,"710a341b").exports;const mx=CC(Xn.extend({name:"SideViewOverlay",props:{show:{type:Boolean,required:!1,default:!1},view_width:{type:Number,required:!1,default:void 0},is_right_side:{type:Boolean,required:!1,default:!1},is_menu:{type:Boolean,required:!1,default:!1}},watch:{show(){this.show?this.block_body_scroll():this.enable_body_scroll()}},mounted(){this.show&&this.block_body_scroll()},beforeDestroy(){this.enable_body_scroll()},computed:{side_view_css(){return{"--side-view-width":null==this.view_width?"auto":`${this.view_width}px`}}},methods:{block_body_scroll(){document.body.style.top=`-${window.scrollY}px`,document.body.style.overflow="hidden"},enable_body_scroll(){const e=document.body.style.top;document.body.style.overflow="auto",document.body.style.top="",window.scrollTo(0,-1*parseInt(e||"0"))},on_dark_background_click(){this.$emit("close")}},components:{FadeTransition:LT,AbsoluteTranslateTransition:fx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"side-view-overlay",class:{"
679is-menu":e.is_menu}},[t("fade-transition",[e.show?t("div",{staticClass:"side-view-background",attrs:{"aria-hidden":"true"},on:{click:e.on_dark_background_click}}):e._e()]),t("absolute-translate-transition",[e.show?t("div",{staticClass:"side-view-container",class:{"right-side":e.is_right_side},style:e.side_view_css},[e._t("default")],2):e._e()])],1)},[],0,0,"2d6349ca").exports,_x=Xn.extend({name:"KanopyMenuHeaderNavigation",props:{is_submenu:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:void 0}},methods:{on_back(){this.$emit("back")},on_close(){this.$emit("close")}},components:{CloseIconSvg:tT}});const gx=CC(_x,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"nav-container",class:{full:e.is_submenu}},[e.is_submenu?t("button",{attrs:{"aria-label":"Back to Main Menu".localized()},on:{click:e.on_back}},[t("img",{attrs:{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%2022L7%2012L16%202'%20stroke='%23F9F9F9'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",alt:""}})]):e._e(),e.is_submenu?t("h1",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),t("button",{staticClass:"close-button",attrs:{"aria-label":"Close".localized()},on:{click:e.on_close}},[t("close-icon-svg",{staticClass:"close-icon",attrs:{stroke_width:2,"aria-hidden":"true"}})],1)])},[],0,0,"8d4b1a88").exports;const yx=CC(Xn.extend({name:"KanopyMenuBrowseSection",props:{is_submenu:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:void 0}},mounted(){setTimeout(()=>{const e=JC.instance.getFirstFocusableElement(this.$el);JC.instance.findFocus(e,void 0)},100)},computed:{browse_categories(){return this.$kuistore.state.shelves.categories??[]}},methods:{on_category_selected(e){this.$emit("category_selected");const t="browse: "+e;this.$emit("analytics",t)},on_back(){this.$emit("back")},on_close(){this.$emit("close")},handle_focus(e){JC.instance.trapFocus(e,this.$el)}},components:{KanopyLink:EC,KanopyMenuHeaderNavigation:gx,KanopyMenuFooter:px}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"browse-menu",on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("kanopy-menu-header-navigation",{attrs:{is_submenu:e.is_submenu,title:e.title},on:{back:e.on_back,close:e.on_close}}),t("div",{staticClass:"scroller"},[t("div",{staticClass:"browse-sections-container"},e._l(e.browse_categories,function(n,r){return t("div",{key:r,staticClass:"browse-section-container"},[t("h2",{staticClass:"category"},[e._v(e._s(n.name))]),e._l(n.terms,function(n,r){return t("kanopy-link",{key:r,staticClass:"browse-section-item menu-link",attrs:{title:n.name,to:"/category/"+n.termId},on:{click:function(t){return e.on_category_selected(n.name)}}})}),r<e.browse_categories.length-1?t("div",{staticClass:"break"}):e._e()],2)}),0)]),t("kanopy-menu-footer",{staticClass:"footer"})],1)},[],0,0,"fe4ef726").exports;const vx=CC(Xn.extend({name:"CheckboxLine",data(){return{is_checked:this.checked_by_default,id:tx.instance.getId(this.$options.name)}},props:{text:{type:String,required:!1,default:void 0},checked_by_default:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},has_error:{type:Boolean,required:!1,default:!1}},methods:{toggle(e){e.stopPropagation(),this.is_checked=!this.is_checked,this.$emit("checked",this.is_checked,this.text)},blur(){this.$emit("blur")}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("label",{staticClass:"checkbox-line",class:{error:e.has_error}},[t("input",{staticClass:"checkbox",attrs:{type:"checkbox","aria-labelledby":e.id,disabled:e.disabled,"aria-disabled":e.disabled},on:{click:e.toggle,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggle.apply(null,arguments)},blur:e.blur}}),t("span",{staticClass:"checkbox-border",class:{checked:e.is_checked}}),t("span",{staticClass:"line-text",domProps:{innerHTML:e._s(e.text)}})])},[],0,0,"39b5a856").exports;const bx=CC(Xn.extend({name:"DebugCheckboxLine",props:{debug_prop:{type:String,required:!0},text:{type:String,required:!1,default:void 0},description:{type:String,required:!1,default:void 0},checked_by_default:{type:Boolean,required:!1,default:!1}},methods:{on_checked(e){this.$emit("value_changed",this.debug_prop,e)}},components:{CheckboxLine:vx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("checkbox-line",{staticClass:"checkbox",attrs:{text:e.text,checked_by_default:e.checked_by_default},on:{checked:e.on_checked}}),t("div",{staticClass:"desc",domProps:{innerHTML:e._s(e.description)}}
679)],1)},[],0,0,"801dc411").exports;const wx=CC(Xn.extend({name:"VuexViewer",data:()=>({current_store:void 0,wrap_data:!1}),computed:{current_store_data(){if(null!=this.current_store)return JSON.stringify(this.$kuistore.state[this.current_store],null,1)},vuex_items(){return Object.entries(this.$kuistore.state).map(([e,t])=>({_key:e,...t}))}},methods:{on_store_change(e){const t=e.currentTarget;this.current_store=t?.value},on_wrap(){this.wrap_data=!this.wrap_data}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("div",[t("div",[e._v("Vuex Store viewer")]),t("div",{staticClass:"controls"},[t("select",{on:{change:e.on_store_change}},[t("option",{domProps:{value:void 0}},[e._v("Select Vuex store")]),e._l(e.vuex_items,function(n){return t("option",{key:n._key,domProps:{value:n._key}},[e._v(" "+e._s(n._key)+" ")])})],2),t("span",[t("input",{attrs:{id:"wrap_toggle",type:"checkbox"},on:{change:e.on_wrap}}),t("label",{attrs:{for:"wrap_toggle"}},[e._v("Wrap data")])])])]),e.current_store?t("div",{staticClass:"store-data-container"},[t("pre",{class:{wrap:e.wrap_data}},[e._v(e._s(e.current_store_data))])]):e._e()])},[],0,0,"52b4564d").exports;const kx=CC(Xn.extend({name:"DebugSelector",props:{debug_prop:{type:String,required:!0},text:{type:String,required:!0},description:{type:String,required:!1,default:void 0},options:{type:Array,required:!0},default_opt:{type:String,required:!1,default:void 0}},methods:{on_change(e){this.$emit("option_changed",this.debug_prop,e.currentTarget?.value)}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("p",{staticClass:"title"},[t("span",[e._v(e._s(e.text))]),t("select",{on:{change:e.on_change}},e._l(e.options,function(n,r){return t("option",{key:r,domProps:{value:n,selected:n===e.default_opt}},[e._v(" "+e._s(n)+" ")])}),0)]),t("div",{staticClass:"desc",domProps:{innerHTML:e._s(e.description)}})])},[],0,0,"c6e5c05d").exports;const Cx=CC(Xn.extend({name:"KanopyMenuBrowseSection",props:{is_submenu:{type:Boolean,required:!1,default:!1}},mounted(){setTimeout(()=>{const e=JC.instance.getFirstFocusableElement(this.$el);JC.instance.findFocus(e,void 0)},100)},computed:{toggles(){return this.$kuistore.getters["debug/toggles"]},selectors(){return this.$kuistore.getters["debug/selectors"]}},methods:{on_back(){this.$emit("back")},on_close(){this.$emit("close")},on_value_changed(e,t){this.$kuistore.dispatch("debug/set_debug_property",{key:e,value:t})},handle_focus(e){JC.instance.trapFocus(e,this.$el)},logout(){this.$kuistore.dispatch("user/logout").then(()=>{"/"===Aa.path_without_vp_subpath(this.$route)?Uu(this.$nuxt.context):Ia.navigate(this.$router,"/")}).catch(()=>{})},clear_dismissed_info_banners(){this.$kuistore.commit("site/clear_dismissed_info_banners")},send_error(){fake_fn()}},components:{KanopyMenuHeaderNavigation:gx,DebugCheckboxLine:bx,VuexViewer:wx,DebugSelector:kx,KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"debug-menu",on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("kanopy-menu-header-navigation",{attrs:{is_submenu:e.is_submenu,title:"Debug"},on:{back:e.on_back,close:e.on_close}}),t("div",{staticClass:"scroller"},[t("div",{staticClass:"debug-container"},e._l(e.toggles,function(n){return t("debug-checkbox-line",{key:n.key,attrs:{debug_prop:n.key,text:n.title,description:n.description,checked_by_default:n.value},on:{value_changed:e.on_value_changed}})}),1),t("div",{staticClass:"debug-container"},e._l(e.selectors,function(n){return t("debug-selector",{key:n.key,attrs:{debug_prop:n.key,text:n.title,description:n.description,default_opt:n.value,options:n.options},on:{option_changed:e.on_value_changed}})}),1),t("vuex-viewer",{staticClass:"debug-container"}),t("div",{staticClass:"debug-container"},[t("kanopy-link",{staticClass:"debug-button",attrs:{to:"http://kanopy.idm.oclc.org/logout",target:"_blank"},on:{click:e.logout}},[e._v(" Log out of EZ Proxy and Kanopy ")])],1),t("div",{staticClass:"debug-container"},[t("button",{staticClass:"debug-button",on:{click:e.clear_dismissed_info_banners}},[e._v("Clear dismissed info banners")])]),t("div",{staticClass:"debug-container"},[t("button",{staticClass:"debug-button",on:{click:e.send_error}}
679,[e._v("Cause an error")])])],1)],1)},[],0,0,"66e0dad4").exports,Tx=Xn.extend({name:"KanopyMenu",data:()=>({item_selected:void 0,login_redirect_path:void 0,menu_height:window.innerHeight,menu_width:324,vw:window.innerWidth,submenu_open:!1}),watch:{$route(e){this.login_redirect_path=this.get_login_redirection_path(e)},show_menu(){this.menu_height=window.innerHeight,this.on_resize(),this.show_menu&&(this.$nuxt.$emit(Mu.A11yHideMainContent),this.$nextTick(()=>{JC.instance.getFirstFocusableElement(this.$el)?.focus()}))}},created(){this.login_redirect_path=this.get_login_redirection_path(this.$router.currentRoute)},beforeDestroy(){this.$kuistore.dispatch("site/toggle_menu",!1)},computed:{about_kids_item:()=>({title:"About Kanopy Kids".localized(),link:"/about-kids"}),browse_item:()=>({title:"Browse".localized(),has_submenu:!0}),create_account_path(){return`/signup/create/${this.$kuistore.getters["site/vp_routing_type"]}${this.login_redirect_path??""}`},debug_item:()=>({title:"Debug menu",has_submenu:!0}),full_name(){return this.$kuistore.getters["user/fullname"]},has_user_account_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},has_kids_access(){return this.$kuistore.state.site.domain?.hasKids??!1},institution_name(){return this.$kuistore.getters["site/institution_name"]},is_in_kids_mode(){return this.$kuistore.state.site.is_in_kids_mode},is_kids_only_vp(){return this.$kuistore.getters["site/is_kids_only_vp"]},is_localized_vp(){return this.$kuistore.state.site.domain?.isLocalizationEnabled??!1},is_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},kids_item:()=>({title:"Kanopy Kids",link:""}),language_item(){const e=ba.instance.currentLocaleCode().toUpperCase();return{title:`${"Language".localized()}: ${e}`,link:this.profile_url}},link_device_item:()=>({title:"Link Device".localized(),link:"/link"}),login_path(){return`/login${this.login_redirect_path??""}`},logout_item:()=>({title:"Log Out".localized()}),max_tickets_per_month(){return this.is_in_kids_mode?void 0:this.$kuistore.getters["user/current_membership"]?.maxTicketsPerMonth},domain_uses_tickets(){return this.$kuistore.getters["site/domain_uses_tickets"]},menu_css(){return{"--menu-height":`${this.menu_height}px`}},menu_items(){let e=[];return this.is_logged_in?(this.vw<700&&(e=e.concat([this.browse_item,this.my_lists_item,this.search_item])),this.vw<=WT&&this.has_kids_access&&!this.is_in_kids_mode&&e.push(this.kids_item),!this.is_kids_only_vp&&this.is_in_kids_mode||(e=e.concat([this.my_account_item,this.link_device_item])),this.is_in_kids_mode&&e.push(this.about_kids_item),this.is_kids_only_vp&&e.push(this.parental_controls_item),this.is_in_kids_mode||(e=e.concat([this.help_item,this.support_item])),this.is_localized_vp&&e.push(this.language_item),e.push(this.logout_item)):(this.vw<700&&(e=e.concat([this.browse_item,this.search_item])),e=e.concat([this.help_item,this.support_item])),this.$kuistore.state.site.environment!==_a.PROD&&e.push(this.debug_item),e},my_account_item(){return{title:"My Account".localized(),link:this.profile_url}},my_lists_item:()=>({title:"My Lists".localized(),link:"/mylists"}),parental_controls_item(){return{title:"Parental Controls".localized(),link:this.parental_controls_url}},parental_controls_url(){return null==this.user_id?void 0:`/user/${this.user_id}/parental-controls`},profile_url(){return null==this.user_id?void 0:`/user/${this.user_id}/information`},remaining_tickets(){return this.$kuistore.getters["user/current_membership"]?.ticketsAvailable},search_item:()=>({title:"Search".localized(),link:"/search"}),show_kids_button(){return this.is_in_kids_mode&&!this.is_kids_only_vp&&this.vw<=WT},show_menu(){return this.$kuistore.state.site.show_menu},help_item:()=>({title:"Help".localized(),link:"https://help.kanopy.com/hc/en-us",in_new_tab:!0}),support_item:()=>({title:"Support".localized(),link:"https://survey.alchemer.com/s3/6586124/Kanopy-Support-Form",in_new_tab:!0}),user_id(){return this.$kuistore.state.user.user?.userId}},methods:{get_login_redirection_path:e=>Yf(e),is_click_only(e){return e===this.search_item},on_back(){this.item_selected=void 0,this.submenu_open=!1,this.on_resize()},on_close(){this.item_selected=void 0,this.submenu_open=!1,this.$kuistore.dispatch("site/toggle_menu",!1),this.$nuxt.$emit(Mu.A11yShowMainContent);const e=document.getElementById(XC.HeaderMenuButton);JC.instance.findFocus(e,void 0)},on_exit_kids_click(e){this.send_analytics(e),this.on_close()},on_select(){this.on_back(),this.on_close()},async on_menu_item_clicked(e){let t=!0;switch(e){case this.browse_item:this.item_selected=this.browse_item,t=!1,this.submenu_open=!0;break;case this.kids_item:this.send_analytics(mf.Kids),this.on_close();const e=this.is_in_kids_mode;e?await this.$kuistore.dispatch("site/switch_to_adult",!1):await this.$kuistore.dispatch("site/switch_to_kids"),this.is_in_kids_mode!==e&&Ia.navigate(this.$router,"/");break;case this.search_item:this.send_analytics(mf.Search);Aa.path_without_vp_subpath(this.$route).startsWith("/search")||(this.$kuistore.dispatch("search/reset"),Ia.navigate(this.$router,"/search"));break;case this.logout_item:t=!1,this.is_in_kids_mode&&this.$kuistore.getters["user/has_parental_control_on"]&&this.on_close(),this.$kuistore.dispatch("user/logout").then(()=>{"/"===Aa.path_without_vp_subpath(this.$route)?Uu(this.$nuxt.context):Ia.navigate(this.$router,"/")}).catch(()=>{}).finally(()=>{this.on_close()});break;case this.my_lists_item:this.send_analytics(mf.MyLists);break;case this.my_account_item:this.send_analytics(mf.Account);break;case this.debug_item:this.item_selected=this.debug_item,this.on_resize(),t=!1,this.submenu_open=!0}t&&this.on_close()},on_submenu_back_click(e){this.item_selected=void 0,this.submenu_open=!1,this.on_resize();const t=this.$refs.submenu_link.findIndex(t=>t.$el.title===e.title),n=-1===t?this.$el:this.$refs.submenu_link[t].$el;this.$nextTick(()=>{JC.instance.findFocus(n,void 0)})},on_resize:kT(function(){this.vw=window.innerWidth,window.innerWidth<=450?this.menu_width=window.innerWidth:this.item_selected===this.debug_item?this.menu_width=500:this.menu_width=324,this.menu_height=window.innerHeight},300),send_analytics(e){this.$emit("click",e)},handle_focus(e){JC.instance.trapFocus(e,this.$el)}},components:{InitialEmblem:eS,KanopyLink:EC,SideViewOverlay:mx,KanopyMenuFooter:px,KanopyMenuHeaderNavigation:gx,KanopyMenuBrowseSection:yx,HeaderKidsButton:UT,DebugMenu:Cx}}),Sx="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='7px'%20viewBox='0%200%2016%207'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2052.6%20(67491)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eGroup%203%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cpolygon%20id='path-1'%20points='0%200.0689655172%2016%200.
6790689655172%2016%207.06896552%200%207.06896552'%3e%3c/polygon%3e%3c/defs%3e%3cg%20id='Combined-Site-'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='4.-EDU-VP-Landing-1440'%20transform='translate(-294.000000,%20-335.000000)'%3e%3cg%20id='Group'%20transform='translate(81.000000,%20326.000000)'%3e%3cg%20id='Group-3'%20transform='translate(213.000000,%208.931034)'%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cg%20id='Clip-2'%3e%3c/g%3e%3cpath%20d='M11.9684136,2.41047467%20C11.9684136,1.71629572%2011.9617203,1.12195313%2011.9706447,0.527610545%20C11.9778957,0.0399800904%2012.2341907,-0.0642567636%2012.5836333,0.241027954%20C13.7145109,1.22839024%2014.8311654,2.23197937%2015.9235568,3.25949622%20C16.0298119,3.35960761%2016.0239554,3.76472868%2015.9143537,3.86896553%20C14.8275399,4.90308313%2013.7111643,5.90667226%2012.5928365,6.90778611%20C12.4865814,7.0026719%2012.2330752,7.10360838%2012.1817604,7.05740313%20C12.0660232,6.95289124%2011.9837522,6.76009432%2011.977059,6.59975108%20C11.9536327,6.02988628%2011.9681347,5.45837128%2011.9681347,4.77189321%20L11.1373371,4.77189321%20C7.74442543,4.77189321%204.35151378,4.77244328%200.958602131,4.77161818%20C0.00927850392,4.77134315%20-0.00215577009,4.76556749%200.00286415509,3.87116578%20C0.0117884665,2.21245215%20-0.182315307,2.41680039%201.49406082,2.41267492%20C4.70095635,2.40497404%207.90785188,2.41047467%2011.1144685,2.41047467%20L11.9684136,2.41047467%20Z'%20id='Fill-1'%20fill='%23FFFFFF'%20mask='url(%23mask-2)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";const xx=CC(Tx,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("side-view-overlay",{attrs:{view_width:e.menu_width,is_right_side:!0,show:e.show_menu,is_menu:!0},on:{close:e.on_close}},[t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.on_resize,expression:"on_resize"},{name:"windowescape",rawName:"v-windowescape",value:e.on_close,expression:"on_close"}],staticClass:"menu-container",style:e.menu_css,attrs:{"aria-label":"Main Menu".localized(),role:"dialog","aria-modal":"true",tabindex:"-1"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("div",{staticClass:"menu menu-panel",class:{"has-submenu":null!=e.item_selected},attrs:{"aria-hidden":e.submenu_open}},[t("kanopy-menu-header-navigation",{on:{close:e.on_close}}),t("div",{staticClass:"scroller"},[e.has_user_account_logged_in?t("div",{attrs:{"data-clarity-mask":"true"}},[t("div",{staticClass:"info-container"},[t("initial-emblem",{attrs:{in_menu:!0}}),t("div",{staticClass:"info"},[t("h1",{staticClass:"name"},[e._v(e._s(e.full_name))]),e.institution_name?t("div",{staticClass:"active-lib"},[e._v(e._s("Active Library".localized()))]):e._e(),e.institution_name?t("div",{staticClass:"institution"},[t("div",{staticClass:"dot"}),t("div",{staticClass:"active-lib-name"},[e._v(e._s(e.institution_name))])]):e._e(),e.domain_uses_tickets?t("div",{staticClass:"tickets"},[e._v(" "+e._s(e.remaining_tickets)+"/"+e._s(e.max_tickets_per_month)+" "+e._s("Tickets".localized(void 0,e.max_tickets_per_month))+" ")]):e._e()])],1)]):t("div",[t("kanopy-link",{staticClass:"create-account",attrs:{title:"Create an account".localized(),to:e.create_account_path,use_vp_subpath:!0}}),t("kanopy-link",{staticClass:"login-link",attrs:{to:e.login_path}},[t("span",[e._v(e._s("Have a Kanopy account?".localized()))]),t("span",[t("span",{staticClass:"login"},[e._v(e._s("Log in".localized()))]),t("img",{staticClass:"right-arrow",attrs:{src:Sx,alt:""}})])])],1),t("div",{staticClass:"break"}),t("div",{staticClass:"menu-links"},[e.show_kids_button?t("header-kids-button",{staticClass:"exit-kids",on:{click:e.on_exit_kids_click}}):e._e(),e._l(e.menu_items,function(n,r){return t("kanopy-link",{key:r,ref:n.has_submenu?"submenu_link":"",refInFor:!0,staticClass:"menu-link",attrs:{title:n.title,to:n.link,in_new_tab:n.in_new_tab,"aria-expanded":n.has_submenu?"false":void 0,click_only:e.is_click_only(n)},on:{click:function(t){return e.on_menu_item_clicked(n)}}})})],2),t("kanopy-menu-footer")],1)],1),t("div",{staticClass:"submenu-container menu-panel",class:{submenu:null!=e.item_selected}},[e.item_selected===e.browse_item?t("kanopy-menu-browse-section",{attrs:{title:"Browse".localized(),is_submenu:!0},on:{back:function(t){return e.on_submenu_back_click(e.browse_item)},category_selected:e.on_select,close:e.on_close}}
679):e._e(),e.item_selected===e.debug_item?t("debug-menu",{attrs:{is_submenu:!0},on:{back:function(t){return e.on_submenu_back_click(e.debug_item)},close:e.on_close}}):e._e()],1)])])},[],0,0,"7a49fc1f").exports;const Ex=CC(Xn.extend({name:"ContentSection",props:{title:{type:String,required:!1,default:""},action_button_title:{type:String,required:!1,default:void 0},show_action_button:{type:Boolean,required:!1,default:!1},disable_action_button:{type:Boolean,required:!1,default:!1},disable_action_text:{type:String,required:!1,default:""},action_button_expands:{type:Boolean,required:!1,default:!1},action_button_to:{type:String,required:!1,default:void 0},description:{type:String,required:!1,default:void 0}},computed:{show_title_action_row(){return!Va.isEmpty(this.title)||!Va.isEmpty(this.action_button_title)},disable_text(){return this.disable_action_button?this.disable_action_text:void 0},action_button_aria_expanded(){return this.action_button_expands?"false":void 0}},methods:{on_action_button_pressed(){this.$emit("action_click")}},components:{OrangeLink:YS,HoverableDiv:DT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"content-section"},[e.show_title_action_row?t("div",{staticClass:"title-action-row",class:{"has-desc":null!=e.description}},[t("h2",{staticClass:"section-title",domProps:{innerHTML:e._s(e.title)}}),e.show_action_button?t("hoverable-div",{attrs:{tooltip_text:e.disable_text}},[t("orange-link",{attrs:{title:e.action_button_title,disabled:null!=e.disable_text,"aria-expanded":e.action_button_aria_expanded,to:e.action_button_to},on:{click:e.on_action_button_pressed}})],1):e._e()],1):e._e(),e.description?t("div",{staticClass:"desc"},[e._v(e._s(e.description))]):e._e(),t("div",{staticClass:"section-content"},[e._t("default")],2)])},[],0,0,"fe8077e7").exports;const Ix=CC(Xn.extend({name:"ToggleSwitch",data(){return{id:tx.instance.getId(this.$options.name),toggle_on:this.toggle_initial_state}},props:{toggle_initial_state:{type:Boolean,required:!1,default:!1},main_text:{type:String,required:!1,default:""},accessible_label:{type:String,required:!1,default:void 0},toggle_state_override:{type:Boolean,required:!1,default:void 0},icon:{type:Function,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1}},watch:{toggle_state_override(e){this.toggle_on=e}},computed:{labelledby_id(){return this.accessible_label??this.id}},methods:{toggle(){this.toggle_on=!this.toggle_on,this.$emit("toggle",this.toggle_on)}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"toggle-switch-row",class:{disabled:e.disabled},on:{click:e.toggle,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggle.apply(null,arguments)}}},[t("label",{staticClass:"toggle-main-text",attrs:{id:e.id,"aria-hidden":"true"}},[t("span",{domProps:{innerHTML:e._s(e.main_text)}}),null!=e.icon?t(e.icon,{tag:"component",staticClass:"icon"}):e._e()],1),t("input",{staticClass:"toggle-switch",attrs:{type:"checkbox",role:"switch","aria-labelledby":e.labelledby_id,disabled:e.disabled},domProps:{checked:e.toggle_on}})])},[],0,0,"e22a53bd").exports;const Ax=CC(Xn.extend({name:"CookiePreferencesMenu",data:()=>({menu_height:window.innerHeight,menu_width:476,new_consent:{...Ba.instance.consent},research_remarketing_linked_state:void 0}),props:{},watch:{show_menu(){this.show_menu&&(this.new_consent={...Ba.instance.consent},this.on_resize(),this.$nuxt.$emit(Mu.A11yHideMainContent),this.$nextTick(()=>JC.instance.getFirstFocusableElement(this.$el)?.focus()))}},computed:{show_menu(){return this.$kuistore.state.site.show_cookie_preferences_menu},menu_css(){return{"--menu-height":`${this.menu_height}px`}},is_performance_reliability_on(){return this.new_consent.performance},is_research_analytics_on(){return null==this.research_remarketing_linked_state?this.new_consent.analytics:this.research_remarketing_linked_state},remarketing_text:()=>'These cookies make OverDrive services, their content, and advertisements for OverDrive products or services more relevant to your interests, limit the number of ads, and measure the effectiveness of ads. These cookies are <span class="bold">not</span> in products such as Libby, Sora, and the Kanopy app or in libraries\' OverDrive collection websites. For more information about cookies, visit the <a href="https://www.consumer.ftc.gov/articles/0042-online-tracking" target="_blank">U.S. Federal Trade Commission (FTC)</a>, <a href="http://www.allaboutcookies.org/" target="_blank">All About Cookies</a>, or <a href="http://www.youronlinechoices.eu/" target="_blank">Your Online Choices (EU)</a>.'.localized()},methods:{toggle_performance_reliability(e){this.new_consent.performance=e},toggle_research_analytics(e){this.new_consent.analytics=e,this.research_remarketing_linked_state=e},save_cookie_preferences_and_close(){Ba.instance.updateConsent(this.new_consent,!0),this.close_menu()},handle_focus(e){JC.instance.trapFocus(e,this.$el)},on_close(){Ba.instance.updateConsent(Ba.instance.consent,!0),this.close_menu()},close_menu(){this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!1),this.$nuxt.$emit(Mu.A11yShowMainContent),this.$nextTick(()=>JC.instance.focusElementPostNavOrAction(ZC.CookiePreferencesMenu,!0))},on_resize:kT(function(){this.menu_width=Math.min(window.innerWidth,476),this.menu_height=window.innerHeight},300)},components:{SideViewOverlay:mx,KanopyMenuHeaderNavigation:gx,KanopyLink:EC,ContentSection:Ex,ToggleSwitch:Ix,CTAButton:IC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("side-view-overlay",{attrs:{view_width:e.menu_width,is_right_side:!0,show:e.show_menu,is_menu:!0},on:{close:e.on_close}},[t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.on_resize,expression:"on_resize"},{name:"windowescape",rawName:"v-windowescape",value:e.on_close,expression:"on_close"}],staticClass:"menu-container",style:e.menu_css,attrs:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-label":"Cookie Settings".localized()},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("div",{staticClass:"menu menu-panel"},[t("kanopy-menu-header-navigation",{on:{close:e.on_close}}),t("div",{staticClass:"scroller"},[t("h1",[e._v(e._s("Cookie Settings".localized()))]),t("p",[e._v(" "+e._s("Kanopy uses required cookies to ensure basic functionality of our website and services. We use additional cookies to make sure our services are reliable and performing well. We also use cookies to anonymously analyze user behavior so we can improve the features and services that matter most to our users. You can adjust your cookie settings at any time.".localized())+" ")]),t("kanopy-link",{staticClass:"privacy-link",attrs:{title:"Learn more about how we use and protect your information.".localized(),to:"https://www.overdrive.com/policies/cookie-policy",in_new_tab:!0}}),t("content-section",{staticClass:"cookie-section"},[t("div",{staticClass:"content-section-header"},[t("div",{staticClass:"cookie-type"},[e._v(e._s("Required".localized()))]),t("div",{staticClass:"always-active-cookie"},[e._v(e._s("Always Active".localized()))])]),t("p",[e._v(" "+e._s("These cookies are necessary so you can do things like log in and see available content. Our services wonât work without these cookies.".localized())+" ")])]),t("content-section",{staticClass:"cookie-section"},[t("div",{staticClass:"content-section-header"},[t("div",{staticClass:"cookie-type",attrs:{id:"performance","aria-hidden":"true"}},[e._v(" "+e._s("Performance & reliability".localized())+" ")]),t("toggle-switch",{staticClass:"toggle-cookie",attrs:{toggle_initial_state:e.is_performance_reliability_on,accessible_label:"performance"},on:{toggle:e.toggle_performance_reliability}}
679)],1),t("p",[e._v(" "+e._s("These cookies notify us when our services arenât working as expected so we can fix problems.".localized())+" ")])]),t("content-section",{staticClass:"cookie-section"},[t("div",{staticClass:"content-section-header"},[t("div",{staticClass:"cookie-type",attrs:{id:"research","aria-hidden":"true"}},[e._v(" "+e._s("Research & analytics".localized())+" ")]),t("toggle-switch",{staticClass:"toggle-cookie",attrs:{toggle_initial_state:e.is_research_analytics_on,accessible_label:"research",toggle_state_override:e.research_remarketing_linked_state},on:{toggle:e.toggle_research_analytics}})],1),t("p",[e._v(" "+e._s("These cookies gather anonymous data about how our services are used. This allows us to improve the features and services that our users care about.".localized())+" ")])]),t("content-section",{staticClass:"cookie-section"},[t("div",{staticClass:"content-section-header"},[t("div",{staticClass:"cookie-type",attrs:{id:"remarketing","aria-hidden":"true"}},[e._v(" "+e._s("Remarketing and targeting cookies (OverDrive websites only)".localized())+" ")]),t("toggle-switch",{staticClass:"toggle-cookie",attrs:{toggle_initial_state:e.is_research_analytics_on,accessible_label:"remarketing",toggle_state_override:e.research_remarketing_linked_state},on:{toggle:e.toggle_research_analytics}})],1),t("p",{staticClass:"remarketing",domProps:{innerHTML:e._s(e.remarketing_text)}}),t("p",{staticClass:"remarketing-note"},[e._v(" "+e._s("*Opting out of research cookies will automatically opt you out of remarketing cookies and vice versa.".localized())+" ")])]),t("c-t-a-button",{staticClass:"confirm-choices",attrs:{title:"Confirm my choices".localized()},on:{click:e.save_cookie_preferences_and_close}})],1)],1)])])},[],0,0,"1de465e4").exports;const Px=CC(Xn.extend({name:"GPCBannerContent",mounted(){window.addEventListener("click",this.on_background_click),JC.instance.getFirstFocusableElement(this.$el)?.focus()},destroyed(){window.removeEventListener("click",this.on_background_click)},methods:{close(){Ca.instance.saveObjectWithProperties(ka.UIState,{"gpc-banner-dismissed":!0}),this.$emit("close")},on_background_click(e){this.$el.contains(e.target)||this.close()},handle_focus(e){JC.instance.trapFocus(e,this.$el)}},components:{CloseIconSvg:tT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowescape",rawName:"v-windowescape",value:e.close,expression:"close"}],attrs:{"aria-label":"Global Privacy Control".localized(),role:"alertdialog"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("p",{staticClass:"text"},[e._v(" "+e._s("Based on your browser's privacy settings, all non-required cookies are disabled for this site.".localized())+" ")]),t("button",{staticClass:"close-button",attrs:{"aria-label":"Close banner".localized()},on:{click:e.close}},[t("close-icon-svg",{staticClass:"close-icon",attrs:{stroke_width:2,"aria-hidden":"true"}})],1)])},[],0,0,"58956a3c").exports;const Ox=CC(Xn.extend({name:"PrivacyShieldIconSvg",props:{color:{type:String,required:!1,default:"#F9F9F9"}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M16 8L10.46 14L8 11.7406",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{d:"M21.9568 5.09471C17.6577 4.32356 15.8803 3.7524 12 2C8.1197 3.7524 6.34228 4.32356 2.04323 5.09471C1.26438 17.4389 11.2587 21.7014 12 22C12.7413 21.7014 22.7356 17.4389 21.9568 5.09471Z",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},[],0,0,"a91b7219").exports;const Lx=CC(Xn.extend({name:"GDPRCookieBannerContent",computed:{privacy_text_content:()=>"We use cookies to help you navigate our website and to enable our core services. Weâd like to use other cookies to improve performance and gather anonymous usage data so we can design better services.".localized()},methods:{allow_all_cookies(){Ba.instance.allowAllScopes(!0),this.$emit("close")},customize_cookies(){this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!0),this.$emit("close")},on_close_clicked(){Ba.instance.updateConsent(Ba.instance.consent,!0),this.$emit("close")}},components:{PrivacyShieldIconSvg:Ox,CTAButton:IC,CTAButtonGray:GC,CloseIconSvg:tT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"content-container"},[t("div",{staticClass:"privacy-shield-image-container",attrs:{role:"img","aria-hidden":"true"}},[t("privacy-shield-icon-svg",{staticClass:"privacy-shield-icon",attrs:{color:"#DE3F00"}})],1),t("div",{staticClass:"privacy-text-container"},[t("p",{staticClass:"privacy-text-title"},[e._v(e._s("Your privacy matters".localized()))]),t("p",{staticClass:"privacy-text-content"},[e._v(e._s(e.privacy_text_content))])]),t("div",{staticClass:"buttons-container"},[t("c-t-a-button",{staticClass:"allow-all-button",attrs:{title:"Allow All".localized()},on:{click:e.allow_all_cookies}}),t("c-t-a-button-gray",{staticClass:"customize-button",attrs:{title:"Customize".localized(),"aria-expanded":"false"},on:{click:e.customize_cookies}})],1),t("button",{staticClass:"close-button",attrs:{"aria-label":"Close banner".localized()},on:{click:e.on_close_clicked}},[t("close-icon-svg",{staticClass:"close-icon",attrs:{stroke_width:2,"aria-hidden":"true"}})],1)])},[],0,0,"d23ac34f").exports;const Dx=CC(Xn.extend({name:"NonGDPRCookieBannerContent",data:()=>({opening_preferences_menu:!1}),mounted(){this.$refs.privacy.querySelector("button")?.addEventListener("click",this.open_preferences_menu),window.addEventListener("click",this.on_background_click),JC.instance.getFirstFocusableElement(this.$el)?.focus()},destroyed(){window.removeEventListener("click",this.on_background_click)},computed:{privacy_text_content:()=>'By accessing this site, you agree to our {terms_and_conditions}, our {privacy_policy}, and the use of "cookies" and other technologies to collect information about your use of the website and develop targeted ads. You may limit the use of these technologies by clicking "{cookie_settings}." To learn more about how these technologies are used and the information gathered by them, visit our {cookie_policy}.'.localized({terms_and_conditions:`<a href="/terms">${"Terms and Conditions".localized()}</a>`,privacy_policy:`<a href="/privacy">${"Privacy Policy".localized()}</a>`,cookie_settings:`<button>${"Cookie Settings".localized()}</button>`,cookie_policy:`<a href="https://www.overdrive.com/policies/cookie-policy">${"Cookie Policy".localized()}</a>`})},methods:{on_close(){Ba.instance.allowAllScopes(!0),this.close()},open_preferences_menu(){Ba.instance.allowAllScopes(!1),this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!0),this.opening_preferences_menu=!0,this.close()},close(){this.$refs.privacy.querySelector("button")?.removeEventListener("click",this.open_preferences_menu),this.$emit("close")},on_background_click(e){this.$el.contains(e.target)||this.on_close()},handle_focus(e){JC.instance.trapFocus(e,this.$el)}},components:{CloseIconSvg:tT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowescape",rawName:"v-windowescape",value:e.on_close,expression:"on_close"}
679],staticClass:"content-container",on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)}}},[t("button",{staticClass:"close-button",attrs:{"aria-label":"Close banner".localized()},on:{click:e.on_close}},[t("close-icon-svg",{staticClass:"close-icon",attrs:{stroke_width:2,"aria-hidden":"true"}})],1),t("div",{staticClass:"privacy-text-container"},[t("p",{ref:"privacy",staticClass:"privacy-text-content",domProps:{innerHTML:e._s(e.privacy_text_content)}})])])},[],0,0,"e1f433fb").exports;const Rx=CC(Xn.extend({name:"CookieBanner",mounted(){this.has_cookies_preferences_set()||Ba.instance.disallowAllScopes(!1)},computed:{show_gdpr(){return this.$kuistore.getters["site/is_in_gdpr_region"]}},methods:{close(){this.$emit("close")},has_cookies_preferences_set:()=>null!=Ca.instance.get(ka.CookiePreferences)},components:{GDPRCookieBannerContent:Lx,NonGDPRCookieBannerContent:Dx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_gdpr?t("g-d-p-r-cookie-banner-content",{staticClass:"gdpr-banner",attrs:{"aria-label":"Cookie preferences banner".localized(),role:"alert"},on:{close:e.close}}):t("non-g-d-p-r-cookie-banner-content",{staticClass:"non-gdpr-banner",attrs:{"aria-label":"Cookie preferences banner".localized(),role:"alertdialog"},on:{close:e.close}})},[],0,0,"6317e09a").exports;const Mx=CC(Xn.extend({name:"CookieAndPrivacyStickyBanner",data:()=>({is_open:!1}),mounted(){this.is_open=!0},computed:{show_gpc:()=>navigator.globalPrivacyControl&&!Ca.instance.get(ka.UIState)?.["gpc-banner-dismissed"],has_cookies_preferences_set:()=>null!=Ca.instance.get(ka.CookiePreferences)},methods:{close(){this.is_open=!1,document.documentElement.focus()}},components:{GPCBannerContent:Px,CookieBanner:Rx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("transition",{attrs:{name:"banner"}},[e.show_gpc&&e.is_open?t("g-p-c-banner-content",{staticClass:"gpc-banner",on:{close:e.close}}):!e.has_cookies_preferences_set&&e.is_open?t("cookie-banner",{on:{close:e.close}}):e._e()],1)},[],0,0,"e28c3b86").exports;const Nx=CC(Xn.extend({name:"Chatterbox",data:()=>({last_announcements:{},queue:[],assertiveness:"polite",prevent_duplicate_text:!1}),created(){this.$nuxt.$on(Mu.LiveRegionUpdate,e=>this.say(e))},beforeDestroy(){this.$nuxt.$off(Mu.LiveRegionUpdate)},methods:{async announce_next_item(){for(;this.$el.childNodes.length>0;)this.$el.removeChild(this.$el.childNodes[0]);if(0===this.queue.length)return;const e=document.createElement("div"),t=this.queue.shift();e.innerHTML=t.text+(this.prevent_duplicate_text?"Â ":""),this.assertiveness=t.assertive&&!xa.isMacOSDevice()?"assertive":"polite",await this.$nextTick(),this.$el.appendChild(e),this.prevent_duplicate_text=!this.prevent_duplicate_text,setTimeout(()=>this.announce_next_item(),1e3),t.assertive,t.text},say(e){const t=this.last_announcements[e.text],n=(new Date).getTime();null!=t&&n-t<1e3||(this.last_announcements[e.text]=n,this.queue.push(e),1===this.queue.length&&this.announce_next_item())}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"chatterbox",attrs:{"aria-live":e.assertiveness}})},[],0,0,"1a63db4e").exports;const jx=CC(Xn.extend({name:"Toaster",data:()=>({queue:[],current_toast:void 0,timer:void 0}),watch:{current_toast(e){null==e&&this.$nextTick(this.pop_toast)}},created(){this.$nuxt.$on(Mu.ToasterPopToast,e=>this.queue_toast(e)),zC.setCSSVariable("--toast-duration","2000ms")},destroyed(){this.$nuxt.$off(Mu.ToasterPopToast,e=>this.queue_toast(e))},computed:{thumbnail(){return null==this.current_toast?.thumbnail?this.current_toast?.error?"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='11.25'%20stroke='%23F9F9F9'%20stroke-width='1.5'/%3e%3cpath%20d='M11.4352%2014.3216L11.0128%205.90881H13.072L12.632%2014.3216H11.4352ZM12.016%2018.2112C11.3472%2018.2112%2010.8368%2017.6656%2010.8368%2017.0144C10.8368%2016.416%2011.3472%2015.8704%2012.016%2015.8704C12.6496%2015.8704%2013.16%2016.416%2013.16%2017.0144C13.16%2017.6656%2012.6496%2018.2112%2012.016%2018.2112Z'%20fill='%23F9F9F9'/%3e%3c/svg%3e":void 0:this.current_toast.thumbnail}},methods:{queue_toast(e){this.queue.push(e),this.pop_toast()},pop_toast(){null==this.current_toast&&0!==this.queue.length&&(this.current_toast=this.queue.shift(),this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:this.current_toast?.a11y_text??this.current_toast?.text}),setTimeout(()=>{this.current_toast=void 0},4e3))}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"toaster"},[e.current_toast?t("div",{staticClass:"toast",class:{error:e.current_toast.error}},[null!=e.thumbnail?t("div",{staticClass:"thumbnail-container"},[t("img",{staticClass:"thumbnail",attrs:{src:e.thumbnail,alt:""}}
679)]):e._e(),t("div",{staticClass:"text",domProps:{innerHTML:e._s(e.current_toast.text)}})]):e._e()])},[],0,0,"d8f6fa32").exports;const Ux=CC(Xn.extend({name:"DeleteMembershipModal",computed:{membership(){return this.$kuistore.getters["site/selected_membership"]},membership_name(){return this.membership?.sitename},confirmation_text(){return"Are you sure you want to delete {membership_name} from your libraries?".localized({membership_name:`<span class="membership-name">${this.membership_name}</span>`})},show_delete_membership_modal(){return this.$kuistore.getters["site/show_delete_membership_modal"]},previous_focus(){return document.getElementById(this.$kuistore.state.site.focus_ids.previous)},fallback_focus(){return document.getElementById(this.$kuistore.state.site.focus_ids.fallback)}},methods:{on_close_clicked(){this.hide_delete_membership_modal()},on_delete_clicked(){this.membership&&this.$kuistore.dispatch("user/delete_membership",this.membership).then(()=>{if(this.membership?.domainId===this.$kuistore.getters["site/domain_id"]){const e=this.$kuistore.getters["user/user_default_stem"],t=Aa.path_without_vp_subpath(this.$route);Ia.navigate(this.$router,`/${e}${t}`,!1)}this.hide_delete_membership_modal(),tm.notify("Deleted successfully".localized()).asSuccess().push()}).catch(e=>{tm.notify(e.userMessaging?.message??"An error occurred".localized()).asFailure().push()})},hide_delete_membership_modal(){this.$kuistore.dispatch("site/show_delete_membership_modal",!1)}},components:{KanopyModal:eT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_delete_membership_modal?t("kanopy-modal",{staticClass:"modal",attrs:{title:"Delete Library".localized(),show_title_gray_line:!0,show_close_button:!1,primary_action_title:"Delete".localized(),secondary_action_title:"Cancel".localized(),previous_focus:e.previous_focus,fallback_focus:e.fallback_focus},on:{close:e.on_close_clicked,primary_action:e.on_delete_clicked,secondary_action:e.on_close_clicked}},[t("p",{staticClass:"confirmation-text",domProps:{innerHTML:e._s(e.confirmation_text)}})]):e._e()},[],0,0,"7c21b834").exports;const $x=CC(Xn.extend({name:"DeletePlaylistModal",computed:{playlist(){return this.$kuistore.getters["site/selected_playlist"]},playlist_title(){return this.playlist?.title},confirmation_text(){return"Are you sure you want to delete {playlist_title}? This action cannot be undone.".localized({playlist_title:`<span class="playlist-title">${this.playlist_title}</span>`})},show_modal(){return this.$kuistore.getters["site/show_delete_playlist_modal"]},previous_focus(){return document.getElementById(this.$kuistore.state.site.focus_ids.previous)},fallback_focus(){return document.getElementById(this.$kuistore.state.site.focus_ids.fallback)}},methods:{on_close_clicked(){this.hide_modal()},on_delete_clicked(){this.$kuistore.dispatch("mylists/delete_playlist",this.playlist).then(()=>{tm.notify("Playlist deleted".localized()).asSuccess().push(),Ia.navigate(this.$router,"/mylists/customplaylists"),this.send_analytics(),this.hide_modal()}).catch(e=>{tm.notify(e.userMessaging?.message??"Failed to delete the playlist".localized()).asFailure().push()})},send_analytics(){gf.sendEvent(this.$nuxt.context,AT.PlaylistDelete)},hide_modal(){this.$kuistore.dispatch("site/show_delete_playlist_modal",!1)}},components:{KanopyModal:eT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_modal?t("kanopy-modal",{staticClass:"modal",attrs:{title:"Delete Playlist".localized(),show_title_gray_line:!0,show_close_button:!1,primary_action_title:"Delete".localized(),secondary_action_title:"Cancel".localized()},on:{close:e.on_close_clicked,primary_action:e.on_delete_clicked,secondary_action:e.on_close_clicked}},[t("p",{staticClass:"confirmation-text",domProps:{innerHTML:e._s(e.confirmation_text)}})]):e._e()},[],0,0,"d77a586d").exports,Bx=Xn.extend({name:"HeaderTicketMenuView",watch:{ticket_button_position(){this.reposition_ticket_button()}},mounted(){this.reposition_ticket_button()},computed:{num_tickets_available(){return this.$kuistore.getters["user/current_membership"]?.ticketsAvailable??0},show_menu(){return this.$kuistore.state.site.show_ticket_menu},ticket_button_position(){return this.$kuistore.state.site.ticket_button_position},ticket_menu_css(){return{"--ticket-button-left":`${this.ticket_button_position?.left}px`,"--ticket-button-bottom":`${this.ticket_button_position?.bottom}px`}},tickets_available_text(){return"You have {num} tickets remaining this month".localized({num:`<b>${this.num_tickets_available}</b>`},this.num_tickets_available)}},methods:{on_background_click(){this.$kuistore.dispatch("site/toggle_ticket_menu",!1)},reposition_ticket_button(){if(null==this.$refs.ticket_button)return;this.$refs.ticket_button.$el.style.left=`${this.ticket_button_position?.left}px`}},components:{CTAButton:IC,Modal:QC,HeaderTicketsButton:VT}}),Fx=""+new URL("ticket-gradient-BQsYy0IY.svg",import.meta.url).href;const qx=CC(Bx,function(){var e=this,t=e._self._c;
679return e._self._setupProxy,t("div",{staticClass:"ticket-menu-container"},[e.show_menu?t("modal",{style:e.ticket_menu_css,attrs:{opaque:!0},on:{close:e.on_background_click}},[e.show_menu?t("header-tickets-button",{ref:"ticket_button",staticClass:"ticket-button",style:e.ticket_menu_css,attrs:{"aria-hidden":"true"}}):e._e(),t("div",{staticClass:"ticket-menu"},[t("img",{staticClass:"ticket-gradient",attrs:{src:Fx,alt:""}}),t("div",{staticClass:"ticket-menu-content"},[t("p",{staticClass:"ticket-text",domProps:{innerHTML:e._s(e.tickets_available_text)}}),t("c-t-a-button",{staticClass:"learn-more-button",attrs:{title:"Learn more about tickets".localized(),to:"https://help.kanopy.com/en-us/4260.htm",in_new_tab:!0}})],1)]),t("div",{staticClass:"triangle-container",attrs:{"aria-hidden":"true"}},[t("div",{staticClass:"triangle-border"}),t("div",{staticClass:"triangle"})])],1):e._e()],1)},[],0,0,"dc693a51").exports;const Vx=CC(Xn.extend({name:"GlobalViews",computed:{show_channel_button(){return Aa.are_channels_enabled_for_env(this.$nuxt.context)}},components:{KidsGuideModal:ex,ParentalControlsModal:hx,KanopyMenu:xx,CookiePreferencesMenu:Ax,CookieAndPrivacyStickyBanner:Mx,Chatterbox:Nx,Toaster:jx,DeleteMembershipModal:Ux,DeletePlaylistModal:$x,HeaderTicketMenuView:qx,ChannelButton:nT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("chatterbox"),t("toaster"),t("kids-guide-modal"),t("parental-controls-modal"),t("kanopy-menu"),t("cookie-preferences-menu"),t("cookie-and-privacy-sticky-banner"),t("delete-membership-modal"),t("delete-playlist-modal"),t("header-ticket-menu-view"),e.show_channel_button?t("channel-button"):e._e()],1)},[],0,0,"f33833a1").exports;const Hx=CC(Xn.extend({name:"HTMLParagraph",props:{html:{type:String,required:!1,default:""}},methods:{on_click(e){if(null!=e.target&&null!=e.target.href&&e.target){const t=e.target;null!=t.href&&t.host===location.host&&(xC.preventDefault(e),Ia.navigate(this.$router,t.pathname))}}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("p",{domProps:{innerHTML:e._s(e.html)},on:{click:e.on_click}})},[],0,0,"191e27c1").exports,zx=Xn.extend({name:"NotificationItem",props:{notification:{type:Object,required:!1,default:void 0},is_onboarding:{type:Boolean,required:!1,default:!1}},mounted(){this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:this.message})},computed:{message(){return this.notification?.message??""},is_success(){return this.notification?.style===Jf.Success},is_failure(){return this.notification?.style===Jf.Failure},is_html_content(){return this.notification?.messageType===Qf.HTML}},methods:{dismiss(){JC.instance.findFocus(this.$kuistore.state.site.focus_ids.previous??void 0,void 0)}},components:{HTMLParagraph:Hx}});const Gx=CC(zx,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("button",{staticClass:"notification-section",class:{success:e.is_success,failure:e.is_failure,onboarding:e.is_onboarding},attrs:{"aria-label":e.message+". "+"Click to dismiss.".localized()},on:{click:e.dismiss}},[e.is_success?t("img",{staticClass:"success-icon",class:{onboarding:e.is_onboarding},attrs:{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg%20id='My-Account'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='My-Account---My-Libraries---Edit-Library06'%20transform='translate(-463.000000,%20-281.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cg%20id='Group'%20transform='translate(463.000000,%20281.000000)'%3e%3cg%20id='noun_checkmark_1579005'%3e%3cpath%20d='M12,0%20C5.37904391,0%200,5.37905455%200,12%20C0,18.6209727%205.37904391,24%2012,24%20C18.6209558,24%2024,18.6209727%2024,12%20C24,5.37905455%2018.6209558,0%2012,0%20Z%20M12,1.09090909%20C18.0313852,1.09090909%2022.9090909,5.96862545%2022.9090909,12%20C22.9090909,18.0313909%2018.0313852,22.9090909%2012,22.9090909%20C5.96861482,22.9090909%201.09090909,18.0313909%201.09090909,12%20C1.09090909,5.96862545%205.96861482,1.09090909%2012,1.09090909%20Z%20M17.7784091,7.35511364%20C17.6359362,7.36074001%201
6797.5013289,7.42192513%2017.4034091,7.52556818%20L10.3636364,14.7613636%20L7.27840909,11.5909091%20C7.1435097,11.4481385%206.9422713,11.3889146%206.75154099,11.4358532%20C6.56081067,11.4827918%206.41004152,11.6286446%206.35680788,11.8177146%20C6.30357424,12.0067846%206.35609659,12.2098751%206.49431818,12.3494318%20L9.97159091,15.9204545%20C10.0743625,16.0266751%2010.2158365,16.0866478%2010.3636364,16.0866478%20C10.5114362,16.0866478%2010.6529103,16.0266751%2010.7556818,15.9204545%20L18.1875,8.28409091%20C18.345199,8.12488396%2018.3894931,7.88543082%2018.2991808,7.68034668%20C18.2088685,7.47526255%2018.0023234,7.34627071%2017.7784091,7.35511364%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:""}}):e.is_failure?t("img",{staticClass:"failure-icon",class:{onboarding:e.is_onboarding},attrs:{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='failure_icon'%20fill='%23FFFFFF'%3e%3cpath%20d='M0,12%20C0,5.37423%205.37423,0%2012,0%20C18.6012,0%2024,5.39877%2024,12%20C24,18.6258%2018.6012,24%2012,24%20C5.37423,24%200,18.6258%200,12%20Z%20M0.858765,11.999925%20C0.858765,18.15945%205.8649025,23.141025%2011.99985,23.141025%20C18.13485,23.141025%2023.116425,18.134925%2023.14095,11.999925%20C23.14095,5.8404375%2018.13485,0.8588475%2011.99985,0.8588475%20C5.8403625,0.8588475%200.858765,5.8649775%200.858765,11.999925%20Z'%20id='Shape'%3e%3c/path%3e%3cpath%20d='M17.20245,6.7974525%20C17.0307,6.62568%2016.7607,6.62568%2016.58895,6.7974525%20L12,11.386425%20L7.411035,6.7974525%20C7.239255,6.62568%206.969315,6.62568%206.797535,6.7974525%20C6.625755,6.9692325%206.625755,7.2391725%206.797535,7.4109525%20L11.3865,11.999925%20L6.797535,16.588875%20C6.625755,16.760625%206.625755,17.03055%206.797535,17.202375%20C6.871155,17.27595%206.993855,17.325075%207.116555,17.325075%20C7.214715,17.325075%207.337415,17.27595%207.435575,17.202375%20L12.024525,12.613425%20L16.613475,17.202375%20C16.687125,17.27595%2016.809825,17.325075%2016.908,17.325075%20C17.0061,17.325075%2017.1288,17.27595%2017.20245,17.202375%20C17.3742,17.03055%2017.3742,16.760625%2017.20245,16.588875%20L12.6135,11.999925%20L17.20245,7.4109525%20C17.3742,7.2391725%2017.3742,6.9692325%2017.20245,6.7974525%20Z'%20id='Path'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",alt:""}}):e._e(),e.is_html_content?t("h-t-m-l-paragraph",{staticClass:"notification-msg",attrs:{html:e.message}}):t("p",{staticClass:"notification-msg"},[e._v(e._s(e.message))])],1)},[],0,0,"b8f84d9e").exports;const Kx=CC(Xn.extend({name:"NotificationOverlay",props:{is_onboarding:{type:Boolean,required:!1,default:!1}},components:{NotificationItem:Gx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("notifications",{staticClass:"notification-overlay",attrs:{width:"auto",position:"bottom right",duration:5e3,speed:300},scopedSlots:e._u([{key:"body",fn:function(n){return[t("notification-item",{staticClass:"notification-item",attrs:{notification:n.item.data,is_onboarding:e.is_onboarding},nativeOn:{click:function(e){return n.close.apply(null,arguments)}}})]}}])})},[],0,0,"257f494a").exports;const Wx=CC(Xn.extend({name:"AgeRating",data:()=>({show_fallback:!1}),props:{age_rating:{type:Object,required:!0}},computed:{img_src(){return this.age_rating.icon_src??""},show_img(){return this.img_src.length>0&&!this.show_fallback}},methods:{on_img_error(){this.show_fallback=!0}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show_img?t("img",{staticClass:"rating",attrs:{src:e.img_src,alt:e.age_rating.a11y_label},on:{error:e.on_img_error}}):t("div",{staticClass:"rating fallback",attrs:{"aria-label":e.age_rating.a11y_label}},[e._v(" "+e._s(e.age_rating.rating_text)+" ")])},[],0,0,"d0813758").exports;class Xx{hours;minutes;seconds;constructor(e,t,n){this.hours=e,this.minutes=t,this.seconds=n}to_string(e={fill_with_0:"always",separator:":",show_hours:"always",show_minutes:"always",show_seconds:"always",add_space_separator:!1}){let t=0,n=0;"never"===e.show_hours&&this.hours>0&&(t=60*this.hours),"never"===e.show_minutes&&this.minutes+t>0&&(n=60*(this.minutes+t));let r="";switch(e.separator){case":":r=":";break;case"hr_min_s":r=["hr","min","s"];break;case"h_min_s":r=["h","min","s"]}const i=[e.show_hours,e.show_minutes,e.show_seconds],s=[this.hours,this.minutes+t,this.seconds+n].reduce((t,s,o)=>{const a=i[o];if("never"===a||"auto"===a&&0===s){const r=1===o,i="always"===e.show_hours||"auto"===e.show_hours&&this.hours>0,s="always"===e.show_seconds||"auto"===e.show_seconds&&this.seconds+n>0;if(!(r&&"never"!==a&&i&&s))return t}let l=`${s}${Array.isArray(r)?r[o]:r}`;
679const c="always"===e.fill_with_0||"not_for_hours"===e.fill_with_0&&o>0||"not_for_first"===e.fill_with_0&&t.length>0;return s<10&&c&&(l=`0${l}`),t.concat([l])},[]);if("string"==typeof r){const e=s[s.length-1];null!=e&&(s[s.length-1]=e.substring(0,e.length-r.length))}return s.join(e.add_space_separator?" ":"")}to_seconds(){return 3600*this.hours+60*this.minutes+this.seconds}long_duration_format(){return new Intl.DurationFormat(ba.instance.currentLocaleCode(),{style:"long",hoursDisplay:"always",minutesDisplay:"always",secondsDisplay:"always"}).format({hours:this.hours,minutes:this.minutes,seconds:this.seconds})}static from_seconds(e){const t=Math.max(e,0),n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),i=Math.floor(t-3600*n-60*r);return new Xx(n,r,i)}static from_string(e){const t=e.split(":");let n=0,r=0,i=0;return 3===t.length?(n=Number(t[0]),r=Number(t[1]),i=Number(t[2])):2===t.length?(r=Number(t[0]),i=Number(t[1])):i=Number(t[0]),new Xx(n,r,i)}}const Yx=CC(Xn.extend({name:"VideoPlayerMetadata",props:{product:{type:Object,required:!1,default:void 0},playlist_title:{type:String,required:!1,default:void 0},institution_name:{type:String,required:!1,default:void 0}},computed:{duration(){if(null!=this.product?.durationSeconds)return Xx.from_seconds(this.product.durationSeconds).to_string({fill_with_0:"not_for_hours",separator:"hr_min_s",show_hours:"auto",show_minutes:"always",show_seconds:"never",add_space_separator:!0})},age_rating(){return Uf(this.product)},title(){return this.playlist_title??Nf(this.product)},release_year(){return this.product?.productionYear},has_au_age_rating(){return"AU"===this.age_rating?.country_code}},components:{KanopyLogo:RC,AgeRating:Wx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"metadata-container",attrs:{"data-clarity-mask":"true"}},[t("div",{staticClass:"metadata"},[t("h1",{staticClass:"title"},[e._v(e._s(e.title))]),t("div",{staticClass:"details-container"},[null!=e.age_rating&&null==e.institution_name?t("age-rating",{staticClass:"rating",class:{au:e.has_au_age_rating},attrs:{age_rating:e.age_rating}}):e._e(),t("div",{staticClass:"details"},[null!=e.institution_name?[e._v(" "+e._s(e.institution_name)+" ")]:[null!=e.duration?t("span",[e._v(e._s(e.duration))]):e._e(),null!=e.release_year?t("span",[e._v(e._s(e.release_year))]):e._e()]],2)],1)]),t("kanopy-logo",{staticClass:"kanopy-logo"})],1)},[],0,0,"fdff4d21").exports;for(var Zx={},Jx={byteLength:function(e){var t=iE(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=iE(e),i=r[0],s=r[1],o=new tE(function(e,t,n){return 3*(t+n)/4-n}(0,i,s)),a=0,l=s>0?i-4:i;for(n=0;n<l;n+=4)t=eE[e.charCodeAt(n)]<<18|eE[e.charCodeAt(n+1)]<<12|eE[e.charCodeAt(n+2)]<<6|eE[e.charCodeAt(n+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=255&t;2===s&&(t=eE[e.charCodeAt(n)]<<2|eE[e.charCodeAt(n+1)]>>4,o[a++]=255&t);1===s&&(t=eE[e.charCodeAt(n)]<<10|eE[e.charCodeAt(n+1)]<<4|eE[e.charCodeAt(n+2)]>>2,o[a++]=t>>8&255,o[a++]=255&t);return o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],s=16383,o=0,a=n-r;o<a;o+=s)i.push(oE(e,o,o+s>a?a:o+s));1===r?(t=e[n-1],i.push(Qx[t>>2]+Qx[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Qx[t>>10]+Qx[t>>4&63]+Qx[t<<2&63]+"="));return i.join("")}},Qx=[],eE=[],tE="undefined"!=typeof Uint8Array?Uint8Array:Array,nE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rE=0;rE<64;++rE)Qx[rE]=nE[rE],eE[nE.charCodeAt(rE)]=rE;function iE(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function sE(e){return Qx[e>>18&63]+Qx[e>>12&63]+Qx[e>>6&63]+Qx[63&e]}function oE(e,t,n){for(var r,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(sE(r));return i.join("")}eE["-".charCodeAt(0)]=62,eE["_".charCodeAt(0)]=63;var aE={ 680/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 681read:function(e,t,n,r,i){var s,o,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=c}return(p?-1:1)*o*Math.pow(2,s-r)},write:function(e,t,n,r,i,s){var o,a,l,c=8*s-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}}; 682/*! 683 * The buffer module from node.js, for the browser. 684 * 685 * @author Feross Aboukhadijeh <https://feross.org> 686 * @license MIT 687 */ 688!function(e){const t=Jx,n=aE,r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:s,ArrayBuffer:o,SharedArrayBuffer:a}=globalThis;function l(e){if(e>
vendor: 4,403 bytes, line 688
688i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new s(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|_(e,t);let r=l(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(o.isView(e))return function(e){if(Y(e,s)){const t=new s(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,o)||e&&Y(e.buffer,o))return f(e,t,n);if(void 0!==a&&(Y(e,a)||e&&Y(e.buffer,a)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?l(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e){return d(e),l(e<0?0:0|m(e))}function p(e){const t=e.length<0?0:0|m(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new s(e):void 0===n?new s(e,t):new s(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function m(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function _(e,t){if(c.isBuffer(e))return e.length;if(o.isView(e)||Y(e,o))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return r?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof s.prototype.indexOf?i?s.prototype.indexOf.call(e,t,n):s.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 4,773 bytes, line 688
688o=2,a/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(c(e,s)===c(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+l>a&&(n=a-l),s=n;s>=0;s--){let n=!0;for(let r=0;r<l;r++)if(c(e,s+r)!==c(t,r)){n=!1;break}if(n)return s}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(Z(r))return o;e[n+o]=r}return o}function k(e,t,n,r){return X(K(t,e.length-n),e,n,r)}function C(e,t,n,r){return X(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return X(W(t),e,n,r)}function S(e,t,n,r){return X(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function x(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(s=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new s(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,s.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(CL){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,s.prototype),Object.setPrototypeOf(c,s),c.alloc=function(e,t,n){return function(e,t,n){return d(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Y(e,s)&&(e=c.from(e,e.offset,e.byteLength)),Y(t,s)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).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(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,s))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):s.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)}
vendor: 11,984 bytes, line 688
688,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(Y(e,s)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(o,a),u=this.slice(r,i),d=e.slice(t,n);for(let s=0;s<l;++s)if(u[s]!==d[s]){o=u[s],a=d[s];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":case"latin1":case"binary":return C(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let s=t;s<n;++s)i+=J[e[s]];return i}function L(e,t,n){const r=e.slice(t,n);let i="";for(let s=0;s<r.length-1;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i){V(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function N(e,t,n,r,i){V(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function j(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,r,i,s){return t=+t,r>>>=0,s||j(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function $(e,t,r,i,s){return t=+t,r>>>=0,s||j(e,0,r,8),n.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof s.prototype.copyWithin?this.copyWithin(t,n,r):s.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),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);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=c.isBuffer(e)?e:c.from(e,r),o=s.length;
688if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const B={};function F(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,s){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`,new B.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(r,i,s)}function H(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new B.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=q(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function W(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(Zx);const lE=Zx.Buffer;var cE,uE,dE,hE={},pE={exports:{}};function fE(){return cE||(cE=1,(e=pE).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),pE.exports;var e}function mE(){return dE?uE:(dE=1,e="undefined"!=typeof window?window:void 0!==Wa?Wa:"undefined"!=typeof self?self:{},uE=e);var e}const _E=Ya(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gE,yE;function vE(){if(yE)return gE;yE=1;var e,t=void 0!==Wa?Wa:"undefined"!=typeof window?window:{},n=_E;return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=n),gE=e}var bE,wE,kE,CE,TE,SE,xE,EE,IE,AE,PE={exports:{}},OE={exports:{}};function LE(){return bE||(bE=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
688e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(OE)),OE.exports}function DE(){if(TE)return CE;function e(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e))||n){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}return TE=1,CE=function(){function t(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var n=t.prototype;return n.getIsEnabled=function(){return this.enabled_},n.enable=function(){this.enabled_=!0},n.disable=function(){this.enabled_=!1},n.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},n.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var n=this.typeToInterceptorsMap_.get(e);return!n.has(t)&&(n.add(t),!0)},n.removeInterceptor=function(e,t){var n=this.typeToInterceptorsMap_.get(e);return!(!n||!n.has(t))&&(n.delete(t),!0)},n.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},n.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},n.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},n.execute=function(t,n){for(var r,i=e(this.getForType(t));!(r=i()).done;){var s=r.value;try{n=s(n)}catch(CL){}}return n},t}()}function RE(){if(AE)return PE.exports;AE=1;var e=mE(),t=LE(),n=function(){if(kE)return wE;kE=1,wE=function(t){if(!t)return!1;var n=e.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return wE}(),r=DE(),i=function(){if(xE)return SE;xE=1;var e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var n=e.prototype;return n.getIsEnabled=function(){return this.enabled_},n.enable=function(){this.enabled_=!0},n.disable=function(){this.enabled_=!1},n.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},n.getMaxAttempts=function(){return this.maxAttempts_},n.setMaxAttempts=function(e){this.maxAttempts_=e},n.getDelayFactor=function(){return this.delayFactor_},n.setDelayFactor=function(e){this.delayFactor_=e},n.getFuzzFactor=function(){return this.fuzzFactor_},n.setFuzzFactor=function(e){this.fuzzFactor_=e},n.getInitialDelay=function(){return this.initialDelay_},n.setInitialDelay=function(e){this.initialDelay_=e},n.createRetry=function(e){var n=void 0===e?{}:e,r=n.maxAttempts,i=n.delayFactor,s=n.fuzzFactor,o=n.initialDelay;return new t({maxAttempts:r||this.maxAttempts_,delayFactor:i||this.delayFactor_,fuzzFactor:s||this.fuzzFactor_,initialDelay:o||this.initialDelay_})},e}(),t=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();return SE=e}();a.httpHandler=function(){if(IE)return EE;IE=1;var e=mE();return EE=function(t,n){return void 0===n&&(n=!1),function(r,i,s){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=s;if(n)if(e.TextDecoder){var a=(void 0===(l=i.headers&&i.headers["content-type"])&&(l=""),l.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1];return"charset"===r.trim()?i.trim():e},"utf-8"));try{o=new TextDecoder(a).decode(s)}catch(CL){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));t({cause:o})}else t(null,s);var l}},EE}(),a.requestInterceptorsStorage=new r,a.responseInterceptorsStorage=new r,a.retryManager=new i; 689/** 690 * @license 691 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/> 692 * Copyright (c) 2014 David Björklund 693 * Available under the MIT license 694 * <https://github.com/kesla/parse-headers/blob/master/LICENCE> 695 */ 696var s=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t};function o(e,r,i){var s=e;
vendor: 4,139 bytes, line 696
696return n(r)?(i=r,"string"==typeof e&&(s={uri:e})):s=t({},r,{uri:e}),s.callback=i,s}function a(e,t,n){return l(t=o(e,t,n))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&a.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},n=a.requestInterceptorsStorage.execute(e.requestType,t);e.uri=n.uri,e.headers=n.headers,e.body=n.body,e.metadata=n.metadata,e.retry=n.retry,e.timeout=n.timeout}var r=!1,i=function(t,n,i){r||(r=!0,e.callback(t,n,i))};function o(){var e=void 0;if(e=p.response?p.response:p.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(CL){}return null}(p),b)try{e=JSON.parse(e)}catch(CL){}return e}function c(t){if(clearTimeout(f),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,h||!a.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&a.responseInterceptorsStorage.getIsEnabled()){var n={headers:w.headers||{},body:w.body,responseUrl:p.responseURL,responseType:p.responseType},r=a.responseInterceptorsStorage.execute(e.requestType,n);w.body=r.body,w.headers=r.headers}return i(t,w)}e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=p,l(e)},e.retry.getCurrentFuzzedDelay())}function u(){if(!h){var t;clearTimeout(f),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var n=w,r=null;if(0!==t?(n={body:o(),statusCode:t,method:_,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(n.headers=s(p.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),e.requestType&&a.responseInterceptorsStorage.getIsEnabled()){var l={headers:n.headers||{},body:n.body,responseUrl:p.responseURL,responseType:p.responseType},c=a.responseInterceptorsStorage.execute(e.requestType,l);n.body=c.body,n.headers=c.headers}return i(r,n,n.body)}}var d,h,p=e.xhr||null;p||(p=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f,m=p.url=e.uri||e.url,_=p.method=e.method||"GET",g=e.body||e.data,y=p.headers=e.headers||{},v=!!e.sync,b=!1,w={body:void 0,headers:{},statusCode:0,method:_,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(b=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==_&&"HEAD"!==_&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),g=JSON.stringify(!0===e.json?g:e.json))),p.onreadystatechange=function(){4!==p.readyState||a.responseInterceptorsStorage.getIsEnabled()||setTimeout(u,0)},p.onload=u,p.onerror=c,p.onprogress=function(){},p.onabort=function(){h=!0,clearTimeout(e.retryTimeout)},p.ontimeout=c,p.open(_,m,!v,e.username,e.password),v||(p.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(f=setTimeout(function(){if(!h){h=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",c(e)}},e.timeout)),p.setRequestHeader)for(d in y)y.hasOwnProperty(d)&&p.setRequestHeader(d,y[d]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(p),p.send(g||null),p}return PE.exports=a,PE.exports.default=a,a.XMLHttpRequest=e.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,r){return(n=o(t,n,r)).method=e.toUpperCase(),l(n)}}),PE.exports}var ME,NE,jE,UE,$E,BE,FE,qE={exports:{}};function VE(){if(NE)return ME;NE=1;var e=vE(),t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();
vendor: 13,216 bytes, line 696
696function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function i(){this.values=t(null)}function s(e,t,n,r){var i=r?e.split(r):[e];for(var s in i)if("string"==typeof i[s]){var o=i[s].split(n);if(2===o.length)t(o[0].trim(),o[1].trim())}}function o(e,t,o){var a=e;function l(){var t=r(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.substr(3),c(),t.endTime=l(),c(),function(e,t){var n=new i;s(e,function(e,t){switch(e){case"region":for(var r=o.length-1;r>=0;r--)if(o[r].id===t){n.set(e,o[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),s=i[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start","center","end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(CL){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(CL){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(CL){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}n.prototype=t(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},i.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var a=e.createElement&&e.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},u={v:"title",lang:"lang"},d={rt:"ruby"};function h(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e){return a.innerHTML=e,e=a.textContent,a.textContent="",e}function s(e,t){return!d[t.localName]||d[t.localName]===e.localName}function o(t,n){var r=l[t];if(!r)return null;var i=e.document.createElement(r),s=u[t];return s&&n&&(i[s]=n.trim()),i}for(var h,p=e.document.createElement("div"),f=p,m=[];null!==(h=n());)if("<"!==h[0])f.appendChild(e.document.createTextNode(i(h)));else{if("/"===h[1]){m.length&&m[m.length-1]===h.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var _,g=r(h.substr(1,h.length-2));if(g){_=e.document.createProcessingInstruction("timestamp",g),f.appendChild(_);continue}var y=h.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(_=o(y[1],y[3])))continue;if(!s(f,_))continue;if(y[2]){var v=y[2].split(".");v.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(c.hasOwnProperty(n)){var r=t?"background-color":"color",i=c[n];_.style[r]=i}}),_.className=v.join(" ")}m.push(y[1]),f.appendChild(_),f=_}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function f(e){for(var t=0;t<p.length;t++){var n=p[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var s=n.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var s=0;s<n.length;s++)if(f(n.charCodeAt(s)))return"rtl";return"ltr"}function _(){}function g(e,t,n){_.call(this),this.cue=t,this.cueDiv=h(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:m(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":case"line-left":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":case"line-right":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function y(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function v(e,t,n,r){var i=new y(t),s=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(s),a=[];if(s.snapToLines){var l;switch(s.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var c=i.lineHeight,u=c*Math.round(o),d=n[l]+c,h=a[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),o<0&&(u+=""===s.vertical?n.height:n.width,a=a.reverse()),i.move(h,u)}else{var p=i.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],i=new y(t)}var f=function(e,t){for(var i,s=new y(e),o=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(r);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(i=new y(e),o=l),e=new y(s)}return i||s}(i,a);t.move(f.toCSSCompatValues(n))}function b(){}_.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},g.prototype=t(_.prototype),g.prototype.constructor=g,y.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},y.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},y.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},y.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},y.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},y.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},y.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},y.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},b.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},b.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null};return b.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],s=y.getSimpleBoxPosition(r),o={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,a,l=0;l<t.length;l++)a=t[l],n=new g(e,a,o),r.appendChild(n.div),v(0,n,s,i),a.displayState=n.div,i.push(y.getSimpleBoxPosition(n))}()}else for(var a=0;a<t.length;a++)r.appendChild(t[a].displayState)},b.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function a(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function l(e){e.match(/X-TIMESTAMP-MAP/)?s(e,function(e,n){if("X-TIMESTAMP-MAP"===e)!function(e){var n=new i;s(e,function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",r(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)},/=/):s(e,function(e,n){if("Region"===e)!function(e){var n=new i;if(s(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var s=new i;if(s.percent("x",r[0]),s.percent("y",r[1]),!s.has("x")||!s.has("y"))break;n.set(e+"X",s.get("x")),n.set(e+"Y",s.get("y"));break;case"scroll":n.alt(e,t,["up"])}}
vendor: 5,188 bytes, line 696
696,/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(c=a()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new n(n.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:c=a(),t.state){case"HEADER":/:/.test(c)?l(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(CL){t.cue.align="middle"}if(t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{o(c,t.cue,t.regionList)}catch(CL){t.reportOrThrowError(CL),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==c.indexOf("--\x3e");if(!c||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":c||(t.state="ID");continue}}}catch(CL){t.reportOrThrowError(CL),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(CL){e.reportOrThrowError(CL)}return e.onflush&&e.onflush(),this}},ME=b}function HE(){if(UE)return jE;UE=1;var e={"":1,lr:1,rl:1},t={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){return"string"==typeof e&&(!!t[e.toLowerCase()]&&e.toLowerCase())}function r(t,r,i){this.hasBeenReset=!1;var s="",o=!1,a=t,l=r,c=i,u=null,d="",h=!0,p="auto",f="start",m="auto",_="auto",g=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=n(e);t&&(f=t,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return _},set:function(e){var t=n(e);t&&(_=t,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");g=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=n(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}return r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},jE=r}function zE(){if(BE)return $E;BE=1;var e={"":!0,up:!0};function t(e){return"number"==typeof e&&e>=0&&e<=100}return $E=function(){var n=100,r=3,i=0,s=100,o=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");r=e}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");s=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a}
vendor: 22,345 bytes, lines 696-697
696,set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===n||(l=n)}}})}}const GE=Xa(mE());var KE="https://example.com",WE=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=GE.location&&GE.location.href||"");var n=/^\/\//.test(e),r=!GE.location&&!/\/\//i.test(e);e=new GE.URL(e,GE.location||KE);var i=new URL(t,e);return r?i.href.slice(19):n?i.href.slice(i.protocol.length):i.href};const XE=Ya(Object.freeze(Object.defineProperty({__proto__:null,default:WE},Symbol.toStringTag,{value:"Module"})));var YE=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function ZE(){return ZE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZE.apply(null,arguments)}function JE(e){for(var t,n=(t=e,GE.atob?GE.atob(t):lE.from(t,"base64").toString("binary")),r=new Uint8Array(n.length),i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r} 697/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class QE extends YE{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const eI=String.fromCharCode(9),tI=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},nI=function(e){const t={};if(!e)return t;const n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let r,i=n.length;for(;i--;)""!==n[i]&&(r=/([^=]*)=(.*)/.exec(n[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),t[r[0]]=r[1]);return t},rI=e=>{const t=e.split("x"),n={};return t[0]&&(n.width=parseInt(t[0],10)),t[1]&&(n.height=parseInt(t[1],10)),n};class iI extends YE{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n;if(0===(e=e.trim()).length)return;if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce((t,n)=>{const r=n(e);return r===e?t:t.concat([r])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return n=ZE(tI(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){const e=nI(t[1]);e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=tI(e.BYTERANGE))}this.trigger("data",n)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=nI(t[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=rI(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=nI(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=nI(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=nI(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=nI(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(eI)),void this.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=nI(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=tI(n.attributes.BYTERANGE)),void this.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=nI(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void this.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=nI(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void this.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=nI(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void this.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=nI(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void this.trigger("data",n);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=nI(t[1]),["ID","CLASS"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))});const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in n.attributes){if(!e.test(t))continue;const r=/[0-9A-Fa-f]{6}/g.test(n.attributes[t]),i=/^\d+(\.\d+)?$/.test(n.attributes[t]);n.attributes[t]=r?n.attributes[t].toString(16):i?parseFloat(n.attributes[t]):String(n.attributes[t])}return void this.trigger("data",n)}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return n={type:"tag",tagType:"content-steering"},n.attributes=nI(t[1]),void this.trigger("data",n);if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"i-frame-playlist"},n.attributes=nI(t[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=rI(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),void this.trigger("data",n);if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return n={type:"tag",tagType:"define"},n.attributes=nI(t[1]),void this.trigger("data",n);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})})}addParser({expression:e,customType:t,dataParser:n,segment:r}){"function"!=typeof n&&(n=e=>e),this.customParsers.push(i=>{if(e.exec(i))return this.trigger("data",{type:"custom",data:n(i),customType:t,segment:r}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(n=>e.test(n)?t(n):n)}}const sI=function(e){const t={};return Object.keys(e).forEach(function(n){var r;t[r=n,r.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase())]=e[n]}),t},oI=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:r}=e;if(!t)return;const i="#EXT-X-SERVER-CONTROL",s="holdBack",o="partHoldBack",a=n&&3*n,l=r&&2*r;n&&!t.hasOwnProperty(s)&&(t[s]=a,this.trigger("info",{message:`${i} defaulting HOLD-BACK to targetDuration * 3 (${a}).`})),a&&t[s]<a&&(this.trigger("warn",{message:`${i} clamping HOLD-BACK (${t[s]}) to targetDuration * 3 (${a})`}),t[s]=a),r&&!t.hasOwnProperty(o)&&(t[o]=3*r,this.trigger("info",{message:`${i} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[o]}).`})),r&&t[o]<l&&(this.trigger("warn",{message:`${i} clamping PART-HOLD-BACK (${t[o]}) to partTargetDuration * 2 (${l}).`}),t[o]=l)};const aI=Object.freeze(Object.defineProperty({__proto__:null,LineStream:QE,ParseStream:iI,Parser:class extends YE{constructor(e={}){super(),this.lineStream=new QE,this.parseStream=new iI,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,n=[];let r,i,s={},o=!1;const a=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let u=0,d=0;const h={};this.on("end",()=>{s.uri||!s.parts&&!s.preloadHints||(!s.map&&r&&(s.map=r),!s.key&&i&&(s.key=i),s.timeline||"number"!=typeof c||(s.timeline=c),this.manifest.preloadSegment=s)}),this.parseStream.on("data",function(e){let p,f;if(t.manifest.definitions)for(const n in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${n}}`,t.manifest.definitions[n])),e.attributes)for(const r in e.attributes)"string"==typeof e.attributes[r]&&(e.attributes[r]=e.attributes[r].replace(`{$${n}}`,t.manifest.definitions[n]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=u)),"offset"in e&&(s.byterange=t,t.offset=e.offset),u=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(s.title=e.title),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:JE(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){r={},e.uri&&(r.uri=e.uri),e.byterange&&(r.byterange=e.byterange),i&&(r.key=i)},"stream-inf"(){this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(s.attributes||(s.attributes={}),ZE(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},p=t[e.attributes["GROUP-ID"]],f={default:/yes/i.test(e.attributes.DEFAULT)},f.default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),p[e.attributes.NAME]=f},discontinuity(){c+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,oI.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){s.cueOut=e.data},"cue-out-cont"(){s.cueOutCont=e.data},"cue-in"(){s.cueIn=e.data},skip(){this.manifest.skip=sI(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const t=this.manifest.segments.length,n=sI(e.attributes);s.parts=s.parts||[],s.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=d),d=n.byterange.offset+n.byterange.length);const r=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${r} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){const t=this.manifest.serverControl=sI(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),oI.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,n=sI(e.attributes),r=n.type&&"PART"===n.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=r?d:0,r&&(d=n.byterange.offset+n.byterange.length)));const i=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${i} for segment #${t}`,e.attributes,["TYPE","URI"]),n.type)for(let e=0;e<s.preloadHints.length-1;e++){const r=s.preloadHints[e];r.type&&(r.type===n.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${i} for segment #${t} has the same TYPE ${n.type} as preload hint #${e}`}))}},"rendition-report"(){const t=sI(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const n=this.manifest.renditionReports.length-1,r=["LAST-MSN","URI"];o&&r.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${n}`,e.attributes,r)},"part-inf"(){this.manifest.partInf=sI(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),oI.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(sI(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const n=this.manifest.dateRanges[t];n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const r=!!n.endOnNext;if(r&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
697=YES attribute must have a CLASS attribute"}),r&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){const e=n.startDate.getTime()+1e3*n.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(h[n.id]){for(const t in h[n.id])if(n[t]&&JSON.stringify(h[n.id][t])!==JSON.stringify(n[t])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex(e=>e.id===n.id);this.manifest.dateRanges[e]=ZE(this.manifest.dateRanges[e],n),h[n.id]=ZE(h[n.id],n),this.manifest.dateRanges.pop()}else h[n.id]=n},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=sI(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const n=this.params.get(e.attributes.QUERYPARAM);return n?void t(e.attributes.QUERYPARAM,decodeURIComponent(n)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:c}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||a).call(t)},uri(){s.uri=e.uri,n.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=c,r&&(s.map=r),d=0,null!==this.lastProgramDateTime&&(s.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*s.duration),s={}},comment(){},custom(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,n){const r=[];n.forEach(function(e){t.hasOwnProperty(e)||r.push(e)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},Symbol.toStringTag,{value:"Module"})),lI=Ya(aI);var cI={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},uI=["video","audio","text"],dI=["Video","Audio","Text"],hI=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},pI=function(e){return e.map(hI)},fI=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),uI.forEach(function(r){var i=cI[r].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=r;var s=e.substring(0,i[1].length),o=e.replace(s,"");n.push({type:s,details:o,mediaType:r})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},mI=function(e){return void 0===e&&(e=""),cI.audio.test(e.trim().toLowerCase())},_I=function(e){return void 0===e&&(e=""),cI.text.test(e.trim().toLowerCase())},gI=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return hI(e.trim())}),n="video";1===t.length&&mI(t[0])?n="audio":1===t.length&&_I(t[0])&&(n="application");var r="mp4";return t.every(function(e){return cI.mp4.test(e)})?r="mp4":t.every(function(e){return cI.webm.test(e)})?r="webm":t.every(function(e){return cI.ogg.test(e)})&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}};const yI=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_AUDIO_CODEC:"mp4a.40.2",DEFAULT_VIDEO_CODEC:"avc1.4d400d",browserSupportsCodec:function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),GE.MediaSource&&GE.MediaSource.isTypeSupp
697orted&&GE.MediaSource.isTypeSupported(gI(e))||t&&GE.ManagedMediaSource&&GE.ManagedMediaSource.isTypeSupported&&GE.ManagedMediaSource.isTypeSupported(gI(e))||!1},codecsFromDefault:function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return fI(i.playlists[0].attributes.CODECS)}return null},getMimeForCodec:gI,isAudioCodec:mI,isTextCodec:_I,isVideoCodec:function(e){return void 0===e&&(e=""),cI.video.test(e.trim().toLowerCase())},mapLegacyAvcCodecs:function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return pI([e])[0]})},muxerSupportsCodec:function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<dI.length;t++){if(cI["muxer"+dI[t]].test(e))return!0}return!1})},parseCodecs:fI,translateLegacyCodec:hI,translateLegacyCodecs:pI},Symbol.toStringTag,{value:"Module"})),vI=Ya(yI);var bI=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,wI=/^application\/dash\+xml/i;const kI=Ya(Object.freeze(Object.defineProperty({__proto__:null,simpleTypeFromSourceType:function(e){return bI.test(e)?"hls":wI.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},Symbol.toStringTag,{value:"Module"})));var CI,TI,SI=function(e){return e.toString(2).length},xI=function(e){return Math.ceil(SI(e)/8)},EI=function(e,t,n){return void 0===n&&(n=" "),(function(e,t){for(var n="";t--;)n+=e;return n}(n,t)+e.toString()).slice(-t)},II=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},AI=function(e){return II(e)},PI=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||AI(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},OI=GE.BigInt||Number,LI=[OI("0x1"),OI("0x100"),OI("0x10000"),OI("0x1000000"),OI("0x100000000"),OI("0x10000000000"),OI("0x1000000000000"),OI("0x100000000000000"),OI("0x10000000000000000")],DI=(CI=new Uint16Array([65484]),255===(TI=new Uint8Array(CI.buffer,CI.byteOffset,CI.byteLength))[0]?"big":204===TI[0]?"little":"unknown"),RI="big"===DI,MI="little"===DI,NI=function(e,t){var n=void 0===t?{}:t,r=n.signed,i=void 0!==r&&r,s=n.le,o=void 0!==s&&s;e=PI(e);var a=o?"reduce":"reduceRight",l=(e[a]?e[a]:Array.prototype[a]).call(e,function(t,n,r){var i=o?r:Math.abs(r+1-e.length);return t+OI(n)*LI[i]},OI(0));if(i){var c=LI[e.length]/OI(2)-OI(1);(l=OI(l))>c&&(l-=c,l-=c,l-=OI(2))}return Number(l)},jI=function(e,t){var n=(void 0===t?{}:t).le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=OI(e);for(var i=xI(e),s=new Uint8Array(new ArrayBuffer(i)),o=0;o<i;o++){var a=r?o:Math.abs(o+1-s.length);s[a]=Number(e/LI[o]&OI(255)),e<0&&(s[a]=Math.abs(~s[a]),s[a]-=0===o?1:2)}return s},UI=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},$I=function(e,t,n){var r=void 0===n?{}:n,i=r.offset,s=void 0===i?0:i,o=r.mask,a=void 0===o?[]:o;e=PI(e);var l=(t=PI(t)).every?t.every:Array.prototype.every;return t.length&&e.length-s>=t.length&&l.call(t,function(t,n){return t===(a[n]?a[n]&e[s+n]:e[s+n])})};const BI=Object.freeze(Object.defineProperty({__proto__:null,ENDIANNESS:DI,IS_BIG_ENDIAN:RI,IS_LITTLE_ENDIAN:MI,bytesMatch:$I,bytesToNumber:NI,bytesToString:function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,PI(e));try{return decodeURIComponent(escape(t))}catch(CL){}return t},concatTypedArrays:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}),t.length<=1)return PI(t[0]);var r=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0),i=new Uint8Array(r),s=0;return t.forEach(function(e){e=PI(e),i.set(e,s),s+=e.byteLength}),i},countBits:SI,countBytes:xI,isArrayBufferView:II,isTypedArray:AI,numberToBytes:jI,padStart:EI,reverseBytes:function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)},sliceBytes:function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))},stringToBytes:UI,toBinaryString:function(e){e=PI(e);for(var t="",n=0;n<e.length;n++)t+=EI(e[n].toString(2),8,"0");return t},toHexString:function(e){e=PI(e);for(var t="",n=0;n<e.length;n++)t+=EI(e[n].toString(16),2,"0");return t},toUint8:PI},Symbol.toStringTag,{value:"Module"})),FI=Ya(BI);var qI,VI,HI={},zI={},GI={};function KI(){if(qI)return GI;function e(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}qI=1;var t=e({HTML:"text/html",isHTML:function(e){return e===t.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return GI.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},GI.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}},GI.freeze=e,GI.MIME_TYPE=t,GI.NAMESPACE=n,GI}function WI(){if(VI)return zI;VI=1;var e=KI(),t=e.find,n=e.NAMESPACE;function r(e){return""!==e}function i(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function s(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(r):[]}(e);return Object.keys(t.reduce(i,{}))}function o(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function a(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};r.prototype=t.prototype,r=new r,o(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var l={},c=l.ELEMENT_NODE=1,u=l.ATTRIBUTE_NODE=2,d=l.TEXT_NODE=3,h=l.CDATA_SECTION_NODE=4,p=l.ENTITY_REFERENCE_NODE=5,f=l.ENTITY_NODE=6,m=l.PROCESSING_INSTRUCTION_NODE=7,_=l.COMMENT_NODE=8,g=l.DOCUMENT_NODE=9,y=l.DOCUMENT_TYPE_NODE=10,v=l.DOCUMENT_FRAGMENT_NODE=11,b=l.NOTATION_NODE=12,w={},k={};w.INDEX_SIZE_ERR=(k[1]="Index size error",1),w.DOMSTRING_SIZE_ERR=(k[2]="DOMString size error",2);var C=w.HIERARCHY_REQUEST_ERR=(k[3]="Hierarchy request error",3);w.WRONG_DOCUMENT_ERR=(k[4]="Wrong document",4);var T=w.INVALID_CHARACTER_ERR=(k[5]="Invalid character",5);
vendor: 15,743 bytes, line 697
697w.NO_DATA_ALLOWED_ERR=(k[6]="No data allowed",6),w.NO_MODIFICATION_ALLOWED_ERR=(k[7]="No modification allowed",7);var S=w.NOT_FOUND_ERR=(k[8]="Not found",8);w.NOT_SUPPORTED_ERR=(k[9]="Not supported",9);var x=w.INUSE_ATTRIBUTE_ERR=(k[10]="Attribute in use",10),E=w.INVALID_STATE_ERR=(k[11]="Invalid state",11);function I(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,k[e]),this.message=k[e],Error.captureStackTrace&&Error.captureStackTrace(this,I);return n.code=e,t&&(this.message=this.message+": "+t),n}function A(){}function P(e,t){this._node=e,this._refresh=t,O(this)}function O(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ve(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];o(n,e),e._inc=t}}function L(){}function D(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function R(e,t,r,i){if(i?t[D(t,i)]=r:t[t.length++]=r,e){r.ownerElement=e;var s=e.ownerDocument;s&&(i&&q(s,e,i),function(e,t,r){e&&e._inc++;var i=r.namespaceURI;i===n.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(s,e,r))}}function M(e,t,n){var r=D(t,n);if(!(r>=0))throw new I(S,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var s=e.ownerDocument;s&&(q(s,e,n),n.ownerElement=null)}}function N(){}function j(){}function U(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function $(e,t){return B(e,null,{enter:function(e){return!t(e)||B.STOP}})===B.STOP}function B(e,t,n){for(var r=[{node:e,context:t,phase:B.ENTER}];r.length>0;){var i=r.pop();if(i.phase===B.ENTER){var s=n.enter(i.node,i.context);if(s===B.STOP)return B.STOP;if(r.push({node:i.node,context:s,phase:B.EXIT}),null==s)continue;for(var o=i.node.lastChild;o;)r.push({node:o,context:s,phase:B.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}function F(){this.ownerDocument=this}function q(e,t,r,i){e&&e._inc++,r.namespaceURI===n.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function V(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,s=0;i;)r[s++]=i,i=i.nextSibling;r.length=s,delete r[r.length]}}}function H(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function z(e){return e&&e.nodeType===j.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===j.ELEMENT_NODE}function K(e){return e&&e.nodeType===j.TEXT_NODE}function W(e,n){var r=e.childNodes||[];if(t(r,G)||z(n))return!1;var i=t(r,z);return!(n&&i&&r.indexOf(i)>r.indexOf(n))}function X(e,n){var r=e.childNodes||[];if(t(r,function(e){return G(e)&&e!==n}))return!1;var i=t(r,z);return!(n&&i&&r.indexOf(i)>r.indexOf(n))}function Y(e,t,n){if(!function(e){return e&&(e.nodeType===j.DOCUMENT_NODE||e.nodeType===j.DOCUMENT_FRAGMENT_NODE||e.nodeType===j.ELEMENT_NODE)}(e))throw new I(C,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new I(S,"child not in parent");if(!function(e){return e&&(G(e)||K(e)||z(e)||e.nodeType===j.DOCUMENT_FRAGMENT_NODE||e.nodeType===j.COMMENT_NODE||e.nodeType===j.PROCESSING_INSTRUCTION_NODE)}(t)||z(t)&&e.nodeType!==j.DOCUMENT_NODE)throw new I(C,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Z(e,n,r){var i=e.childNodes||[],s=n.childNodes||[];if(n.nodeType===j.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||t(s,K))throw new I(C,"More than one element or text in fragment");if(1===o.length&&!W(e,r))throw new I(C,"Element in fragment can not be inserted before doctype")}if(G(n)&&!W(e,r))throw new I(C,"Only one element can be added and only after doctype");if(z(n)){if(t(i,z))throw new I(C,"Only one doctype is allowed");var a=t(i,G);if(r&&i.indexOf(a)<i.indexOf(r))throw new I(C,"Doctype can only be inserted before an element");if(!r&&a)throw new I(C,"Doctype can not be appended since element is present")}}function J(e,n,r){var i=e.childNodes||[],s=n.childNodes||[];if(n.nodeType===j.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||t(s,K))throw new I(C,"More than one element or text in fragment");if(1===o.length&&!X(e,r))throw new I(C,"Element in fragment can not be inserted before doctype")}if(G(n)&&!X(e,r))throw new I(C,"Only one element can be added and only after doctype");if(z(n)){if(t(i,function(e){return z(e)&&e!==r}))throw new I(C,"Only one doctype is allowed");var a=t(i,G);if(r&&i.indexOf(a)<i.indexOf(r))throw new I(C,"Doctype can only be inserted before an element")}}function Q(e,t,n,r){Y(e,t,n),e.nodeType===j.DOCUMENT_NODE&&(r||Z)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===v){var s=t.firstChild;if(null==s)return t;var o=t.lastChild}else s=o=t;var a=n?n.previousSibling:e.lastChild;s.previousSibling=a,o.nextSibling=n,a?a.nextSibling=s:e.firstChild=s,null==n?e.lastChild=o:n.previousSibling=o;do{s.parentNode=e,ee(s,e.ownerDocument||e)}while(s!==o&&(s=s.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==v&&(t.firstChild=t.lastChild=null),t}function ee(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===c&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);r&&(r.ownerDocument=t)}for(var i=e.firstChild;i;)ee(i,t),i=i.nextSibling}}function te(){this._nsMap={}}function ne(){}function re(){}function ie(){}function se(){}function oe(){}function ae(){}function le(){}function ce(){}function ue(){}function de(){}function he(){}function pe(){}function fe(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],s=9==this.nodeType&&this.documentElement||this,o=s.prefix,a=s.namespaceURI;if(a&&null==o&&null==(o=s.lookupPrefix(a)))var l=[{namespace:a,prefix:null}];return ge(this,i,e,t,l,r),i.join("")}function me(e,t,r){var i=e.prefix||"",s=e.namespaceURI;if(!s)return!1;if("xml"===i&&s===n.XML||s===n.XMLNS)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix===i)return a.namespace!==s}return!0}function _e(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,U),'"')}function ge(e,t,r,i,s,o){s||(s=[]),B(e,{ns:s,isHTML:r},{enter:function(e,r){var s=r.ns,a=r.isHTML;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case c:var l=e.attributes,f=l.length,b=e.tagName,w=b;if(!(a=n.isHTML(e.namespaceURI)||a)&&!e.prefix&&e.namespaceURI){for(var k,C=0;C<l.length;C++)if("xmlns"===l.item(C).name){k=l.item(C).value;break}if(!k)for(var T=s.length-1;T>=0;T--){if(""===(S=s[T]).prefix&&S.namespace===e.namespaceURI){k=S.namespace;break}}if(k!==e.namespaceURI)for(T=s.length-1;T>=0;T--){var S;if((S=s[T]).namespace===e.namespaceURI){S.prefix&&(w=S.prefix+":"+b);break}}}t.push("<",w);for(var x=s.slice(),A=0;A<f;A++){"xmlns"==(P=l.item(A)).prefix?x.push({prefix:P.localName,namespace:P.value}):"xmlns"==P.nodeName&&x.push({prefix:"",namespace:P.value})}for(A=0;A<f;A++){var P;if(me(P=l.item(A),0,x)){var O=P.prefix||"",L=P.namespaceURI;_e(t,O?"xmlns:"+O:"xmlns",L),x.push({prefix:O,namespace:L})}var D=i?i(P):P;D&&("string"==typeof D?t.push(D):_e(t,D.name,D.value))}if(b===w&&me(e,0,x)){var R=e.prefix||"";L=e.namespaceURI;_e(t,R?"xmlns:"+R:"xmlns",L),x.push({prefix:R,namespace:L})}var M=e.firstChild;if(M||a&&!/^(?:meta|link|img|br|hr|input)$/i.test(b)){if(t.push(">"),a&&/^script$/i.test(b)){for(;M;)M.data?t.push(M.data):ge(M,t,a,i,x.slice(),o),M=M.nextSibling;return t.push("</",b,">"),null}return{ns:x,isHTML:a,tag:w}}return t.push("/>"),null;case g:case v:return{ns:s.slice(),isHTML:a,tag:null};case u:return _e(t,e.name,e.value),null;case d:return t.push(e.data.replace(/[<&>]/g,U)),null;case h:if(o&&-1!==e.data.indexOf("]]>"))throw new I(E,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",e.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case _:if(o&&-1!==e.data.indexOf("--\x3e"))throw new I(E,'The comment node data contains "--\x3e"');return t.push("\x3c!--",e.data,"--\x3e"),null;case y:if(o){if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new I(E,"DocumentType publicId is not a valid PubidLiteral");if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new I(E,"DocumentType systemId is not a valid SystemLiteral");if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new I(E,'DocumentType internalSubset contains "]>"')}var N=e.publicId,j=e.systemId;if(t.push("<!DOCTYPE ",e.name),N)t.push(" PUBLIC ",N),j&&"."!=j&&t.push(" ",j),t.push(">");else if(j&&"."!=j)t.push(" SYSTEM ",j,">");else{var $=e.internalSubset;$&&t.push(" [",$,"]"),t.push(">")}return null;case m:if(o&&-1!==e.data.indexOf("?>"))throw new I(E,'The ProcessingInstruction data contains "?>"');return t.push("<?",e.target," ",e.data,"?>"),null;case p:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push("</",n.tag,">")}})}function ye(e,t,n){var r;return B(t,null,{enter:function(t,i){var s=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=t[o];"object"!=typeof a&&a!=s[o]&&(s[o]=a)}t.childNodes&&(s.childNodes=new A),s.ownerDocument=e;var l=n;switch(s.nodeType){case c:var d=t.attributes,h=s.attributes=new L,p=d.length;h._ownerElement=s;for(var f=0;f<p;f++)s.setAttributeNode(ye(e,d.item(f),!0));break;case u:l=!0}return null!==i?i.appendChild(s):r=s,l?s:null}}),r}function ve(e,t,n){e[t]=n}w.SYNTAX_ERR=(k[12]="Syntax error",12),w.INVALID_MODIFICATION_ERR=(k[13]="Invalid modification",13),w.NAMESPACE_ERR=(k[14]="Invalid namespace",14),w.INVALID_ACCESS_ERR=(k[15]="Invalid access",15),I.prototype=Error.prototype,o(w,I),A.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){for(var r=!!n&&!!n.requireWellFormed,i=[],s=0;s<this.length;s++)ge(this[s],i,e,t,null,r);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},P.prototype.item=function(e){return O(this),this[e]||null},a(P,A),L.prototype={length:0,item:A.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new I(x);var n=this.getNamedItem(e.nodeName);return R(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new I(x);return t=this.getNamedItemNS(e.namespaceURI,e.localName),R(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return M(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return M(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},N.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new F;if(r.implementation=this,r.childNodes=new A,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new ae;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},j.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Q(this,e,t)},replaceChild:function(e,t){Q(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ye(this.ownerDocument||this,this,e)},normalize:function(){B(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;null!==n&&n.nodeType===d&&t.nodeType===d?(e.removeChild(n),t.appendData(n.data)):t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==u?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==u?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},o(l,j),o(l,j.prototype),B.STOP=Symbol("walkDOM.STOP"),B.ENTER=0,B.EXIT=1,F.prototype={nodeName:"#document",nodeType:g,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==v){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Q(this,e,t),ee(e,this),null===this.documentElement&&e.nodeType===c&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){Q(this,e,t,J),ee(e,this),t&&this.removeChild(t),G(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,n){var r;return B(t,null,{enter:function(t,i){var s=t.cloneNode(!1);return s.ownerDocument=e,s.parentNode=null,null===i?r=s:i.appendChild(s),t.nodeType===u||n?s:null}}),r}(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,function(n){if(n.nodeType==c&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=s(e);return new P(this,function(n){var r=[];return t.length>0&&$(n.documentElement,function(i){if(i!==n&&i.nodeType===c){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var l=s(o);a=t.every((u=l,function(e){return u&&-1!==u.indexOf(e)}))}a&&r.push(i)}}var u}),r})},createElement:function(e){var t=new te;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new A,(t.attributes=new L)._ownerElement=t,t},createDocumentFragment:function(){var e=new de;return e.ownerDocument=this,e.childNodes=new A,e},createTextNode:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new se;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new I(T,'data contains "]]>"');var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new he;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ne;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ue;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new te,r=t.split(":"),i=n.attributes=new L;return n.childNodes=new A,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new ne,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},a(F,j),te.prototype={nodeType:c,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
vendor: 4,973 bytes, line 697
697,appendChild:function(e){return e.nodeType===v?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),ee(t,e.ownerDocument||e),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,function(t){var n=[];return $(t,function(r){r===t||r.nodeType!=c||"*"!==e&&r.tagName!=e||n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new P(this,function(n){var r=[];return $(n,function(i){i===n||i.nodeType!==c||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)}),r})}},F.prototype.getElementsByTagName=te.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=te.prototype.getElementsByTagNameNS,a(te,j),ne.prototype.nodeType=u,a(ne,j),re.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(k[C])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},a(re,j),ie.prototype={nodeName:"#text",nodeType:d,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},a(ie,re),se.prototype={nodeName:"#comment",nodeType:_},a(se,re),oe.prototype={nodeName:"#cdata-section",nodeType:h},a(oe,re),ae.prototype.nodeType=y,a(ae,j),le.prototype.nodeType=b,a(le,j),ce.prototype.nodeType=f,a(ce,j),ue.prototype.nodeType=p,a(ue,j),de.prototype.nodeName="#document-fragment",de.prototype.nodeType=v,a(de,j),he.prototype.nodeType=m,a(he,j),pe.prototype.serializeToString=function(e,t,n,r){return fe.call(e,t,n,r)},j.prototype.toString=fe;try{Object.defineProperty&&(Object.defineProperty(P.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){if(this.nodeType===c||this.nodeType===v){var e=[];return B(this,null,{enter:function(t){return t.nodeType===c||t.nodeType===v||(t.nodeType===m||t.nodeType===_?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case c:case v:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ve=function(e,t,n){e["$$"+t]=n})}catch(CL){}return zI.DocumentType=ae,zI.DOMException=I,zI.DOMImplementation=N,zI.Element=te,zI.Node=j,zI.NodeList=A,zI.walkDOM=B,zI.XMLSerializer=pe,zI}var XI,YI={},ZI={};var JI,QI,eA,tA={};function nA(){if(JI)return tA;JI=1;var e=KI().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$");function i(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,i)}function s(){}function o(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function a(t,n,r,i,s,o){function a(e,t,n){r.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),n)}for(var l,c=++n,u=0;;){var d=t.charAt(c);switch(d){case"=":if(1===u)l=t.slice(n,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),l=t.slice(n,c)),n=c+1,!((c=t.indexOf(d,n))>0))throw new Error("attribute value no end '"+d+"' match");a(l,h=t.slice(n,c),n-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');a(l,h=t.slice(n,c),n),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),n=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(t.slice(n,c));
vendor: 6,228 bytes, line 697
697case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&r.setTagName(t.slice(n,c)),c;case">":switch(u){case 0:r.setTagName(t.slice(n,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(n,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(o.warning('attribute "'+h+'" missed quot(")!'),a(l,h,n)):(e.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,n));break;case 3:throw new Error("attribute value missed!!")}return c;case"Â":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(t.slice(n,c)),u=6;break;case 1:l=t.slice(n,c),u=2;break;case 4:var h=t.slice(n,c);o.warning('attribute "'+h+'" missed quot(")!!'),a(l,h,n);case 5:u=6}else switch(u){case 2:r.tagName,e.isHTML(i[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),a(l,l,n),n=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,n=c;break;case 3:u=4,n=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,n,r){for(var i=t.tagName,s=null,o=t.length;o--;){var a=t[o],l=a.qName,c=a.value;if((f=l.indexOf(":"))>0)var u=a.prefix=l.slice(0,f),h=l.slice(f+1),p="xmlns"===u&&h;else h=l,u=null,p="xmlns"===l&&"";a.localName=h,!1!==p&&(null==s&&(s={},d(r,r={})),r[p]=s[p]=c,a.uri=e.XMLNS,n.startPrefixMapping(p,c))}for(o=t.length;o--;){(u=(a=t[o]).prefix)&&("xml"===u&&(a.uri=e.XML),"xmlns"!==u&&(a.uri=r[u||""]))}var f;(f=i.indexOf(":"))>0?(u=t.prefix=i.slice(0,f),h=t.localName=i.slice(f+1)):(u=null,h=t.localName=i);var m=t.uri=r[u||""];if(n.startElement(m,h,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=s,!0;if(n.endElement(m,h,i),s)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&n.endPrefixMapping(u)}function c(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var s=e.indexOf("</"+n+">",t),o=e.substring(t+1,s);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),s):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),s)}return t+1}function u(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function d(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function h(e,t,n,r){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var s=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var a=s[1][0],l=!1,c=!1;o>3&&(/^public$/i.test(s[2][0])?(l=s[3][0],c=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(c=s[3][0]));var u=s[o-1];return n.startDTD(a,l,c),n.endDTD(),u.index+u[0].length}return-1}function p(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function f(){this.attributeNames={}}return i.prototype=new Error,i.prototype.name=i.name,s.prototype={parse:function(t,n,r){var s=this.domBuilder;s.startDocument(),d(n,n={}),function(t,n,r,s,d){function m(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function _(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?m(parseInt(t.substr(1).replace("x","0x"))):(d.error("entity not found:"+e),e)}function g(e){if(e>S){var n=t.substring(S,e).replace(/&#?\w+;/g,_);k&&y(S),s.characters(n,0,e-S),S=e}}function y(e,n){for(;e>=b&&(n=w.exec(t));)v=n.index,b=v+n[0].length,k.lineNumber++;k.columnNumber=e-v+1}var v=0,b=0,w=/.*(?:\r\n?|\n)|.*$/g,k=s.locator,C=[{currentNSMap:n}],T={},S=0;for(;;){try{var x=t.indexOf("<",S);if(x<0){if(!t.substr(S).match(/^\s*$/)){var E=s.doc,I=E.createTextNode(t.substr(S));E.appendChild(I),s.currentElement=I}return}switch(x>S&&g(x),t.charAt(x+1)){case"/":var A=t.indexOf(">",x+3),P=t.substring(x+2,A).replace(/[ \t\n\r]+$/g,""),O=C.pop();A<0?(P=t.substring(x+2).replace(/[\s<].*/,""),d.error("end tag name: "+P+" is not complete:"+O.tagName),A=x+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),d.error("end tag name: "+P+" maybe not complete"),A=x+1+P.length);var L=O.localNSMap,D=O.tagName==P;if(D||O.tagName&&O.tagName.toLowerCase()==P.toLowerCase()){if(s.endElement(O.uri,O.localName,P),L)for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&s.endPrefixMapping(R);D||d.fatalError("end tag name: "+P+" is not match the current start tagName:"+O.tagName)}else C.push(O);A++;break;case"?":k&&y(x),A=p(t,x,s);break;case"!":k&&y(x),A=h(t,x,s,d);break;default:k&&y(x);var M=new f,N=C[C.length-1].currentNSMap,j=(A=a(t,x,M,N,_,d),M.length);if(!M.closed&&u(t,A,M.tagName,T)&&(M.closed=!0,r.nbsp||d.warning("unclosed xml attribute")),k&&j){for(var U=o(k,{}),$=0;$<j;$++){var B=M[$];y(B.offset),B.locator=o(k,{})}s.locator=U,l(M,s,N)&&C.push(M),s.locator=k}else l(M,s,N)&&C.push(M);e.isHTML(M.uri)&&!M.closed?A=c(t,A,M.tagName,_,s):A++}}catch(CL){if(CL instanceof i)throw CL;d.error("element parse error: "+CL),A=-1}A>S?S=A:g(Math.max(x,S)+1)}}(t,n,r,s,this.errorHandler),s.endDocument()}},f.prototype={setTagName:function(e){if(!r.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!r.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},tA.XMLReader=s,tA.ParseError=i,tA}function rA(){if(QI)return YI;QI=1;var e,t,n=KI(),r=WI(),i=(XI||(XI=1,e=ZI,t=KI().freeze,e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t
vendor: 28,727 bytes, line 697
697({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),
697e.entityMap=e.HTML_ENTITIES),ZI),s=nA(),o=r.DOMImplementation,a=n.NAMESPACE,l=s.ParseError,c=s.XMLReader;function u(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function d(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>
vendor: 31,474 bytes, lines 697-698
697=t+n||t?new java.lang.String(e,t,n)+"":e}function _(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return d.prototype.parseFromString=function(e,t){var n=this.options,r=new c,s=n.domBuilder||new h,o=n.errorHandler,l=n.locator,d=n.xmlns||{},p=/\/x?html?$/.test(t),m=p?i.HTML_ENTITIES:i.XML_ENTITIES;l&&s.setDocumentLocator(l),r.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var r={},i=e instanceof Function;function s(t){var s=e[t];!s&&i&&(s=2==e.length?function(n){e(t,n)}:e),r[t]=s&&function(e){s("[xmldom "+t+"]\t"+e+f(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(o,s,l),r.domBuilder=n.domBuilder||s,p&&(d[""]=a.HTML),d.xml=d.xml||a.XML;var _=n.normalizeLineEndings||u;return e&&"string"==typeof e?r.parse(_(e),d,m):r.errorHandler.error("invalid doc source"),s.doc},h.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,s=i.createElementNS(e,n||t),o=r.length;_(this,s),this.currentElement=s,this.locator&&p(this.locator,s);for(var a=0;a<o;a++){e=r.getURI(a);var l=r.getValue(a),c=(n=r.getQName(a),i.createAttributeNS(e,n));this.locator&&p(r.getLocator(a),c),c.value=c.nodeValue=l,s.setAttributeNode(c)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),_(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&p(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&p(this.locator,r),_(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&p(this.locator,i),_(this,i),this.doc.doctype=i}},warning:function(e){f(this.locator)},error:function(e){console.error("[xmldom error]\t"+e,f(this.locator))},fatalError:function(e){throw new l(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}}),YI.__DOMHandler=h,YI.normalizeLineEndings=u,YI.DOMParser=d,YI}var iA=function(){if(eA)return HI;eA=1;var e=WI();return HI.DOMImplementation=e.DOMImplementation,HI.XMLSerializer=e.XMLSerializer,HI.DOMParser=rA().DOMParser,HI}(); 698/*! @name mpd-parser @version 1.4.0 @license Apache-2.0 */const sA=e=>!!e&&"object"==typeof e,oA=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):sA(e[n])&&sA(t[n])?e[n]=oA(e[n],t[n]):e[n]=t[n]}),e),{}),aA=e=>Object.keys(e).map(t=>e[t]),lA=e=>e.reduce((e,t)=>e.concat(t),[]),cA=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t};var uA="INVALID_NUMBER_OF_PERIOD",dA="DASH_EMPTY_MANIFEST",hA="DASH_INVALID_XML",pA="NO_BASE_URL",fA="SEGMENT_TIME_UNSPECIFIED",mA="UNSUPPORTED_UTC_TIMING_SCHEME";const _A=({baseUrl:e="",source:t="",range:n="",indexRange:r=""})=>{const i={uri:t,resolvedUri:WE(e||"",t)};if(n||r){const e=(n||r).split("-");let t,s=GE.BigInt?GE.BigInt(e[0]):parseInt(e[0],10),o=GE.BigInt?GE.BigInt(e[1]):parseInt(e[1],10);s<Number.MAX_SAFE_INTEGER&&"bigint"==typeof s&&(s=Number(s)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),t="bigint"==typeof o||"bigint"==typeof s?GE.BigInt(o)-GE.BigInt(s)+GE.BigInt(1):o-s+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),i.byterange={length:t,offset:s}}return i},gA=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),yA={static(e){const{duration:t,timescale:n=1,sourceDuration:r,periodDuration:i}=e,s=gA(e.endNumber),o=t/n;return"number"==typeof s?{start:0,end:s}:"number"==typeof i?{start:0,end:i/o}:{start:0,end:r/o}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:r,timescale:i=1,duration:s,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:l=1/0}=e,c=gA(e.endNumber),u=(t+n)/1e3,d=r+o,h=u+a-d,p=Math.ceil(h*i/s),f=Math.floor((u-d-l)*i/s),m=Math.floor((u-d)*i/s);return{start:Math.max(0,f),end:"number"==typeof c?c:Math.min(p,m)}}},vA=e=>{const{type:t,duration:n,timescale:r=1,periodDuration:i,sourceDuration:s}=e,{start:o,end:a}=yA[t](e),l=((e,t)=>{const n=[];for(let r=e;r<t;r++)n.push(r);return n})(o,a).map((e=>t=>{const{duration:n,timescale:r=1,periodStart:i,startNumber:s=1}=e;return{number:s+t,duration:n/r,timeline:i,time:t*n}})(e));if("static"===t){const e=l.length-1,t="number"==typeof i?i:s;l[e].duration=t-n/r*e}return l},bA=e=>{const{baseUrl:t,initialization:n={},sourceDuration:r,indexRange:i="",periodStart:s,presentationTime:o,number:a=0,duration:l}=e;if(!t)throw new Error(pA);const c=_A({baseUrl:t,source:n.sourceURL,range:n.range}),u=_A({baseUrl:t,source:t,indexRange:i});if(u.map=c,l){const t=vA(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else r&&(u.duration=r,u.timeline=s);return u.presentationTime=o||s,u.number=a,[u]},wA=(e,t,n)=>{const r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,s=e.timeline||0,o=e.sidx.byterange,a=o.offset+o.length,l=t.timescale,c=t.references.filter(e=>1!==e.referenceType),u=[],d=e.endList?"static":"dynamic",h=e.sidx.timeline;let p,f=h,m=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?GE.BigInt(a)+t.firstOffset:a+t.firstOffset;for(let _=0;_<c.length;_++){const e=t.references[_],o=e.referencedSize,a=e.subsegmentDuration;let c;c="bigint"==typeof p?p+GE.BigInt(o)-GE.BigInt(1):p+o-1;const g=bA({baseUrl:n,timescale:l,timeline:s,periodStart:h,presentationTime:f,number:m,duration:a,sourceDuration:i,indexRange:`${p}-${c}`,type:d})[0];r&&(g.map=r),u.push(g),p+="bigint"==typeof p?GE.BigInt(o):o,f+=a/l,m++}return e.segments=u,e},kA=["AUDIO","SUBTITLES"],CA=1/60,TA=e=>{return(t=e,n=({timeline:e})=>e,aA(t.reduce((e,t)=>(t.forEach(t=>{e[n(t)]=t}),e),{}))).sort((e,t)=>e.timeline>t.timeline?1:-1);var t,n},SA=e=>{let t=[];return function(e,t,n){t.forEach(function(t){for(var r in e.mediaGroups[t])for(var i in e.mediaGroups[t][r]){var s=e.mediaGroups[t][r][i];n(s,t,r,i)}})}(e,kA,(e,n,r,i)=>{t=t.concat(e.playlists||[])}),t},xA=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,n)=>{t.number=e.mediaSequence+n})},EA=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(SA(e)),r=t.playlists.concat(SA(t));return t.timelineStarts=TA([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(t=>{t.discontinuitySequence=n.findIndex(function({timeline:e}){return e===t.timeline});const r=((e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null})(e,t.attributes.NAME);if(!r)return;if(t.sidx)return;const i=t.segments[0],s=r.segments.findIndex(function(e){return Math.abs(e.presentationTime-i.presentationTime)<CA});if(-1===s)return xA({playlist:t,mediaSequence:r.mediaSequence+r.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!r.segments.length&&t.timeline>r.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[s].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),xA({playlist:t,mediaSequence:r.segments[s].number})})})({oldPlaylists:n,newPlaylists:r,timelineStarts:t.timelineStarts}),t},IA=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?GE.BigInt(e.offset)+GE.BigInt(e.length)-GE.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),AA=e=>{const t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{});let n=[];return Object.values(t).forEach(e=>{const t=aA(e.reduce((e,t)=>{const n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(e=>{var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((e,t,r)=>(t[n]&&e.push(r),e),[])),e})},PA=(e,t)=>{const n=IA(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&wA(e,r,e.sidx.resolvedUri),e},OA=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=PA(e[n],t);return e},LA=({attributes:e,segments:t,sidx:n,discontinuityStarts:r})=>{const i={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:r,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(i.attributes["FRAME-RATE"]=e.frameRate),void 0!==e.qualityRanking&&(i.attributes.SCORE=1/(e.qualityRanking+1)),e.contentProtection&&(i.contentProtection=e.contentProtection),e.serviceLocation&&(i.attributes.serviceLocation=e.serviceLocation),n&&(i.sidx=n),i},DA=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,RA=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,MA=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,NA=e=>e?Object.keys(e).reduce((t,n)=>{const r=e[n];return t.concat(r.playlists)},[]):[],jA=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:r={},previousManifest:i,eventStream:s})=>{if(!e.length)return{};const{sourceDuration:o,type:a,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=e[0].attributes,u=AA(e.filter(DA)).map(LA),d=AA(e.filter(RA)),h=AA(e.filter(MA)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:OA(u,r)};c>=0&&(f.minimumUpdatePeriod=1e3*c),t&&(f.locations=t),n&&(f.contentSteering=n),"dynamic"===a&&(f.suggestedPresentationDelay=l),s&&s.length>0&&(f.eventStream=s);const m=0===f.playlists.length,_=d.length?((e,t={},n=!1)=>{let r;const i=e.reduce((e,i)=>{const s=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"";let a=i.attributes.label||"main";if(o&&!i.attributes.label){const e=s?` (${s})`:"";a=`${i.attributes.lang}${e}`}e[a]||(e[a]={language:o,autoselect:!0,default:"main"===s,playlists:[],uri:""});const l=PA((({attributes:e,segments:t,sidx:n,mediaSequence:r,discontinuitySequence:i,discontinuityStarts:s},o)=>{const a={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:i,discontinuityStarts:s,timelineStarts:e.timelineStarts,mediaSequence:r,segments:t};return e.contentProtection&&(a.contentProtection=e.contentProtection),e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),n&&(a.sidx=n),o&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a})(i,n),t);return e[a].playlists.push(l),void 0===r&&"main"===s&&(r=i,r.default=!0),e},{});r||(i[Object.keys(i)[0]].default=!0);return i})(d,r,m):null,g=h.length?((e,t={})=>e.reduce((e,n)=>{const r=n.attributes.label||n.attributes.lang||"text",i=n.attributes.lang||"und";return e[r]||(e[r]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[r].playlists.push(PA((({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:r,discontinuitySequence:i})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const s={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(s.CODECS=e.codecs);const o={attributes:s,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:r,discontinuitySequence:i,mediaSequence:n,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o})(n),t)),e},{}))(h,r):null,y=u.concat(NA(_),NA(g)),v=y.map(({timelineStarts:e})=>e);var b,w;return f.timelineStarts=TA(v),b=y,w=f.timelineStarts,b.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=w.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})}),_&&(f.mediaGroups.AUDIO.audio=_),g&&(f.mediaGroups.SUBTITLES.subs=g),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce((e,t)=>t?(t.forEach(t=>{const{channel:n,language:r}=t;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty("aspectRatio")&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[r].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[r]["3D"]=t["3D"])}),e):e,{})),i?EA({oldManifest:i,newManifest:f}):f},UA=(e,t,n)=>{const{NOW:r,clientOffset:i,availabilityStartTime:s,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:l=0}=e,c=(r+i)/1e3+l-(s+a);return Math.ceil((c*o-t)/n)},$A=(e,t)=>{const{type:n,minimumUpdatePeriod:r=0,media:i="",sourceDuration:s,timescale:o=1,startNumber:a=1,periodStart:l}=e,c=[];let u=-1;for(let d=0;d<t.length;d++){const h=t[d],p=h.d,f=h.r||0,m=h.t||0;let _;if(u<0&&(u=m),m&&m>u&&(u=m),f<0){const a=d+1;_=a===t.length?"dynamic"===n&&r>0&&i.indexOf("$Number$")>0?UA(e,u,p):(s*o-u)/p:(t[a].t-u)/p}else _=f+1;const g=a+c.length+_;let y=a+c.length;for(;y<g;)c.push({number:y,duration:p/o,time:u,timeline:l}),u+=p,y++}return c},BA=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,FA=(e,t)=>e.replace(BA,(e=>(t,n,r,i)=>{if("$$"===t)return"$";if(void 0===e[n])return t;const s=""+e[n];return"RepresentationID"===n?s:(i=r?parseInt(i,10):1,s.length>=i?s:`${new Array(i-s.length+1).join("0")}${s}`)})(t)),qA=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:"",range:""}}=e,i=_A({baseUrl:e.baseUrl,source:FA(r.sourceURL,n),range:r.range}),s=((e,t)=>e.duration||t?e.duration?vA(e):$A(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t);return s.map(t=>{n.Number=t.number,n.Time=t.time;const r=FA(e.media||"",n),s=e.timescale||1,o=e.presentationTimeOffset||0,a=e.periodStart+(t.time-o)/s;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:WE(e.baseUrl||"",r),map:i,number:t.number,presentationTime:a}})},VA=(e,t)=>{const{duration:n,segmentUrls:r=[],periodStart:i}=e;if(!n&&!t||n&&t)throw new Error(fA);const s=r.map(t=>((e,t)=>{const{baseUrl:n,initialization:r={}}=e,i=_A({baseUrl:n,source:r.sourceURL,range:r.range}),s=_A({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=i,s})(e,t));let o;n&&(o=vA(e)),t&&(o=$A(e,t));return o.map((t,n)=>{if(s[n]){const r=s[n],o=e.timescale||1,a=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=i+(t.time-a)/o,r}}).filter(e=>e)},HA=({attributes:e,segmentInfo:t})=>{let n,r;t.template?(r=qA,n=oA(e,t.template)):t.base?(r=bA,n=oA(e,t.base)):t.list&&(r=VA,n=oA(e,t.list));const i={attributes:e};if(!r)return i;const s=r(n,t.segmentTimeline);if(n.duration){const{duration:e,timescale:t=1}=n;n.duration=e/t}else s.length?n.duration=s.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):n.duration=0;return i.attributes=n,i.segments=s,t.base&&n.indexRange&&(i.sidx=s[0],i.segments=[]),i},zA=e=>e.map(HA),GA=(e,t)=>cA(e.childNodes).filter(({tagName:e})=>e===t),KA=e=>e.textContent.trim(),WA=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[n,r,i,s,o,a]=t.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(i||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(a||0)},XA={mediaPresentationDuration:e=>WA(e),availabilityStartTime(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:e=>WA(e),suggestedPresentationDelay:e=>WA(e),type:e=>e,timeShiftBufferDepth:e=>WA(e),start:e=>WA(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce((e,t)=>e/t)))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?WA(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),qualityRanking:e=>parseInt(e,10),qualityranking:e=>parseInt(e,10),DEFAULT:e=>e},YA={qualityranking:"qualityRanking"},ZA=e=>e&&e.attributes?cA(e.attributes).reduce((e,t)=>{const n=XA[t.name]||XA.DEFAULT;return e[YA[t.name]||t.name]=n(t.value),e},{}):{},JA={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},QA=(e,t)=>t.length?lA(e.map(function(e){return t.map(function(t){const n=KA(t),r=WE(e.baseUrl,n),i=oA(ZA(t),{baseUrl:r});return r!==n&&!i.serviceLocation&&e.serviceLocation&&(i.serviceLocation=e.serviceLocation),i})})):e,eP=e=>{const t=GA(e,"SegmentTemplate")[0],n=GA(e,"SegmentList")[0],r=n&&GA(n,"SegmentURL").map(e=>oA({tag:"SegmentURL"},ZA(e))),i=GA(e,"SegmentBase")[0],s=n||t,o=s&&GA(s,"SegmentTimeline")[0],a=n||i||t,l=a&&GA(a,"Initialization")[0],c=t&&ZA(t);c&&l?c.initialization=l&&ZA(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const u={template:c,segmentTimeline:o&&GA(o,"S").map(e=>ZA(e)),list:n&&oA(ZA(n),{segmentUrls:r,initialization:ZA(l)}),base:i&&oA(ZA(i),{initialization:ZA(l)})};return Object.keys(u).forEach(e=>{u[e]||delete u[e]}),u},tP=e=>lA(GA(e.node,"EventStream").map(t=>{const n=ZA(t),r=n.schemeIdUri;return GA(t,"Event").map(t=>{const i=ZA(t),s=i.presentationTime||0,o=n.timescale||1,a=i.duration||0,l=s/o+e.attributes.start;return{schemeIdUri:r,value:n.value,id:i.id,start:l,end:l+a/o,messageData:KA(t)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),nP=(e,t,n)=>r=>{const i=ZA(r),s=QA(t,GA(r,"BaseURL")),o=GA(r,"Role")[0],a={role:ZA(o)};let l=oA(e,i,a);const c=GA(r,"Accessibility")[0],u=(e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}});if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[n,r=""]=e.split("=");t.channel=n,t.language=e,r.split(",").forEach(e=>{const[n,r]=e.split(":");"lang"===n?t.language=r:"er"===n?t.easyReader=Number(r):"war"===n?t.aspectRatio=Number(r):"3D"===n&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})})(ZA(c));u&&(l=oA(l,{captionServices:u}));const d=GA(r,"Label")[0];if(d&&d.childNodes.length){const e=d.childNodes[0].nodeValue.trim();l=oA(l,{label:e})}const h=GA(r,"ContentProtection").reduce((e,t)=>{const n=ZA(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());const r=JA[n.schemeIdUri];if(r){e[r]={attributes:n};const i=GA(t,"cenc:pssh")[0];if(i){const t=KA(i);e[r].pssh=t&&JE(t)}}return e},{});Object.keys(h).length&&(l=oA(l,{contentProtection:h}));const p=eP(r),f=GA(r,"Representation"),m=oA(n,p);return lA(f.map(((e,t,n)=>r=>{const i=GA(r,"BaseURL"),s=QA(t,i),o=oA(e,ZA(r)),a=eP(r);return s.map(e=>({segmentInfo:oA(n,a),attributes:oA(o,e)}))})(l,s,m)))},rP=(e,t)=>(n,r)=>{const i=QA(t,GA(n.node,"BaseURL")),s=oA(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(s.periodDuration=n.attributes.duration);const o=GA(n.node,"AdaptationSet"),a=eP(n.node);return lA(o.map(nP(s,i,a)))},iP=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=oA({serverURL:KA(e[0])},ZA(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},sP=(e,t={})=>{const{manifestUri:n="",NOW:r=Date.now(),clientOffset:i=0,eventHandler:s=function(){}}=t,o=GA(e,"Period");if(!o.length)throw new Error(uA);const a=GA(e,"Location"),l=ZA(e),c=QA([{baseUrl:n}],GA(e,"BaseURL")),u=GA(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=r,l.clientOffset=i,a.length&&(l.locations=a.map(KA));const d=[];return o.forEach((e,t)=>{const n=ZA(e),r=d[t-1];n.start=(({attributes:e,priorPeriodAttributes:t,mpdType:n})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==n?null:0)({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:l.type}),d.push({node:e,attributes:n})}),{locations:l.locations,contentSteeringInfo:iP(u,s),representationInfo:lA(d.map(rP(l,c))),eventStream:lA(d.map(tP))}},oP=e=>{if(""===e)throw new Error(dA);const t=new iA.DOMParser;let n,r;try{n=t.parseFromString(e,"application/xml"),r=n&&"MPD"===n.documentElement.tagName?n.documentElement:null}catch(CL){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(hA);return r},aP=Ya(Object.freeze(Object.defineProperty({__proto__:null,VERSION:"1.4.0",addSidxSegmentsToPlaylist:wA,generateSidxKey:IA,inheritAttributes:sP,parse:(e,t={})=>{const n=sP(oP(e),t),r=zA(n.representationInfo);return jA({dashPlaylists:r,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},parseUTCTiming:e=>(e=>{const t=GA(e,"UTCTiming")[0];if(!t)return null;const n=ZA(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(mA)}return n})(oP(e)),stringToMpdXml:oP,toM3u8:jA,toPlaylists:zA},Symbol.toStringTag,{value:"Module"})));var lP,cP,uP,dP;function hP(){if(dP)return uP;dP=1;var e=function(){if(cP)return lP;cP=1;var e=Math.pow(2,32);return lP={getUint64:function(t){var n,r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getBigUint64?(n=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(n):n:r.getUint32(0)*e+r.getUint32(4)},MAX_UINT32:e}}().getUint64;return uP=function(t){var n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=n.getUint32(i),r.firstOffset=n.getUint32(i+4),i+=8):(r.earliestPresentationTime=e(t.subarray(i)),r.firstOffset=e(t.subarray(i+8)),i+=16),i+=2;var s=n.getUint16(i);for(i+=2;s>0;i+=12,s--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&n.getUint32(i),subsegmentDuration:n.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&n.getUint32(i+8)});return r},uP}var pP=PI([73,68,51]),fP=function(e,t){void 0===t&&(t=0);var n=(e=PI(e))[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?r+20:r+10},mP=function e(t,n){return void 0===n&&(n=0),(t=PI(t)).length-n<10||!$I(t,pP,{offset:n})?n:e(t,n+=fP(t,n))};const _P=Ya(Object.freeze(Object.defineProperty({__proto__:null,getId3Offset:mP,getId3Size:fP},Symbol.toStringTag,{value:"Module"})));var gP=function(e){return"string"==typeof e?UI(e):e},yP=function e(t,n,r){void 0===r&&(r=!1),n=function(e){return Array.isArray(e)?e.map(function(e){return gP(e)}):[gP(e)]}(n),t=PI(t);var i=[];if(!n.length)return i;for(var s=0;s<t.length;){var o=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,a=t.subarray(s+4,s+8);if(0===o)break;var l=s+o;if(l>t.length){if(r)break;l=t.length}var c=t.subarray(s+8,l);$I(a,n[0])&&(1===n.length?i.push(c):i.push.apply(i,e(c,n.slice(1),r))),s=l}return i},vP={EBML:PI([26,69,223,163]),DocType:PI([66,130]),Segment:PI([24,83,128,103]),SegmentInfo:PI([21,73,169,102]),Tracks:PI([22,84,174,107]),Track:PI([174]),TrackNumber:PI([215]),DefaultDuration:PI([35,227,131]),TrackEntry:PI([174]),TrackType:PI([131]),FlagDefault:PI([136]),CodecID:PI([134]),CodecPrivate:PI([99,162]),VideoTrack:PI([224]),AudioTrack:PI([225]),Cluster:PI([31,67,182,117]),Timestamp:PI([231]),TimestampScale:PI([42,215,177]),BlockGroup:PI([160]),BlockDuration:PI([155]),Block:PI([161]),SimpleBlock:PI([163])},bP=[128,64,32,16,8,4,2,1],wP=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i=function(e){for(var t=1,n=0;n<bP.length&&!(e&bP[n]);n++)t++;return t}(e[t]),s=e.subarray(t,t+i);return n&&((s=Array.prototype.slice.call(e,t,t+i))[0]^=bP[i-1]),{length:i,value:NI(s,{signed:r}),bytes:s}},kP=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?jI(t):t},CP=function e(t,n,r){if(r>=n.length)return n.length;var i=wP(n,r,!1);if($I(t.bytes,i.bytes))return r;var s=wP(n,r+i.length);return e(t,n,r+s.length+s.value+i.length)},TP=function e(t,n){n=function(e){return Array.isArray(e)?e.map(function(e){return kP(e)}):[kP(e)]}(n),t=PI(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var s=wP(t,i,!1),o=wP(t,i+s.length),a=i+s.length+o.length;127===o.value&&(o.value=CP(s,t,a),o.value!==t.length&&(o.value-=a));var l=a+o.value>t.length?t.length:a+o.value,c=t.subarray(a,l);$I(n[0],s.bytes)&&(1===n.length?r.push(c):r=r.concat(e(c,n.slice(1)))),i+=s.length+o.length+c.length}return r},SP=PI([0,0,0,1]),xP=PI([0,0,1]),EP=PI([0,0,3]),IP=function(e){for(var t=[],n=1;n<e.length-2;)$I(e.subarray(n,n+3),EP)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,i=new Uint8Array(r),s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=e[s];return i},AP=function(e,t,n,r){e=PI(e),n=[].concat(n);for(var i,s=0,o=0;s<e.length&&(o<r||i);){var a=void 0;if($I(e.subarray(s),SP)?a=4:$I(e.subarray(s),xP)&&(a=3),a){if(o++,i)return IP(e.subarray(i,s));var l=void 0;"h264"===t?l=31&e[s+a]:"h265"===t&&(l=e[s+a]>>1&63),-1!==n.indexOf(l)&&(i=s+a),s+=a+("h264"===t?1:2)}else s++}return e.subarray(0,0)},PP={webm:PI([119,101,98,109]),matroska:PI([109,97,116,114,111,115,107,97]),flac:PI([102,76,97,67]),ogg:PI([79,103,103,83]),ac3:PI([11,119]),riff:PI([82,73,70,70]),avi:PI([65,86,73]),wav:PI([87,65,86,69]),"3gp":PI([102,116,121,112,51,103]),mp4:PI([102,116,121,112]),fmp4:PI([115,116,121,112]),mov:PI([102,116,121,112,113,116]),moov:PI([109,111,111,118]),moof:PI([109,111,111,102]),vtt:PI([87,69,66,86,84,84])},OP={aac:function(e){var t=mP(e);return $I(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=mP(e);return $I(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=TP(e,[vP.EBML,vP.DocType])[0];return $I(t,PP.webm)},mkv:function(e){var t=TP(e,[vP.EBML,vP.DocType])[0];return $I(t,PP.matroska)},mp4:function(e){return!OP["3gp"](e)&&!OP.mov(e)&&(!(!$I(e,PP.mp4,{offset:4})&&!$I(e,PP.fmp4,{offset:4}))||(!(!$I(e,PP.moof,{offset:4})&&!$I(e,PP.moov,{offset:4}))||void 0))},mov:function(e){return $I(e,PP.mov,{offset:4})},"3gp":function(e){return $I(e,PP["3gp"],{offset:4})},ac3:function(e){var t=mP(e);return $I(e,PP.ac3,{offset:t})},vtt:function(e){return $I(e,PP.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=mP(e);return $I(e,PP.flac,{offset:t})},ogg:function(e){return $I(e,PP.ogg)},avi:function(e){return $I(e,PP.riff)&&$I(e,PP.avi,{offset:8})},wav:function(e){return $I(e,PP.riff)&&$I(e,PP.wav,{offset:8})},h264:function(e){return function(e,t,n){return AP(e,"h264",t,n)}(e,7,3).length},h265:function(e){return function(e,t,n){return AP(e,"h265",t,n)}(e,[32,33],3).length}},LP=Object.keys(OP).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);LP.forEach(function(e){var t=OP[e];OP[e]=function(e){return t(PI(e))}});var DP=OP;const RP=Object.freeze(Object.defineProperty({__proto__:null,detectContainerForBytes:function(e){e=PI(e);for(var t=0;t<LP.length;t++){var n=LP[t];if(DP[n](e))return n}return""},isLikely:DP,isLikelyFmp4MediaSegment:function(e){return yP(e,["moof"]).length>0}},Symbol.toStringTag,{value:"Module"})),MP=Ya(RP);var NP,jP,UP;function $P(){if(UP)return hE;UP=1;var e=fE();Object.defineProperty(hE,"__esModule",{value:!0}),hE.default=Ri;var t=e(mE()),n=e(vE()),r=e(RE()),i=e(function(){if(FE)return qE.exports;FE=1;var e=mE(),t=qE.exports={WebVTT:VE(),VTTCue:HE(),VTTRegion:zE()};e.vttjs=t,e.WebVTT=t.WebVTT;var n=t.VTTCue,r=t.VTTRegion,i=e.VTTCue,s=e.VTTRegion;return t.shim=function(){e.VTTCue=n,e.VTTRegion=r},t.restore=function(){e.VTTCue=i,e.VTTRegion=s},e.VTTCue||t.shim(),qE.exports}()),s=e(LE()),o=e(XE),a=lI,l=vI,c=kI,u=FI,d=aP,h=e(hP()),p=_P,f=MP,m=function(){if(jP)return NP;jP=1;var e,t,n,r,i,s,o,a=9e4;return i=function(t,n){return e(r(t,n))},s=function(e,r){return t(n(e),r)},o=function(e,t,r){return n(r?e:e-t)},NP={ONE_SECOND_IN_TS:a,secondsToVideoTs:e=function(e){return e*a},secondsToAudioTs:t=function(e,t){return e*t},videoTsToSeconds:n=function(e){return e/a},audioTsToSeconds:r=function(e,t){return e/t},audioTsToVideoTs:i,videoTsToAudioTs:s,metadataTsToSeconds:o}}(),_="8.23.4";const g={},y=function(e,t){return g[e]=g[e]||[],t&&(g[e]=g[e].concat(t)),g[e]},v=function(e,t){const n=y(e).indexOf(t);return!(n<=-1)&&(g[e]=g[e].slice(),g[e].splice(n,1),!0)},b={prefixed:!0},w=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],k=w[0];let C;for(let Wa=0;Wa<w.length;Wa++)if(w[Wa][1]in n.default){C=w[Wa];break}if(C){for(let e=0;e<C.length;e++)b[k[e]]=C[e];b.prefixed=C[0]!==k[0]}let T=[];const S=function e(n,r=":",i=""){let s,o="info";function a(...e){s("log",o,e)}return s=((e,n,r)=>(i,s,o)=>{const a=n.levels[s],l=new RegExp(`^(${a})$`);let c=e;if("log"!==i&&o.unshift(i.toUpperCase()+":"),r&&(c=`%c${e}`,o.unshift(r)),o.unshift(c+":"),T){T.push([].concat(o));const e=T.length-1e3;T.splice(0,e>0?e:0)}if(!t.default.console)return;let u=t.default.console[i];u||"debug"!==i||(u=t.default.console.info||t.default.console.log),u&&a&&l.test(i)&&u[Array.isArray(o)?"apply":"call"](t.default.console,o)}
vendor: 4,488 bytes, line 698
698)(n,a,i),a.createLogger=(t,s,o)=>{const a=void 0!==s?s:r;return e(`${n} ${a} ${t}`,a,void 0!==o?o:i)},a.createNewLogger=(t,n,r)=>e(t,n,r),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);o=e}return o},a.history=()=>T?[].concat(T):[],a.history.filter=e=>(T||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{T&&(T.length=0)},a.history.disable=()=>{null!==T&&(T.length=0,T=null)},a.history.enable=()=>{null===T&&(T=[])},a.error=(...e)=>s("error",o,e),a.warn=(...e)=>s("warn",o,e),a.debug=(...e)=>s("debug",o,e),a}("VIDEOJS"),x=S.createLogger,E=Object.prototype.toString,I=function(e){return O(e)?Object.keys(e):[]};function A(e,t){I(e).forEach(n=>t(e[n],n))}function P(e,t,n=0){return I(e).reduce((n,r)=>t(n,e[r],r),n)}function O(e){return!!e&&"object"==typeof e}function L(e){return O(e)&&"[object Object]"===E.call(e)&&e.constructor===Object}function D(...e){const t={};return e.forEach(e=>{e&&A(e,(e,n)=>{L(e)?(L(t[n])||(t[n]={}),t[n]=D(t[n],e)):t[n]=e})}),t}function R(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];t.push(r)}return t}function M(e,t,n,r=!0){const i=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0}),s={configurable:!0,enumerable:!0,get(){const e=n();return i(e),e}};return r&&(s.set=i),Object.defineProperty(e,t,s)}var N=Object.freeze({__proto__:null,each:A,reduce:P,isObject:O,isPlain:L,merge:D,values:R,defineLazyProperty:M});let j,U=!1,$=null,B=!1,F=!1,q=!1,V=!1,H=!1,z=null,G=null;const K=Boolean(t.default.cast&&t.default.cast.framework&&t.default.cast.framework.CastReceiverContext);let W=null,X=!1,Y=!1,Z=!1,J=!1,Q=!1,ee=!1,te=!1;const ne=Boolean(le()&&("ontouchstart"in t.default||t.default.navigator.maxTouchPoints||t.default.DocumentTouch&&t.default.document instanceof t.default.DocumentTouch)),re=t.default.navigator&&t.default.navigator.userAgentData;if(re&&re.platform&&re.brands&&(B="Android"===re.platform,q=Boolean(re.brands.find(e=>"Microsoft Edge"===e.brand)),V=Boolean(re.brands.find(e=>"Chromium"===e.brand)),H=!q&&V,z=G=(re.brands.find(e=>"Chromium"===e.brand)||{}).version||null,Y="Windows"===re.platform),!V){const e=t.default.navigator&&t.default.navigator.userAgent||"";U=/iPod/i.test(e),$=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),B=/Android/i.test(e),j=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),r=t[2]&&parseFloat(t[2]);return n&&r?parseFloat(t[1]+"."+t[2]):n||null}(),F=/Firefox/i.test(e),q=/Edg/i.test(e),V=/Chrome/i.test(e)||/CriOS/i.test(e),H=!q&&V,z=G=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),W=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),Q=/Tizen/i.test(e),ee=/Web0S/i.test(e),te=Q||ee,X=/Safari/i.test(e)&&!H&&!B&&!q&&!te,Y=/Windows/i.test(e),Z=/iPad/i.test(e)||X&&ne&&!/iPhone/i.test(e),J=/iPhone/i.test(e)&&!Z}const ie=J||Z||U,se=(X||ie)&&!H;var oe=Object.freeze({__proto__:null,get IS_IPOD(){return U},get IOS_VERSION(){return $},get IS_ANDROID(){return B},get ANDROID_VERSION(){return j},get IS_FIREFOX(){return F},get IS_EDGE(){return q},get IS_CHROMIUM(){return V},get IS_CHROME(){return H},get CHROMIUM_VERSION(){return z},get CHROME_VERSION(){return G},IS_CHROMECAST_RECEIVER:K,get IE_VERSION(){return W},get IS_SAFARI(){return X},get IS_WINDOWS(){return Y},get IS_IPAD(){return Z},get IS_IPHONE(){return J},get IS_TIZEN(){return Q},get IS_WEBOS(){return ee},get IS_SMART_TV(){return te},TOUCH_ENABLED:ne,IS_IOS:ie,IS_ANY_SAFARI:se});function ae(e){return"string"==typeof e&&Boolean(e.trim())}function le(){return n.default===t.default.document}function ce(e){return O(e)&&1===e.nodeType}function ue(){try{return t.default.parent!==t.default.self}catch(e){return!0}}function de(e){return function(t,r){if(!ae(t))return n.default[e](null);ae(r)&&(r=n.default.querySelector(r));const i=ce(r)?r:n.default;return i[e]&&i[e](t)}}function he(e="div",t={},r={},i){const s=n.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){const n=t[e];"textContent"===e?pe(s,n):s[e]===n&&"tabIndex"!==e||(s[e]=n)}),Object.getOwnPropertyNames(r).forEach(function(e){s.setAttribute(e,r[e])}),i&&Le(s,i),s}
vendor: 14,704 bytes, line 698
698function pe(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function fe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function me(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function _e(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function ge(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(S.warn("removeClass was called with an element that doesn't exist"),null)}function ye(e,t,n){return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,n)),e}function ve(e,t){Object.getOwnPropertyNames(t).forEach(function(n){const r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function be(e){const t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const r=e.attributes;for(let e=r.length-1;e>=0;e--){const i=r[e].name;let s=r[e].value;n.includes(i)&&(s=null!==s),t[i]=s}}return t}function we(e,t){return e.getAttribute(t)}function ke(e,t,n){e.setAttribute(t,n)}function Ce(e,t){e.removeAttribute(t)}function Te(){n.default.body.focus(),n.default.onselectstart=function(){return!1}}function Se(){n.default.onselectstart=function(){return!0}}function xe(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(je(e,"height"))),n.width||(n.width=parseFloat(je(e,"width"))),n}}function Ee(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,r=e.offsetHeight;let i=0,s=0;for(;e.offsetParent&&e!==n.default[b.fullscreenElement];)i+=e.offsetLeft,s+=e.offsetTop,e=e.offsetParent;return{left:i,top:s,width:t,height:r}}function Ie(e,n){const r={x:0,y:0};if(ie){let n=e;for(;n&&"html"!==n.nodeName.toLowerCase();){const e=je(n,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);r.x+=t[4],r.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);r.x+=t[12],r.y+=t[13]}if(n.assignedSlot&&n.assignedSlot.parentElement&&t.default.WebKitCSSMatrix){const e=t.default.getComputedStyle(n.assignedSlot.parentElement).transform,i=new t.default.WebKitCSSMatrix(e);r.x+=i.m41,r.y+=i.m42}n=n.parentNode||n.host}}const i={},s=Ee(n.target),o=Ee(e),a=o.width,l=o.height;let c=n.offsetY-(o.top-s.top),u=n.offsetX-(o.left-s.left);return n.changedTouches&&(u=n.changedTouches[0].pageX-o.left,c=n.changedTouches[0].pageY+o.top,ie&&(u-=r.x,c-=r.y)),i.y=1-Math.max(0,Math.min(1,c/l)),i.x=Math.max(0,Math.min(1,u/a)),i}function Ae(e){return O(e)&&3===e.nodeType}function Pe(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Oe(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),ce(e)||Ae(e)?e:"string"==typeof e&&/\S/.test(e)?n.default.createTextNode(e):void 0)).filter(e=>e)}function Le(e,t){return Oe(t).forEach(t=>e.appendChild(t)),e}function De(e,t){return Le(Pe(e),t)}function Re(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||("mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons)))}const Me=de("querySelector"),Ne=de("querySelectorAll");function je(e,n){if(!e||!n)return"";if("function"==typeof t.default.getComputedStyle){let r;try{r=t.default.getComputedStyle(e)}catch(CL){return""}return r?r.getPropertyValue(n)||r[n]:""}return""}function Ue(e){[...n.default.styleSheets].forEach(t=>{try{const r=[...t.cssRules].map(e=>e.cssText).join(""),i=n.default.createElement("style");i.textContent=r,e.document.head.appendChild(i)}catch(CL){const i=n.default.createElement("link");i.rel="stylesheet",i.type=t.type,i.media=t.media.mediaText,i.href=t.href,e.document.head.appendChild(i)}})}var $e=Object.freeze({__proto__:null,isReal:le,isEl:ce,isInFrame:ue,createEl:he,textContent:pe,prependTo:fe,hasClass:me,addClass:_e,removeClass:ge,toggleClass:ye,setAttributes:ve,getAttributes:be,getAttribute:we,setAttribute:ke,removeAttribute:Ce,blockTextSelection:Te,unblockTextSelection:Se,getBoundingClientRect:xe,findPosition:Ee,getPointerPosition:Ie,isTextNode:Ae,emptyEl:Pe,normalizeContent:Oe,appendContent:Le,insertContent:De,isSingleLeftClick:Re,$:Me,$$:Ne,computedStyle:je,copyStyleSheetsToWindow:Ue});let Be,Fe=!1;const qe=function(){if(!1===Be.options.autoSetup)return;const e=Array.prototype.slice.call(n.default.getElementsByTagName("video")),t=Array.prototype.slice.call(n.default.getElementsByTagName("audio")),r=Array.prototype.slice.call(n.default.getElementsByTagName("video-js")),i=e.concat(t,r);if(i&&i.length>0)for(let n=0,s=i.length;n<s;n++){const e=i[n];if(!e||!e.getAttribute){Ve(1);break}if(void 0===e.player){null!==e.getAttribute("data-setup")&&Be(e)}}else Fe||Ve(1)};function Ve(e,n){le()&&(n&&(Be=n),t.default.setTimeout(qe,e))}function He(){Fe=!0,t.default.removeEventListener("load",He)}le()&&("complete"===n.default.readyState?He():t.default.addEventListener("load",He));const ze=function(e){const t=n.default.createElement("style");return t.className=e,t},Ge=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var Ke=new WeakMap;let We,Xe=3;function Ye(){return Xe++}function Ze(e,t){if(!Ke.has(e))return;const n=Ke.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Ke.delete(e)}function Je(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Qe(e){if(e.fixed_)return e;function r(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||t.default.event;e={};const o=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const t in s)o.includes(t)||"returnValue"===t&&s.preventDefault||(e[t]=s[t]);if(e.target||(e.target=e.srcElement||n.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=r},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=r,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=n.default.documentElement,r=n.default.body;e.pageX=e.clientX+(t&&t.scrollLeft||r&&r.scrollLeft||0)-(t&&t.clientLeft||r&&r.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||r&&r.scrollTop||0)-(t&&t.clientTop||r&&r.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const et=["touchstart","touchmove"];function tt(e,n,r){if(Array.isArray(n))return Je(tt,e,n,r);Ke.has(e)||Ke.set(e,{});const i=Ke.get(e);if(i.handlers||(i.handlers={}),i.handlers[n]||(i.handlers[n]=[]),r.guid||(r.guid=Ye()),i.handlers[n].push(r),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(i.disabled)return;t=Qe(t);const r=i.handlers[t.type];if(r){const i=r.slice(0);for(let r=0,s=i.length;r<s&&!t.isImmediatePropagationStopped();r++)try{i[r].call(e,t,n)}catch(CL){S.error(CL)}}}),1===i.handlers[n].length)if(e.addEventListener){let r=!1;(function(){if("boolean"!=typeof We){We=!1;try{const e=Object.defineProperty({},"passive",{get(){We=!0}});t.default.addEventListener("test",null,e),t.default.removeEventListener("test",null,e)}catch(CL){}}return We})()&&et.indexOf(n)>-1&&(r={passive:!0}),e.addEventListener(n,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+n,i.dispatcher)}function nt(e,t,n){if(!Ke.has(e))return;const r=Ke.get(e);if(!r.handlers)return;if(Array.isArray(t))return Je(nt,e,t,n);const i=function(e,t){r.handlers[t]=[],Ze(e,t)};if(void 0===t){for(const t in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},t)&&i(e,t);return}const s=r.handlers[t];if(s)if(n){if(n.guid)for(let e=0;e<s.length;e++)s[e].guid===n.guid&&s.splice(e--,1);Ze(e,t)}else i(e,t)}function rt(e,t,n){const r=Ke.has(e)?Ke.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Qe(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)rt.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Ke.has(t.target)||Ke.set(t.target,{});const e=Ke.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function it(e,t,n){if(Array.isArray(t))return Je(it,e,t,n);const r=function(){nt(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Ye(),tt(e,t,r)}function st(e,t,n){const r=function(){nt(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Ye(),tt(e,t,r)}var ot=Object.freeze({__proto__:null,fixEvent:Qe,on:tt,off:nt,trigger:rt,one:it,any:st});const at=30,lt=function(e,t,n){t.guid||(t.guid=Ye());const r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},ct=function(e,n){let r=t.default.performance.now();return function(...i){const s=t.default.performance.now();s-r>=n&&(e(...i),r=s)}},ut=function(e,n,r,i=t.default){let s;const o=function(){const t=this,o=arguments;let a=function(){s=null,a=null,r||e.apply(t,o)};!s&&r&&e.apply(t,o),i.clearTimeout(s),s=i.setTimeout(a,n)};return o.cancel=()=>{i.clearTimeout(s),s=null},o};var dt=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:at,bind_:lt,throttle:ct,debounce:ut});let ht;class pt{on(e,t){const n=this.addEventListener;this.addEventListener=()=>{},tt(this,e,t),this.addEventListener=n}off(e,t){nt(this,e,t)}one(e,t){const n=this.addEventListener;this.addEventListener=()=>{},it(this,e,t),this.addEventListener=n}any(e,t){const n=this.addEventListener;this.addEventListener=()=>{},st(this,e,t),this.addEventListener=n}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=Qe(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),rt(this,e)}queueTrigger(e){ht||(ht=new Map);const n=e.type||e;let r=ht.get(this);r||(r=new Map,ht.set(this,r));const i=r.get(n);r.delete(n),t.default.clearTimeout(i);const s=t.default.setTimeout(()=>{r.delete(n),0===r.size&&(r=null,ht.delete(this)),this.trigger(e)},0);r.set(n,s)}}pt.prototype.allowedEvents_={},pt.prototype.addEventListener=pt.prototype.on,pt.prototype.removeEventListener=pt.prototype.off,pt.prototype.dispatchEvent=pt.prototype.trigger;const ft=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,mt=e=>e instanceof pt||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),_t=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,gt=(e,t,n)=>{if(!e||!e.nodeName&&!mt(e))throw new Error(`Invalid target for ${ft(t)}#${n}; must be a DOM node or evented object.`)},yt=(e,t,n)=>{if(!_t(e))throw new Error(`Invalid event type for ${ft(t)}#${n}; must be a non-empty string or array.`)},vt=(e,t,n)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${ft(t)}#${n}; must be a function.`)},bt=(e,t,n)=>{const r=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let i,s,o;return r?(i=e.eventBusEl_,t.length>=3&&t.shift(),[s,o]=t):(i=t[0],s=t[1],o=t[2]),gt(i,e,n),yt(s,e,n),vt(o,e,n),o=lt(e,o),{isTargetingSelf:r,target:i,type:s,listener:o}},wt=(e,t,n,r)=>{gt(e,e,t),e.nodeName?ot[t](e,n,r):e[t](n,r)},kt={on(...e){const{isTargetingSelf:t,target:n,type:r,listener:i}=bt(this,e,"on");if(wt(n,"on",r,i),!t){const e=()=>this.off(n,r,i);e.guid=i.guid;const t=()=>this.off("dispose",e);t.guid=i.guid,wt(this,"on","dispose",e),wt(n,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:n,type:r,listener:i}=bt(this,e,"one");if(t)wt(n,"one",r,i);else{const e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,wt(n,"one",r,e)}},any(...e){const{isTargetingSelf:t,target:n,type:r,listener:i}=bt(this,e,"any");if(t)wt(n,"any",r,i);else{const e=(...t)=>{this.off(n,r,e),i.apply(null,t)};e.guid=i.guid,wt(n,"any",r,e)}},off(e,t,n){if(!e||_t(e))nt(this.eventBusEl_,e,t);else{const r=e,i=t;gt(r,this,"off"),yt(i,this,"off"),vt(n,this,"off"),n=lt(this,n),this.off("dispose",n),r.nodeName?(nt(r,i,n),nt(r,"dispose",n)):mt(r)&&(r.off(i,n),r.off("dispose",n))}},trigger(e,t){gt(this.eventBusEl_,this,"trigger");const n=e&&"string"!=typeof e?e.type:e;if(!_t(n))throw new Error(`Invalid event type for ${ft(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return rt(this.eventBusEl_,e,t)}};function Ct(e,n={}){const{eventBusKey:r}=n;if(r){if(!e[r].nodeName)throw new Error(`The eventBusKey "${r}" does not refer to an element.`);e.eventBusEl_=e[r]}else e.eventBusEl_=he("span",{className:"vjs-event-bus"});return Object.assign(e,kt),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&Ke.has(e)&&Ke.delete(e)}),t.default.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const Tt={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),A(e,(e,n)=>{this.state[n]!==e&&(t=t||{},t[n]={from:this.state[n],to:e}),this.state[n]=e}),t&&mt(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function St(e,t){return Object.assign(e,Tt),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&mt(e)&&e.on("statechanged",e.handleStateChanged),e}const xt=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},Et=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},It=function(e,t){return Et(e)===Et(t)};var At=Object.freeze({__proto__:null,toLowerCase:xt,toTitleCase:Et,titleCaseEquals:It});class Pt{constructor(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=D({},this.options_),t=this.options_=D(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${Ye()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e
vendor: 4,334 bytes, line 698
698=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(Ct(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),St(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=D(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,n){return he(e,t,n)}localize(e,t,n=e){const r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),s=i&&i[r],o=r&&r.split("-")[0],a=i&&i[o];let l=n;return s&&s[e]?l=s[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){const r=t[n-1];let i=r;return void 0===r&&(i=e),i})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const r="http://www.w3.org/2000/svg",i=he("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),s=n.default.createElementNS(r,"svg");s.setAttributeNS(null,"viewBox","0 0 512 512");const o=n.default.createElementNS(r,"use");return s.appendChild(o),o.setAttributeNS(null,"href",`#vjs-icon-${e}`),i.appendChild(s),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}addChild(e,t={},n=this.children_.length){let r,i;if("string"==typeof e){i=Et(e);const n=t.componentClass||i;t.name=i;const s=Pt.getComponent(n);if(!s)throw new Error(`Component ${n} does not exist`);if("function"!=typeof s)return null;r=new s(this.player_||this,t)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),i=i||r.name&&Et(r.name()),i&&(this.childNameIndex_[i]=r,this.childNameIndex_[xt(i)]=r),"function"==typeof r.el&&r.el()){let e=null;this.children_[n+1]&&(this.children_[n+1].el_?e=this.children_[n+1].el_:ce(this.children_[n+1])&&(e=this.children_[n+1])),this.contentEl().insertBefore(r.el(),e)}return r}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){t=!0,this.children_.splice(r,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Et(e.name())]=null,this.childNameIndex_[xt(e.name())]=null;const n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,n=e=>{const n=e.name;let r=e.opts;if(void 0!==t[n]&&(r=t[n]),!1===r)return;!0===r&&(r={}),r.playerOptions=this.options_.playerOptions;const i=this.addChild(n,r);i&&(this[n]=i)};let r;const i=Pt.getComponent("Tech");r=Array.isArray(e)?e:Object.keys(e),r.concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let n,r;return"string"==typeof t?(n=t,r=e[n]||this.options_[n]||{}):(n=t.name,r=t),{name:n,opts:r}}).filter(e=>
vendor: 20,274 bytes, line 698
698{const t=Pt.getComponent(e.opts.componentClass||Et(e.name));return t&&!i.isTech(t)}).forEach(n)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return Me(e,t||this.contentEl())}$$(e,t){return Ne(e,t||this.contentEl())}hasClass(e){return me(this.el_,e)}addClass(...e){_e(this.el_,...e)}removeClass(...e){ge(this.el_,...e)}toggleClass(e,t){ye(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return we(this.el_,e)}setAttribute(e,t){ke(this.el_,e,t)}removeAttribute(e){Ce(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;const r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+Et(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=je(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const n=`offset${Et(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,n=null;let r;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=t.default.performance.now(),r=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)r=!1;else if(n){const t=e.touches[0].pageX-n.pageX,i=e.touches[0].pageY-n.pageY;Math.sqrt(t*t+i*i)>10&&(r=!1)}});const i=function(){r=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){if(n=null,!0===r){t.default.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap"))}})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=lt(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}setTimeout(e,n){var r;return e=lt(this,e),this.clearTimersOnDispose_(),r=t.default.setTimeout(()=>{this.setTimeoutIds_.has(r)&&this.setTimeoutIds_.delete(r),e()},n),this.setTimeoutIds_.add(r),r}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),t.default.clearTimeout(e)),e}setInterval(e,n){e=lt(this,e),this.clearTimersOnDispose_();const r=t.default.setInterval(e,n);return this.setIntervalIds_.add(r),r}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),t.default.clearInterval(e)),e}requestAnimationFrame(e){var n;return this.clearTimersOnDispose_(),e=lt(this,e),n=t.default.requestAnimationFrame(()=>{this.rafIds_.has(n)&&this.rafIds_.delete(n),e()}),this.rafIds_.add(n),n}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=lt(this,t);const n=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),t.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((e,n)=>this[t](n))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return Boolean(this.el_.disabled)}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function r(e){const n=t.default.getComputedStyle(e,null),r=n.getPropertyValue("visibility");return"none"!==n.getPropertyValue("display")&&!["hidden","collapse"].includes(r)}return e||(e=this.el()),!!(function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;const r={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(r.x<0)return!1;if(r.x>(n.default.documentElement.clientWidth||t.default.innerWidth))return!1;if(r.y<0)return!1;if(r.y>(n.default.documentElement.clientHeight||t.default.innerHeight))return!1;let i=n.default.elementFromPoint(r.x,r.y);for(;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}}(e)&&(i=e,r(i.parentElement)&&r(i)&&"0"!==i.style.opacity&&"0px"!==t.default.getComputedStyle(i).height&&"0px"!==t.default.getComputedStyle(i).width)&&(!e.parentElement||e.tabIndex>=0));var i}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const n=Pt.getComponent("Tech"),r=n&&n.isTech(t),i=Pt===t||Pt.prototype.isPrototypeOf(t.prototype);if(r||!i){let t;throw t=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Et(e),Pt.components_||(Pt.components_={});const s=Pt.getComponent("Player");if("Player"===e&&s&&s.players){const e=s.players,t=Object.keys(e);if(e&&t.length>0)for(let n=0;n<t.length;n++)if(null!==e[t[n]])throw new Error("Can not register Player component after player has been created.")}return Pt.components_[e]=t,Pt.components_[xt(e)]=t,t}static getComponent(e){if(e&&Pt.components_)return Pt.components_[e]}}function Ot(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}(e,r,n.length-1),n[r][t]}function Lt(e){let n;return n=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Ot.bind(null,"start",0,e),end:Ot.bind(null,"end",1,e)},t.default.Symbol&&t.default.Symbol.iterator&&(n[t.default.Symbol.iterator]=()=>(e||[]).values()),n}function Dt(e,t){return Array.isArray(e)?Lt(e):void 0===e||void 0===t?Lt():Lt([[e,t]])}Pt.registerComponent("Component",Pt);const Rt=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600);const s=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||o>0?i+":":"",r=((i||s>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n};let Mt=Rt;function Nt(e){Mt=e}function jt(){Mt=Rt}function Ut(e,t=e){return Mt(e,t)}var $t=Object.freeze({__proto__:null,createTimeRanges:Dt,createTimeRange:Dt,setFormatTime:Nt,resetFormatTime:jt,formatTime:Ut});function Bt(e,t){let n,r,i=0;if(!t)return 0;e&&e.length||(e=Dt(0,0));for(let s=0;s<e.length;s++)n=e.start(s),r=e.end(s),r>t&&(r=t),i+=r-n;return i/t}function Ft(e){if(e instanceof Ft)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:O(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=Ft.defaultMessages[this.code]||"")}function qt(e){return null!=e&&"function"==typeof e.then}function Vt(e){qt(e)&&e.then(null,e=>{})}Ft.prototype.code=0,Ft.prototype.message="",Ft.prototype.status=null,Ft.prototype.metadata=null,Ft.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ft.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},Ft.MEDIA_ERR_CUSTOM=0,Ft.prototype.MEDIA_ERR_CUSTOM=0,Ft.MEDIA_ERR_ABORTED=1,Ft.prototype.MEDIA_ERR_ABORTED=1,Ft.MEDIA_ERR_NETWORK=2,Ft.prototype.MEDIA_ERR_NETWORK=2,Ft.MEDIA_ERR_DECODE=3,Ft.prototype.MEDIA_ERR_DECODE=3,Ft.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Ft.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Ft.MEDIA_ERR_ENCRYPTED=5,Ft.prototype.MEDIA_ERR_ENCRYPTED=5;const Ht=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,n,r)=>(e[n]&&(t[n]=e[n]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};var zt=function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){const t=Ht(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(Ht))},Gt=function(e,t){return e.forEach(function(e){const n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>n.addCue(e))}),t.textTracks()},Kt=Ht;const Wt="vjs-modal-dialog";class Xt extends Pt{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=he("div",{className:`${Wt}-content`},{role:"document"}),this.descEl_=he("p",{className:`${Wt}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),pe(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${Wt} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let n=this.getChild("closeButton");if(t&&!n){const e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),De(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);const i=this.getChild("closeButton");i&&n.appendChild(i.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),Pe(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=n.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"!==e.key)return;const t=this.focusableEls_(),r=this.el_.querySelector(":focus");let i;for(let n=0;n<t.length;n++)if(r===t[n]){i=n;break}n.default.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof t.default.HTMLAnchorElement||e instanceof t.default.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof t.default.HTMLInputElement||e instanceof t.default.HTMLSelectElement||e instanceof t.default.HTMLTextAreaElement||e instanceof t.default.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof t.default.HTMLIFrameElement||e instanceof t.default.HTMLObjectElement||e instanceof t.default.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}Xt.prototype.options_={pauseOnOpen:!0,temporary:!0},Pt.registerComponent("ModalDialog",Xt);class Yt extends pt{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},mt(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let n=0,r=this.length;n<r;n++){const r=this[n];if(r.id===e){t=r;break}}return t}}Yt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const Wa in Yt.prototype.allowedEvents_)Yt.prototype["on"+Wa]=null;const Zt=function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)};class Jt extends Yt{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){Zt(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&Zt(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,Zt(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const Qt=function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)};class en extends Yt{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Qt(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&Qt(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Qt(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class tn extends Yt{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}}class nn{constructor(e){nn.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let n=0;const r=e.length;this.cues_=e,this.length_=e.length;const i=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)}getCueById(e){let t=null;for(let n=0,r=this.length;n<r;n++){const r=this[n];if(r.id===e){t=r;break}}return t}}const rn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},sn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},on={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},an={disabled:"disabled",hidden:"hidden",showing:"showing"};class ln extends pt{constructor(e={}){super();const t={id:e.id||"vjs_track_"+Ye(),kind:e.kind||"",language:e.language||""};let n=e.label||"";for(const r in t)Object.defineProperty(this,r,{get:()=>t[r],set(){}});Object.defineProperty(this,"label",{get:()=>n,set(e){e!==n&&(n=e,this.trigger("labelchange"))}})}}const cn=function(e){return new URL(e,n.default.baseURI)},un=function(e){return new URL(e,n.default.baseURI).href},dn=function(e){if("string"==typeof e){const t=e.split("?")[0].replace(/\/+$/,"").match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():""}return""},hn=function(e,n=t.default.location){return cn(e).origin!==n.origin};var pn=Object.freeze({__proto__:null,parseUrl:cn,getAbsoluteURL:un,getFileExtension:dn,isCrossOrigin:hn});const fn=function(e,n){const r=new t.default.WebVTT.Parser(t.default,t.default.vttjs,t.default.WebVTT.StringDecoder()),i=[];r.oncue=function(e){n.addCue(e)},r.onparsingerror=function(e){i.push(e)},r.onflush=function(){n.trigger({type:"loadeddata",target:n})},r.parse(e),i.length>0&&(t.default.console&&t.default.console.groupCollapsed&&t.default.console.groupCollapsed(`Text Track parsing errors for ${n.src}
698`),i.forEach(e=>S.error(e)),t.default.console&&t.default.console.groupEnd&&t.default.console.groupEnd()),r.flush()},mn=function(e,n){const i={uri:e},s=hn(e);s&&(i.cors=s);const o="use-credentials"===n.tech_.crossOrigin();o&&(i.withCredentials=o),(0,r.default)(i,lt(this,function(e,r,i){if(e)return S.error(e,r);n.loaded_=!0,"function"!=typeof t.default.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return fn(i,n);S.error(`vttjs failed to load, stopping trying to process ${n.src}`)}):fn(i,n)}))};class _n extends ln{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=D(e,{kind:on[e.kind]||"subtitles",language:e.language||e.srclang||""});let n=an[t.mode]||"disabled";const r=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(n="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const i=new nn(this.cues_),s=new nn(this.activeCues_);let o=!1;this.timeupdateHandler=lt(this,function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))});this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==n&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>r,set(){}},mode:{get:()=>n,set(e){an[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||mn(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?i:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return s;const e=this.tech_.currentTime(),t=[];for(let n=0,r=this.cues.length;n<r;n++){const r=this.cues[n];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(let n=0;n<t.length;n++)-1===this.activeCues_.indexOf(t[n])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&mn(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let n=e;if(!("getCueAsHTML"in n)){n=new t.default.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const t in e)t in n||(n[t]=e[t]);n.id=e.id,n.originalCue_=e}const r=this.tech_.textTracks();for(let t=0;t<r.length;t++)r[t]!==this&&r[t].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)}toJSON(){return Kt(this)}removeCue(e){let t=this.cues_.length;for(;t--;){const n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}_n.prototype.allowedEvents_={cuechange:"cuechange"};class gn extends ln{constructor(e={}){const t=D(e,{kind:sn[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"enabled",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class yn extends ln{constructor(e={}){const t=D(e,{kind:rn[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"selected",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class vn extends pt{constructor(e={}){let t;super();const n=new _n(e);this.kind=n.kind,this.src=n.src,this.srclang=n.language,this.label=n.label,this.default=n.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>n}}),t=vn.NONE,n.addEventListener("loadeddata",()=>{t=vn.LOADED,this.trigger({type:"load",target:this})})}}vn.prototype.allowedEvents_={load:"load"},vn.NONE=0,vn.LOADING=1,vn.LOADED=2,vn.ERROR=3;
vendor: 18,442 bytes, line 698
698const bn={audio:{ListClass:Jt,TrackClass:gn,capitalName:"Audio"},video:{ListClass:en,TrackClass:yn,capitalName:"Video"},text:{ListClass:tn,TrackClass:_n,capitalName:"Text"}};Object.keys(bn).forEach(function(e){bn[e].getterName=`${e}Tracks`,bn[e].privateName=`${e}Tracks_`});const wn={remoteText:{ListClass:tn,TrackClass:_n,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},kn=Object.assign({},bn,wn);wn.names=Object.keys(wn),bn.names=Object.keys(bn),kn.names=[].concat(wn.names).concat(bn.names);class Cn extends Pt{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),kn.names.forEach(t=>{const n=kn[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new kn.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(lt(this,function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return Dt(0,0)}bufferedPercent(){return Bt(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(bn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){(e=[].concat(e)).forEach(e=>{const t=this[`${e}Tracks`]()||[];let n=t.length;for(;n--;){const r=t[n];"text"===e&&this.removeRemoteTextTrack(r),t.removeTrack(r)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new Ft(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Dt(0,0):Dt()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){bn.names.forEach(e=>{const t=bn[e],n=()=>{this.trigger(`${e}trackchange`)},r=this[t.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),this.on("dispose",()=>{r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})}addWebVttScript_(){if(!t.default.WebVTT)if(n.default.body.contains(this.el())){if(!this.options_["vtt.js"]&&L(i.default)&&Object.keys(i.default).length>0)return void this.trigger("vttjsloaded");const e=n.default.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),t.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),n=t=>e.addTrack(t.track),r=t=>e.removeTrack(t.track);t.on("addtrack",n),t.on("removetrack",r),this.addWebVttScript_();const i=()=>this.trigger("texttrackchange"),s=()=>{i();for(let t=0;t<e.length;t++){const n=e[t];n.removeEventListener("cuechange",i),"showing"===n.mode&&n.addEventListener("cuechange",i)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",function(){t.off("addtrack",n),t.off("removetrack",r),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(let t=0;t<e.length;t++){e[t].removeEventListener("cuechange",i)}})}addTextTrack(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i={}){const s=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;const o=new kn.text.TrackClass(i);return s.addTrack(o),o}(this,e,t,n)}createRemoteTextTrack(e){const t=D(e,{tech:this});return new wn.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const n=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(n.track)),n}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=Ye();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return Cn.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Cn||e instanceof Cn||e===Cn}static registerTech(e,t){if(Cn.techs_||(Cn.techs_={}),!Cn.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!Cn.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Cn.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Et(e),Cn.techs_[e]=t,Cn.techs_[xt(e)]=t,"Tech"!==e&&Cn.defaultTechOrder_.push(e),t}static getTech(e){if(e)return Cn.techs_&&Cn.techs_[e]?Cn.techs_[e]:(e=Et(e),t.default&&t.default.videojs&&t.default.videojs[e]?(S.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),t.default.videojs[e]):void 0)}}kn.names.forEach(function(e){const t=kn[e];Cn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Cn.prototype.featuresVolumeControl=!0,Cn.prototype.featuresMuteControl=!0,Cn.prototype.featuresFullscreenResize=!1,Cn.prototype.featuresPlaybackRate=!1,Cn.prototype.featuresProgressEvents=!1,Cn.prototype.featuresSourceset=!1,Cn.prototype.featuresTimeupdateEvents=!1,Cn.prototype.featuresNativeTextTracks=!1,Cn.prototype.featuresVideoFrameCallback=!1,Cn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){const n=e.sourceHandlers||[];let r;for(let e=0;e<n.length;e++)if(r=n[e].canPlayType(t),r)return r;return""},e.selectSourceHandler=function(t,n){const r=e.sourceHandlers||[];let i;for(let e=0;e<r.length;e++)if(i=r[e].canHandleSource(t,n),i)return r[e];return null},e.canPlaySource=function(t,n){const r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach(function(e){const t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:S.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Pt.registerComponent("Tech",Cn),Cn.registerTech("Tech",Cn),Cn.defaultTechOrder_=[];const Tn={},Sn={},xn={};function En(e,t,n){e.setTimeout(()=>Dn(t,Tn[t.type],n,e),1)}function In(e,t,n,r=null){const i="call"+Et(n),s=e.reduce(Ln(i),r),o=s===xn,a=o?null:t[n](s);return function(e,t,n,r){for(let i=e.length-1;i>=0;i--){const s=e[i];s[t]&&s[t](r,n)}}(e,n,a,o),a}const An={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Pn={setCurrentTime:1,setMuted:1,setVolume:1},On={play:1,pause:1};function Ln(e){return(t,n)=>t===xn?xn:n[e]?n[e](t):t}function Dn(e={},t=[],n,r,i=[],s=!1){const[o,...a]=t;if("string"==typeof o)Dn(e,Tn[o],n,r,i,s);else if(o){const t=function(e,t){const n=Sn[e.id()];let r=null;if(null==n)return r=t(e),Sn[e.id()]=[[t,r]],r;for(let i=0;i<n.length;i++){const[e,s]=n[i];e===t&&(r=s)}return null===r&&(r=t(e),n.push([t,r])),r}(r,o);if(!t.setSource)return i.push(t),Dn(e,a,n,r,i,s);t.setSource(Object.assign({},e),function(o,l){if(o)return Dn(e,a,n,r,i,s);i.push(t),Dn(l,e.type===l.type?a:Tn[l.type],n,r,i,s)})}else a.length?Dn(e,a,n,r,i,s):s?n(e,i):Dn(e,Tn["*"],n,r,i,!0)}const Rn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Mn=function(e=""){const t=dn(e);return Rn[t.toLowerCase()]||""},Nn=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=Nn(e),Array.isArray(e)?t=t.concat(e):O(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[jn({src:e})]:O(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[jn(e)]:[];return e};function jn(e){if(!e.type){const t=Mn(e.src);t&&(e.type=t)}return e}const Un=Q?10009:ee?461:8,$n={codes:{play:415,pause:19,ff:417,rw:412,back:Un},names:{415:"play",19:"pause",417:"ff",412:"rw",[Un]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!(!this.names[e.keyCode]||this.names[e.keyCode]!==t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}};class Bn extends pt{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const e=t.key.substring(5).toLowerCase();this.move(e)}else if($n.isEventKey(t,"play")||$n.isEventKey(t,"pause")||$n.isEventKey(t,"ff")||$n.isEventKey(t,"rw")){t.preventDefault();const e=$n.getEventName(t);this.performMediaAction_(e)}else $n.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let n=null;const r=this.getCurrentComponent(e.target);t&&(n=Boolean(t.closest(".video-js")),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(e.currentTarget.contains(e.relatedTarget)||n)&&t||(r&&"CloseButton"===r.name()?this.refocusComponent():(this.pause(),r&&r.el()&&(this.lastFocusedComponent_=r)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function n(e){for(const r of e)r.hasOwnProperty("el_")&&r.getIsFocusable()&&r.getIsAvailableToBeFocused(r.el())&&t.push(r),r.hasOwnProperty("children_")&&r.children_.length>0&&n(r.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty("el_")){if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el()))return void t.push(e);e.hasOwnProperty("children_")&&e.children_.length>0?n(e.children_):e.hasOwnProperty("items")&&e.items.length>0?n(e.items):this.findSuitableDOMChild(e)&&t.push(e)}if("ErrorDisplay"===e.name_&&e.opened_){const n=e.el_.querySelector(".vjs-errors-ok-button-container");if(n){n.querySelectorAll("button").forEach((e,n)=>{t.push({name:()=>"ModalButton"+(n+1),el:()=>e,getPositions:()=>{const t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})})}}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(n){if(e.getIsFocusable(n)&&e.getIsAvailableToBeFocused(n))return n;for(let e=0;e<n.children.length;e++){const r=t(n.children[e]);if(r)return r}return null}(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();const t=e||document.activeElement;if(this.focusableComponents.length)for(const n of this.focusableComponents)if(n.el()===t)return n}add(e){const t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const t=this.getCurrentComponent();if(!t)return;const n=t.getPositions(),r=this.focusableComponents.filter(r=>r!==t&&this.isInDirection_(n.boundingClientRect,r.getPositions().boundingClientRect,e)),i=this.findBestCandidate_(n.center,r,e);i?this.focus(i):this.trigger({type:"endOfFocusableComponents",direction:e,focu
vendor: 5,404 bytes, line 698
698sedComponent:t})}findBestCandidate_(e,t,n){let r=1/0,i=null;for(const s of t){const t=s.getPositions().center,o=this.calculateDistance_(e,t,n);o<r&&(r=o,i=s)}return i}isInDirection_(e,t,n){switch(n){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,n){const r=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);let s;switch(n){case"right":case"left":s=r+100*i;break;case"up":s=2*i+.5*r;break;case"down":s=5*i+r;break;default:s=r+i}return s}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}Pt.registerComponent("MediaLoader",class extends Pt{constructor(e,t,n){if(super(e,D({createEl:!1},t),n),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,i=t.playerOptions.techOrder;r<i.length;r++){const t=Et(i[r]);let n=Cn.getTech(t);if(t||(n=Pt.getComponent(t)),n&&n.isSupported()){e.loadTech_(t);break}}}});class Fn extends Pt{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},n={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&S.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;const r=he(e,t,n);return this.player_.options_.experimentalSvgIcons||r.appendChild(he("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=he("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const n=this.localize(e);this.controlText_=e,pe(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Pt.registerComponent("ClickableComponent",Fn);class qn extends Fn{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return he("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(he("picture",{className:"vjs-poster",tabIndex:-1},{},he("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?Vt(this.player_.play()):this.player_.pause())}}qn.prototype.crossorigin=qn.prototype.crossOrigin,Pt.registerComponent("PosterImage",qn);const Vn="#222",Hn="#ccc",zn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 12,717 bytes, line 698
698script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Gn(e,t){let n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Kn(e,t,n){try{e.style[t]=n}catch(CL){return}}function Wn(e){return e?`${e}px`:""}Pt.registerComponent("TextTrackDisplay",class extends Pt{constructor(e,n,r){super(e,n,r);const i=e=>this.updateDisplay(e),s=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("useractive",i),e.on("userinactive",i),e.on("texttrackchange",i),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(lt(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",s),e.on("playerresize",s);const n=t.default.screen.orientation||t.default,r=t.default.screen.orientation?"change":"orientationchange";n.addEventListener(r,s),e.on("dispose",()=>n.removeEventListener(r,s));const i=this.options_.playerOptions.tracks||[];for(let e=0;e<i.length;e++)this.player_.addRemoteTextTrack(i[e],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage;let r,i,s;for(let o=0;o<t.length;o++){const a=t[o];n&&n.enabled&&n.language&&n.language===a.language&&a.kind in e?a.kind===n.kind?s=a:s||(s=a):n&&!n.enabled?(s=null,r=null,i=null):a.default&&("descriptions"!==a.kind||r?a.kind in e&&!i&&(i=a):r=a)}s?s.mode="showing":i?i.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof t.default.WebVTT&&t.default.WebVTT.processCues(t.default,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const t=[];for(let n=0;n<e.length;++n){const r=e[n];"showing"===r.mode&&t.push(r)}return void this.updateForTrack(t)}let r=null,i=null,s=e.length;for(;s--;){const t=e[s];"showing"===t.mode&&("descriptions"===t.kind?r=t:i=t)}if(i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):r&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(r)),!t.default.CSS.supports("inset","10px")){const e=this.el_,t=e.querySelectorAll(".vjs-text-track-cue"),n=this.player_.controlBar.el_.getBoundingClientRect().height,r=this.player_.el_.getBoundingClientRect().height;e.style="",Kn(e,"position","relative"),Kn(e,"height",r-n+"px"),Kn(e,"top","unset"),Kn(e,"bottom",te?r+"px":"0px"),t.length>0&&t.forEach(e=>{if(e.style.inset){const t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!t.default.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),n=this.player_.currentHeight(),r=e/n,i=this.player_.videoWidth()/this.player_.videoHeight();let s=0,o=0;Math.abs(r-i)>.1&&(r>i?s=Math.round((e-n*i)/2):o=Math.round((n-e/i)/2)),Kn(this.el_,"insetInline",Wn(s)),Kn(this.el_,"insetBlock",Wn(o))}updateDisplayState(e){const n=this.player_.textTrackSettings.getValues(),r=e.activeCues;let i=r.length;for(;i--;){const e=r[i];if(!e)continue;const s=e.displayState;if(n.color&&(s.firstChild.style.color=n.color),n.textOpacity&&Kn(s.firstChild,"color",Gn(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(s.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&Kn(s.firstChild,"backgroundColor",Gn(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?Kn(s,"backgroundColor",Gn(n.windowColor,n.windowOpacity)):s.style.backgroundColor=n.windowColor),n.edgeStyle&&("dropshadow"===n.edgeStyle?s.firstChild.style.textShadow=`2px 2px 3px ${Vn}, 2px 2px 4px ${Vn}, 2px 2px 5px ${Vn}`:"raised"===n.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${Vn}, 2px 2px ${Vn}, 3px 3px ${Vn}`:"depressed"===n.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${Hn}, 0 1px ${Hn}, -1px -1px ${Vn}, 0 -1px ${Vn}`:"uniform"===n.edgeStyle&&(s.firstChild.style.textShadow=`0 0 4px ${Vn}, 0 0 4px ${Vn}, 0 0 4px ${Vn}, 0 0 4px ${Vn}`)),n.fontPercent&&1!==n.fontPercent){const e=t.default.parseFloat(s.style.fontSize);s.style.fontSize=e*n.fontPercent+"px",s.style.height="auto",s.style.top="auto"}n.fontFamily&&"default"!==n.fontFamily&&("small-caps"===n.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=zn[n.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof t.default.WebVTT||e.every(e=>!e.activeCues))return;const n=[];for(let t=0;t<e.length;++t){const r=e[t];for(let e=0;e<r.activeCues.length;++e)n.push(r.activeCues[e])}t.default.WebVTT.processCues(t.default,n,this.el_);for(let t=0;t<e.length;++t){const n=e[t];for(let e=0;e<n.activeCues.length;++e){const r=n.activeCues[e].displayState;_e(r,"vjs-text-track-cue","vjs-text-track-cue-"+(n.language?n.language:t)),n.language&&ke(r,"lang",n.language)}this.player_.textTrackSettings&&this.updateDisplayState(n)}}});Pt.registerComponent("LoadingSpinner",class extends Pt{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),n=he("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class Xn extends Fn{createEl(e,t={},n={}){const r=he("button",t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n));return this.player_.options_.experimentalSvgIcons||r.appendChild(he("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,t={}){const n=this.constructor.name;return S.warn(`Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.`),Pt.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "!==e.key&&"Enter"!==e.key?super.handleKeyDown(e):e.stopPropagation()}}Pt.registerComponent("Button",Xn);class Yn extends Xn{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if("tap"===e.type||this.mouseused_&&"clientX"in e&&"clientY"in e)return Vt(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(!r)return void this.player_.tech(!0).focus();const i=()=>r.focus();qt(t)?t.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}Yn.prototype.controlText_="Play Video",Pt.registerComponent("BigPlayButton",Yn);Pt.registerComponent("CloseButton",class extends Xn{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class Zn extends Xn{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?Vt(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}Zn.prototype.controlText_="Play",Pt.registerComponent("PlayToggle",Zn);class Jn extends Pt{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),n=he("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}Â `},{role:"presentation"});return t.appendChild(n),this.contentEl_=he("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=Ut(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,S.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=n.default.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Jn.prototype.labelText_="Time",Jn.prototype.controlText_="Time",Pt.registerComponent("TimeDisplay",Jn);class Qn extends Jn{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():e&&e.target&&"function"==typeof e.target.pendingSeekTime?e.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}Qn.prototype.labelText_="Current Time",Qn.prototype.controlText_="Current Time",Pt.registerComponent("CurrentTimeDisplay",Qn);class er extends Jn{constructor(e,t){super(e,t);const n=e=>this.updateContent(e);this.on(e,"durationchange",n),this.on(e,"loadstart",n),this.on(e,"loadedmetadata",n)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}er.prototype.labelText_="Duration",er.prototype.controlText_="Duration",Pt.registerComponent("DurationDisplay",er);Pt.registerComponent("TimeDivider",class extends Pt{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),n=super.createEl("span",{textContent:"/"});return t.appendChild(n),e.appendChild(t),e}});class tr extends Jn{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(he("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}tr.prototype.labelText_="Remaining Time",tr.prototype.controlText_="Remaining Time",Pt.registerComponent("RemainingTimeDisplay",tr);Pt.registerComponent("LiveDisplay",class extends Pt{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=he("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(he("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}Â `})),this.contentEl_.appendChild(n.default.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});
vendor: 5,034 bytes, line 698
698class nr extends Xn{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=he("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function rr(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}nr.prototype.controlText_="Seek to live, currently playing live",Pt.registerComponent("SeekToLive",nr);var ir=Object.freeze({__proto__:null,clamp:rr});class sr extends Pt{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},n={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),super.createEl(e,t,n)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||H||e.preventDefault(),Te(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Se(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(rr(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Ie(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,n=t&&t.enabled,r=t&&t.horizontalSeek;n?r&&"ArrowLeft"===e.key||!r&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):r&&"ArrowRight"===e.key||!r&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(this.pendingSeekTime()&&(this.pendingSeekTime(null),this.userSeek_(this.player_.currentTime())),super.handleKeyDown(e)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Pt.registerComponent("Slider",sr);const or=(e,t)=>
vendor: 4,886 bytes, line 698
698rr(e/t*100,0,100).toFixed(2)+"%";Pt.registerComponent("LoadProgressBar",class extends Pt{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=he("span",{className:"vjs-control-text"}),r=he("span",{textContent:this.localize("Loaded")}),i=n.default.createTextNode(": ");return this.percentageEl_=he("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(r),t.appendChild(i),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,s=or(r,n);this.percent_!==s&&(this.el_.style.width=s,pe(this.percentageEl_,s),this.percent_=s);for(let o=0;o<t.length;o++){const e=t.start(o),n=t.end(o);let s=i[o];s||(s=this.el_.appendChild(he()),i[o]=s),s.dataset.start===e&&s.dataset.end===n||(s.dataset.start=e,s.dataset.end=n,s.style.left=or(e,r),s.style.width=or(n-e,r))}for(let o=i.length;o>t.length;o--)this.el_.removeChild(i[o-1]);i.length=t.length})}});Pt.registerComponent("TimeTooltip",class extends Pt{constructor(e,t){super(e,t),this.update=ct(lt(this,this.update),at)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,n){const r=Ee(this.el_),i=xe(this.player_.el()),s=e.width*t;if(!i||!r)return;let o=e.left-i.left+s,a=e.width-s+(i.right-e.right);a||(a=e.width-s,o=s);let l=r.width/2;o<l?l+=l-o:a<l&&(l=a),l<0?l=0:l>r.width&&(l=r.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(n)}write(e){pe(this.el_,e)}updateTime(e,t,n,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let i;const s=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),n=e-t*e;i=(n<1?"":"-")+Ut(n,e)}else i=Ut(n,s);this.update(e,t,i),r&&r()})}});class ar extends Pt{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=ct(lt(this,this.update),at)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t,n){const r=this.getChild("timeTooltip");if(!r)return;const i=n&&n.target&&"function"==typeof n.target.pendingSeekTime?n.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();r.updateTime(e,t,i)}}ar.prototype.options_={children:[]},ie||B||ar.prototype.options_.children.push("timeTooltip"),Pt.registerComponent("PlayProgressBar",ar);class lr extends Pt{constructor(e,t){super(e,t),this.update=ct(lt(this,this.update),at)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,()=>{this.el_.style.left=e.width*t+"px"})}}lr.prototype.options_={children:["timeTooltip"]},Pt.registerComponent("MouseTimeDisplay",lr);class cr extends sr{constructor(e,t){(t=D(cr.prototype.options_,t)).children=[...t.children];const n=e.options_.disableSeekWhileScrubbingOnMobile&&(ie||B)||e.options_.disableSeekWhileScrubbingOnSTV;(!ie&&!B||n)&&t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbing_=n,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=lt(this,this.update),this.update=ct(this.update_,at),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in n.default&&"visibilityState"in n.default&&this.on(n.default,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===n.default.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,at))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===n.default.visibilityState)return;
vendor: 5,748 bytes, line 698
698const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const n=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let i=this.player_.duration();r&&r.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===n&&this.duration_===i||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Ut(n,i),Ut(i,i)],"{1} of {2}")),this.currentTime_=n,this.duration_=i),this.bar&&this.bar.update(xe(this.el()),this.getProgress(),e)}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}pendingSeekTime(e){if(void 0!==e)if(null!==e){const t=this.player_.duration();this.pendingSeekTime_=Math.max(0,Math.min(e,t))}else this.pendingSeekTime_=null;return this.pendingSeekTime_}getPercent(){if(null!==this.pendingSeekTime())return this.pendingSeekTime()/this.player_.duration();const e=this.getCurrentTime_();let t;const n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){Re(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbing_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!Re(e)||isNaN(this.player_.duration()))return;let n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const r=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(r>=.99)return void i.seekToLiveEdge();const e=i.seekableStart(),t=i.liveCurrentTime();if(n=e+r*i.liveWindow(),n>=t&&(n=t),n<=e&&(n=e+.1),n===1/0)return}else n=r*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.shouldDisableSeekWhileScrubbing_?this.pendingSeekTime(n):this.userSeek_(n),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Vt(this.player_.play()):this.update_()}handlePendingSeek_(e){this.player_.paused()||this.player_.pause();const t=null!==this.pendingSeekTime()?this.pendingSeekTime():this.player_.currentTime();this.pendingSeekTime(t+e),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}stepForward(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(this.options().stepSeconds):this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(-this.options().stepSeconds):this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const n=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in n.default&&"visibilityState"in n.default&&this.off(n.default,"visibilitychange",this.toggleVisibility_),super.dispose()}}cr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12},Pt.registerComponent("SeekBar",cr);class ur extends Pt{constructor(e,t){super(e,t),this.handleMouseMove=ct(lt(this,this.handleMouseMove),at),this.throttledHandleMouseSeek=ct(lt(this,this.handleMouseSeek),at),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(!n&&!r)return;const i=t.el(),s=Ee(i);let o=Ie(i,e).x;o=rr(o,0,1),r&&r.update(s,o),n&&n.update(s,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
vendor: 6,576 bytes, line 698
698disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Vt(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}ur.prototype.options_={children:["seekBar"]},Pt.registerComponent("ProgressControl",ur);class dr extends Xn{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){n.default.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in t.default?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof n.default.exitPictureInPicture&&super.show()}}dr.prototype.controlText_="Picture-in-Picture",Pt.registerComponent("PictureInPictureToggle",dr);class hr extends Xn{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===n.default[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}hr.prototype.controlText_="Fullscreen",Pt.registerComponent("FullscreenToggle",hr);Pt.registerComponent("VolumeLevel",class extends Pt{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}});Pt.registerComponent("VolumeLevelTooltip",class extends Pt{constructor(e,t){super(e,t),this.update=ct(lt(this,this.update),at)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,n,r){if(!n){const n=xe(this.el_),r=xe(this.player_.el()),i=e.width*t;if(!r||!n)return;const s=e.left-r.left+i,o=e.width-i+(r.right-e.right);let a=n.width/2;s<a?a+=a-s:o<a&&(a=o),a<0?a=0:a>n.width&&(a=n.width),this.el_.style.right=`-${a}px`}this.write(`${r}%`)}write(e){pe(this.el_,e)}updateVolume(e,t,n,r,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,n,r.toFixed(0)),i&&i()})}});class pr extends Pt{constructor(e,t){super(e,t),this.update=ct(lt(this,this.update),at)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,n){const r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,()=>{n?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}pr.prototype.options_={children:["volumeLevelTooltip"]},Pt.registerComponent("MouseVolumeLevelDisplay",pr);class fr extends sr{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){Re(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const n=this.el(),r=xe(n),i=this.vertical();let s=Ie(n,e);s=i?s.y:s.x,s=rr(s,0,1),t.update(r,s,i)}Re(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}fr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ie||B||fr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),fr.prototype.playerEvent="volumechange",Pt.registerComponent("
698VolumeBar",fr);class mr extends Pt{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||L(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.throttledHandleMouseMove=ct(lt(this,this.handleMouseMove),at),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}mr.prototype.options_={children:["volumeBar"]},Pt.registerComponent("VolumeControl",mr);class _r extends Xn{constructor(e,t){super(e,t),function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){const e=n<.1?.1:n;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),ie&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),ge(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),_e(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}_r.prototype.controlText_="Mute",Pt.registerComponent("MuteToggle",_r);class gr extends Pt{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||L(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),tt(n.default,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),nt(n.default,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}gr.prototype.options_={children:["muteToggle","volumeControl"]}
vendor: 4,948 bytes, line 698
698,Pt.registerComponent("VolumePanel",gr);class yr extends Xn{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),n=this.player_.liveTracker,r=n&&n.isLive()?n.seekableEnd():this.player_.duration();let i;i=t+this.skipTime<=r?t+this.skipTime:r,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}yr.prototype.controlText_="Skip Forward",Pt.registerComponent("SkipForward",yr);class vr extends Xn{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),n=this.player_.liveTracker,r=n&&n.isLive()&&n.seekableStart();let i;i=r&&t-this.skipTime<=r?r:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}vr.prototype.controlText_="Skip Backward",Pt.registerComponent("SkipBackward",vr);class br extends Pt{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Pt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Pt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=he(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),tt(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||n.default.activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const n=t.filter(t=>t.el()===e.target)[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}Pt.registerComponent("Menu",br);class wr extends Pt{constructor(e,t={}){super(e,t),this.menuButton_=new Xn(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const r=Xn.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+r,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const i=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",i),this.on(this.menuButton_,"click",i),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),tt(n.default,"keyup",this.handleMenuKeyUp_)}
vendor: 4,184 bytes, line 698
698),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new br(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=he("li",{className:"vjs-menu-title",textContent:Et(this.options_.title),tabIndex:-1}),n=new Pt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";return`vjs-menu-button ${e} ${Xn.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),nt(n.default,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){"Escape"!==e.key&&"Tab"!==e.key||this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){"Escape"!==e.key&&"Tab"!==e.key||(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ie&&ue())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Pt.registerComponent("MenuButton",wr);class kr extends wr{constructor(e,t){const n=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!n)return;const r=lt(this,this.update);n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),n.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r),n.removeEventListener("labelchange",r)})}}Pt.registerComponent("TrackButton",kr);class Cr extends Fn{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,n){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),n),i=he("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(i):r.replaceChild(i,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.ke
vendor: 9,324 bytes, line 698
698y)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Pt.registerComponent("MenuItem",Cr);class Tr extends Cr{constructor(e,r){const i=r.track,s=e.textTracks();r.label=i.label||i.language||"Unknown",r.selected="showing"===i.mode,super(e,r),this.track=i,this.kinds=(r.kinds||[r.kind||this.track.kind]).filter(Boolean);const o=(...e)=>{this.handleTracksChange.apply(this,e)},a=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],o),s.addEventListener("change",o),s.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],o),s.removeEventListener("change",o),s.removeEventListener("selectedlanguagechange",a)}),void 0===s.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof t.default.Event)try{e=new t.default.Event("change")}catch(r){}e||(e=n.default.createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){const t=this.track,n=this.player_.textTracks();if(super.handleClick(e),n)for(let r=0;r<n.length;r++){const e=n[r];-1!==this.kinds.indexOf(e.kind)&&(e===t?"showing"!==e.mode&&(e.mode="showing"):"disabled"!==e.mode&&(e.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Pt.registerComponent("TextTrackMenuItem",Tr);class Sr extends Tr{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let n=!0;for(let r=0,i=t.length;r<i;r++){const e=t[r];if(this.options_.kinds.indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let n=!0;for(let r=0,i=t.length;r<i;r++){const e=t[r];if(["captions","descriptions","subtitles"].indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Pt.registerComponent("OffTextTrackMenuItem",Sr);class xr extends kr{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=Tr){let n;this.label_&&(n=`${this.label_} off`),e.push(new Sr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<r.length;i++){const n=r[i];if(this.kinds_.indexOf(n.kind)>-1){const r=new t(this.player_,{track:n,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});r.addClass(`vjs-${n.kind}-menu-item`),e.push(r)}}return e}}Pt.registerComponent("TextTrackButton",xr);class Er extends Cr{constructor(e,t){const n=t.track,r=t.cue,i=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=r.text,t.selected=r.startTime<=i&&i<r.endTime,super(e,t),this.track=n,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Pt.registerComponent("ChaptersTrackMenuItem",Er);class Ir extends xr{constructor(e,t,n){super(e,t,n),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.kind===this.kind_)return n}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Et(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,r=t.length;n<r;n++){const r=t[n],i=new Er(this.player_,{track:this.track_,cue:r});e.push(i)}return e}}Ir.prototype.kind_="chapters",Ir.prototype.controlText_="Chapters",Pt.registerComponent("ChaptersButton",Ir);class Ar extends xr{constructor(e,t,n){super(e,t,n),this.setIcon("audio-description");const r=e.textTracks(),i=lt(this,this.handleTracksChange);r.addEventListener("change",i),this.on("dispose",function(){r.removeEventListener("change",i)})}handleTracksChange(e){const t=this.player().textTracks();let n=!1;for(let r=0,i=t.length;r<i;r++){const e=t[r];if(e.kind!==this.kind_&&"showing"===e.mode){n=!0;break}}n?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Ar.prototype.kind_="descriptions",Ar.prototype.controlText_="Descriptions",Pt.registerComponent("DescriptionsButton",Ar);class Pr extends xr{constructor(e,t,n){super(e,t,n),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Pr.prototype.kind_="subtitles",Pr.prototype.controlText_="Subtitles",Pt.registerComponent("SubtitlesButton",Pr);class Or extends Tr{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Pt.registerComponent("CaptionSettingsMenuItem",Or);class Lr extends xr{constructor(e,t,n){super(e,t,n),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Or(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Lr.prototype.kind_="captions",Lr.prototype.controlText_="Captions",Pt.registerComponent("CaptionsButton",Lr);class Dr extends Tr{createEl(e,t,n){const r=super.createEl(e,t,n),i=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):i.appendChild(he("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(he("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Pt.registerComponent("SubsCapsMenuItem",Dr);class Rr extends xr{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Et(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Or(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Dr),e}}Rr.prototype.kinds_=["captions","subtitles"],Rr.prototype.controlText_="Subtitles",Pt.registerComponent("SubsCapsButton",Rr);class Mr extends Cr{constructor(e,t){const n=t.track,r=e.audioTracks();t.label=n.label||n.language||"Unknown",t.selected=n.enabled,super(e,t),this.track=n,this.addClass(`vjs-${n.kind}-menu-item`);const i=(...e)=>{this.handleTracksChange.apply(this,e)};
vendor: 22,151 bytes, line 698
698r.addEventListener("change",i),this.on("dispose",()=>{r.removeEventListener("change",i)})}createEl(e,t,n){const r=super.createEl(e,t,n),i=r.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(i.appendChild(he("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(he("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const n=e[t];n!==this.track&&(n.enabled=n===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Pt.registerComponent("AudioTrackMenuItem",Mr);class Nr extends kr{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let n=0;n<t.length;n++){const r=t[n];e.push(new Mr(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e}}Nr.prototype.controlText_="Audio Track",Pt.registerComponent("AudioTrackButton",Nr);class jr extends Cr{constructor(e,t){const n=t.rate,r=parseFloat(n,10);t.label=n,t.selected=r===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=n,this.rate=r,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}jr.prototype.contentElType="button",Pt.registerComponent("PlaybackRateMenuItem",jr);class Ur extends wr{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=he("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let n=e.length-1;n>=0;n--)t.push(new jr(this.player(),{rate:e[n]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}Ur.prototype.controlText_="Playback Rate",Pt.registerComponent("PlaybackRateMenuButton",Ur);class $r extends Pt{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},n={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,n)}}Pt.registerComponent("Spacer",$r);Pt.registerComponent("CustomControlSpacer",class extends $r{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"Â "})}});class Br extends Pt{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Br.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Pt.registerComponent("ControlBar",Br);class Fr extends Xt{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}Fr.prototype.options_=Object.assign({},Xt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Pt.registerComponent("ErrorDisplay",Fr);class qr extends Pt{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim();return he("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{const t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Ye()}`)+"-"+e[1].replace(/\W+/g,""),n=he("option",{id:t,value:this.localize(e[0]),textContent:this.localize(e[1])});return n.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),n}))}}Pt.registerComponent("TextTrackSelect",qr);class Vr extends Pt{constructor(e,t={}){super(e,t);const n=he("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(n);const r=this.options_.selects;for(const i of r){const t=this.options_.selectConfigs[i],n=t.className,r=t.id.replace("%s",this.options_.id_);let s=null;const o=`vjs_select_${Ye()}`;if("colors"===this.options_.type){s=he("span",{className:n});const e=he("label",{id:r,className:"vjs-label",textContent:this.localize(t.label)});e.setAttribute("for",o),s.appendChild(e)}const a=new qr(e,{SelectOptions:t.options,legendId:this.options_.legendId,id:o,labelId:r});this.addChild(a),"colors"===this.options_.type&&(s.appendChild(a.el()),this.el().appendChild(s))}}createEl(){return he("fieldset",{className:this.options_.className})}}Pt.registerComponent("TextTrackFieldset",Vr);class Hr extends Pt{constructor(e,t={}){super(e,t);const n=this.options_.textTrackComponentid,r=new Vr(e,{id_:n,legendId:`captions-text-legend-${n}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const i=new Vr(e,{id_:n,legendId:`captions-background-${n}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(i);const s=new Vr(e,{id_:n,legendId:`captions-window-${n}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(s)}createEl(){return he("div",{className:"vjs-track-settings-colors"})}}Pt.registerComponent("TextTrackSettingsColors",Hr);class zr extends Pt{constructor(e,t={}){super(e,t);const n=this.options_.textTrackComponentid,r=new Vr(e,{id_:n,legendId:`captions-font-size-${n}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const i=new Vr(e,{id_:n,legendId:`captions-edge-style-${n}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(i);const s=new Vr(e,{id_:n,legendId:`captions-font-family-${n}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(s)}createEl(){return he("div",{className:"vjs-track-settings-font"})}}Pt.registerComponent("TextTrackSettingsFont",zr);class Gr extends Pt{constructor(e,t={}){super(e,t);const n=new Xn(e,{controlText:this.localize("restore all settings to the default values"),className:"vjs-default-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=this.localize("Reset"),this.addChild(n);const r=this.localize("Done"),i=new Xn(e,{controlText:r,className:"vjs-done-button"});i.el().classList.remove("vjs-control","vjs-button"),i.el().textContent=r,this.addChild(i)}createEl(){return he("div",{className:"vjs-track-settings-controls"})}}Pt.registerComponent("TrackSettingsControls",Gr);const Kr="vjs-text-track-settings",Wr=["#000","Black"],Xr=["#00F","Blue"],Yr=["#0FF","Cyan"],Zr=["#0F0","Green"],Jr=["#F0F","Magenta"],Qr=["#F00","Red"],ei=["#FFF","White"],ti=["#FF0","Yellow"],ni=["1","Opaque"],ri=["0.5","Semi-Transparent"],ii=["0","Transparent"],si={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Wr,ei,Qr,Zr,Xr,ti,Jr,Yr],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[ni,ri,ii],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ei,Wr,Qr,Zr,Xr,ti,Jr,Yr],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[ni,ri],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[ii,ri,ni],className:"vjs-window-opacity vjs-opacity"}};function oi(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}si.windowColor.options=si.backgroundColor.options;Pt.registerComponent("TextTrackSettings",class extends Xt{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=he("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const t=new Hr(e,{textTrackComponentid:this.id_,selectConfigs:si,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const n=new zr(e,{textTrackComponentid:this.id_,selectConfigs:si,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(n);const r=new Gr(e);this.addChild(r)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),A(si,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return P(si,(e,t,n)=>{const r=(i=this.$(t.selector),s=t.parser,oi(i.options[i.options.selectedIndex].value,s));var i,s;return void 0!==r&&(e[n]=r),e},{})}setValues(e){A(si,(t,n)=>{!function(e,t,n){if(t)for(let r=0;r<e.options.length;r++)if(oi(e.options[r].value,n)===t){e.selectedIndex=r;break}}(this.$(t.selector),e[n],t.parser)})}setDefaults(){A(si,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(t.default.localStorage.getItem(Kr))}catch(n){S.warn(n)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?t.default.localStorage.setItem(Kr,JSON.stringify(e)):t.default.localStorage.removeItem(Kr)}catch(n){S.warn(n)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}});Pt.registerComponent("ResizeManager",class extends Pt{constructor(e,n){let r=n.ResizeObserver||t.default.ResizeObserver;null===n.ResizeObserver&&(r=!1);super(e,D({createEl:!r,reportTouchActivity:!1},n)),this.ResizeObserver=n.ResizeObserver||t.default.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=ut(()=>{this.resizeHandler()},100,!1,this),r?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){nt(this,"resize",e),nt(this,"unload",t),t=null};tt(this.el_.contentWindow,"unload",t),tt(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const ai={trackingThreshold:20,liveTolerance:15};Pt.registerComponent("LiveTracker",class extends Pt{constructor(e,t){super(e,D(ai,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const n=Number(t.default.performance.now().toFixed(4)),r=-1===this.lastTime_?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+r;const i=this.liveCurrentTime(),s=this.player_.currentTime();let o=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-s)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,at),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}});Pt.registerComponent("TitleBar",class extends Pt{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:he("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Ye()}`}),description:he("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Ye()}`})},he("div",{className:"vjs-title-bar"},{},R(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const r=this.state[e],i=this.els[e],s=n[e];Pe(i),r&&pe(i,r),t&&(t.removeAttribute(s),r&&t.setAttribute(s,i.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const li={initialDisplay:4e3,position:[],takeFocus:!1};Pt.registerComponent("TransientButton",class extends Xn{constructor(e,t){super(e,t=D(li,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],e=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){const e=he("button",{},{type:"button",class:this.buildCSSClass()},he("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});const ci=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),r=[];let i="";if(!n.length)return!1;for(let s=0;s<n.length;s++){const e=n[s].src;e&&-1===r.indexOf(e)&&r.push(e)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},ui=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const r=n.default.createElement(this.nodeName.toLowerCase());r.innerHTML=e;const i=n.default.createDocumentFragment();for(;r.childNodes.length;)i.appendChild(r.childNodes[0]);return this.innerText="",t.default.Element.prototype.appendChild.call(this,i),this.innerHTML}}),di=(e,t)=>{let n={};for(let r=0;r<e.length&&(n=Object.getOwnPropertyDescriptor(e[r],t),!(n&&n.set&&n.get));r++);return n.enumerable=!0,n.configurable=!0,n},hi=function(e){const n=e.el();if(n.resetSourceWatch_)return;const r={},i=(e=>di([e.el(),t.default.HTMLMediaElement.prototype,t.default.Element.prototype,ui],"innerHTML"))(e),s=t=>(...r)=>{const i=t.apply(n,r);return ci(e),i};["append","appendChild","insertAdjacentHTML"].forEach(e=>{n[e]&&(r[e]=n[e],n[e]=s(r[e]))}),Object.defineProperty(n,"innerHTML",D(i,{set:s(i.set)})),n.resetSourceWatch_=()=>{n.resetSourceWatch_=null,Object.keys(r).forEach(e=>{n[e]=r[e]}),Object.defineProperty(n,"innerHTML",i)},e.one("sourceset",n.resetSourceWatch_)},pi=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?un(t.default.Element.prototype.getAttribute.call(this,"src")):""},set(e){return t.default.Element.prototype.setAttribute.call(this,"src",e),e}}),fi=function(e){if(!e.featuresSourceset)return;const n=e.el();if(n.resetSourceset_)return;const r=(e=>di([e.el(),t.default.HTMLMediaElement.prototype,pi],"src"))(e),i=n.setAttribute,s=n.load;Object.defineProperty(n,"src",D(r,{set:t=>{const i=r.set.call(n,t);return e.triggerSourceset(n.src),i}})),n.setAttribute=(t,r)=>
vendor: 3,464 bytes, line 698
698{const s=i.call(n,t,r);return/src/i.test(t)&&e.triggerSourceset(n.src),s},n.load=()=>{const t=s.call(n);return ci(e)||(e.triggerSourceset(""),hi(e)),t},n.currentSrc?e.triggerSourceset(n.currentSrc):ci(e)||hi(e),n.resetSourceset_=()=>{n.resetSourceset_=null,n.load=s,n.setAttribute=i,Object.defineProperty(n,"src",r),n.resetSourceWatch_&&n.resetSourceWatch_()}};class mi extends Cn{constructor(e,t){super(e,t);const n=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,n&&(this.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(n):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const n=[];for(;t--;){const i=e[t];"track"===i.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),this.textTracks().addTrack(i.track),r||this.el_.hasAttribute("crossorigin")||!hn(i.src)||(r=!0)):n.push(i))}for(let r=0;r<n.length;r++)this.el_.removeChild(n[r])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&S.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(ne||J)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),mi.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){fi(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const n=()=>{t=[];for(let n=0;n<e.length;n++){const r=e[n];"metadata"===r.kind&&t.push({track:r,storedMode:r.mode})}};n(),e.addEventListener("change",n),this.on("dispose",()=>e.removeEventListener("change",n));const r=()=>{for(let e=0;e<t.length;e++){const n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const n=e.toLowerCase();this[`${n}TracksListeners_`]&&Object.keys(this[`${n}TracksListeners_`]).forEach(e=>{this.el()[`${n}Tracks`].removeEventListener(e,this[`${n}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${n}TracksListeners_`]=null,this.proxyNativeTracksForType_(n)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=bn[e],n=this.el()[t.getterName],r=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!n||!n.addEventListener)return;const i={change:t=>{const n={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(n),"text"===e&&this[wn.remoteText.getterName]().trigger(n)},addtrack(e){r.addTrack(e.track)},removetrack(e){r.removeTrack(e.track)}},s=function(){const e=[];for(let t=0;t<r.length;t++){let i=!1;for(let e=0;e<n.length;e++)if(n[e]===r[t]){i=!0;break}i||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};
vendor: 7,897 bytes, line 698
698this[t.getterName+"Listeners_"]=i,Object.keys(i).forEach(e=>{const t=i[e];n.addEventListener(e,t),this.on("dispose",r=>n.removeEventListener(e,t))}),this.on("loadstart",s),this.on("dispose",e=>this.off("loadstart",s))}proxyNativeTracks_(){bn.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),mi.disposeMediaElement(e),e=t}else{e=n.default.createElement("video");const t=D({},this.options_.tag&&be(this.options_.tag));ne&&!0===this.options_.nativeControlsForTouch||delete t.controls,ve(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&ke(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let n=0;n<t.length;n++){const r=t[n],i=this.options_[r];void 0!==i&&(i?ke(e,r,r):Ce(e,r),e[r]=i)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&se?this.el_.fastSeek(e):this.el_.currentTime=e}catch(CL){S(CL,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&B&&H&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Vt(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(CL){this.trigger("fullscreenerror",CL)}},0);else try{e.webkitEnterFullScreen()}catch(CL){this.trigger("fullscreenerror",CL)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return S.error("Invalid source URL."),!1;const n={src:e};t&&(n.type=t);const r=he("source",{},n);return this.el_.appendChild(r),!0}removeSourceElement(e){if(!e)return S.error("Source URL is required to remove the source element."),!1;const t=this.el_.querySelectorAll("source");for(const n of t)if(n.src===e)return this.el_.removeChild(n),!0;return S.warn(`No matching source element found with src: ${e}`),!1}reset(){mi.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):super.addTextTrack(e,t,n)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=n.default.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const n=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let n=t.length;for(;n--;)e!==t[n]&&e!==t[n].track||this.el().removeChild(t[n])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),t.default.performance&&(e.creationTime=t.default.performance.now()),e}}M(mi,"TEST_VID",function(){if(!le())return;const e=n.default.createElement("video"),t=n.default.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),mi.isSupported=function(){try{mi.TEST_VID.volume=.5}catch(CL){return!1}return!(!mi.TEST_VID||!mi.TEST_VID.canPlayType)},mi.canPlayType=function(e){return mi.TEST_VID.canPlayType(e)},mi.canPlaySource=function(e,t){return mi.canPlayType(e.type)},mi.canControlVolume=function(){try{const e=mi.TEST_VID.volume;mi.TEST_VID.volume=e/2+.1;const n=e!==mi.TEST_VID.volume;return n&&ie?(t.default.setTimeout(()=>{mi&&mi.prototype&&(mi.prototype.featuresVolumeControl=e!==mi.TEST_VID.volume)}),!1):n}catch(CL){return!1}},mi.canMuteVolume=function(){try{const e=mi.TEST_VID.muted;return mi.TEST_VID.muted=!e,mi.TEST_VID.muted?ke(mi.TEST_VID,"muted","muted"):Ce(mi.TEST_VID,"muted"),e!==mi.TEST_VID.muted}catch(CL){return!1}},mi.canControlPlaybackRate=function(){if(B&&H&&G<58)return!1;try{const e=mi.TEST_VID.playbackRate;return mi.TEST_VID.playbackRate=e/2+.1,e!==mi.TEST_VID.playbackRate}catch(CL){return!1}},mi.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(n.default.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(n.default.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(n.default.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(n.default.createElement("audio"),"innerHTML",{get:e,set:e})}catch(CL){return!1}return!0},mi.supportsNativeTextTracks=function(){return se||ie&&H},mi.supportsNativeVideoTracks=function(){return!(!mi.TEST_VID||!mi.TEST_VID.videoTracks)},mi.supportsNativeAudioTracks=function(){return!(!mi.TEST_VID||!mi.TEST_VID.audioTracks)},mi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
vendor: 5,634 bytes, line 698
698h(function([e,t]){M(mi.prototype,e,()=>mi[t](),!0)}),mi.prototype.featuresVolumeControl=mi.canControlVolume(),mi.prototype.movingMediaElementInDOM=!ie,mi.prototype.featuresFullscreenResize=!0,mi.prototype.featuresProgressEvents=!0,mi.prototype.featuresTimeupdateEvents=!0,mi.prototype.featuresVideoFrameCallback=!(!mi.TEST_VID||!mi.TEST_VID.requestVideoFrameCallback),mi.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(CL){}}()}},mi.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(CL){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){mi.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){mi.prototype["set"+Et(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){mi.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){mi.prototype["set"+Et(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){mi.prototype[e]=function(){return this.el_[e]()}}),Cn.withSourceHandlers(mi),mi.nativeSourceHandler={},mi.nativeSourceHandler.canPlayType=function(e){try{return mi.TEST_VID.canPlayType(e)}catch(CL){return""}},mi.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return mi.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=dn(e.src);return mi.nativeSourceHandler.canPlayType(`video/${t}`)}return""},mi.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},mi.nativeSourceHandler.dispose=function(){},mi.registerSourceHandler(mi.nativeSourceHandler),Cn.registerTech("Html5",mi);const _i=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],gi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},yi=["tiny","xsmall","small","medium","large","xlarge","huge"],vi={};yi.forEach(e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;vi[e]=`vjs-layout-${t}`});const bi={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class wi extends Pt{constructor(e,r,i){if(e.id=e.id||r.id||`vjs_video_${Ye()}`,(r=Object.assign(wi.getTagSettings(e),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language){const t=e.closest("[lang]");t&&(r.language=t.getAttribute("lang"))}if(super(null,r,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=x(this.id_),this.fsApi_=b,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&be(e),this.language(this.options_.language),r.languages){const e={};Object.getOwnPropertyNames(r.languages).forEach(function(t){e[t.toLowerCase()]=r.languages[t]}),this.languages_=e}else this.languages_=wi.prototype.options_.languages;this.resetCache_(),this.poster_=r.poster||"",this.controls_=!!r.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),Ct(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(tt(n.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=D(this.options_);if(r.plugins&&Object.keys(r.plugins).forEach(e=>{this[e](r.plugins[e])}),r.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(r.playbackRates),r.experimentalSvgIcons){const e=(new t.default.DOMParser
vendor: 17,817 bytes, line 698
698).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))
vendor: 1,964 bytes, line 698
698S.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),r.spatialNavigation&&r.spatialNavigation.enabled&&(this.spatialNavigation=new Bn(this),this.addClass("vjs-spatial-navigation-enabled")),ne&&this.addClass("vjs-touch-enabled"),ie||this.addClass("vjs-workinghover"),wi.players[this.id_]=this;const o=_.split(".")[0];this.addClass(`vjs-v${o}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){var e;this.trigger("dispose"),this.off("dispose"),nt(n.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),nt(n.default,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),wi.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),e=this,Sn.hasOwnProperty(e.id())&&delete Sn[e.id()],kn.names.forEac
vendor: 5,306 bytes, line 698
698h(e=>{const t=this[kn[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,r=this.tag,i=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=r.parentNode:s||(e=this.el_=super.createEl("div"));const o=be(r);if(s){for(e=this.el_=r,r=this.tag=n.default.createElement("video");e.children.length;)r.appendChild(e.firstChild);me(e,"video-js")||_e(e,"video-js"),e.appendChild(r),i=this.playerElIngest_=e,Object.keys(e).forEach(t=>{try{r[t]=e[t]}catch(CL){}})}r.setAttribute("tabindex","-1"),o.tabindex="-1",H&&Y&&(r.setAttribute("role","application"),o.role="application"),r.removeAttribute("width"),r.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach(function(t){s&&"class"===t||e.setAttribute(t,o[t]),s&&r.setAttribute(t,o[t])}),r.playerId=r.id,r.id+="_html5_api",r.className="vjs-tech",r.player=e.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(e=>oe[e]).map(e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),!0!==t.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ze("vjs-styles-dimensions");const e=Me(".vjs-styles-defaults"),t=Me("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const l=r.getElementsByTagName("a");for(let t=0;t<l.length;t++){const e=l.item(t);_e(e,"vjs-hidden"),e.setAttribute("hidden","hidden")}return r.initNetworkState_=r.networkState,r.parentNode&&!i&&r.parentNode.insertBefore(e,r),fe(r,e),this.children_.unshift(r),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):S.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();const r=parseFloat(t);isNaN(r)?S.error(`Improper value "${t}" supplied for for ${e}`):(this[n]=r,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,mt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((e,t)=>{mt(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))})(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===t.default.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}let e,n,r,i;r=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const s=r.split(":"),o=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,n=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Ge(this.styleEl_,`\n .${i} {\n width: ${e}px;\n height: ${n}px;\n }\n\n .${i}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*o}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const n=Et(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(Cn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let i=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(i=!1);const s={source:t,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
vendor: 2,641 bytes, line 698
698kn.names.forEach(e=>{const t=kn[e];s[t.getterName]=this[t.privateName]}),Object.assign(s,this.options_[n]),Object.assign(s,this.options_[r]),Object.assign(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);const o=Cn.getTech(e);if(!o)throw new Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);this.tech_=new o(s),this.tech_.ready(lt(this,this.handleTechReady_),!0),Gt(this.textTracksJson_||[],this.tech_),_i.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${Et(e)}_`](t))}),Object.keys(gi).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${gi[e]}_`].bind(this),event:t}):this[`handleTech${gi[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||fe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){kn.names.forEach(e=>{const t=kn[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=zt(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&S.warn("Using the tech directly can be dangerous. I hope you know
698what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":_}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const n=this.play();if(qt(n))return n.catch(e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};let n;return"any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():t():(n=this.play(),qt(n)&&(n=n.catch(t))),qt(n)?n.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter(e=>e.src===t);if(n.length)return n[0].type;const r=e.$$("source");for(let i=0;i<r.length;i++){const e=r[i];if(e.type&&e.src&&e.src===t)return e.type}return Mn(t)})(this,t)),this.cache_.source=D({},e,{src:t,type:n});const r=this.cache_.sources.filter(e=>e.src&&e.src===t),i=[],s=this.$$("source"),o=[];for(let a=0;a<s.length;a++){const e=be(s[a]);i.push(e),e.src&&e.src===t&&o.push(e.src)}o.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==n)&&(t=()=>{}),t(r),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 70,200 bytes, lines 698-702
698handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Vt(this.play()):this.pause()))}handleTechDoubleClick_(e){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!n.default.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const r=this.el();let i=n.default[this.fsApi_.fullscreenElement]===r;!i&&r.matches&&(i=r.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in Pn)return function(e,t,n,r){return t[n](e.reduce(Ln(n),r))}(this.middleware_,this.tech_,e,t);if(e in On)return In(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(CL){throw S(CL),CL}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in An)return function(e,t,n){return e.reduceRight(Ln(n),t[n]())}(this.middleware_,this.tech_,e);if(e in On)return In(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(CL){if(void 0===this.tech_[e])throw S(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,CL),CL;if("TypeError"===CL.name)throw S(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,CL),this.tech_.isReady_=!1,CL;throw S(CL),CL}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=Vt){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),n=Boolean(se||ie);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&n&&this.load());const r=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||Dt(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=Dt(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=Dt(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return Bt(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let n=e.end(e.length-1);return n>t&&(n=t),n}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((n,r)=>{function i(){t.off("fullscreenerror",o),t.off("fullscreenchange",s)}function s(){i(),n()}function o(e,t){i(),r(t)}t.one("fullscreenchange",s),t.one("fullscreenerror",o);const a=t.requestFullscreenHelper_(e);a&&(a.then(i,i),a.then(n,r))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,n)=>{function r(){e.off("fullscreenerror",s),e.off("fullscreenchange",i)}function i(){r(),t()}function s(e,t){r(),n(t)}e.one("fullscreenchange",i),e.one("fullscreenerror",s);const o=e.exitFullscreenHelper_();o&&(o.then(r,r),o.then(t,n))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=n.default[this.fsApi_.exitFullscreen]();return e&&Vt(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=n.default.documentElement.style.overflow,tt(n.default,"keydown",this.boundFullWindowOnEscKey_),n.default.documentElement.style.overflow="hidden",_e(n.default.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,nt(n.default,"keydown",this.boundFullWindowOnEscKey_),n.default.documentElement.style.overflow=this.docOrigOverflow,ge(n.default.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&t.default.documentPictureInPicture){const e=n.default.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(he("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),t.default.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(Ue(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",t=>{const n=t.target.querySelector(".video-js");e.parentNode.replaceChild(n,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in n.default&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return t.default.documentPictureInPicture&&t.default.documentPictureInPicture.window?(t.default.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in n.default?n.default.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;if(!t||!t.hotkeys)return;(e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:r=t=>"f"===e.key.toLowerCase(),muteKey:i=t=>"m"===e.key.toLowerCase(),playPauseKey:s=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Pt.getComponent("FullscreenToggle");!1!==n.default[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(i.call(this,e)){e.preventDefault(),e.stopPropagation();Pt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation();Pt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let n=0,r=this.options_.techOrder;n<r.length;n++){const i=r[n];let s=Cn.getTech(i);if(s||(s=Pt.getComponent(i)),s){if(s.isSupported()&&(t=s.canPlayType(e),t))return t}else S.error(`The "${i}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,Cn.getTech(e)]).filter(([e,t])=>t?t.isSupported():(S.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),n=function(e,t,n){let r;return e.some(e=>t.some(t=>{if(r=n(e,t),r)return!0})),r};let r;const i=([e,t],n)=>{if(t.canPlaySource(n,this.options_[e.toLowerCase()]))return{source:n,tech:e}};var s;return r=this.options_.sourceOrder?n(e,t,(s=i,(e,t)=>s(t,e))):n(t,e,i),r||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const n=Nn(e);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),En(this,n[0],(e,r)=>{this.middleware_=r,t||(this.cache_.sources=n),this.updateSourceCaches_(e);if(this.src_(e))return n.length>1?this.handleSrc_(n.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());var i,s;i=r,s=this.tech_,i.forEach(e=>e.setTech&&e.setTech(s))}),n.length>1){const e=()=>{this.error(null),this.handleSrc_(n.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(It(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{Vt(this.play().then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),mt(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:n,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:i}=n||{};e&&e.updateContent(),t&&t.updateContent(),r&&r.updateContent(),i&&(i.update(),i.loadProgressBar&&i.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(y("beforeerror").forEach(t=>{const n=t(this,e);O(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?e=n:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ft(e),this.addClass("vjs-error"),S.error(`(CODE:${this.error_.code} ${Ft.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),y("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,n;const r=lt(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",i),this.on("mouseleave",i);const s=this.getChild("controlBar");let o;!s||ie||B||(s.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);const e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),n=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=n,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(n),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){return this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.disablePosterModeUI_()})}addTextTrack(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),mt(this)&&this.trigger("languagechange"))}languages(){return D(wi.prototype.options_.languages,this.languages_)}toJSON(){const e=D(this.options_),t=e.tracks;e.tracks=[];for(let n=0;n<t.length;n++){let r=t[n];r=D(r),r.player=void 0,e.tracks[n]=r}return e}createModal(e,t){(t=t||{}).content=e||"";const n=new Xt(this,t);return this.addChild(n),n.on("dispose",()=>{this.removeChild(n)}),n.open(),n}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let n=0;n<yi.length;n++){const r=yi[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(vi[e]),this.addClass(vi[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},bi,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;return(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return vi[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const n=this.crossOrigin();this.reset(),this.cache_.media=D(e);const{artist:r,artwork:i,description:s,poster:o,src:a,textTracks:l,title:c}=this.cache_.media;!i&&o&&(this.cache_.media.artwork=[{src:o,type:Mn(o)}]),n&&this.crossOrigin(n),a&&this.src(a),o&&this.poster(o),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:c,description:s||r||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Mn(t.poster)}]),t}return D(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},n=be(e),r=n["data-setup"];if(me(e,"vjs-fill")&&(n.fill=!0),me(e,"vjs-fluid")&&(n.fluid=!0),null!==r)try{Object.assign(n,JSON.parse(r||"{}"))}catch(CL){S.error("data-setup",CL)}if(Object.assign(t,n),e.hasChildNodes()){const n=e.childNodes;for(let e=0,r=n.length;e<r;e++){const r=n[e],i=r.nodeName.toLowerCase();"source"===i?t.sources.push(be(r)):"track"===i&&t.tracks.push(be(r))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}wi.prototype.videoTracks=()=>{},wi.prototype.audioTracks=()=>{},wi.prototype.textTracks=()=>{},wi.prototype.remoteTextTracks=()=>{},wi.prototype.remoteTextTrackEls=()=>{},kn.names.forEach(function(e){const t=kn[e];wi.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),wi.prototype.crossorigin=wi.prototype.crossOrigin,wi.players={};const ki=t.default.navigator;wi.prototype.options_={techOrder:Cn.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ki&&(ki.languages&&ki.languages[0]||ki.userLanguage||ki.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1,disableSeekWhileScrubbingOnSTV:!1},_i.forEach(function(e){wi.prototype[`handleTech${Et(e)}_`]=function(){return this.trigger(e)}}),Pt.registerComponent("Player",wi);const Ci="plugin",Ti="activePlugins_",Si={},xi=e=>Si.hasOwnProperty(e),Ei=e=>xi(e)?Si[e]:void 0,Ii=(e,t)=>{e[Ti]=e[Ti]||{},e[Ti][t]=!0},Ai=(e,t,n)=>{const r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Pi=(e,t)=>(t.prototype.name=e,function(...n){Ai(this,{name:e,plugin:t,instance:null},!0);const r=new t(...[this,...n]);return this[e]=()=>r,Ai(this,r.getEventHash()),r});class Oi{constructor(e){if(this.constructor===Oi)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),Ct(this),delete this.trigger,St(this,this.constructor.defaultState),Ii(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return rt(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Ti][e]=!1,this.player=this.state=null,t[e]=Pi(e,Si[e])}static isBasic(e){const t="string"==typeof e?Ei(e):e;return"function"==typeof t&&!Oi.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(xi(e))S.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(wi.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return Si[e]=t,e!==Ci&&(Oi.isBasic(t)?wi.prototype[e]=function(e,t){const n=function(){Ai(this,{name:e,plugin:t,instance:null},!0);const n=t.apply(this,arguments);return Ii(this,e),Ai(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(e,t):wi.prototype[e]=Pi(e,t)),t}static deregisterPlugin(e){if(e===Ci)throw new Error("Cannot de-register base plugin.");xi(e)&&(delete Si[e],delete wi.prototype[e])}static getPlugins(e=Object.keys(Si)){let t;return e.forEach(e=>{const n=Ei(e);n&&(t=t||{},t[e]=n)}),t}static getPluginVersion(e){const t=Ei(e);return t&&t.VERSION||""}}function Li(e,t,n,r){return function(e,t){let n=!1;return function(...r){return n||S.warn(e),n=!0,t.apply(this,r)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,r)}Oi.getPlugin=Ei,Oi.BASE_PLUGIN_NAME=Ci,Oi.registerPlugin(Ci,Oi),wi.prototype.usingPlugin=function(e){return!!this[Ti]&&!0===this[Ti][e]},wi.prototype.hasPlugin=function(e){return!!xi(e)};const Di=e=>0===e.indexOf("#")?e.slice(1):e;function Ri(e,n,r){let i=Ri.getPlayer(e);if(i)return n&&S.warn(`Player "${e}" is already initialised. Options will not be applied.`),r&&i.ready(r),i;const s="string"==typeof e?Me("#"+Di(e)):e;if(!ce(s))throw new TypeError("The element or ID supplied is not valid. (videojs)");const o="getRootNode"in s&&s.getRootNode()instanceof t.default.ShadowRoot?s.getRootNode():s.ownerDocument.body;s.ownerDocument.defaultView&&o.contains(s)||S.warn("The element supplied is not included in the DOM"),!0===(n=n||{}).restoreEl&&(n.restoreEl=(s.parentNode&&s.parentNode.hasAttribute&&s.parentNode.hasAttribute("data-vjs-player")?s.parentNode:s).cloneNode(!0)),y("beforesetup").forEach(e=>{const t=e(s,D(n));O(t)&&!Array.isArray(t)?n=D(n,t):S.error("please return an object in beforesetup hooks")});const a=Pt.getComponent("Player");return i=new a(s,n,r),y("setup").forEach(e=>e(i)),i}if(Ri.hooks_=g,Ri.hooks=y,Ri.hook=function(e,t){y(e,t)},Ri.hookOnce=function(e,t){y(e,[].concat(t).map(t=>{const n=(...r)=>(v(e,n),t(...r));return n}))},Ri.removeHook=v,!0!==t.default.VIDEOJS_NO_DYNAMIC_STYLE&&le()){let e=Me(".vjs-styles-defaults");if(!e){e=ze("vjs-styles-defaults");const t=Me("head");t&&t.insertBefore(e,t.firstChild),Ge(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Ve(1,Ri),Ri.VERSION=_,Ri.options=wi.prototype.options_,Ri.getPlayers=()=>wi.players,Ri.getPlayer=e=>{const t=wi.players;let n;if("string"==typeof e){const r=Di(e),i=t[r];if(i)return i;n=Me("#"+r)}else n=e;if(ce(n)){const{player:e,playerId:r}=n;if(e||t[r])return e||t[r]}},Ri.getAllPlayers=()=>Object.keys(wi.players).map(e=>wi.players[e]).filter(Boolean),Ri.players=wi.players,Ri.getComponent=Pt.getComponent,Ri.registerComponent=(e,t)=>(Cn.isTech(t)&&S.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Pt.registerComponent.call(Pt,e,t)),Ri.getTech=Cn.getTech,Ri.registerTech=Cn.registerTech,Ri.use=function(e,t){Tn[e]=Tn[e]||[],Tn[e].push(t)},Object.defineProperty(Ri,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ri.middleware,"TERMINATOR",{value:xn,writeable:!1,enumerable:!0}),Ri.browser=oe,Ri.obj=N,Ri.mergeOptions=Li(9,"videojs.mergeOptions","videojs.obj.merge",D),Ri.defineLazyProperty=Li(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",M),Ri.bind=Li(9,"videojs.bind","native Function.prototype.bind",lt),Ri.registerPlugin=Oi.registerPlugin,Ri.deregisterPlugin=Oi.deregisterPlugin,Ri.plugin=(e,t)=>(S.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Oi.registerPlugin(e,t)),Ri.getPlugins=Oi.getPlugins,Ri.getPlugin=Oi.getPlugin,Ri.getPluginVersion=Oi.getPluginVersion,Ri.addLanguage=function(e,t){return e=(""+e).toLowerCase(),Ri.options.languages=D(Ri.options.languages,{[e]:t}),Ri.options.languages[e]},Ri.log=S,Ri.createLogger=x,Ri.time=$t,Ri.createTimeRange=Li(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Dt),Ri.createTimeRanges=Li(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Dt),Ri.formatTime=Li(9,"videojs.formatTime","videojs.time.formatTime",Ut),Ri.setFormatTime=Li(9,"videojs.setFormatTime","videojs.time.setFormatTime",Nt),Ri.resetFormatTime=Li(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",jt),Ri.parseUrl=Li(9,"videojs.parseUrl","videojs.url.parseUrl",cn),Ri.isCrossOrigin=Li(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",hn),Ri.EventTarget=pt,Ri.any=st,Ri.on=tt,Ri.one=it,Ri.off=nt,Ri.trigger=rt,Ri.xhr=r.default,Ri.TrackList=Yt,Ri.TextTrack=_n,Ri.TextTrackList=tn,Ri.AudioTrack=gn,Ri.AudioTrackList=Jt,Ri.VideoTrack=yn,Ri.VideoTrackList=en,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{Ri[e]=function(){return S.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),$e[e].apply(null,arguments)}}),Ri.computedStyle=Li(9,"videojs.computedStyle","videojs.dom.computedStyle",je),Ri.dom=$e,Ri.fn=dt,Ri.num=ir,Ri.str=At,Ri.url=pn,Ri.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"}; 699/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */ 700class Mi{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class Ni extends Ri.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const n=this.levels_.length;return t=new Mi(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,r=this.length;n<r;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;t<n;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}Ni.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const Wa in Ni.prototype.allowedEvents_)Ni.prototype["on"+Wa]=null;var ji="4.1.0";const Ui=function(e){return function(e){const t=e.qualityLevels,n=new Ni,r=function(){n.dispose(),e.qualityLevels=t,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>n,e.qualityLevels.VERSION=ji,n}(this,Ri.obj.merge({},e))};Ri.registerPlugin("qualityLevels",Ui),Ui.VERSION=ji; 701/*! @name @videojs/http-streaming @version 3.17.2 @license Apache-2.0 */ 702const $i=o.default,Bi=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,Fi=e=>Ri.log.debug?Ri.log.debug.bind(Ri,"VHS:",`${e} >`):function(){};function qi(...e){const t=Ri.obj||Ri;return(t.merge||t.mergeOptions).apply(t,e)}function Vi(...e){const t=Ri.time||Ri;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const Hi=1/30,zi=.1,Gi=function(e,t){const n=[];let r;if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&n.push([e.start(r),e.end(r)]);return Vi(n)},Ki=function(e,t){return Gi(e,function(e,n){return e-zi<=t&&n+zi>=t})},Wi=function(e,t){return Gi(e,function(e){return e-Hi>=t})},Xi=e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Yi=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Zi=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Ji=function(e,t){let n=0;if(!e||!e.length)return n;for(let r=0;r<e.length;r++){const i=e.start(r),s=e.end(r);t>s||(n+=t>i&&t<=s?s-t:s-i)}return n},Qi=(e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},es=e=>(e.segments||[]).reduce((e,t,n)=>(t.parts?t.parts.forEach(function(r,i){e.push({duration:r.duration,segmentIndex:n,partIndex:i,part:r,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e),[]),ts=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ns=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let r=(n||[]).reduce((e,t)=>e+("PART"===t.type?1:0),0);return r+=t&&t.length?t.length:0,r},rs=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=ts(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},is=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const r=function(e,t){let n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(i=e.segments[r],void 0!==i.end)return{result:n+i.end,precise:!0};if(n+=Qi(e,i),void 0!==i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(r.precise)return r.result;const i=function(e,t){let n,r=0,i=t-e.mediaSequence;for(;i<e.segments.length;i++){if(n=e.segments[i],void 0!==n.start)return{result:n.start-r,precise:!0};if(r+=Qi(e,n),void 0!==n.end)return{result:n.end-r,precise:!0}}return{result:-1,precise:!1}}(e,t);return i.precise?i.result:r.result+n},ss=function(e,n,r){if(!e)return 0;if("number"!=typeof r&&(r=0),void 0===n){if(e.totalDuration)return e.totalDuration;if(!e.endList)return t.default.Infinity}return is(e,n,r)},os=function({defaultDuration:e,durationList:t,startIndex:n,endIndex:r}){let i=0;if(n>r&&([n,r]=[r,n]),n<0){for(let t=n;t<Math.min(0,r);t++)i+=e;n=0}for(let s=n;s<r;s++)i+=t[s].duration;return i},as=function(e,t,n,r){if(!e||!e.segments)return null;if(e.endList)return ss(e);if(null===t)return null;t=t||0;let i=is(e,e.mediaSequence+e.segments.length,t);return n&&(i-=r="number"==typeof r?r:rs(null,e)),Math.max(0,i)},ls=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},cs=function(e){return e.excludeUntil&&e.excludeUntil===1/0},us=function(e){const t=ls(e);return!e.disabled&&!t},ds=function(e,t){return t.attributes&&t.attributes[e]},hs=(e,t)=>{if(1===e.playlists.length)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!us(e)&&(e.attributes.BANDWIDTH||0)<n).length},ps=(e,t)=>!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri)))),fs=function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let r=!1;for(const i in n){for(const e in n[i])if(r=t(n[i][e]),r)break;if(r)break}return!!r},ms=e=>{if(!e||!e.playlists||!e.playlists.length){const t=fs(e,e=>e.playlists&&e.playlists.length||e.uri);return t}for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],r=n.attributes&&n.attributes.CODECS;if(r&&r.split(",").every(e=>(0,l.isAudioCodec)(e)))continue;const i=fs(e,e=>ps(n,e));if(!i)return!1}return!0};var _s={liveEdgeDelay:rs,duration:ss,seekable:function(e,t,n){const r=t||0;let i=as(e,t,!0,n);return null===i?Vi():(i<r&&(i=r),Vi(r,i))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:r,startTime:i,exactManifestTimings:s}){let o=t-i;const a=es(e);let l=0;for(let c=0;c<a.length;c++){const e=a[c];if(n===e.segmentIndex&&("number"!=typeof r||"number"!=typeof e.partIndex||r===e.partIndex)){l=c;break}}if(o<0){if(l>0)for(let t=l-1;t>=0;t--){const n=a[t];if(o+=n.duration,s){if(o<0)continue}else if(o+Hi<=0)continue;return{partIndex:n.partIndex,segmentIndex:n.segmentIndex,startTime:i-os({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:t})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t}}if(l<0){for(let n=l;n<0;n++)if(o-=e.targetDuration,o<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t};l=0}for(let c=l;c<a.length;c++){const t=a[c];o-=t.duration;const n=t.duration>Hi;if(!(0===o)&&!(n&&o+Hi>=0)||c===a.length-1){if(s){if(o>0)continue}else if(o-Hi>=0)continue;return{partIndex:t.partIndex,segmentIndex:t.segmentIndex,startTime:i+os({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:c})}}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:t}},isEnabled:us,isDisabled:function(e){return e.disabled},isExcluded:ls,isIncompatible:cs,playlistEnd:as,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:ds,estimateSegmentRequestTime:function(e,t,n,r=0){if(!ds("BANDWIDTH",n))return NaN;return(e*n.attributes.BANDWIDTH-8*r)/t},isLowestEnabledRendition:hs,isAudioOnly:ms,playlistMatch:ps,segmentDurationWithParts:Qi};const{log:gs}=Ri,ys=(e,t)=>`${e}-${t}`,vs=(e,t,n)=>`placeholder-uri-${e}-${t}-${n}`,bs=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(n=>{if(e.mediaGroups[n])for(const r in e.mediaGroups[n])for(const i in e.mediaGroups[n][r]){const s=e.mediaGroups[n][r][i];t(s,n,r,i)}})},ws=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},ks=(e,t,n=vs)=>{e.uri=t;for(let i=0;i<e.playlists.length;i++)if(!e.playlists[i].uri){const t=`placeholder-uri-${i}`;e.playlists[i].uri=t}const r=ms(e);bs(e,(t,i,o,a)=>{if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===i&&!t.uri)for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t];if(n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===o)return}t.playlists=[(0,s.default)({},t)]}t.playlists.forEach(function(t,r){const s=n(i,o,a,t),l=ys(r,s);t.uri?t.resolvedUri=t.resolvedUri||$i(e.uri,t.uri):(t.uri=0===r?s:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),(e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];ws({playlist:n,id:ys(t,n.uri)}),n.resolvedUri=$i(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||gs.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{bs(e,t=>{t.uri&&(t.resolvedUri=$i(e.uri,t.uri))})})(e)};class Cs{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,n=t.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((n,r)=>{if(!this.processedDateRanges_.has(r)&&(n.startTime=n.startDate.getTime()/1e3-this.offset_,n.processDateRange=()=>this.processDateRange(n),t.push(n),n.class))if(e[n.class]){const t=e[n.class].push(n);n.classListIndex=t-1}else e[n.class]=[n],n.classListIndex=0});for(const n of t){const t=e[n.class]||[];n.endDate?n.endTime=n.endDate.getTime()/1e3-this.offset_:n.endOnNext&&t[n.classListIndex+1]?n.endTime=t[n.classListIndex+1].startTime:n.duration?n.endTime=n.startTime+n.duration:n.plannedDuration?n.endTime=n.startTime+n.plannedDuration:n.endTime=n.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,n)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(n)})}}const Ts=({requestType:e,request:t,error:n,parseFailure:r})=>{const i=t.status<200||t.status>299,o=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},l=i&&!o||r;if(n&&o)a.error=(0,s.default)({},n),a.errorType=Ri.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=Ri.Error.NetworkRequestAborted;else if(t.timedout)a.errorType=Ri.Error.NetworkRequestTimeout;else if(l){const e=r?Ri.Error.NetworkBodyParserFailed:Ri.Error.NetworkBadStatus;a.errorType=e,a.status=t.status,a.headers=t.headers}return a},Ss=Fi("CodecUtils"),xs=function(e){const t=e.attributes||{};if(t.CODECS)return(0,l.parseCodecs)(t.CODECS)},Es=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Is=function(e){const t={};return e.forEach(({mediaType:e,type:n,details:r})=>{t[e]=t[e]||[],t[e].push((0,l.translateLegacyCodec)(`${n}${r}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return Ss(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]}),t},As=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},Ps=function(e,t){const n=t.attributes||{},r=Is(xs(t)||[]);if(Es(e,t)&&!r.audio&&!((e,t)=>{if(!Es(e,t))return!0;const n=t.attributes||{},r=e.mediaGroups.AUDIO[n.AUDIO];for(const i in r)if(!r[i].uri&&!r[i].playlists)return!0;return!1})(e,t)){const t=Is((0,l.codecsFromDefault)(e,n.AUDIO)||[]);t.audio&&(r.audio=t.audio)}return r},{EventTarget:Os}=Ri,Ls=(e,t)=>{if(!e)return t;const n=qi(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let r=0;r<t.parts.length;r++)e.parts&&e.parts[r]&&(n.parts[r]=qi(e.parts[r],t.parts[r]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Ds=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=$i(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=$i(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=$i(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=$i(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=$i(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=$i(t,e.uri))})},Rs=function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(let e=0;e<n.preloadHints.length;e++)if("MAP"===n.preloadHints[e].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Ms=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,Ns=(e,t,n=Ms)=>{const r=qi(e,{}),i=r.playlists[t.id];if(!i)return null;if(n(i,t))return null;t.segments=Rs(t);const s=qi(i,t);if(s.preloadSegment&&!t.preloadSegment&&delete s.preloadSegment,i.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}s.segments=((e,t,n)=>{const r=e.slice(),i=t.slice();n=n||0;const s=[];let o;for(let a=0;a<i.length;a++){const e=r[a+n],t=i[a];e?(o=e.map||o,s.push(Ls(e,t))):(o&&!t.map&&(t.map=o),s.push(t))}return s})(i.segments,t.segments,t.mediaSequence-i.mediaSequence)}s.segments.forEach(e=>{Ds(e,s.resolvedUri)});for(let o=0;o<r.playlists.length;o++)r.playlists[o].id===t.id&&(r.playlists[o]=s);return r.playlists[t.id]=s,r.playlists[t.uri]=s,bs(e,(e,n,r,i)=>{if(e.playlists)for(let o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=s)}),r},js=(e,t)=>{const n=e.segments||[],r=n[n.length-1],i=r&&r.parts&&r.parts[r.parts.length-1],s=i&&i.duration||r&&r.duration;return t&&s?1e3*s:500*(e.partTargetDuration||e.targetDuration||10)},Us=(e,t,n)=>{if(!e)return;const r=[];return e.forEach(e=>{if(!e.attributes)return;const{BANDWIDTH:t,RESOLUTION:n,CODECS:i}=e.attributes;r.push({id:e.id,bandwidth:t,resolution:n,codecs:i})}),{type:t,isLive:n,renditions:r}};class $s extends Os{constructor(e,t,n={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Fi("PlaylistLoader");const{withCredentials:r=!1}=n;this.src=e,this.vhs_=t,this.withCredentials=r,this.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;const i=t.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.dateRangesStorage_=new Cs,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let n=$i(this.main.uri,e.uri);this.llhls&&(n=((e,n)=>{if(n.endList||!n.serverControl)return e;const r={};if(n.serverControl.canBlockReload){const{preloadSegment:e}=n;let t=n.mediaSequence+n.segments.length;if(e){const i=e.parts||[],s=ns(n)-1;s>-1&&s!==i.length-1&&(r._HLS_part=s),(s>-1||i.length)&&t--}r._HLS_msn=t}if(n.serverControl&&n.serverControl.canSkipUntil&&(r._HLS_skip=n.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(r).length){const n=new t.default.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){r.hasOwnProperty(e)&&n.searchParams.set(e,r[e])}),e=n.toString()}return e})(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})})}playlistRequestError(e,t,n){const{uri:r,id:i}=t;this.request=null,n&&(this.state=n),this.error={playlist:this.main.playlists[i],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:Ts({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{const n=(({onwarn:e,oninfo:t,manifestString:n,customTagParsers:r=[],customTagMappers:i=[],llhls:s})=>{const o=new a.Parser;e&&o.on("warn",e),t&&o.on("info",t),r.forEach(e=>o.addParser(e)),i.forEach(e=>o.addTagMapper(e)),o.push(n),o.end();const l=o.manifest;if(s||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){l.hasOwnProperty(e)&&delete l[e]}),l.segments&&l.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!l.targetDuration){let t=10;l.segments&&l.segments.length&&(t=l.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),l.targetDuration=t}const c=ts(l);if(c.length&&!l.partTargetDuration){const t=c.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),gs.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),l.partTargetDuration=t}return l})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return n.playlists&&n.playlists.length?(this.excludeAudioOnlyVariants(n.playlists),n):n}catch(n){this.error=n,this.error.metadata={errorType:Ri.Error.StreamingHlsPlaylistParserError,error:n}}}excludeAudioOnlyVariants(e){const t=e=>{const t=e.attributes||{},{width:n,height:r}=t.RESOLUTION||{};if(n&&r)return!0;const i=xs(e)||[],s=Is(i);return Boolean(s.video)};e.some(t)&&e.forEach(e=>{t(e)||(e.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:n,id:r}){this.request=null,this.state="HAVE_METADATA";const i={playlistInfo:{type:"media",uri:n}};this.trigger({type:"playlistparsestart",metadata:i});const s=t||this.parseManifest_({url:n,manifestString:e});s.lastRequest=Date.now(),ws({playlist:s,uri:n,id:r});const o=Ns(this.main,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(js(this.media(),!!o)),i.parsedPlaylist=Us(this.main.playlists,i.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:i}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),t.default.clearTimeout(this.mediaUpdateTimeout),t.default.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Cs,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,n){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(t.default.clearTimeout(this.finalRenditionTimeout),n){const n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=t.default.setTimeout(this.media.bind(this,e,!1),n))}const r=this.state,i=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(js(e,!0)),!i)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;const o={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:o}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,n)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Bi(e.resolvedUri,n),t)return this.playlistRequestError(this.request,e,r);this.trigger({type:"playlistrequestcomplete",metadata:o}),this.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(e){const e=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=t.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e))}this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=t.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=t.default.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,n)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:n.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:n.responseText,code:2,metadata:Ts({requestType:n.requestType,request:n,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=Bi(this.src,n),this.trigger({type:"playlistparsestart",metadata:e});const r=this.parseManifest_({manifestString:n.responseText,url:this.src});e.parsedPlaylist=Us(r.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(r)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,ks(this.main,this.srcUri()),e.playlists.forEach(e=>{e.segments=Rs(e),e.segments.forEach(t=>{Ds(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const n=this.srcUri()||t.default.location.href;this.main=((e,n)=>{const r=ys(0,n),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:t.default.location.href,resolvedUri:t.default.location.href,playlists:[{uri:n,id:r,resolvedUri:n,attributes:{}}]};return i.playlists[r]=i.playlists[0],i.playlists[n]=i.playlists[0],i})(0,n),this.haveMetadata({playlistObject:e,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const n=this.main,r=e.ID;let i=n.playlists.length;for(;i--;){const s=n.playlists[i];if(s.attributes["PATHWAY-ID"]===r){const o=s.resolvedUri,a=s.id;if(t){const t=this.createCloneURI_(s.resolvedUri,e),o=ys(r,t),a=this.createCloneAttributes_(r,s.attributes),l=this.createClonePlaylist_(s,o,e,a);n.playlists[i]=l,n.playlists[o]=l,n.playlists[t]=l}else n.playlists.splice(i,1);delete n.playlists[a],delete n.playlists[o]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const n=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(n.mediaGroups[e]&&n.mediaGroups[e][r])for(const t in n.mediaGroups[e])if(t===r){for(const r in n.mediaGroups[e][t]){n.mediaGroups[e][t][r].playlists.forEach((e,t)=>{const r=n.playlists[e.id],i=r.id,s=r.resolvedUri;delete n.playlists[i],delete n.playlists[s]})}delete n.mediaGroups[e][t]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const n=this.main,r=n.playlists.length,i=this.createCloneURI_(t.resolvedUri,e),s=ys(e.ID,i),o=this.createCloneAttributes_(e.ID,t.attributes),a=this.createClonePlaylist_(t,s,e,o);n.playlists[r]=a,n.playlists[s]=a,n.playlists[i]=a,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,n=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(r.mediaGroups[i]&&!r.mediaGroups[i][t])for(const o in r.mediaGroups[i])if(o===n){r.mediaGroups[i][t]={};for(const n in r.mediaGroups[i][o]){const a=r.mediaGroups[i][o][n];r.mediaGroups[i][t][n]=(0,s.default)({},a);const l=r.mediaGroups[i][t][n],c=this.createCloneURI_(a.resolvedUri,e);l.resolvedUri=c,l.uri=c,l.playlists=[],a.playlists.forEach((s,o)=>{const a=r.playlists[s.id],c=vs(i,t,n),u=ys(t,c);if(a&&!r.playlists[u]){const t=this.createClonePlaylist_(a,u,e),n=t.resolvedUri;r.playlists[u]=t,r.playlists[n]=t}l.playlists[o]=this.createClonePlaylist_(s,u,e)})}}})}createClonePlaylist_(e,t,n,r){const i=this.createCloneURI_(e.resolvedUri,n),s={resolvedUri:i,uri:i,id:t};return e.segments&&(s.segments=[]),r&&(s.attributes=r),qi(e,s)}createCloneURI_(e,t){const n=new URL(e);n.hostname=t["URI-REPLACEMENT"].HOST;const r=t["URI-REPLACEMENT"].PARAMS;for(const i of Object.keys(r))n.searchParams.set(i,r[i]);return n.href}createCloneAttributes_(e,t){const n={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{t[r]&&(n[r]=e)}),n}getKeyIdSet(e){const t=new Set;if(!e||!e.contentProtection)return t;for(const n in e.contentProtection)if(e.contentProtection[n]&&e.contentProtection[n].attributes&&e.contentProtection[n].attributes.keyId){const r=e.contentProtection[n].attributes.keyId;t.add(r.toLowerCase())}return t}}const Bs=function(e,t,n,r){const i="arraybuffer"===e.responseType?e.response:e.responseText;!t&&i&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=i.byteLength||i.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(i||e.responseText)))),r(t,e)},Fs=function(){const e=function e(t,n){t=qi({timeout:45e3},t);const r=e.beforeRequest||Ri.Vhs.xhr.beforeRequest,i=e._requestCallbackSet||Ri.Vhs.xhr._requestCallbackSet||new Set,s=e._responseCallbackSet||Ri.Vhs.xhr._responseCallbackSet;r&&"function"==typeof r&&(Ri.log.warn("beforeRequest is deprecated, use onRequest instead."),i.add(r));const o=!0===Ri.Vhs.xhr.original?Ri.xhr:Ri.Vhs.xhr,a=((e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach(e=>{n=e(n)}),n})(i,t);i.delete(r);const l=o(a||t,function(e,t){return((e,t,n,r)=>{e&&e.size&&e.forEach(e=>{e(t,n,r)})})(s,l,e,t),Bs(l,e,t,n)}),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},qs=function(e){const n={};return e.byterange&&(n.Range=function(e){let n;const r=e.offset;return n="bigint"==typeof e.offset||"bigint"==typeof e.length?t.default.BigInt(e.offset)+t.default.BigInt(e.length)-t.default.BigInt(1):e.offset+e.length-1,"bytes="+r+"-"+n}(e.byterange)),n},Vs=function(e,t){return e.start(t)+"-"+e.end(t)},Hs=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},zs=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Gs=function(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];(0,u.isArrayBufferView)(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t},Ks=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Ws=function(e){return e.resolvedUri},Xs=e=>{const t=Array.prototype.slice.call(e),n=16;let r,i,s="";for(let o=0;o<t.length/n;o++)r=t.slice(o*n,o*n+n).map(Hs).join(""),i=t.slice(o*n,o*n+n).map(zs).join(""),s+=r+" "+i+"\n";return s};var Ys=Object.freeze({__proto__:null,createTransferableMessage:Gs,initSegmentId:Ks,segmentKeyId:Ws,hexDump:Xs,tagDump:({bytes:e})=>Xs(e),textRanges:e=>{let t,n="";for(t=0;t<e.length;t++)n+=Vs(e,t)+" ";return n}});const Zs=({playlist:e,time:t,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return n({message:"getProgramTime: playlist and time must be provided"});const r=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let n,r=0;for(let s=0;s<t.segments.length&&(n=t.segments[s],r=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration,!(e<=r));s++);const i=t.segments[t.segments.length-1];if(i.videoTimingInfo&&i.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>r){if(e>r+.25*i.duration)return null;n=i}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!r)return n({message:"valid programTime was not found"});if("estimate"===r.type)return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:r.estimatedStart});const i={mediaSeconds:t},s=((e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,r=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*r)})(t,r.segment);return s&&(i.programDateTime=s.toISOString()),n(null,i)},Js=({programTime:e,playlist:t,retryCount:n=2,seekTo:r,pauseAfterSeek:i=!0,tech:s,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!r)return o({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!s.hasStarted_)return o({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return o({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const a=((e,t)=>{let n;try{n=new Date(e)}catch(CL){return null}if(!t||!t.segments||0===t.segments.length)return null;let r=t.segments[0];if(n<new Date(r.dateTimeObject))return null;for(let l=0;l<t.segments.length-1&&(r=t.segments[l],!(n<new Date(t.segments[l+1].dateTimeObject)));l++);const i=t.segments[t.segments.length-1],s=i.dateTimeObject,o=i.videoTimingInfo?(a=i.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:i.duration+.25*i.duration;var a;return n>new Date(s.getTime()+1e3*o)?null:(n>new Date(s)&&(r=i),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:_s.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!a)return o({message:`${e} was not found in the stream`});const l=a.segment,c=((e,t)=>{let n,r;try{n=new Date(e),r=new Date(t)}catch(CL){}const i=n.getTime();return(r.getTime()-i)/1e3})(l.dateTimeObject,e);if("estimate"===a.type)return 0===n?o({message:`${e} is not buffered yet. Try again`}):(r(a.estimatedStart+c),void s.one("seeked",()=>{Js({programTime:e,playlist:t,retryCount:n-1,seekTo:r,pauseAfterSeek:i,tech:s,callback:o})}));const u=l.start+c;s.one("seeked",()=>o(null,s.currentTime())),i&&s.pause(),r(u)},Qs=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:eo}=Ri,to=function(e,t){if(!Ms(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let n=0;n<e.segments.length;n++){const r=e.segments[n],i=t.segments[n];if(r.uri!==i.uri)return!1;if(!r.byterange&&!i.byterange)continue;const s=r.byterange,o=i.byterange;if(s&&!o||!s&&o)return!1;if(s.offset!==o.offset||s.length!==o.length)return!1}return!0},no=(e,t,n,r)=>`placeholder-uri-${e}-${t}-${r.attributes.NAME||n}`,ro=(e,t,n)=>{let r=!0,i=qi(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let s=0;s<t.playlists.length;s++){const e=t.playlists[s];if(e.sidx){const t=(0,d.generateSidxKey)(e.sidx);n&&n[t]&&n[t].sidx&&(0,d.addSidxSegmentsToPlaylist)(e,n[t].sidx,e.sidx.resolvedUri)}const o=Ns(i,e,to);o&&(i=o,r=!1)}return bs(t,(e,t,n,s)=>{if(e.playlists&&e.playlists.length){const o=e.playlists[0].id,a=Ns(i,e.playlists[0],to);a&&(i=a,s in i.mediaGroups[t][n]||(i.mediaGroups[t][n][s]=e),i.mediaGroups[t][n][s].playlists[0]=i.playlists[o],r=!1)}}),((e,t)=>{bs(e,(n,r,i,s)=>{t.mediaGroups[r][i]&&s in t.mediaGroups[r][i]||delete e.mediaGroups[r][i][s]})})(i,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(r=!1),r?null:i},io=(e,t)=>(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,so=(e,t)=>{const n={};for(const r in e){const i=e[r].sidx;if(i){const e=(0,d.generateSidxKey)(i);if(!t[e])break;const r=t[e].sidxInfo;
vendor: 5,538 bytes, line 702
702io(r,i)&&(n[e]=t[e])}}return n};class oo extends eo{constructor(e,t,n={},r){super(),this.isPaused_=!0,this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:i=!1}=n;if(this.vhs_=t,this.withCredentials=i,this.addMetadataToTextTrack=n.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Fi("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)}addSidxSegments_(e,n,r){const i=e.sidx&&(0,d.generateSidxKey)(e.sidx);if(!e.sidx||!i||this.mainPlaylistLoader_.sidxMapping_[i])return t.default.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=t.default.setTimeout(()=>r(!1),0));const s=Bi(e.sidx.resolvedUri),o=(t,s)=>{if(this.requestErrored_(t,s,n))return;const o=this.mainPlaylistLoader_.sidxMapping_,{requestType:a}=s;let l;try{l=(0,h.default)((0,u.toUint8)(s.response).subarray(8))}catch(CL){return CL.metadata=Ts({requestType:a,request:s,parseFailure:!0}),void this.requestErrored_(CL,s,n)}return o[i]={sidxInfo:e.sidx,sidx:l},(0,d.addSidxSegmentsToPlaylist)(e,l,e.sidx.resolvedUri),r(!0)};this.request=((e,t,n,r)=>{let i,s=[],o=!1;const a=function(e,t,r,i){return t.abort(),o=!0,n(e,t,r,i)},l=function(e,t){if(o)return;if(e)return e.metadata=Ts({requestType:r,request:t,error:e}),a(e,t,"",s);const n=t.responseText.substring(s&&s.byteLength||0,t.responseText.length);if(s=(0,u.concatTypedArrays)(s,(0,u.stringToBytes)(n,!0)),i=i||(0,p.getId3Offset)(s),s.length<10||i&&s.length<i+2)return Qs(t,()=>a(e,t,"",s));const l=(0,f.detectContainerForBytes)(s);return"ts"===l&&s.length<188||!l&&s.length<376?Qs(t,()=>a(e,t,"",s)):a(null,t,l,s)},c=t({uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:n}){return Bs(e,null,{statusCode:e.status},l)})}},function(e,t){return Bs(c,e,t,l)});return c})(s,this.vhs_.xhr,(t,n,r,i)=>{if(t)return o(t,n);if(!r||"mp4"!==r){const t=r||"unknown";return o({status:n.status,message:`Unsupported ${t} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},n)}const{offset:a,length:l}=e.sidx.byterange;if(i.length>=l+a)return o(t,{response:i.subarray(a,a+l),status:n.status,uri:n.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",requestType:"dash-sidx",headers:qs({byterange:e.sidx.byterange})},o)},"dash-sidx")}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},t.default.clearTimeout(this.minimumUpdatePeriodTimeout_),t.default.clearTimeout(this.mediaRequest_),t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,n=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:n}){this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,t.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(t.default.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){this.isPaused_=!1,t.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(e){const e=n?n.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=t.default.setTimeout(()=>this.load(),e))}this.started?n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}
vendor: 3,329 bytes, line 702
702start(){if(this.started=!0,!this.isMain_)return t.default.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=t.default.setTimeout(()=>this.haveMain_(),0));this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){const t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(n,r)=>{if(n){const{requestType:e}=r;n.metadata=Ts({requestType:e,request:r,error:n})}if(this.requestErrored_(n,r))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const i=r.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?this.mainLoaded_=Date.parse(r.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Bi(this.mainPlaylistLoader_.srcUrl,r),i?(this.handleMain_(),void this.syncClientServerClock_(()=>e(r,i))):e(r,i)})}syncClientServerClock_(e){const t=(0,d.parseUTCTiming)(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:$i(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(n,r)=>{if(!this.request)return;if(n){const{requestType:t}=r;return this.error.metadata=Ts({requestType:t,request:r,error:n}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let i;i="HEAD"===t.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):this.mainLoaded_:Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=i-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){t.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};let r;this.trigger({type:"manifestparsestart",metadata:n});try{r=(({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:r,previousManifest:i})=>{const s=(0,d.parse)(e,{manifestUri:t,clientOffset:n,sidxMapping:r,previousManifest:i});return ks(s,t,no),s})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(s){this.error=s,this.error.metadata={errorType:Ri.Error.StreamingDashManifestParserError,error:s},this.trigger("error")}e&&(r=ro(e,r,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=r||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||r&&r.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(r),r){const{duration:e,endList:t}=r,i=[];
vendor: 4,954 bytes, line 702
702r.playlists.forEach(e=>{i.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})});const s={duration:e,isLive:!t,renditions:i};n.parsedManifest=s,this.trigger({type:"manifestparsecomplete",metadata:n})}return Boolean(r)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(t.default.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let n=e.main&&e.main.minimumUpdatePeriod;0===n&&(e.media()?n=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof n||n<=0?n<0&&this.logger_(`found invalid minimumUpdatePeriod of ${n}, not setting a timeout`):this.createMUPTimeout_(n)}createMUPTimeout_(e){const n=this.mainPlaylistLoader_;n.minimumUpdatePeriodTimeout_=t.default.setTimeout(()=>{n.minimumUpdatePeriodTimeout_=null,n.trigger("minimumUpdatePeriod"),n.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let n=so(e.playlists,t);return bs(e,(e,r,i,s)=>{if(e.playlists&&e.playlists.length){const r=e.playlists;n=qi(n,so(r,t))}}),n})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const n=this.mainPlaylistLoader_.main.playlists,r=!this.media_||this.media_!==n[e];if(r?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=t.default.setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},js(this.media(),Boolean(r))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const n in e.contentProtection){const r=e.contentProtection[n].attributes["cenc:default_KID"];r&&t.add(r.replace(/-/g,"").toLowerCase())}return t}}}var ao={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const lo=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},co=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(CL){const n=new BlobBuilder;return n.append(e),URL.createObjectURL(n.getBlob())}}(e),n=lo(new Worker(t));n.objURL=t;const r=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),r.call(this)},n}},uo=function(e){return`var browserWorkerPolyFill = ${lo.toString()};\nbrowserWorkerPolyFill(self);\n`+e},ho=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},po=uo(ho(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Wa?Wa:"undefined"!=typeof self?self:{},t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,s;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(s=[],r=arguments.length,r=1;r<arguments.length;++r)s.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,s)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,r,i,s,o,a,l,c,u,d,h,p,f,m,_,g,y,v,b,w,k,C,T,S,x,E,I,A,P,O,L,D,R,M,N,j,U,$,B,F,q=t,V=Math.pow(2,32),H={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 4,191 bytes, line 702
702Number(t):t:n.getUint32(0)*V+n.getUint32(4)},MAX_UINT32:V},z=H.MAX_UINT32;!function(){var e;if(C={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in C)C.hasOwnProperty(e)&&(C[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);T=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),E=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]),I=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]),A={video:E,audio:I},L=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]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=D,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=D,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(e){var t,n,r=[],i=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)i+=r[t].byteLength;for(n=new Uint8Array(i+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,i=8;t<r.length;t++)n.set(r[t],i),i+=r[t].byteLength;return n},r=function(){return n(C.dinf,n(C.dref,L))},i=function(e){return n(C.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},_=function(e){return n(C.hdlr,A[e])},m=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(C.mdhd,t)},f=function(e){return n(C.mdia,m(e),_(e.type),a(e))},o=function(e){return n(C.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},a=function(e){return n(C.minf,"video"===e.type?n(C.vmhd,P):n(C.smhd,O),r(),y(e))},l=function(e,t){for(var r=[],i=t.length;i--;)r[i]=b(t[i]);return n.apply(null,[C.moof,o(e)].concat(r))},c=function(e){for(var t=e.length,r=[];t--;)r[t]=h(e[t]);return n.apply(null,[C.moov,d(4294967295)].concat(r).concat(u(e)))},u=function(e){for(var t=e.length,r=[];t--;)r[t]=w(e[t]);return n.apply(null,[C.mvex].concat(r))},d=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,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 n(C.mvhd,t)},g=function(e){var t,r,i=e.samples||[],s=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)t=i[r].flags,s[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(C.sdtp,s)},y=function(e){return n(C.stbl,v(e),n(C.stts,N),n(C.stsc,R),n(C.stsz,M),n(C.stco,D))},v=function(e){return n(C.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?j(e):U(e))},j=function(e){var t,r,i=e.sps||[],s=e.pps||[],o=[],a=[];for(t=0;t<i.length;t++)o.push((65280&i[t].byteLength)>>>8),o.push(255&i[t].byteLength),o=o.concat(Array.prototype.slice.call(i[t]));for(t=0;t<s.length;t++)a.push((65280&s[t].byteLength)>>>8),a.push(255&s[t].byteLength),a=a.concat(Array.prototype.slice.call(s[t]));if(r=[C.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,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(C.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],o,[s.length],a))),n(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.s
vendor: 35,492 bytes, line 702
702arRatio[0],c=e.sarRatio[1];r.push(n(C.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return n.apply(null,r)},U=function(e){return n(C.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},p=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,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,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(C.tkhd,t)},b=function(e){var t,r,i,s,o,a;return t=n(C.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/z),a=Math.floor(e.baseMediaDecodeTime%z),r=n(C.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===e.type?(i=k(e,92),n(C.traf,t,r,i)):(s=g(e),i=k(e,s.length+92),n(C.traf,t,r,i,s))},h=function(e){return e.duration=e.duration||4294967295,n(C.trak,p(e),f(e))},w=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(C.trex,t)},F=function(e,t){var n=0,r=0,i=0,s=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(s=8)),[0,0,n|r|i|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},B=function(e,t){var r,i,s,o,a,l;for(t+=20+16*(o=e.samples||[]).length,s=F(o,t),(i=new Uint8Array(s.length+16*o.length)).set(s),r=s.length,l=0;l<o.length;l++)a=o[l],i[r++]=(4278190080&a.duration)>>>24,i[r++]=(16711680&a.duration)>>>16,i[r++]=(65280&a.duration)>>>8,i[r++]=255&a.duration,i[r++]=(4278190080&a.size)>>>24,i[r++]=(16711680&a.size)>>>16,i[r++]=(65280&a.size)>>>8,i[r++]=255&a.size,i[r++]=a.flags.isLeading<<2|a.flags.dependsOn,i[r++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,i[r++]=61440&a.flags.degradationPriority,i[r++]=15&a.flags.degradationPriority,i[r++]=(4278190080&a.compositionTimeOffset)>>>24,i[r++]=(16711680&a.compositionTimeOffset)>>>16,i[r++]=(65280&a.compositionTimeOffset)>>>8,i[r++]=255&a.compositionTimeOffset;return n(C.trun,i)},$=function(e,t){var r,i,s,o,a,l;for(t+=20+8*(o=e.samples||[]).length,s=F(o,t),(r=new Uint8Array(s.length+8*o.length)).set(s),i=s.length,l=0;l<o.length;l++)a=o[l],r[i++]=(4278190080&a.duration)>>>24,r[i++]=(16711680&a.duration)>>>16,r[i++]=(65280&a.duration)>>>8,r[i++]=255&a.duration,r[i++]=(4278190080&a.size)>>>24,r[i++]=(16711680&a.size)>>>16,r[i++]=(65280&a.size)>>>8,r[i++]=255&a.size;return n(C.trun,r)},k=function(e,t){return"audio"===e.type?$(e,t):B(e,t)};var G,K,W,X,Y,Z,J,Q,ee={ftyp:s=function(){return n(C.ftyp,T,S,T,x)},mdat:function(e){return n(C.mdat,e)},moof:l,moov:c,initSegment:function(e){var t,n=s(),r=c(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t}},te=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ne={groupNalsIntoFrames:function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),(r=[n]).byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i},groupFramesIntoGops:function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),(r=[n]).nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var n,r,i,s,o,a=t||0,l=[];for(n=0;n<e.length;n++)for(s=e[n],r=0;r<s.length;r++)o=s[r],a+=(i=te(o,a)).size,l.push(i);return l},concatenateNalData:function(e){var t,n,r,i,s,o,a=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(s=i[n],r=0;r<s.length;r++)o=s[r],d.setUint32(a,o.data.byteLength),a+=4,u.set(o.data,a),a+=o.data.byteLength;return u},generateSampleTableForFrame:function(e,t){var n,r=[];return n=te(e,t||0),r.push(n),r},concatenateNalDataForFrame:function(e){var t,n,r=0,i=e.byteLength,s=e.length,o=new Uint8Array(i+4*s),a=new DataView(o.buffer);for(t=0;t<e.length;t++)n=e[t],a.setUint32(r,n.data.byteLength),r+=4,o.set(n.data,r),r+=n.data.byteLength;return o}},re=[33,16,5,32,164,27],ie=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],se=function(e){for(var t=[];e--;)t.push(0);return t},oe=9e4;Z=function(e,t){return K(Y(e,t))},J=function(e,t){return W(X(e),t)},Q=function(e,t,n){return X(n?e:e-t)};var ae={ONE_SECOND_IN_TS:oe,secondsToVideoTs:K=function(e){return e*oe},secondsToAudioTs:W=function(e,t){return e*t},videoTsToSeconds:X=function(e){return e/oe},audioTsToSeconds:Y=function(e,t){return e/t},audioTsToVideoTs:Z,videoTsToAudioTs:J,metadataTsToSeconds:Q},le=function(){if(!G){var e={96e3:[re,[227,64],se(154),[56]],88200:[re,[231],se(170),[56]],64e3:[re,[248,192],se(240),[56]],48e3:[re,[255,192],se(268),[55,148,128],se(54),[112]],44100:[re,[255,192],se(268),[55,163,128],se(84),[112]],32e3:[re,[255,192],se(268),[55,234],se(226),[112]],24e3:[re,[255,192],se(268),[55,255,128],se(268),[111,112],se(126),[224]],16e3:[re,[255,192],se(268),[55,255,128],se(268),[111,255],se(269),[223,108],se(195),[1,192]],12e3:[ie,se(268),[3,127,248],se(268),[6,255,240],se(268),[13,255,224],se(268),[27,253,128],se(259),[56]],11025:[ie,se(268),[3,127,248],se(268),[6,255,240],se(268),[13,255,224],se(268),[27,255,192],se(268),[55,175,128],se(108),[112]],8e3:[ie,se(268),[3,121,16],se(47),[7]]};t=e,G=Object.keys(t).reduce(function(e,n){return e[n]=new Uint8Array(t[n].reduce(function(e,t){return e.concat(t)},[])),e},{})}var t;return G},ce=ae,ue={prefixWithSilence:function(e,t,n,r){var i,s,o,a,l,c=0,u=0,d=0;if(t.length&&(i=ce.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(ce.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&r&&(c=i-Math.max(n,r),d=(u=Math.floor(c/s))*s),!(u<1||d>ce.ONE_SECOND_IN_TS/2))){for((o=le()[e.samplerate])||(o=t[0].data),a=0;a<u;a++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-s,pts:l.pts-s});return e.baseMediaDecodeTime-=Math.floor(ce.videoTsToAudioTs(d,e.samplerate)),d}},trimAdtsFramesByEarliestDts:function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},concatenateFrameData:function(e){var t,n,r=0,i=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i}},de=ae.ONE_SECOND_IN_TS,he={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/de,n=Math.floor(n)),n},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},pe={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}n.payload=void 0}t+=i,r=0,i=0}return n},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,r,i,s,o=[];if(!(64&t[0]))return o;for(r=31&t[0],n=0;n<r;n++)s={type:3&t[(i=3*n)+2],pts:e},4&t[i+2]&&(s.ccData=t[i+3]<<8|t[i+4],o.push(s));return o},discardEmulationPreventionBytes:function(e){for(var t,n,r=e.byteLength,i=[],s=1;s<r-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(i.push(s+2),s+=2):s++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===i[0]&&(o++,i.shift()),n[s]=e[o];return n},USER_DATA_REGISTERED_ITU_T_T35:4},fe=q,me=pe,_e=function(e){e=e||{},_e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new xe(0,0),new xe(0,1),new xe(1,0),new xe(1,1)],this.parse708captions_&&(this.cc708Stream_=new we({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};_e.prototype=new fe,_e.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=me.parseSei(e.escapedRBSP)).payload&&t.payloadType===me.USER_DATA_REGISTERED_ITU_T_T35&&(n=me.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=me.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},_e.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},_e.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},_e.prototype.flush=function(){return this.flushStream("flush")},_e.prototype.partialFlush=function(){return this.flushStream("partialFlush")},_e.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},_e.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},_e.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},_e.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},_e.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},_e.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var ge={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},ye=function(e){return 32<=e&&e<=127||160<=e&&e<=255},ve=function(e){this.windowNum=e,this.reset()};ve.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ve.prototype.getText=function(){return this.rows.join("\n")},ve.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ve.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ve.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ve.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ve.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var be=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new ve(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};be.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new ve(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},be.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},be.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var we=function(e){e=e||{},we.prototype.init.call(this);var t,n=this,r=e.captionServices||{},i={};Object.keys(r).forEach(e=>{t=r[e],/^SERVICE/.test(e)&&(i[e]=t.encoding)}),this.serviceEncodings=i,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};we.prototype=new fe,we.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},we.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,r=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(r)},we.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,r=null,i=0,s=t[i++];for(e.seq=s>>6,e.sizeCode=63&s;i<t.length;i++)r=31&(s=t[i++]),7===(n=s>>5)&&r>0&&(n=s=t[i++]),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},we.prototype.pushServiceBlock=function(e,t,n){var r,i=t,s=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,i));i<t+n&&i<s.length;i++)r=s[i],ye(r)?i=this.handleText(i,o):24===r?i=this.multiByteCharacter(i,o):16===r?i=this.extendedCommands(i,o):128<=r&&r<=135?i=this.setCurrentWindow(i,o):152<=r&&r<=159?i=this.defineWindow(i,o):136===r?i=this.clearWindows(i,o):140===r?i=this.deleteWindows(i,o):137===r?i=this.displayWindows(i,o):138===r?i=this.hideWindows(i,o):139===r?i=this.toggleWindows(i,o):151===r?i=this.setWindowAttributes(i,o):144===r?i=this.setPenAttributes(i,o):145===r?i=this.setPenColor(i,o):146===r?i=this.setPenLocation(i,o):143===r?o=this.reset(i,o):8===r?o.currentWindow.backspace():12===r?o.currentWindow.clearText():13===r?o.currentWindow.pendingNewLine=!0:14===r?o.currentWindow.clearText():141===r&&i++},we.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return ye(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},we.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},we.prototype.initService=function(e,t){var n,r,i=this;return(n="SERVICE"+e)in this.serviceEncodings&&(r=this.serviceEncodings[n]),this.services[e]=new be(e,r,i),this.services[e].init(this.getPts(t),function(t){i.flushDisplayed(t,i.services[e])}),this.services[e]},we.prototype.handleText=function(e,t,n){var r,i,s,o,a=n&&n.isExtended,l=n&&n.isMultiByte,c=this.current708Packet.data,u=a?4096:0,d=c[e],h=c[e+1],p=t.currentWindow;if(l?(i=[d,h],e++):i=[d],t.textDecoder_&&!a)r=t.textDecoder_.decode(new Uint8Array(i));else if(l){const e=i.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("");r=String.fromCharCode(parseInt(e,16))}else o=ge[s=u|d]||s,r=4096&s&&s===o?"":String.fromCharCode(o);return p.pendingNewLine&&!p.isEmpty()&&p.newLine(this.getPts(e)),p.pendingNewLine=!1,p.addText(r),e},we.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,r=n[e+1],i=n[e+2];return ye(r)&&ye(i)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},we.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},we.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,r=n[e],i=7&r;t.setCurrentWindow(i);var s=t.currentWindow;return r=n[++e],s.visible=(32&r)>>5,s.rowLock=(16&r)>>4,s.columnLock=(8&r)>>3,s.priority=7&r,r=n[++e],s.relativePositioning=(128&r)>>7,s.anchorVertical=127&r,r=n[++e],s.anchorHorizontal=r,r=n[++e],s.anchorPoint=(240&r)>>4,s.rowCount=15&r,r=n[++e],s.columnCount=63&r,r=n[++e],s.windowStyle=(56&r)>>3,s.penStyle=7&r,s.virtualRowCount=s.rowCount+1,e},we.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.winAttr;return r=n[++e],i.fillOpacity=(192&r)>>6,i.fillRed=(48&r)>>4,i.fillGreen=(12&r)>>2,i.fillBlue=3&r,r=n[++e],i.borderType=(192&r)>>6,i.borderRed=(48&r)>>4,i.borderGreen=(12&r)>>2,i.borderBlue=3&r,r=n[++e],i.borderType+=(128&r)>>5,i.wordWrap=(64&r)>>6,i.printDirection=(48&r)>>4,i.scrollDirection=(12&r)>>2,i.justify=3&r,r=n[++e],i.effectSpeed=(240&r)>>4,i.effectDirection=(12&r)>>2,i.displayEffect=3&r,e},we.prototype.flushDisplayed=function(e,t){for(var n=[],r=0;r<8;r++)t.windows[r].visible&&!t.windows[r].isEmpty()&&n.push(t.windows[r].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},we.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},we.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=1);return e},we.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=0);return e},we.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible^=1);return e},we.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].clearText();return e},we.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].reset();return e},we.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penAttr;return r=n[++e],i.textTag=(240&r)>>4,i.offset=(12&r)>>2,i.penSize=3&r,r=n[++e],i.italics=(128&r)>>7,i.underline=(64&r)>>6,i.edgeType=(56&r)>>3,i.fontStyle=7&r,e},we.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penColor;return r=n[++e],i.fgOpacity=(192&r)>>6,i.fgRed=(48&r)>>4,i.fgGreen=(12&r)>>2,i.fgBlue=3&r,r=n[++e],i.bgOpacity=(192&r)>>6,i.bgRed=(48&r)>>4,i.bgGreen=(12&r)>>2,i.bgBlue=3&r,r=n[++e],i.edgeRed=(48&r)>>4,i.edgeGreen=(12&r)>>2,i.edgeBlue=3&r,e},we.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,r=n[++e],i.row=15&r,r=n[++e],i.column=63&r,e},we.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var ke={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ce=function(e){return null===e?"":(e=ke[e]||e,String.fromCharCode(e))},Te=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Se=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},xe=function(e,t){xe.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,s;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Se();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Se();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Se()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))s=Ce((r=(3&r)<<8)|i),this[this.mode_](e.pts,s),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),s=Ce((r=(3&r)<<8)|i),this[this.mode_](e.pts,s),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~i||this.addFormatting(e.pts,["i"]),1&~i||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i)){const e=3&i;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(r,i)){var o=Te.indexOf(7968&t);if("rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&o>=0&&o<=14&&(this.clearFormatting(e.pts),this.row_=o),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),!(16&~t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(i)&&(14&~i||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(r)&&(0===i&&(i=null),s=Ce(r),s+=Ce(i),this[this.mode_](e.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};xe.prototype=new fe,xe.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},n=[];this.displayed_.forEach((e,r)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(CL){t(r)}e.text.length&&n.push({text:e.text,line:r+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(r)}),n.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:n,stream:this.name_})},xe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Se(),this.nonDisplayed_=Se(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},xe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},xe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},xe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},xe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},xe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},xe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},xe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},xe.prototype.isNormalChar=function(e){return e>=32&&e<=127},xe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Se(),this.displayed_=Se()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},xe.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},xe.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},xe.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_].text;n+=t,this.nonDisplayed_[this.row_].text=n},xe.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n},xe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},xe.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n};var Ee={CaptionStream:_e,Cea608Stream:xe,Cea708Stream:we},Ie={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ae=q,Pe="shared",Oe=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Le=function(e){var t,n;Le.prototype.init.call(this),this.type_=e||Pe,this.push=function(e){"metadata"!==e.type?this.type_!==Pe&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Oe(e.dts,n),e.pts=Oe(e.pts,n),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Le.prototype=new Ae;var De,Re={TimestampRolloverStream:Le,handleRollover:Oe},Me=(e,t,n)=>{if(!e)return-1;for(var r=n;r<e.length;r++)if(e[r]===t)return r;return-1},Ne=3,je=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},Ue=function(e,t,n){return decodeURIComponent(je(e,t,n))},$e=function(e,t,n){return unescape(je(e,t,n))},Be=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Fe={APIC:function(e){var t,n,r=1;e.data[0]===Ne&&((t=Me(e.data,0,r))<0||(e.mimeType=$e(e.data,r,t),r=t+1,e.pictureType=e.data[r],r++,(n=Me(e.data,0,r))<0||(e.description=Ue(e.data,r,n),r=n+1,"--\x3e"===e.mimeType?e.url=$e(e.data,r,e.data.length):e.pictureData=e.data.subarray(r,e.data.length))))},"T*":function(e){e.data[0]===Ne&&(e.value=Ue(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===Ne&&-1!==(t=Me(e.data,0,1))&&(e.description=Ue(e.data,1,t),e.value=Ue(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=$e(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===Ne&&-1!==(t=Me(e.data,0,1))&&(e.description=Ue(e.data,1,t),e.url=$e(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=$e(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},qe={parseId3Frames:function(e){var t,n=10,r=0,i=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){r=Be(e.subarray(6,10)),r+=10,64&e[5]&&(n+=4,n+=Be(e.subarray(10,14)),r-=Be(e.subarray(16,20)));do{if((t=Be(e.subarray(n+4,n+8)))<1)break;var s={id:String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),data:e.subarray(n+10,n+t+10)};s.key=s.id,Fe[s.id]?Fe[s.id](s):"T"===s.id[0]?Fe["T*"](s):"W"===s.id[0]&&Fe["W*"](s),i.push(s),n+=10,n+=t}while(n<r);return i}},parseSyncSafeInteger:Be,frameParsers:Fe},Ve=q,He=Ie,ze=qe;De=function(e){var t,n={descriptor:e&&e.descriptor},r=0,i=[],s=0;if(De.prototype.init.call(this),this.dispatchType=He.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,a,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(s=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(i.push(e),s+=e.data.byteLength,1===i.length&&(r=ze.parseSyncSafeInteger(e.data.subarray(6,10)),r+=10),!(s<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},l=0;l<r;)t.data.set(i[0].data.subarray(0,r-l),l),l+=i[0].data.byteLength,s-=i[0].data.byteLength,i.shift();n=10,64&t.data[5]&&(n+=4,n+=ze.parseSyncSafeInteger(t.data.subarray(10,14)),r-=ze.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((o=ze.parseSyncSafeInteger(t.data.subarray(n+4,n+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((a={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+o+10)}).key=a.id,ze.frameParsers[a.id]?ze.frameParsers[a.id](a):"T"===a.id[0]?ze.frameParsers["T*"](a):"W"===a.id[0]&&ze.frameParsers["W*"](a),"com.apple.streaming.transportStreamTimestamp"===a.owner){var c=a.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],a.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)}t.frames.push(a),n+=10,n+=o}while(n<r);this.trigger("data",t)}}},De.prototype=new Ve;var Ge,Ke,We,Xe=De,Ye=q,Ze=Ee,Je=Ie,Qe=Re.TimestampRolloverStream,et=188;(Ge=function(){var e=new Uint8Array(et),t=0;Ge.prototype.init.call(this),this.push=function(n){var r,i=0,s=et;for(t?((r=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),r.set(n,t),t=0):r=n;s<r.byteLength;)71!==r[i]||71!==r[s]?(i++,s++):(this.trigger("data",r.subarray(i,s)),i+=et,s+=et);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){t===et&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new Ye,(Ke=function(){var e,t,n,r;Ke.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,i=12+((15&e[10])<<8|e[11]);i<n;){var s=e[i],o=(31&e[i+1])<<8|e[i+2];s===Je.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=o:s===Je.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=o:s===Je.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][o]=s),i+=5+((15&e[i+3])<<8|e[i+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 3,065 bytes, line 702
702else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Je.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Je.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new Ye,Ke.STREAM_TYPES={h264:27,adts:15},We=function(){var e,t=this,n=!1,r={data:[],size:0},i={data:[],size:0},s={data:[],size:0},o=function(e,n,r){var i,s,o=new Uint8Array(e.size),a={type:n},l=0,c=0;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,l=0;l<e.data.length;l++)s=e.data[l],o.set(s.data,c),c+=s.data.byteLength;!function(e,t){var n;const r=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===r&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}(o,a),i="video"===n||a.packetLength<=e.size,(r||i)&&(e.size=0,e.data.length=0),i&&t.trigger("data",a)}};We.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Je.H264_STREAM_TYPE:e=r,t="video";break;case Je.ADTS_STREAM_TYPE:e=i,t="audio";break;case Je.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var r={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",r)}})[a.type]()},this.reset=function(){r.size=0,r.data.length=0,i.size=0,i.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(r,"video"),o(i,"audio"),o(s,"timed-metadata")},this.flush=function(){if(!n&&e){var r={type:"metadata",tracks:[]};null!==e.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",r)}n=!1,this.flushStreams_(),this.trigger("done")}},We.prototype=new Ye;var tt={PAT_PID:0,MP2T_PACKET_LENGTH:et,TransportPacketStream:Ge,TransportParseStream:Ke,ElementaryStream:We,TimestampRolloverStream:Qe,CaptionStream:Ze.CaptionStream,Cea608Stream:Ze.Cea608Stream,Cea708Stream:Ze.Cea708Stream,MetadataStream:Xe};for(var nt in Je)Je.hasOwnProperty(nt)&&(tt[nt]=Je[nt]);var rt,it=tt,st=q,ot=ae.ONE_SECOND_IN_TS,at=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];rt=function(e){var t,n=0;rt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
702ping bytes ${e} to ${t} in frame ${n} outside syncword`})},this.push=function(r){var i,s,o,a,l,c=0;if(e||(n=0),"audio"===r.type){var u;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+r.data.byteLength)).set(o),t.set(r.data,o.byteLength)):t=r.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),s=2*(1&~t[c+1]),i=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(a=1024*(1+(3&t[c+6])))*ot/at[(60&t[c+2])>>>2],t.byteLength-c<i)break;this.trigger("data",{pts:r.pts+n*l,dts:r.dts+n*l,sampleCount:a,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:at[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+s,c+i)}),n++,c+=i}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},rt.prototype=new st;var lt,ct,ut,dt=rt,ht=q,pt=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,s=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");s.set(e.subarray(i,i+o)),n=new DataView(s.buffer).getUint32(0),r=8*o,t-=o},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,e-=8*(i=Math.floor(e/8)),t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),s=n>>>32-i;return(r-=i)>0?n<<=i:t>0&&this.loadWord(),(i=e-i)>0?s<<i|this.readBits(i):s},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(n&2147483648>>>e)return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};ct=function(){var e,t,n=0;ct.prototype.init.call(this),this.push=function(r){var i;t?((i=new Uint8Array(t.byteLength+r.data.byteLength)).set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var s=t.byteLength;n<s-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<s;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<s);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},ct.prototype=new ht,ut={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},lt=function(){var e,t,n,r,i,s,o,a=new ct;lt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,a.push(e))},a.on("data",function(o){var a={trackId:t,pts:n,dts:r,data:o,nalUnitTypeCode:31&o[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=i(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=i(o.subarray(1)),a.config=s(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)}),a.on("done",function(){e.trigger("done")}),a.on("partialdone",function(){e.trigger("partialdone")}),a.on("reset",function(){e.trigger("reset")}),a.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},o=function(e,t){var n,r=8,i=8;for(n=0;n<e;n++)0!==i&&(i=(r+t.readExpGolomb()+256)%256),r=0===i?r:i},i=function(e){for(var t,n,r=e.byteLength,i=[],s=1;s<r-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(i.push(s+2),s+=2):s++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===i[0]&&(o++,i.shift()),n[s]=e[o];return n},s=function(e){var t,n,r,i,s,a,l,c,u,d,h,p,f=0,m=0,_=0,g=0,y=[1,1];if(n=(t=new pt(e)).readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ut[n]&&(3===(s=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==s?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),_=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:16*(c+1)-2*f-2*m,height:(2-d)*(u+1)*16-2*_-2*g,sarRatio:y}}},lt.prototype=new ht;var ft,mt={H264Stream:lt},_t=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],gt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},yt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1
vendor: 60,144 bytes, line 702
702]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=gt(e,t),yt(e,t))},vt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},bt=function(e,t,n){return unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(e,t,n))},wt={isLikelyAacData:function(e){var t=yt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:gt,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return _t[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=vt(e.subarray(10,14)));do{if((n=vt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var i=0;i<r.byteLength;i++)if(0===r[i]){if("com.apple.streaming.transportStreamTimestamp"===bt(r,0,i)){var s=r.subarray(i+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return o*=4,o+=3&s[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}},kt=wt;(ft=function(){var e=new Uint8Array,t=0;ft.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,s,o,a=0,l=0;for(e.length?(o=e.length,(e=new Uint8Array(n.byteLength+o)).set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(a=kt.parseAdtsSize(e,l))>e.length)break;s={type:"audio",data:e.subarray(l,l+a),pts:t,dts:t},this.trigger("data",s),l+=a}else{if(e.length-l<10)break;if(l+(a=kt.parseId3TagSize(e,l))>e.length)break;i={type:"timed-metadata",data:e.subarray(l,l+a)},this.trigger("data",i),l+=a}r=e.length-l,e=r>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new q;var Ct,Tt,St,xt,Et=q,It=ee,At=ne,Pt=ue,Ot=he,Lt=it,Dt=ae,Rt=dt,Mt=mt.H264Stream,Nt=ft,jt=wt.isLikelyAacData,Ut=ae.ONE_SECOND_IN_TS,$t=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Bt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ft=function(e,t){t.stream=e,this.trigger("log",t)},qt=function(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];"headOfPipeline"!==i&&t[i].on&&t[i].on("log",Ft.bind(e,i))}},Vt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Ht=function(e,t,n,r,i,s){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(r-t),pts:e+(i-n)},prependedContentDuration:s,baseMediaDecodeTime:e}};(Tt=function(e,t){var n,r=[],i=0,s=0,o=1/0;n=(t=t||{}).firstSequenceNumber||0,Tt.prototype.init.call(this),this.push=function(t){Ot.collectDtsInfo(e,t),e&&$t.forEach(function(n){e[n]=t[n]}),r.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){s=e},this.flush=function(){var a,l,c,u,d,h,p;0!==r.length?(a=Pt.trimAdtsFramesByEarliestDts(r,e,i),e.baseMediaDecodeTime=Ot.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=Pt.prefixWithSilence(e,a,s,o),e.samples=Pt.generateSampleTable(a),c=It.mdat(Pt.concatenateFrameData(a)),r=[],l=It.moof(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),Ot.clearDtsInfo(e),d=Math.ceil(1024*Ut/e.samplerate),a.length&&(h=a.length*d,this.trigger("segmentTimingInfo",Ht(Dt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+h,a[0].pts+h,p||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Ot.clearDtsInfo(e),r=[],this.trigger("reset")}}).prototype=new Et,Ct=function(e,t){var n,r,i,s=[],o=[];n=(t=t||{}).firstSequenceNumber||0,Ct.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ot.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.config,e.sps=[t.data],Bt.forEach(function(t){e[t]=r[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),s.push(t)},this.flush=function(){for(var r,i,a,l,c,u,d,h,p=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(r=At.groupNalsIntoFrames(s),(a=At.groupFramesIntoGops(r))[0][0].keyFrame||((i=this.getGopForFusion_(s[0],e))?(p=i.duration,a.unshift(i),a.byteLength+=i.byteLength,a.nalCount+=i.nalCount,a.pts=i.pts,a.dts=i.dts,a.duration+=i.duration):a=At.extendFirstKeyFrame(a)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(a):this.alignGopsAtStart_(a)))return this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Ot.clearDtsInfo(e),a=f}Ot.collectDtsInfo(e,a),e.samples=At.generateSampleTable(a),c=It.mdat(At.concatenateNalData(a)),e.baseMediaDecodeTime=Ot.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",a.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=a[0],h=a[a.length-1],this.trigger("segmentTimingInfo",Ht(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:a[0].pts,end:a[a.length-1].pts+a[a.length-1].duration}),this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=It.moof(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){Ot.clearDtsInfo(e),r=void 0,i=void 0},this.getGopForFusion_=function(t){var n,r,i,s,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)i=(s=this.gopCache_[o]).gop,e.pps&&Vt(e.pps[0],s.pps[0])&&e.sps&&Vt(e.sps[0],s.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||a>n)&&(r=s,a=n));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,s,a,l,c;for(s=e.byteLength,a=e.nalCount,l=e.duration,t=n=0;t<o.length&&n<e.length&&(r=o[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,s-=i.byteLength,a-=i.nalCount,l-=i.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=s,c.duration=l,c.nalCount=a,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,r,i,s,a,l;for(t=o.length-1,n=e.length-1,s=null,a=!1;t>=0&&n>=0;){if(r=o[t],i=e[n],r.pts===i.pts){a=!0;break}r.pts>i.pts?t--:(t===o.length-1&&(s=n),n--)}if(!a&&null===s)return null;if(0===(l=a?n:s))return e;var c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){o=e}},Ct.prototype=new Et,(xt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,xt.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new Et,xt.prototype.flush=function(e){var t,n,r,i,s=0,o={captions:[],captionStreams:{},metadata:[],info:{}},a=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(a=this.videoTrack.timelineStartInfo.pts,Bt.forEach(function(e){o.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(a=this.audioTrack.timelineStartInfo.pts,$t.forEach(function(e){o.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,r=It.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(r.byteLength),o.initSegment.set(r),o.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)o.data.set(this.pendingBoxes[i],s),s+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=Dt.metadataTsToSeconds(t.startPts,a,this.keepOriginalTimestamps),t.endTime=Dt.metadataTsToSeconds(t.endPts,a,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(n=this.pendingMetadata[i]).cueTime=Dt.metadataTsToSeconds(n.pts,a,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),i=0;i<o.captions.length;i++)t=o.captions[i],this.trigger("caption",t);for(i=0;i<o.metadata.length;i++)n=o.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},xt.prototype.setRemux=function(e){this.remuxTracks=e},St=function(e){var t,n,r=this,i=!0;St.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new Lt.MetadataStream,i.aacStream=new Nt,i.audioTimestampRolloverStream=new Lt.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new Lt.TimestampRolloverStream("timed-metadata"),i.adtsStream=new Rt,i.coalesceStream=new xt(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(s){"timed-metadata"!==s.type&&"audio"!==s.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new Tt(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,i)},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new Lt.MetadataStream,i.packetStream=new Lt.TransportPacketStream,i.parseStream=new Lt.TransportParseStream,i.elementaryStream=new Lt.ElementaryStream,i.timestampRolloverStream=new Lt.TimestampRolloverStream,i.adtsStream=new Rt,i.h264Stream=new Mt,i.captionStream=new Lt.CaptionStream(e),i.coalesceStream=new xt(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)t||"video"!==s.tracks[o].type?n||"audio"!==s.tracks[o].type||((n=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new Ct(t,e),i.videoSegmentStream.on("log",r.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,i.audioSegmentStream.setEarliestDts(t.dts-r.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new Tt(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,i)},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Ot.clearDtsInfo(n),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Ot.clearDtsInfo(t),i.captionStream.reset()),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(i){var t=jt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},St.prototype=new Et;var zt,Gt,Kt,Wt,Xt,Yt,Zt,Jt={Transmuxer:St},Qt=function(e){return e>>>0},en=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tn=Qt,nn=en,rn=function(e,t){var n,r,i,s,o,a=[];if(!t.length)return null;for(n=0;n<e.byteLength;)r=tn(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),i=nn(e.subarray(n+4,n+8)),s=r>1?n+r:e.byteLength,i===t[0]&&(1===t.length?a.push(e.subarray(n+8,s)):(o=rn(e.subarray(n+8,s),t.slice(1))).length&&(a=a.concat(o))),n=s;return a},sn=rn,on=Qt,an=H.getUint64,ln=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=an(e.subarray(4)):t.baseMediaDecodeTime=on(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},cn=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],s=2&r.flags[2],o=8&r.flags[2],a=16&r.flags[2],l=32&r.flags[2],c=65536&r.flags[0],u=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),s&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(r.defaultSampleDuration=n.getUint32(t),t+=4),a&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),c&&(r.durationIsEmpty=!0),!i&&u&&(r.baseDataOffsetIsMoof=!0),r},un=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},dn=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],s=4&n.flags[2],o=1&n.flags[1],a=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],u=r.getUint32(4),d=8;for(i&&(n.dataOffset=r.getInt32(d),d+=4),s&&u&&(t={flags:un(e.subarray(d,d+4))},d+=4,o&&(t.duration=r.getUint32(d),d+=4),a&&(t.size=r.getUint32(d),d+=4),c&&(1===n.version?t.compositionTimeOffset=r.getInt32(d):t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t),u--);u--;)t={},o&&(t.duration=r.getUint32(d),d+=4),a&&(t.size=r.getUint32(d),d+=4),l&&(t.flags=un(e.subarray(d,d+4)),d+=4),c&&(1===n.version?t.compositionTimeOffset=r.getInt32(d):t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t);return n},hn={tfdt:ln,trun:dn},pn={parseTfdt:hn.tfdt,parseTrun:hn.trun},fn=function(e){for(var t=0,n=String.fromCharCode(e[t]),r="";"\0"!==n;)r+=n,t++,n=String.fromCharCode(e[t]);return r+=n},mn=H.getUint64,_n=function(e,t){var n="\0"!==t.scheme_id_uri,r=0===e&&gn(t.presentation_time_delta)&&n,i=1===e&&gn(t.presentation_time)&&n;return!(e>1)&&r||i},gn=function(e){return void 0!==e||null!==e},yn="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},vn=Qt,bn=function(e){return("00"+e.toString(16)).slice(-2)},wn=sn,kn=en,Cn={parseEmsgBox:function(e){var t,n,r,i,s,o,a,l=4,c=e[0];if(0===c)l+=(t=fn(e.subarray(l))).length,l+=(n=fn(e.subarray(l))).length,r=(u=new DataView(e.buffer)).getUint32(l),l+=4,s=u.getUint32(l),l+=4,o=u.getUint32(l),l+=4,a=u.getUint32(l),l+=4;else if(1===c){var u;r=(u=new DataView(e.buffer)).getUint32(l),l+=4,i=mn(e.subarray(l)),l+=8,o=u.getUint32(l),l+=4,a=u.getUint32(l),l+=4,l+=(t=fn(e.subarray(l))).length,l+=(n=fn(e.subarray(l))).length}var d={scheme_id_uri:t,value:n,timescale:r||1,presentation_time:i,presentation_time_delta:s,event_duration:o,id:a,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return _n(c,d)?d:void 0},scaleTime:function(e,t,n,r){return e||0===e?e/t:r+n/t}},Tn=cn,Sn=dn,xn=ln,En=H.getUint64,In=yn,An=qe.parseId3Frames;zt=function(e){return wn(e,["moov","trak"]).reduce(function(e,t){var n,r,i,s,o;return(n=wn(t,["tkhd"])[0])?(r=n[0],s=vn(n[i=0===r?12:20]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]),(o=wn(t,["mdia","mdhd"])[0])?(i=0===(r=o[0])?12:20,e[s]=vn(o[i]<<24|o[i+1]<<16|o[i+2]<<8|o[i+3]),e):null):null},{})},Gt=function(e,t){var n=wn(t,["moof","traf"]).reduce(function(t,n){var r,i=wn(n,["tfhd"])[0],s=vn(i[4]<<24|i[5]<<16|i[6]<<8|i[7]),o=e[s]||9e4,a=wn(n,["tfdt"])[0],l=new DataView(a.buffer,a.byteOffset,a.byteLength);let c;return"bigint"==typeof(r=1===a[0]?En(a.subarray(4,12)):l.getUint32(4))?c=r/In.BigInt(o):"number"!=typeof r||isNaN(r)||(c=r/o),c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),c<t&&(t=c),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},Kt=function(e,t){var n,r=wn(t,["moof","traf"]),i=0,s=0;if(r&&r.length){var o=wn(r[0],["tfhd"])[0],a=wn(r[0],["trun"])[0],l=wn(r[0],["tfdt"])[0];if(o)n=Tn(o).trackId;if(l)i=xn(l).baseMediaDecodeTime;if(a){var c=Sn(a);c.samples&&c.samples.length&&(s=c.samples[0].compositionTimeOffset||0)}}var u=e[n]||9e4;"bigint"==typeof i&&(s=In.BigInt(s),u=In.BigInt(u));var d=(i+s)/u;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d},Wt=function(e){var t=wn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=wn(e,["mdia","hdlr"]),r=wn(e,["tkhd"]);t.forEach(function(e,t){var i,s,o=kn(e.subarray(8,12)),a=r[t];"vide"===o&&(s=0===(i=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0)?i.getUint32(12):i.getUint32(20),n.push(s))})}),n},Xt=function(e){var t=wn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,r,i={},s=wn(e,["tkhd"])[0];s&&(r=(t=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),i.id=0===r?t.getUint32(12):t.getUint32(20));var o=wn(e,["mdia","hdlr"])[0];if(o){var a=kn(o.subarray(8,12));i.type="vide"===a?"video":"soun"===a?"audio":a}var l=wn(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);i.codec=kn(c.subarray(4,8));var u,d=wn(c,[i.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(i.codec)?(u=d.subarray(78),"avcC"===kn(u.subarray(4,8))&&u.length>11?(i.codec+=".",i.codec+=bn(u[9]),i.codec+=bn(u[10]),i.codec+=bn(u[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)?(u=d.subarray(28),"esds"===kn(u.subarray(4,8))&&u.length>20&&0!==u[19]?(i.codec+="."+bn(u[19]),i.codec+="."+bn(u[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase())}var h=wn(e,["mdia","mdhd"])[0];h&&(i.timescale=Yt(h)),n.push(i)}),n},Zt=function(e,t=0){return wn(e,["emsg"]).map(e=>{var n=Cn.parseEmsgBox(new Uint8Array(e)),r=An(n.message_data);return{cueTime:Cn.scaleTime(n.presentation_time,n.timescale,n.presentation_time_delta,t),duration:Cn.scaleTime(n.event_duration,n.timescale),frames:r}})};var Pn={findBox:wn,parseType:kn,timescale:zt,startTime:Gt,compositionStartTime:Kt,videoTrackIds:Wt,tracks:Xt,getTimescaleFromMediaHeader:Yt=function(e){var t=0===e[0]?12:20;return vn(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},getEmsgID3:Zt};const{parseTrun:On}=pn,{findBox:Ln}=Pn;var Dn=yn,Rn={getMdatTrafPairs:function(e){var t=Ln(e,["moof","traf"]),n=Ln(e,["mdat"]),r=[];return n.forEach(function(e,n){var i=t[n];r.push({mdat:e,traf:i})}),r},parseSamples:function(e,t,n){var r=t,i=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,o=n.trackId,a=[];return e.forEach(function(e){var t=On(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=s),e.trackId=o,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof r?(e.pts=r+Dn.BigInt(e.compositionTimeOffset),r+=Dn.BigInt(e.duration)):(e.pts=r+e.compositionTimeOffset,r+=e.duration)}),a=a.concat(t)}),a}},Mn=pe.discardEmulationPreventionBytes,Nn=Ee.CaptionStream,jn=sn,Un=ln,$n=cn,{getMdatTrafPairs:Bn,parseSamples:Fn}=Rn,qn=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},Vn=function(e,t){var n={};return Bn(e).forEach(function(e){var r,i=e.mdat,s=e.traf,o=jn(s,["tfhd"]),a=$n(o[0]),l=a.trackId,c=jn(s,["tfdt"]),u=c.length>0?Un(c[0]).baseMediaDecodeTime:0,d=jn(s,["trun"]);t===l&&d.length>0&&(r=function(e,t,n){var r,i,s,o,a=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(i=0;i+4<e.length;i+=s)if(s=a.getUint32(i),i+=4,!(s<=0))switch(31&e[i]){case 6:var c=e.subarray(i+1,i+1+s),u=qn(i,t);if(r={nalUnitType:"sei_rbsp",size:s,data:c,escapedRBSP:Mn(c),trackId:n},u)r.pts=u.pts,r.dts=u.dts,o=u;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+i+" for trackId "+n+". See mux.js#223."});break}r.pts=o.pts,r.dts=o.dts}l.seiNals.push(r)}return l}(i,Fn(d,u,a),l),n[l]||(n[l]={seiNals:[],logs:[]}),n[l].seiNals=n[l].seiNals.concat(r.seiNals),n[l].logs=n[l].logs.concat(r.logs))}),n},Hn=function(){var e,t,n,r,i,s,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new Nn,o=!0,s=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,i.captions.push(e),i.captionStreams[e.stream]=!0}),e.on("log",function(e){i.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,s,o){var a;if(!this.isInitialized())return null;if(!s||!o)return null;if(this.isNewInit(s,o))n=s[0],r=o[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,s,o)}return a=function(e,t,n){if(null===t)return null;var r=Vn(e,t)[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}}(e,n,r),a&&a.logs&&(i.logs=i.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),i):i.logs.length?{logs:i.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;s?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){i.captions=[],i.captionStreams={},i.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};const{parseTfdt:zn}=pn,Gn=sn,{getTimescaleFromMediaHeader:Kn}=Pn,{parseSamples:Wn,getMdatTrafPairs:Xn}=Rn;var Yn=function(){let e=9e4;this.init=function(t){const n=Gn(t,["moov","trak","mdia","mdhd"])[0];n&&(e=Kn(n))},this.parseSegment=function(t){const n=[],r=Xn(t);let i=0;return r.forEach(function(t){const r=t.mdat,s=t.traf,o=Gn(s,["tfdt"])[0],a=Gn(s,["tfhd"])[0],l=Gn(s,["trun"]);if(o){const e=zn(o);i=e.baseMediaDecodeTime}if(l.length&&a){const t=Wn(l,i,a);let s=0;t.forEach(function(t){const i=new TextDecoder("utf-8"),o=r.slice(s,s+t.size);if(Gn(o,["vtte"])[0])return void(s+=t.size);Gn(o,["vttc"]).forEach(function(r){const s=Gn(r,["payl"])[0],o=Gn(r,["sttg"])[0],a=t.pts/e,l=(t.pts+t.duration)/e;let c,u;if(s)try{c=i.decode(s)}catch(CL){console.error(CL)}if(o)try{u=i.decode(o)}catch(CL){console.error(CL)}t.duration&&c&&n.push({cueText:c,start:a,end:l,settings:u})}),s+=t.size})}}),n}},Zn=Ie,Jn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},Qn=function(e){return!!(64&e[1])},er=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},tr=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},nr={parseType:function(e,t){var n=Jn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=Qn(e),n=4+er(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Qn(e),r=4+er(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var o=r+s;t[(31&e[o+1])<<8|e[o+2]]=e[o],s+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:Qn,parsePesType:function(e,t){switch(t[Jn(e)]){case Zn.H264_STREAM_TYPE:return"video";case Zn.ADTS_STREAM_TYPE:return"audio";case Zn.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Qn(e))return null;var t=4+er(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+er(e),n=e.subarray(t),r=0,i=0,s=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===tr(31&n[i+3])&&(s=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===tr(31&n[i+3])&&(s=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===tr(31&n[i+3])&&(s=!0),s}},rr=Ie,ir=Re.handleRollover,sr={};sr.ts=nr,sr.aac=wt;var or=ae.ONE_SECOND_IN_TS,ar=188,lr=71,cr=function(e,t,n){for(var r,i,s,o,a=0,l=ar,c=!1;l<=e.byteLength;)if(e[a]!==lr||e[l]!==lr&&l!==e.byteLength)a++,l++;else{if(r=e.subarray(a,l),"pes"===sr.ts.parseType(r,t.pid))i=sr.ts.parsePesType(r,t.table),s=sr.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&s&&(o=sr.ts.parsePesTime(r))&&(o.type="audio",n.audio.push(o),c=!0);if(c)break;a+=ar,l+=ar}for(a=(l=e.byteLength)-ar,c=!1;a>=0;)if(e[a]!==lr||e[l]!==lr&&l!==e.byteLength)a--,l--;else{if(r=e.subarray(a,l),"pes"===sr.ts.parseType(r,t.pid))i=sr.ts.parsePesType(r,t.table),s=sr.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&s&&(o=sr.ts.parsePesTime(r))&&(o.type="audio",n.audio.push(o),c=!0);if(c)break;a-=ar,l-=ar}},ur=function(e,t,n){for(var r,i,s,o,a,l,c,u=0,d=ar,h=!1,p={data:[],size:0};d<e.byteLength;)if(e[u]!==lr||e[d]!==lr)u++,d++;else{if(r=e.subarray(u,d),"pes"===sr.ts.parseType(r,t.pid))if(i=sr.ts.parsePesType(r,t.table),s=sr.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(s&&!h&&(o=sr.ts.parsePesTime(r))&&(o.type="video",n.video.push(o),h=!0),!n.firstKeyFrame)){if(s&&0!==p.size){for(a=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),a.set(c,l),l+=c.byteLength;if(sr.ts.videoPacketContainsKeyFrame(a)){var f=sr.ts.parsePesTime(a);f&&(n.firstKeyFrame=f,n.firstKeyFrame.type="video")}p.size=0}p.data.push(r),p.size+=r.byteLength}if(h&&n.firstKeyFrame)break;u+=ar,d+=ar}for(u=(d=e.byteLength)-ar,h=!1;u>=0;)if(e[u]!==lr||e[d]!==lr)u--,d--;else{if(r=e.subarray(u,d),"pes"===sr.ts.parseType(r,t.pid))i=sr.ts.parsePesType(r,t.table),s=sr.ts.parsePayloadUnitStartIndicator(r),"video"===i&&s&&(o=sr.ts.parsePesTime(r))&&(o.type="video",n.video.push(o),h=!0);if(h)break;u-=ar,d-=ar}},dr=function(e){var t={pid:null,table:null},n={};for(var r in function(e,t){for(var n,r=0,i=ar;i<e.byteLength;)if(e[r]!==lr||e[i]!==lr)r++,i++;else{switch(n=e.subarray(r,i),sr.ts.parseType(n,t.pid)){case"pat":t.pid=sr.ts.parsePat(n);break;case"pmt":var s=sr.ts.parsePmt(n);t.table=t.table||{},Object.keys(s).forEach(function(e){t.table[e]=s[e]})}r+=ar,i+=ar}}(e,t),t.table){if(t.table.hasOwnProperty(r))switch(t.table[r]){case rr.H264_STREAM_TYPE:n.video=[],ur(e,t,n),0===n.video.length&&delete n.video;break;case rr.ADTS_STREAM_TYPE:n.audio=[],cr(e,t,n),0===n.audio.length&&delete n.audio}}return n},hr=function(e,t){var n;return n=sr.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,o=0,a=0;e.length-a>=3;){switch(sr.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){n=!0;break}if((o=sr.aac.parseId3TagSize(e,a))>e.length){n=!0;break}null===s&&(t=e.subarray(a,a+o),s=sr.aac.parseAacTimestamp(t)),a+=o;break;case"audio":if(e.length-a<7){n=!0;break}if((o=sr.aac.parseAdtsSize(e,a))>e.length){n=!0;break}null===i&&(t=e.subarray(a,a+o),i=sr.aac.parseSampleRate(t)),r++,a+=o;break;default:a++}if(n)return null}if(null===i||null===s)return null;var l=or/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):dr(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=ir(e.dts,n),e.pts=ir(e.pts,n),e.dtsTime=e.dts/or,e.ptsTime=e.pts/or})}if(e.video&&e.video.length){var r=t;if((void 0===r||isNaN(r))&&(r=e.video[0].dts),e.video.forEach(function(e){e.dts=ir(e.dts,r),e.pts=ir(e.pts,r),e.dtsTime=e.dts/or,e.ptsTime=e.pts/or}),e.firstKeyFrame){var i=e.firstKeyFrame;i.dts=ir(i.dts,r),i.pts=ir(i.pts,r),i.dtsTime=i.dts/or,i.ptsTime=i.pts/or}}}(n,t),n):null};class pr{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Jt.Transmuxer(this.options),e=this.self,(t=this.transmuxer).on("data",function(t){const n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};const r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){const n={start:{decode:ae.videoTsToSeconds(t.start.dts),presentation:ae.videoTsToSeconds(t.start.pts)},end:{decode:ae.videoTsToSeconds(t.end.dts),presentation:ae.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ae.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ae.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){const n={start:{decode:ae.videoTsToSeconds(t.start.dts),presentation:ae.videoTsToSeconds(t.start.pts)},end:{decode:ae.videoTsToSeconds(t.end.dts),presentation:ae.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ae.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ae.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ae.videoTsToSeconds(t.start),end:ae.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ae.videoTsToSeconds(t.start),end:ae.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}pushMp4Captions(e){this.captionParser||(this.captionParser=new Hn,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])}initMp4WebVttParser(e){this.webVttParser||(this.webVttParser=new Yn);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}getMp4WebVttText(e){this.webVttParser||(this.webVttParser=new Yn);const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.webVttParser.parseSegment(t);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:n||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const n=Pn.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=Pn.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const n=Pn.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const n="number"!=typeof t||isNaN(t)?void 0:t*ae.ONE_SECOND_IN_TS,r=hr(e,n);let i=null;r&&(i={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1},i.hasVideo&&(i.videoStart=r.video[0].ptsTime),i.hasAudio&&(i.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:i,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ae.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(ae.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new pr(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new pr(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}));var fo=co(po);const mo=e=>{const{transmuxer:t,bytes:n,audioAppendStart:r,gopsToAlignWith:i,remux:s,onData:o,onTrackInfo:a,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:u,onAudioSegmentTimingInfo:d,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:_,isEndOfTimeline:g,segment:y,triggerSegmentEventFn:v}=e,b={buffer:[]};let w=g;if(t.onmessage=n=>{t.currentTransmux===e&&("data"===n.data.action&&((e,t,n)=>{const{type:r,initSegment:i,captions:s,captionStreams:o,metadata:a,videoFrameDtsTime:l,videoFramePtsTime:c}=e.data.segment;t.buffer.push({captions:s,captionStreams:o,metadata:a});const u=e.data.segment.boxes||{data:e.data.segment.data},d={type:r,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(i.data,i.byteOffset,i.byteLength)};void 0!==l&&(d.videoFrameDtsTime=l),void 0!==c&&(d.videoFramePtsTime=c),n(d)})(n,b,o),"trackinfo"===n.data.action&&a(n.data.trackInfo),"gopInfo"===n.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(n,b),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&u(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(w=!1,m()),"log"===n.data.action&&_(n.data.log),"transmuxed"===n.data.type&&(w||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:b,callback:f}),_o(t))))},t.onerror=()=>{const e={message:"Received an error message from the transmuxer worker",metadata:{errorType:Ri.Error.StreamingFailedToTransmuxSegment,segmentInfo:sa({segment:y})}};f(null,e)},r&&t.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(i)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),void 0!==s&&t.postMessage({action:"setRemux",remux:s}),n.byteLength){const e=n instanceof ArrayBuffer?n:n.buffer,r=n instanceof ArrayBuffer?0:n.byteOffset;v({type:"segmenttransmuxingstart",segment:y}),t.postMessage({action:"push",data:e,byteOffset:r,byteLength:n.byteLength},[e])}g&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},_o=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():mo(e.currentTransmux))},go=(e,t)=>{e.postMessage({action:t}),_o(e)},yo=(e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void go(t,e);t.transmuxQueue.push(go.bind(null,t,e))},vo=e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void mo(e);e.transmuxer.transmuxQueue.push(e)};var bo=e=>{yo("reset",e)},wo=e=>{const t=new fo;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t};const ko=function(e){const t=e.transmuxer,n=e.endAction||e.action,r=e.callback,i=(0,s.default)({},e,{endAction:null,transmuxer:null,callback:null}),o=i=>{i.data.action===n&&(t.removeEventListener("message",o),i.data.data&&(i.data.data=new Uint8Array(i.data.data,e.byteOffset||0,e.byteLength||i.data.data.byteLength),e.data&&(e.data=i.data.data)),r(i.data))};if(t.addEventListener("message",o),e.data){const n=e.data instanceof ArrayBuffer;i.byteOffset=n?0:e.data.byteOffset,i.byteLength=e.data.byteLength;const r=[n?e.data:e.data.buffer];t.postMessage(i,r)}else t.postMessage(i)},Co=2,To=-101,So=-102,xo="wvtt",Eo=e=>{e.forEach(e=>{e.abort()})},Io=(e,t)=>{const{requestType:n}=t,r=Ts({requestType:n,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:To,xhr:t,metadata:r}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:So,xhr:t,metadata:r}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Co,xhr:t,metadata:r}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Co,xhr:t,metadata:r}:null},Ao=(e,t,n,r)=>(i,s)=>{const o=s.response,a=Io(i,s);if(a)return n(a,e);if(16!==o.byteLength)return n({status:s.status,message:"Invalid HLS key at URL: "+s.uri,code:Co,xhr:s},e);const l=new DataView(o),c=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=c;const u={uri:s.uri};return r({type:"segmentkeyloadcomplete",segment:e,keyInfo:u}),n(null,e)},Po=(e,t)=>{const n=(0,f.detectContainerForBytes)(e.map.bytes);if("mp4"!==n){const r=e.map.resolvedUri||e.map.uri,i=n||"unknown";return t({internal:!0,message:`Found unsupported ${i} container for initialization segment at URL: ${r}`,code:Co,metadata:{mediaType:i}})}ko({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:n,data:r})=>(e.map.bytes=r,n.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale),"text"===t.type&&((e,t)=>{t===xo&&e.transmuxer.postMessage({action:"initMp4WebVttParser",data:e.map.bytes})})(e,t.codec))}),t(null))})},Oo=({segment:e,finishProcessingFn:t,responseType:n,triggerSegmentEventFn:r})=>(i,s)=>{const o=Io(i,s);if(o)return t(o,e);r({type:"segmentloaded",segment:e});const a="arraybuffer"!==n&&s.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer})(s.responseText.substring(e.lastReachedChar||0)):s.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(s),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),t(null,e)},Lo=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{const f=e.map&&e.map.tracks||{},m=Boolean(f.audio&&f.video);let _=r.bind(null,e,"audio","start");const g=r.bind(null,e,"audio","end");let y=r.bind(null,e,"video","start");const v=r.bind(null,e,"video","end");ko({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:r=>{e.bytes=t=r.data;const f=r.result;f&&(n(e,{hasAudio:f.hasAudio,hasVideo:f.hasVideo,isMuxed:m}),n=null),vo({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:m,onData:t=>{t.type="combined"===t.type?"video":t.type,u(e,t)},onTrackInfo:t=>{n&&(m&&(t.isMuxed=!0),n(e,t))},onAudioTimingInfo:e=>{_&&void 0!==e.start&&(_(e.start),_=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:e=>{y&&void 0!==e.start&&(y(e.start),y=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:t=>{const n={pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:n}),i(t)},onAudioSegmentTimingInfo:t=>{const n={pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}};p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:n}),s(t)},onId3:(t,n)=>{o(e,t,n)},onCaptions:t=>{a(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:h,onDone:(t,n)=>{d&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),d(n,e,t))},segment:e,triggerSegmentEventFn:p})}})},Do=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let m=new Uint8Array(t);if((0,f.isLikelyFmp4MediaSegment)(m)){e.isFmp4=!0;const{tracks:i}=e.map;if(i.text&&(!i.audio||!i.video))return u(e,{data:m,type:"text"}),void((e,t,n)=>{t===xo&&ko({action:"getMp4WebVttText",data:e.bytes,transmuxer:e.transmuxer,callback:({data:t,mp4VttCues:r})=>{e.bytes=t,n(null,e,{mp4VttCues:r})}})})(e,i.text.codec,d);const s={isFmp4:!0,hasVideo:!!i.video,hasAudio:!!i.audio};i.audio&&i.audio.codec&&"enca"!==i.audio.codec&&(s.audioCodec=i.audio.codec),i.video&&i.video.codec&&"encv"!==i.video.codec&&(s.videoCodec=i.video.codec),i.video&&i.audio&&(s.isMuxed=!0),n(e,s);const l=(t,n)=>{u(e,{data:m,type:s.hasAudio&&!s.isMuxed?"audio":"video"}),n&&n.length&&o(e,n),t&&t.length&&a(e,t),d(null,e,{})};return void ko({action:"probeMp4StartTime",timescales:e.map.timescales,data:m,transmuxer:e.transmuxer,callback:({data:n,startTime:o})=>{t=n.buffer,e.bytes=m=n,s.hasAudio&&!s.isMuxed&&r(e,"audio","start",o),s.hasVideo&&r(e,"video","start",o),ko({action:"probeEmsgID3",data:m,transmuxer:e.transmuxer,offset:o,callback:({emsgData:n,id3Frames:r})=>{t=n.buffer,e.bytes=m=n,i.video&&n.byteLength&&e.transmuxer?ko({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:m,timescales:e.map.timescales,trackIds:[i.video.id],callback:n=>{t=n.data.buffer,e.bytes=m=n.data,n.logs.forEach(function(e){h(qi(e,{stream:"mp4CaptionParser"}))}),l(n.captions,r)}}):l(void 0,r)}})}})}if(e.transmuxer){if(void 0===e.container&&(e.container=(0,f.detectContainerForBytes)(m)),"ts"!==e.container&&"aac"!==e.container)return n(e,{hasAudio:!1,hasVideo:!1}),void d(null,e,{});Lo({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})}else d(null,e,{})},Ro=function({id:e,key:t,encryptedBytes:n,decryptionWorker:r,segment:i,doneFn:s},o){const a=t=>{if(t.data.source===e){r.removeEventListener("message",a);const e=t.data.decrypted;o(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let l;r.onerror=()=>{const e="An error occurred in the decryption worker",t=sa({segment:i}),n={message:e,metadata:{error:new Error(e),errorType:Ri.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:i.key.resolvedUri||i.map.key.resolvedUri}}};s(n,i)},r.addEventListener("message",a),l=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),r.postMessage(Gs({source:e,encrypted:n,key:l,iv:t.iv}),[n.buffer,l.buffer])},Mo=({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=0,m=!1;return(_,g)=>{if(!m){if(_)return m=!0,Eo(e),d(_,g);if(f+=1,f===e.length){const f=function(){if(g.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),Ro({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:d},e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),Do({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})})})({decryptionWorker:t,segment:g,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p});Do({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return p({type:"segmentdecryptionstart",segment:g}),Ro({decryptionWorker:t,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key,segment:g,doneFn:d},t=>{g.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:g}),Po(g,t=>{if(t)return Eo(e),d(t,g);f()})});f()}}}},No=({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u})=>n=>{if(!n.target.aborted)return e.stats=qi(e.stats,(e=>{const t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n})(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)},jo=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:r,abortFn:i,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:_,triggerSegmentEventFn:g})=>{const y=[],v=Mo({activeXhrs:y,decryptionWorker:n,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:_,triggerSegmentEventFn:g});if(r.key&&!r.key.bytes){const n=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&n.push(r.map.key);const i=qi(t,{uri:r.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),s=Ao(r,n,v,g);g({type:"segmentkeyloadstart",segment:r,keyInfo:{uri:r.key.resolvedUri}});const o=e(i,s);y.push(o)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){const n=qi(t,{uri:r.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),i=Ao(r,[r.map.key],v,g);g({type:"segmentkeyloadstart",segment:r,keyInfo:{uri:r.map.key.resolvedUri}});const s=e(n,i);y.push(s)}const n=qi(t,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:qs(r.map),requestType:"segment-media-initialization"}),i=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:n})=>(r,i)=>{const s=Io(r,i);if(s)return t(s,e);const o=new Uint8Array(i.response);if(n({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=o,t(null,e);e.map.bytes=o,Po(e,function(n){if(n)return n.xhr=i,n.status=i.status,t(n,e);t(null,e)})})({segment:r,finishProcessingFn:v,triggerSegmentEventFn:g});g({type:"segmentloadstart",segment:r});const s=e(n,i);y.push(s)}const b=qi(t,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:qs(r),requestType:"segment"}),w=Oo({segment:r,finishProcessingFn:v,responseType:b.responseType,triggerSegmentEventFn:g});g({type:"segmentloadstart",segment:r});const k=e(b,w);k.addEventListener("progress",No({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),y.push(k);const C={};return y.forEach(e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:C,abortFn:i}))}),()=>Eo(y)},Uo=Fi("PlaylistSelector"),$o=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Bo=function(e,n){if(!e)return"";const r=t.default.getComputedStyle(e);return r?r[n]:""},Fo=function(e,t){const n=e.slice();e.sort(function(e,r){const i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i})},qo=function(e,n){let r,i;return e.attributes.BANDWIDTH&&(r=e.attributes.BANDWIDTH),r=r||t.default.Number.MAX_VALUE,n.attributes.BANDWIDTH&&(i=n.attributes.BANDWIDTH),i=i||t.default.Number.MAX_VALUE,r-i};let Vo=function(e){const{main:n,bandwidth:r,playerWidth:i,playerHeight:s,playerObjectFit:o,limitRenditionByPlayerDimensions:a,playlistController:l}=e;if(!n)return;const c={bandwidth:r,width:i,height:s,limitRenditionByPlayerDimensions:a};let u=n.playlists;_s.isAudioOnly(n)&&(u=l.getAudioTrackPlaylists_(),c.audioOnly=!0);let d=u.map(e=>{let n;const r=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return n=e.attributes&&e.attributes.BANDWIDTH,n=n||t.default.Number.MAX_VALUE,{bandwidth:n,width:r,height:i,playlist:e}});Fo(d,(e,t)=>e.bandwidth-t.bandwidth),d=d.filter(e=>!_s.isIncompatible(e.playlist));let h=d.filter(e=>_s.isEnabled(e.playlist));h.length||(h=d.filter(e=>!_s.isDisabled(e.playlist)));const p=h.filter(e=>e.bandwidth*ao.BANDWIDTH_VARIANCE<r);let f=p[p.length-1];const m=p.filter(e=>e.bandwidth===f.bandwidth)[0];if(!1===a){const e=m||h[0]||d[0];if(e&&e.playlist){let t="sortedPlaylistReps";return m&&(t="bandwidthBestRep"),h[0]&&(t="enabledPlaylistReps"),Uo(`choosing ${$o(e)} using ${t} with options`,c),e.playlist}return Uo("could not choose a playlist with options",c),null}const _=p.filter(e=>e.width&&e.height);Fo(_,(e,t)=>e.width-t.width);const g=_.filter(e=>e.width===i&&e.height===s);f=g[g.length-1];const y=g.filter(e=>e.bandwidth===f.bandwidth)[0];let v,b,w,k;if(y||(v=_.filter(e=>"cover"===o?e.width>i&&e.height>s:e.width>i||e.height>s),b=v.filter(e=>e.width===v[0].width&&e.height===v[0].height),f=b[b.length-1],w=b.filter(e=>e.bandwidth===f.bandwidth)[0]),l.leastPixelDiffSelector){const e=_.map(e=>(e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-s),e));Fo(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),k=e[0]}const C=k||w||y||m||h[0]||d[0];if(C&&C.playlist){let e="sortedPlaylistReps";return k?e="leastPixelDiffRep":w?e="resolutionPlusOneRep":y?e="resolutionBestRep":m?e="bandwidthBestRep":h[0]&&(e="enabledPlaylistReps"),Uo(`choosing ${$o(C)} using ${e} with options`,c),C.playlist}return Uo("could not choose a playlist with options",c),null};const Ho=function(){let e=this.useDevicePixelRatio&&t.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),Vo({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(Bo(this.tech_.el(),"width"),10)*e,playerHeight:parseInt(Bo(this.tech_.el(),"height"),10)*e,playerObjectFit:this.usePlayerObjectFit?Bo(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})};function zo(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(CL){return""}}const Go=({inbandTextTracks:e,metadataArray:n,timestampOffset:r,videoDuration:i})=>{if(!n)return;const s=t.default.WebKitDataCue||t.default.VTTCue,o=e.metadataTrack_;if(!o)return;if(n.forEach(e=>{const n=e.cueTime+r;!("number"!=typeof n||t.default.isNaN(n)||n<0)&&n<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{const t=new s(n,n,e.value||e.url||e.data||"");t.frame=e,t.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(Ri.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(Ri.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(Ri.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(t),o.addCue(t)})}),!o.cues||!o.cues.length)return;const a=o.cues,l=[];for(let t=0;t<a.length;t++)a[t]&&l.push(a[t]);const c=l.reduce((e,t)=>{const n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),u=Object.keys(c).sort((e,t)=>Number(e)-Number(t));u.forEach((e,t)=>{const n=c[e],r=isFinite(i)?i:e,s=Number(u[t+1])||r;n.forEach(e=>{e.endTime=s})})},Ko={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},Wo=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),Xo=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,Ri.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},Yo=function(e,t,n){let r,i;if(n&&n.cues)for(r=n.cues.length;r--;)i=n.cues[r],i.startTime>=e&&i.endTime<=t&&n.removeCue(i)},Zo=e=>"number"==typeof e&&isFinite(e),Jo=1/60,Qo=e=>{const{startOfSegment:t,duration:n,segment:r,part:i,playlist:{mediaSequence:s,id:o,segments:a=[]},mediaIndex:l,partIndex:c,timeline:u}=e,d=a.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const p="number"==typeof c,f=e.segment.uri?"segment":"pre-segment",m=p?ns({preloadSegment:r})-1:0;return`${f} [${s+l}/${s+d}]`+(p?` part [${c}/${m}]`:"")+` segment start/end [${r.start} => ${r.end}]`+(p?` part start/end [${i.start} => ${i.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${u}] selected by [${h}] playlist [${o}]`},ea=e=>`${e}TimingInfo`,ta=({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:r,audioDisabled:i})=>{if(t===n)return!1;if("audio"===r){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==n}if("main"===r&&i){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==n}return!1},na=e=>{const t=e.pendingSegment_;if(!t)return;if(ta({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&(e=>{if(!e)return!1;const t=e.pendingTimelineChange({type:"audio"}),n=e.pendingTimelineChange({type:"main"}),r=t&&n,i=r&&t.to!==n.to;return!(!r||-1===t.from||-1===n.from||!i)})(e.timelineChangeController_)){if((e=>{const t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),n=e.timelineChangeController_.pendingTimelineChange({type:"main"});return t&&n&&t.to<n.to})(e))return void e.timelineChangeController_.trigger("audioTimelineBehind");e.timelineChangeController_.trigger("fixBadTimelineChange")}},ra=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+Hi,ia=(e,n)=>{if("hls"!==n)return null;const r=(e=>{let n=0;return["video","audio"].forEach(function(r){const i=e[`${r}TimingInfo`];if(!i)return;const{start:s,end:o}=i;let a;"bigint"==typeof s||"bigint"==typeof o?a=t.default.BigInt(o)-t.default.BigInt(s):"number"==typeof s&&"number"==typeof o&&(a=o-s),void 0!==a&&a>n&&(n=a)}),"bigint"==typeof n&&n<Number.MAX_SAFE_INTEGER&&(n=Number(n)),n})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!r)return null;const i=e.playlist.targetDuration,s=ra({segmentDuration:r,maxDuration:2*i}),o=ra({segmentDuration:r,maxDuration:i}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${r}
702 when the reported duration is ${e.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return s||o?{severity:s?"warn":"info",message:a}:null},sa=({type:e,segment:t})=>{if(!t)return;const n=Boolean(t.key||t.map&&t.map.ke),r=Boolean(t.map&&!t.map.bytes),i=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:i,duration:t.duration,isEncrypted:n,isMediaInitialization:r}};class oa extends Ri.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Fi(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():na(this)}),this.sourceUpdater_.on("codecschange",e=>{this.trigger((0,s.default)({type:"codecschange"},e))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():na(this)}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",e=>{this.trigger((0,s.default)({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():na(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():na(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return wo({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&t.default.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}
vendor: 4,375 bytes, line 702
702abort(){if("WAITING"!==this.state)return this.pendingSegment_&&(this.pendingSegment_=null),void this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,t.default.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&bo(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Vi();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:n,isMuxed:r}=e;if(n&&t&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const n=Ks(e);let r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,t=!1){if(!e)return null;const n=Ws(e);let r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;if(this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;const n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_(`playlist update [${i} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${Zi(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri){if(null!==this.mediaIndex){!e.endList&&"number"==typeof e.partTargetDuration?this.resetLoader():this.resyncLoader()}return this.currentMediaInfo_=void 0,void this.trigger("playlistupdate")}const s=e.mediaSequence-n.mediaSequence;if(this.logger_(`live window shift [${s}]`),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}r&&(r.mediaIndex-=s,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}pause(){this.checkBufferTimeout_&&(t.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
vendor: 11,174 bytes, line 702
702resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&bo(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,n=()=>{},r=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let i=1;const s=()=>{i--,0===i&&n()};!r&&this.audioDisabled_||(i++,this.sourceUpdater_.removeAudio(e,t,s)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,n,r)=>{const i=Math.ceil((t-r)*m.ONE_SECOND_IN_TS),s=Math.ceil((n-r)*m.ONE_SECOND_IN_TS),o=e.slice();let a=e.length;for(;a--&&!(e[a].pts<=s););if(-1===a)return o;let l=a+1;for(;l--&&!(e[l].pts<=i););return l=Math.max(l,0),o.splice(l,a-l+1),o})(this.gopBuffer_,e,t,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(e,t,s));for(const o in this.inbandTextTracks_)Yo(e,t,this.inbandTextTracks_[o]);Yo(e,t,this.segmentMetadataTrack_),s()}monitorBuffer_(){this.checkBufferTimeout_&&t.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=t.default.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&t.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=t.default.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:sa({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,n=this.partIndex){if(!t||!this.mediaSource_)return!1;const r="number"==typeof e&&t.segments[e],i=e+1===t.segments.length,s=!r||!r.parts||n+1===r.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&i&&s}chooseNextRequest_(){const e=this.buffered_(),t=Zi(e)||0,n=Ji(e,this.currentTime_()),r=!this.hasPlayed_()&&n>=1,i=n>=this.goalBufferLength_(),s=this.playlist_.segments;if(!s.length||r||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];const r=[];let i=0;for(let s=0;s<t.length;s++){const o=t[s];if(e===o.timeline&&(r.push(s),i+=o.duration,i>n))return s}return 0===r.length?0:r[r.length-1]}(this.currentTimeline_,s,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(null!==this.mediaIndex){const e=s[this.mediaIndex],n="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=e.end?e.end:t,e.parts&&e.parts[n+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=n+1):o.mediaIndex=this.mediaIndex+1}else{let e,n,r;const i=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${i}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const t=this.getSyncInfoFromMediaSequenceSync_(i);if(!t){const e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:Ri.Error.StreamingFailedToSelectNextSegment,error:new Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --\x3e ${t.end})`),e=t.segmentIndex,n=t.partIndex,r=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const t=_s.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:i,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,n=t.partIndex,r=t.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${i}`:`currentTime ${i}`,o.mediaIndex=e,o.startOfSegment=r,o.partIndex=n,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const a=s[o.mediaIndex];let l=a&&"number"==typeof o.partIndex&&a.parts&&a.parts[o.partIndex];if(!a||"number"==typeof o.partIndex&&!l)return null;"number"!=typeof o.partIndex&&a.parts&&(o.partIndex=0,l=a.parts[0]);const c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&l&&!c&&!l.independent)if(0===o.partIndex){const e=s[o.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(o.mediaIndex-=1,o.partIndex=e.parts.length-1,o.independent="previous segment")}else a.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const u=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=s.length-1&&u&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const n=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!n)return null;if(!n.isAppended)return n;const r=this.mediaSequenceSync_.getSyncInfoForTime(n.end);return r?(r.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),r):null}generateSegmentInfo_(e){const{independent:t,playlist:n,mediaIndex:r,startOfSegment:i,isSyncRequest:s,partIndex:o,forceTimestampOffset:a,getMediaInfoForTime:l}=e,c=n.segments[r],u="number"==typeof o&&c.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:r,partIndex:u?o:null,isSyncRequest:s,startOfSegment:i,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==a?a:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:h});const p=Zi(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=((e,t,n)=>{if(null==t||!e.length)return[];const r=Math.ceil((t-n+3)*m.ONE_SECOND_IN_TS);let i;for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:r,overrideCheck:i})=>i||e!==t?e<t?n:r.length?r.end(r.length-1):n:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=_s.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),s=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(i<=s)return;const o=function(e){const{main:t,currentTime:n,bandwidth:r,duration:i,segmentDuration:s,timeUntilRebuffer:o,currentTimeline:a,syncController:l}=e,c=t.playlists.filter(e=>!_s.isIncompatible(e));let u=c.filter(_s.isEnabled);u.length||(u=c.filter(e=>!_s.isDisabled(e)));const d=u.filter(_s.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{const t=l.getSyncPoint(e,i,a,n)?1:2;return{playlist:e,rebufferingImpact:_s.estimateSegmentRequestTime(s,r,e)*t-o}}),h=d.filter(e=>e.rebufferingImpact<=0);return Fo(h,(e,t)=>qo(t.playlist,e.playlist)),h.length?h[0]:(Fo(d,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),d[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const a=i-s-o.rebufferingImpact;let l=.5;s<=Hi&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||a<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*ao.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Qo(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){const{hasAudio:n,hasVideo:r}=t,i={segmentInfo:sa({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:n,hasVideo:r}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:i}),this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const n=Object.keys(e).sort(),r=Object.keys(t).sort();if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(s!==r[i])return!1;if(e[s]!==t[s])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():na(this)))}handleTimingInfo_(e,t,n,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const i=this.pendingSegment_,s=ea(t);i[s]=i[s]||{},i[s][n]=r,this.logger_(`timinginfo: ${t} - ${n} - ${r}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():na(this)}handleCaptions_(e,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===n.length)return void this.logger_("SegmentLoader received no captions from a caption event");
vendor: 33,533 bytes, line 702
702if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,n));const r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};n.forEach(e=>{i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)}),Object.keys(i).forEach(e=>{const{startTime:n,endTime:s,captions:o}=i[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${n} -> ${s} for ${e}`),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let r=n;/^cc708_/.test(n)&&(r="SERVICE"+n.split("_")[1]);const i=t.textTracks().getTrackById(r);if(i)e[n]=i;else{let i=n,s=n,o=!1;const a=(t.options_.vhs&&t.options_.vhs.captionServices||{})[r];a&&(i=a.label,s=a.language,o=a.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:r,default:o,label:i,language:s},!1).track}}}(a,this.vhs_.tech_,e),Yo(n,s,a[e]),function({inbandTextTracks:e,captionArray:n,timestampOffset:r}){if(!n)return;const i=t.default.WebKitDataCue||t.default.VTTCue;n.forEach(t=>{const n=t.stream;t.content?t.content.forEach(s=>{const o=new i(t.startTime+r,t.endTime+r,s.text);o.line=s.line,o.align="left",o.position=s.position,o.positionAlign="line-left",e[n].addCue(o)}):e[n].addCue(new i(t.startTime+r,t.endTime+r,t.text))})}({captionArray:o,inbandTextTracks:a,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(n,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!ta({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:n,hasVideo:r,isMuxed:i}=t;return!(r&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!i&&!e.audioTimingInfo)&&!ta({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return na(this),void this.callQueue_.push(this.handleData_.bind(this,e,t));const n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[ea(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let r;t&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==n.mediaIndex||e.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:n,playlist:r}){if(n){const e=Ks(n);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:n,bytes:r},i){const s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Yi(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Yi(o).join(", "));const a=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,u=o.length?o.end(o.length-1):0;if(l-a<=1&&u-c<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${r.byteLength}, audio buffer: ${Yi(s).join(", ")}, video buffer: ${Yi(o).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:n,bytes:r}));const d=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${d}`),this.remove(0,d,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=t.default.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:n},r){r&&(22!==r.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error({message:`${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:Ri.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:n,data:r,bytes:i}){if(!i){const e=[r];let t=r.byteLength;n&&(e.unshift(n),t+=n.byteLength),i=(e=>{let t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,n),n+=e.byteLength})),t})({bytes:t,segments:e})}const s={segmentInfo:sa({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:s}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:i},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:i}))}handleSegmentTimingInfo_(e,t,n){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,i=`${e}TimingInfo`;r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[i].transmuxedPresentationStart=n.start.presentation,r[i].transmuxedDecodeStart=n.start.decode,r[i].transmuxedPresentationEnd=n.end.presentation,r[i].transmuxedDecodeEnd=n.end.decode,r[i].baseMediaDecodeTime=n.baseMediaDecodeTime}appendData_(e,t){const{type:n,data:r}=t;if(!r||!r.byteLength)return;if("audio"===n&&this.audioDisabled_)return;const i=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return na(this),void this.loadQueue_.push(()=>{const t=(0,s.default)({},e,{forceTimestampOffset:!0});(0,s.default)(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,i=e.timeline!==this.currentTimeline_&&e.timeline>0,s=n||r&&i;this.logger_(`Requesting\n${zo(e.uri)}\n${Qo(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=jo({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:n,stream:r})=>{this.logger_(`${Qo(e)} logged from transmuxer stream ${r} as a ${n}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:n,trackInfo:r,timingInfo:i})=>{const s={segmentInfo:sa({segment:t})};n&&(s.keyInfo=n),r&&(s.trackInfo=r),i&&(s.timingInfo=i),this.trigger({type:e,metadata:s})}})}trimBackBuffer_(e){const t=((e,t,n)=>{let r=t-ao.BACK_BUFFER_LENGTH;e.length&&(r=Math.max(r,e.start(0)));const i=t-n;return Math.min(i,r)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,n=e.part,r=e.segment.key||e.segment.map&&e.segment.map.key,i=e.segment.map&&!e.segment.map.bytes,s={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:r,isMediaInitialization:i},o=e.playlist.segments[e.mediaIndex-1];if(o&&o.timeline===t.timeline&&(o.videoTimingInfo?s.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(s.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),t.key){const n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);s.key=this.segmentKey(t.key),s.key.iv=n}return t.map&&(s.map=this.initSegmentForMap(t.map)),s}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<Jo)return void this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record 0.016666666666666666`);const n={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:n}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,n){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===So)return;return this.pause(),e.code===To?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),r.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=((e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const r=t[0].pts;let i=0;for(;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)})(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:n,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:i,useVideoTimingInfo:s,videoTimingInfo:o,audioTimingInfo:a}){if(void 0!==e)return e;if(!s)return a.start;const l=t.segments[n-1];return 0!==n&&l&&void 0!==l.start&&l.end===r+i?o.start:r}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:n,hasVideo:r,isMuxed:i}=t,s="main"===this.loaderType_&&r,o=!this.audioDisabled_&&n&&!i;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);s&&e.waitingOnAppends++,o&&e.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,n)=>"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null)(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:n}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n.start:n.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){const e={segmentInfo:sa({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=ia(e,this.sourceType_);if(t&&("warn"===t.severity?Ri.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${Qo(e)}`);this.logger_(`Appended ${Qo(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const n=e.segment,r=e.part,i=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,s=r&&r.end&&this.currentTime_()-r.end>3*e.playlist.partTargetDuration;if(i||s)return this.logger_(`bad ${i?"segment":"part"} ${Qo(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<Jo)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record 0.016666666666666666`);const t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const n=e.segment,r=n.start,i=n.end;if(!Zo(r)||!Zo(i))return;Yo(r,i,this.segmentMetadataTrack_);const s=t.default.WebKitDataCue||t.default.VTTCue,o={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,programDateTime:n.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:r,end:i},a=new s(r,i,JSON.stringify(o));a.value=o,this.segmentMetadataTrack_.addCue(a)}}function aa(){}const la=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},ca=["video","audio"],ua=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},da=(e,t)=>{if(0===t.queue.length)return;let n=0,r=t.queue[n];if("mediaSource"!==r.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!ua(e,t)){if(r.type!==e){if(n=((e,t)=>{for(let n=0;n<t.length;n++){const r=t[n];if("mediaSource"===r.type)return null;if(r.type===e)return n}return null})(e,t.queue),null===n)return;r=t.queue[n]}return t.queue.splice(n,1),t.queuePending[e]=r,r.action(e,t),r.doneFn?void 0:(t.queuePending[e]=null,void da(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),r.action(t),r.doneFn&&r.doneFn(),da("audio",t),da("video",t))},ha=(e,t)=>{const n=t[`${e}Buffer`],r=la(e);n&&(n.removeEventListener("updateend",t[`on${r}UpdateEnd_`]),n.removeEventListener("error",t[`on${r}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},pa=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),fa=(e,t,n)=>(r,i)=>{const s=i[`${r}Buffer`];if(pa(i.mediaSource,s)){i.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${r}Buffer`);try{s.appendBuffer(e)}catch(CL){i.logger_(`Error with code ${CL.code} `+(22===CL.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${r}Buffer`),i.queuePending[r]=null,n(CL)}}},ma=(e,t)=>(n,r)=>{const i=r[`${n}Buffer`];if(pa(r.mediaSource,i)){r.logger_(`Removing ${e} to ${t} from ${n}Buffer`);try{i.remove(e,t)}catch(CL){r.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`)}}},_a=e=>(t,n)=>{const r=n[`${t}Buffer`];pa(n.mediaSource,r)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),r.timestampOffset=e)},ga=e=>(t,n)=>{e()},ya=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(CL){Ri.log.warn("Failed to call media source endOfStream",CL)}}},va=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(CL){Ri.log.warn("Failed to set media source duration",CL)}},ba=()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const n=t[`${e}Buffer`];if(pa(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(CL){Ri.log.warn(`Failed to abort on ${e}Buffer`,CL)}}},wa=(e,t)=>n=>{const r=la(e),i=(0,l.getMimeForCodec)(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const s=n.mediaSource.addSourceBuffer(i);s.addEventListener("updateend",n[`on${r}UpdateEnd_`]),s.addEventListener("error",n[`on${r}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=s},ka=e=>t=>{const n=t[`${e}Buffer`];if(ha(e,t),pa(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(CL){Ri.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,CL)}}},Ca=e=>(t,n)=>{const r=n[`${t}Buffer`],i=(0,l.getMimeForCodec)(e);if(!pa(n.mediaSource,r))return;const s=e.substring(0,e.indexOf(".")),o=n.codecs[t];if(o.substring(0,o.indexOf("."))===s)return;const a={codecsChangeInfo:{from:o,to:e}};n.trigger({type:"codecschange",metadata:a}),n.logger_(`changing ${t}Buffer codec from ${o} to ${e}`);try{r.changeType(i),n.codecs[t]=e}catch(CL){a.errorType=Ri.Error.StreamingCodecsChangeError,a.error=CL,CL.metadata=a,n.error_=CL,n.trigger("error"),Ri.log.warn(`Failed to changeType on ${t}Buffer`,CL)}},Ta=({type:e,sourceUpdater:t,action:n,doneFn:r,name:i})=>{t.queue.push({type:e,action:n,doneFn:r,name:i}),da(e,t)},Sa=(e,t)=>n=>{const r=function(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let n=0;n<e.length;n++){const r=e.start(n),i=e.end(n);t+=`${r} --\x3e ${i}. Duration (${i-r})\n`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,r),t.queuePending[e]){const n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[`${e}Error_`])}da(e,t)};class xa extends Ri.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>da("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Fi("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Sa("video",this),this.onAudioUpdateEnd_=Sa("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Ta({type:"mediaSource",sourceUpdater:this,action:wa(e,t),name:"addSourceBuffer"})}abort(e){Ta({type:e,sourceUpdater:this,action:ba(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Ta({type:"mediaSource",sourceUpdater:this,action:ka(e),name:"removeSourceBuffer"}):Ri.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!Ri.browser.IS_FIREFOX&&t.default.MediaSource&&t.default.MediaSource.prototype&&"function"==typeof t.default.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return t.default.SourceBuffer&&t.default.SourceBuffer.prototype&&"function"==typeof t.default.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Ta({type:e,sourceUpdater:this,action:Ca(t),name:"changeType"}):Ri.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const n=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,n);this.canChangeType()&&this.changeType(t,n)})}appendBuffer(e,t){const{segmentInfo:n,type:r,bytes:i}=e;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${i.length} until video append`);if(Ta({type:r,sourceUpdater:this,action:fa(i,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return pa(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Vi()}videoBuffered(){return pa(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Vi()}buffered(){const e=pa(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=pa(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let n=null,r=null,i=0;const s=[],o=[];if(!(e&&e.length&&t&&t.length))return Vi();let a=e.length;for(;a--;)s.push({time:e.start(a),type:"start"}),s.push({time:e.end(a),type:"end"});for(a=t.length;a--;)s.push({time:t.start(a),type:"start"}),s.push({time:t.end(a),type:"end"});for(s.sort(function(e,t){return e.time-t.time}),a=0;a<s.length;a++)"start"===s[a].type?(i++,2===i&&(n=s[a].time)):"end"===s[a].type&&(i--,1===i&&(r=s[a].time)),null!==n&&null!==r&&(o.push([n,r]),n=null,r=null);return Vi(o)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=aa){Ta({type:"mediaSource",sourceUpdater:this,action:va(e),name:"duration",doneFn:t})}endOfStream(e=null,t=aa){"string"!=typeof e&&(e=void 0),Ta({type:"mediaSource",sourceUpdater:this,action:ya(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,n=aa){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Ta({type:"audio",sourceUpdater:this,action:ma(e,t),doneFn:n,name:"remove"}):n()}removeVideo(e,t,n=aa){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Ta({type:"video",sourceUpdater:this,action:ma(e,t),doneFn:n,name:"remove"}):n()}updating(){return!(!ua("audio",this)&&!ua("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Ta({type:"audio",sourceUpdater:this,action:_a(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Ta({type:"video",sourceUpdater:this,action:_a(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Ta({type:"audio",sourceUpdater:this,action:ga(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Ta({type:"video",sourceUpdater:this,action:ga(e),name:"callback"})}dispose(){this.trigger("dispose"),ca.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>ha(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Ea=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),Ia=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class Aa extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Pa extends oa{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Vi();const e=this.subtitlesTrack_.cues;return Vi([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const n=Ks(e);let r=this.initSegments_[n];if(t&&!r&&e.bytes){const t=Ia.byteLength+e.bytes.byteLength,i=new Uint8Array(t);i.set(e.bytes),i.set(Ia,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:i}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){Yo(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,n,r){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(n.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===To&&this.handleTimeout_(),e.code===So?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const i=this.pendingSegment_,s=r.mp4VttCues&&r.mp4VttCues.length;s&&(i.mp4VttCues=r.mp4VttCues),this.saveBandwidthRelatedStats_(i.duration,n.stats),n.key&&this.segmentKey(n.key,!0),this.state="APPENDING",this.trigger("appending");const o=i.segment;if(o.map&&(o.map.bytes=n.map.bytes),i.bytes=n.bytes,"function"!=typeof t.default.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,n,r),()=>this.stopForError({message:"Error loading vtt.js"}));o.requested=!0;try{this.parseVTTCues_(i)}catch(CL){return void this.stopForError({message:CL.message,metadata:{errorType:Ri.Error.StreamingVttParserError,error:CL}})}if(s||this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.cues.length?i.timingInfo={start:i.cues[0].startTime,end:i.cues[i.cues.length-1].endTime}:i.timingInfo={start:i.startOfSegment,end:i.startOfSegment+i.duration},i.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,i.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new t.default.VTTCue(e.startTime,e.endTime,e.text):e)}),function(e){const t=e.cues;if(!t)return;const n={};for(let r=t.length-1;r>=0;r--){const i=t[r],s=`${i.startTime}-${i.endTime}-${i.text}`;n[s]?e.removeCue(i):n[s]=i}}(this.subtitlesTrack_),this.handleAppendsDone_()}
vendor: 4,092 bytes, line 702
702handleData_(e,t){const n=e&&"vtt"===e.type,r=t&&"text"===t.type;n&&r&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){const n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(r=>{const i=r.start+n,s=r.end+n,o=new t.default.VTTCue(i,s,r.cueText);r.settings&&r.settings.split(" ").forEach(e=>{const t=e.split(":"),n=t[0],r=t[1];o[n]=isNaN(r)?r:Number(r)}),e.cues.push(o)})}parseVTTCues_(e){let n,r=!1;if("function"!=typeof t.default.WebVTT)throw new Aa;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof t.default.TextDecoder?n=new t.default.TextDecoder("utf8"):(n=t.default.WebVTT.StringDecoder(),r=!0);const i=new t.default.WebVTT.Parser(t.default,t.default.vttjs,n);if(i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=t=>{e.timestampmap=t},i.onparsingerror=e=>{Ri.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;r&&(t=Ea(t)),i.parse(t)}let s=e.bytes;r&&(s=Ea(s)),i.parse(s),i.flush()}updateTimeMapping_(e,t,n){const r=e.segment;if(!t)return;if(!e.cues.length)return void(r.empty=!0);const{MPEGTS:i,LOCAL:s}=e.timestampmap,o=i/m.ONE_SECOND_IN_TS-s+t.mapping;if(e.cues.forEach(e=>{const n=e.endTime-e.startTime,r=this.handleRollover_(e.startTime+o,t.time);e.startTime=Math.max(r,0),e.endTime=Math.max(r+n,0)}),!n.syncInfo){const t=e.cues[0].startTime,i=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(t,i-r.duration)}}}handleRollover_(e,t){if(null===t)return e;let n=e*m.ONE_SECOND_IN_TS;const r=t*m.ONE_SECOND_IN_TS;let i;for(i=r<n?-8589934592:8589934592;Math.abs(n-r)>4294967296;)n+=i;return n/m.ONE_SECOND_IN_TS}}const Oa=function(e,t){const n=e.cues;for(let r=0;r<n.length;r++){const e=n[r];if(t>=e.adStartTime&&t<=e.adEndTime)return e}return null};class La{constructor({start:e,end:t,segmentIndex:n,partIndex:r=null,appended:i=!1}){this.start_=e,this.end_=t,this.segmentIndex_=n,this.partIndex_=r,this.appended_=i}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class Da{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class Ra{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){const{mediaSequence:n,segments:r}=e;if(this.isReliable_=this.isReliablePlaylist_(n,r),this.isReliable_)return this.updateStorage_(r,n,this.calculateBaseTime_(n,r,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:n}of this.storage_.values())if(n.length){for(const r of n)if(r.isInRange(e))return r}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,n){const r=new Map;let i="\n",s=n,o=t;this.start_=s,e.forEach((e,t)=>{const n=this.storage_.get(o),a=s,l=a+e.duration,c=Boolean(n&&n.segmentSyncInfo&&n.segmentSyncInfo.isAppended),u=new La({start:a,end:l,appended:c,segmentIndex:t});e.syncInfo=u;let d=s;const h=(e.parts||[]).map((e,r)=>{const s=d,a=d+e.duration,l=Boolean(n&&n.partsSyncInfo&&n.partsSyncInfo[r]&&n.partsSyncInfo[r].isAppended),c=new La({start:s,end:a,appended:l,segmentIndex:t,partIndex:r});return d=a,i+=`Media Sequence: ${o}.${r} | Range: ${s} --\x3e ${a} | Appended: ${l}
702\n`,e.syncInfo=c,c});r.set(o,new Da(u,h)),i+=`${zo(e.resolvedUri)} | Media Sequence: ${o} | Range: ${a} --\x3e ${l} | Appended: ${c}\n`,o++,s=l}),this.end_=s,this.storage_=r,this.diagnostics_=i}calculateBaseTime_(e,t,n){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const r=Math.min(...this.storage_.keys());if(e<r){const n=r-e;let i=this.storage_.get(r).segmentSyncInfo.start;for(let e=0;e<n;e++){i-=t[e].duration}return i}return n}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class Ma extends Ra{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,n){if(!this.storage_.size){const t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,n)}}const Na=[{name:"VOD",run:(e,t,n,r,i)=>{if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"MediaSequence",run:(e,t,n,r,i,s)=>{const o=e.getMediaSequenceSync(s);if(!o)return null;if(!o.isReliable)return null;const a=o.getSyncInfoForTime(i);return a?{time:a.start,partIndex:a.partIndex,segmentIndex:a.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,n,r,i)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let s=null,o=null;const a=es(t);i=i||0;for(let l=0;l<a.length;l++){const n=a[t.endList||0===i?l:a.length-(l+1)],r=n.segment,c=e.timelineToDatetimeMappings[r.timeline];if(!c||!r.dateTimeObject)continue;let u=r.dateTimeObject.getTime()/1e3+c;if(r.parts&&"number"==typeof n.partIndex)for(let e=0;e<n.partIndex;e++)u+=r.parts[e].duration;const d=Math.abs(i-u);if(null!==o&&(0===d||o<d))break;o=d,s={time:u,segmentIndex:n.segmentIndex,partIndex:n.partIndex}}return s}},{name:"Segment",run:(e,t,n,r,i)=>{let s=null,o=null;i=i||0;const a=es(t);for(let l=0;l<a.length;l++){const e=a[t.endList||0===i?l:a.length-(l+1)],n=e.segment,c=e.part&&e.part.start||n&&n.start;if(n.timeline===r&&void 0!==c){const t=Math.abs(i-c);if(null!==o&&o<t)break;(!s||null===o||o>=t)&&(o=t,s={time:c,segmentIndex:e.segmentIndex,partIndex:e.partIndex})}}return s}},{name:"Discontinuity",run:(e,t,n,r,i)=>{let s=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length){let n=null;for(let r=0;r<t.discontinuityStarts.length;r++){const o=t.discontinuityStarts[r],a=t.discontinuitySequence+r+1,l=e.discontinuities[a];if(l){const e=Math.abs(i-l.time);if(null!==n&&n<e)break;(!s||null===n||n>=e)&&(n=e,s={time:l.time,segmentIndex:o,partIndex:null})}}}return s}},{name:"Playlist",run:(e,t,n,r,i)=>{if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}}];class ja extends Ri.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new Ra,n=new Ma(t),r=new Ma(t);this.mediaSequenceStorage_={main:t,audio:n,vtt:r},this.logger_=Fi("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,n,r,i){if(t!==1/0){return Na.find(({name:e})=>"VOD"===e).run(this,e,t)}const s=this.runStrategies_(e,t,n,r,i);if(!s.length)return null;for(const o of s){const{syncPoint:t,strategy:n}=o,{segmentIndex:i,time:s}=t;if(i<0)continue;const a=s,l=a+e.segments[i].duration;if(this.logger_(`Strategy: ${n}. Current time: ${r}. selected segment: ${i}. Time: [${a} -> ${l}]}`),r>=a&&r<l)return this.logger_("Found sync point with exact match: ",t),t}return this.selectSyncPoint_(s,{key:"time",value:r})}getExpiredTime(e,t){if(!e||!e.segments)return null;const n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;const r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+os({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(e,t,n,r,i){const s=[];for(let o=0;o<Na.length;o++){const a=Na[o],l=a.run(this,e,t,n,r,i);l&&(l.strategy=a.name,s.push({strategy:a.name,syncPoint:l}))}return s}selectSyncPoint_(e,t){let n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy;for(let s=1;s<e.length;s++){const o=Math.abs(e[s].syncPoint[t.key]-t.value);o<r&&(r=o,n=e[s].syncPoint,i=e[s].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${i}]: [time:${n.time}, segmentIndex:${n.segmentIndex}`+("number"==typeof n.partIndex?`,partIndex:${n.partIndex}`:"")+"]"),n}saveExpiredSegmentInfo(e,t){const n=t.mediaSequence-e.mediaSequence;if(n>86400)Ri.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);else for(let r=n-1;r>=0;r--){const n=e.segments[r];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+r,time:n.start}
vendor: 34,522 bytes, lines 702-704
702,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const n=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),r=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const i=r.dateTimeObject;r.discontinuity&&t&&i&&(this.timelineToDatetimeMappings[r.timeline]=-i.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,n){const r=e.segment,i=e.part;let s,o,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),s=e.startOfSegment,o=t.end+a.mapping;else{if(!a)return!1;s=t.start+a.mapping,o=t.end+a.mapping}return i&&(i.start=s,i.end=o),(!r.start||s<r.start)&&(r.start=s),r.end=o,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let r=0;r<t.discontinuityStarts.length;r++){const i=t.discontinuityStarts[r],s=t.discontinuitySequence+r+1,o=i-e.mediaIndex,a=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>a){let r;r=o<0?n.start-os({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:i}):n.end+os({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:i}),this.discontinuities[s]={time:r,accuracy:a}}}}dispose(){this.trigger("dispose"),this.off()}}class Ua extends Ri.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:n}){if("number"==typeof t&&"number"==typeof n){this.lastTimelineChanges_[e]={type:e,from:t,to:n},delete this.pendingTimelineChanges_[e];const r={timelineChangeInfo:{from:t,to:n}};this.trigger({type:"timelinechange",metadata:r})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const $a=uo(ho(function(){var e=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(); 703/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */let t=null;class n{constructor(e){let n,r,i;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4];let s,o,a;const l=[],c=[];let u,d,h,p,f,m;for(s=0;s<256;s++)c[(l[s]=s<<1^283*(s>>7))^s]=s;for(o=a=0;!r[o];o^=u||1,a=c[a]||1)for(p=a^a<<1^a<<2^a<<3^a<<4,p=p>>8^255&p^99,r[o]=p,i[p]=o,h=l[d=l[u=l[o]]],m=16843009*h^65537*d^257*u^16843008*o,f=257*l[p]^16843008*p,s=0;s<4;s++)t[s][o]=f=f<<24^f>>>8,n[s][p]=m=m<<24^m>>>8;for(s=0;s<5;s++)t[s]=t[s].slice(0),n[s]=n[s].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const s=this._tables[0][4],o=this._tables[1],a=e.length;let l=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");const c=e.slice(0),u=[];for(this._key=[c,u],n=a;n<4*a+28;n++)i=c[n-1],(n%a===0||8===a&&n%a===4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],n%a===0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),c[n]=c[n-a]^i;for(r=0;n;r++,n--)i=c[3&r?n:n-4],u[r]=n<=4||r<4?i:o[0][s[i>>>24]]^o[1][s[i>>16&255]]^o[2][s[i>>8&255]]^o[3][s[255&i]]}decrypt(e,t,n,r,i,s){const o=this._key[1];let a,l,c,u=e^o[0],d=r^o[1],h=n^o[2],p=t^o[3];const f=o.length/4-2;let m,_=4;const g=this._tables[1],y=g[0],v=g[1],b=g[2],w=g[3],k=g[4];for(m=0;m<f;m++)a=y[u>>>24]^v[d>>16&255]^b[h>>8&255]^w[255&p]^o[_],l=y[d>>>24]^v[h>>16&255]^b[p>>8&255]^w[255&u]^o[_+1],c=y[h>>>24]^v[p>>16&255]^b[u>>8&255]^w[255&d]^o[_+2],p=y[p>>>24]^v[u>>16&255]^b[d>>8&255]^w[255&h]^o[_+3],_+=4,u=a,d=l,h=c;for(m=0;m<4;m++)i[(3&-m)+s]=k[u>>>24]<<24^k[d>>16&255]<<16^k[h>>8&255]<<8^k[255&p]^o[_++],a=u,u=d,d=h,h=p,p=a}}class r extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const i=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24};class s{constructor(e,t,n,o){const a=s.STEP,l=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength);let u=0;for(this.asyncStream_=new r,this.asyncStream_.push(this.decryptChunk_(l.subarray(u,u+a),t,n,c)),u=a;u<l.length;u+=a)n=new Uint32Array([i(l[u-4]),i(l[u-3]),i(l[u-2]),i(l[u-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(u,u+a),t,n,c));this.asyncStream_.push(function(){var e; 704/*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */o(null,(e=c).subarray(0,e.byteLength-e[e.byteLength-1]))})}static get STEP(){return 32e3}decryptChunk_(e,t,r,s){return function(){const o=function(e,t,r){const s=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),o=new n(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let c,u,d,h,p,f,m,_,g;for(c=r[0],u=r[1],d=r[2],h=r[3],g=0;g<s.length;g+=4)p=i(s[g]),f=i(s[g+1]),m=i(s[g+2]),_=i(s[g+3]),o.decrypt(p,f,m,_,l,g),l[g]=i(l[g]^c),l[g+1]=i(l[g+1]^u),l[g+2]=i(l[g+2]^d),l[g+3]=i(l[g+3]^h),c=p,u=f,d=m,h=_;return a}(e,t,r);s.set(o,e.byteOffset)}}}var o,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Wa?Wa:"undefined"!=typeof self?self:{};o="undefined"!=typeof window?window:void 0!==a?a:"undefined"!=typeof self?self:{};var l=o.BigInt||Number;l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();const c=function(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];var i;i=r,("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t};self.onmessage=function(e){const t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),r=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),i=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new s(n,r,i,function(e,n){self.postMessage(c({source:t.source,decrypted:n}),[n.buffer])})}}));var Ba=co($a);const Fa=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},qa=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Va=(e,t)=>{t.activePlaylistLoader=e,e.load()},Ha={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:n},excludePlaylist:r}=t,i=n.activeTrack(),s=n.activeGroup(),o=(s.filter(e=>e.default)[0]||s[0]).id,a=n.tracks[o];if(i!==a){Ri.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in n.tracks)n.tracks[e].enabled=n.tracks[e]===a;n.onTrackChanged()}else r({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;Ri.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}},za={AUDIO:(e,t,n)=>{if(!t)return;const{tech:r,requestOptions:i,segmentLoaders:{[e]:s}}=n;t.on("loadedmetadata",()=>{const e=t.media();s.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&s.load()}),t.on("loadedplaylist",()=>{s.playlist(t.media(),i),r.paused()||s.load()}),t.on("error",Ha[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:r,requestOptions:i,segmentLoaders:{[e]:s},mediaTypes:{[e]:o}}=n;t.on("loadedmetadata",()=>{const e=t.media();s.playlist(e,i),s.track(o.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&s.load()}),t.on("loadedplaylist",()=>{s.playlist(t.media(),i),r.paused()||s.load()}),t.on("error",Ha[e](e,n))}},Ga={AUDIO:(e,t)=>{const{vhs:n,sourceType:r,segmentLoaders:{[e]:i},requestOptions:s,main:{mediaGroups:o},mediaTypes:{[e]:{groups:a,tracks:l,logger_:c}},mainPlaylistLoader:u}=t,d=ms(u.main);o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},d&&(o[e].main.default.playlists=u.main.playlists));for(const h in o[e]){a[h]||(a[h]=[]);for(const i in o[e][h]){let p,f=o[e][h][i];if(d?(c(`AUDIO group '${h}' label '${i}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===r&&f.playlists?new $s(f.playlists[0],n,s):f.resolvedUri?new $s(f.resolvedUri,n,s):f.playlists&&"dash"===r?new oo(f.playlists[0],n,s,u):null,f=qi({id:i,playlistLoader:p},f),za[e](e,f.playlistLoader,t),a[h].push(f),void 0===l[i]){const e=new Ri.AudioTrack({id:i,kind:Fa(f),enabled:!1,language:f.language,default:f.default,label:i});l[i]=e}}}i.on("error",Ha[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:r,sourceType:i,segmentLoaders:{[e]:s},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:l,tracks:c}},mainPlaylistLoader:u}=t;for(const d in a[e]){l[d]||(l[d]=[]);for(const s in a[e][d]){if(!r.options_.useForcedSubtitles&&a[e][d][s].forced)continue;let h,p=a[e][d][s];if("hls"===i)h=new $s(p.resolvedUri,r,o);else if("dash"===i){if(!p.playlists.filter(e=>e.excludeUntil!==1/0).length)return;h=new oo(p.playlists[0],r,o,u)}else"vhs-json"===i&&(h=new $s(p.playlists?p.playlists[0]:p.resolvedUri,r,o));if(p=qi({id:s,playlistLoader:h},p),za[e](e,p.playlistLoader,t),l[d].push(p),void 0===c[s]){const e=n.addRemoteTextTrack({id:s,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:s},!1).track;c[s]=e}}}s.on("error",Ha[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:r},mediaTypes:{[e]:{groups:i,tracks:s}}}=t;for(const o in r[e]){i[o]||(i[o]=[]);for(const t in r[e][o]){const a=r[e][o][t];if(!/^(?:CC|SERVICE)/.test(a.instreamId))continue;const l=n.options_.vhs&&n.options_.vhs.captionServices||{};let c={label:t,language:a.language,instreamId:a.instreamId,default:a.default&&a.autoselect};if(l[c.instreamId]&&(c=qi(c,l[c.instreamId])),void 0===c.default&&delete c.default,i[o].push(qi({id:t},a)),void 0===s[t]){const e=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[t]=e}}}}},Ka=(e,t)=>{for(let n=0;n<e.length;n++){if(ps(t,e[n]))return!0;if(e[n].playlists&&Ka(e[n].playlists,t))return!0}return!1},Xa={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if(n[e].enabled)return n[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}},Ya=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{Ga[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:n,tech:r,vhs:i,segmentLoaders:{AUDIO:s,main:o}}=e;["AUDIO","SUBTITLES"].forEach(n=>{t[n].activeGroup=((e,t)=>n=>{const{mainPlaylistLoader:r,mediaTypes:{[e]:{groups:i}}}=t,s=r.media();if(!s)return null;let o=null;s.attributes[e]&&(o=i[s.attributes[e]]);const a=Object.keys(i);if(!o)if("AUDIO"===e&&a.length>1&&ms(t.main))for(let e=0;e<a.length;e++){const t=i[a[e]];if(Ka(t,s)){o=t;break}}else i.main?o=i.main:1===a.length&&(o=i[a[0]]);return void 0===n?o:null!==n&&o&&o.filter(e=>e.id===n.id)[0]||null})(n,e),t[n].activeTrack=Xa[n](n,e),t[n].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:n,main:r},mediaTypes:{[e]:i}}=t,s=i.activeTrack(),o=i.getActiveGroup(),a=i.activePlaylistLoader,l=i.lastGroup_;o&&l&&o.id===l.id||(i.lastGroup_=o,i.lastTrack_=s,qa(n,i),o&&!o.isMainPlaylist&&(o.playlistLoader?(n.resyncLoader(),Va(o.playlistLoader,i)):a&&r.resetEverything()))})(n,e),t[n].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:r}}=t;r.lastGroup_=null,n.abort(),n.pause()})(n,e),t[n].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:r,main:i},mediaTypes:{[e]:s}}=t,o=s.activeTrack(),a=s.getActiveGroup(),l=s.activePlaylistLoader,c=s.lastTrack_;if((!c||!o||c.id!==o.id)&&(s.lastGroup_=a,s.lastTrack_=o,qa(r,s),a)){if(a.isMainPlaylist){if(!o||!c||o.id===c.id)return;const e=t.vhs.playlistController_,r=e.selectPlaylist();if(e.media()===r)return;return s.logger_(`track change. Switching main audio from ${c.id} to ${o.id}`),n.pause(),i.resetEverything(),void e.fastQualityChange_(r)}if("AUDIO"===e){if(!a.playlistLoader)return i.setAudio(!0),void i.resetEverything();r.setAudio(!0),i.setAudio(!1)}l!==a.playlistLoader?(r.track&&r.track(o),r.resetEverything(),Va(a.playlistLoader,s)):Va(a.playlistLoader,s)}})(n,e),t[n].getActiveGroup=((e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null})(n,e)});const a=t.AUDIO.activeGroup();if(a){const e=(a.filter(e=>e.default)[0]||a[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"vhs-audio-change"})};r.audioTracks().addEventListener("change",l),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",()=>{r.audioTracks().removeEventListener("change",l),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),r.clearTracks("audio");for(const c in t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[c])};class Za{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=$i(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Ja extends Ri.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Za,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Fi("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const n=t.serverUri||t.serverURL;if(!n)return this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),void this.trigger("error");n.startsWith("data:")?this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1)):(this.steeringManifest.reloadUri=$i(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const n=e?t:this.getRequestURI(t);if(!n)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();const r={contentSteeringInfo:{uri:n}};this.trigger({type:"contentsteeringloadstart",metadata:r}),this.request_=this.xhr_({uri:n,requestType:"content-steering-manifest"},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),void this.excludedSteeringManifestURLs.add(n);if(429===t.status){const n=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${n} seconds.`),void this.startTTLTimeout_(parseInt(n,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}let i;this.trigger({type:"contentsteeringloadcomplete",metadata:r});try{i=JSON.parse(this.request_.responseText)}catch(o){const e={errorType:Ri.Error.StreamingContentSteeringParserError,error:o};this.trigger({type:"error",metadata:e})}this.assignSteeringProperties_(i);const s={contentSteeringInfo:r.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:s}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const n=new t.default.URL(e),r=new t.default.URL(this.proxyServerUrl_);return r.searchParams.set("url",encodeURI(n.toString())),this.setSteeringParams_(r.toString())}decodeDataUriManifest_(e){const n=JSON.parse(t.default.atob(e));this.assignSteeringProperties_(n)}setSteeringParams_(e){const n=new t.default.URL(e),r=this.getPathway(),i=this.getBandwidth_();if(r){const e=`_${this.manifestType_}_pathway`;n.searchParams.set(e,r)}if(i){const e=`_${this.manifestType_}_throughput`;n.searchParams.set(e,i)}return n.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const n=this.setProxyServerUrl_(e);if(!t(n))return n}const n=this.setSteeringParams_(e);return t(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){const n=1e3*e;this.ttlTimeout_=t.default.setTimeout(()=>{this.requestSteeringManifest()},n)}clearTTLTimeout_(){t.default.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Za}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&($i(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let Qa;const el=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],tl=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class nl extends Ri.EventTarget{constructor(e){super(),this.fastQualityChange_=((e,t)=>{let n=null;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(null,r)},t)}})(this.fastQualityChange_.bind(this),100);const{src:n,withCredentials:r,tech:i,bandwidth:s,externVhs:o,useCueTags:a,playlistExclusionDuration:l,enableLowInitialPlaylist:c,sourceType:u,cacheEncryptionKeys:d,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:f,experimentalUseMMS:m}=e;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:_}=e;null==_&&(_=1/0),Qa=o,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=r,this.tech_=i,this.vhs_=i.vhs,this.player_=e.player_,this.sourceType_=u,this.useCueTags_=a,this.playlistExclusionDuration=l,this.maxPlaylistRetries=_,this.enableLowInitialPlaylist=c,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:r,maxPlaylistRetries:_,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:aa,activeTrack:aa,getActiveGroup:aa,onGroupChanged:aa,onTrackChanged:aa,lastTrack_:null,logger_:Fi(`MediaGroups[${t}]`)}}),e})(),m&&t.default.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new t.default.ManagedMediaSource,this.usingManagedMediaSource_=!0,Ri.log("Using ManagedMediaSource")):t.default.MediaSource&&(this.mediaSource=new t.default.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=Vi(),this.hasPlayed_=!1,this.syncController_=new ja(e),this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new Ba,this.sourceUpdater_=new xa(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Ua,this.keyStatusMap_=new Map;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:f,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new oo(n,this.vhs_,qi(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new $s(n,this.vhs_,qi(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new oa(qi(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new oa(qi(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Pa(qi(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function n(){i.off("vttjserror",r),e()}function r(){i.off("vttjsloaded",n),t()}i.one("vttjsloaded",n),i.one("vttjserror",r),i.addWebVttScript_()})}),e);this.contentSteeringController_=new Ja(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),el.forEach(e=>{this[e+"_"]=tl.bind(this,e)}),this.logger_=Fi("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const y="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(y,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,n){const r=this.media(),i=r&&(r.id||r.uri),s=e&&(e.id||e.uri);if(i&&i!==s){this.logger_(`switch media ${i} -> ${s} from ${t}`);const n={renditionInfo:{id:s,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:n}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],n=t?t.activeGroup():null,r=this.contentSteeringController_.getPathway();if(n&&r){const t=(n.length?n[0].playlists:n.playlists).filter(e=>e.attributes.serviceLocation===r);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=t.default.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(t.default.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const n=e.mediaGroups.AUDIO,r=Object.keys(n);let i;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{const e=n.main||r.length&&n[r[0]];for(const t in e)if(e[t].default){i={label:t};break}}if(!i)return t;const s=[];for(const o in n)if(n[o][i.label]){const t=n[o][i.label];if(t.playlists&&t.playlists.length)s.push.apply(s,t.playlists);else if(t.uri)s.push(t);else if(e.playlists.length)for(let n=0;n<e.playlists.length;n++){const t=e.playlists[n];t.attributes&&t.attributes.AUDIO&&t.attributes.AUDIO===o&&s.push(t)}}return s.length?s:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;hs(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Ya({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial");if(!("vhs-json"===this.sourceType_&&this.initialMedia_.segments))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;hs(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();if("playlist-unchanged"===e.lastExcludeReason_)return;this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})});["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger((0,s.default)({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const n=e.mediaGroups||{};let r=!0;const i=Object.keys(n.AUDIO);for(const s in n.AUDIO)for(const e in n.AUDIO[s]){n.AUDIO[s][e].uri||(r=!1)}r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Qa.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),r=this.bufferLowWaterLine(),i=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:r,bufferLowWaterLine:i,bufferHighWaterLine:s,duration:o,bufferBasedABR:a,log:l}){if(!r)return Ri.log.warn("We received no playlist to switch to. Please check your stream."),!1;const c=`allowing switch ${e&&e.id||"null"} -> ${r.id}`;if(!e)return l(`${c} as current playlist is not set`),!0;if(r.id===e.id)return!1;const u=Boolean(Ki(t,n).length);if(!e.endList)return u||"number"!=typeof e.partTargetDuration?(l(`${c} as current playlist is live`),!0):(l(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const d=Ji(t,n),h=a?ao.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ao.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return l(`${c} as duration < max low water line (${o} < ${h})`),!0;const p=r.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!a||d<s)){let e=`${c} as next bandwidth < current bandwidth (${p} < ${f})`;return a&&(e+=` and forwardBuffer < bufferHighWaterLine (${d} < ${s})`),l(e),!0}if((!a||p>f)&&d>=i){let e=`${c} as forwardBuffer >= bufferLowWaterLine (${d} >= ${i})`;return a&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${c} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:i
vendor: 2,813 bytes, line 704
704,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;const t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})
vendor: 46,695 bytes, line 704
704;["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger((0,s.default)({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger((0,s.default)({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger((0,s.default)({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const n=t.end(0);let r=n;if(e.start){const i=e.start.timeOffset;r=i<0?Math.max(n+i,t.start(0)):Math.min(n,i)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const n=Qa.Playlist.playlistEnd(e,t),r=this.tech_.currentTime(),i=this.tech_.buffered();if(!i.length)return n-r<=zi;const s=i.end(i.length-1);return s-r<=zi&&n-s<=zi}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,i=r.filter(us),s=1===i.length&&i[0]===e;if(1===r.length&&n!==1/0)return Ri.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(s);if(s){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),n=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},n)}let t=!1;r.forEach(n=>{if(n===e)return;const r=n.excludeUntil;void 0!==r&&r!==1/0&&(t=!0,delete n.excludeUntil)}),t&&(Ri.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;o=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*n,e.excludeUntil=o,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const a=this.selectPlaylist();if(!a)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:Ri.log.warn,c=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} Switching to playlist ${a.id}.`),a.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),a.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const u=a.targetDuration/2*1e3||5e3,d="number"==typeof a.lastRequest&&Date.now()-a.lastRequest<=u;return this.switchMedia_(a,"exclude",s||d)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const n=[],r="all"===e;(r||"main"===e)&&n.push(this.mainPlaylistLoader_);const i=[];(r||"audio"===e)&&i.push("AUDIO"),(r||"subtitle"===e)&&(i.push("CLOSED-CAPTIONS"),i.push("SUBTITLES")),i.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(t=>{const r=this[`${t}SegmentLoader_`];!r||e!==t&&"all"!==e||n.push(r)}),n.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=Ki(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Qa.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){const n=e.media();if(!n)return null;const r=this.syncController_.getMediaSequenceSync(t);if(r&&r.isReliable){const e=r.start,t=r.end;if(!isFinite(e)||!isFinite(t))return null;const i=Qa.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n);return Vi([[e,Math.max(e,t-i)]])}const i=this.syncController_.getExpiredTime(n,this.duration());if(null===i)return null;const s=Qa.Playlist.seekable(n,i,Qa.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n));return s.length?s:null}computeFinalSeekable_(e,t){if(!t)return e;const n=e.start(0),r=e.end(0),i=t.start(0),s=t.end(0);return i>r||n>s?e:Vi([[Math.max(n,i),Math.min(r,s)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!t))return;const n=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_)return;if(n&&n.length&&this.seekable_.length&&n.start(0)===this.seekable_.start(0)&&n.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${Xi(this.seekable_)}]`);const r={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:r}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let n=Qa.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(n=Math.max(n,t.end(t.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const n in t)t[n].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const n=Ps(this.main(),t),r={},i=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=n.video||e.main.videoCodec||l.DEFAULT_VIDEO_CODEC),e.main.isMuxed&&(r.video+=`,${n.audio||e.main.audioCodec||l.DEFAULT_AUDIO_CODEC}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||i)&&(r.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||l.DEFAULT_AUDIO_CODEC,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const s=(e,t)=>e?(0,l.browserSupportsCodec)(t,this.usingManagedMediaSource_):(0,l.muxerSupportsCodec)(t),o={};let a;if(["video","audio"].forEach(function(t){if(r.hasOwnProperty(t)&&!s(e[t].isFmp4,r[t])){const n=e[t].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(r[t]),"audio"===t&&(a=n)}}),i&&a&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach(n=>{(n.attributes&&n.attributes.AUDIO)===e&&n!==t&&(n.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${a} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const e=Object.keys(o).reduce((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${o[t].join(",")}"`),"")+".";return void this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const n=((0,l.parseCodecs)(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=((0,l.parseCodecs)(r[t]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${r[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return r}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(n=>{const r=e[n];if(-1!==t.indexOf(r.id))return;t.push(r.id);const i=Ps(this.main,r),s=[];!i.audio||(0,l.muxerSupportsCodec)(i.audio)||(0,l.browserSupportsCodec)(i.audio,this.usingManagedMediaSource_)||s.push(`audio codec ${i.audio}`),!i.video||(0,l.muxerSupportsCodec)(i.video)||(0,l.browserSupportsCodec)(i.video,this.usingManagedMediaSource_)||s.push(`video codec ${i.video}`),i.text&&"stpp.ttml.im1t"===i.text&&s.push(`text codec ${i.text}`),s.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${s.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],n=this.main().playlists,r=Is((0,l.parseCodecs)(e)),i=As(r),s=r.video&&(0,l.parseCodecs)(r.video)[0]||null,o=r.audio&&(0,l.parseCodecs)(r.audio)[0]||null;Object.keys(n).forEach(e=>{const r=n[e];if(-1!==t.indexOf(r.id)||r.excludeUntil===1/0)return;t.push(r.id);const a=[],c=Ps(this.mainPlaylistLoader_.main,r),u=As(c);if(c.audio||c.video){if(u!==i&&a.push(`codec count "${u}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){const e=c.video&&(0,l.parseCodecs)(c.video)[0]||null,t=c.audio&&(0,l.parseCodecs)(c.audio)[0]||null;e&&s&&e.type.toLowerCase()!==s.type.toLowerCase()&&a.push(`video codec "${e.type}" !== "${s.type}"`),t&&o&&t.type.toLowerCase()!==o.type.toLowerCase()&&a.push(`audio codec "${t.type}" !== "${o.type}"`)}a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id}: ${a.join(" && ")}`))}})}updateAdCues_(e){let n=0;const r=this.seekable();r.length&&(n=r.start(0)),function(e,n,r=0){if(!e.segments)return;let i,s=r;for(let o=0;o<e.segments.length;o++){const r=e.segments[o];if(i||(i=Oa(n,s+r.duration/2)),i){if("cueIn"in r){i.endTime=s,i.adEndTime=s,s+=r.duration,i=null;continue}if(s<i.endTime){s+=r.duration;continue}i.endTime+=r.duration}else if("cueOut"in r&&(i=new t.default.VTTCue(s,s+r.duration,r.cueOut),i.adStartTime=s,i.adEndTime=s+parseFloat(r.cueOut),n.addCue(i)),"cueOutCont"in r){const[e,o]=r.cueOutCont.split("/").map(parseFloat);i=new t.default.VTTCue(s,s+r.duration,""),i.adStartTime=s-e,i.adEndTime=i.adStartTime+o,n.addCue(i)}s+=r.duration}}(e,this.cueTagsTrack_,n)}goalBufferLength(){const e=this.tech_.currentTime(),t=ao.GOAL_BUFFER_LENGTH,n=ao.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,ao.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=ao.BUFFER_LOW_WATER_LINE,n=ao.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,ao.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(t,ao.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?i:r)}bufferHighWaterLine(){return ao.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Xo(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:n})=>{const r=e.metadataTrack_;if(!r)return;const i=t.default.WebKitDataCue||t.default.VTTCue;n.forEach(e=>{for(const t of Object.keys(e)){if(Wo.has(t))continue;const n=new i(e.startTime,e.endTime,"");n.id=e.id,n.type="com.apple.quicktime.HLS",n.value={key:Ko[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(n.value.data=new Uint8Array(n.value.data.match(/[\da-f]{2}/gi)).buffer),r.addCue(n)}e.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,n){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Xo(this.inbandTextTracks_,e,this.tech_),Go({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this));["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger((0,s.default)({},e))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const t=this.contentSteeringController_.getAvailablePathways(),n=[];for(const r of e.playlists){const e=r.attributes.serviceLocation;if(e&&(n.push(e),!t.has(e)))return!0}return!(n.length||!t.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,n=new Set;let r=!1;Object.keys(t).forEach(i=>{const s=t[i],o=this.pathwayAttribute_(s),a=o&&e!==o;s.excludeUntil===1/0&&"content-steering"===s.lastExcludeReason_&&!a&&(delete s.excludeUntil,delete s.lastExcludeReason_,r=!0);const l=!s.excludeUntil&&s.excludeUntil!==1/0;!n.has(s.id)&&a&&l&&(n.add(s.id),s.excludeUntil=1/0,s.lastExcludeReason_="content-steering",this.logger_(`excluding ${s.id} for ${s.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const n=this.mediaTypes_[t];if(n.activePlaylistLoader){const t=n.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,n=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||n&&n.size){for(const[e,r]of t.entries()){n.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(r),this.contentSteeringController_.excludePathway(e))}for(const[r,i]of n.entries()){const n=t.get(r);if(!n){e.filter(e=>e.attributes["PATHWAY-ID"]===i["BASE-ID"]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(i,e)}),this.contentSteeringController_.addAvailablePathway(r);continue}this.equalPathwayClones_(n,i)||(this.mainPlaylistLoader_.updateOrDeleteClone(i,!0),this.contentSteeringController_.addAvailablePathway(r))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...n])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const n=e["URI-REPLACEMENT"].PARAMS,r=t["URI-REPLACEMENT"].PARAMS;for(const i in n)if(n[i]!==r[i])return!1;for(const i in r)if(n[i]!==r[i])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(n=>{const r=this.mainPlaylistLoader_.getKeyIdSet(n);r&&r.size&&r.forEach(r=>{const i="usable",s=this.keyStatusMap_.has(r)&&this.keyStatusMap_.get(r)===i,o=n.lastExcludeReason_===t&&n.excludeUntil===1/0;s?s&&o&&(delete n.excludeUntil,delete n.lastExcludeReason_,this.logger_(`enabling playlist ${n.id} because key ID ${r} is ${i}`)):(n.excludeUntil!==1/0&&n.lastExcludeReason_!==t&&(n.excludeUntil=1/0,n.lastExcludeReason_=t,this.logger_(`excluding playlist ${n.id} because the key ID ${r} doesn't exist in the keyStatusMap or is not ${i}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{const n=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,r=e.excludeUntil===1/0&&e.lastExcludeReason_===t;n&&r&&(delete e.excludeUntil,Ri.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const n=("string"==typeof e?e:(e=>{const t=new Uint8Array(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${n} added to the keyStatusMap`),this.keyStatusMap_.set(n,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class rl{constructor(e,t,n){const{playlistController_:r}=e,i=r.fastQualityChange_.bind(r);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}var s,o,a;this.codecs=Ps(r.main(),t),this.playlist=t,this.id=n,this.enabled=(s=e.playlists,o=t.id,a=i,e=>{const t=s.main.playlists[o],n=cs(t),r=us(t);if(void 0===e)return r;e?delete t.disabled:t.disabled=!0;const i={renditionInfo:{id:o,bandwidth:t.attributes.BANDWIDTH,resolution:t.attributes.RESOLUTION,codecs:t.attributes.CODECS},cause:"fast-quality"};return e===r||n||(e?(a(t),s.trigger({type:"renditionenabled",metadata:i})):s.trigger({type:"renditiondisabled",metadata:i})),e})}}const il=["seeking","seeked","pause","playing","error"];class sl extends Ri.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Fi("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),r=()=>this.monitorCurrentTime_(),i=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),o=this.playlistController_,a=["main","subtitle","audio"],l={};a.forEach(e=>{l[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},o[`${e}SegmentLoader_`].on("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].on("playlistupdate",l[e].reset),this.tech_.on(["seeked","seeking"],l[e].reset)});const c=e=>{["main","audio"].forEach(t=>{o[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=()=>c("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(il,s),this.tech_.on("canplay",r),this.tech_.one("play",n),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",i),this.tech_.off(il,s),this.tech_.off("canplay",r),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(e=>{o[`${e}SegmentLoader_`].off("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].off("playlistupdate",l[e].reset),this.tech_.off(["seeked","seeking"],l[e].reset)}),this.checkCurrentTimeTimeout_&&t.default.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&t.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=t.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,n=t[`${e}SegmentLoader_`],r=n.buffered_(),i=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[`${e}Buffered_`],r);if(this[`${e}Buffered_`]=r,i){const n={bufferedRanges:r};return t.trigger({type:"bufferedrangeschanged",metadata:n}),void this.resetSegmentDownloads_(e)}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:n.playlist_&&n.playlist_.id,buffered:Yi(r)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+zi>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Vi([this.lastRecordedTime,e]));const t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let n;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)){n=e.end(e.length-1)}if(this.beforeSeekableWindow_(e,t)){const t=e.start(0);n=t+(t===e.end(0)?0:zi)}if(void 0!==n)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${Xi(e)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const r=this.playlistController_.sourceUpdater_,i=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,a=this.media(),l=a.partTargetDuration?a.partTargetDuration:2*(a.targetDuration-Hi),c=[s,o];for(let d=0;d<c.length;d++){if(!c[d])continue;if(Ji(c[d],t)<l)return!1}const u=Wi(i,t);return 0!==u.length&&(n=u.start(0)+zi,this.logger_(`Buffered region starts (${u.start(0)}) just beyond seek point (${t}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Ki(t,e);return n.length&&e+3<=n.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${n.start(0)} -> ${n.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const n=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${n}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const n=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const i=Wi(r,t);return i.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${i.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,n,r=!1){if(!e.length)return!1;let i=e.end(e.length-1)+zi;const s=!n.endList,o="number"==typeof n.partTargetDuration;return s&&(o||r)&&(i=e.end(e.length-1)+3*n.targetDuration),t>i}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:n}){if(!e)return;let r;if(e.length&&t.length){const i=Ki(e,n-3),s=Ki(e,n),o=Ki(t,n);o.length&&!s.length&&i.length&&(r={start:i.end(0),end:o.end(0)})}else{Wi(e,n).length||(r=this.gapFromVideoUnderflow_(e,n))}return!!r&&(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${n}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),n=this.tech_.currentTime(),r=Wi(t,n);if(this.resetTimeUpdate_(),0===r.length||n!==e)return;this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Hi);const i={gapInfo:{from:n,to:r.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:i}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const n=function(e){if(e.length<2)return Vi();const t=[];for(let n=1;n<e.length;n++){const r=e.end(n-1),i=e.start(n);t.push([r,i])}return Vi(t)}(e);for(let r=0;r<n.length;r++){const e=n.start(r),i=n.end(r);if(t-e<4&&t-e>2)return{start:e,end:i}}return null}}const ol={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},al=function(e,t){let n=0,r=0;const i=qi(ol,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const s=function(){r&&e.currentTime(r)},o=function(t){null!=t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",s),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},a=function(){if(Date.now()-n<1e3*i.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(i.getSource&&"function"==typeof i.getSource)return n=Date.now(),i.getSource.call(e,o);Ri.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",s),e.off("error",a),e.off("dispose",l)};e.on("error",a),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),al(e,t)}},ll=function(e){al(this,e)};var cl="3.17.2";const ul={PlaylistLoader:$s,Playlist:_s,utils:Ys,STANDARD_PLAYLIST_SELECTOR:Ho,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(_s.isEnabled);Fo(e,(e,t)=>qo(e,t));return e.filter(e=>!!Ps(this.playlists.main,e).video)[0]||null},lastBandwidthSelector:Ho,movingAverageBandwidthSelector:function(e){let n=-1,r=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&t.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),n<0&&(n=this.systemBandwidth,r=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==r&&(n=e*this.systemBandwidth+(1-e)*n,r=this.systemBandwidth),Vo({main:this.playlists.main,bandwidth:n,playerWidth:parseInt(Bo(this.tech_.el(),"width"),10)*i,playerHeight:parseInt(Bo(this.tech_.el(),"height"),10)*i,playerObjectFit:this.usePlayerObjectFit?Bo(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},comparePlaylistBandwidth:qo,comparePlaylistResolution:function(e,n){let r,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(r=e.attributes.RESOLUTION.width),r=r||t.default.Number.MAX_VALUE,n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&(i=n.attributes.RESOLUTION.width),i=i||t.default.Number.MAX_VALUE,r===i&&e.attributes.BANDWIDTH&&n.attributes.BANDWIDTH?e.attributes.BANDWIDTH-n.attributes.BANDWIDTH:r-i},xhr:Fs()};Object.keys(ao).forEach(e=>{Object.defineProperty(ul,e,{get:()=>(Ri.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),ao[e]),set(t){Ri.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?Ri.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):ao[e]=t}})});const dl="videojs-vhs",hl=function(e,t){const n=t.media();let r=-1;for(let i=0;i<e.length;i++)if(e[i].id===n.id){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})};ul.canPlaySource=function(){return Ri.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const pl=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:r})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const i=((e,t)=>e.reduce((e,n)=>{if(!n.contentProtection)return e;const r=t.reduce((e,t)=>{const r=n.contentProtection[t];return r&&r.pssh&&(e[t]={pssh:r.pssh}),e},{});return Object.keys(r).length&&e.push(r),e},[]))(n?r.concat([n]):r,Object.keys(t)),s=[],o=[];return i.forEach(t=>{o.push(new Promise((t,n)=>{e.tech_.one("keysessioncreated",t)})),s.push(new Promise((n,r)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?r(e):n()})}))}),Promise.race([Promise.all(s),Promise.race(o)])},fl=({player:e,sourceKeySystems:t,media:n,audioMedia:r})=>{const i=((e,t,n)=>{if(!e)return e;let r={};t&&t.attributes&&t.attributes.CODECS&&(r=Is((0,l.parseCodecs)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(r.audio=n.attributes.CODECS);const i=(0,l.getMimeForCodec)(r.video),s=(0,l.getMimeForCodec)(r.audio),o={};for(const a in e)o[a]={},s&&(o[a].audioContentType=s),i&&(o[a].videoContentType=i),t.contentProtection&&t.contentProtection[a]&&t.contentProtection[a].pssh&&(o[a].pssh=t.contentProtection[a].pssh),"string"==typeof e[a]&&(o[a].url=e[a]);return qi(e,o)})(t,n,r);return!!i&&(e.currentSource().keySystems=i,!(i&&!e.eme)||(Ri.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},ml=()=>{if(!t.default.localStorage)return null;const e=t.default.localStorage.getItem(dl);if(!e)return null;try{return JSON.parse(e)}catch(CL){return null}},_l=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},gl=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},yl=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},vl=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};ul.supportsNativeHls=function(){if(!n.default||!n.default.createElement)return!1;const e=n.default.createElement("video");if(!Ri.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),ul.supportsNativeDash=!!(n.default&&n.default.createElement&&Ri.getTech("Html5").isSupported())&&/maybe|probably/i.test(n.default.createElement("video").canPlayType("application/dash+xml")),ul.supportsTypeNatively=e=>"hls"===e?ul.supportsNativeHls:"dash"===e&&ul.supportsNativeDash,ul.isSupported=function(){return Ri.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},ul.xhr.onRequest=function(e){_l(ul.xhr,e)},ul.xhr.onResponse=function(e){gl(ul.xhr,e)},ul.xhr.offRequest=function(e){yl(ul.xhr,e)},ul.xhr.offResponse=function(e){vl(ul.xhr,e)};const bl=Ri.getComponent("Component");class wl extends bl{constructor(e,t,r){if(super(t,r.vhs),"number"==typeof r.initialBandwidth&&(this.options_.bandwidth=r.initialBandwidth),this.logger_=Fi("VhsHandler"),t.options_&&t.options_.playerId){const e=Ri.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(n.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=n.default.fullscreenElement||n.default.webkitFullscreenElement||n.default.mozFullScreenElement||n.default.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=qi(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=void 0===this.options_.useNetworkInformationApi||this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=ml();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=ao.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ao.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,n){if(!e)return;var r;this.setOptions_(),this.options_.src=0===(r=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(r.substring(r.indexOf(",")+1)):r,this.options_.tech=this.tech_,this.options_.externVhs=ul,this.options_.sourceType=(0,c.simpleTypeFromSourceType)(n),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new nl(this.options_);const i=qi({liveRangeSafeTimeDelta:zi},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new sl(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const e=Ri.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?ul.movingAverageBandwidthSelector(.55):ul.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=ul.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const n=t.default.navigator.connection||t.default.navigator.mozConnection||t.default.navigator.webkitConnection,r=1e7;if(this.options_.useNetworkInformationApi&&n){const t=1e3*n.downlink*1e3;e=t>=r&&e>=r?Math.max(e,t):t}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;t=this.throughput>0?1/this.throughput:0;return Math.floor(1/(e+t))},set(){Ri.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Yi(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Yi(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!t.default.localStorage)return!1;let n=ml();n=n?qi(n,e):e;try{t.default.localStorage.setItem(dl,JSON.stringify(n))}catch(CL){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{var e;(e=this).representations=()=>{const t=e.playlistController_.main(),n=ms(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(e=>!cs(e)).map((t,n)=>new rl(e,t,t.id)):[]}}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=t.default.URL.createObjectURL(this.playlistController_.mediaSource),(Ri.browser.IS_ANY_SAFARI||Ri.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),pl({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media ke
704ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=fl({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=Ri.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{var e,t;e=this.qualityLevels_,(t=this).representations().forEach(t=>{e.addQualityLevel(t)}),hl(e,t.playlists)}),this.playlists.on("mediachange",()=>{hl(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":cl,"mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return xa.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&t.default.URL.revokeObjectURL&&(t.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return Zs({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,n=!0,r=2){return Js({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{_l(this.xhr,e)},this.xhr.onResponse=e=>{gl(this.xhr,e)},this.xhr.offRequest=e=>{yl(this.xhr,e)},this.xhr.offResponse=e=>{vl(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger((0,s.default)({},e))})}),["gapjumped","playedrangeschanged"].forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger((0,s.default)({},e))})})}}const kl={name:"videojs-http-streaming",VERSION:cl,canHandleSource(e,t={}){const n=qi(Ri.options,t);return!(!n.vhs.experimentalUseMMS&&!(0,l.browserSupportsCodec)("avc1.4d400d,mp4a.40.2",!1))&&kl.canPlayType(e.type,n)},handleSource(e,t,n={}){const r=qi(Ri.options,n);return t.vhs=new wl(e,t,r),t.vhs.xhr=Fs(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=(0,c.simpleTypeFromSourceType)(e);if(!n)return"";const r=kl.getOverrideNative(t);return!ul.supportsTypeNatively(n)||r?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(Ri.browser.IS_ANY_SAFARI||Ri.browser.IS_IOS),{overrideNative:r=n}=t;return r}};return(0,l.browserSupportsCodec)("avc1.4d400d,mp4a.40.2",!0)&&Ri.getTech("Html5").registerSourceHandler(kl,0),Ri.VhsHandler=wl,Ri.VhsSourceHandler=kl,Ri.Vhs=ul,Ri.use||Ri.registerComponent("Vhs",ul),Ri.options.vhs=Ri.options.vhs||{},Ri.getPlugin&&Ri.getPlugin("reloadSourceOnError")||Ri.registerPlugin("reloadSourceOnError",ll),hE}const BP=Xa($P());var FP,qP,VP,HP={}; 705/** 706 * @license 707 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 708 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 709 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 710 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 711 * Code distributed by Google as part of the polymer project is also 712 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 713 */function zP(){return FP||(FP=1,function(){window.WebComponents=window.WebComponents||{flags:{}};var e=document.querySelector('script[src*="webcomponents-lite.js"]'),t={};if(!t.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var n,r=e.split("=");r[0]&&(n=r[0].match(/wc-(.+)/))&&(t[n[1]]=r[1]||!0)}),e)for(var n,r=0;n=e.attributes[r];r++)"src"!==n.name&&(t[n.name]=n.value||!0);if(t.log&&t.log.split){var i=t.log.split(",");t.log={}
713,i.forEach(function(e){t.log[e]=!0})}else t.log={}}t.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=t.register),WebComponents.flags=t}(),function(e){var t=!1;if(!e.forceJURL)try{var n=new URL("b","http://a");n.pathname="c%20d",t="http://a/c%20d"===n.href}catch(CL){}if(!t){var r=Object.create(null);r.ftp=21,r.file=0,r.gopher=70,r.http=80,r.https=443,r.ws=80,r.wss=443;var i=Object.create(null);i["%2e"]=".",i[".%2e"]="..",i["%2e."]="..",i["%2e%2e"]="..";var s=void 0,o=/[a-zA-Z]/,a=/[a-zA-Z0-9\+\-\.]/;_.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""==this._username&&null==this._password||(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){m.call(this),f.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||f.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],f.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),f.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),f.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this._scheme+"://"+e:""}};var l=e.URL;l&&(_.createObjectURL=function(e){return l.createObjectURL.apply(l,arguments)},_.revokeObjectURL=function(e){l.revokeObjectURL(e)}),e.URL=_}function c(e){return void 0!==r[e]}function u(){m.call(this),this._isInvalid=!0}function d(e){return""==e&&u.call(this),e.toLowerCase()}function h(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function p(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}
713function f(e,t,n){var l=t||"scheme start",f=0,m="",_=!1,g=!1;e:for(;(e[f-1]!=s||0==f)&&!this._isInvalid;){var y=e[f];switch(l){case"scheme start":if(!y||!o.test(y)){if(t)break e;m="",l="no scheme";continue}m+=y.toLowerCase(),l="scheme";break;case"scheme":if(y&&a.test(y))m+=y.toLowerCase();else{if(":"!=y){if(t){if(s==y)break e;break e}m="",f=0,l="no scheme";continue}if(this._scheme=m,m="",t)break e;c(this._scheme)&&(this._isRelative=!0),l="file"==this._scheme?"relative":this._isRelative&&n&&n._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==y?(this._query="?",l="query"):"#"==y?(this._fragment="#",l="fragment"):s!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this._schemeData+=h(y));break;case"no scheme":if(n&&c(n._scheme)){l="relative";continue}u.call(this);break;case"relative or authority":if("/"!=y||"/"!=e[f+1]){l="relative";continue}l="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=n._scheme),s==y){this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._username=n._username,this._password=n._password;break e}if("/"==y||"\\"==y)l="relative slash";else if("?"==y)this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query="?",this._username=n._username,this._password=n._password,l="query";else{if("#"!=y){var v=e[f+1],b=e[f+2];("file"!=this._scheme||!o.test(y)||":"!=v&&"|"!=v||s!=b&&"/"!=b&&"\\"!=b&&"?"!=b&&"#"!=b)&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password,this._path=n._path.slice(),this._path.pop()),l="relative path";continue}this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._fragment="#",this._username=n._username,this._password=n._password,l="fragment"}break;case"relative slash":if("/"!=y&&"\\"!=y){"file"!=this._scheme&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password),l="relative path";continue}l="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=y){l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!=y)continue;break;case"authority ignore slashes":if("/"!=y&&"\\"!=y){l="authority";continue}break;case"authority":if("@"==y){_&&(m+="%40"),_=!0;for(var w=0;w<m.length;w++){var k=m[w];if("\t"!=k&&"\n"!=k&&"\r"!=k)if(":"!=k||null!==this._password){var C=h(k);null!==this._password?this._password+=C:this._username+=C}else this._password=""}m=""}else{if(s==y||"/"==y||"\\"==y||"?"==y||"#"==y){f-=m.length,m="",l="host";continue}m+=y}break;case"file host":if(s==y||"/"==y||"\\"==y||"?"==y||"#"==y){2!=m.length||!o.test(m[0])||":"!=m[1]&&"|"!=m[1]?(0==m.length||(this._host=d.call(this,m),m=""),l="relative path start"):l="relative path";continue}"\t"==y||"\n"==y||"\r"==y||(m+=y);break;case"host":case"hostname":if(":"!=y||g){if(s==y||"/"==y||"\\"==y||"?"==y||"#"==y){if(this._host=d.call(this,m),m="",l="relative path start",t)break e;continue}"\t"!=y&&"\n"!=y&&"\r"!=y&&("["==y?g=!0:"]"==y&&(g=!1),m+=y)}else if(this._host=d.call(this,m),m="",l="port","hostname"==t)break e;break;case"port":if(/[0-9]/.test(y))m+=y;else{if(s==y||"/"==y||"\\"==y||"?"==y||"#"==y||t){if(""!=m){var T=parseInt(m,10);T!=r[this._scheme]&&(this._port=T+""),m=""}if(t)break e;l="relative path start";continue}"\t"==y||"\n"==y||"\r"==y||u.call(this)}break;case"relative path start":if(l="relative path","/"!=y&&"\\"!=y)continue;break;case"relative path":var S;if(s!=y&&"/"!=y&&"\\"!=y&&(t||"?"!=y&&"#"!=y))"\t"!=y&&"\n"!=y&&"\r"!=y&&(m+=h(y));else(S=i[m.toLowerCase()])&&(m=S),".."==m?(this._path.pop(),"/"!=y&&"\\"!=y&&this._path.push("")):"."==m&&"/"!=y&&"\\"!=y?this._path.push(""):"."!=m&&("file"==this._scheme&&0==this._path.length&&2==m.length&&o.test(m[0])&&"|"==m[1]&&(m=m[0]+":"),this._path.push(m)),m="","?"==y?(this._query="?",l="query"):"#"==y&&(this._fragment="#",l="fragment");break;case"query":t||"#"!=y?s!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this._query+=p(y)):(this._fragment="#",l="fragment");break;case"fragment":s!=y&&"\t"!=y&&"\n"!=y&&"\r"!=y&&(this._fragment+=y)}f++}}function m(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function _(e,t){void 0===t||t instanceof _||(t=new _(String(t))),this._url=e,m.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");f.call(this,n,null,t)}}(self),"undefined"==typeof WeakMap&&(e=Object.defineProperty,t=Date.now()%1e9,(n=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"}).prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=n),function(e){if(!e.JsMutationObserver){var t,n=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var r=[],i=String(Math.random());window.addEventListener("message",function(e){if(e.data===i){var t=r;r=[],t.forEach(function(e){e()})}}),t=function(e){r.push(e),window.postMessage(i,"*")}}var s,o,a=!1,l=[],c=0;h.prototype={observe:function(e,t){var r;if(r=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(r)||r,!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var i,s=n.get(e);s||n.set(e,s=[]);for(var o=0;o<s.length;o++)if(s[o].observer===this){(i=s[o]).removeListeners(),i.options=t;break}i||(i=new g(this,e,t),s.push(i),this.nodes_.push(e)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=n.get(e),r=0;r<t.length;r++){var i=t[r];
713if(i.observer===this){i.removeListeners(),t.splice(r,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},g.prototype={enqueue:function(e){var n,r=this.observer.records_,i=r.length;if(r.length>0){var s=_(r[i-1],e);if(s)return void(r[i-1]=s)}else n=this.observer,l.push(n),a||(a=!0,t(u));r[i]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=n.get(e);t||n.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=n.get(e),r=0;r<t.length;r++)if(t[r]===this){t.splice(r,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target;(a=new f("attributes",r)).attributeName=t,a.attributeNamespace=n;var i=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;d(r,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?m(i):a});break;case"DOMCharacterDataModified":var a=f("characterData",r=e.target);i=e.prevValue;d(r,function(e){if(e.characterData)return e.characterDataOldValue?m(i):a});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,c,u=e.target;"DOMNodeInserted"===e.type?(l=[u],c=[]):(l=[],c=[u]);var h=u.previousSibling,p=u.nextSibling;(a=f("childList",e.target.parentNode)).addedNodes=l,a.removedNodes=c,a.previousSibling=h,a.nextSibling=p,d(e.relatedNode,function(e){if(e.childList)return a})}s=o=void 0}},e.JsMutationObserver=h,e.MutationObserver||(e.MutationObserver=h,h._isPolyfilled=!0)}function u(){a=!1;var e=l;l=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var r=e.takeRecords();!function(e){e.nodes_.forEach(function(t){var r=n.get(t);r&&r.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}(e),r.length&&(e.callback_(r,e),t=!0)}),t&&u()}function d(e,t){for(var r=e;r;r=r.parentNode){var i=n.get(r);if(i)for(var s=0;s<i.length;s++){var o=i[s],a=o.options;if(r===e||a.subtree){var l=t(a);l&&o.enqueue(l)}}}}function h(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function f(e,t){return s=new p(e,t)}function m(e){return o||((n=new p((t=s).type,t.target)).addedNodes=t.addedNodes.slice(),n.removedNodes=t.removedNodes.slice(),n.previousSibling=t.previousSibling,n.nextSibling=t.nextSibling,n.attributeName=t.attributeName,n.attributeNamespace=t.attributeNamespace,n.oldValue=t.oldValue,(o=n).oldValue=e,o);var t,n}function _(e,t){return e===t?e:o&&((n=e)===o||n===s)?o:null;var n}function g(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(self),function(){var e,t="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&(e=document.importNode,document.importNode=function(){var t=e.apply(document,arguments);if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=document.createDocumentFragment();return n.appendChild(t),n}return t});var n=function(){if(!t){var e=document.createElement("template"),n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var r=e.cloneNode(!0);return 0===r.content.childNodes.length||0===r.content.firstChild.content.childNodes.length}}(),r="template",i=function(){};if(t){let e=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";
713case"Â ":return" "}},t=function(t){return t.replace(u,e)};var s=document.implementation.createHTMLDocument("template"),o=!0,a=document.createElement("style");a.textContent=r+"{display:none;}";var l=document.head;l.insertBefore(a,l.firstElementChild),i.prototype=Object.create(HTMLElement.prototype),i.decorate=function(e){if(!e.content){var n;for(e.content=s.createDocumentFragment();n=e.firstChild;)e.content.appendChild(n);if(e.cloneNode=function(e){return i.cloneNode(this,e)},o)try{Object.defineProperty(e,"innerHTML",{get:function(){for(var e="",n=this.content.firstChild;n;n=n.nextSibling)e+=n.outerHTML||t(n.data);return e},set:function(e){for(s.body.innerHTML=e,i.bootstrap(s);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;s.body.firstChild;)this.content.appendChild(s.body.firstChild)},configurable:!0})}catch(r){o=!1}i.bootstrap(e.content)}},i.bootstrap=function(e){for(var t,n=e.querySelectorAll(r),s=0,o=n.length;s<o&&(t=n[s]);s++)i.decorate(t)},document.addEventListener("DOMContentLoaded",function(){i.bootstrap(document)});var c=document.createElement;document.createElement=function(){var e=c.apply(document,arguments);return"template"===e.localName&&i.decorate(e),e};var u=/[&\u00A0<>]/g}if(t||n){var d=Node.prototype.cloneNode;i.cloneNode=function(e,t){var n=d.call(e,!1);return this.decorate&&this.decorate(n),t&&(n.content.appendChild(d.call(e.content,!0)),this.fixClonedDom(n.content,e.content)),n},i.fixClonedDom=function(e,t){if(t.querySelectorAll)for(var n,i,s=t.querySelectorAll(r),o=e.querySelectorAll(r),a=0,l=o.length;a<l;a++)i=s[a],n=o[a],this.decorate&&this.decorate(i),n.parentNode.replaceChild(i.cloneNode(!0),n)};var h=document.importNode;Node.prototype.cloneNode=function(e){var t=d.call(this,e);return e&&i.fixClonedDom(t,this),t},document.importNode=function(e,t){if(e.localName===r)return i.cloneNode(e,t);var n=h.call(document,e,t);return t&&i.fixClonedDom(n,e),n},n&&(HTMLTemplateElement.prototype.cloneNode=function(e){return i.cloneNode(this,e)})}t&&(window.HTMLTemplateElement=i)}(),function(){if(!window.performance||!window.performance.now){var e=Date.now();window.performance={now:function(){return Date.now()-e}}}var t,n;if(window.requestAnimationFrame||(window.requestAnimationFrame=(t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)?function(e){return t(function(){e(performance.now())})}:function(e){return window.setTimeout(e,1e3/60)}),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}),!((n=document.createEvent("Event")).initEvent("foo",!0,!0),n.preventDefault(),n.defaultPrevented)){var r=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(r.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var i=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||i&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||i&&"function"!=typeof window.Event){var s=window.Event;window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Event.prototype=s.prototype}}(),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){var t="import",n=Boolean(t in document.createElement("link")),r=Boolean(window.ShadowDOMPolyfill),i=function(e){return r?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},s=i(document),o={get:function(){var e=window.HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null);return i(e)},configurable:!0};Object.defineProperty(document,"_currentScript",o),Object.defineProperty(s,"_currentScript",o);var a=/Trident/.test(navigator.userAgent);function l(e,t){d(function(){!function(e,t){var n=t.querySelectorAll("link[rel=import]"),r=0,i=n.length,s=[],o=[];function a(){r==i&&e&&e({allImports:n,loadedImports:s,errorImports:o})}function l(e){h(e),s.push(this),r++,a()}function c(e){o.push(this),r++,a()}if(i)for(var u,d=0;d<i&&(u=n[d]);d++)p(u)?(s.push(this),r++,a()):(u.addEventListener("load",l),u.addEventListener("error",c));else a()}(e,t)},t=t||s)}var c=a?"complete":"interactive",u="readystatechange";function d(e,t){if(function(e){return"complete"===e.readyState||e.readyState===c}(t))e&&e();else{var n=function(){"complete"!==t.readyState&&t.readyState!==c||(t.removeEventListener(u,n),d(e,t))};t.addEventListener(u,n)}}function h(e){e.target.__loaded=!0}function p(e){return n?e.__loaded||e.import&&"loading"!==e.import.readyState:e.__importParsed}if(n){let e=function(e){for(var r,i=0,s=e.length;i<s&&(r=e[i]);i++)t(r)&&n(r)},t=function(e){return"link"===e.localName&&"import"===e.rel},n=function(e){e.import?h({target:e}):(e.addEventListener("load",h),e.addEventListener("error",h))};new MutationObserver(function(t){for(var n,r=0,i=t.length;r<i&&(n=t[r]);r++)n.addedNodes&&e(n.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=import]"),r=0,i=t.length;r<i&&(e=t[r]);r++)n(e)}()}l(function(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(new Date).getTime();var t=s.createEvent("CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),s.dispatchEvent(t)}),e.IMPORT_LINK_TYPE=t,e.useNative=n,e.rootDocument=s,e.whenReady=l,e.isIE=a}(window.HTMLImports),r=window.HTMLImports,i=[],r.addModule=function(e){i.push(e)}
713,r.initializeModules=function(){i.forEach(function(e){e(r)})},window.HTMLImports.addModule(function(e){var t=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){var n=e.ownerDocument.createElement("a");return e.textContent=this.resolveUrlsInCssText(e.textContent,t,n),e},resolveUrlsInCssText:function(e,r,i){var s=this.replaceUrls(e,i,r,t);return s=this.replaceUrls(s,i,r,n)},replaceUrls:function(e,t,n,r){return e.replace(r,function(e,r,i,s){var o=i.replace(/["']/g,"");return n&&(o=new URL(o,n).href),t.href=o,r+"'"+(o=t.href)+"'"+s})}};e.path=r}),window.HTMLImports.addModule(function(e){var t={async:!0,ok:function(e){return e.status>=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,i){var s=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Math.random()),s.open("GET",n,t.async),s.addEventListener("readystatechange",function(e){if(4===s.readyState){var n=null;try{var o=s.getResponseHeader("Location");o&&(n="/"===o.substr(0,1)?location.origin+o:o)}catch(a){console.error(a.message)}r.call(i,!t.ok(s)&&s,s.response||s.responseText,n)}}),s.send(),s},loadDocument:function(e,t,n){this.load(e,t,n).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(function(e){var t=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDone()},require:function(e){var t=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){return this.pending[e]?(this.pending[e].push(t),!0):this.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load,e)if(e.match(/^data:/)){var i=e.split(","),s=i[0],o=i[1];o=s.indexOf(";base64")>-1?atob(o):decodeURIComponent(o),setTimeout(function(){this.receive(e,r,null,o)}.bind(this),0)}else{var a=function(t,n,i){this.receive(e,r,t,n,i)}.bind(this);t.load(e,a)}else setTimeout(function(){this.receive(e,r,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,i){this.cache[e]=r;for(var s,o=this.pending[e],a=0,l=o.length;a<l&&(s=o[a]);a++)this.onload(e,s,r,n,i),this.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),window.HTMLImports.addModule(function(e){var t=function(e){this.addCallback=e,this.mo=new MutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){var t=e.path,n=e.rootDocument,r=e.flags,i=e.isIE,s=e.IMPORT_LINK_TYPE,o="link[rel="+s+"]",a={documentSelectors:o,importsSelectors:[o,"link[rel=stylesheet]:not([type])","style:not([type])","script:not([type])",'script[type="application/javascript"]','script[type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},dynamicElements:[],parseNext:function(){var e=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))r.parse&&e.localName;else{var t=this[this.map[e.localName]];t&&(this.markParsing(e),t.call(this,e))}},parseDynamic:function(e,t){this.dynamicElements.push(e),t||this.parseNext()},markParsing:function(e){r.parse,this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=null,r.parse},markDynamicParsingComplete:function(e){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(e.import=e.__doc,window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e.import&&(e.import.__importParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEvent(new CustomEvent("load",{bubbles:!1})):e.dispatchEvent(new CustomEvent("error",{bubbles:!1})),e.__pending)for(var t;e.__pending.length;)(t=e.__pending.shift())&&t({target:e});this.parseNext()},parseLink:function(e){l(e)?this.parseImport(e):(e.href=e.href,this.parseGeneric(e))},parseStyle:function(e){var n,r,i=e;(r=(n=e).ownerDocument.createElement("style")).textContent=n.textContent,t.resolveUrlsInStyle(r),e=r,i.__appliedElement=e,e.__importElement=i,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:function(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLink;return t},addElementToDocument:function(e){var t=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){var n=this,r=function(i){e.removeEventListener("load",r),e.removeEventListener("error",r),t&&t(i),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addEventListener("error",r),i&&"style"===e.localName){var s=!1;if(-1==e.textContent.indexOf("@import"))s=!0;else if(e.sheet){s=!0;for(var o,a=e.sheet.cssRules,l=a?a.length:0,c=0;c<l&&(o=a[c]);c++)o.type===CSSRule.IMPORT_RULE&&(s=s&&Boolean(o.styleSheet))}s&&setTimeout(function(){e.dispatchEvent(new CustomEvent("load",{bubbles:!1}))})}},parseScript:function(t){var n=document.createElement("script");n.__importElement=t,n.src=t.src?t.src:function(e){var t=function(e){return e.textContent+function(e){var t=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}(e)}(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}(t),e.currentScript=t,this.trackElement(n,function(t){n.parentNode&&n.parentNode.removeChild(n),e.currentScript=null}),this.addElementToDocument(n)},nextToParse:function(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(n)||this.nextToParseDynamic())},nextToParseInDoc:function(e,t){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(var n,r=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,s=r.length;i<s&&(n=r[i]);i++)if(!this.isParsed(n))return this.hasResource(n)?l(n)?this.nextToParseInDoc(n.__doc,n):n:void 0}return t},nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelectorsForNode:function(e){return(e.ownerDocument||e)===n?this.documentSelectors:this.importsSelectors},isParsed:function(e){return e.__importParsed},needsDynamicParsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:function(e){return!l(e)||void 0!==e.__doc}};function l(e){return"link"===e.localName&&e.rel===s}e.parser=a,e.IMPORT_SELECTOR=o}),window.HTMLImports.addModule(function(e){var t=e.flags,n=e.IMPORT_LINK_TYPE,r=e.IMPORT_SELECTOR,i=e.rootDocument,s=e.Loader,o=e.Observer,a=e.parser,l={documents:{},documentPreloadSelectors:r,importsPreloadSelectors:[r].join(","),loadNode:function(e){c.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);c.addNodes(t)},marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){return(e.ownerDocument||e)===i?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,r,i,s,o){if(t.load,r.__resource=i,r.__error=s,function(e){return function(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}(e,n)}(r)){var l=this.documents[e];void 0===l&&(l=s?null:function(e,t){var r=document.implementation.createHTMLDocument(n);r._URL=t;var i=r.createElement("base");i.setAttribute("href",t),r.baseURI||function(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}(r)||Object.defineProperty(r,"baseURI",{value:t});var s=r.createElement("meta");s.setAttribute("charset","utf-8"),r.head.appendChild(s),r.head.appendChild(i),r.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(r);return r}(i,o||e),l&&(l.__importLink=r,this.bootDocument(l)),this.documents[e]=l),r.__doc=l}a.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),a.parseNext()},loadedAll:function(){a.parseNext()}},c=new s(l.loaded.bind(l),l.loadedAll.bind(l));if(l.observer=new o,!document.baseURI){var u={get:function(){var e=document.querySelector("base");return e?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",u),Object.defineProperty(i,"baseURI",u)}e.importer=l,e.importLoader=c}),window.HTMLImports.addModule(function(e){var t=e.parser,n=e.importer,r={added:function(e){for(var r,i,s,o,a=0,l=e.length;a<l&&(o=e[a]);a++)r||(r=o.ownerDocument,i=t.isParsed(r)),(s=this.shouldLoadNode(o))&&n.loadNode(o),this.shouldParseNode(o)&&i&&t.parseDynamic(o,s)},shouldLoadNode:function(e){return 1===e.nodeType&&i.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return 1===e.nodeType&&i.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r.added.bind(r);var i=HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){var t=e.initializeModules;if(e.isIE,!e.useNative){t();var n=e.rootDocument;"complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?r():document.addEventListener("DOMContentLoaded",r)}function r(){window.HTMLImports.importer.bootDocument(n)}}(window.HTMLImports),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,n=[];e.addModule=function(e){n.push(e)}
713,e.initializeModules=function(){n.forEach(function(t){t(e)})},e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigator.userAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule(function(e){var t=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";function n(e,t){r(e,function(e){if(t(e))return!0;i(e,t)}),i(e,t)}function r(e,t,n){var i=e.firstElementChild;if(!i)for(i=e.firstChild;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.nextSibling;for(;i;)!0!==t(i,n)&&r(i,t,n),i=i.nextElementSibling;return null}function i(e,t){for(var r=e.shadowRoot;r;)n(r,t),r=r.olderShadowRoot}function s(e,n,r){if(e=window.wrap(e),!(r.indexOf(e)>=0)){r.push(e);for(var i,o=e.querySelectorAll("link[rel="+t+"]"),a=0,l=o.length;a<l&&(i=o[a]);a++)i.import&&s(i.import,n,r);n(e)}}e.forDocumentTree=function(e,t){s(e,t,[])},e.forSubtree=n}),window.CustomElements.addModule(function(e){var t=e.flags,n=e.forSubtree,r=e.forDocumentTree;function i(e,t){return s(e,t)||o(e,t)}function s(t,n){if(e.upgrade(t,n))return!0;n&&h(t)}function o(e,t){n(e,function(e){if(s(e,t))return!0})}var a=window.MutationObserver._isPolyfilled&&t["throttle-attached"];e.hasPolyfillMutations=a,e.hasThrottledAttached=a;var l=!1,c=[];function u(e){c.push(e),l||(l=!0,setTimeout(d))}function d(){l=!1;for(var e,t=c,n=0,r=t.length;n<r&&(e=t[n]);n++)e();c=[]}function h(e){a?u(function(){p(e)}):p(e)}function p(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}function f(e){a?u(function(){m(e)}):m(e)}function m(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}function _(e,r){if(t.dom){var s=r[0];if(s&&"childList"===s.type&&s.addedNodes&&s.addedNodes){for(var o=s.addedNodes[0];o&&o!==document&&!o.host;)o=o.parentNode;var a=o&&(o.URL||o._URL||o.host&&o.host.localName)||"";a=a.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",r.length,a||"")}var l=function(e){for(var t=e,n=window.wrap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}(e);r.forEach(function(e){"childList"===e.type&&(g(e.addedNodes,function(e){e.localName&&i(e,l)}),g(e.removedNodes,function(e){var t;e.localName&&(f(t=e),n(t,function(e){f(e)}))}))}),t.dom&&console.groupEnd()}var g=Array.prototype.forEach.call.bind(Array.prototype.forEach);function y(e){if(!e.__observer){var t=new MutationObserver(_.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}function v(e){e=window.wrap(e),t.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop()),i(e,e===window.wrap(document)),y(e),t.dom&&console.groupEnd()}var b=Element.prototype.createShadowRoot;b&&(Element.prototype.createShadowRoot=function(){var e=b.call(this);return window.CustomElements.watchShadow(this),e}),e.watchShadow=function(e){if(e.shadowRoot&&!e.shadowRoot.__watched){t.dom&&e.localName;for(var n=e.shadowRoot;n;)y(n),n=n.olderShadowRoot}},e.upgradeDocumentTree=function(e){r(e,v)},e.upgradeDocument=v,e.upgradeSubtree=o,e.upgradeAll=i,e.attached=h,e.takeRecords=function(e){for((e=window.wrap(e))||(e=window.wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer;t&&(_(e,t.takeRecords()),d())}}),window.CustomElements.addModule(function(e){var t=e.flags;function n(n,i,s){return t.upgrade&&console.group("upgrade:",n.localName),i.is&&n.setAttribute("is",i.is),r(n,i),n.__upgraded__=!0,function(e){e.createdCallback&&e.createdCallback()}(n),s&&e.attached(n),e.upgradeSubtree(n,s),t.upgrade&&console.groupEnd(),n}function r(e,t){Object.__proto__||function(e,t,n){var r={},i=t;for(;i!==n&&i!==HTMLElement.prototype;){for(var s,o=Object.getOwnPropertyNames(i),a=0;s=o[a];a++)r[s]||(Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s)),r[s]=1);i=Object.getPrototypeOf(i)}}(e,t.prototype,t.native),e.__proto__=t.prototype}e.upgrade=function(t,r){if("template"===t.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t),!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){var i=t.getAttribute("is"),s=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(i);if(s&&(i&&s.tag==t.localName||!i&&!s.extends))return n(t,s,r)}},e.upgradeWithDefinition=n,e.implementPrototype=r}),window.CustomElements.addModule(function(e){e.isIE;var t=e.upgradeDocumentTree,n=e.upgradeAll,r=e.upgradeWithDefinition,i=e.implementPrototype,s=e.useNative;function o(e,t,n){e=e.toLowerCase();var r=this.getAttribute(e);n.apply(this,arguments);var i=this.getAttribute(e);this.attributeChangedCallback&&i!==r&&this.attributeChangedCallback(e,r,i)}var a=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function l(e){var t=u(e);return t?l(t.extends).concat([t]):[]}var c={};function u(e){if(e)return c[e.toLowerCase()]}function d(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());var n,r=u(t||e);
713if(r){if(e==r.tag&&t==r.is)return new r.ctor;if(!t&&!r.is)return new r.ctor}return t?((n=d(e)).setAttribute("is",t),n):(n=p(e),e.indexOf("-")>=0&&i(n,HTMLElement),n)}var h,p=document.createElement.bind(document),f=document.createElementNS.bind(document);function m(e,t){var r=e[t];e[t]=function(){var e=r.apply(this,arguments);return n(e),e}}h=Object.__proto__||s?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1},m(Node.prototype,"cloneNode"),m(document,"importNode"),document.registerElement=function(n,i){var s=i||{};if(!n)throw new Error("document.registerElement: first argument `name` must not be empty");if(n.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(n)+"'.");if(function(e){for(var t=0;t<a.length;t++)if(e===a[t])return!0}(n))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(n)+"'. The type name is invalid.");if(u(n))throw new Error("DuplicateDefinitionError: a type with name '"+String(n)+"' is already registered");return s.prototype||(s.prototype=Object.create(HTMLElement.prototype)),s.__name=n.toLowerCase(),s.extends&&(s.extends=s.extends.toLowerCase()),s.lifecycle=s.lifecycle||{},s.ancestry=l(s.extends),function(e){for(var t,n=e.extends,r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}(s),function(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.createElement(e.tag);t=Object.getPrototypeOf(n)}for(var r,i=e.prototype,s=!1;i;)i==t&&(s=!0),(r=Object.getPrototypeOf(i))&&(i.__proto__=r),i=r;s||(e.tag,e.is),e.native=t}}(s),function(e){if(e.setAttribute._polyfilled)return;var t=e.setAttribute;e.setAttribute=function(e,n){o.call(this,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){o.call(this,e,null,n)},e.setAttribute._polyfilled=!0}(s.prototype),function(e,t){c[e]=t}(s.__name,s),s.ctor=function(e){return function(){return function(e){return r(p(e.tag),e)}(e)}}(s),s.ctor.prototype=s.prototype,s.prototype.constructor=s.ctor,e.ready&&t(document),s.ctor},document.createElement=d,document.createElementNS=function(e,t,n){return"http://www.w3.org/1999/xhtml"===e?d(t,n):f(e,t)},e.registry=c,e.instanceof=h,e.reservedTagList=a,e.getRegisteredDefinition=u,document.register=document.registerElement}),function(e){var t=e.useNative,n=e.initializeModules;if(e.isIE,t){var r=function(){};e.watchShadow=r,e.upgrade=r,e.upgradeAll=r,e.upgradeDocumentTree=r,e.upgradeSubtree=r,e.takeRecords=r,e.instanceof=function(e,t){return e instanceof t}}else n();var i=e.upgradeDocumentTree,s=e.upgradeDocument;function o(){i(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(e){setTimeout(e,16)})(function(){setTimeout(function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e.import&&s(wrap(e.import))}),"complete"===document.readyState||e.flags.eager)o();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var a=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(a,o)}else o()}(window.CustomElements),function(){var e=document.createElement("style");e.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var t=document.querySelector("head");t.insertBefore(e,t.firstChild)}()),HP;var e,t,n,r,i}var GP,KP={exports:{}},WP={exports:{}};function XP(){return GP||(GP=1,(e=WP).exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports),WP.exports;var e}var YP,ZP,JP={exports:{}},QP={exports:{}};function eO(){return YP||(YP=1,function(e){function t(n,r,i,s){var o=Object.defineProperty;try{o({},"",{})}catch(a){o=0}e.exports=t=function(e,n,r,i){function s(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?o?o(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(s("next",0),s("throw",1),s("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,s)}
vendor: 5,578 bytes, lines 713-715
713e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(QP)),QP.exports}function tO(){return ZP||(ZP=1,function(e){var t=eO();function n(){ 714/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ 715var r,i,s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.toStringTag||"@@toStringTag";function l(e,n,s,o){var a=n&&n.prototype instanceof u?n:u,l=Object.create(a.prototype);return t(l,"_invoke",function(e,t,n){var s,o,a,l=0,u=n||[],d=!1,h={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return s=e,o=0,a=r,h.n=t,c}};function p(e,t){for(o=e,a=t,i=0;!d&&l&&!n&&i<u.length;i++){var n,s=u[i],p=h.p,f=s[2];e>3?(n=f===t)&&(a=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=r):s[0]<=p&&((n=e<2&&p<s[1])?(o=0,h.v=t,h.n=s[1]):p<f&&(n=e<3||s[0]>t||t>f)&&(s[4]=e,s[5]=t,h.n=f,o=0))}if(n||e>1)return c;throw d=!0,t}return function(n,u,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,f),o=u,a=f;(i=o<2?r:a)||!d;){s||(o?o<3?(o>1&&(h.n=-1),p(o,a)):h.n=a:h.v=a);try{if(l=2,s){if(o||(n="next"),i=s[n]){if(!(i=i.call(s,a)))throw TypeError("iterator result is not an object");if(!i.done)return i;a=i.value,o<2&&(o=0)}else 1===o&&(i=s.return)&&i.call(s),o<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),o=1);s=r}else if((i=(d=h.n<0)?a:e.call(t,h))!==c)break}catch(m){s=r,o=1,a=m}finally{l=1}}return{value:i,done:d}}}(e,s,o),!0),l}var c={};function u(){}function d(){}function h(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(t(i={},o,function(){return this}),i),f=h.prototype=u.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,t(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=h,t(f,"constructor",h),t(h,"constructor",d),d.displayName="GeneratorFunction",t(h,a,"GeneratorFunction"),t(f),t(f,a,"Generator"),t(f,o,function(){return this}),t(f,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(JP)),JP.exports}var nO,rO,iO,sO={exports:{}},oO={exports:{}},aO={exports:{}};function lO(){return nO||(nO=1,e=aO,t=XP(),n=eO(),e.exports=function e(r,i){function s(e,n,o,a){try{var l=r[e](n),c=l.value;return c instanceof t?i.resolve(c.v).then(function(e){s("next",e,o,a)},function(e){s("throw",e,o,a)}):i.resolve(c).then(function(e){l.value=e,o(l)},function(e){return s("throw",e,o,a)})}catch(u){a(u)}}var o;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,n){function r(){return new i(function(t,r){s(e,n,t,r)})}return o=o?o.then(r,r):r()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports),aO.exports;var e,t,n}function cO(){return rO||(rO=1,e=oO,t=tO(),n=lO(),e.exports=function(e,r,i,s,o){return new n(t().w(e,r,i,s),o||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports),oO.exports;var e,t,n}var uO,dO={exports:{}};var hO,pO,fO,mO,_O,gO,yO,vO,bO,wO,kO,CO,TO,SO,xO,EO,IO,AO,PO,OO={exports:{}},LO={exports:{}};function DO(){return pO||(pO=1,e=OO,t=(hO||(hO=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(LO)),LO.exports).default,e.exports=function(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports),OO.exports;var e,t}function RO(){return fO||(fO=1,function(e){var t=XP(),n=tO(),r=function(){return iO||(iO=1,e=sO,t=cO(),e.exports=function(e,n,r,i,s){var o=t(e,n,r,i,s);return o.next().then(function(e){return e.done?e.value:o.next()})},e.exports.__esModule=!0,e.exports.default=e.exports),sO.exports;var e,t}(),i=cO(),s=lO(),o=function(){return uO||(uO=1,(e=dO).exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports),dO.exports;var e}(),a=DO();function l(){var c=n(),u=c.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,s){return t.resultName=i,n(r.d,a(e),s)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,t,n,r){return c.w(f(e),t,n,r&&r.reverse())},isGeneratorFunction:h,mark:c.m,awrap:function(e,n){return new t(e,n)}
715,AsyncIterator:s,async:function(e,t,n,s,o){return(h(t)?i:r)(f(e),t,n,s,o)},keys:o,values:a}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports}(KP)),KP.exports}function MO(){if(yO)return gO;yO=1;var e=fE()(function(){if(_O)return mO;_O=1;var e=RO()();mO=e;try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return mO}());return gO=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./index.js")}({
715"./index.js":function(e,t,n){n.r(t);var r=n("./src/ChromecastFramework.js"),i=n("./src/ChromecastMedia.js");t.default={ChromecastFramework:r.default,ChromecastMedia:i.default}},
715"./src/ChromecastFramework.js":function(e,t,n){function r(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return a});var s=n("./src/ChromecastPlayer.js"),o=n("./src/ChromecastSession.js"),a=function(){function e(t,n,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"session",void 0),i(this,"player",void 0),i(this,"ready_",void 0),i(this,"notSupported_",void 0),this.ready_=null!=n?n:function(){},this.notSupported_=null!=r?r:function(){},!1===e.isSupportedBrowser?void this.notSupported_():void(e.isChromecastAPIAvailable()?this.onChromecastAPIAvailable_(t):this.waitForChromecastAPI_(t))}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"dispose",value:function(){var e,t;null===(e=this.session)||void 0===e||e.dispose(),null===(t=this.player)||void 0===t||t.dispose()}},{key:"waitForChromecastAPI_",value:function(t){var n=this;window.__onGCastApiAvailable=function(r){e.isSupportedBrowser=r,r?n.onChromecastAPIAvailable_(t):n.notSupported_()}}},{key:"onChromecastAPIAvailable_",value:function(e){this.session=new o.default(e),this.player=new s.default,this.ready_()}}],[{key:"isChromecastAPIAvailable",value:function(){return window.chrome&&window.chrome.cast&&window.cast}}]),e}();i(a,"isSupportedBrowser",void 0)},
715"./src/ChromecastMedia.js":function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return s});var i,s=(i=function e(t,n,i,s){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),r(this,"url",void 0),r(this,"mimeType",void 0),r(this,"title",void 0),r(this,"posterUrl",void 0),this.url=t,this.mimeType=n,this.title=i,this.posterUrl=s},Object.defineProperty(i,"prototype",{writable:!1}),i)},
715"./src/ChromecastPlayer.js":function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return o});var s=n("./src/ChromecastRemote.js"),o=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),i(this,"remotePlayer_",void 0),i(this,"chromecastRemote_",void 0),i(this,"eventListeners_",void 0),this.eventListeners_=[],this.remotePlayer_=new cast.framework.RemotePlayer,this.chromecastRemote_=new s.default(this)}return r(e,[{key:"activeTrackIds",value:function(){var e,t;return null===(e=cast.framework.CastContext.getInstance().getCurrentSession())||void 0===e||null===(t=e.getMediaSession())||void 0===t?void 0:t.activeTrackIds}},{key:"addEventListener",value:function(e,t){this.eventListeners_.push({type:e,handler:t}),this.chromecastRemote_.remotePlayerController_.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.chromecastRemote_.remotePlayerController_.removeEventListener(e,t);var n=this.eventListeners_.findIndex(function(n){return n.type===e&&n.handler===t});-1===n?"failed to remove event listener ".concat(e,": not found"):this.eventListeners_.splice(n,1)}},{key:"removeAllEventListeners",value:function(){var e=this;this.eventListeners_.forEach(function(t){e.chromecastRemote_.remotePlayerController_.removeEventListener(t.type,t.handler)}),this.eventListeners_=[]}},{key:"dispose",value:function(){this.removeAllEventListeners(),this.chromecastRemote_.dispose(),this.chromecastRemote_=void 0,this.remotePlayer_=void 0}},{key:"remoteControl",value:function(){return this.chromecastRemote_}},{key:"canControlVolume",value:function(){return this.remotePlayer_.canControlVolume}},{key:"canPause",value:function(){return this.remotePlayer_.canPause}},{key:"canSeek",value:function(){return this.remotePlayer_.canSeek}},{key:"currentAppName",value:function(){return this.remotePlayer_.displayName}},{key:"currentAppStatus",value:function(){return this.remotePlayer_.displayStatus}},{key:"currentMedia",value:function(){return this.remotePlayer_.mediaInfo}},{key:"currentPosterUrl",value:function(){return this.remotePlayer_.imageUrl}},{key:"currentState",value:function(){return this.remotePlayer_.playerState}},{key:"currentStatusText",value:function(){return this.remotePlayer_.statusText}},{key:"currentTextTrack",value:function(){var e=this.activeTrackIds();if(null!=e&&0!==e.length)return this.textTracks().find(function(t){return e.includes(t.trackId)})}},{key:"currentTimeSeconds",value:function(){return this.remotePlayer_.currentTime}},{key:"currentTitle",value:function(){return this.remotePlayer_.title}},{key:"durationSeconds",value:function(){return this.remotePlayer_.duration}},{key:"isConnectedToCastDevice",value:function(){return this.remotePlayer_.isConnected}},{key:"isMuted",value:function(){return this.remotePlayer_.isMuted}},{key:"isPaused",value:function(){return this.remotePlayer_.isPaused}},{key:"mediaIsLoadedOnDevice",value:function(){return this.remotePlayer_.isMediaLoaded}},{key:"savedPlayerState",value:function(){return this.remotePlayer_.savedPlayerState}},{key:"textTracks",value:function(){var e,t;return null!==(e=null===(t=this.currentMedia())||void 0===t?void 0:t.tracks.filter(function(e){return e.type===chrome.cast.media.TrackType.TEXT}))&&void 0!==e?e:[]}},{key:"volumeLevel",value:function(){return this.remotePlayer_.volumeLevel}}]),e}()},
715"./src/ChromecastRemote.js":function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return s}),n("./src/ChromecastPlayer.js");var s=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),i(this,"chromecastPlayer_",void 0),i(this,"remotePlayer_",void 0),i(this,"remotePlayerController_",void 0),i(this,"delayPlayOrPause",void 0),i(this,"playOrPauseCallHasBeenDelayed",void 0),this.chromecastPlayer_=t,this.remotePlayer_=t.remotePlayer_,this.remotePlayerController_=new cast.framework.RemotePlayerController(t.remotePlayer_),this.delayPlayOrPause=!1,this.playOrPauseCallHasBeenDelayed=!1}var t=Math.min;return r(e,[{key:"dispose",value:function(){this.chromecastPlayer_=void 0,this.remotePlayer_=void 0,this.remotePlayerController_=void 0}},{key:"muteOrUnmute",value:function(){this.remotePlayerController_.muteOr
715Unmute()}},{key:"playOrPause",value:function(){return this.delayPlayOrPause?void(this.playOrPauseCallHasBeenDelayed=!0):void this.remotePlayerController_.playOrPause()}},{key:"seek",value:function(e){var n=this;if(this.chromecastPlayer_.canSeek()){var r=this.chromecastPlayer_.durationSeconds();this.remotePlayer_.currentTime=t(r,e),this.remotePlayerController_.seek(),this.delayPlayOrPause=!0,setTimeout(function(){n.delayPlayOrPause=!1,n.playOrPauseCallHasBeenDelayed&&(n.playOrPauseCallHasBeenDelayed=!1,n.playOrPause())},1e3)}}},{key:"setActiveTextTrackByLanguage",value:function(e){var t=this.chromecastPlayer_.textTracks(),n=null==t?void 0:t.find(function(t){return t.language===e});null==n||this.setActiveTextTrackById(n.trackId)}},{key:"setActiveTextTrackById",value:function(e){var t,n,r=this.chromecastPlayer_.textTracks(),i=null==r?void 0:r.find(function(t){return t.trackId===e});if(null!=i){var s=null===(t=cast.framework.CastContext.getInstance().getCurrentSession())||void 0===t?void 0:t.getMediaSession();if(null!=s){var o=null!==(n=this.chromecastPlayer_.activeTrackIds())&&void 0!==n?n:[],a=this.chromecastPlayer_.currentTextTrack();null!=a&&(o=o.filter(function(e){return e!==a.trackId})),o.push(i.trackId);var l=new chrome.cast.media.EditTracksInfoRequest(o);s.editTracksInfo(l)}}}},{key:"removeActiveTextTrack",value:function(){var e,t=this.chromecastPlayer_.currentTextTrack();if(null!=t){var n=this.chromecastPlayer_.activeTrackIds();if(null!=n&&0!==n.length){var r=null===(e=cast.framework.CastContext.getInstance().getCurrentSession())||void 0===e?void 0:e.getMediaSession();if(null!=r){var i=n.filter(function(e){return e!==t.trackId}),s=new chrome.cast.media.EditTracksInfoRequest(i);r.editTracksInfo(s)}}}}},{key:"setVolumeLevel",value:function(e){this.chromecastPlayer_.canControlVolume()&&(this.remotePlayer_.volumeLevel=t(1,Math.max(0,e)),this.remotePlayerController_.setVolumeLevel())}},{key:"stop",value:function(){this.remotePlayer_.stop()}}]),e}()},
715"./src/ChromecastSession.js":function(t,n,r){function i(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){function o(e){i(l,r,s,o,a,"next",e)}function a(e){i(l,r,s,o,a,"throw",e)}var l=e.apply(t,n);o(void 0)})}}function o(e,t,n){return t&&function(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r.r(n),r.d(n,"default",function(){return l}),r("./src/ChromecastMedia.js");var l=function(){function t(e){switch(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"eventListeners_",void 0),a(this,"customEventListeners_",void 0),this.eventListeners_=[],this.customEventListeners_=[],null==e.receiverApplicationId&&(e.receiverApplicationId=chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID),e.autoJoinPolicy){case"TAB_AND_ORIGIN_SCOPED":e.autoJoinPolicy=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;break;case"ORIGIN_SCOPED":e.autoJoinPolicy=chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED;break;case"PAGE_SCOPED":e.autoJoinPolicy=chrome.cast.AutoJoinPolicy.PAGE_SCOPED}this.castContext().setOptions(e)}return o(t,[{key:"dispose",value:function(){this.removeAllEventListeners(),this.removeAllCustomEventListeners()}},{key:"castContext",value:function(){return cast.framework.CastContext.getInstance()}},{key:"castSession",value:function(){return this.castContext().getCurrentSession()}},{key:"castConnectionState",value:function(){return this.castContext().getCastState()}},{key:"castSessionState",value:function(){return this.castContext().getSessionState()}},{key:"getConnectedDeviceName",value:function(){return this.castSession().getCastDevice().friendlyName}},{key:"listenToCastStatus",value:function(e){this.addEventListener_(cast.framework.CastContextEventType.CAST_STATE_CHANGED,e)}},{key:"listenToSessionChanges",value:function(e){this.addEventListener_(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,e)}},{key:"removeCastStatusListener",value:function(e){this.removeEventListener_(cast.framework.CastContextEventType.CAST_STATE_CHANGED,e)}},{key:"removeSessionChangesListener",value:function(e){this.removeEventListener_(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,e)}},{key:"addEventListener_",value:function(e,t){this.eventListeners_.push({type:e,handler:t}),this.castContext().addEventListener(e,t)}},{key:"removeEventListener_",value:function(e,t){this.castContext().removeEventListener(e,t);var n=this.eventListeners_.findIndex(function(n){return n.type===e&&n.handler===t});-1===n?"failed to remove event listener ".concat(e,": not found"):this.eventListeners_.splice(n,1)}},{key:"removeAllEventListeners",value:function(){var e=this;this.eventListeners_.forEach(function(t){e.castContext().removeEventListener(t.type,t.handler)}),this.eventListeners_=[]}},{key:"listenToCustomEvents",value:function(e,t){var n=this.castSession();return null==n?void console.error("[chromecast-framework]: cannot add custom event listener on ".concat(e,": session doesn't exist")):(this.customEventListeners_.push({namespace:e,handler:t}),void n.addMessageListener(e,t))}},{key:"removeCustomEventListener",value:function(e){var t=this.customEventListeners_.find(function(t){return t.handler===e});null==t||this.removeCustomEventListener_(t.namespace,t.handler)}},{key:"removeCustomEventListener_",value:function(e,t){var n=this.castSession();if(null!=n){n.removeMessageListener(e,t);var r=this.customEventListeners_.findIndex(function(n){return n.namespace===e&&n.handler===t});-1===r?"failed to remove custom event listener ".concat(e,": not found"):this.customEventListeners_.splice(r,1)}else console.error("[chromecast-framework]: cannot remove custom event listener on ".concat(e,": session doesn't exist"))}},{key:"removeAllCustomEventListenerForNamespace",value:function(e){var t=this;this.customEventListeners_.filter(function(t){return t.namespace===e}
715).forEach(function(e){t.removeCustomEventListener_(e.namespace,e.handler)})}},{key:"removeAllCustomEventListeners",value:function(){var e=this.castSession();return null==e?void console.error("[chromecast-framework]: cannot remove all custom event listeners: session doesn't exist"):(this.customEventListeners_.forEach(function(t){e.removeMessageListener(t.type,t.handler)}),void(this.customEventListeners_=[]))}},{key:"connectToDevice",value:(n=s(e.default.mark(function t(){var n;return e.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.castContext().requestSession();case 3:return n=e.sent,e.abrupt("return",n);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},t,this,[[0,7]])})),function(){return n.apply(this,arguments)})},{key:"stopReceiverAppAndDisconnectFromDevice",value:function(){this.castContext().endCurrentSession(!0)}},{key:"disconnectFromDevice",value:function(){this.castContext().endCurrentSession(!1)}},{key:"loadMedia",value:function(){var t=s(e.default.mark(function t(n,r,i,s){var o,a,l,c;return e.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(o=this.castSession())){e.next=3;break}return e.abrupt("return",Promise.resolve(chrome.cast.ErrorCode.SESSION_ERROR));case 3:return(a=new chrome.cast.media.MediaInfo(n.url,n.mimeType)).metadata=new chrome.cast.media.MovieMediaMetadata,a.metadata.title=n.title,a.metadata.images=[{url:n.posterUrl}],a.customData=s,a.streamType=chrome.cast.media.StreamType.BUFFERED,(l=new chrome.cast.media.LoadRequest(a)).autoplay=r,l.currentTime=i,e.next=14,o.loadMedia(l);case 14:return c=e.sent,e.abrupt("return",c);case 16:case"end":return e.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}]),t;var n}()}}).default,gO}function NO(){if(kO)return wO;kO=1;var e=MO(),t=!1,n=e.ChromecastFramework;class r{constructor(e,t){this.player=e,this.customChannels=t.customChannels||[],this.chromecastFramework=window.chromecastFrameworkInstance,this.sessionStateChangeHandler=this._onSessionStateChange.bind(this),this.castStateChangeHandler=this._onCastStateChange.bind(this),this.customEventHandler=this._onCustomEventReceived.bind(this),this._addCastContextEventListeners(),this.player.on("dispose",this.disposeSessionManager.bind(this));var n=this.chromecastFramework.session.castConnectionState();this._notifyPlayerOfDevicesAvailabilityChange(n)}disposeSessionManager(){this._removeCastContextEventListeners(),this.chromecastFramework=void 0,t=!1}_addCastContextEventListeners(){null!=this.chromecastFramework.session&&(this.chromecastFramework.session.listenToSessionChanges(this.sessionStateChangeHandler),this.chromecastFramework.session.listenToCastStatus(this.castStateChangeHandler))}_addCastContextCustomEventListeners(){null!=this.chromecastFramework.session&&this.customChannels.forEach(function(e){this.chromecastFramework.session.listenToCustomEvents(e,this.customEventHandler)},this)}_removeCastContextEventListeners(){null!=this.chromecastFramework.session&&(this.chromecastFramework.session.removeSessionChangesListener(this.sessionStateChangeHandler),this.chromecastFramework.session.removeCastStatusListener(this.castStateChangeHandler))}_removeCastContextCustomEventListeners(){null!=this.chromecastFramework.session&&(this.customChannels.forEach(function(e){this.chromecastFramework.session.removeCustomEventListener(this.customEventHandler)},this),this.customChannels=[])}_onSessionStateChange(e){e.sessionState===cast.framework.SessionState.SESSION_STARTED?this._addCastContextCustomEventListeners():e.sessionState===cast.framework.SessionState.SESSION_ENDED&&(this._removeCastContextCustomEventListeners(),this.onChromecastDisconnected())}_onCastStateChange(e){this._notifyPlayerOfDevicesAvailabilityChange(e.castState)}_onCustomEventReceived(e,t){this.player.trigger({type:"chromecastcustomevent",namespace:e,message:t})}_notifyPlayerOfDevicesAvailabilityChange(e){this.hasAvailableDevices(e)?this.player.trigger("chromecastDevicesAvailable"):this.player.trigger("chromecastDevicesUnavailable")}hasAvailableDevices(e){return null==e&&null!=this.chromecastFramework.session&&(e=this.chromecastFramework.session.castConnectionState()),e===cast.framework.CastState.NOT_CONNECTED||e===cast.framework.CastState.CONNECTING||e===cast.framework.CastState.CONNECTED}openCastMenu(){this.player.currentSource()&&null!=this.chromecastFramework.session&&this.chromecastFramework.session.connectToDevice().then(function(e){null==e&&this.onChromecastConnected()}.bind(this))}onChromecastConnected(){t=!0,this.player.trigger("chromecastConnected"),this._reloadTech()}onChromecastDisconnected(){t&&(t=!1,this.player.trigger("chromecastDisconnected"),this._reloadTech())}_reloadTech(){var e=this.player,t=e.currentTime(),n=e.paused(),r=e.currentSources();
715window.chromecastStartTime=t,e.src(r),e.ready(function(){n?e.pause():e.play(),e.currentTime(t||0)})}static isChromecastAPIAvailable=n.isChromecastAPIAvailable;static isChromecastConnected(){return r.isChromecastAPIAvailable()&&t}}return wO=r}function jO(){if(xO)return SO;xO=1;var e=NO(),t=MO(),n=TO?CO:(TO=1,CO=class{constructor(){this._el=this._createDOMElement()}_createDOMElement(){var e=this._createElement("div","vjs-tech vjs-tech-chromecast"),t=this._createElement("img","vjs-tech-chromecast-poster-img"),n=this._createElement("div","vjs-tech-chromecast-casting-now"),r=this._createElement("div","vjs-tech-chromecast-casting-texts"),i=this._createElement("div","vjs-tech-chromecast-casting-to"),s=this._createElement("div","vjs-tech-chromecast-casting-device"),o=this._createElement("img","vjs-tech-chromecast-casting-icon"),a=this._createElement("div","vjs-tech-chromecast-dark-overlay");return i.textContent="Casting to",o.setAttribute("src","data:image/png+xml;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAvJJREFUaAXtmTtoFFEUhrMhpRZipQELBQsbwUoEQYPaWFhpYSloJ1bai502tqnVRojYWPlA1CKCjWUKLYRsGmOKdKKs3xnmzpz57+xjdMaZhTnw79zzuOdx79zH7i4s9NSPQD8C/Qh0ZgRGo9EyeAKGoGu0SUKW27IfsEFgUsVn+P1B1tHnNnkdHwwGm5bfokvyAe2uJ2/pWo73rWHkZ2AIfyCRdv9jixk4aGn6AkY+bwwynZe31bYF6WOH/Pwr5PVz0+4LaHuq+hloewaWQgJhVQd+Xp79K9T2TM39DGRrgINul9G060TAV9ovwEfWR+EURNY9sqN6DG0hXwXn2sxac4tyUYMx/DvkJ6PO/0Gg+UQh1WAKv4b+cOSkQYHmE0JlN04M9iK067RdUw+B8+Ai2AfKaAfhFdbHqzJl3TIrwPuc6dyizxJYAc9AGf1CeNM7bqqtwSvHwcEp8EEdpfzDyg4rdtC4Fbvn5ji6BWzklRqdCQ2WZ5S2MNgFG+ANuAtOREa57QX0O8CTFdXYVusDWTvKTQ1S3gq6HBkjQH4MaBE/kDWyO+G3QFFOBW3MrCOKEkNmM6Gv01rkvAaBphS5VIMS/juyM9oRma0JpdoPOw2gedgrsQccBVfBU/ATKJmsrAjdnd5HAf5RoIlMdUeHI6Bs/7eZKLxO8LbFKtW6oNX51AKCAR1vg9/iYD3owxO9FrsadHU8JX68C00KQmcrQqmwO6E8KwZ2i82uKpP8z6IT33EBGNg5YLvNDRAFRqYjvOEDo7drh22jnmpbzN6ptX3spC0Gr+ELv5PC25rQhV047NA/Ap7uRYH+UuCdWju4WQwNea7AP8Yumwluf1+QPRe7S8K/FL6w2E2niczKi1/71pjQuAJMaUVcT6zyDy3gdK5KWt+ET35BFlkd7NvgZFIBZnMtGKbPT8IX/i1Bl41MatdEAdv4viN5jJ1a+6KfEdNth52nSnpz5DtXbA+xj/5iypLrG/0I9CPQj0ArI/AHixCE2UoSwqgAAAAASUVORK5CYII="),r.appendChild(i),r.appendChild(s),n.appendChild(r),n.appendChild(o),e.appendChild(t),e.appendChild(a),e.appendChild(n),e}_createElement(e,t){var n=document.createElement(e);return n.className=t,n}getDOMElement(){return this._el}_findPosterImageEl(){return this._el.querySelector(".vjs-tech-chromecast-poster-img")}updatePoster(e){var t=this._findPosterImageEl();this._poster=e||null,e?(t.setAttribute("src",e),t.classList.remove("vjs-tech-chromecast-poster-img-empty")):(t.removeAttribute("src"),t.classList.add("vjs-tech-chromecast-poster-img-empty"))}getPoster(){return this._poster}_findCastDeviceNameEl(){return this._el.querySelector(".vjs-tech-chromecast-casting-device")}updateDeviceName(e){this._findCastDeviceNameEl().textContent=e||"Chromecast Device"}}),r=t.ChromecastMedia;return SO=function(t){var i=t.getComponent("Tech");class s extends i{constructor(e){super(e),this.chromecastFramework=window.chromecastFrameworkInstance,this.playerStateChangeHandler=this._onPlayerStateChanged.bind(this),this.volumeChangeHandler=this._triggerVolumeChangeEvent.bind(this),this.currentTimeChangeHandler=this._triggerTimeUpdateEvent.bind(this),this.durationChangeHandler=this._triggerDurationChangeEvent.bind(this),this.mediaStatusChangeHandler=this._onMediaSessionStatusChanged.bind(this),this.videojs=t,this._eventListeners=[],this.videojsPlayer=this.videojs(e.playerId),this._ui.updatePoster(this.videojsPlayer.poster()),this._ui.updateDeviceName(this.chromecastFramework.session.getConnectedDeviceName()),this._listenToPlayerControllerEvents(),this.on("dispose",this.disposeTech.bind(this)),this._hasPlayedAnyItem=!1,this._requestTitle=e.requestTitleFn||function(){},this._requestSubtitle=e.requestSubtitleFn||function(){},this._requestCustomData=e.requestCustomDataFn||function(){},this._initialStartTime=e.startTime||window.chromecastStartTime||0,null!=e.source&&(this._playSource(e.source,this._initialStartTime),this.ready(function(){this.setMuted(e.muted)}.bind(this))),this.triggerReady()}createEl(){return this._ui=this._ui||new n,this._ui.getDOMElement()}chromecastPlayer(){return this.chromecastFramework.player}chromecastRemoteControl(){var e=this.chromecastPlayer();if(null!=e)return e.remoteControl()}disposeTech(){this._removeAllEventListeners(),this.chromecastFramework=void 0}play(){if(this.paused())if(this.ended()&&!this._isMediaLoading)this._playSource({src:this.videojsPlayer.src()},0);else{var e=this.chromecastRemoteControl();null!=e&&e.playOrPause()}}pause(){var e=this.chromecastPlayer();if(!this.paused()&&null!=e&&e.canPause()){var t=this.chromecastRemoteControl();null!=t&&t.playOrPause()}}paused(){var e=this.chromecastPlayer();
715return null==e||e.isPaused()||this.ended()||null==e.currentState()}setSource(e){this._currentSource&&this._currentSource.src===e.src&&this._currentSource.type===e.type||(this._currentSource=e,this._playSource(e,0))}_playSource(e,t){if(null!=this.chromecastFramework.session){var n=this._requestTitle(e);this._requestSubtitle(e);var i=this.poster(),s=this._requestCustomData(e);this.trigger("waiting"),this._clearSessionTimeout(),this._isMediaLoading=!0,this._hasPlayedCurrentItem=!1;var o=new r(e.src,e.type,n,i);this.chromecastFramework.session.loadMedia(o,!0,t,s).then(function(){this.onTextTrackChange(),this._clearSessionTimeout(),this.trigger("loadstart"),this.trigger("loadeddata"),this.trigger("play"),this.trigger("playing"),this._hasPlayedAnyItem=!0,this._isMediaLoading=!1,this._getMediaSession().addUpdateListener(this.mediaStatusChangeHandler)}.bind(this),this._triggerErrorEvent.bind(this)),this.videojsPlayer.remoteTextTracks().on("change",this.onTextTrackChange.bind(this))}}getCurrentTextTrackLanguage(){var e=this.videojsPlayer.remoteTextTracks(),t=0;for(t=0;t<e.length;t++){var n=e[t];if("showing"===n.mode)return n.language}}onTextTrackChange(){var e=this.getCurrentTextTrackLanguage();this.setRemoteActiveTextTrackByLanguage(e)}getRemoteTextTracks(){var e=this.chromecastPlayer();if(null!=e)return e.textTracks()}getRemoteActiveTextTrack(){var e=this.chromecastPlayer();if(null!=e)return e.currentTextTrack()}setRemoteActiveTextTrackByLanguage(e){var t=this.chromecastRemoteControl();if(null!=t)return null==e?t.removeActiveTextTrack():t.setActiveTextTrackByLanguage(e)}setRemoteActiveTextTrackById(e){var t=this.chromecastRemoteControl();if(null!=t)return t.setActiveTextTrackById(e)}setCurrentTime(e){var t=this.duration(),n=this.chromecastPlayer(),r=this.chromecastRemoteControl();e>t||null==n||null==r||!n.canSeek()||(r.seek(Math.min(t-1,e)),this._triggerTimeUpdateEvent())}currentTime(){if(!this._hasPlayedAnyItem)return this._initialStartTime;var e=this.chromecastPlayer();return null==e?0:e.currentTimeSeconds()}duration(){if(!this._hasPlayedAnyItem)return this.videojsPlayer.duration();var e=this.chromecastPlayer();return null==e?0:e.durationSeconds()}ended(){var e=this._getMediaSession();return!(e||!this._hasMediaSessionEnded)||!!e&&e.idleReason===chrome.cast.media.IdleReason.FINISHED}volume(){var e=this.chromecastPlayer();return null==e?void 0:e.volumeLevel()}setVolume(e){var t=this.chromecastRemoteControl();null!=t&&(t.setVolumeLevel(e),this._triggerVolumeChangeEvent())}muted(){var e=this.chromecastPlayer();return null!=e&&e.isMuted()}setMuted(e){if(this.muted()&&!e||!this.muted()&&e){var t=this.chromecastRemoteControl();null!=t&&t.muteOrUnmute()}}poster(){return this._ui.getPoster()}setPoster(e){this._ui.updatePoster(e)}buffered(){}seekable(){return this.videojs.createTimeRange(0,this.duration())}controls(){return!1}playsinline(){return!0}supportsFullScreen(){return!0}setAutoplay(){}playbackRate(){var e=this._getMediaSession();return null==e?1:e.playbackRate}setPlaybackRate(){}preload(){}load(){}readyState(){var e=this.chromecastPlayer();return null==e||"IDLE"!==e.currentState()&&"BUFFERING"!==e.currentState?4:0}seeking(){}_listenToPlayerControllerEvents(){var e=this.chromecastPlayer();if(null!=e){var t=cast.framework.RemotePlayerEventType;e.addEventListener(t.PLAYER_STATE_CHANGED,this.playerStateChangeHandler),e.addEventListener(t.VOLUME_LEVEL_CHANGED,this.volumeChangeHandler),e.addEventListener(t.IS_MUTED_CHANGED,this.volumeChangeHandler),e.addEventListener(t.CURRENT_TIME_CHANGED,this.currentTimeChangeHandler),e.addEventListener(t.DURATION_CHANGED,this.durationChangeHandler)}}_removeAllEventListeners(){var e=this.chromecastPlayer();if(null!=e){var t=cast.framework.RemotePlayerEventType;e.removeEventListener(t.PLAYER_STATE_CHANGED,this.playerStateChangeHandler),e.removeEventListener(t.VOLUME_LEVEL_CHANGED,this.volumeChangeHandler),e.removeEventListener(t.IS_MUTED_CHANGED,this.volumeChangeHandler),e.removeEventListener(t.CURRENT_TIME_CHANGED,this.currentTimeChangeHandler),e.removeEventListener(t.DURATION_CHANGED,this.durationChangeHandler),this._hasMediaSessionEnded||this._getMediaSession().removeUpdateListener(this.mediaStatusChangeHandler)}}_onPlayerStateChanged(){var e=chrome.cast.media.PlayerState,t=this.chromecastPlayer(),n=null==t?void 0:t.currentState();n===e.PLAYING?(this._hasPlayedCurrentItem=!0,this.trigger("play"),this.trigger("playing")):n===e.PAUSED?this.trigger("pause"):n===e.IDLE&&this.ended()||null===n&&this._hasPlayedCurrentItem?(this._hasPlayedCurrentItem=!1,this._closeSessionOnTimeout(),this.trigger("ended"),this._triggerTimeUpdateEvent()):n===e.BUFFERING&&this.trigger("waiting")}_onMediaSessionStatusChanged(e){this._hasMediaSessionEnded=!!e,this._hasMediaSessionEnded&&this._getMediaSession().removeUpdateListener(this.mediaStatusChangeHandler)}_closeSessionOnTimeout(){this._clearSessionTimeout(),this._sessionTimeoutID=setTimeout(function(){null!=this.chromecastFramework&&null!=this.chromecastFramework.session&&this.chromecastFramework.session.stopReceiverAppAndDisconnectFromDevice(),this._clearSessionTimeout()}.bind(this),1e4)}_clearSessionTimeout(){this._sessionTimeoutID&&(clearTimeout(this._sessionTimeoutID),this._sessionTimeoutID=!1)}_getCastContext(){return null==this.chromecastFramework.session?void 0:this.chromecastFramework.session.castContext()}_getCastSession(){return null==this.chromecastFramework.session?void 0:this.chromecastFramework.session.castSession()}_getMediaSession(){var e=this._getCastSession();return null==e?void 0:e.getMediaSession()}_triggerVolumeChangeEvent(){this.trigger("volumechange")}_triggerTimeUpdateEvent(){this.trigger("timeupdate")}_triggerDurationChangeEvent(){this.trigger("durationchange")}_triggerErrorEvent(){this.trigger("error")}}s.canPlaySource=()=>e.isChromecastConnected(),s.isSupported=()=>e.isChromecastConnected(),t.registerTech("chromecast",s)},SO}function UO(){if(IO)return EO;IO=1;var e=NO();function t(e){e.chromecastSessionManager.openCastMenu()}function n(n,r){!function(t,n){t.chromecastSessionManager||(t.chromecastSessionManager=new e(t,n))}(n,r),function(e,n){var r,i=e.getChild(n.addButtonToComponent??"ControlBar");null==i||i.getChild("chromecastButton")||(r=i.children().length,void 0!==n.buttonPositionIndex&&(r=n.buttonPositionIndex>=0?n.buttonPositionIndex:i.children().length+n.buttonPositionIndex),i.addChild("chromecastButton",n,r)),e.on("chromecastRequested",t.bind(null,e))}(n,r)}return EO=function(t){t.registerPlugin("chromecast",function(t){var r=Object.assign({addButtonToControlBar:!0},t||{});this.ready(function(){this.controlBar&&(e.isChromecastAPIAvailable()?n(this,r):function(t,r){var i,s=1;i=setInterval(function(){s>30?clearInterval(i):(e.isChromecastAPIAvailable()&&(clearInterval(i),n(t,r)),s+=1)},1e3)}(this,r))}.bind(this))})}}const $O=Xa(function(){if(PO)return AO;PO=1;var e=function(){if(VP)return qP;function e(e){return"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.indexOf(e)>=0}return VP=1,qP=function(){var t=!document.registerElement,n=e("CriOS");(e("Android")&&e("Chrome/")&&window.navigator.presentation||n)&&t&&zP()}}
715(),t=MO(),n=bO?vO:(bO=1,vO=function(e){const t=e.getComponent("Button");e.registerComponent("chromecastButton",class extends t{constructor(e,t){super(e,t),e.on("chromecastConnected",this._onChromecastConnected.bind(this)),e.on("chromecastDisconnected",this._onChromecastDisconnected.bind(this)),e.on("chromecastDevicesAvailable",this._onChromecastDevicesAvailable.bind(this)),e.on("chromecastDevicesUnavailable",this._onChromecastDevicesUnavailable.bind(this)),e.chromecastSessionManager&&e.chromecastSessionManager.hasAvailableDevices()?this._onChromecastDevicesAvailable():this._onChromecastDevicesUnavailable(),t.addCastLabelToButton?(this.el().classList.add("vjs-chromecast-button-lg"),this._labelEl=document.createElement("span"),this._labelEl.classList.add("vjs-chromecast-button-label"),this._updateCastLabelText(),this.el().appendChild(this._labelEl)):this.controlText("Open Chromecast menu")}buildCSSClass(){return"vjs-chromecast-button "+(this._isChromecastConnected?"vjs-chromecast-casting-state ":"")+(this.options_.addCastLabelToButton?"vjs-chromecast-button-lg ":"")+t.prototype.buildCSSClass()}handleClick(){this.player().trigger("chromecastRequested")}_onChromecastConnected(){this._isChromecastConnected=!0,this._reloadCSSClasses(),this._updateCastLabelText()}_onChromecastDisconnected(){this._isChromecastConnected=!1,this._reloadCSSClasses(),this._updateCastLabelText()}_onChromecastDevicesAvailable(){this.show()}_onChromecastDevicesUnavailable(){this.hide()}_reloadCSSClasses(){this.el_&&(this.el_.className=this.buildCSSClass())}_updateCastLabelText(){this._labelEl&&(this._labelEl.textContent=this._isChromecastConnected?this.localize("Disconnect Cast"):this.localize("Cast"))}})}),r=jO(),i=UO(),s=t.ChromecastFramework;return AO=function(t,o){return new Promise(function(a){var l=Object.assign({preloadWebComponents:!1,chromecastOptions:{}},o);window.chromecastFrameworkInstance=new s(l.chromecastOptions,function(){l.preloadWebComponents&&e(),t=t||window.videojs,n(t),r(t),i(t),a()},function(){t=t||window.videojs,r(t),a()})})}}());const BO=Xa(vE()),FO=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e),r=new DataView(t);for(let i=0;i<n.byteLength;i++)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0},qO=e=>e instanceof Uint8Array||e instanceof Uint16Array?e.buffer:e,VO=(...e)=>{const t=BP.obj||BP;return(t.merge||t.mergeOptions).apply(t,e)},HO=(...e)=>{const t=VO(...e);return Object.keys(t).forEach(e=>{null===t[e]&&delete t[e]}),t},zO=e=>{const t=[];return Object.keys(e).forEach(n=>{const r=rL(n,e[n])[0];t.push(r)}),t}; 716/*! @name videojs-contrib-eme @version 5.5.2 @license Apache-2.0 */let GO=BP.xhr.httpHandler;GO||(GO=(e,t)=>(n,r,i)=>{if(n)e(n);else{if(r.statusCode>=400&&r.statusCode<=599){let n=i;return t&&(n=String.fromCharCode.apply(null,new Uint8Array(i))),void e({cause:n})}e(null,i)}});const KO=(e,t,n,r,i)=>{const s=(e=>{const t=String.fromCharCode.apply(null,new Uint16Array(e)),n=(new GE.DOMParser).parseFromString(t,"application/xml"),r=n.getElementsByTagName("HttpHeaders")[0];let i={};if(r){const e=r.getElementsByTagName("name"),t=r.getElementsByTagName("value");for(let n=0;n<e.length;n++)i[e[n].childNodes[0].nodeValue]=t[n].childNodes[0].nodeValue}const s=n.getElementsByTagName("Challenge")[0];let o;return s&&(o=GE.atob(s.childNodes[0].nodeValue)),n.querySelector("parsererror")&&(i={"Content-Type":"text/xml; charset=utf-8",SOAPAction:'"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"'},o=e),{headers:i,message:o}})(n),o=s.message,a=HO(s.headers,r.emeHeaders,t.licenseHeaders);BP.xhr({uri:t.url,method:"post",headers:a,body:o,responseType:"arraybuffer",requestType:"license",metadata:{keySystem:e}},GO(i,!0))},WO={EMEFailedToRequestMediaKeySystemAccess:"eme-failed-request-media-key-system-access",EMEFailedToCreateMediaKeys:"eme-failed-create-media-keys",EMEFailedToAttachMediaKeysToVideoElement:"eme-failed-attach-media-keys-to-video",EMEFailedToCreateMediaKeySession:"eme-failed-create-media-key-session",EMEFailedToSetServerCertificate:"eme-failed-set-server-certificate",EMEFailedToGenerateLicenseRequest:"eme-failed-generate-license-request",EMEFailedToUpdateSessionWithReceivedLicenseKeys:"eme-failed-update-session",EMEFailedToCloseSession:"eme-failed-close-session",EMEFailedToRemoveKeysFromSession:"eme-failed-remove-keys",EMEFailedToLoadSessionBySessionId:"eme-failed-load-session"},XO="com.apple.fps.1_0",YO=({initData:e,id:t,cert:n})=>{"string"==typeof t&&(t=(e=>{const t=new ArrayBuffer(2*e.length),n=new Uint16Array(t);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n})(t));let r=0;const i=new ArrayBuffer(e.byteLength+4+t.byteLength+4+n.byteLength),s=new DataView(i);new Uint8Array(i,r,e.byteLength).set(e),r+=e.byteLength,s.setUint32(r,t.byteLength,!0),r+=4;const o=new Uint16Array(i,r,t.length);o.set(t),r+=o.byteLength,s.setUint32(r,n.byteLength,!0),r+=4;return new Uint8Array(i,r,n.byteLength).set(n),new Uint8Array(i,0,i.byteLength)},ZO=(e,t)=>
716(n,r)=>{const i=HO(n.emeHeaders,t.certificateHeaders);BP.xhr({uri:t.certificateUri,responseType:"arraybuffer",requestType:"license",metadata:{keySystem:e},headers:i},GO((e,t)=>{e?r(e):r(null,new Uint8Array(t))}))},JO=(e,t)=>(e=>{const t=BO.createElement("a");return t.href=e,t.hostname})(t),QO=(e,t)=>(n,r,i,s)=>{const o=HO({"Content-type":"application/octet-stream"},n.emeHeaders,t.licenseHeaders);BP.xhr({uri:t.licenseUri||t.url,method:"POST",responseType:"arraybuffer",requestType:"license",metadata:{keySystem:e,contentId:r},body:i,headers:o},GO(s,!0))},eL=({video:e,initData:t,options:n,eventBus:r,emeError:i})=>{const s=n.keySystems[XO],o=s.getCertificate||ZO(XO,s),a=s.getContentId||JO,l=s.getLicense||QO(XO,s);return new Promise((e,t)=>{o(n,(n,r)=>{if(n){return i(n,{errorType:WO.EMEFailedToSetServerCertificate,keySystem:XO}),void t(n)}e(r)})}).then(s=>{return(({video:e,contentId:t,initData:n,cert:r,options:i,getLicense:s,eventBus:o,emeError:a})=>new Promise((l,c)=>{if(!e.webkitKeys)try{e.webkitSetMediaKeys(new GE.WebKitMediaKeys(XO))}catch(d){return a(d,{errorType:WO.EMEFailedToCreateMediaKeys,keySystem:XO}),void c("Could not create MediaKeys")}let u;try{u=e.webkitKeys.createSession("video/mp4",YO({id:t,initData:n,cert:r}))}catch(d){return a(d,{errorType:WO.EMEFailedToCreateMediaKeySession,keySystem:XO}),void c("Could not create key session")}nL(o,{type:"keysessioncreated",keySession:u}),u.contentId=t,u.addEventListener("webkitkeymessage",e=>{nL(o,{type:"keymessage",messageEvent:e}),s(i,t,e.message,(e,t)=>{if(o&&nL(o,{type:"licenserequestattempted"}),e)return a(e,{errortype:WO.EMEFailedToGenerateLicenseRequest,keySystem:XO}),void c(e);u.update(new Uint8Array(t)),nL(o,{type:"keysessionupdated",keySession:u})})}),u.addEventListener("webkitkeyadded",()=>{l()}),u.addEventListener("webkitkeyerror",()=>{const e=u.error;a(e,{errorType:WO.EMEFailedToUpdateSessionWithReceivedLicenseKeys,keySystem:XO}),c(`KeySession error: code ${e.code}, systemCode ${e.systemCode}`)})}))({video:e,cert:s,initData:t,getLicense:l,options:n,contentId:a(n,(o=t,String.fromCharCode.apply(null,new Uint16Array(o.buffer||o)))),eventBus:r,emeError:i});var o})},tL=e=>e.startsWith("com.apple.fps"),nL=(e,t)=>{e.isDisposed()||e.trigger(ZE({},t))},rL=(e,t)=>{if(t.supportedConfigurations)return t.supportedConfigurations;const n=tL(e),r={},i=t.initDataTypes||(n?["sinf"]:null),s=t.audioContentType,o=t.audioRobustness,a=t.videoContentType||(n?"video/mp4":null),l=t.videoRobustness,c=t.persistentState;return(s||o)&&(r.audioCapabilities=[ZE({},s?{contentType:s}:{},o?{robustness:o}:{})]),(a||l)&&(r.videoCapabilities=[ZE({},a?{contentType:a}:{},l?{robustness:l}:{})]),c&&(r.persistentState=c),i&&(r.initDataTypes=i),[r]},iL=(e,t)=>{const{mediaKeys:n,initDataType:r,initData:i,options:s,getLicense:o,removeSession:a,eventBus:l,contentId:c,emeError:u,keySystem:d}=t;let h,p=0;e.on("pause",()=>{s.limitRenewalsMaxPauseDuration&&"number"==typeof s.limitRenewalsMaxPauseDuration&&(h=setInterval(()=>{p++,p>=s.limitRenewalsMaxPauseDuration&&clearInterval(h)},1e3),e.on("play",()=>{clearInterval(h),p=0}))});try{const t=n.createSession(),h=()=>{BP.log.debug("Session expired, closing the session."),t.close().then(()=>{l.isDisposed()||(nL(l,{type:"keysessionclosed",keySession:t}),a(i))}).catch(e=>{u(e,{errorType:WO.EMEFailedToCloseSession,keySystem:d})})};return nL(l,{type:"keysessioncreated",keySession:t}),e.on("dispose",()=>{h()}),new Promise((n,a)=>{t.addEventListener("message",r=>{if(nL(l,{type:"keymessage",messageEvent:r}),"license-request"===r.messageType||"license-renewal"===r.messageType){if("license-renewal"===r.messageType){const t=s.limitRenewalsBeforePlay,n=s.limitRenewalsMaxPauseDuration,r="number"==typeof n,i=!e.hasStarted()&&t,o=e.paused()&&r&&p>=n,a=e.ended();if(i||o||a)return void h()}o(s,r.message,c).then(e=>{n(t.update(e).then(()=>{nL(l,{type:"keysessionupdated",keySession:t})}).catch(e=>{u(e,{errorType:WO.EMEFailedToUpdateSessionWithReceivedLicenseKeys,keySystem:d})}))}).catch(e=>{a(e)})}},!1);const f="keystatuseschange";t.addEventListener(f,e=>{let n=!1;l.isDisposed()||(nL(l,{type:f,keyStatuses:t.keyStatuses}
716),t.keyStatuses.forEach((r,i)=>{switch(nL(l,{keyId:i,status:r,target:t,type:"keystatuschange"}),r){case"expired":n=!0;break;case"internal-error":const t='Key status reported as "internal-error." Leaving the session open since we don\'t have enough details to know if this error is fatal.';BP.log.warn(t,e)}}),n&&h())},!1),t.generateRequest(r,i).catch(e=>{u(e,{errorType:WO.EMEFailedToGenerateLicenseRequest,keySystem:d}),a("Unable to create or initialize key session")})})}catch(f){u(f,{errorType:WO.EMEFailedToCreateMediaKeySession,keySystem:d})}},sL=(e,t)=>{if("string"==typeof t&&(t={url:t}),!t.url&&t.licenseUri&&(t.url=t.licenseUri),!t.url&&!t.getLicense)throw new Error(`Missing url/licenseUri or getLicense in ${e} keySystem configuration.`);const n=tL(e);if(n&&t.certificateUri&&!t.getCertificate&&(t.getCertificate=ZO(e,t)),n&&!t.getCertificate)throw new Error(`Missing getCertificate or certificateUri in ${e} keySystem configuration.`);return n&&!t.getContentId&&(t.getContentId=JO),t.url&&!t.getLicense&&(t.getLicense="com.microsoft.playready"===e?((e,t)=>(n,r,i)=>{KO(e,t,r,n,i)})(e,t):n?QO(e,t):((e,t)=>(n,r,i)=>{const s=HO({"Content-type":"application/octet-stream"},n.emeHeaders,t.licenseHeaders);BP.xhr({uri:t.url,method:"POST",responseType:"arraybuffer",requestType:"license",metadata:{keySystem:e},body:r,headers:s},GO(i,!0))})(e,t)),t},oL=({player:e,video:t,initDataType:n,initData:r,keySystemAccess:i,options:s,removeSession:o,eventBus:a,emeError:l})=>{let c=Promise.resolve();const u=i.keySystem;let d;try{d=sL(u,s.keySystems[u])}catch(CL){return Promise.reject(CL)}const h=d.getContentId?d.getContentId(s,(p=r,String.fromCharCode.apply(null,new Uint8Array(p.buffer||p)))):null;var p;if(void 0===t.mediaKeysObject){let n;t.mediaKeysObject=null,t.pendingSessionData=[],c=new Promise((e,r)=>{t.keySystem=u,d.getCertificate?d.getCertificate(s,(t,i)=>{t?r(t):(n=i,e())}):e(i)}).then(()=>i.createMediaKeys()).then(r=>(nL(a,{type:"keysystemaccesscomplete",mediaKeys:r}),(({player:e,video:t,certificate:n,createdMediaKeys:r,emeError:i})=>{t.mediaKeysObject=r;const s=[];n&&s.push(r.setServerCertificate(n).catch(e=>{const n={errorType:WO.EMEFailedToSetServerCertificate,keySystem:t.keySystem};i(e,n)}));for(let o=0;o<t.pendingSessionData.length;o++){const n=t.pendingSessionData[o];s.push(iL(e,{mediaKeys:t.mediaKeysObject,initDataType:n.initDataType,initData:n.initData,options:n.options,getLicense:n.getLicense,removeSession:n.removeSession,eventBus:n.eventBus,contentId:n.contentId,emeError:n.emeError,keySystem:t.keySystem}))}return t.pendingSessionData=[],s.push(t.setMediaKeys(r).catch(e=>{const n={errorType:WO.EMEFailedToAttachMediaKeysToVideoElement,keySystem:t.keySystem};i(e,n)})),Promise.all(s)})({player:e,video:t,certificate:n,createdMediaKeys:r,emeError:l}))).catch(e=>(l(e,{errorType:WO.EMEFailedToCreateMediaKeys,keySystem:u}),e?Promise.reject(e):Promise.reject("Failed to create and initialize a MediaKeys object")))}return c.then(()=>{const i=t.keySystem?((e,t,n)=>(r,i,s)=>new Promise((o,a)=>{const l=function(e,t){n&&nL(n,{type:"licenserequestattempted"}),e?a(e):o(t)};tL(e)?t(r,s,new Uint8Array(i),l):t(r,i,l)}))(u,d.getLicense,a):null;return(({player:e,video:t,initDataType:n,initData:r,options:i,getLicense:s,contentId:o,removeSession:a,eventBus:l,emeError:c})=>{const u={initDataType:n,initData:r,options:i,getLicense:s,removeSession:a,eventBus:l,contentId:o,emeError:c,keySystem:t.keySystem};return t.mediaKeysObject?(u.mediaKeys=t.mediaKeysObject,iL(e,u)):(t.pendingSessionData.push(u),Promise.resolve())})({player:e,video:t,initDataType:n,initData:r,options:s,getLicense:i,contentId:h,removeSession:o,eventBus:a,emeError:l})})},aL="com.microsoft.playready",lL=(e,t,n,r,i)=>{const s=e.msKeys.createSession("video/mp4",t);if(!s){const e=new Error("Could not create key session.");throw i(e,{errorType:WO.EMEFailedToCreateMediaKeySession,keySystem:aL}),e}nL(r,{type:"keysessioncreated",keySession:s}),s.addEventListener("mskeymessage",e=>{nL(r,{type:"keymessage",messageEvent:e}),((e,t,n,r,i)=>{let s=e.keySystems[aL];if("function"==typeof s.getKey)return void s.getKey(e,n.destinationURL,n.message.buffer,(n,s)=>{if(n){const s={errorType:WO.EMEFailedToRequestMediaKeySystemAccess,config:zO(e.keySystems)};return i(n,s),void nL(r,{message:"Unable to get key: "+n,target:t,type:"mskeyerror"})}t.update(s),nL(r,{type:"keysessionupdated",keySession:t})});"string"==typeof s?s={url:s}:"boolean"==typeof s&&(s={}),s.url||(s.url=n.destinationURL);const o=(e,n)=>{if(r&&nL(r,{type:"licenserequestattempted"}),e)return i(e,{errorType:WO.EMEFailedToGenerateLicenseRequest,keySystem:aL}),void nL(r,{message:"Unable to request key from url: "+s.url,target:t,type:"mskeyerror"});t.update(new Uint8Array(n))};s.getLicense?s.getLicense(e,n.message.buffer,o):KO(aL,s,n.message.buffer,e,o)})(n,s,e,r,i)}),s.addEventListener("mskeyerror",e=>{const t={errorType:WO.EMEFailedToCreateMediaKeySession,keySystem:aL};i(s.error,t),nL(r,{message:`Unexpected key error from key session with code: ${s.error.code} and systemCode: ${s.error.systemCode}`,target:s,type:"mskeyerror"})}),s.addEventListener("mskeyadded",()=>{nL(r,{target:s,type:"mskeyadded"})})};const cL=[{initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]}
716],uL=[{keySystem:"com.apple.fps",supportedConfig:[{initDataTypes:["sinf"],videoCapabilities:[{contentType:"video/mp4"}]}]},{keySystem:"com.microsoft.playready.recommendation",supportedConfig:cL},{keySystem:"com.widevine.alpha",supportedConfig:cL},{keySystem:"org.w3.clearkey",supportedConfig:cL}],dL=()=>{const e=GE.Promise,t={fairplay:Boolean(GE.WebKitMediaKeys),playready:!1,widevine:!1,clearkey:!1};return GE.MediaKeys&&GE.navigator.requestMediaKeySystemAccess?e.all(uL.map(({keySystem:e,supportedConfig:t})=>GE.navigator.requestMediaKeySystemAccess(e,t).catch(()=>{}))).then(([e,n,r,i])=>(t.fairplay=Boolean(e),t.playready=Boolean(n),t.widevine=Boolean(r),t.clearkey=Boolean(i),t)):e.resolve(t)};const hL=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].initData===t)return void e.splice(n,1)};function pL(e,t,n,r,i,s){if(!n||!n.keySystems)return Promise.resolve();if(n.keySystems[XO]&&GE.WebKitMediaKeys&&e.eme.legacyFairplayIsUsed)return BP.log.debug("eme",`Ignoring 'encrypted' event, using legacy fairplay keySystem ${XO}`),Promise.resolve();let o=t.initData;return(e=>{let t;return Object.keys(e).forEach(n=>{const r=rL(n,e[n]);t=t?t.catch(e=>GE.navigator.requestMediaKeySystemAccess(n,r)):GE.navigator.requestMediaKeySystemAccess(n,r)}),t})(n.keySystems).then(a=>{const l=a.keySystem;return n.keySystems[l]&&n.keySystems[l].pssh&&(o=n.keySystems[l].pssh),((e,t)=>{for(let n=0;n<e.length;n++){if(!e[n].initData)continue;const r=qO(e[n].initData),i=qO(t);if(FO(r,i))return!0}return!1})(r,o)||!o?Promise.resolve():(r.push({initData:o}),oL({player:e,video:t.target,initDataType:t.initDataType,initData:o,keySystemAccess:a,options:n,removeSession:hL.bind(null,r),eventBus:i,emeError:s}))}).catch(e=>{const t={errorType:WO.EMEFailedToRequestMediaKeySystemAccess,config:zO(n.keySystems)};s(e,t)})}const fL=(e,t,n,r,i)=>{if(!t.keySystems||!t.keySystems[aL])return;if(n.reduce((e,t)=>e||t.playready,!1))return;let s=e.initData;t.keySystems[aL]&&t.keySystems[aL].pssh&&(s=t.keySystems[aL].pssh),s&&(n.push({playready:!0,initData:s}),(({video:e,initData:t,options:n,eventBus:r,emeError:i})=>{e.msKeys&&delete e.msKeys;try{e.msSetMediaKeys(new GE.MSMediaKeys(aL))}catch(CL){throw i(CL,{errorType:WO.EMEFailedToCreateMediaKeys,keySystem:aL}),new Error("Unable to create media keys for PlayReady key system. Error: "+CL.message)}lL(e,t,n,r,i)})({video:e.target,initData:s,options:t,eventBus:r,emeError:i}))},mL=e=>VO(e.currentSource(),e.eme.options),_L=e=>{const t=e.src();t!==e.eme.activeSrc&&(e.eme.activeSrc=t,e.eme.sessions=[])},gL=(e,t)=>{if("video"===e.$(".vjs-tech").tagName.toLowerCase())if(_L(e),GE.MediaKeys){const n=()=>{const n={initDataType:"cenc",initData:null,target:e.tech_.el_};_L(e),pL(e,n,mL(e),e.eme.sessions,e.tech_,t)};if(BP.browser.IS_FIREFOX){let t;e.on("ended",()=>{t=!1,e.one(["seek","play"],r=>{t||0!==e.eme.sessions.length||(n(),t=!0)})}),e.on("play",()=>{const r=e.eme.options.limitRenewalsMaxPauseDuration;0===e.eme.sessions.length&&"number"==typeof r&&(t=!0,n())})}e.tech_.el_.addEventListener("encrypted",n=>{BP.log.debug("eme","Received an 'encrypted' event"),_L(e),pL(e,n,mL(e),e.eme.sessions,e.tech_,t)})}else if(GE.WebKitMediaKeys)e.eme.initLegacyFairplay();else if(GE.MSMediaKeys){e.tech_.el_.addEventListener("msneedkey",n=>{BP.log.debug("eme","Received an 'msneedkey' event"),_L(e);try{fL(n,mL(e),e.eme.sessions,e.tech_,t)}catch(r){t(r)}});const n=e=>{t(e)};e.tech_.on("mskeyerror",n),e.on("dispose",()=>{e.tech_.off("mskeyerror",n)})}},yL=function(e={}){const t=this,n=(e=>(t,n)=>{const r={code:5};"string"==typeof t?r.message=t:t&&(t.message&&(r.message=t.message),t.cause&&(t.cause.length||t.cause.byteLength)&&(r.cause=t.cause),t.keySystem&&(r.keySystem=t.keySystem),r.originalError=t),n&&(r.metadata=n),e.error(r)})(t);t.ready(()=>gL(t,n)),t.eme={setupEmeListeners(){gL(t,n)},initializeMediaKeys(r={},i=function(){},s=!1){const o=VO(t.currentSource(),e,r),a={initDataType:"cenc",initData:null,target:t.tech_.el_};if(_L(t),GE.MediaKeys)pL(t,a,o,t.eme.sessions,t.tech_,n).then(()=>i()).catch(e=>{i(e),s||n(e)});else if(GE.MSMediaKeys){const e=r=>{t.tech_.off("mskeyadded",e),t.tech_.off("mskeyerror",e),"mskeyerror"===r.type?(i(r.target.error),s||n(r.message)):i()};t.tech_.one("mskeyadded",e),t.tech_.one("mskeyerror",e);try{fL(a,o,t.eme.sessions,t.tech_,n)}catch(l){t.tech_.off("mskeyadded",e),t.tech_.off("mskeyerror",e),i(l),s||n(l)}}},initLegacyFairplay(){const e=e=>{BP.log.debug("eme","Received a 'webkitneedkey' event"),_L(t),((e,t,n,r)=>t.keySystems&&t.keySystems[XO]&&e.initData?eL({video:e.target,initData:e.initData,options:t,eventBus:n,emeError:r}):Promise.resolve())(e,mL(t),t.tech_,n).catch(e=>{n(e)})},r=n=>{const r=mL(t).firstWebkitneedkeyTimeout||1e3,i=t.src();
716t.eme.webkitneedkey_=t.eme.webkitneedkey_||{},t.eme.webkitneedkey_.src!==i&&(t.eme.webkitneedkey_={handledFirstEvent:!1,src:i}),t.eme.webkitneedkey_.handledFirstEvent?e(n):(t.clearTimeout(t.eme.webkitneedkey_.timeout),t.eme.webkitneedkey_.timeout=t.setTimeout(()=>{t.eme.webkitneedkey_.handledFirstEvent=!0,t.eme.webkitneedkey_.timeout=null,e(n)},r))};t.eme.legacyFairplayIsUsed=!0;let i=t.tech_.el_;i.addEventListener("webkitneedkey",r);const s=()=>{t.off("dispose",s),null!==i&&i.removeEventListener("webkitneedkey",r),t.eme.legacyFairplayIsUsed=!1,i=null};return t.on("dispose",s),s},detectSupportedCDMs:dL,legacyFairplayIsUsed:!1,options:e}};BP.registerPlugin("eme",yL),yL.Error=WO,yL.VERSION="5.5.2";var vL,bL,wL={exports:{}};vL||(vL=1,bL=wL,function(e,t){if("undefined"!=typeof window&&window.videojs)t(window.videojs);else if(bL.exports){var n=$P();bL.exports=t(n.default||n)}}(0,function(e){"undefined"!=typeof window&&(window.videojs_hotkeys={version:"0.2.30"}),(e.registerPlugin||e.plugin)("hotkeys",function(t){var n=this,r=n.el(),i=document,s={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableHoverScroll:!1,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,captureDocumentHotkeys:!1,documentHotkeysFocusElementFilter:()=>!1,enableModifiersForNumbers:!0,enableInactiveFocus:!0,skipInitialFocus:!1,playPauseKey:function(e){return 32===e.which||179===e.which},rewindKey:function(e){return 37===e.which||177===e.which},forwardKey:function(e){return 39===e.which||176===e.which},volumeUpKey:function(e){return 38===e.which},volumeDownKey:function(e){return 40===e.which},muteKey:function(e){return 77===e.which},fullscreenKey:function(e){return 70===e.which},customKeys:{}},o=e.obj?.merge||e.mergeOptions||e.util.mergeOptions,a=(t=o(s,t||{})).volumeStep,l=t.seekStep,c=t.enableMute,u=t.enableVolumeScroll,d=t.enableHoverScroll,h=t.enableFullscreen,p=t.enableNumbers,f=t.enableJogStyle,m=t.alwaysCaptureHotkeys,_=t.captureDocumentHotkeys,g=t.documentHotkeysFocusElementFilter,y=t.enableModifiersForNumbers,v=t.enableInactiveFocus,b=t.skipInitialFocus,w=e.VERSION;r.hasAttribute("tabIndex")||r.setAttribute("tabIndex","-1"),r.style.outline="none",!m&&n.autoplay()||b||n.one("play",()=>{r.focus()}),v&&n.on("userinactive",()=>{var e=()=>{clearTimeout(t)},t=setTimeout(()=>{n.off("useractive",e);var t=i.activeElement,s=t.parentElement,o=r.querySelector(".vjs-control-bar");!t||o!=s&&o!=s.parentElement||r.focus()},10);n.one("useractive",e)}),n.on("play",()=>{var e=r.querySelector(".iframeblocker");e&&""===e.style.display&&(e.style.display="block",e.style.bottom="39px")});var k=function(e){var s,o,l=e.which,u=e.preventDefault.bind(e),d=n.duration();if(n.controls()){var v=i.activeElement;if(m||_&&g(v)||v==r||v==r.querySelector(".vjs-tech")||v==r.querySelector(".vjs-control-bar")||v==r.querySelector(".iframeblocker"))switch(x(e,n)){case 1:u(),(m||_)&&e.stopPropagation(),n.paused()?I(n.play()):n.pause();break;case 2:s=!n.paused(),u(),s&&n.pause(),(o=n.currentTime()-E(e))<=0&&(o=0),n.currentTime(o),s&&I(n.play());break;case 3:s=!n.paused(),u(),s&&n.pause(),(o=n.currentTime()+E(e))>=d&&(o=s?d-.001:d),n.currentTime(o),s&&I(n.play());break;case 5:u(),f?(o=n.currentTime()-1,n.currentTime()<=1&&(o=0),n.currentTime(o)):n.volume(n.volume()-a);break;case 4:u(),f?((o=n.currentTime()+1)>=d&&(o=d),n.currentTime(o)):n.volume(n.volume()+a);break;case 6:c&&n.muted(!n.muted());break;case 7:h&&(n.isFullscreen()?n.exitFullscreen():n.requestFullscreen());break;default:if((l>47&&l<59||l>95&&l<106)&&(y||!(e.metaKey||e.ctrlKey||e.altKey))&&p){var b=48;l>95&&(b=96);var w=l-b;u(),n.currentTime(n.duration()*w*.1)}for(var k in t.customKeys){var C=t.customKeys[k];C&&C.key&&C.handler&&C.key(e)&&(u(),C.handler(n,t,e))}}}},C=!1,T=r.querySelector(".vjs-volume-menu-button")||r.querySelector(".vjs-volume-panel");null!=T&&(T.addEventListener("mouseover",()=>{C=!0}),T.addEventListener("mouseout",()=>{C=!1}));var S=function(e){if(d)var t=0;else t=i.activeElement;if(n.controls()&&(m||t==r||t==r.querySelector(".vjs-tech")||t==r.querySelector(".iframeblocker")||t==r.querySelector(".vjs-control-bar")||C)&&u){e=window.event||e;var s=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));e.preventDefault(),1==s?n.volume(n.volume()+a):-1==s&&n.volume(n.volume()-a)}},x=function(e,n){return t.playPauseKey(e,n)?1:t.rewindKey(e,n)?2:t.forwardKey(e,n)?3:t.volumeUpKey(e,n)?4:t.volumeDownKey(e,n)?5:t.muteKey(e,n)?6:t.fullscreenKey(e,n)?7:void 0};function E(e){return"function"==typeof l?l(e):l}function I(e){null!=e&&"function"==typeof e.then&&e.then(null,function(e){})}if(_){var A=function(e){k(e)};document.addEventListener("keydown",A),this.dispose=()=>{document.removeEventListener("keydown",A)}}else n.on("keydown",k);return n.on("dblclick",function(e){if(null!=w&&w<="7.1.0"&&n.controls()){var t=e.relatedTarget||e.toElement||i.activeElement;t!=r&&t!=r.querySelector(".vjs-tech")&&t!=r.querySelector(".iframeblocker")||h&&(n.isFullscreen()?n.exitFullscreen():n.requestFullscreen())}}),n.on("mousewheel",S),n.on("DOMMouseScroll",S),this})}));
716var kL,CL,TL={exports:{}}; 717/*! 718 * videojs-mux 719 * @version 4.21.28 720 * @copyright 2026 Mux, Inc. 721 */kL||(kL=1,TL.exports=(CL=$P(),function(){var e={48:function(e,t,n){var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},855:function(e){e.exports=CL}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){n.r(r),n.d(r,{register:function(){return On}});var e=n(48),t=n.n(e),i=n(855),s=n.n(i),o=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=function(e,t){return function(){return e&&(t=e(e=0)),t}},p=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},f=function(e,t,n){return n=null!=e?o(u(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t)for(var i,s=c(t),o=0,u=s.length;o<u;o++)i=s[o],!d.call(e,i)&&i!==n&&a(e,i,{get:function(e){return t[e]}.bind(null,i),enumerable:!(r=l(t,i))||r.enumerable});return e}(e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)},m=p(function(e,t){var n;n="undefined"!=typeof window?window:void 0!==Wa?Wa:"undefined"!=typeof self?self:{},t.exports=n});function _(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):_(e,t)}var g=h(function(){g()});function y(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var v=h(function(){}),b=p(function(e,t){var n=Array.prototype.slice;t.exports=function(e,t){for(("length"in e||(e=[e]),e=n.call(e));e.length;){var r=e.shift(),i=t(r);if(i)return i;r.childNodes&&r.childNodes.length&&(e=n.call(r.childNodes).concat(e))}}}),w=p(function(e,t){function n(e,t){if(!_(this,n))return new n(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}g(),t.exports=n,n.prototype.nodeType=8,n.prototype.nodeName="#comment",n.prototype.toString=function(){return"[object Comment]"}}),k=p(function(e,t){function n(e,t){if(!_(this,n))return new n(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}g(),t.exports=n,n.prototype.type="DOMTextNode",n.prototype.nodeType=3,n.prototype.nodeName="#text",n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(e,t,n){var r=this.data,i=r.substring(0,e),s=r.substring(e+t,r.length);this.data=i+n+s,this.length=this.data.length}}),C=p(function(e,t){t.exports=function(e){var t=this,n=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var r=t.listeners[n];if(r)return r.forEach(function(n){e.currentTarget=t,"function"==typeof n?n(e):n.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)}}),T=p(function(e,t){t.exports=function(e,t){var n=this;n.listeners||(n.listeners={}),n.listeners[e]||(n.listeners[e]=[]),-1===n.listeners[e].indexOf(t)&&n.listeners[e].push(t)}}),S=p(function(e,t){t.exports=function(e,t){var n=this;if(n.listeners&&n.listeners[e]){var r=n.listeners[e],i=r.indexOf(t);-1!==i&&r.splice(i,1)}}}),x=p(function(e,t){v(),t.exports=r;var n=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function r(e){switch(e.nodeType){case 3:return o(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return a=[],l=(t=e).tagName,"http://www.w3.org/1999/xhtml"===t.namespaceURI&&(l=l.toLowerCase()),a.push("<"+l+function(e){var t=[];
721for(var n in e)i(e,n)&&t.push({name:n,value:e[n]});for(var r in e._attributes)for(var o in e._attributes[r]){var a=e._attributes[r][o],l=(a.prefix?a.prefix+":":"")+o;t.push({name:l,value:a.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?s(t):""}(t)+function(e){var t=e.dataset,n=[];for(var r in t)n.push({name:"data-"+r,value:t[r]});return n.length?s(n):""}(t)),n.indexOf(l)>-1?a.push(" />"):(a.push(">"),t.childNodes.length?a.push.apply(a,t.childNodes.map(r)):t.textContent||t.innerText?a.push(o(t.textContent||t.innerText)):t.innerHTML&&a.push(t.innerHTML),a.push("</"+l+">")),a.join("")}var t,a,l}function i(e,t){var n=y(e[t]);return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===n||"boolean"===n||"number"===n)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function s(e){var t=[];return e.forEach(function(e){var n=e.name,r=e.value;"style"===n&&(r=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach(function(n){var r=e[n];n=n.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),t+=n+":"+r+";"}),t}(r)),t.push(n+'="'+o(r).replace(/"/g,""")+'"')}),t.length?" "+t.join(" "):""}function o(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}),E=p(function(e,t){g();var n=b(),r=C(),i=T(),s=S(),o=x(),a="http://www.w3.org/1999/xhtml";function l(e,t,n){if(!_(this,l))return new l(e);var r=void 0===n?a:n||null;this.tagName=r===a?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=r,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}t.exports=l,l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},l.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[n]=e,e.parentNode=this,t},l.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},l.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var n=null==t?-1:this.childNodes.indexOf(t);return n>-1?this.childNodes.splice(n,0,e):this.childNodes.push(e),e.parentNode=this,e},l.prototype.setAttributeNS=function(e,t,n){var r=null,i=t,s=t.indexOf(":");s>-1&&(r=t.substr(0,s),i=t.substr(s+1)),"INPUT"===this.tagName&&"type"===t?this.type=n:(this._attributes[e]||(this._attributes[e]={}))[i]={value:n,prefix:r}},l.prototype.getAttributeNS=function(e,t){var n=this._attributes[e],r=n&&n[t]&&n[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof r?null:r},l.prototype.removeAttributeNS=function(e,t){var n=this._attributes[e];n&&delete n[t]},l.prototype.hasAttributeNS=function(e,t){var n=this._attributes[e];return!!n&&t in n},l.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},l.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},l.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},l.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},l.prototype.removeEventListener=s,l.prototype.addEventListener=i,l.prototype.dispatchEvent=r,l.prototype.focus=function(){},l.prototype.toString=function(){return o(this)},l.prototype.getElementsByClassName=function(e){var t=e.split(" "),r=[];return n(this,function(e){if(1===e.nodeType){var n=(e.className||"").split(" ");t.every(function(e){return-1!==n.indexOf(e)})&&r.push(e)}}),r},l.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return n(this.childNodes,function(n){1===n.nodeType&&("*"===e||n.tagName.toLowerCase()===e)&&t.push(n)}),t},l.prototype.contains=function(e){return n(this,function(t){return e===t})||!1}}),I=p(function(e,t){g();var n=E();function r(e){if(!_(this,r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}t.exports=r,r.prototype.type="DocumentFragment",r.prototype.nodeType=11,r.prototype.nodeName="#document-fragment",r.prototype.appendChild=n.prototype.appendChild,r.prototype.replaceChild=n.prototype.replaceChild,r.prototype.removeChild=n.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join("")}}),A=p(function(e,t){function n(e){}t.exports=n,n.prototype.initEvent=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n},n.prototype.preventDefault=function(){}}),P=p(function(e,t){g();var n=b(),r=w(),i=k(),s=E(),o=I(),a=A(),l=C(),c=T(),u=S();function d(){if(!_(this,d))return new d;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}t.exports=d;var h=d.prototype;h.createTextNode=function(e){return new i(e,this)},h.createElementNS=function(e,t){var n=null===e?null:String(e);return new s(t,this,n)},h.createElement=function(e){return new s(e,this)},h.createDocumentFragment=function(){return new o(this)},h.createEvent=function(e){return new a(e)},h.createComment=function(e){return new r(e,this)},h.getElementById=function(e){return e=String(e),n(this.childNodes,function(t){if(String(t.id)===e)return t})||null},h.getElementsByClassName=s.prototype.getElementsByClassName,h.getElementsByTagName=s.prototype.getElementsByTagName,h.contains=s.prototype.contains,h.removeEventListener=u,h.addEventListener=c,h.dispatchEvent=l}),O=p(function(e,t){var n=P();t.exports=new n}),L=p(function(e,t){var n,r=void 0!==Wa?Wa:"undefined"!=typeof window?window:{},i=O();"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=n});function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(l){a=!0,i=l}finally{try{!o&&null!=n.return&&n.return()}finally{if(a)throw i}}return s}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to de
721structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=f(m()),j=f(m()),U=f(m()),$={now:function(){var e=U.default.performance,t=e&&e.timing,n=t&&t.navigationStart,r="number"==typeof n&&"function"==typeof e.now?n+e.now():Date.now();return Math.round(r)}},B=function(){var e,t,n;if("function"==typeof(null===(e=j.default.crypto)||void 0===e?void 0:e.getRandomValues)){n=new Uint8Array(32),j.default.crypto.getRandomValues(n);for(var r=0;r<32;r++)n[r]=n[r]%16}else{n=[];for(var i=0;i<32;i++)n[i]=16*Math.random()|0}var s=0;t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t="x"===e?n[s]:3&n[s]|8;return s++,t.toString(16)});var o=$.now(),a=null==o?void 0:o.toString(16).substring(3);return a?t.substring(0,28)+a:t},F=function(){return("000000"+(Math.random()*Math.pow(36,6)|0).toString(36)).slice(-6)},q=function(e){if(e&&void 0!==e.nodeName)return e.muxId||(e.muxId=F()),e.muxId;var t;try{t=document.querySelector(e)}catch(n){}return t&&!t.muxId&&(t.muxId=e),(null==t?void 0:t.muxId)||e},V=function(e){var t;e&&void 0!==e.nodeName?e=q(t=e):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]};function H(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(e)||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.")}()}var z=0,G=1,K=2,W=3,X=4,Y=function(e){var t,n,r,i,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,a=[console,e],l=(t=console.trace).bind.apply(t,H(a)),c=(n=console.info).bind.apply(n,H(a)),u=(r=console.debug).bind.apply(r,H(a)),d=(i=console.warn).bind.apply(i,H(a)),h=(s=console.error).bind.apply(s,H(a)),p=o;return{trace:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!(p>z))return l.apply(void 0,H(t))},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!(p>G))return u.apply(void 0,H(t))},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!(p>K))return c.apply(void 0,H(t))},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!(p>W))return d.apply(void 0,H(t))},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!(p>X))return h.apply(void 0,H(t))},get level(){return p},set level(e){e!==this.level&&(p=null!=e?e:o)}}}("[mux]"),Z=f(m());function J(){return"1"===(Z.default.doNotTrack||Z.default.navigator&&Z.default.navigator.doNotTrack)}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,t){if(!_(e,t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e,t,n){return(se="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ie(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n||e):i.value}})(e,t,n||e)}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function le(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?Q(e):t}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var i=ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return le(this,n)}}g(),v();var ue=function(e){return de(e)[0]},de=function(e){if("string"!=typeof e||""===e)return["localhost"];var t,n=(e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return n&&(t=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,t]},he=f(m()),pe={exists:function(){var e=he.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=he.default.performance,t=e&&e.t
721iming;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=he.default.performance,t=e&&e.timing;return t&&t.navigationStart}};function fe(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){re(e,t,n[t])})}return e}function _e(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var ge=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],ye=["x-cdn","content-type"].concat(ge);function ve(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach(function(e){if(e){var n=e.split(": "),r=n.shift();r&&(ye.indexOf(r.toLowerCase())>=0||0===r.toLowerCase().indexOf("x-litix-"))&&(t[r]=n.join(": "))}}),t}function be(e){if(e){var t=ge.find(function(t){return void 0!==e[t]});return t?e[t]:void 0}}var we=function(e){var t={};for(var n in e){var r=e[n];-1!==r["DATA-ID"].search("io.litix.data.")&&(t[r["DATA-ID"].replace("io.litix.data.","")]=r.VALUE)}return t},ke=function(e){if(!e)return{};var t=pe.navigationStart(),n=e.loading,r=n?n.start:e.trequest,i=n?n.first:e.tfirst,s=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+r),responseStart:Math.round(t+i),responseEnd:Math.round(t+s)}},Ce=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return ve(e.getAllResponseHeaders())},Te=function(e,t){if(!e||!e.requestEndDate)return{};var n,r=ue(e.url),i=e.url,s=e.bytesLoaded,o=new Date(e.requestStartDate).getTime(),a=new Date(e.firstByteDate).getTime(),l=new Date(e.requestEndDate).getTime(),c=isNaN(e.duration)?0:e.duration,u="function"==typeof t.getMetricsFor?t.getMetricsFor(e.mediaType).HttpList:t.getDashMetrics().getHttpRequests(e.mediaType);return u.length>0&&(n=ve(u[u.length-1]._responseHeaders||"")),{requestStart:o,requestResponseStart:a,requestResponseEnd:l,requestBytesLoaded:s,requestResponseHeaders:n,requestMediaDuration:c,requestHostname:r,requestUrl:i,requestId:n?be(n):void 0}},Se=function(e,t){if("function"==typeof t.getCurrentRepresentationForType){var n=t.getCurrentRepresentationForType(e);return n?{currentLevel:n.absoluteIndex,renditionWidth:n.width||null,renditionHeight:n.height||null,renditionBitrate:n.bandwidth}:{}}var r=t.getQualityFor(e),i=t.getCurrentTrackFor(e).bitrateList;return i?{currentLevel:r,renditionWidth:i[r].width||null,renditionHeight:i[r].height||null,renditionBitrate:i[r].bandwidth}:{}},xe=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},Ee=function(e){try{var t,n;return null===(n=e.getVersion)||void 0===n||null===(t=n.call(e))||void 0===t?void 0:t.split(".").map(function(e){return parseInt(e)})[0]}catch(r){return!1}},Ie=0,Ae=function(){function e(){ee(this,e),re(this,"_listeners",void 0)}return ne(e,[{key:"on",value:function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++Ie,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach(function(e,r){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(r,1)})}},{key:"one",value:function(e,t,n){var r=this;t._eventEmitterGuid=t._eventEmitterGuid||++Ie;var i=function(){r.off(e,i),t.apply(n||this,arguments)};i._eventEmitterGuid=t._eventEmitterGuid,this.on(e,i)}},{key:"emit",value:function(e,t){var n=this;if(this._listeners){t=t||{};var r=this._listeners["before"+e]||[],i=this._listeners["before*"]||[],s=this._listeners[e]||[],o=this._listeners["after"+e]||[],a=function(t,r){(t=t.slice()).forEach(function(t){t.call(n,{type:e},r)})};a(r,t),a(i,t),a(s,t),a(o,t)}}}]),e}(),Pe=Ae,Oe=f(m()),Le=function(){function e(t){var n=this;ee(this,e),re(this,"_playbackHeartbeatInterval",void 0),re(this,"_playheadShouldBeProgressing",void 0),re(this,"pm",void 0),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",function(){n._playheadShouldBeProgressing=!0}),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",function(){t.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()}),t.on("timeupdate",function(){null!==n._playbackHeartbeatInterval&&t.emit("playbackheartbeat")}),t.on("devicesleep",function(e,r){null!==n._playbackHeartbeatInterval&&(Oe.default.clearInterval(n._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:r.viewer_time}),n._playbackHeartbeatInterval=null)})}return ne(e,[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=Oe.default.setInterval(function(){e.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(Oe.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),e}(),De=function e(t){var n=this;ee(this,e),re(this,"viewErrored",void 0),t.on("viewinit",function(){n.viewErrored=!1}),t.on("error",function(e,r){try{var i=t.errorTranslator({player_error_code:r.player_error_code,player_error_message:r.player_error_message,player_error_context:r.player_error_context,player_error_severity:r.player_error_severity,player_error_business_exception:r.player_error_business_exception});i&&(t.data.player_error_code=i.player_error_code||r.player_error_code,t.data.player_error_message=i.player_error_message||r.player_error_message,t.data.player_error_context=i.player_error_context||r.player_error_context,t.data.player_error_severity=i.player_error_severity||r.player_error_severity,t.data.player_error_business_exception=i.player_error_business_exception||r.player_error_business_exception,n.viewErrored=!0)}catch(s){t.mux.log.warn("Exception in error translator callback.",s),n.viewErrored=!0}}),t.on("aftererror",function(){var e,n,r,i,s;null===(e=t.data)||void 0===e||delete e.player_error_code,null===(n=t.data)||void 0===n||delete n.player_error_message,null===(r=t.data)||void 0===r||delete r.player_error_context,null===(i=t.data)||void 0===i||delete i.player_error_severity,null===(s=t.data)||void 0===s||delete s.player_error_business_exception})},Re=function(){function e(t){ee(this,e),re(this,"_watchTimeTrackerLastCheckedTime",void 0),re(this,"pm",void 0),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return ne(e,[{key:"_updateWatchTime",value:function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),fe(this.pm.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n}},{key:"_clearWatchTimeState",value:function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null}}]),e}(),Me=function(){function e(t){var n=this;ee(this,e),re(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),re(this,"_lastTime",void 0),re(this,"_isAdPlaying",void 0),re(this,"_callbackUpdatePlaybackTime",void 0),re(this,"pm",void 0),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=$.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null,t.on("viewinit",function(){n.pm.data.view_playing_time_ms_cumulative=0});var r=this._startPlaybackTimeTracking.bind(this);t.on("playing",r),t.on("adplaying",r);var i=function(){n.pm.data.player_is_paused||r()};t.on("seeked",i),t.on("rebufferend",i);var s=this._stopPlaybackTimeTracking.bind(this);t.on("playbackheartbeatend",s),t.on("seeking",s),t.on("rebufferstart",s),t.on("adplaying",function(){n._isAdPlaying=!0}),t.on("adended",function(){n._isAdPlaying=!1}),t.on("adpause",function(){n._isAdPlaying=!1}),t.on("adbreakstart",function(){n._isAdPlaying=!1}),t.on("adbreakend",function(){n._isAdPlaying=!1}),t.on("adplay",function(){n._isAdPlaying=!1}),t.on("viewinit",function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=$.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null})}return ne(e,[{key:"_startPlaybackTimeTracking",value:function(){null===this._callbackUpdatePlaybackTime&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this._lastTime=$.now(),this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time||0,t=$.now(),n=t-this._lastTime,r=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>
vendor: 9,632 bytes, line 721
721this._playbackTimeTrackerLastPlayheadPosition?r=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(r=n),r>0&&r<=1e3&&fe(this.pm.data,"view_content_playback_time",r),null!==this._callbackUpdatePlaybackTime&&n>0&&n<=1e3&&(this._isAdPlaying&&fe(this.pm.data,"ad_playing_time_ms_cumulative",n),fe(this.pm.data,"view_playing_time_ms_cumulative",n)),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=t}}]),e}(),Ne=function(){function e(t){ee(this,e),re(this,"pm",void 0),this.pm=t;var n=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",n),t.on("playbackheartbeatend",n),t.on("timeupdate",n),t.on("destroy",function(){t.off("timeupdate",n)})}return ne(e,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,t){var n=this,r=function(){n.pm.currentFragmentPDT&&n.pm.currentFragmentStart&&(n.pm.data.player_program_time=n.pm.currentFragmentPDT+n.pm.data.player_playhead_time-n.pm.currentFragmentStart)};if(t&&t.player_playhead_time)this.pm.data.player_playhead_time=t.player_playhead_time,r(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var i=this.pm.getPlayheadTime();void 0!==i&&(this.pm.data.player_playhead_time=i,r(),this._updateMaxPlayheadPosition())}}}]),e}(),je=3e5,Ue=function e(t){if(ee(this,e),!t.disableRebufferTracking){var n,r=function(e,t){i(t),n=void 0},i=function(e){if(n){var r=e.viewer_time-n;fe(t.data,"view_rebuffer_duration",r),n=e.viewer_time,t.data.view_rebuffer_duration>je&&(t.emit("viewend"),t.send("viewend"),t.mux.log.warn("Ending view after rebuffering for longer than ".concat(je,"ms, future events will be ignored unless a programchange or videochange occurs.")))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",function(e,t){return i(t)}),t.on("rebufferstart",function(e,i){n||(fe(t.data,"view_rebuffer_count",1),n=i.viewer_time,t.one("rebufferend",r))}),t.on("viewinit",function(){n=void 0,t.off("rebufferend",r)})}},$e=function(){function e(t){var n=this;ee(this,e),re(this,"_lastCheckedTime",void 0),re(this,"_lastPlayheadTime",void 0),re(this,"_lastPlayheadTimeUpdatedTime",void 0),re(this,"_rebuffering",void 0),re(this,"pm",void 0),this.pm=t,!t.disableRebufferTracking&&!t.disablePlayheadRebufferTracking&&(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",function(){n._cleanupRebufferTracker(null,{viewer_time:$.now()})}))}return ne(e,[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,t);else if(null!==this._lastCheckedTime)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&n>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}else this._cleanupRebufferTracker(e,t,!0);else this._prepareRebufferTrackerState(t.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var r=this.pm.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&r>0&&i-r>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-r}))}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}]),e}(),Be=$e,Fe=function(){function e(t){var n=this;ee(this,e),re(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){var e=t.data,r=e.view_id;if(!e.view_program_changed){var i=function(e,i){var s=i.viewer_time;("playing"===e.type&&void 0===t.data.view_time_to_first_frame||"adplaying"===e.type&&(void 0===t.data.view_time_to_first_frame||n._inPrerollPosition()))&&n.calculateTimeToFirstFrame(s||$.now(),r)};t.one("playing",i),t.one("adplaying",i),t.one("viewend",function(){t.off("playing",i),t.off("adplaying",i)})}})}return ne(e,[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,t){t===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.pm.pageLoadInitTime&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.pm.pageLoadInitTime))}}]),e}(),qe=function e(t){var n=this;ee(this,e),re(this,"_lastPlayerHeight",void 0),re(this,"_lastPlayerWidth",void 0),re(this,"_lastPlayheadPosition",void 0),re(this,"_lastSourceHeight",void 0),re(this,"_lastSourceWidth",void 0),t.on("viewinit",function(){n._lastPlayheadPosition=-1}),["pause","rebufferstart","seeking","error","adbreakstart","hb","renditionchange","orientationchange","viewend","playbackmodechange"].forEach(function(e){t.on(e,function(){if(n._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var e=t.data.player_playhead_time-n._lastPlayheadPosition;if(e<0)return void(n._lastPlayheadPosition=-1);var r=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),i=Math.max(0,r-1),s=Math.max(0,1-r);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,i),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,s),fe(t.data,"view_total_content_playback_time",e),fe(t.data,"view_total_upscaling",i*e),fe(t.data,"view_total_downscaling",s*e)}n._lastPlayheadPosition=-1})}),["playing","hb","renditionchange","orientationchange","playbackmodechange"].forEach(function(e){t.on(e,function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height})})},Ve=function e(t){var n=this;ee(this,e),re(this,"isSeeking",void 0),this.isSeeking=!1;var r=-1,i=function(){var e=$.now(),i=(t.data.viewer_time||e)-(r||e);fe(t.data,"view_seek_duration",i),t.data.view_max_seek_time=Math.max(t.data.view_max_seek_time||0,i),n.isSeeking=!1,r=-1};t.on("seeking",function(e,s){Object.assign(t.data,s),n.isSeeking&&s.viewer_time-r<=2e3?r=s.viewer_time:(n.isSeeking&&i(),n.isSeeking=!0,r=s.viewer_time,fe(t.data,"view_seek_count",1),t.send("seeking"))}),t.on("seeked",function(){i()}),t.on("viewend",function(){n.isSeeking&&(i(),t.send("seeked")),n.isSeeking=!1,r=-1})},He=function(e,t){e.push(t),e.sort(function(e,t){return e.viewer_time-t.viewer_time})},ze=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],Ge=function(){function e(t){var n=this;ee(this,e),re(this,"_adHasPlayed",void 0),re(this,"_adRequests",void 0),re(this,"_adResponses",void 0),re(this,"_currentAdRequestNumber",void 0),re(this,"_currentAdResponseNumber",void 0),re(this,"_prerollPlayTime",void 0),re(this,"_wouldBeNewAdPlay",void 0),re(this,"isAdBreak",void 0),re(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0}),ze.forEach(function(e){return t.on(e,n._updateAdData.bind(n))});var r=function(){n.isAdBreak=!1};t.on("adbreakstart",function(){n.isAdBreak=!0}),t.on("play",r),t.on("playing",r),t.on("viewend",r),t.on("adrequest",function(e,r){r=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},r),He(n._adRequests,r),fe(t.data,"view_ad_request_count"),n.inPrerollPosition()&&(t.data.view_preroll_requested=!0,n._adHasPlayed||fe(t.data,"view_preroll_request_count"))}),t.on("adresponse",function(e,r){r=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},r),He(n._adResponses,r);var i=n.findAdRequest(r.ad_request_id);i&&fe(t.data,"view_ad_request_time",Math.max(0,r.viewer_time-i.viewer_time))}),t.on("adplay",function(e,r){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,fe(t.data,"view_ad_played_count")),n.inPrerollPosition()&&
vendor: 5,487 bytes, line 721
721!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,n._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,r.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,r.viewer_time-t.data.view_start)),n._prerollPlayTime=r.viewer_time)}),t.on("adplaying",function(e,r){n.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==n._prerollPlayTime&&(t.data.view_preroll_load_time=r.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=r.viewer_time-n._prerollPlayTime)}),t.on("adclicked",function(e,r){n._wouldBeNewAdPlay||fe(t.data,"view_ad_clicked_count")}),t.on("adskipped",function(e,r){n._wouldBeNewAdPlay||fe(t.data,"view_ad_skipped_count")}),t.on("adended",function(){n._wouldBeNewAdPlay=!0}),t.on("aderror",function(){n._wouldBeNewAdPlay=!0})}return ne(e,[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]}},{key:"_updateAdData",value:function(e,t){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=M(de(t.ad_tag_url),2),r=n[0],i=n[1];this.pm.data.view_preroll_ad_tag_domain=i,this.pm.data.view_preroll_ad_tag_hostname=r}if(!this.pm.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var s=M(de(t.ad_asset_url),2),o=s[0],a=s[1];this.pm.data.view_preroll_ad_asset_domain=a,this.pm.data.view_preroll_ad_asset_hostname=o}this.pm.data.ad_type="preroll"}this.pm.data.ad_asset_url=null==t?void 0:t.ad_asset_url,this.pm.data.ad_tag_url=null==t?void 0:t.ad_tag_url,this.pm.data.ad_creative_id=null==t?void 0:t.ad_creative_id,this.pm.data.ad_id=null==t?void 0:t.ad_id,this.pm.data.ad_universal_id=null==t?void 0:t.ad_universal_id,null!=t&&t.ad_type&&(this.pm.data.ad_type=null==t?void 0:t.ad_type)}}]),e}(),Ke=function e(t){var n=this;ee(this,e),re(this,"lastWallClockTime",void 0);var r=function(){n.lastWallClockTime=$.now(),t.on("before*",i)},i=function(e){var r=$.now(),i=n.lastWallClockTime;n.lastWallClockTime=r,r-i>3e4&&(t.emit("devicesleep",{viewer_time:i}),Object.assign(t.data,{viewer_time:i}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:r}),Object.assign(t.data,{viewer_time:r}),t.send("devicewake"))};t.one("playbackheartbeat",r),t.on("playbackheartbeatend",function(){t.off("before*",i),t.one("playbackheartbeat",r)})},We=f(m()),Xe=function(){var e=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t};function t(n){function r(t,i,s){var o;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(s=e({path:"/"},r.defaults,s)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*s.expires),s.expires=a}try{o=JSON.stringify(i),/^[\{\[]/.test(o)&&(i=o)}catch(f){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var d=l[u].split("="),h=d.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var p=d[0].replace(c,decodeURIComponent);if(h=n.read?n.read(h,p):n(h,p)||h.replace(c,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(f){}if(t===p){o=h;break}t||(o[p]=h)}catch(f){}}return o}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})}(),Ye="muxData",Ze=function(){var e;try{e=(Xe.get(Ye)||"").split("&").reduce(function(e,t){var n=M(t.split("="),2),r=n[0],i=n[1],s=+i,o=i&&s==i?s:i;return e[r]=o,e},{})}catch(t){e={}}return e},Je=function(e){try{Xe.set(Ye,(t=e,Object.entries(t).map(function(e){var t=M(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(r)}).join("&")),{expires:365})}catch(n){}var t},Qe=function(){var e=Ze();return e.mux_viewer_id=e.mux_viewer_id||B(),e.msn=e.msn||Math.random(),Je(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}};function et(e,t){var n=t.beaconCollectionDomain,r=t.beaconDomain;if(n)return(/localhost(?::\d+)?$/.test(n)?"http://":"https://")+n;var i=r||"litix.io";return(e=e||"inferred").match(/^[a-z0-9]+$/)?"https://"+e+"."+i:"https://img.litix.io/a.gif"}var tt=rt({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),nt=rt({ad:"ad",af:"affiliate",ag:"aggregate",ap:"api",al:"application",ao:"audio",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",bn:"brand",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ci:"client",ck:"clicked",cl:"canceled",cm:"cmcd",cn:"config",co:"count",ce:"counter",cp:"complete",cq:"creator",cr:"creative",cs:"captions",ct:"content",cu:"current",cv:"cumulative",cx:"c
721onnection",cz:"context",da:"data",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",dy:"dynamic",eb:"enabled",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",lw:"low",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mp:"mode",ms:"ms",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",or:"origin",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pp:"pip",pr:"preload",ps:"position",pt:"part",pv:"previous",py:"property",px:"pop",pz:"plan",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rg:"range",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sh:"shift",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",ss:"status",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function rt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function it(e){var t={},n={};return Object.keys(e).forEach(function(r){var i=!1;if(e.hasOwnProperty(r)&&void 0!==e[r]){var s=r.split("_"),o=s[0],a=tt[o];a||(Y.info("Data key word `"+s[0]+"` not expected in "+r),a=o+"_"),s.splice(1).forEach(function(e){"url"===e&&(i=!0),nt[e]?a+=nt[e]:Number.isInteger(Number(e))?a+=e:(Y.info("Data key word `"+e+"` not expected in "+r),a+="_"+e+"_")}),i?n[a]=e[r]:t[a]=e[r]}}),Object.assign(t,n)}var st=f(m()),ot=f(L()),at={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},lt=["hb","requestcompleted","requestfailed","requestcanceled"],ct="https://img.litix.io",ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||ct,this._eventQueue=[],this._postInFlight=!1,this._resendAfterPost=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},at,t)};ut.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},ut.prototype.flushEvents=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},ut.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),st.default.clearTimeout(this._sendTimeout)},ut.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],it({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);ht(this._beaconUrl,n,!0,function(){})},ut.prototype._sendBeaconQueue=function(){var e=this;if(this._postInFlight)this._resendAfterPost=!0;else{var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),r=$.now();ht(this._beaconUrl,n,!1,function(n,i){i?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,Y.info("Error sending beacon: "+i)):e._failureCount=0,e._roundTripTime=$.now()-r,e._postInFlight=!1,e._resendAfterPost&&(e._resendAfterPost=!1,e._eventQueue.length>0&&e._sendBeaconQueue())})}},ut.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},ut.prototype._startBeaconSending=function(){var e=this;st.default.clearTimeout(this._sendTimeout),!this.destroyed&&(this._sendTimeout=st.default.setTimeout(function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()},this._getNextBeaconTime()))},ut.prototype._createPayload=function(e){var t=this,n={transmission_timestamp:Math.round($.now())};this._roundTripTime&&(n.rtt_ms=Math.round(this._roundTripTime));var r,i,s,o=function(){r=JSON.stringify({metadata:n,events:i||e}),s=r.length/1024},a=function(){return s<=t._options.maxPayloadKBSize};return o(),a()||(Y.info("Payload size is too big ("+s+" kb). Removing unnecessary events."),i=e.filter(function(e){return-1===lt.indexOf(e.e)}),o()),a()||(Y.info("Payload size still too big ("+s+" kb). Cropping fields.."),i.forEac
721h(function(e){for(var t in e){var n=e[t];"string"==typeof n&&n.length>51200&&(e[t]=n.substring(0,51200))}}),o()),r};var dt="function"==typeof ot.default.exitPictureInPicture?function(e){return e.length<=57344}:function(e){return!1},ht=function(e,t,n,r){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t))r();else if(st.default.fetch)st.default.fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:dt(t)}).then(function(e){return r(null,e.ok?null:"Error")}).catch(function(e){return r(null,e)});else{if(st.default.XMLHttpRequest){var i=new st.default.XMLHttpRequest;return i.onreadystatechange=function(){if(4===i.readyState)return r(null,200!==i.status?"error":void 0)},i.open("POST",e),i.setRequestHeader("Content-Type","text/plain"),void i.send(t)}r()}},pt=ut,ft=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception","view_playing_time_ms_cumulative","ad_playing_time_ms_cumulative"],mt=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],_t=["ad_id","ad_creative_id","ad_universal_id"],gt=["viewstart","error","ended","viewend"],yt=function(){function e(t,n){var r,i,s,o,a,l,c,u,d,h,p,f,m,_,g,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ee(this,e),re(this,"mux",void 0),re(this,"envKey",void 0),re(this,"options",void 0),re(this,"eventQueue",void 0),re(this,"sampleRate",void 0),re(this,"disableCookies",void 0),re(this,"respectDoNotTrack",void 0),re(this,"previousBeaconData",void 0),re(this,"lastEventTime",void 0),re(this,"rateLimited",void 0),re(this,"pageLevelData",void 0),re(this,"viewerData",void 0),this.mux=t,this.envKey=n,this.options=y,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new pt(et(this.envKey,this.options)),this.sampleRate=null!==(m=this.options.sampleRate)&&void 0!==m?m:1,this.disableCookies=null!==(_=this.options.disableCookies)&&void 0!==_&&_,this.respectDoNotTrack=null!==(g=this.options.respectDoNotTrack)&&void 0!==g&&g,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(r=this.options.platform)||void 0===r?void 0:r.name,viewer_application_version:null===(i=this.options.platform)||void 0===i?void 0:i.version,viewer_application_engine:null===(s=this.options.platform)||void 0===s?void 0:s.layout,viewer_device_name:null===(o=this.options.platform)||void 0===o?void 0:o.product,viewer_device_category:"",viewer_device_manufacturer:null===(a=this.options.platform)||void 0===a?void 0:a.manufacturer,viewer_os_family:null===(c=this.options.platform)||void 0===c||null===(l=c.os)||void 0===l?void 0:l.family,viewer_os_architecture:null===(d=this.options.platform)||void 0===d||null===(u=d.os)||void 0===u?void 0:u.architecture,viewer_os_version:null===(p=this.options.platform)||void 0===p||null===(h=p.os)||void 0===h?void 0:h.version,page_url:null===We.default||void 0===We.default||null===(f=We.default.location)||void 0===f?void 0:f.href},this.viewerData=this.disableCookies?{}:Qe()}return ne(e,[{key:"send",value:function(e,t){if(e&&null!=t&&t.view_id){if(this.respectDoNotTrack&&J())return Y.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!=typeof t)return Y.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:(a=Ze(),l=$.now(),a.session_start&&(a.sst=a.session_start,delete a.session_start),a.session_id&&(a.sid=a.session_id,delete a.session_id),a.session_expires&&(a.sex=a.session_expires,delete a.session_expires),(!a.sex||a.sex<l)&&(a.sid=B(),a.sst=l),a.sex=l+15e5,Je(a),{session_id:a.sid,session_start:a.sst,session_expires:a.sex}),r=_e(me({},this.pageLevelData,t,n,this.viewerData),{event:e,env_key:this.envKey});r.user_id&&(r.viewer_user_id=r.user_id,delete r.user_id);var i,s=(null!==(i=r.mux_sample_number)&&void 0!==i?i:0)>=this.sampleRate,o=it(this._deduplicateBeaconData(e,r));if(this.lastEventTime=this.mux.utils.now(),s)return Y.info("Not sending event due to sample rate restriction",e,r,o);if(this.envKey||Y.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,r,o),!this.rateLimited)if(Y.info("Sending event",e,r,o),this.rateLimited=!this.eventQueue.queueEvent(e,o),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else{if(this.mux.WINDOW_HIDDEN&&"hb"===e)this.eventQueue.flushEvents(!0);else if(gt.indexOf(e)>=0){if("error"===e&&"warning"===t.player_error_severity)return;this.eventQueue.flushEvents()}if(this.rateLimited)return r.event="eventrateexceeded",o=it(r),this.eventQueue.queueEvent(r.event,o),Y.error("Beaconing disabled due to rate limit.")}}var a,l}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var n=this,r={},i=t.view_id;if("-1"===i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)r=me({},t),i&&(this.previousBeaconData=r),i&&"viewend"===e&&(this.previousBeaconData=null);else{var s=0===e.indexOf("request");Object.entries(t).forEach(function(t){var i=M(t,2),o=i[0],a=i[1];n.previousBeaconData&&(a!==n.previousBeaconData[o]||ft.indexOf(o)>-1||n.objectHasChanged(s,o,a,n.previousBeaconData[o])||n.eventRequiresKey(e,o))&&(r[o]=a,n.previousBeaconData[o]=a)})}return r}},{key:"objectHasChanged",value:function(e,t,n,r){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"==typeof n&&"object"==typeof r&&Object.keys(n||{}).length===Object.keys(r||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return!!("renditionchange"===e&&0===t.indexOf("video_source_")||_t.includes(t)&&mt.includes(e)||"playbackmodechange"===e&&0===t.indexOf("player_playback_mode"))}}]),e}(),vt=function e(t){ee(this,e);var n=0,r=0,i=0,s=0,o=0,a=0,l=0;t.on("requestcompleted",function(e,a){var l,c,u=a.request_start,d=a.request_response_start,h=a.request_response_end,p=a.request_bytes_loaded;if(s++,d?(l=d-(null!=u?u:0),c=(null!=h?h:0)-d):c=(null!=h?h:0)-(null!=u?u:0),c>0&&p&&p>0){var f=p/c*8e3;o++,r+=p,i+=c,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,f),t.data.view_average_request_throughput=r/i*8e3,t.data.view_request_count=s,l>0&&(n+=l,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,l),t.data.view_average_request_latency=n/o)}}),t.on("requestfailed",function(e,n){s++,a++,t.data.view_request_count=s,t.data.view_request_failed_count=a}),t.on("requestcanceled",function(e,n){s++,l++,t.data.view_request_count=s,t.data.view_request_canceled_count=l})},bt=function e(t){var n=this;ee(this,e),re(this,"_lastEventTime",void 0),t.on("before*",function(e,r){var i=r.viewer_time,s=$.now(),o=n._lastEventTime;if(n._lastEventTime=s,o&&s-o>36e5){var a=Object.keys(t.data).reduce(function(e,n){return 0===n.indexOf("video_")?Object.assign(e,re({},n,t.data[n])):e},{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view");var l=t.playbackHeartbeat._playheadShouldBeProgressing;t._resetView(Object.assign({viewer_time:i},a)),t.playbackHeartbeat._playheadShouldBeProgressing=l,t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:i}),"playing"!==e.type&&t.emit("playing",{viewer_time:i}))}})};function wt(e,t){return(null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase())}var kt=function e(t){ee(this,e);var n=function(e){var n,r,i=null!=(n=e)&&n.request_type&&("media"===n.request_type||"video"===n.request_type)&&null!==(r=n.request_response_headers)&&void 0!==r&&r["x-cdn"]?n.request_response_headers["x-cdn"]:null!=n&&n.video_cdn?n.video_cdn:null,a=function(e){return null!=e&&e.request_start?e.request_start:null!=e&&e.viewer_time?e.viewer_time:Date.now()}(e);if(null!=i&&!wt(i,s)&&o<=a){s=i,o=a;var l={video_cdn:i};t.emit("cdnchange",l)}}
721,r=null,i=null,s=null,o=0;t.on("viewinit",function(){r=null,i=null,s=null,o=0}),t.on("beforecdnchange",function(e,t){var n=null==t?void 0:t.video_cdn;n&&(void 0===t.video_previous_cdn||null===t.video_previous_cdn)&&(wt(n,i)?t.video_previous_cdn=null!=r?r:void 0:(t.video_previous_cdn=null!=i?i:void 0,r=i,i=n))}),t.on("requestcompleted",function(e,t){n(t)})},Ct=function e(t){var n=this;ee(this,e),re(this,"_emittingAutomaticEvent",!1),re(this,"_hasInitialized",!1),re(this,"_currentMode","standard"),t.on("viewstart",function(){n._hasInitialized||(n._hasInitialized=!0,n._currentMode=t.data.player_playback_mode||"standard",n._emittingAutomaticEvent=!0,t.emit("playbackmodechange",{player_playback_mode:n._currentMode,player_playback_mode_data:"{}"}),n._emittingAutomaticEvent=!1)}),t.on("viewend",function(){n._hasInitialized=!1}),t.on("playbackmodechange",function(e,r){n._emittingAutomaticEvent||(r.player_playback_mode_data?function(e){try{return JSON.parse(e),!0}catch(t){return!1}}(r.player_playback_mode_data)||(t.mux.log.warn("Invalid JSON string for player_playback_mode_data"),r.player_playback_mode_data="{}"):r.player_playback_mode_data="{}",t.data.player_playback_mode_data=r.player_playback_mode_data,t.data.player_playback_mode=r.player_playback_mode,n._currentMode=r.player_playback_mode)})},Tt=function(){function e(t){ee(this,e),re(this,"pm",void 0),re(this,"_currentRangeStart",void 0),re(this,"_lastPlayheadTime",void 0),this.pm=t,this._currentRangeStart=null,this._lastPlayheadTime=null,t.on("playbackheartbeat",this._updatePlaybackRange.bind(this)),t.on("playbackheartbeatend",this._endPlaybackRange.bind(this))}return ne(e,[{key:"_updateLastRangeEnd",value:function(){var e=this.pm.data.video_playback_ranges;if(e&&e.length>0){var t=this.pm.data.player_playhead_time||0;e[e.length-1][1]=t}}},{key:"_updatePlaybackRange",value:function(){var e,t=this.pm.data.player_playhead_time||0;if(!(!this.pm.disableAdPlaybackRangeFiltering&&null!==(e=this.pm.adTracker)&&void 0!==e&&e.isAdBreak&&null!==this._lastPlayheadTime&&t<this._lastPlayheadTime)){if(null!==this._lastPlayheadTime&&null!==this._currentRangeStart&&Math.abs(t-this._lastPlayheadTime)>1e3){var n=this.pm.data.video_playback_ranges;n&&n.length>0&&(n[n.length-1][1]=this._lastPlayheadTime),this._currentRangeStart=null}if(null===this._currentRangeStart){var r=this.pm.data.video_playback_ranges||[];r.length>0&&r[r.length-1][1]===t?this._currentRangeStart=r[r.length-1][0]:(this._currentRangeStart=t,r.push([t,t])),this.pm.data.video_playback_ranges=r}else this._updateLastRangeEnd();this._lastPlayheadTime=t}}},{key:"_endPlaybackRange",value:function(){null!==this._currentRangeStart&&(this._updateLastRangeEnd(),this._currentRangeStart=null,this._lastPlayheadTime=null)}}]),e}(),St=Object.freeze({CELLULAR:"cellular",WIFI:"wifi",WIRED:"wired",OTHER:"other",NO_CONNECTION:"no_connection",UNKNOWN:"unknown"}),xt=f(m()),Et=function(){function e(t){var n=this;ee(this,e),re(this,"pm",void 0),re(this,"lastType",void 0),re(this,"lastLowDataMode",void 0),this.pm=t,this.pm.one("viewinit",function(){var t,r=n.emit.bind(n);r(),xt.default.addEventListener("online",r),xt.default.addEventListener("offline",r),null===(t=e.connection)||void 0===t||t.addEventListener("change",r),n.pm.on("destroy",function(){var t;null===(t=e.connection)||void 0===t||t.removeEventListener("change",r),xt.default.removeEventListener("online",r),xt.default.removeEventListener("offline",r)})})}return ne(e,[{key:"type",get:function(){var t,n;return!1===(null===(t=xt.default.navigator)||void 0===t?void 0:t.onLine)?St.NO_CONNECTION:null!==(n=e.connection)&&void 0!==n&&n.type?function(e){if(!e)return St.UNKNOWN;switch(e){case"cellular":case"wimax":return St.CELLULAR;case"wifi":return St.WIFI;case"ethernet":return St.WIRED;case"none":return St.NO_CONNECTION;case"bluetooth":case"other":default:return St.OTHER;case"unknown":return St.UNKNOWN}}(e.connection.type):St.UNKNOWN}},{key:"lowDataMode",get:function(){var t;return null===(t=e.connection)||void 0===t?void 0:t.saveData}},{key:"emit",value:function(){var e=this.type,t=this.lowDataMode;e===this.lastType&&t===this.lastLowDataMode||(this.lastType=e,this.lastLowDataMode=t,this.pm.emit("networkchange",me({viewer_connection_type:e},void 0!==t&&{viewer_connection_low_data_mode:t})))}}
721],[{key:"connection",get:function(){return"object"==typeof(e=xt.default.navigator)&&"connection"in e&&"object"==typeof e.connection?xt.default.navigator.connection:null;var e}}]),e}(),It=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange","networkchange","cdnchange","playbackmodechange"],At=new Set(["requestcompleted","requestfailed","requestcanceled"]),Pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(n,e);var t=ce(n);function n(e,r,i){var s;ee(this,n),re(Q(s=t.call(this)),"pageLoadEndTime",void 0),re(Q(s),"pageLoadInitTime",void 0),re(Q(s),"_destroyed",void 0),re(Q(s),"_heartBeatTimeout",void 0),re(Q(s),"adTracker",void 0),re(Q(s),"dashjs",void 0),re(Q(s),"data",void 0),re(Q(s),"disablePlayheadRebufferTracking",void 0),re(Q(s),"disableRebufferTracking",void 0),re(Q(s),"disableAdPlaybackRangeFiltering",void 0),re(Q(s),"errorTracker",void 0),re(Q(s),"errorTranslator",void 0),re(Q(s),"emitTranslator",void 0),re(Q(s),"getAdData",void 0),re(Q(s),"getPlayheadTime",void 0),re(Q(s),"getStateData",void 0),re(Q(s),"stateDataTranslator",void 0),re(Q(s),"hlsjs",void 0),re(Q(s),"id",void 0),re(Q(s),"longResumeTracker",void 0),re(Q(s),"minimumRebufferDuration",void 0),re(Q(s),"mux",void 0),re(Q(s),"playbackEventDispatcher",void 0),re(Q(s),"playbackHeartbeat",void 0),re(Q(s),"playbackHeartbeatTime",void 0),re(Q(s),"playheadTime",void 0),re(Q(s),"seekingTracker",void 0),re(Q(s),"sustainedRebufferThreshold",void 0),re(Q(s),"watchTimeTracker",void 0),re(Q(s),"currentFragmentPDT",void 0),re(Q(s),"currentFragmentStart",void 0),s.pageLoadInitTime=pe.navigationStart(),s.pageLoadEndTime=pe.domContentLoadedEventEnd();var o={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,disableAdPlaybackRangeFiltering:!1,errorTranslator:function(e){return e},emitTranslator:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},stateDataTranslator:function(e){return e}};s.mux=e,s.id=r,null!=i&&i.beaconDomain&&s.mux.log.warn("The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),(i=Object.assign(o,i)).data=i.data||{},i.data.property_key&&(i.data.env_key=i.data.property_key,delete i.data.property_key),Y.level=i.debug?G:W,s.getPlayheadTime=i.getPlayheadTime,s.getStateData=i.getStateData||function(){return{}},s.getAdData=i.getAdData||function(){},s.minimumRebufferDuration=i.minimumRebufferDuration,s.sustainedRebufferThreshold=i.sustainedRebufferThreshold,s.playbackHeartbeatTime=i.playbackHeartbeatTime,s.disableRebufferTracking=i.disableRebufferTracking,s.disableRebufferTracking&&s.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),s.disablePlayheadRebufferTracking=i.disablePlayheadRebufferTracking,s.disableAdPlaybackRangeFiltering=i.disableAdPlaybackRangeFiltering,s.errorTranslator=i.errorTranslator,s.emitTranslator=i.emitTranslator,s.stateDataTranslator=i.stateDataTranslator,s.playbackEventDispatcher=new yt(e,i.data.env_key,i),s.data={player_instance_id:B(),mux_sample_rate:i.sampleRate,beacon_domain:i.beaconCollectionDomain||i.beaconDomain},s.data.view_sequence_number=1,s.data.player_sequence_number=1;var a=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"),this.emit
721("renditionchange"))}.bind(Q(s));if(s.on("viewinit",function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,t),this._initializeViewData(),this.one("play",a),this.one("adbreakstart",a)}),s.on("videochange",function(e,t){this._resetView(t)}),s.on("programchange",function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),this._resetView(Object.assign(t,{view_program_changed:!0})),a(),this.emit("play"),this.emit("playing")}),s.on("fragmentchange",function(e,t){this.currentFragmentPDT=t.currentFragmentPDT,this.currentFragmentStart=t.currentFragmentStart}),s.on("destroy",s.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var l=function(){var e=void 0!==s.data.view_start;s.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,e&&s.mux.WINDOW_HIDDEN&&(s.data.player_is_paused||s.emit("hb"))};window.addEventListener("visibilitychange",l,!1);var c=function(e){e.persisted||s.destroy()};window.addEventListener("pagehide",c,!1),s.on("destroy",function(){window.removeEventListener("visibilitychange",l),window.removeEventListener("pagehide",c)})}return s.on("playerready",function(e,t){Object.assign(this.data,t)}),It.forEach(function(e){s.on(e,function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,n),this._sanitizeData()}),s.on("after"+e,function(){("error"!==e||this.errorTracker.viewErrored)&&this.send(e)})}),s.on("viewend",function(e,t){Object.assign(s.data,t)}),s.one("playerready",function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),this.pageLoadInitTime=this.data.page_load_init_time||this.pageLoadInitTime,this.pageLoadEndTime=this.data.page_load_end_time||this.pageLoadEndTime,!this.mux.PLAYER_TRACKED&&this.pageLoadInitTime&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.pageLoadEndTime)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.pageLoadEndTime||1/0)-this.pageLoadInitTime)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time}),s.longResumeTracker=new bt(Q(s)),s.errorTracker=new De(Q(s)),new Ke(Q(s)),s.seekingTracker=new Ve(Q(s)),s.playheadTime=new Ne(Q(s)),s.playbackHeartbeat=new Le(Q(s)),new qe(Q(s)),s.watchTimeTracker=new Re(Q(s)),new Me(Q(s)),new Tt(Q(s)),s.adTracker=new Ge(Q(s)),new Be(Q(s)),new Ue(Q(s)),new Fe(Q(s)),new vt(Q(s)),new kt(Q(s)),new Ct(Q(s)),new Et(Q(s)),i.hlsjs&&s.addHLSJS(i),i.dashjs&&s.addDashJS(i),s.emit("viewinit",i.data),s}return ne(n,[{key:"emit",value:function(e,t){var r,i=Object.assign({viewer_time:this.mux.utils.now()},t),s=[e,i];if(this.emitTranslator)try{s=this.emitTranslator(e,i)}catch(o){this.mux.log.warn("Exception in emit translator callback.",o)}null!=s&&s.length&&(r=se(ie(n.prototype),"emit",this)).call.apply(r,[this].concat(H(s)))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit
721("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(e){if(this.data.view_id){var t=Object.assign({},this.data);if(void 0===t.video_source_is_live&&(t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach(function(e){t[e]=void 0}),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=M(de(t.video_source_url),2),r=n[0],i=n[1];t.video_source_domain=i,t.video_source_hostname=r}delete t.ad_request_id,t.video_playback_ranges&&(t.video_playback_range=JSON.stringify(t.video_playback_ranges.filter(function(e){return e[0]!==e[1]}).map(function(e){return"".concat(e[0],":").concat(e[1])})),delete t.video_playback_ranges),this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,At.has(e)||this._restartHeartBeat(),"viewend"===e&&delete this.data.view_id}}},{key:"_resetView",value:function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}},{key:"_updateStateData",value:function(){var e,t=this.getStateData();if("function"==typeof this.stateDataTranslator)try{t=this.stateDataTranslator(t)}catch(n){this.mux.log.warn("Exception in stateDataTranslator translator callback.",n)}null!==(e=this.data)&&void 0!==e&&e.video_cdn&&null!=t&&t.video_cdn&&(t.video_cdn,t=ae(t,["video_cdn"])),Object.assign(this.data,t),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach(function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n}),["player_source_url","video_source_url"].forEach(function(t){if(e.data[t]){var n=e.data[t].toLowerCase();(0===n.indexOf("data:")||0===n.indexOf("blob:"))&&(e.data[t]="MSE style URL")}})}},{key:"_resetVideoData",value:function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("video_")&&delete e.data[t]})}},{key:"_resetViewData",value:function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("view_")&&delete e.data[t]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=B(),n=function(){t===e.data.view_id&&fe(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=window.setTimeout(function(){e.data.player_is_paused||e.emit("hb")},1e4)}},{key:"addHLSJS",value:function(e){e.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,function(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=e.log,s=e.utils.secondsToMs,o=function(e){var t,n=parseInt(r.version);return 1===n&&null!==e.programDateTime&&(t=e.programDateTime),0===n&&null!==e.pdt&&(t=e.pdt),t};if(pe.exists()){var a=function(n,r){return e.emit(t,n,r)},l=function(e,t){var n=t.levels,r=t.audioTracks,i=t.url,s=t.stats,o=t.networkDetails,l=t.sessionData,c={},u={};n.forEach(function(e,t){c[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}}),r.forEach(function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}});var d=ke(s),h=d.bytesLoaded,p=d.requestStart,f=d.responseStart,m=d.responseEnd;a("requestcompleted",_e(me({},we(l)),{request_event_type:e,request_bytes_loaded:h,request_start:p,request_response_start:f,request_response_end:m,request_type:"manifest",request_hostname:ue(i),request_response_headers:Ce(o),request_rendition_lists:{media:c,audio:u,video:{}}}))};n.on(r.Events.MANIFEST_LOADED,l);var c=function(e,t){var n=t.details,r=t.level,i=t.networkDetails,l=t.stats,c=ke(l),u=c.bytesLoaded,d=c.requestStart,h=c.responseStart,p=c.responseEnd,f=n.fragments[n.fragments.length-1],m=o(f)+s(f.duration);a("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:h,request_response_end:p,request_current_level:r,request_type:"manifest",request_hostname:ue(n.url),request_response_headers:Ce(i),video_holdback:n.holdBack&&s(n.holdBack),video_part_holdback:n.partHoldBack&&s(n.partHoldBack),video_part_target_duration:n.partTarget&&s(n.partTarget),video_target_duration:n.targetduration&&s(n.targetduration),video_source_is_live:n.live,player_manifest_newest_program_time:isNaN(m)?void 0:m})};n.on(r.Events.LEVEL_LOADED,c);var u=function(e,t){var n=t.details,r=t.networkDetails,i=t.stats,s=ke(i),o=s.bytesLoaded,l=s.requestStart,c=s.responseStart,u=s.responseEnd;a("requestcompleted",{request_event_type:e,request_bytes_loaded:o,request_start:l,request_response_start:c,request_response_end:u,request_type:"manifest",request_hostname:ue(n.url),request_response_headers:Ce(r)})};n.on(r.Events.AUDIO_TRACK_LOADED,u);var d=function(e,t){var r=t.stats,i=t.networkDetails,s=t.frag;r=r||s.stats;var o=ke(r),l=o.bytesLoaded,c=o.requestStart,u=o.responseStart,d=o.responseEnd,h=i?Ce(i):void 0,p={request_event_type:e,request_bytes_loaded:l,request_start:c,request_response_start:u,request_response_end:d,request_hostname:i?ue(i.responseURL):void 0,request_id:h?be(h):void 0,request_response_headers:h,request_media_duration:s.duration,request_url:null==i?void 0:i.responseURL};"main"===s.type?(p.request_type="media",p.request_current_level=s.level,p.request_video_width=(n.levels[s.level]||{}).width,p.request_video_height=(n.levels[s.level]||{}).height,p.request_labeled_bitrate=(n.levels[s.level]||{}).bitrate):p.request_type=s.type,a("requestcompleted",p)};n.on(r.Events.FRAG_LOADED,d);var h=function(e,t){var n=t.frag,r=n.start,i={currentFragmentPDT:o(n),currentFragmentStart:s(r)};
vendor: 4,092 bytes, line 721
721a("fragmentchange",i)};n.on(r.Events.FRAG_CHANGED,h);var p=function(e,t){var n=t.type,i=t.details,s=t.response,o=t.fatal,l=t.frag,c=t.networkDetails,u=(null==l?void 0:l.url)||t.url||"",d=c?Ce(c):void 0;if((i===r.ErrorDetails.MANIFEST_LOAD_ERROR||i===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||i===r.ErrorDetails.FRAG_LOAD_ERROR||i===r.ErrorDetails.FRAG_LOAD_TIMEOUT||i===r.ErrorDetails.LEVEL_LOAD_ERROR||i===r.ErrorDetails.LEVEL_LOAD_TIMEOUT||i===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||i===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||i===r.ErrorDetails.SUBTITLE_LOAD_ERROR||i===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||i===r.ErrorDetails.KEY_LOAD_ERROR||i===r.ErrorDetails.KEY_LOAD_TIMEOUT)&&a("requestfailed",{request_error:i,request_url:u,request_hostname:ue(u),request_id:d?be(d):void 0,request_type:i===r.ErrorDetails.FRAG_LOAD_ERROR||i===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":i===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||i===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":i===r.ErrorDetails.SUBTITLE_LOAD_ERROR||i===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":i===r.ErrorDetails.KEY_LOAD_ERROR||i===r.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==s?void 0:s.code,request_error_text:null==s?void 0:s.text}),o){var h,p="".concat(u?"url: ".concat(u,"\n"):"")+"".concat(s&&(s.code||s.text)?"response: ".concat(s.code,", ").concat(s.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(h=t.err)||void 0===h?void 0:h.message,"\n"):"");a("error",{player_error_code:n,player_error_message:i,player_error_context:p})}};n.on(r.Events.ERROR,p);var f=function(e,t){var n=t.frag,r=n&&n._url||"";a("requestcanceled",{request_event_type:e,request_url:r,request_type:"media",request_hostname:ue(r)})};n.on(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,f);var m=function(e,t){var r=t.level,s=n.levels[r];if(s&&s.attrs&&s.attrs.BANDWIDTH){var o,l=s.attrs.BANDWIDTH,c=parseFloat(s.attrs["FRAME-RATE"]);isNaN(c)||(o=c),l?a("renditionchange",{video_source_fps:o,video_source_bitrate:l,video_source_width:s.width,video_source_height:s.height,video_source_rendition_name:s.name,video_source_codec:null==s?void 0:s.videoCodec}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(r.Events.LEVEL_SWITCHED,m),n._stopMuxMonitor=function(){n.off(r.Events.MANIFEST_LOADED,l),n.off(r.Events.LEVEL_LOADED,c),n.off(r.Events.AUDIO_TRACK_LOADED,u),n.off(r.Events.FRAG_LOADED,d),n.off(r.Events.FRAG_CHANGED,h),n.off(r.Events.ERROR,p),n.off(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,f),n.off(r.Events.LEVEL_SWITCHED,m),n.off(r.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(r.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){var e;this.hlsjs&&((e=this.hlsjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){e.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,function(e,t,n){var r=e.log;if(n&&n.on){var i=Ee(n),s=function(n,r){return e.emit(t,n,r)},o=function(e){var t=e.type,n=(e.data||{}).url;s("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:ue(n),request_url:n})};n.on("manifestLoaded",o);var a={},l=function(e){if("function"!=typeof e.getRequests)return null;var t=e.getRequests({state:"executed"});return 0===t.length?null:t[t.length-1]},c=function(e){var t=e.type,n=e.fragmentModel,r=e.chunk,i=l(n);
721u({type:t,request:i,chunk:r})},u=function(e){var t=e.type,r=e.chunk,i=e.request,o=(r||{}).mediaInfo||{},l=o.type,c=o.bitrateList,u={};(c=c||[]).forEach(function(e,t){u[t]={},u[t].width=e.width,u[t].height=e.height,u[t].bitrate=e.bandwidth,u[t].attrs={}}),"video"===l?a.video=u:"audio"===l?a.audio=u:a.media=u;var d=Te(i,n),h=d.requestStart,p=d.requestResponseStart,f=d.requestResponseEnd,m=d.requestResponseHeaders,_=d.requestMediaDuration,g=d.requestHostname,y=d.requestUrl,v=d.requestId;s("requestcompleted",{request_event_type:t,request_start:h,request_response_start:p,request_response_end:f,request_bytes_loaded:-1,request_type:l+"_init",request_response_headers:m,request_hostname:g,request_id:v,request_url:y,request_media_duration:_,request_rendition_lists:a})};i>=4?n.on("initFragmentLoaded",u):n.on("initFragmentLoaded",c);var d=function(e){var t=e.type,n=e.fragmentModel,r=e.chunk,i=l(n);h({type:t,request:i,chunk:r})},h=function(e){var t=e.type,r=e.chunk,i=e.request,o=r||{},a=o.mediaInfo,l=o.start,c=(a||{}).type,u=Te(i,n),d=u.requestStart,h=u.requestResponseStart,p=u.requestResponseEnd,f=u.requestBytesLoaded,m=u.requestResponseHeaders,_=u.requestMediaDuration,g=u.requestHostname,y=u.requestUrl,v=u.requestId,b=Se(c,n),w=b.currentLevel,k=b.renditionWidth,C=b.renditionHeight,T=b.renditionBitrate;s("requestcompleted",{request_event_type:t,request_start:d,request_response_start:h,request_response_end:p,request_bytes_loaded:f,request_type:c,request_response_headers:m,request_hostname:g,request_id:v,request_url:y,request_media_start_time:l,request_media_duration:_,request_current_level:w,request_labeled_bitrate:T,request_video_width:k,request_video_height:C})};i>=4?n.on("mediaFragmentLoaded",h):n.on("mediaFragmentLoaded",d);var p={video:void 0,audio:void 0,totalBitrate:void 0},f=function(){if(p.video&&"number"==typeof p.video.bitrate){if(!p.video.width||!p.video.height)return void r.warn("have bitrate info for video but missing width/height");var e=p.video.bitrate;if(p.audio&&"number"==typeof p.audio.bitrate&&(e+=p.audio.bitrate),e!==p.totalBitrate)return p.totalBitrate=e,{video_source_bitrate:e,video_source_height:p.video.height,video_source_width:p.video.width,video_source_codec:xe(p.video.codec)}}},m=function(e,t,i){var o=e.mediaType;if("audio"===o||"video"===o){var a;if("function"==typeof n.getRepresentationsByType)if(e.newRepresentation)a={bitrate:e.newRepresentation.bandwidth,width:e.newRepresentation.width,height:e.newRepresentation.height,qualityIndex:e.newRepresentation.absoluteIndex};else{var l=n.getRepresentationsByType(o);if(l&&"number"==typeof e.newQuality){var c=l.find(function(t){return t.absoluteIndex===e.newQuality||t.index===e.newQuality});c&&(a={bitrate:c.bandwidth,width:c.width,height:c.height,qualityIndex:e.newQuality})}}else{if("number"!=typeof e.newQuality)return void r.warn("missing evt.newQuality in qualityChangeRendered event",e);a=n.getBitrateInfoListFor(o).find(function(t){return t.qualityIndex===e.newQuality})}if(!a||"number"!=typeof a.bitrate)return void r.warn("missing bitrate info for ".concat(o));p[o]=_e(me({},a),{codec:n.getCurrentTrackFor(o).codec});var u=f();u&&s("renditionchange",u)}};n.on("qualityChangeRendered",m);var _=function(e){var t=e.request,n=e.mediaType;s("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:n,request_hostname:ue(t.url)})};n.on("fragmentLoadingAbandoned",_);var g=function(e){var t,n,r=e.error,i=(null==r||null===(t=r.data)||void 0===t?void 0:t.request)||{},o=(null==r||null===(n=r.data)||void 0===n?void 0:n.response)||{};27===(null==r?void 0:r.code)&&s("requestfailed",{request_error:i.type+"_"+i.action,request_url:i.url,request_hostname:ue(i.url),request_type:i.mediaType,request_error_code:o.status,request_error_text:o.statusText});var a="".concat(null!=i&&i.url?"url: ".concat(i.url,"\n"):"")+"".concat(null!=o&&o.status||null!=o&&o.statusText?"response: ".concat(null==o?void 0:o.status,", ").concat(null==o?void 0:o.statusText,"\n"):"");s("error",{player_error_code:null==r?void 0:r.code,player_error_message:null==r?void 0:r.message,player_error_context:a})};n.on("error",g),n._stopMuxMonitor=function(){n.off("manifestLoaded",o),n.off("initFragmentLoaded",u),n.off("mediaFragmentLoaded",h),n.off("qualityChangeRendered",m),n.off("error",g),n.off("fragmentLoadingAbandoned",_),delete n._stopMuxMonitor}}else r.warn("Invalid dash.js player reference. Monitoring blocked.")}(this.mux,this.id,e.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){var e;this.dashjs&&((e=this.dashjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.dashjs=void 0)}}]),n}(Pe),Ot=Pt,Lt=f(L());function Dt(){return Lt.default&&!!(Lt.default.fullscreenElement||Lt.default.webkitFullscreenElement||Lt.default.mozFullScreenElement||Lt.default.msFullscreenElement)}var Rt,Mt=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],Nt={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},jt=f(m());jt.default&&jt.default.WeakMap&&(Rt=new WeakMap);var Ut="#EXT-X-TARGETDURATION",$t="#EXT-X-PART-INF",Bt="#EXT-X-SERVER-CONTROL",Ft="#
721EXTINF",qt="#EXT-X-PROGRAM-DATE-TIME",Vt="#EXT-X-VERSION",Ht="#EXT-X-SESSION-DATA",zt=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};zt.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},zt.prototype.processLine=function(e){var t=e.indexOf(":"),n=Jt(e,t),r=n[0],i=2===n.length?Wt(n[1]):void 0;if("#"!==r[0])this.currentUri.uri=r,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(r){case Ut:if(!isFinite(i)||i<0)return;this.manifest.targetDuration=i,this.setHoldBack();break;case $t:Gt(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case Bt:Gt(this.manifest,n),this.setHoldBack();break;case Ft:0===i?this.currentUri.duration=.01:i>0&&(this.currentUri.duration=i);break;case qt:var s=i,o=new Date(s);this.manifest.dateTimeString||(this.manifest.dateTimeString=s,this.manifest.dateTimeObject=o),this.currentUri.dateTimeString=s,this.currentUri.dateTimeObject=o;break;case Vt:Gt(this.manifest,n);break;case Ht:var a=Qt(n[1]),l=we(a);Object.assign(this.manifest.sessionData,l)}},zt.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,r=e.partTargetDuration;if(t){var i="holdBack",s="partHoldBack",o=n&&3*n,a=r&&2*r;n&&!t.hasOwnProperty(i)&&(t[i]=o),o&&t[i]<o&&(t[i]=o),r&&!t.hasOwnProperty(s)&&(t[s]=3*r),r&&t[s]<a&&(t[s]=a)}};var Gt=function(e,t){var n,r=Kt(t[0].replace("#EXT-X-",""));Zt(t[1])?(n={},n=Object.assign(Yt(t[1]),n)):n=Wt(t[1]),e[r]=n},Kt=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},Wt=function(e){if("yes"===e.toLowerCase()||"no"===e.toLowerCase())return"yes"===e.toLowerCase();var t=-1!==e.indexOf(":")?e:parseFloat(e);return isNaN(t)?e:t},Xt=function(e){var t={},n=e.split("=");return n.length>1&&(t[Kt(n[0])]=Wt(n[1])),t},Yt=function(e){for(var t=e.split(","),n={},r=0;t.length>r;r++){var i=t[r],s=Xt(i);n=Object.assign(s,n)}return n},Zt=function(e){return e.indexOf("=")>-1},Jt=function(e,t){return-1===t?[e]:[e.substring(0,t),e.substring(t+1)]},Qt=function(e){var t={};if(e){var n=e.search(",");return[e.slice(0,n),e.slice(n+1)].forEach(function(e,n){for(var r=e.replace(/['"]+/g,"").split("="),i=0;i<r.length;i++)"DATA-ID"===r[i]&&(t["DATA-ID"]=r[1-i]),"VALUE"===r[i]&&(t.VALUE=r[1-i])}),{data:t}}},en=zt,tn={safeCall:function(e,t,n,r){var i=r;if(e&&"function"==typeof e[t])try{i=e[t].apply(e,n)}catch(s){Y.info("safeCall error",s)}return i},safeIncrement:fe,getComputedStyle:function(e,t){return e&&t&&jt.default&&"function"==typeof jt.default.getComputedStyle?(Rt&&Rt.has(e)&&(n=Rt.get(e)),n||(n=jt.default.getComputedStyle(e,null),Rt&&Rt.set(e,n)),n.getPropertyValue(t)):"";var n},secondsToMs:function(e){return Math.floor(1e3*e)},assign:Object.assign,headersStringToObject:ve,cdnHeadersToRequestId:be,extractHostnameAndDomain:de,extractHostname:ue,manifestParser:en,generateShortID:F,generateUUID:B,now:$.now,findMediaElement:V},nn={PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",PLAYBACK_MODE_CHANGE:"playbackmodechange",NETWORK_CHANGE:"networkchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled",HEARTBEAT:"hb",DESTROY:"destroy"},rn={},sn=function(e){var t=arguments;"string"==typeof e?sn.hasOwnProperty(e)?N.default.setTimeout(function(){t=Array.prototype.splice.call(t,1),sn[e].apply(null,t)},0):Y.warn("`"+e+"` is an unknown task"):"function"==typeof e?N.default.setTimeout(function(){e(sn)}
vendor: 2,388 bytes, line 721
721,0):Y.warn("`"+e+"` is invalid.")},on={loaded:$.now(),NAME:"mux-embed",VERSION:"5.18.0",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(e,t){return function(e,t,n){var r=M(V(t),3),i=r[0],s=r[1],o=r[2],a=e.log,l=e.utils.getComputedStyle,c=e.utils.secondsToMs;if(!i)return a.error("No element was found with the `"+s+"` query selector.");if("video"!==o&&"audio"!==o)return a.error("The element of `"+s+"` was not a media element.");i.mux&&(i.mux.destroy(),delete i.mux,a.warn("Already monitoring this video element, replacing existing event listeners"));var u={getPlayheadTime:function(){return c(i.currentTime)},getStateData:function(){var e,t,n=(null===(e=this.getPlayheadTime)||void 0===e?void 0:e.call(this))||c(i.currentTime),r=this.hlsjs&&this.hlsjs.url,s=this.dashjs&&"function"==typeof this.dashjs.getSource&&this.dashjs.getSource(),o={player_is_paused:i.paused,player_width:parseInt(l(i,"width")),player_height:parseInt(l(i,"height")),player_autoplay_on:i.autoplay,player_preload_on:i.preload,player_language_code:i.lang,player_is_fullscreen:Dt(),video_poster_url:i.poster,video_source_url:r||s||i.currentSrc,video_source_duration:c(i.duration),video_source_height:i.videoHeight,video_source_width:i.videoWidth,view_dropped_frame_count:null==i||null===(t=i.getVideoPlaybackQuality)||void 0===t?void 0:t.call(i).droppedVideoFrames};if(i.getStartDate&&n>0){var a=i.getStartDate();if(a&&"function"==typeof a.getTime&&a.getTime()){var u=a.getTime();if(o.player_program_time=u+n,i.seekable.length>0){var d=u+i.seekable.end(i.seekable.length-1);o.player_live_edge_program_time=d}}}return o}};(n=Object.assign({automaticErrorTracking:!0},n,u)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},n.data),i.mux=i.mux||{},i.mux.deleted=!1,i.mux.emit=function(t,n){e.emit(s,t,n)},i.mux.updateData=function(e){i.mux.emit("hb",e)};var d=function(){a.error("The monitor for this video element has already been destroyed.")};i.mux.destroy=function(){Object.keys(i.mux.listeners).forEach(function(e){i.removeEventListener(e,i.mux.listeners[e],!1)}),delete i.mux.listeners,i.mux.fullscreenChangeListener&&(document.removeEventListener("fullscreenchange",i.mux.fullscreenChangeListener,!1),delete i.mux.fullscreenChangeListener),i.mux.destroy=d,i.mux.swapElement=d,i.mux.emit=d,i.mux.addHLSJS=d,i.mux.addD
721ashJS=d,i.mux.removeHLSJS=d,i.mux.removeDashJS=d,i.mux.updateData=d,i.mux.setEmitTranslator=d,i.mux.setStateDataTranslator=d,i.mux.setGetPlayheadTime=d,i.mux.deleted=!0,e.emit(s,"destroy")},i.mux.swapElement=function(t){var n=M(V(t),3),r=n[0],s=n[1],o=n[2];return r?"video"!==o&&"audio"!==o?e.log.error("The element of `"+s+"` was not a media element."):(r.muxId=i.muxId,delete i.muxId,r.mux=r.mux||{},r.mux.listeners=Object.assign({},i.mux.listeners),delete i.mux.listeners,Object.keys(r.mux.listeners).forEach(function(e){i.removeEventListener(e,r.mux.listeners[e],!1),r.addEventListener(e,r.mux.listeners[e],!1)}),r.mux.fullscreenChangeListener=i.mux.fullscreenChangeListener,delete i.mux.fullscreenChangeListener,r.mux.swapElement=i.mux.swapElement,r.mux.destroy=i.mux.destroy,delete i.mux,void(i=r)):e.log.error("No element was found with the `"+s+"` query selector.")},i.mux.addHLSJS=function(t){e.addHLSJS(s,t)},i.mux.addDashJS=function(t){e.addDashJS(s,t)},i.mux.removeHLSJS=function(){e.removeHLSJS(s)},i.mux.removeDashJS=function(){e.removeDashJS(s)},i.mux.setEmitTranslator=function(t){e.setEmitTranslator(s,t)},i.mux.setStateDataTranslator=function(t){e.setStateDataTranslator(s,t)},i.mux.setGetPlayheadTime=function(t){t||(t=n.getPlayheadTime),e.setGetPlayheadTime(s,t)},e.init(s,n),e.emit(s,"playerready"),i.paused||(e.emit(s,"play"),i.readyState>2&&e.emit(s,"playing")),i.mux.listeners={},Mt.forEach(function(t){"error"===t&&!n.automaticErrorTracking||(i.mux.listeners[t]=function(){var n={};if("error"===t){if(!i.error||1===i.error.code)return;n.player_error_code=i.error.code,n.player_error_message=Nt[i.error.code]||i.error.message}e.emit(s,t,n)},i.addEventListener(t,i.mux.listeners[t],!1))}),i.mux.listeners.enterpictureinpicture=function(){e.emit(s,"playbackmodechange",{player_playback_mode:"pip",player_playback_mode_data:"{}"})},i.mux.listeners.leavepictureinpicture=function(){var t=Dt()?"fullscreen":"standard";e.emit(s,"playbackmodechange",{player_playback_mode:t,player_playback_mode_data:"{}"})},i.addEventListener("enterpictureinpicture",i.mux.listeners.enterpictureinpicture,!1),i.addEventListener("leavepictureinpicture",i.mux.listeners.leavepictureinpicture,!1),i.mux.fullscreenChangeListener=function(){var t=Dt(),n=document.fullscreenElement;if(t&&(n===i||null!=n&&n.contains(i)))e.emit(s,"playbackmodechange",{player_playback_mode:"fullscreen",player_playback_mode_data:"{}"});else if(!t){var r=document.pictureInPictureElement===i?"pip":"standard";e.emit(s,"playbackmodechange",{player_playback_mode:r,player_playback_mode_data:"{}"})}},document.addEventListener("fullscreenchange",i.mux.fullscreenChangeListener,!1)}(sn,e,t)},destroyMonitor:function(e){var t=M(V(e),1)[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():Y.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=q(e);rn[n]?rn[n].addHLSJS(t):Y.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=q(e);rn[n]?rn[n].addDashJS(t):Y.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=q(e);rn[t]?rn[t].removeHLSJS():Y.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=q(e);rn[t]?rn[t].removeDashJS():Y.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){J()&&t&&t.respectDoNotTrack&&Y.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=q(e);rn[n]=new Ot(sn,n,t)},emit:function(e,t,n){var r=q(e);rn[r]?(rn[r].emit(t,n),"destroy"===t&&delete rn[r]):Y.error("A monitor for `"+r+"` has not been initialized.")},updateData:function(e,t){var n=q(e);rn[n]?rn[n].emit("hb",t):Y.error("A monitor for `"+n+"` has not been initialized.")},setEmitTranslator:function(e,t){var n=q(e);rn[n]?rn[n].emitTranslator=t:Y.error("A monitor for `"+n+"` has not been initialized.")},setStateDataTranslator:function(e,t){var n=q(e);rn[n]?rn[n].stateDataTranslator=t:Y.error("A monitor for `"+n+"` has not been initialized.")},setGetPlayheadTime:function(e,t){var n=q(e);rn[n]?rn[n].getPlayheadTime=t:Y.error("A monitor for `"+n+"` has not been initialized.")},checkDoNotTrack:J,log:Y,utils:tn,events:nn,WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(sn,on),void 0!==N.default&&"function"==typeof N.default.addEventListener&&N.default.addEventListener("pagehide",function(e){e.persisted||(sn.WINDOW_UNLOADING=!0)},!1);var an=sn,ln=an.utils.secondsToMs; 722/*! 723 * JavaScript Cookie v2.1.3 724 * https://github.com/js-cookie/js-cookie 725 * 726 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack 727 * Released under the MIT license 728 */function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return{}},s=!1;e.on("adstart",function(){s=!0}),e.on("adend",function(){s=!1}),e.on("adserror",function(){s=!1});var o=function(){var r=ln(t.currentTime()),o=function n(){var o=an.utils.now(),a=ln(t.currentTime());if(s){if(a>r){var l=i();l.viewer_time=o-Math.max(0,a-r),t.off("timeupdate",n),e.mux.emit("adplaying",l)}}else t.off("timeupdate",n)};t.on("timeupdate",o);
728var a=function e(){t.off("timeupdate",o),n.forEach(function(n){t.off(n,e)})};n.forEach(function(e){t.on(e,a)})};r.forEach(function(e){t.on(e,o)})}function un(e){if("string"!=typeof e)return!1;var t=e.split(".").map(function(e){return parseInt(e)}),n=t[0],r=t[1];return n>2||2===n&&r>=3}var dn=an.utils.manifestParser;function hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(l){a=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}(e,t)||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 pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fn=an.utils,mn=fn.assign,_n=fn.secondsToMs;function gn(e,t,n){var r=0;return function(){var i,s,o=t.readyState;if(o>=2){if(r=r||an.utils.now(),4!==o)return;var a=e(),l=a.mux.utils.extractHostnameAndDomain,c=a.mux.utils.headersStringToObject,u=an.utils.now(),d=hn(l(t.responseURL),1)[0],h="arraybuffer"===t.responseType?t.response.byteLength:t.responseText.length,p=c(t.getAllResponseHeaders?t.getAllResponseHeaders():""),f=(s=p["content-type"])?s.match(/^audio\/mpegurl/i)?"manifest":s.match(/^audio.*/i)?"audio":s.match(/^video.*/)?"video":s.match(/^application\/x-mpegurl/i)||s.match(/^application\/vnd.apple.mpegurl/i)||s.match(/^application\/dash+xml/i)?"manifest":"unknown":"unknown";if(t.status>=200&&t.status<300){var m={request_start:n,request_response_start:r,request_response_end:u,request_bytes_loaded:h,request_hostname:d,request_url:t.responseURL,request_response_headers:p,request_type:f};if("manifest"===f){var _,g,y,v,b,w,k,C=(i=t.responseText,new dn(i));if(C){_=C.partTargetDuration,g=C.targetDuration,y=C.segments;var T=C.serverControl;v=T.partHoldBack,b=T.holdBack,k=C.sessionData;var S=y[y.length-1];S&&S.dateTimeObject&&(w=S.dateTimeObject.getTime()+_n(S.duration)),m=mn(m,{video_holdback:b&&_n(b),video_part_holdback:v&&_n(v),video_part_target_duration:_&&_n(_),video_target_duration:g&&_n(g),player_manifest_newest_program_time:w}),k&&(m=mn(m,k))}}a.mux.emit("requestcompleted",m)}else{var x={request_hostname:hn(l(t.responseURL),1)[0],request_url:t.responseURL,request_type:f};a.mux.emit("requestfailed",x)}}}}function yn(e,t){var n,r=function(t){return function(n){var r,i,s,o,a=an.utils.now();try{t(n)}catch(l){}try{n.onreadystatechange=(r=n,i=a,s=n.onreadystatechange||function(){},o=gn(e,r,i),function(){try{o()}catch(l){}try{s()}catch(l){}})}catch(l){}}};"function"==typeof(null==t?void 0:t.onRequest)?t.onRequest(function(e){return e.beforeSend=r(e.beforeSend||function(){}),e}):t.beforeRequest=(n=t.beforeRequest||function(e){return e},function(e){var t=n(e);return t?(t.beforeSend=r(t.beforeSend||function(){}),t):e})}var vn=function(e){var t,n=function(e){for(var t,n=e.textTracks(),r=0;r<n.length;r++)"segment-metadata"===n[r].label&&(t=n[r]);return t}(e);n&&n.on&&n.on("cuechange",function(){try{var n=e.tech({IWillNotUseThisInPlugins:!0}),r=(n.vhs||n.hls).playlists.media().attributes.BANDWIDTH;t!==r&&e.mux.emit("renditionchange",{video_source_bitrate:r}),t=r}catch(i){e.mux&&e.mux.log&&e.mux.log.warn&&e.mux.log.warn("Cannot retrieve BANDWIDTH information from player: ".concat(i))}})};function bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(l){a=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}
728(e,t)||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 wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kn,Cn=new Map,Tn=an.log,Sn=an.utils.assign,xn=an.utils.safeCall,En=an.utils.getComputedStyle,In=an.utils.secondsToMs,An=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"];function Pn(e){var n=e;return function(e){var r,i;if(n.IS_IE8)return!1;var s=this,o=s.id(),a=(null===(r=s.tech)||void 0===r||null===(i=r.call(s,!0))||void 0===i?void 0:i.el())||s.tag,l=kn&&(kn.get(a)||kn.get(s.el()));(e=Sn({automaticErrorTracking:!0},e)).data=Sn({player_software_name:"Video.js",player_software_version:n.VERSION||"< 4.11",player_mux_plugin_name:"videojs-mux",player_mux_plugin_version:"4.21.28",player_init_time:l},e.data),e.getPlayheadTime=function(){return In(s.currentTime())},e.getStateData=function(){var e=xn(s,"videoHeight"),t=xn(s,"videoWidth");if(void 0===t||void 0===e){var n=s.el().firstChild;n&&"VIDEO"===n.nodeName.toUpperCase()&&(e=n.videoHeight,t=n.videoWidth)}return{player_is_paused:xn(s,"paused"),player_is_fullscreen:xn(s,"isFullscreen"),player_autoplay_on:!!xn(s,"autoplay"),player_preload_on:xn(s,"preload"),player_width:parseInt(En(s.el(),"width"),10),player_height:parseInt(En(s.el(),"height"),10),player_language_code:xn(s,"language"),video_poster_url:xn(s,"poster"),video_source_url:xn(s,"currentSrc"),video_source_mime_type:xn(s,"currentType")&&xn(s,"currentType").toLowerCase(),video_source_duration:In(xn(s,"duration")||0),video_source_is_live:s.duration()===1/0,video_source_height:e,video_source_width:t}},s.mux=function(){Tn.error("[videojs-mux] The plugin was initialized more than once.")},s.mux.emit=function(e,t){an.emit(o,e,t)},s.mux.updateData=function(e){s.mux.emit("hb",e)},s.mux.addHLSJS=function(e){an.addHLSJS(o,e)},s.mux.log=Tn,s.mux.utils=an.utils,an.init(o,e);var c=!1,u=function(){c||s.mux.emit("playerready"),c=!0};s.ready(function(){s.addClass("vjs-mux"),t().setTimeout(u,0)});var d=!1;s.one("play",u),An.forEach(function(t){("error"!==t||e.automaticErrorTracking)&&s.on(t,function(){if(!d){var e={};if("error"===t){var n=xn(s,"error");if(n){if(1===n.code)return;e={player_error_code:n.code,player_error_message:n.message,player_error_context:n.status}}}s.mux.emit(t,e)}})});var h,p=!1;s.on("play",function(){p=!0}),s.on("pause",function(){p=!1}),s.on("adstart",function(){d=!0,p&&s.mux.emit("pause"),s.mux.emit("adbreakstart")}),s.on("adend",function(){s.mux.emit("adbreakend"),d=!1,xn(s,"paused")||(s.mux.emit("play"),p=!0,s.onceux&&s.mux.emit("playing"))}),s.ima&&function(e){var t,n,r,i,s,o,a=function(t){var n="function"==typeof(t=t||{}).getAdData?t.getAdData():{},r="function"==typeof t.getAd?t.getAd():{},i="function"==typeof r.getMediaUrl?r.getMediaUrl():n.mediaUrl,s=null==n?void 0:n.adId,o=null==n?void 0:n.creativeId,a=null==n?void 0:n.universalAdIdValue,l=e.ima.settings||{},c={};return i&&(c.ad_asset_url=i),l.adTagUrl&&(c.ad_tag_url=l.adTagUrl),s&&(c.ad_id=s),o&&(c.ad_creative_id=o),a&&(c.ad_universal_id=a),c};try{var l=window.google.ima.AdEvent.Type;t=l.LOADED,n=l.STARTED,r=l.COMPLETE,i=l.PAUSED,s=l.RESUMED,o=l.SKIPPED}catch(u){t="loaded",n="start",r="complete",i="pause",s="resume",o="skip"}var c=0;e.mux.triggerAdRequest=function(){c++,e.mux.emit("adrequest",a())},e.on("adsready",function(){var l=e.ima.addEventListener||function(){};l(t,function(t){var n=a(t);c>0&&(c--,e.mux.emit("adresponse",n)),e.mux.emit("adplay",n)}),l(n,function(t){var n=a(t);e.mux.emit("adplaying",n)}),l(s,function(t){var n=a(t);e.mux.emit("adplay",n),e.mux.emit("adplaying",n)}),l(i,function(t){var n=a(t);e.mux.emit("adpause",n)}),l(r,function(t){var n=a(t);e.mux.emit("adended",n)}),l(o,function(t){var n=a(t);e.mux.emit("adended",n)}),e.on("adserror",function(){c>0&&(c--,e.mux.emit("adresponse")),e.mux.emit("aderror")})})}(s),s.onceux&&(cn(h=s,h,["onceux-linearad-pause","onceux-linearad-skipped","onceux-linearad-complete","adserror"],["adstart","onceux-linearad-resume"]),h.on("adstart",function(){h.mux.emit("adplay")}),h.on("onceux-linearad-start",function(e){e.linearAd&&e.linearAd.index>0&&(h.mux.emit("adplay"),h.mux.emit("adplaying"))}),h.on("onceux-linearad-resume",function(){h.mux.emit("adplay")}),h.on("onceux-linearad-pause",function(){h.mux.emit("adpause")}),h.on("onceux-linearad-complete",function(){h.mux.emit("adended")}),h.on("onceux-linearad-skipped",function(){h.mux.emit("adended")})),s.ima3&&"function"==typeof s.ima3.ready&&function(e){var t=function(){var t=e.ima3.currentAd,n=e.ima3.settings,r={};return t&&(r.ad_asset_url=t.mediaUrl),n&&(r.ad_tag_url=n.serverUrl),r};if(un(e.ima3.version)){var n=0,r=function(){n>0&&(n--,e.mux.emit("adresponse",t()))};e.on("ads-request",function(){n++,e.mux.emit("adrequest",t())}),e.on("ads-load",function(){r(),e.mux.emit("adplay",t())}),e.on("adserror",function(){r(),e.mux.emit("aderror")}),e.on("ads-play",function(){e.mux.emit("adplay",t())}),e.on("ads-pause",function(){e.mux.emit("adpause",t())}),e.on("ads-ad-ended",function(){e.mux.emit("adended",t())})}e.ima3.ready(function(){e.ima3.adPlayer?(un(e.ima3.version)||(e.ima3.adPlayer.on("play",function(){e.mux.emit("adplay")}),e.ima3.adPlayer.on("pause",function(){e.mux.emit("adpause")}),e.ima3.adPlayer.on("ended",function(){e.mux.emit("adended")})),cn(e,e.ima3.adPlayer,["pause","ended","adserror"],["play"],t)):(e.mux.log("Legacy IMA3 plugin found, ad events may not track correctly."),e.on("ads-ad-started",function(){e.mux.emit("adplaying",t())}),e.on("ads-play",function(){e.mux.emit("adplaying",t())}))})}(s),s.FreeWheelPlugin&&s.FreeWheelPlugin.VERSION&&function(e){var t=function(t){var n=e.FreeWheelPlugin,r={};switch(t){case"adplay":case"adplaying":case"adpause":r.ad_asset_url=e.currentSrc()}return n&&(r.ad_tag_url="html5"===n.tech.toLowerCase()?n.settings.Html5.serverUrl:n.settings.Flash.serverUrl),r};e.on("ads-request",function(){e.mux.emit("adrequest",t("adrequest"))}),e.on("ads-load",function(){e.mux.emit("adresponse",t("adresponse"))}),e.on("adserror",function(){e.mux.emit("aderror")}),e.on("ads-ad-started",function(){e.mux.emit("adplay",t("adplay")),e.mux.emit("adplaying",t("adplaying"))}),e.on("ads-play",function(){e.mux.emit("adplay",t("adplay")),e.mux.emit("adplaying",t("adplaying"))}),e.on("ads-pause",function(){e.mux.emit("adpause",t("adpause"))}),e.on("ads-ad-ended",function(){e.mux.emit("adended",t("adended"))}),e.on("adend",function(){e.mux.emit("play")})}(s),s.on("dispose",function(){s.mux.emit("destroy"),kn.delete(s)})}}function On(e){(e.registerPlugin||e.plugin||function(){an.log.error("No valid method to register videojs plugin available.")})("mux",Pn(e)),function(e){if(!Cn.get(e)&&(Cn.set(e,"video.js ".concat(e.VERSION," initialized")),"function"==typeof e.getTech))for(var t=(e.getTech("Html5")||{}).sourceHandlers,n=e.Vhs||e.Hls,r=function(r){var i=t[r],s=i.handleSource;i.handleSource=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n&&n.xhr&&yn(function(){return e(r.el())},n.xhr);var o=s(t,r,i);if(o&&"function"==typeof o.xhr)try{var a=bn(e.VERSION.split("."),2),l=a[0],c=a[1];l=parseInt(l),c=parseInt(c);var u=l>=7&&c>=4?o.player().id():o.player_.el_.parentNode.id;vn(e(u))}catch(d){}return o}},i=0;i<t.length;i++)r(i)}(e)}kn="undefined"!=typeof WeakMap?new WeakMap:new Map,s().hook&&s().hook("beforesetup",function(e,t){return kn.set(e,an.utils.now()),t}),On(s())}(),r}())); 729/*! @name @overdriveinc/videojs-offset @version 2.1.4 @license MIT */ 730var SL={},xL=BP.registerPlugin||BP.plugin,EL=function e(){var t=this,n=this.currentTime();n<0&&(this.currentTime(0),this.play()),this._offsetEnd>0&&n>this._offsetEnd-this._offsetStart&&(this.off("timeupdate",e),this.pause(),this.trigger("ended"),this.one("play",function(){t.on("timeupdate",e)}),this._restartBeginning?(this.trigger("loadstart"),this.currentTime(0)):this.currentTime(this._offsetEnd-this._offsetStart))},IL=function(e){var t=this;e=e||{};var n=this.constructor;this._offsetStart=parseFloat(e.start||"0"),this._offsetEnd=parseFloat(e.end||"0"),this._restartBeginning=e.restart_beginning||!1,n.__super__&&n.__super__.__offsetInit||(n.__super__={__offsetInit:!0,duration:n.prototype.duration,currentTime:n.prototype.currentTime,bufferedPercent:n.prototype.bufferedPercent,remainingTime:n.prototype.remainingTime,buffered:n.prototype.buffered},n.prototype.duration=function(){return void 0!==this._offsetEnd&&void 0!==this._offsetStart?this._offsetEnd>0?this._offsetEnd-this._offsetStart:n.__super__.duration.apply(this,arguments)-this._offsetStart:n.__super__.duration.apply(this,arguments)},n.prototype.currentTime=function(e){if(void 0!==e)return void 0!==this._offsetStart?n.__super__.currentTime.call(this,e+this._offsetStart):n.__super__.currentTime.call(this,e);if(void 0!==this._offsetStart){var t=n.__super__.currentTime.apply(this)-this._offsetStart;return this.getCache().currentTime=t,t}return n.__super__.currentTime.apply(this)},n.prototype.remainingTime=function(){return this.duration()-this.currentTime()},n.prototype.startOffset=function(){return this._offsetStart},n.prototype.endOffset=function(){return this._offsetEnd>0?this._offsetEnd:this.duration()},n.prototype.buffered=function(){for(var e=n.__super__.buffered.call(this),t=[],r=0;r<e.length;r++)t[r]=[Math.max(0,e.start(r)-this._offsetStart),Math.min(Math.max(0,e.end(r)-this._offsetStart),this.duration())];return BP.createTimeRanges(t)}),this.ready(function(){var n;n=t,BP.mergeOptions(SL,e),n.one("play",function(){n.on("timeupdate",EL)})})};xL("offset",IL),IL.VERSION="2.1.4";const AL=CC(Xn.extend({name:"VideoPlayerSubmenuSvg",props:{color:{type:String,required:!1,default:"#F3F3F3"}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M10 7L15 12L10 17",stroke:e.color,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])},[],0,0,"c4cccdea").exports;const PL=CC(Xn.extend({name:"PopoverMenuListItem",props:{item:{type:Object,required:!0}},computed:{current_selection(){return this.item.submenu_options?.current_selection},has_submenu(){return this.item.submenu_options?.has_submenu},is_active(){return this.item.selection_options?.is_active},is_destructive(){return this.item.selection_options?.is_destructive},icon_color(){return this.item.disabled?"#B5B5B5":void 0}},components:{VideoPlayerSubmenuSvg:AL}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"item"},[t("div",{staticClass:"label"},[t("span",{staticClass:"option-icon-container"},[null!=e.item.icon?t("img",{staticClass:"option-icon",attrs:{src:e.item.icon,alt:""}}
730):e._e()]),t("div",[t("div",{staticClass:"option-title",class:{active:e.is_active,destructive:e.is_destructive}},[e._v(" "+e._s(e.item.option)+" ")]),null!=e.current_selection?t("div",{staticClass:"selection"},[e._v(" "+e._s(e.current_selection)+" ")]):e._e()])]),e.has_submenu?t("VideoPlayerSubmenuSvg",{attrs:{color:e.icon_color}}):e._e()],1)},[],0,0,"120b9b80").exports,OL=Xn.extend({name:"PopoverMenuList",data:()=>({active_index:0}),props:{options:{type:Array,required:!1,default:[]},has_submenus:{type:Boolean,required:!1,default:!1},list_label:{type:String,required:!0},has_selectable_options:{type:Boolean,required:!1,default:!1},is_radio_list:{type:Boolean,required:!1,default:!1}},computed:{id(){return tx.instance.getId(this.$options.name)},aria_active_property(){return this.is_radio_list?"aria-checked":"aria-selected"}},methods:{get_active_label(e){if(this.has_selectable_options)return e.selection_options?.is_active?.toString()??"false"},on_down_arrow(){this.active_index>=this.options.length-1?this.active_index=this.options.length-1:null!==document.activeElement&&JC.instance.getNextFocusableSibling(document.activeElement,this.$refs.list)?.focus()},on_option_selected(e){e.repeat?e.preventDefault():(e.preventDefault(),e.stopPropagation(),null!=this.active_index&&this.on_click(this.options[this.active_index],e))},on_options_blur(){this.active_index=-1},on_up_arrow(){this.active_index<=0||null!==document.activeElement&&JC.instance.getPreviousFocusableSibling(document.activeElement,this.$refs.list)?.focus()},on_tab(e){(e.shiftKey&&0===this.active_index||this.active_index===this.options.length-1)&&(this.active_index=-1)},on_item_focus(e){this.active_index=e},on_click(e,t){e.on_click(),e.close_menu&&this.$emit("close",t),t.stopPropagation()},is_destructive:e=>e.selection_options?.is_destructive??!1,close(){this.$emit("close")}},components:{PopoverMenuListItem:PL}});const LL=CC(OL,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.has_submenus?t("ul",{staticClass:"options",attrs:{id:e.id,"aria-label":e.list_label}},e._l(e.options,function(n,r){return t("li",{key:r},[t("button",{staticClass:"option",class:{disabled:n.disabled},attrs:{id:e.id+r,"aria-current":e.get_active_label(n),"aria-expanded":!!n.disabled&&void 0,disabled:n.disabled},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:e.close.apply(null,arguments)},click:function(t){return e.on_click(n,t)}}},[t("PopoverMenuListItem",{attrs:{item:n}})],1)])}),0):t("ul",{ref:"list",staticClass:"options",attrs:{id:e.id,role:e.is_radio_list?"radiogroup":void 0,"aria-label":e.list_label,"aria-activedescendant":null!=e.active_index?e.id+e.active_index:void 0},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.on_down_arrow.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.on_up_arrow.apply(null,arguments)}],keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_option_selected.apply(null,arguments)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault()},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.on_tab.apply(null,arguments)}],blur:e.on_options_blur}},e._l(e.options,function(n,r){return t("li",e._b({key:r,staticClass:"option submenu",class:{disabled:n.disabled,destructive:e.is_destructive(n)},attrs:{id:e.id+r,role:n.role||"option",tabindex:"0"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_click(n,t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:e.close.apply(null,arguments)},click:function(t){return e.on_click(n,t)},focus:function(t){return e.on_item_focus(r)}}},"li",e._d({},[e.aria_active_property,e.get_active_label(n)])),[t("PopoverMenuListItem",{attrs:{item:n}})],1)}),0)},[],0,0,"d8017741").exports,DL="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2014L10%2018L19%206'%20stroke='%23F3F3F3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";const RL=CC(Xn.extend({name:"PlaybackRateMenu",props:{player:{type:Object,required:!0}},destroyed(){this.player.trigger("popover:close")},computed:{rates(){return this.player.playbackRates().map(e=>{const t=1===e?"Normal".localized():e+"x";return{option:t,icon:this.player.playbackRate()===e?DL:void 0,id:t,selection_options:{is_active:e===this.player.playbackRate()},close_menu:!0,role:"radio",on_click:()=>{this.player.playbackRate(e)}}})}},methods:{close(e){this.player.trigger("popover:close"),this.$emit("close"),e?.preventDefault()}},components:{PopoverMenuList:LL}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("PopoverMenuList",{attrs:{options:e.rates,list_label:"Playback speed".localized(),has_selectable_options:!0,is_radio_list:!0},on:{close:e.close}})},[],0,0,"4efb75ae").exports;const ML=CC(Xn.extend({name:"VideoPlayerBackIconSvg",props:{color:{type:String,required:!1,default:"#F3F3F3"},height:{type:Number,required:!1,default:24},width:{type:Number,required:!1,default:24}},computed:{styles(){return{"--height":this.height+"px","--width":this.width+"px"}}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{staticClass:"back",style:e.styles,attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M14.0002 4.99996L7 12.0001L14.0002 19.0003",stroke:e.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])},[],0,0,"534bd643").exports,NL="off",jL={label:"Off".localized(),id:NL,language:""};class UL{static instance=new UL;player=void 0;isUsingFallbackTrack=!1;trackOptions={};constructor(){this._loadTrackOptions()}getActiveTrack(){return this.getTracks().find(e=>"showing"===e.mode)}getTracks(){return Array.from(this.player?.remoteTextTracks()).filter(e=>"captions"===e.kind||"subtitles"===e.kind)}saveTrackOptions(e){this.trackOptions={language:e.language??this.trackOptions?.language??jL.language,has_cc:e.has_cc??this.trackOptions.has_cc??!1,enabled:e.enabled??this.trackOptions?.enabled??!1},Ca.instance.save(ka.TextTrackOptions,this.trackOptions)}setActiveTrack(){if(null==this.player||!this.trackOptions.enabled)return;const e=this.getTracks().find(e=>{let t=!0;return this.trackOptions.has_cc&&(t=this.isClosedCaptionTrack(e)),t&&e.language===this.trackOptions.language});null==e?this._useFallbackTrack():e.mode="showing"}getLastActiveTrackOptions(){return Ca.instance.get(ka.TextTrackOptions)}setPlayer(e){this.player=e,this.isUsingFallbackTrack=!1}toggleTrackVisibility(){if(null!=this.getActiveTrack()){const e=this.getActiveTrack();null!=e&&(e.mode="disabled"),this.saveTrackOptions({enabled:!1})}else this.trackOptions.language!==jL.language?(this.saveTrackOptions({enabled:!0}),this.setActiveTrack()):this._useFallbackTrack()}isClosedCaptionTrack(e){return null!=e&&e.label.includes("(CC)")}_loadTrackOptions(){let e=Ca.instance.get(ka.TextTrackOptions);null==e&&(e={language:Ca.instance.get(ka.UserCCLang_deprecated)??jL.language,has_cc:!1,enabled:!1},Ca.instance.save(ka.TextTrackOptions,e)),this.trackOptions=e,Ca.instance.delete(ka.UserCCLang_deprecated)}_useFallbackTrack(){const e=this.getTracks()?.[0];null!=e&&(e.mode="showing",this.isUsingFallbackTrack=!0,this.saveTrackOptions({enabled:!0,language:e.language,has_cc:this.isClosedCaptionTrack(e)}))}}const $L=CC(Xn.extend({name:"SettingsMenu",data(){return{active_audio_track:void 0,active_index:void 0,active_text_track:void 0,audio_tracks:this.player.audioTracks().tracks_,display_menu:"home",text_tracks:UL.instance.getTracks()}},props:{player:{type:Object,required:!0}},created(){this.manage_event_listeners("add"),this.set_active_tracks()},destroyed(){this.manage_event_listeners("remove")},computed:{active_descendant_id(){return null==this.active_index?void 0:this.id+this.active_index},audio_label(){return this.active_audio_track?.label??"Not available".localized()},heading(){switch(this.display_menu){case"home":return{text:"Settings".localized(),is_submenu:!1};case"subtitles":return{text:"Subtitles".localized(),label:"Back to Settings".localized(),link:{text:"Subtitle Styles".localized(),on_click:e=>{this.open_text_track_settings(e)}},is_submenu:!0,return_index:0};case"audio":return{text:"Audio".localized(),label:"Back to Settings".localized(),is_submenu:!0,return_index:1}}},id(){return tx.instance.getId(this.$options.name)},options(){switch(this.display_menu){case"home":return[{option:"Subtitles".localized(),submenu_options:{current_selection:this.subtitle_label,has_submenu:!0},icon:this.text_tracks.length>0?"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.86475%202.33337H21.1226C25.6912%202.33337%2026.8334%203.4897%2026.8334%208.10201V16.3262C26.8334%2020.9515%2025.6912%2022.0949%2021.1354%2022.0949L21.1226%2026.8334L13.45%2022.0949H6.86475C2.30891%2022.1078%201.16675%2020.9515%201.16675%2016.3392V8.10201C1.16675%203.4897%202.30891%202.33337%206.86475%202.33337Z'%20stroke='%23F3F3F3'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.9999%2010.0001H7'%20stroke='%23F3F3F3'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M21%2016.0001L18.6667%2016.0001M7.00007%2016.0001L14%2016.0001'%20stroke='%23F3F3F3'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.884%202H18.105C22.021%202%2023%202.99114%2023%206.94455V13.9939C23%2017.9584%2022.021%2018.9384%2018.116%2018.9384L18.105%2023L11.5285%2018.9384H5.884C1.979%2018.9495%201%2017.9584%201%2014.005V6.94455C1%202.99114%201.979%202%205.884%202Z'%20stroke='%23B5B5B5'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.9999%208.57153H6'%20stroke='%23B5B5B5'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18%2013.7144L16%2013.7144M6.00006%2013.7144L12%2013.7144'%20stroke='%23B5B5B5'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",disabled:0===this.text_tracks.length,on_click:()=>{0!==this.text_tracks.length&&(this.display_menu="subtitles",this.active_index=void 0,null==this.active_text_track&&(this.active_text_track=jL),this.reposition(),this.$nextTick(()=>this.$refs.popover?.focus()),this.send_analytics(AT.TextTrackSubmenu))}},{option:"Audio".localized(),submenu_options:{current_selection:this.audio_label,has_submenu:!0},icon:this.audio_tracks.length>0?"data:image/svg+xml,%3csvg%20width='24'%20height='28'%20viewBox='0%200%2024%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.884%206H18.105C22.021%206%2023%206.99114%2023%2010.9445V17.9939C23%2021.9584%2022.021%2022.9384%2018.116%2022.9384L18.105%2027L11.5285%2022.9384H5.884C1.979%2022.9495%201%2021.9584%201%2018.005V10.9445C1%206.99114%201.979%206%205.884%206Z'%20stroke='%23F3F3F3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.9556%2019.1856L15.5453%2013.3633C15.5008%2013.2558%2015.4252%2013.1639%2015.3283%2013.0992C15.2313%2013.0345%2015.1173%2013%2015.0007%2013C14.884%2013%2014.77%2013.0345%2014.673%2013.0992C14.5761%2013.1639%2014.5006%2013.2558%2014.4561%2013.3633L12.0457%2019.1856C12.0157%2019.257%2012.0002%2019.3336%2012%2019.411C11.9998%2019.4884%2012.0149%2019.565%2012.0446%2019.6366C12.0742%2019.7081%2012.1177%2019.7731%2012.1725%2019.8279C12.2274%2019.8826%2012.2926%2019.926%2012.3644%2019.9555C12.4361%2019.9851%2012.513%2020.0002%2012.5906%2020C12.6682%2019.9998%2012.7451%2019.9843%2012.8167%2019.9545C12.8883%2019.9246%2012.9532%2019.8809%2013.0078%2019.8259C13.0625%2019.7709%2013.1056%2019.7057%2013.1349%2019.634L13.6258%2018.4484H16.3755L16.8664%2019.634C16.9109%2019.7415%2016.9864%2019.8335%2017.0834%2019.8982C17.1804%2019.9629%2017.2945%2019.9975%2017.4112%2019.9975C17.508%2019.9974%2017.6033%2019.9736%2017.6887%2019.928C17.774%2019.8825%2017.8468%2019.8167%2017.9006%2019.7364C17.9545%2019.6561%2017.9876%2019.5639%2017.9971%2019.4678C18.0067%2019.3717%2017.9923%2019.2748%2017.9554%2019.1856H17.9556ZM14.1124%2017.2733L15.0008%2015.1274L15.8891%2017.2733H14.1124Z'
730%20fill='%23F3F3F3'/%3e%3cpath%20d='M12.633%2016.5409C12.7291%2016.4201%2012.7686%2016.2697%2012.7428%2016.1225C12.7171%2015.9753%2012.6281%2015.8435%2012.4955%2015.7559C12.4898%2015.7521%2012.0736%2015.4713%2011.4692%2014.8679C12.5843%2013.4953%2013.216%2011.9338%2013.4737%2011.1989H14.3812C14.5454%2011.1989%2014.7027%2011.1397%2014.8188%2011.0342C14.9348%2010.9287%2015%2010.7856%2015%2010.6364C15%2010.4872%2014.9348%2010.3442%2014.8188%2010.2387C14.7027%2010.1332%2014.5454%2010.0739%2014.3812%2010.0739H11.1188V9.56252C11.1188%209.41333%2011.0536%209.27025%2010.9375%209.16476C10.8215%209.05927%2010.6641%209%2010.5%209C10.3359%209%2010.1785%209.05927%2010.0625%209.16476C9.94644%209.27025%209.88125%209.41333%209.88125%209.56252V10.0739H6.61875C6.45465%2010.0739%206.29727%2010.1332%206.18123%2010.2387C6.06519%2010.3442%206%2010.4872%206%2010.6364C6%2010.7856%206.06519%2010.9287%206.18123%2011.0342C6.29727%2011.1397%206.45465%2011.1989%206.61875%2011.1989H12.1664C11.8987%2011.888%2011.4056%2012.976%2010.6536%2013.9696C9.77016%2012.9039%209.44194%2012.2143%209.43941%2012.2087C9.37473%2012.0728%209.25375%2011.9656%209.10268%2011.9103C8.95162%2011.855%208.78267%2011.856%208.63246%2011.9132C8.48226%2011.9704%208.36292%2012.0792%208.30032%2012.2159C8.23773%2012.3525%208.23693%2012.5061%208.29809%2012.6434C8.31441%2012.6786%208.70731%2013.5186%209.78478%2014.7894C9.81066%2014.8198%209.83625%2014.8495%209.86184%2014.8791C8.75822%2016.0131%207.67541%2016.7165%207.22231%2016.9436C7.07824%2017.015%206.97128%2017.1356%206.92497%2017.2787C6.87866%2017.4218%206.89679%2017.5758%206.97537%2017.7068C7.05396%2017.8378%207.18656%2017.935%207.344%2017.9771C7.50144%2018.0192%207.67083%2018.0028%207.81491%2017.9313C7.87566%2017.9011%209.18178%2017.2438%2010.6733%2015.7428C11.3066%2016.3586%2011.742%2016.649%2011.7682%2016.6659C11.834%2016.7094%2011.9086%2016.7406%2011.9877%2016.7578C12.0668%2016.775%2012.1488%2016.7779%2012.2292%2016.7663C12.3095%2016.7546%2012.3865%2016.7287%2012.4558%2016.69C12.5251%2016.6513%2012.5853%2016.6005%2012.633%2016.5406V16.5409Z'%20fill='%23F3F3F3'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg%20width='24'%20height='28'%20viewBox='0%200%2024%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.884%206H18.105C22.021%206%2023%206.99114%2023%2010.9445V17.9939C23%2021.9584%2022.021%2022.9384%2018.116%2022.9384L18.105%2027L11.5285%2022.9384H5.884C1.979%2022.9495%201%2021.9584%201%2018.005V10.9445C1%206.99114%201.979%206%205.884%206Z'%20stroke='%23B5B5B5'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.9556%2019.1856L15.5453%2013.3633C15.5008%2013.2558%2015.4252%2013.1639%2015.3283%2013.0992C15.2313%2013.0345%2015.1173%2013%2015.0007%2013C14.884%2013%2014.77%2013.0345%2014.673%2013.0992C14.5761%2013.1639%2014.5006%2013.2558%2014.4561%2013.3633L12.0457%2019.1856C12.0157%2019.257%2012.0002%2019.3336%2012%2019.411C11.9998%2019.4884%2012.0149%2019.565%2012.0446%2019.6366C12.0742%2019.7081%2012.1177%2019.7731%2012.1725%2019.8279C12.2274%2019.8826%2012.2926%2019.926%2012.3644%2019.9555C12.4361%2019.9851%2012.513%2020.0002%2012.5906%2020C12.6682%2019.9998%2012.7451%2019.9843%2012.8167%2019.9545C12.8883%2019.9246%2012.9532%2019.8809%2013.0078%2019.8259C13.0625%2019.7709%2013.1056%2019.7057%2013.1349%2019.634L13.6258%2018.4484H16.3755L16.8664%2019.634C16.9109%2019.7415%2016.9864%2019.8335%2017.0834%2019.8982C17.1804%2019.9629%2017.2945%2019.9975%2017.4112%2019.9975C17.508%2019.9974%2017.6033%2019.9736%2017.6887%2019.928C17.774%2019.8825%2017.8468%2019.8167%2017.9006%2019.7364C17.9545%2019.6561%2017.9876%2019.5639%2017.9971%2019.4678C18.0067%2019.3717%2017.9923%2019.2748%2017.9554%2019.1856H17.9556ZM14.1124%2017.2733L15.0008%2015.1274L15.8891%2017.2733H14.1124Z'%20fill='%23B5B5B5'/%3e%3cpath%20d='M12.633%2016.5409C12.7291%2016.4201%2012.7686%2016.2697%2012.7428%2016.1225C12.7171%2015.9753%2012.6281%2015.8435%2012.4955%2015.7559C12.4898%2015.7521%2012.0736%2015.4713%2011.4692%2014.8679C12.5843%2013.4953%2013.216%2011.9338%2013.4737%2011.1989H14.3812C14.5454%2011.1989%2014.7027%2011.1397%2014.8188%2011.0342C14.9348%2010.9287%2015%2010.7856%2015%2010.6364C15%2010.4872%2014.9348%2010.3442%2014.8188%2010.2387C14.7027%2010.1332%2014.5454%2010.0739%2014.3812%2010.0739H11.1188V9.56252C11.1188%209.41333%2011.0536%209.27025%2010.9375%209.16476C10.8215%209.05927%2010.6641%209%2010.5%209C10.3359%209%2010.1785%209.05927%2010.0625%209.16476C9.94644%209.27025%209.88125%209.41333%209.88125%209.56252V10.0739H6.61875C6.45465%2010.0739%206.29727%2010.1332%206.18123%2010.2387C6.06519%2010.3442%206%2010.4872%206%2010.6364C6%2010.7856%206.06519%2010.9287%206.18123%2011.0342C6.29727%2011.1397%206.45465%2011.1989%206.61875%2011.1989H12.1664C11.8987%2011.888%2011.4056%2012.976%2010.6536%2013.9696C9.77016%2012.9039%209.44194%2012.2143%209.43941%2012.2087C9.37473%2012.0728%209.25375%2011.9656%209.10268%2011.9103C8.95162%2011.855%208.78267%2011.856%208.63246%2011.9132C8.48226%2011.9704%208.36292%2012.0792%208.30032%2012.2159C8.23773%2012.3525%208.23693%2012.5061%208.29809%2012.6434C8.31441%2012.6786%208.70731%2013.5186%209.78478%2014.7894C9.81066%2014.8198%209.83625%2014.8495%209.86184%2014.8791C8.75822%2016.0131%207.67541%2016.7165%207.22231%2016.9436C7.07824%2017.015%206.97128%2017.1356%206.92497%2017.2787C6.87866%2017.4218%206.89679%2017.5758%206.97537%201
7307.7068C7.05396%2017.8378%207.18656%2017.935%207.344%2017.9771C7.50144%2018.0192%207.67083%2018.0028%207.81491%2017.9313C7.87566%2017.9011%209.18178%2017.2438%2010.6733%2015.7428C11.3066%2016.3586%2011.742%2016.649%2011.7682%2016.6659C11.834%2016.7094%2011.9086%2016.7406%2011.9877%2016.7578C12.0668%2016.775%2012.1488%2016.7779%2012.2292%2016.7663C12.3095%2016.7546%2012.3865%2016.7287%2012.4558%2016.69C12.5251%2016.6513%2012.5853%2016.6005%2012.633%2016.5406V16.5409Z'%20fill='%23B5B5B5'/%3e%3c/svg%3e",disabled:0===this.audio_tracks.length,on_click:()=>{0!==this.audio_tracks.length&&(this.display_menu="audio",this.active_index=void 0,this.reposition(),this.$nextTick(()=>this.$refs.popover?.focus()),this.send_analytics(AT.AudioSubmenu))}}];case"subtitles":if(0===this.text_tracks.length)return[];return[jL].concat(this.text_tracks).map(e=>({option:e.label,icon:this.active_text_track?.id===e.id?DL:void 0,id:e.id,selection_options:{is_active:this.active_text_track?.id===e.id},on_click:()=>{const t=UL.instance.getActiveTrack();this.text_tracks.forEach(t=>{"showing"===t.mode&&e.id!==t.id?t.mode="disabled":e.id===t.id&&(t.mode="showing")}),this.active_text_track=e;const n=e.id===NL?t:e;UL.instance.saveTrackOptions({language:n?.language,has_cc:UL.instance.isClosedCaptionTrack(n),enabled:e.id!==NL}),UL.instance.isUsingFallbackTrack=!1,e.id!==NL&&this.send_analytics(AT.TextTrackSelect,{language_text_track:e.language})}}));case"audio":return this.audio_tracks.map(e=>({option:e.label,icon:this.active_audio_track?.id===e.id?DL:void 0,id:e.id,selection_options:{is_active:this.active_audio_track?.id===e.id},on_click:()=>{this.audio_tracks.forEach(t=>{t.enabled=t.id===e.id}),this.active_audio_track=e,e.id!==this.audio_tracks[0].id&&this.send_analytics(AT.AudioSelect,{language_audio_track:e.language,audio_description:e.label.toLowerCase().includes("audio description")})}}))}},subtitle_label(){return 0===this.text_tracks.length?"Not available".localized():this.active_text_track?.label??"Off".localized()}},methods:{manage_event_listeners(e){["addtrack","removetrack","change"].forEach(t=>{const n="add"===e?"addEventListener":"removeEventListener";this.player.remoteTextTracks()[n](t,this.on_text_track_change)})},on_submenu_back_click(e=0){this.display_menu="home",this.reposition(),this.$nextTick(()=>document.getElementById(this.id+e)?.focus())},on_text_track_change:kT(function(){this.audio_tracks=this.player.audioTracks().tracks_,this.text_tracks=UL.instance.getTracks(),this.set_active_tracks()},100),open_text_track_settings(e){const t=this.player.getChild("textTrackSettings");t.one("beforemodalclose",()=>this.save_text_track_settings(t)),t.open(),e.stopPropagation()},reposition(){this.$nextTick(()=>this.$emit("reposition"))},set_active_tracks(){this.active_audio_track=this.audio_tracks.find(e=>e.enabled),this.active_text_track=UL.instance.getActiveTrack()??jL},send_analytics(e,t={}){gf.sendEvent(this.$nuxt.context,e,{...t,title_id:this.$kuistore.state.video_player.media?.video_id,title_name:this.$kuistore.state.video_player.media?.video_title,library_name:this.$kuistore.getters["site/institution_name"]})},save_text_track_settings(e){try{e.saveSettings()}catch(t){console.error("Error saving text track settings",t),Du.instance.captureException({message:"Error saving text track settings",error_details:t})}}},components:{VideoPlayerBackIconSvg:ML,PopoverMenuList:LL}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"popover",attrs:{role:"group",tabindex:"-1","aria-labelledby":e.id+"heading"}},[t("div",{staticClass:"heading"},[e.heading.is_submenu?t("div",{staticClass:"heading-button"},[t("button",{staticClass:"nav",attrs:{"aria-label":e.heading.label},on:{click:function(t){return e.on_submenu_back_click(e.heading.return_index)}}},[t("VideoPlayerBackIconSvg",{staticClass:"icon"})],1),t("h1",{staticClass:"nav-text",attrs:{id:e.id+"heading"}},[e._v(e._s(e.heading.text))])]):t("h1",{staticClass:"nav-text"},[e._v(e._s(e.heading.text))]),null!=e.heading.link?t("button",{staticClass:"heading-link",on:{click:e.heading.link.on_click}}
730,[e._v(" "+e._s(e.heading.link.text)+" ")]):e._e()]),t("popover-menu-list",{staticClass:"popover-list",attrs:{options:e.options,has_submenus:!e.heading.is_submenu,list_label:e.heading.text,has_selectable_options:!0}})],1)},[],0,0,"6e99e43d").exports;var BL,FL,qL,VL={exports:{}},HL={},zL={};function GL(){if(FL)return HL;FL=1,Object.defineProperty(HL,"__esModule",{value:!0});var e=(BL||(BL=1,Object.defineProperty(zL,"__esModule",{value:!0}),zL.default=function(e){var t=e.length,n=t%4;if(!n)return e;var r=t,i=4-n,s=t+i,o=lE.alloc(s);for(o.write(e);i--;)o.write("=",r++);return o.toString()}),zL);function t(e,t){return void 0===t&&(t="utf8"),lE.isBuffer(e)?r(e.toString("base64")):r(lE.from(e,t).toString("base64"))}function n(t){return t=t.toString(),e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function r(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var i=t;return i.encode=t,i.decode=function(e,t){return void 0===t&&(t="utf8"),lE.from(n(e),"base64").toString(t)},i.toBase64=n,i.fromBase64=r,i.toBuffer=function(e){return lE.from(n(e),"base64")},HL.default=i,HL}var KL=(qL||(qL=1,function(e){e.exports=GL().default,e.exports.default=e.exports}(VL)),VL.exports);const WL=Xa(KL);class XL{static fromObject(e,t="base64url"){if(0!==Object.entries(e).length){const n=WL.encode(JSON.stringify(e));return"base64url"===t?n:WL.toBase64(n)}}static fromBuffer(e,t="base64url"){const n=WL.encode(e);return"base64url"===t?n:WL.toBase64(n)}static toBuffer(e){return WL.toBuffer(e)}static fromString(e){return WL.encode(e)}static decodeObjectFromString(e){try{return JSON.parse(WL.decode(e))}catch{return}}}const YL=BP.getComponent("Button");class ZL extends YL{seconds(){return this.options_.seconds}buildCSSClass(){return`vjs-seek-control ${super.buildCSSClass()}`}updateText(e){this.setAttribute("aria-label",e),this.setAttribute("title",e)}}const JL="RewindButton";BP.registerComponent(JL,class extends ZL{constructor(e,t){super(e,t),this.updateText("Back {seconds} seconds".localized({seconds:t.seconds}))}buildCSSClass(){return`vjs-rewind-control vjs-rewind-${this.seconds()}s-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime();this.player_.currentTime(t-this.seconds())}});const QL="ForwardButton";function eD(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=vT(n))==n?n:0),void 0!==t&&(t=(t=vT(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(vT(e),t,n)}BP.registerComponent(QL,class extends ZL{constructor(e,t){super(e,t),this.updateText("Forward {seconds} seconds".localized({seconds:t.seconds}))}buildCSSClass(){return`vjs-forward-control vjs-forward-${this.seconds()}s-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime();this.player_.currentTime(t+this.seconds())}});const tD=BP.getComponent("Component");class nD{value;type;constructor(e,t){this.value=e,this.type=t}}class rD extends nD{constructor(e){super(eD(e,0,100),0)}}class iD extends nD{constructor(e){super(e,1)}}class sD extends nD{constructor(e){super(e,2)}}const oD="CutProgressBarCursor";BP.registerComponent(oD,class extends tD{isInDragGesture;dragInitialPosition;maxPosition;minPosition;constructor(e,t){super(e,t),this.isInDragGesture=!1,this.dragInitialPosition=new rD(t?.initialPercentagePosition??0),this.maxPosition=new rD(t?.initialMaxPosition??100),this.minPosition=new rD(t?.initialMinPosition??0),this.setCursorPosition(this.dragInitialPosition),this.on("mousedown",this.handleDragStart),this.on("mousemove",this.handleDragUpdate),this.on("mouseup",this.handleDragEnd),this.on("mouseleave",this.handleDragCanceled)}dispose(){this.off("mousedown",this.handleDragStart),this.off("mousemove",this.handleDragUpdate),this.off("mouseup",this.handleDragEnd),this.off("mouseleave",this.handleDragCanceled),super.dispose()}eventName(){return this.options_.eventName}setMinPosition(e){this.minPosition=new rD(eD(e,0,this.maxPosition.value))}setMaxPosition(e){this.maxPosition=new rD(eD(e,this.minPosition.value,100))}setPosition(e){this.setCursorPosition(new rD(e))}createEl(){const e=super.createEl("div",{className:this.buildCSSClass()});e.style.position="absolute",e.style.zIndex="1";const t=document.createElement("div");return t.style.height="200%",t.style.width="400%",t.style.marginLeft="-150%",t.style.marginTop="-150%",t.style.display="none",e.appendChild(t),e}getHtmlEl(){return this.el()}getMouseBoxEl(){return this.getHtmlEl().firstChild}buildCSSClass(){return"vjs-cut-progress-bar-cursor"}isTouchEvent(e){return null!=e.touches}eventPosition(e){return this.isTouchEvent(e)?new iD(e.touches[0].clientX):new iD(e.clientX)}parentWidth(){const e=this.getHtmlEl();return e.parentElement?.clientWidth}parentClientLeft(){const e=this.getHtmlEl();return e.parentElement?.getBoundingClientRect().left}getCursorLeftPosition(){const e=this.getHtmlEl(),t=this.parentWidth();return new rD(null==t?0:100*e.offsetLeft/t)}setCursorPosition(e){switch(e.type){case 0:break;case 1:e=this.fromAbsoluteToRelative(e);case 2:e=this.fromRelativeToPercentage(e)}e=new rD(eD(e.value,this.minPosition.value,this.maxPosition.value));this.getHtmlEl().style.left=`calc(${e.value}% - 4px)`}fromAbsoluteToRelative(e){const t=this.parentClientLeft();return new sD(null==t?e.value:e.value-t)}fromRelativeToPercentage(e){const t=this.parentWidth();return new rD(null==t?0:100*e.value/t)}getCursorPositionFromEvent(e){const t=this.eventPosition(e),n=this.fromAbsoluteToRelative(t);return this.fromRelativeToPercentage(n)}handleDragStart(e){this.isInDragGesture||(this.isInDragGesture=!0,this.dragInitialPosition=this.getCursorPositionFromEvent(e),this.getHtmlEl().style.zIndex="2",this.getMouseBoxEl().style.display="block",this.trigger("dragstarted"),e.stopPropagation())}handleDragUpdate(e){this.isInDragGesture&&(this.setCursorPosition(this.getCursorPositionFromEvent(e)),e.stopPropagation())}handleDragEnd(e){if(!this.isInDragGesture)return;this.setCursorPosition(this.getCursorPositionFromEvent(e));const t=this.player_.duration(),n=this.getCursorLeftPosition(),r=t*n.value/100,i={type:this.eventName(),time_second:r};this.player_.trigger(i),this.onDragGestureFinished(n),e.stopPropagation()}handleDragCanceled(e){this.isInDragGesture&&(this.setCursorPosition(this.dragInitialPosition),this.onDragGestureFinished(this.getCursorLeftPosition()),e.stopPropagation())}onDragGestureFinished(e){this.isInDragGesture=!1,this.getHtmlEl().style.zIndex="1",this.getMouseBoxEl().style.display="none";const t={type:"dragended",percentage:e.value};this.trigger(t)}});const aD=BP.getComponent("ProgressControl"),lD="cutstarttime",cD="cutendtime";const uD="CutProgressBar";BP.registerComponent(uD,class extends aD{minCursorComponent;maxCursorComponent;constructor(e,t){super(e,t),this.buildCSSClass().split(" ").forEach(e
730=>{Va.isEmpty(e)||this.addClass(e)});const n=this.getSeekBar();null!=n?(this.addMinCursor(n,t),this.addMaxCursor(n,t)):console.error("couldn't find SeekBar component in ProgressControl. Cannot add CutProgressBarCursors")}getSeekBar(){return this.getChild("SeekBar")}addMinCursor(e,t){let n=0,r=100;const i=this.player_.duration();i>0&&(n=100*(t?.initialMinCursorTimeSeconds??0)/i,r=100*(t?.initialMaxCursorTimeSeconds??i)/i);const s={eventName:lD,initialPercentagePosition:n,initialMaxPosition:r-1,initialMinPosition:0};this.minCursorComponent=e.addChild(oD,s,3),this.minCursorComponent.on("dragstarted",this.onCursorDragStarted.bind(this)),this.minCursorComponent.on("dragended",this.onMinCursorDragEnded.bind(this))}addMaxCursor(e,t){let n=0,r=100;const i=this.player_.duration();i>0&&(n=100*(t?.initialMinCursorTimeSeconds??0)/i,r=100*(t?.initialMaxCursorTimeSeconds??i)/i);const s={eventName:cD,initialPercentagePosition:r,initialMaxPosition:100,initialMinPosition:n+1};this.maxCursorComponent=e.addChild(oD,s,4),this.maxCursorComponent.on("dragstarted",this.onCursorDragStarted.bind(this)),this.maxCursorComponent.on("dragended",this.onMaxCursorDragEnded.bind(this))}dispose(){this.minCursorComponent?.off("dragstarted",this.onCursorDragStarted),this.minCursorComponent?.off("dragended",this.onMinCursorDragEnded),this.maxCursorComponent?.off("dragstarted",this.onCursorDragStarted),this.maxCursorComponent?.off("dragended",this.onMaxCursorDragEnded),super.dispose()}buildCSSClass(){return`vjs-cut-progress-bar ${super.buildCSSClass()}`}updateCutCursors(e,t){let n=0,r=100;const i=this.player_.duration();i>0&&(n=eD(100*e/i,0,99),r=eD(100*t/i,1,100)),r<=n&&(r=n+1),null!=this.minCursorComponent&&(this.minCursorComponent.maxPosition.value>=r&&this.minCursorComponent.setMaxPosition(r-1),this.minCursorComponent.setPosition(n)),null!=this.maxCursorComponent&&(this.maxCursorComponent.minPosition.value<=n&&this.maxCursorComponent.setMinPosition(n+1),this.maxCursorComponent.setPosition(r))}isDraggingCursor(){return(this.minCursorComponent?.isInDragGesture??!1)||(this.maxCursorComponent?.isInDragGesture??!1)}onCursorDragStarted(){const e=this.getSeekBar(),t=e?.children();t?.forEach(e=>{if("MouseTimeDisplay"===e.name()){const t=e.el();t.style.visibility="hidden",t.style.opacity="0"}})}onMinCursorDragEnded(e){this.maxCursorComponent?.setMinPosition(e.percentage+1),this.onCursorDragEnded()}onMaxCursorDragEnded(e){this.minCursorComponent?.setMaxPosition(e.percentage-1),this.onCursorDragEnded()}onCursorDragEnded(){const e=this.getSeekBar(),t=e?.children();t?.forEach(e=>{if("MouseTimeDisplay"===e.name()){const t=e.el();t.style.visibility="visible",t.style.opacity="1"}})}});const dD=BP.getComponent("Button"),hD="transcript:toggle",pD="transcript:close";const fD="TranscriptButton";BP.registerComponent(fD,class extends dD{_enabled;constructor(e,t){super(e,t),this.setAttribute("aria-label","Transcript on".localized()),this.setAttribute("title","Transcript on".localized()),this._enabled=!1}createEl(e,t,n){const r=super.createEl(e,t,n);return r.addEventListener(pD,()=>{this._enabled=!1,this.disableTranscript()}),r}buildCSSClass(){return`vjs-transcript-control ${super.buildCSSClass()}`}handleClick(e){this.player_.trigger(hD,{button:this.el()}),this._enabled?this.disableTranscript():this.enableTranscript(),this._enabled=!this._enabled}disableTranscript(){this.setAttribute("aria-label","Transcript on".localized()),this.setAttribute("title","Transcript on".localized()),this.el().setAttribute("aria-expanded","false")}enableTranscript(){this.setAttribute("aria-label","Transcript off".localized()),this.setAttribute("title","Transcript off".localized()),this.el().setAttribute("aria-expanded","true")}});var mD=(e=>(e.PlaybackRate="PlaybackRateMenu",e.Settings="SettingsMenu",e))(mD||{});const _D=BP.getComponent("Button"),gD="settings:open";const yD="SettingsButton";BP.registerComponent(yD,class extends _D{constructor(e,t){super(e,t),this.setAttribute("aria-label","Settings".localized()),this.setAttribute("title","Settings".localized()),this.setAttribute("aria-expanded","fal
730se"),this.setAttribute("aria-haspopup","true")}buildCSSClass(){return`vjs-settings-button ${super.buildCSSClass()}`}handleClick(e){let t;this.player_.pause(),xa.isFirefox()&&(t=setInterval(()=>{this.player_.play(),setTimeout(()=>{this.player_.pause()},1)},2e3)),this.addClass("enabled"),this.one("popover:close",()=>{this.removeClass("enabled"),clearInterval(t)}),this.player_.trigger(gD,{relative_parent:this.el(),content_type:mD.Settings,bounding_el:this.player_.el(),focus_parent_on_close:!0})}});const vD=BP.getComponent("Button"),bD="playback_rates:open";const wD="PlaybackRateButton";BP.registerComponent(wD,class extends vD{isDisplayingMenu;rateDisplay;constructor(e,t){super(e,t),this.isDisplayingMenu=!1,this.setAttribute("aria-label","{speed}x playback speed".localized({speed:e.playbackRate()})),this.setAttribute("title","Playback speed".localized()),this.setAttribute("aria-expanded","false"),this.setAttribute("aria-haspopup","true"),this.rateDisplay=document.createElement("div"),this.rateDisplay.classList.add("vjs-playback-rate-value"),this.setRateDisplay(),this.el().appendChild(this.rateDisplay),this.player_.on("ratechange",()=>this.setRateDisplay())}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}handleClick(e){this.player_.trigger(bD,{relative_parent:this.el(),content_type:mD.PlaybackRate,bounding_el:this.player_.el(),max_width:155}),this.setAttribute("aria-expanded","true"),this.addClass("enabled"),this.one("popover:close",this.onPopoverClose),this.isDisplayingMenu=!0}setRateDisplay(){const e=this.player_.playbackRate();null!=this.rateDisplay&&null!=e&&(this.rateDisplay.innerHTML=e+"x"),this.setAttribute("aria-label","{speed}x playback speed".localized({speed:e}))}onPopoverClose(){this.removeClass("enabled"),this.setAttribute("aria-expanded","false"),this.isDisplayingMenu=!1}});var kD=(e=>(e.Dismiss="Dismiss",e.Refresh="Refresh",e.UnlimitedViewing="Browse Unlimited Viewing Titles",e.VisitWebsite="Watch on kanopy.com",e.KanopyHelp_HDCP="Go to Kanopy Help",e))(kD||{}),CD=(e=>(e[e.NoMembership=0]="NoMembership",e[e.NoMembershipOnDomain=1]="NoMembershipOnDomain",e[e.NoActiveMembershipOnDomain=2]="NoActiveMembershipOnDomain",e[e.LoginRequired=3]="LoginRequired",e[e.ProductVpAccess=4]="ProductVpAccess",e[e.NonEmbeddableContent=5]="NonEmbeddableContent",e[e.ParentalControlPinRequired=6]="ParentalControlPinRequired",e[e.EmptyContent=7]="EmptyContent",e[e.ContentNotFound=8]="ContentNotFound",e))(CD||{}),TD=(e=>(e.Login="Login",e.LoginOrSignup="LoginOrSignup",e.SwitchToAdult="SwitchToAdult",e.AddNewLibrary="AddNewLibrary",e.ReactivateMembership="ReactivateMembership",e.RequestContent="RFP",e.GoHome="GoHome",e.NoAction="",e))(TD||{}),SD=(e=>(e[e.Video=0]="Video",e[e.Customplaylist=1]="Customplaylist",e))(SD||{});const xD="We're sorry, there was a problem playing this DRM-protected content.\nPlease try reloading the video or visit our help page for more information.";var ED={},ID=(e=>(e.Dash="DASH-DRM",e.Hls="HLS",e))(ID||{});class AD{debug;currentOption;player;muxHasBeenInit;MUX_PLAYER_NAME="KUI Web Player";static instance=new AD;constructor(e){this.debug=e?.$kuistore.getters["debug/get_value"]("mux_service_debug_enabled")??!1,this.muxHasBeenInit=!1,this.currentOption={env_key:""},null!=e&&this.initialize(e)}isInitialized(){return this.currentOption.env_key.length>0}muxIsInitialized(){return this.muxHasBeenInit}initialize(e){this.debug=e?.$kuistore.getters["debug/get_value"]("mux_service_debug_enabled")??!1,this.currentOption={env_key:e.env.MUX_KEY,player_name:this.MUX_PLAYER_NAME,player_version:ED.npm_package_version,player_init_time:Date.now()}}setVideoTitle(e){this.currentOption.video_title=e}setVideoSeries(e){this.currentOption.video_series=e}setVideoStreamType(e){this.currentOption.video_stream_type=e}setCDN(e){this.currentOption.video_cdn=e}setExperimentName(e){this.currentOption.experiment_name=e}setPlayer(e){this.player=e,this.muxHasBeenInit=!1}applyMuxConfiguration(){this.muxHasBeenInit?this.notifyVideoChange():this.initMux()}initMux(){null!=this.player?(this.player.mux({debug:this.debug,disableCookies:!Ba.instance.consent.performance,respectDoNotTrack:!0,data:this.currentOption}),this.muxHasBeenInit=!0):console.error("player is required to initialize Mux")}notifyVideoChange(){null!=this.player?this.player.mux.emit("videochange",this.currentOption):console.error("player manager is missing. Cannot notify video change")}}const PD=BP.getComponent("Button"),OD="text_track:toggle";const LD="CaptionButton";BP.registerComponent(LD,class extends PD{constructor(e,t){super(e,t),this.setAttribute("aria-label","Subtitles on".localized()),this.setAttribute("title","Subtitles on".localized()),0===UL.instance.getTracks().length&&(this.setAttribute("disabled","true"),this.addClass("disabled"),this.setAttribute("aria-label","No subtitles".localized()),this.setAttribute("title","No subtitles".localized())),e.remoteTextTracks().addEventListener("addtrack",()=>this.onTextTrackChanged()),e.remoteTextTracks().addEventListener("removetrack",()=>this.onTextTrackChanged()),e.remoteTextTracks().addEventListener("change",()=>this.onTextTrackChanged())}buildCSSClass(){return`vjs-caption-control ${super.buildCSSClass()}`}handleClick(){0!==UL.instance.getTracks().length&&(this.toggleButtonState(),UL.instance.toggleTrackVisibility(),this.player_.trigger(OD,{enabled:null!=UL.instance.getActiveTrack()}))}onTextTrackChanged=kT(function(){null!=this.el_&&(0===UL.instance.getTracks().length?(this.setAttribute("disabled","true"),this.addClass("disabled")):(this.removeAttribute("disabled"),this.removeClass("disabled")),this.toggleButtonState())},100);toggleButtonState(){null!=UL.instance.getActiveTrack()?(this.addClass("enabled"),this.setAttribute("aria-label","Subtitles off".localized()),this.setAttribute("title","Subtitles off".localized())):UL.instance.getTracks().length>0?(this.removeClass("enabled"),this.setAttribute("aria-label","Subtitles on".localized()),this.setAttribute("title","Subtitles on".localized())):(this.setAttribute("aria-label","No subtitles".localized()),this.setAttribute("title","No subtitles".localized()))}});const DD=BP.getComponent("Component");const RD="TopControlBar";BP.registerComponent(RD,class extends DD{constructor(e,t){super(e,t),this.addClass("vjs-top-control-bar")}});const MD=BP.getComponent("Component");const ND="WordmarkLink";BP.registerComponent(ND,class extends MD{constructor(e,t){const n=Ia.detailsPagePathForEmbedRoute(t.context.$route,t.context.$kuistore,t.context.$kuistore.getters["video_player/source_type"]===Cf.Video)+"?utm_source=embedded_player&utm_medium=web";t.el=document.createElement("a"),t.el.title="View in Kanopy".localized(),t.el.target="_blank",t.el.href=Ia.pathUrl(t.context.$route,n,!0),super(e,t),t.el.className=`vjs-kanopy-link ${super.buildCSSClass()}`,t.el.onclick=()=>this.handleClick(t.context);const r=document.createElement("img");r.classList.add("vjs-kanopy-link-img"),r.src=DC,r.alt="Kanopy",this.el().append(r)}handleClick(e){this.player_.pause(),gf.sendEvent(e.$nuxt.context,AT.EmbedWordmarkClick,{video_title:e.$kuistore.getters["video_player/media"]?.video_title,video_id:e.$kuistore.getters["video_player/media"]?.video_id})}});const jD=BP.getComponent("Component");
730const UD="MetadataDisplay";BP.registerComponent(UD,class extends jD{constructor(e,t){super(e,t),this.addClass("vjs-metadata-display"),this.buildMetadata()}buildMetadata(){const e=this.options_.media;if(null==e)return;const t=document.createElement("h1");t.classList.add("vjs-metadata-title"),t.innerText=e.video_title;let n,r,i="";null!=e.age_rating&&(i=new Wx({el:document.createElement("div"),props:["age_rating"],propsData:{age_rating:e.age_rating}}).$el,i.classList.add("vjs-rating"),"AU"===e.age_rating.country_code&&i.classList.add("au")),null!=e.duration&&(n=document.createElement("div"),n.innerHTML=Xx.from_seconds(e.duration).to_string({fill_with_0:"not_for_hours",separator:"hr_min_s",show_hours:"auto",show_minutes:"always",show_seconds:"never",add_space_separator:!0})),null!=e.production_year&&(r=document.createElement("div"),r.innerHTML=e.production_year.toString());const s=document.createElement("div");s.classList.add("vjs-details"),[n,r].forEach(e=>{null!=e&&s.appendChild(e)});const o=document.createElement("div");o.classList.add("vjs-metadata"),o.append(i),s.childElementCount>0&&o.append(s);const a=document.createElement("div");a.classList.add("vjs-metadata-text-container"),a.append(t),o.childElementCount>0&&a.append(o),this.el().append(a),Ia.isEmbeddedRoute(this.options_.context.$route)&&this.addChild(ND,{context:this.options_.context})}});const $D=16,BD=Xn.extend({name:"Popover",data:()=>({vw:window.innerWidth}),props:{options:{type:Object,required:!0},in_player:{type:Boolean,required:!1,default:!1}},mounted(){this.$nuxt.$el.appendChild(this.$el),this.position(),setTimeout(()=>{const e=JC.instance.getFocusableContainer(this.$el),t=JC.instance.getFirstFocusableElement(this.$el);this.$nextTick(()=>(e??t??this.$el).focus())},100),this.$el.addEventListener("keydown",this.stop_propagation),this.in_player||(this.$nuxt.$emit(Mu.A11yHideMainContent,!0),document.body.style.overflow="hidden")},destroyed(){this.options.relative_parent.dispatchEvent(new Event("popover:close")),this.$el.removeEventListener("keydown",this.stop_propagation),this.in_player||(this.$nuxt.$emit(Mu.A11yShowMainContent),document.body.style.overflow="initial"),null!=this.options.on_close_focus_override?this.$nextTick(()=>this.options.on_close_focus_override?.focus()):this.options.focus_parent_on_close&&this.$nextTick(()=>this.options.relative_parent.focus())},computed:{attributes(){if(this.is_native_popover)return{popover:"auto",ref:"content"}},handlers(){return this.is_native_popover?{toggle:e=>this.toggle(e)}:{"keydown.tab":"handle_focus","keyup.escape":"close"}},is_native_popover(){return xa.isPlatformApiSupported(Sa.Popover)&&!this.in_player}},methods:{close(){this.$el.classList.add("out"),setTimeout(()=>this.$emit("close"),this.in_player?300:0)},position(){if(!this.in_player){const e=this.$refs.content,t=this.options.relative_parent.getBoundingClientRect(),n=this.is_native_popover?t.left:t.x,r=this.is_native_popover?t.top:t.y;return"right"===this.options.anchor_position?(e.style.top=r+window.scrollY+"px",e.style.left=n+t.width+20+"px"):(e.style.top=r+40+window.scrollY+"px",e.style.left=n+"px"),void setTimeout(()=>{const t=e.getBoundingClientRect(),n=(this.options.bounding_el??document.documentElement).getBoundingClientRect();if(t.left<n.left+$D?e.style.left=`${n.left+$D}px`:t.right>n.right-$D&&(e.style.left=t.left-Math.abs(n.right-t.right-$D)+"px"),t.bottom>window.innerHeight+$D)e.style.top=`${window.innerHeight-t.height-$D+window.scrollY}px`;else if("right"===this.options.anchor_position){const n=parseInt(e.style.top)-t.height/2+20;n<$D+window.scrollY?e.style.top=`${$D+window.scrollY}px`:e.style.top=n+"px"}},5)}const e=this.$refs.content.cloneNode(!0);e.classList.add("dummy"),e.style.position="absolute",e.style.top="unset",e.style.bottom="unset",e.style.height="unset",e.style.opacity="0",null!=this.options.max_width&&(e.style.maxWidth=this.options.max_width+"px"),this.options.relative_parent.appendChild(e);const t=this.options.relative_parent.getBoundingClientRect(),n=-(e.offsetWidth-t.width)/2;e.style.left=`${n}px`;const r=(this.options.bounding_el??document.documentElement).getBoundingClientRect();e.offsetHeight>r.height-32?(e.style.height=r.height-32+"px",e.style.overflowY="auto",r.height-t.top<e.offsetHeight&&(e.style.bottom="0px")):t.top-e.offsetHeight>0?e.style.bottom="calc(100% + 16px)":e.style.top="calc(100% + 16px)";let i=e.getBoundingClientRect();i.left<r.left+$D?e.style.left=`${r.left+$D}px`:i.right>r.right-$D&&(e.style.left=n-Math.abs(r.right-i.right-$D)+"px");const s=this.$refs.content;i=e.getBoundingClientRect();const o=i.top-r.top,a=o<0?i.height+o:i.height;s.style.top=Math.max(0,o)+"px",s.style.left=i.left-r.left+"px",s.style.height=a+"px",s.style.overflowY=e.style.overflowY,s.style.maxWidth=e.style.maxWidth,e.remove(),JC.instance.getFirstFocusableElement(s)?.focu
730s()},handle_focus(e){JC.instance.trapFocus(e,this.$el)},stop_propagation(e){e.stopPropagation()},toggle(e){"closed"===e.newState&&this.$emit("close")}}});const FD=CC(BD,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",e._g(e._b({directives:[{name:"windowresize",rawName:"v-windowresize",value:e.position,expression:"position"}],staticClass:"popover",class:{native:e.is_native_popover,"in-player":e.in_player},attrs:{id:e.options.popover_id,tabindex:"-1"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handle_focus.apply(null,arguments)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"escape",void 0,t.key,void 0)?null:e.close.apply(null,arguments)}}},"div",e.attributes,!1),e.handlers),[e.is_native_popover?t("div",{ref:"content",staticClass:"content",style:e.options.content_styles},[e._t("default",null,{close:e.close}),t("button",{staticClass:"shield hidden",attrs:{"aria-label":"Close".localized()},on:{click:e.close}})],2):t("div",[t("button",{staticClass:"shield",attrs:{"aria-label":"Close".localized()},on:{click:e.close}}),t("div",{staticClass:"content-container"},[t("div",{ref:"content",staticClass:"content",style:e.options.content_styles},[e._t("default",null,{reposition:e.position,close:e.close})],2)])])])},[],0,0,"7ee8bc18").exports,qD=BP.getComponent("Button"),VD="player:close";const HD="PlayerCloseButton";BP.registerComponent(HD,class extends qD{constructor(e,t){super(e,t),this.setAttribute("aria-label","Back to title page".localized()),this.setAttribute("title","Back to title page".localized())}buildCSSClass(){return`k-vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.player_.trigger(VD)}});var zD=(e=>(e.OPUS="video/ogg",e.OGV="video/ogg",e.MP4="video/mp4",e.MOV="video/mp4",e.M4V="video/mp4",e.MKV="video/x-matroska",e.WEBM="video/webm",e.M4A="audio/mp4",e.MP3="audio/mpeg",e.AAC="audio/aac",e.OGA="audio/ogg",e.M3U8="application/x-mpegURL",e.MPD="application/dash+xml",e))(zD||{});let GD=!1;const KD=635,WD=Xn.extend({name:"VideoPlayer",head(){const e=GD;GD=!0;return{script:[{src:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",once:!0,skip:e}]}},data:()=>({player:null,last_recorded_time_ms:void 0,casting:!1,is_loading:!0,size:{width:"100%",height:"100%"},popover_options:void 0,show_dark_overlays:!0,key_sessions_without_status_change:0,initial_play_error_timeout:void 0,seeked_pos_seconds_while_loading:0,listen_for_chromecast_manifest_error:!1}),props:{src:{type:String,required:!1,default:""},type:{type:String,required:!1,default:"video/mp4"},thumbnail:{type:String,required:!1,default:void 0},autoplay:{type:Boolean,required:!1,default:!1},start_time_s:{type:Number,required:!1,default:0},end_time_s:{type:Number,required:!1,default:void 0},enable_chromecast:{type:Boolean,required:!1,default:!0},chromecast_metadata:{type:Object,required:!1,default:void 0},enable_transcript:{type:Boolean,required:!1,default:!0},enable_rewind_and_ff:{type:Boolean,required:!1,default:!0},enable_playback_speed:{type:Boolean,required:!1,default:!0},enable_picture_in_picture:{type:Boolean,required:!1,default:!0},enable_fullscreen:{type:Boolean,required:!1,default:!0},enable_cut_progress_bar:{type:Boolean,required:!1,default:!1},enable_settings_button:{type:Boolean,required:!1,default:!0},enable_metadata:{type:Boolean,required:!1,default:!1},min_cut_time_second:{type:Number,required:!1,default:void 0},max_cut_time_second:{type:Number,required:!1,default:void 0},mux_metadata:{type:Object,required:!1,default:void 0},has_transcript_tracks:{type:Boolean,required:!1,default:!1},text_tracks:{type:Array,required:!1,default:()=>[]},is_protected_content:{type:Boolean,required:!1,default:!1},license_server_configs:{type:Object,required:!1,default:void 0},show_back_button:{type:Boolean,required:!1,default:!0},is_embedded:{type:Boolean,required:!1,default:!1},player_sentry_context:{type:Object,required:!1,default:void 0}},watch:{src(){null!=this.player&&(this.set_player_source(this.player),this.update_mux_config())},has_transcript_tracks(){this.update_transcript_button_visibility()},start_time_s(){this.update_offset_if_needed()},end_time_s(){this.update_offset_if_needed()},min_cut_time_second(){this.update_cut_progress_bar_cursors()},max_cut_time_second(){this.update_cut_progress_bar_cursors()}},mounted(){document.addEventListener("leavepictureinpicture",()=>this.leave_picture_in_picture()),this.create_videojs_player(),this.$refs.videoplayer.focus()},beforeDestroy(){this.player&&(null!=document.pictureInPictureElement&&document.exitPictureInPicture(),this.send_playback_analytics_if_needed(!0),this.player.dis
730pose(),null!=BP.getPlugin("chromecast")&&BP.deregisterPlugin("chromecast")),document.removeEventListener("leavepictureinpicture",()=>this.leave_picture_in_picture())},computed:{has_video_source(){return!Va.isEmpty(this.src)},chromecast_options(){return{chromecastOptions:{receiverApplicationId:this.$nuxt.context.env.CHROMECAST_APP_ID,autoJoinPolicy:"PAGE_SCOPED"},buttonPositionIndex:0,addButtonToComponent:RD}},options(){const e=this.$el.clientWidth;return this.has_video_source?{poster:this.thumbnail,controls:!0,techOrder:(this.enable_chromecast?["chromecast"]:[]).concat(["html5"]),chromecast:{requestCustomDataFn:e=>this.chromecast_metadata},html5:{nativeTextTracks:!1,preloadTextTracks:!1},playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],autoplay:this.autoplay,preload:"auto",controlBar:{subsCapsButton:!1,playbackRateMenuButton:this.enable_playback_speed,pictureInPictureToggle:this.enable_picture_in_picture,fullscreenToggle:this.enable_fullscreen,currentTimeDisplay:!1,remainingTimeDisplay:{displayNegative:!0},volumePanel:{inline:e>KD,volumeControl:{vertical:e<=KD}}},persistTextTrackSettings:!0,disableSeekWhileScrubbingOnSTV:!0}:void 0}
730,source(){let e={src:this.src,type:this.type};const t=this.license_server_configs;return this.is_protected_content&&(e={...e,keySystems:{"com.widevine.alpha":{url:t.widevine.url,licenseHeaders:t.widevine.headers},"com.microsoft.playready":{url:t.playready.url,licenseHeaders:t.playready.headers}}},BP.browser.IS_ANY_SAFARI&&null!=e.keySystems&&(e.keySystems["com.apple.fps.1_0"]={certificateUri:"https://fairplay.keyos.com/api/v4/getCertificate?certHash=0fa22ae344c054914550ab0df48cd9de",getContentId(e,t){const n=t;if(n.includes("skd://"))return n.split("skd://")[1].substring(0,32);throw console.error("FAIRPLAY-DRM: Invalid Content ID format. The format of the Content ID must be the following: skd://xxx where xxx is the Key ID in hex format."),Du.instance.captureException({message:"FAIRPLAY-DRM: Invalid Content ID format.",error_details:{contentId:n,player_context:this.player_sentry_context}}),new Error(xD)},getLicense(e,n,r,i){const s=`spc=${XL.fromBuffer(lE.from(r),"base64")}&assetId=${n}`,o={url:t.fairplay.url,method:"POST",body:s,headers:t.fairplay.headers,responseType:"text"};BP.xhr(o,(e,t,r)=>{if(null!=e)Du.instance.captureException({message:"GetLicenseRequestCallback failed",error_details:{contentId:n,playerContext:this.player_sentry_context,callbackError:e,callbackBody:r}}),i(e);else{const e=XL.toBuffer(r);i(null,e)}})}})),e},size_css(){return{width:this.size.width,height:this.size.height}},use_video_offset(){return null!=this.start_time_s&&null!=this.end_time_s}},methods:{async create_videojs_player(){const e=this;e.enable_chromecast&&await $O(BP,{chromecastOptions:this.chromecast_options.chromecastOptions}),this.player=BP(this.$refs.videoplayer,this.options,function(){AD.instance.setPlayer(this),e.update_mux_config(),e.enable_chromecast&&null!=this.chromecast&&this.chromecast(e.chromecast_options),e.is_protected_content&&(this.tech(!0).on("keystatuschange",e.on_key_status_change),this.tech().on("keysessioncreated",e.on_key_session_created),this.eme(),BP.browser.IS_ANY_SAFARI&&this.eme.initLegacyFairplay()),this.hotkeys({volumeStep:.1,alwaysCaptureHotkeys:!1,seekStep:10,skipInitialFocus:!0,enableHoverScroll:!0}),e.use_video_offset&&this.offset({start:e.start_time_s,end:e.end_time_s,restart_beginning:!1}),this.getChild("PosterImage")?.$("img")?.removeAttribute("crossorigin"),this.on("durationchange",e.on_duration_change),this.on("timeupdate",e.on_time_update),this.on("seeked",e.on_seeked),this.on("ended",e.on_playback_ended),this.on("error",e.on_player_error),this.on("useractive",e.on_user_active),this.on("userinactive",e.on_user_inactive),this.on("canplay",e.is_ready_to_play),this.on("chromecastConnected",e.on_chromecast_starting),this.on("chromecastDisconnected",e.on_chromecast_ended),this.on(hD,e.on_transcript_toggle),this.on(OD,e.on_text_track_toggle),this.on(gD,e.on_popover_opened),this.on(bD,e.on_popover_opened),this.on(lD,e.on_progress_bar_cut_start_time),this.on(cD,e.on_progress_bar_cut_end_time),this.on(VD,e.on_player_close),this.one("play",e.on_initial_play),e.is_embedded&&this.one("click",async()=>{this.player().pause(),await Ba.instance.cookie_storage_access_request(e.$nuxt.context),this.player().play()}),UL.instance.setPlayer(this),e.add_player_buttons(),e.on_player_ready(this)}),this.$emit("player_set",this.player)},update_mux_config(){AD.instance.setVideoTitle(this.mux_metadata?.title??""),AD.instance.setVideoSeries(this.mux_metadata?.parent_title??""),AD.instance.setVideoStreamType(this.is_protected_content?ID.Dash:ID.Hls),AD.instance.setCDN(this.mux_metadata?.cdn??""),AD.instance.applyMuxConfiguration()},add_player_buttons(){if(null==this.player)return;const e=this.player.getChild("ControlBar");if(null==e)return;const t=this.player.getChild("PosterImage")?.el();t&&t.after(this.$refs.dark_overlays.$el),this.show_back_button&&this.player.addChild(HD);const n=this.player.addChild(RD);this.player.el().insertBefore(n.el(),e.el()),[e.getChild("ChromecastButton"),e.getChild("PictureInPictureToggle"),e.getChild("FullscreenToggle")].forEach(e=>{null!=e&&n.addChild(e)});let r="";this.enable_metadata&&null!=this.$kuistore.getters["video_player/media"]&&(r=this.player.addChild(UD,{media:this.$kuistore.getters["video_player/media"],context:this}).el());const i=document.createElement("div");i.classList.add("k-vjs-progress-container");const s=e.getChild("ProgressControl");if(this.enable_cut_progress_bar){null!=s&&s.hide();const t={initialMaxCursorTimeSeconds:this.max_cut_time_second??this.player.duration(),initialMinCursorTimeSeconds:this.min_cut_time_second??0},n=e.addChild(uD,t);i.appendChild(n.el())}else null!=s&&i.appendChild(s.el());const o=e.getChild("RemainingTimeDisplay");null!=o&&i.appendChild(o.el());const a=document.createElement("div");a.classList.add("k-vjs-button-container");const l=document.createElement("div");l.classList.add("k-vjs-left-buttons"),a.appendChild(l);const c=e.getChild("playbackRateMenuButton");null!=c&&e.removeChild(c),[e.getChild("PlayToggle"),this.enable_rewind_and_ff?this.player.addChild(JL,{seconds:10}):void 0,this.enable_rewind_and_ff?this.player.addChild(QL,{seconds:10}):void 0,null!=c?this.player.addChild(wD):void 0,e.getChild("VolumePanel")
730].forEach(e=>l.append(e?.el()??""));const u=document.createElement("div");u.classList.add("k-vjs-right-buttons"),[this.player.addChild(LD),this.enable_transcript?this.player.addChild(fD):void 0,this.enable_settings_button?this.player.addChild(yD):void 0].forEach(e=>u.append(e?.el()??"")),this.update_transcript_button_visibility(),a.append(l,u),e.el().prepend(r,i,a)},on_player_ready(e){this.set_player_source(e)},set_player_source(e){this.source,e.src(this.source),this.is_loading=!0,this.use_video_offset||this.jump_to_time(this.start_time_s),this.use_video_offset&&this.on_duration_change()},update_transcript_button_visibility(){const e=this.player?.getChild("ControlBar")?.getChild(fD);this.has_transcript_tracks?e?.show():e?.hide()},on_duration_change(){let e=this.player?.duration();0===e&&(e=void 0),this.$emit("duration_change",e),this.update_cut_progress_bar_cursors()},update_cut_progress_bar_cursors(){const e=this.player?.getChild("ControlBar")?.getChild(uD);null!=e&&e.updateCutCursors(this.min_cut_time_second,this.max_cut_time_second)},is_ready_to_play(){this.load_text_tracks()},load_text_tracks(){null!=this.player&&(UL.instance.getTracks().forEach(e=>{this.player?.removeRemoteTextTrack(e)}),this.text_tracks.forEach(e=>{this.player?.addRemoteTextTrack(e,!1)}),UL.instance.setActiveTrack(),this.player.remoteTextTracks().onchange=this.on_text_track_change)},jump_to_time(e){this.player?.currentTime(e)},change_size(e,t){"number"==typeof e&&(e=`${e}px`),"number"==typeof t&&(t=`${t}px`),this.change_volume_control_orientation(parseInt(e)),this.size={width:e,height:t}},change_volume_control_orientation(e){const t=parseInt(this.size.width);if(null==this.player||e<=KD&&t<=KD||e>KD&&t>KD)return;const n=this.player.getChild("ControlBar")?.getChild("VolumePanel");if(null!=n){const t=e>KD,r="vjs-volume-panel-horizontal",i="vjs-volume-panel-vertical",s="vjs-volume-horizontal",o="vjs-volume-vertical",a="vjs-slider-horizontal",l="vjs-slider-vertical";n.addClass(t?r:i),n.removeClass(t?i:r),n.options({inline:t,volumeControl:{vertical:!t}});const c=n.getChild("VolumeControl");c?.addClass(t?s:o),c?.removeClass(t?o:s),c?.options({vertical:!t});const u=c?.getChild("VolumeBar");u.vertical(!t),u?.addClass(t?a:l),u?.removeClass(t?l:a),u?.options({vertical:!t});const d=u?.getChild("VolumeLevel"),h=d?.el(),p=h.style.width;h.style.width=h.style.height,h.style.height=p}},on_text_track_change(e){null!=this.player&&this.$emit("text_track_change")},on_key_status_change(e){const t=e.status;this.key_sessions_without_status_change--,null!=t&&(("output-restricted"===t||this.$kuistore.getters["debug/get_value"]("hdcp_failure")&&!this.player_sentry_context?.manifestType?.toLowerCase().includes("nohdcp"))&&0===this.key_sessions_without_status_change?(console.error("cannot play hdcp!"),this.$emit("hdcp_play_failed")):"usable"===t?this.$emit("clear_error"):Du.instance.captureException({message:'MediaKeyStatus is not "usable"',error_details:{playerContext:this.player_sentry_context,keySessionsWithoutStatusChange:this.key_sessions_without_status_change,keyStatus:t}}))},on_key_session_created(){this.key_sessions_without_status_change++},on_time_update(e){if(this.is_loading){this.seeked_pos_seconds_while_loading=this.player?.currentTime()??0,this.player?.one("seeking",()=>{null!=this.player&&0!==this.seeked_pos_seconds_while_loading&&(this.player.cache_.initTime=this.seeked_pos_seconds_while_loading)}),this.player?.options({disableSeekWhileScrubbingOnSTV:!1});const e=this.player?.getChild("ControlBar").getChild("ProgressControl")?.getChild("SeekBar");null!=e&&(e.shouldDisableSeekWhileScrubbing_=!1),this.is_loading=!1,this.$emit("playback_started"),this.show_dark_overlays=!0}const t=this.player?.currentTime()??0;null!=this.end_time_s&&t>=this.end_time_s?(this.player?.pause(),this.on_playback_ended()):(this.$emit("time_update",t),this.send_playback_analytics_if_needed())},on_seeked(e){this.send_playback_analytics_if_needed(!0)},on_playback_ended(){if(this.casting){const e=window.chromecastFrameworkInstance;e?.session?.stopReceiverAppAndDisconnectFromDevice()}this.$emit("ended")},on_transcript_toggle(e,t){this.$emit("transcript_toggle",t)},on_text_track_toggle(e,t){gf.sendEvent(this.$nuxt.context,AT.TextTrackToggle,{enabled:t.enabled,title_id:this.$kuistore.state.video_player.media?.video_id,title_name:this.$kuistore.state.video_player.media?.video_title,library_name:this.$kuistore.getters["site/institution_name"]})},on_popover_opened(e,t){this.popover_options=t,this.toggle_player_control_a11y_hidden(!0),xC.inNextEventTick(()=>{this.player?.el().appendChild(this.$refs.popover.$el)})},on_progress_bar_cut_start_time(e){this.$emit("start_time",e.time_second)},on_progress_bar_cut_end_time(e){this.$emit("end_time",e.time_second)},on_user_active(){this.show_dark_overlays=!0},on_user_inactive(){const e=this.player?.getChild(wD)?.isDisplayingMenu;if(e)return void this.player?.userActive(!0);!(this.player?.paused()??1)&&!e&&(this.show_dark_overlays=!1)},on_chromecast_starting(){this.send_playback_analytics_if_needed(!0),this.player?.currentTime();const e=this.player?.getChild("TextTrackDisplay");e?.addClass("casting");const t=this.player?.getChild("TopControlBar")?.getChild("PictureInPictureToggle");t?.hide(),this.casting=!0},on_chromecast_ended(){this.casting=!1,this.listen_for_chromecast_manifest_error=!0;const e=this.player?.getChild("TextTrackDisplay");if(e?.removeClass("casting"),document.pictureInPictureEnabled){const e=this.player?.getChild("TopControlBar")?.getChild("PictureInPictureToggle");e?.show()}null==this.player?this.last_recorded_time_ms=void 0:this.last_recorded_time_ms=1e3*Math.floor(this.player.currentTime()??0)},update_offset_if_needed(){this.use_video_offset&&(this.jump_to_time(0),this.player?.offset({start:this.start_time_s,end:this.end_time_s,restart_beginning:!1}))},send_playback_analytics_if_needed(e=!1){if(this.casting||null==this.player)return;let t=this.player.currentTime()??0;this.use_video_offset&&(t+=this.start_time_s);const n=1e3*Math.floor(t);null==this.last_recorded_time_ms?this.last_recorded_time_ms=Math.max(0,n):(e||n-this.last_recorded_time_ms>=1e4)&&this.send_playback_analytics_request(),clearTimeout(this.initial_play_error_timeout)},send_playback_analytics_request(){if(null==this.last_recorded_time_ms||null==this.player)return void this.player?.error(this.is_protected_content?xD:"We're sorry, there was a problem playing this content.\nPlease try reloading the video.");let e=this.player.currentTime()??0;this.use_video_offset&&(e+=this.start_time_s);const t=1e3*Math.floor(e);this.last_recorded_time_ms!==t&&(this.$emit("analytics_update",this.last_recorded_time_ms,t),this.last_recorded_time_ms=t)},on_player_error(e){Du.instance.captureException({message:"Player error",error_details:{error:e,player_context:this.player_sentry_context}});const t=this.player?.error();if(this.listen_for_chromecast_manifest_error&&t?.code===t?.MEDIA_ERR_SRC_NOT_SUPPORTED)return this.$emit("manifest_error"),this.$emit("clear_error"),void(this.listen_for_chromecast_manifest_error=!1);this.$emit("error",t)},leave_picture_in_picture(){this.$emit("leave_pip",this.$refs.videoplayer)},close_popover(){const e=this.popover_options?.relative_parent;this.popover_options=void 0,this.toggle_player_control_a11y_hidden(!1),setTimeout(()=>{e?.focus()},100)},toggle_player_control_a11y_hidden(e){Array.from(this.player?.el().children??[]).forEac
730h(t=>{t.setAttribute("aria-hidden",e.toString())})},on_player_close(){this.$emit("close")},on_initial_play(){this.$emit("initial_play"),this.player?.getChild("ControlBar").getChild("PlayToggle")?.one("focus",e=>{(null==e.relatedTarget||e.relatedTarget?.classList.contains("vjs-big-play-button"))&&this.player?.el()?.focus()}),this.initial_play_error_timeout=setTimeout(()=>{this.player?.paused()||Du.instance.captureException({message:"Play initialized but no play updates for 60 seconds",error_details:{playerContext:this.player_sentry_context,isLoading:this.is_loading,keySessionsWithoutStatusChange:this.key_sessions_without_status_change}})},6e4)}},components:{Popover:FD,SettingsMenu:$L,PlaybackRateMenu:RL,FadeTransition:LT}});const XD=CC(WD,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"video-player-container",style:e.size_css},[t("video",{ref:"videoplayer",staticClass:"video-js vjs-big-play-centered",attrs:{crossorigin:"anonymous","aria-label":"Video Player",tabindex:"-1"}}),null!=e.popover_options?t("popover",{ref:"popover",attrs:{options:e.popover_options,in_player:!0},on:{close:e.close_popover},scopedSlots:e._u([{key:"default",fn:function(n){return[t(e.popover_options.content_type,{tag:"component",attrs:{player:e.player},on:{reposition:n.reposition,close:e.close_popover}})]}}],null,!1,2823970475)}):e._e(),t("fade-transition",{ref:"dark_overlays"},[e.show_dark_overlays?t("div",{staticClass:"dark-overlays"},[t("div",{staticClass:"top-dark-overlay"}),t("div",{staticClass:"bottom-dark-overlay"})]):e._e()])],1)},[],0,0,"3390548a").exports;const YD=CC(Xn.extend({name:"VideoPlayerError",props:{error:{type:Object,required:!0},default_action:{type:String,required:!1,default:kD.Dismiss}},computed:{kanopy_error(){return"string"==typeof this.error?{title:this.error,message:"",action:this.default_action}:null!=this.error.title?this.error:{title:this.error.message,message:"",action:this.default_action}},title(){return this.kanopy_error.title},message(){return this.kanopy_error.message},action(){return this.kanopy_error.action.localized()}},methods:{on_action_clicked(){this.$emit("action",this.action)}},components:{CTAButton:IC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"video-player-error-container"},[t("h5",[e._v(e._s(e.title))]),""!==e.message?t("p",[e._v(e._s(e.message))]):e._e(),t("c-t-a-button",{staticClass:"error-action",attrs:{title:e.action},on:{click:e.on_action_clicked}})],1)},[],0,0,"71d67c73").exports;const ZD=CC(Xn.extend({name:"PlayNextOverlay",props:{title:{type:String,required:!1,default:""}},methods:{on_back_to_video_click(){this.$emit("close")},on_play_next_click(){this.$emit("play_next",!1),this.$emit("close")}},components:{CTAButton:IC,CTAButtonGray:GC,FontAwesomeIcon:BT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"play-next-overlay-container"},[t("h5",{staticClass:"title"},[e._v(e._s(e.title))]),t("div",{staticClass:"buttons-container"},[t("c-t-a-button-gray",{staticClass:"back-to-video-button",attrs:{title:"Back to Video".localized()},on:{click:e.on_back_to_video_click}}),t("c-t-a-button",{staticClass:"play-next-button",attrs:{title:"Play Next".localized()},on:{click:e.on_play_next_click}},[t("font-awesome-icon",{staticClass:"play-icon",attrs:{name:"play"}}),t("div",[e._v(e._s("Play Next".localized()))])],1)],1)])},[],0,0,"7eb8591b").exports;const JD=CC(Xn.extend({name:"TranscriptLine",props:{active:{type:Boolean,required:!0},transcript_info:{type:Object,required:!0}},computed:{timecode_formatted(){const e=Math.trunc(this.transcript_info.timecode_seconds);return Xx.from_seconds(e).to_string({fill_with_0:"always",separator:":",show_hours:"auto",show_minutes:"always",show_seconds:"always",add_space_separator:!1})},transcript_line(){return this.transcript_info.text.replace(/<br>/gi,"\n").replace(/<[^>]+>/gi," ").trim()},timecode_label(){return"Skip to {timecode}".localized({timecode:this.timecode_formatted})+". "+this.transcript_line}},methods:{on_click(){this.$emit("click",this.transcript_info.timecode_seconds)},on_arrow_key_up(e){"ArrowDown"!==e.key&&"ArrowUp"!==e.key||this.$emit("keyup",e)}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"transcript-line-container",class:{active:e.active}
730,attrs:{"aria-label":e.timecode_label},on:{click:e.on_click,keyup:e.on_arrow_key_up}},[t("div",{staticClass:"transcript-line-timecode"},[e._v(e._s(e.timecode_formatted))]),t("div",{staticClass:"transcript-line-content"},[e._v(e._s(e.transcript_line))])])},[],0,0,"12c41d2d").exports,QD=Xn.extend({name:"TranscriptContent",props:{transcript_content:{type:String,required:!0},current_time_second:{type:Number,required:!1,default:0}},watch:{current_transcript_line_index(){this.scroll_to_current_transcript_line()}},computed:{transcript_line_regex:()=>/<a.+begin="([0-9.]+)".+<span.+<\/span>((?:.|\s)*?)<\/a>/,all_transcript_lines(){const e=new RegExp(this.transcript_line_regex,"g");return this.transcript_content.match(e)??[]},all_transcript_line_info(){return this.all_transcript_lines.reduce((e,t)=>{const n=t.match(this.transcript_line_regex);if(null==n||3!==n.length||isNaN(Number(n[1])))return e;const r={timecode_seconds:Number(n[1]),text:n[2]};return e.concat([r])},[])},current_transcript_line_index(){for(let e=0;e<this.all_transcript_line_info.length;++e){if(this.all_transcript_line_info[e].timecode_seconds>this.current_time_second)return Math.max(0,e-1)}return this.all_transcript_line_info.length-1}},methods:{on_transcript_line_click(e){this.$emit("transcript_click",e)},scroll_to_current_transcript_line(){const e=document.getElementById(`transcript-line-${this.current_transcript_line_index}`);if(null!=e){const t=e.offsetTop,n=nx.html_element(this.$el)?.offsetTop??0,r=Math.max(0,t-n);this.$el.scrollTo({top:r,behavior:"smooth"})}},on_arrow_key_up(e){"ArrowDown"===e.key?this.on_down_arrow():"ArrowUp"===e.key&&this.on_up_arrow()},on_down_arrow(){document.activeElement!==JC.instance.getLastFocusableElement(this.$el)?JC.instance.getNextFocusableSibling(document.activeElement,this.$el)?.focus():JC.instance.getFirstFocusableElement(this.$el.parentElement)?.focus()},on_up_arrow(){document.activeElement!==JC.instance.getFirstFocusableElement(this.$el)?JC.instance.getPreviousFocusableSibling(document.activeElement,this.$el)?.focus():JC.instance.getFirstFocusableElement(this.$el.parentElement)?.focus()}},components:{TranscriptLine:JD}});const eR=CC(QD,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"transcript-content-container",attrs:{tabindex:"-1"}},e._l(e.all_transcript_line_info,function(n,r){return t("transcript-line",{key:r,staticClass:"transcript-line",attrs:{id:"transcript-line-"+r,transcript_info:n,active:r===e.current_transcript_line_index},on:{click:e.on_transcript_line_click,keyup:e.on_arrow_key_up}})}),1)},[],0,0,"29211992").exports;const tR=CC(Xn.extend({name:"TranscriptView",data:()=>({transcript_data:void 0}),props:{transcript_url:{type:String,required:!0},current_time_second:{type:Number,required:!1,default:0}},watch:{transcript_url(e,t){e!==t&&(this.transcript_data=void 0,this.fetch_transcript_content())}},created(){this.fetch_transcript_content()},methods:{async fetch_transcript_content(){try{const e=await Oc.get(this.transcript_url);this.transcript_data=e.data}catch(e){tm.notify("An error occurred".localized()).asFailure().push(),this.request_close()}},request_close(){this.$emit("close")},on_transcript_line_click(e){this.$emit("transcript_click",e)},trap_focus(e){JC.instance.trapFocus(e,this.$el)},arrow_down_from_close(){JC.instance.getFirstFocusableElement(this.$refs.transcript.$el)?.focus()}},components:{TranscriptContent:eR,CloseIconSvg:tT}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"transcript-view-container",on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.trap_focus.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.request_close.apply(null,arguments)}]}},[t("div",{staticClass:"title-close-button"},[t("h2",{staticClass:"heading"},[e._v(e._s("Transcript".localized()))]),t("button",{staticClass:"close",attrs:{"aria-label":"Close transcript".localized(),title:"Close".localized()},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.trap_focus.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.arrow_down_from_close.apply(null,arguments)}],click:e.request_close}},[t("CloseIconSvg",{attrs:{color:"#f3f3f3"}})],1)]),null!=e.transcript_data?t("transcript-content",{ref:"transcript",attrs:{transcript_content:e.transcript_data,current_time_second:e.current_time_second},on:{transcript_click:e.on_transcript_line_click}}
730):e._e()],1)},[],0,0,"af15c9e7").exports;var nR=(e=>(e.Closed="Closed",e.Open="Open",e.PiP="Picture-in-picture",e))(nR||{});const rR={set_player_visibility(e,t){e.player_visibility=t},set_media(e,t){e.media=t},clear_media(e){e.media=void 0},set_can_autoplay(e,t){e.can_autoplay=t},set_can_autoplay_next(e,t){e.can_autoplay_next=t},set_source_type(e,t){e.source_type=t},set_pip_back_to_tab_route(e,t){e.pip_back_to_tab_route=t}},iR={enter_picture_in_picture(e){e.commit("set_pip_back_to_tab_route",this.$router.currentRoute),e.commit("set_player_visibility","Picture-in-picture")},close_picture_in_picture(e){document.pictureInPictureElement&&(document.pictureInPictureElement.pause(),document.exitPictureInPicture()),e.commit("set_pip_back_to_tab_route",void 0)},update_player_settings(e,t){e.commit("set_can_autoplay",t.can_autoplay),e.commit("set_can_autoplay_next",t.can_autoplay_next),e.commit("set_source_type",t.source_type)},setup_media(e,t){e.commit("set_media",t)},open_player(e){e.commit("set_player_visibility","Open")},close_player(e){e.dispatch("close_picture_in_picture"),e.commit("set_player_visibility","Closed")},on_domain_change(e){e.dispatch("close_player")},on_kids_adult_switch(e){e.dispatch("close_player")},set_start_time(e,t){e.commit("set_media",{...e.state.media,start_time_s:t})}},sR={player_visibility:"Closed",media:void 0,can_autoplay:!0,can_autoplay_next:!1,source_type:Cf.Video,pip_back_to_tab_route:void 0},oR={namespaced:!0,state:()=>sR,getters:{player_visibility:e=>e.player_visibility,media:e=>e.media,can_autoplay:e=>e.can_autoplay,can_autoplay_next:e=>e.can_autoplay_next,source_type:e=>e.source_type,pip_back_to_tab_route:e=>e.pip_back_to_tab_route},mutations:rR,actions:iR},aR=Object.freeze(Object.defineProperty({__proto__:null,VideoPlayerVisibility:nR,default:oR,initial_state:sR},Symbol.toStringTag,{value:"Module"}));var lR=(e=>(e.Video="video",e.CustomPlaylists="customplaylists",e))(lR||{});const cR=CC(Xn.extend({name:"KanopyVideoPlayer",data:()=>({play_manifests:void 0,text_tracks:void 0,play_id:void 0,use_fallback:!1,show_title:!0,player_error:void 0,has_dismiss_play_next_overlay:!1,show_transcripts:!1,current_text_track_options:void 0,current_time_second:0,video_duration:void 0,last_milestone:0,transcript_button:void 0,show_product_metadata:!0,player:void 0}),props:{show_back_button:{type:Boolean,required:!1,default:!0},enable_rewind_and_ff:{type:Boolean,required:!1,default:!0},enable_playback_speed:{type:Boolean,required:!1,default:!0},enable_chromecast:{type:Boolean,required:!1,default:!0},enable_transcript:{type:Boolean,required:!1,default:!0},enable_picture_in_picture:{type:Boolean,required:!1,default:!0},enable_fullscreen:{type:Boolean,required:!1,default:!0},enable_cut_progress_bar:{type:Boolean,required:!1,default:!1},enable_settings_button:{type:Boolean,required:!1,default:!0},enable_metadata:{type:Boolean,required:!1,default:!0},enable_top_title:{type:Boolean,required:!1,default:!1},min_cut_time_second:{type:Number,required:!1,default:void 0},max_cut_time_second:{type:Number,required:!1,default:void 0},is_embedded:{type:Boolean,required:!1,default:!1}},watch:{video_id(){this.reset_player_data(),this.fetch_playback_info(this.video_id),this.current_time_second=0},show_transcripts(){this.update_player_size_for_current_state()},show_play_next_overlay(){this.show_play_next_overlay?this.player?.el().appendChild(this.$refs.play_next_overlay.$el):this.has_dismiss_play_next_overlay=!1},is_ready_to_play(e){e&&this.$nextTick(()=>this.update_player_size_for_current_state())}},mounted(){document.addEventListener("enterpictureinpicture",this.enter_picture_in_picture),window.addEventListener("popstate",this.close),this.fetch_playback_info(this.video_id)},destroyed(){document.removeEventListener("enterpictureinpicture",this.enter_picture_in_picture),window.removeEventListener("popstate",this.close),this.$nuxt.$off(Mu.A11yHideMainContent),this.$nuxt.$off(Mu.A11yShowMainContent)},computed:{video_id(){return this.$kuistore.state.video_player.media?.video_id},video_title(){return this.$kuistore.state.video_player.media?.video_title},parent_title(){return this.$kuistore.state.video_player.media?.parent_title},video_thumbnail(){return this.$kuistore.state.video_player.media?.video_thumbnail},next_video_title(){return this.$kuistore.state.video_player.media?.next_video_title},autoplay(){return this.$kuistore.state.video_player.can_autoplay},can_autoplay_next(){return this.$kuistore.state.video_player.can_autoplay_next},start_time_s(){return this.$kuistore.state.video_player.media?.start_time_s},end_time_s(){return this.$kuistore.state.video_player.media?.end_time_s},chromecast_metadata(){const e=this.$kapi.getToken();if(null!=this.play_id&&null!=e&&null!=this.video_id&&null!=this.video_title)return{title:this.video_title,videoid:this.video_id,videoplayid:this.play_id,token:e,deviceModel:"web",xversion:ju.XVersion}},mux_metadata(){return{title:(null!=this.parent_title?`${this.parent_title} - ${this.video_title}`:this.video_title)??"Untitled",parent_title:this.parent_title,cdn:`${this.current_play_manifest?.cdn} CDN + ${this.current_play_manifest?.storageService} Storage`}},is_ready_to_play(){return null!=this.stream_url},has_error(){return null!=this.player_error},default_error_action(){return this.is_embedded?kD.Refresh:kD.Dismiss},is_safari:()=>xa.isSafari(),is_protected_content(){return null!=this.play_manifests&&0!==this.play_manifests.length&&this.play_manifests[0].drmType!==hu},use_hls_stream_method(){return!this.is_protected_content||this.is_safari},has_hdcp_fallback(){return null!=this.fallback_play_manifest},media_type(){return this.use_hls_stream_method?zD.M3U8:zD.MPD},fallback_play_manifest(){return this.play_manifests?.find(e=>this.use_hls_stream_method?e.manifestType===cu:e.manifestType===du)},prefered_play_manifest(){return this.play_manifests?.find(e=>this.use_hls_stream_method?e.manifestType===lu:e.manifestType===uu)},current_play_manifest(){return this.use_fallback?this.fallback_play_manifest:this.prefered_play_manifest},license_server_configs(){switch(this.current_play_manifest?.drmType){case fu:case pu:const e={Authorization:`Bearer ${this.$kapi.getToken()}`,"x-Version":ju.XVersion};return["widevine","playready","fairplay"].reduce((t,n)=>({...t,[n]:{url:`${this.$kapi.getKAPIUrl()}/licenses/${n}/${this.current_play_manifest?.drmLicenseID}`,headers:e}}),{});case hu:case void 0:return}},stream_url(){return this.current_play_manifest?.url},caption_text_tracks(){return this.text_tracks?.filter(e=>
730null!=e.files.find(e=>e.type===Gc)).map(e=>({kind:"captions",language:e.language,label:e.label,src:e.files.find(e=>e.type===Gc)?.url}))},transcript_text_tracks(){return this.text_tracks?.filter(e=>null!=e.files.find(e=>e.type===Kc)).map(e=>({kind:"chapters",language:e.language,label:e.label,src:e.files.find(e=>e.type===Kc)?.url}))},has_transcript_tracks(){return(this.transcript_text_tracks?.length??0)>0},current_transcript_caption_url(){const e=this.transcript_text_tracks?.find(e=>{let t=!0;const n=this.current_text_track_options??UL.instance.getLastActiveTrackOptions();return n?.has_cc&&(t=UL.instance.isClosedCaptionTrack(e)),t&&e.language===n?.language})??this.transcript_text_tracks?.[0];return e?.src},caption_button_is_left(){return!this.enable_transcript},has_next_video(){return null!=this.next_video_title},show_play_next_overlay(){if(null==this.video_duration||!this.has_next_video)return!1;return this.video_duration-this.current_time_second<=15},enable_debug(){return this.$kuistore.getters["debug/get_value"]("video_player_debug_enabled")},is_com_user(){return this.$kuistore.getters["user/is_consumer_user"]},metadata_product(){return this.$kuistore.getters["video_player/media"]?.product_instance},player_sentry_context(){return{playId:this.play_id,videoId:this.video_id,drmType:this.current_play_manifest?.drmType,manifestType:this.current_play_manifest?.manifestType,useFallback:this.use_fallback}}},methods:{async fetch_playback_info(e){const t=this.$kuistore.getters["user/userId"],n=null==t?this.$kapi.getVisitorId():void 0,r=this.$kuistore.getters["site/domain_id"];if(null==r||null==e)return;const i={videoId:e,userId:t,visitorId:n,domainId:r};try{const e=await this.$kapi.instance().playControllerStart({createPlayRequestDto:i,xVersion:ju.XVersion});this.debug_logger(`Play created with KAPI: ${e.data.playId}`),this.play_manifests=e.data.manifests,this.text_tracks=e.data.captions,this.play_id=e.data.playId,this.use_fallback=null==this.prefered_play_manifest,this.debug_logger("Streaming source information"),this.debug_logger(`Source: ${JSON.stringify(this.current_play_manifest,null,2)}${this.use_fallback?" (using fallback manifest)":""}`),this.debug_logger(`Video Type: ${this.media_type}`)}catch(s){const e=ju.unwrapKapiError(s);this.player_error={title:e.userMessaging?.title??"Sorry".localized(),message:e.userMessaging?.message??"An error occurred".localized(),action:this.default_error_action},e.errorSubcode===su.InsufficientTickets&&(this.player_error.action=kD.UnlimitedViewing),Du.instance.captureException({message:"Fetching playback info failed",error_details:{kapi_error:e,player_context:this.player_sentry_context}})}},load_hdcp_fallback(){this.use_fallback?(this.debug_logger("The stream fallback failed and no other fallback can be used"),Du.instance.captureException({message:"The stream fallback failed and no other fallback can be used",error_details:{player_context:this.player_sentry_context}}),this.player_error={title:"Sorry".localized(),message:"An error occurred".localized(),action:this.default_error_action}):this.has_hdcp_fallback?(this.debug_logger("HDCP stream failed, switching to drm fallback"),this.use_fallback=!0,Du.instance.captureException({message:"HDCP stream failed, switching to drm fallback",error_details:{player_context:this.player_sentry_context}})):(this.debug_logger("HDCP stream failed and no fallback is available"),Du.instance.captureException({message:"HDCP stream failed and no fallback is available",error_details:{player_context:this.player_sentry_context}}),this.player_error={title:"HDCP Error".localized(),message:"Devices need to support High-bandwidth Digital Content Protection (HDCP) to play this content. Visit Kanopy Help for help with this error.".localized(),action:kD.KanopyHelp_HDCP})},async send_play_progress(e,t){if(null==this.play_id)return this.play_manifests=void 0,void Du.instance.captureException({message:"Play id is undefined when sending play progress",error_details:{player_context:this.player_sentry_context}});const n={fromMs:e,toMs:t};try{const e=await this.$kapi.instance().playControllerWatch({playId:this.play_id,updatePlayRequestDto:n,xVersion:ju.XVersion});null!=e.data.updatedTicketsAvailable&&this.$kuistore.dispatch("user/update_tickets_available",e.data.updatedTicketsAvailable)}catch(r){this.play_manifests=void 0;const e=ju.unwrapKapiError(r);
730this.player_error={title:e.userMessaging?.title??"Sorry".localized(),message:e.userMessaging?.message??"An error occurred".localized(),action:this.default_error_action},Du.instance.captureException({message:"Play progress failure",error_details:{kapi_error:e,player_context:this.player_sentry_context}})}},on_time_update(e){this.current_time_second=e,this.percent_watched_analytics()},on_video_duration_change(e){this.video_duration=e},on_transcript_clicked(e){this.$refs.kapi_video_player.jump_to_time(e)},on_transcript_toggle(e){this.show_transcripts=!this.show_transcripts,this.$nextTick(()=>{null!=this.$refs.transcript?(this.transcript_button=e?.button,JC.instance.getFirstFocusableElement(this.$refs.transcript.$el)?.focus()):this.transcript_button?.focus()})},on_close_transcript(){this.show_transcripts=!1,this.transcript_button?.dispatchEvent(new Event(pD)),this.transcript_button?.focus(),this.$nextTick(()=>this.$refs.kapi_video_player.$refs.popover?.position())},on_start_time_selected(e){this.$emit("start_time_selected",e)},on_end_time_selected(e){this.$emit("end_time_selected",e)},on_text_track_change(){this.current_text_track_options=UL.instance.trackOptions},show_controls(){this.show_title=!0},hide_controls(){this.show_title=!1},on_playback_started(){this.$emit("playback_started"),this.$emit("send_analytics",AT.Play)},on_playback_ended(){this.has_next_video&&this.can_autoplay_next?this.play_next(!0):this.close_and_navigate_away()},on_player_error(e){"number"==typeof e&&(e=`Error code: ${e}`),xa.isChromebookDevice()&&this.is_embedded&&this.is_media_encryption_error(e)?this.player_error={title:"DRM Error".localized(),message:"Your device doesn't support playback of embedded videos with DRM-protection. You can watch this title on the Kanopy website.".localized(),action:kD.VisitWebsite}:this.player_error=e},on_player_error_action_clicked(e){switch(e){case kD.Dismiss:this.close_and_navigate_away();break;case kD.Refresh:window.location.reload();break;case kD.UnlimitedViewing:const e="/category/51201";if(this.is_embedded){const t=Aa.from_path_to_absolute_url(e,this.$route);window.open(t,"_blank")}else Ia.navigate(this.$router,e,!0,!0);this.close();break;case kD.VisitWebsite:let t="video",n=this.video_id?.toString();this.$kuistore.getters["video_player/source_type"]===Cf.CustomPlaylists&&(t="mylists/customplaylists",n=`${this.$kuistore.getters["mylists/custom_playlist_current_playlist"]?.id}/${this.$kuistore.state.mylists.custom_playlist_current_clip_id}`);const r=Aa.from_path_to_absolute_url(`/${t}/${n}`,this.$route);window.open(r,"_blank");break;case kD.KanopyHelp_HDCP:window.open("https://help.kanopy.com/en-us
730/4264.htm","_blank")}},on_clear_player_error(){this.player_error=void 0},on_close_button_clicked(){this.close_and_navigate_away()},close_and_navigate_away(){this.close(),this.$nuxt.$emit(Mu.GlobalPlayerNavVideoPage)},close(){this.is_embedded||this.$kuistore.state.video_player.player_visibility!==nR.PiP&&this.$kuistore.dispatch("video_player/close_player")},update_player_size_for_current_state(){let e=this.$el.clientWidth;const t=this.$el.clientHeight;if(this.show_transcripts){e-=415}const n=this.$refs.kapi_video_player;n?.change_size(e,t)},dismiss_play_next_overlay(){this.has_dismiss_play_next_overlay=!0},play_next(e){this.$nuxt.$emit(Mu.GlobalPlayerPlayNext,e)},debug_logger(e){this.enable_debug},percent_watched_analytics(){if(null==this.video_duration||0===this.video_duration)return;const e=Math.round(100*this.current_time_second/this.video_duration),t=[10,25,50,75,90,100],n=t.indexOf(e);if(n>-1&&t[n]>this.last_milestone){this.last_milestone=t[n];const e={percentage:this.last_milestone};this.$emit("send_analytics",AT.PercentWatched,e)}},enter_picture_in_picture(){this.$kuistore.dispatch("video_player/enter_picture_in_picture"),this.$nuxt.$emit(Mu.GlobalPlayerNavVideoPage)},on_leave_picture_in_picture(e){const t=!e.paused;xC.inNextEventTick(()=>{e.paused?t&&(this.$kuistore.dispatch("video_player/close_player"),this.$nuxt.$emit(Mu.GlobalPlayerNavVideoPage)):null!=this.$kuistore.state.video_player.pip_back_to_tab_route&&(Ia.navigate(this.$router,Ia.unlocalizedPath(this.$kuistore.state.video_player.pip_back_to_tab_route),!1),this.$kuistore.dispatch("video_player/open_player"))})},reset_player_data(){this.play_manifests=void 0,this.text_tracks=void 0,this.play_id=void 0,this.use_fallback=!1,this.show_transcripts=!1,this.current_text_track_options=void 0,this.current_time_second=0,this.video_duration=void 0,this.last_milestone=0,this.transcript_button=void 0},on_initial_play(){this.show_product_metadata=!1},is_media_encryption_error:e=>("string"==typeof e?e:e.message).includes("The media is encrypted and we do not have the keys to decrypt it"),on_player_set(e){this.player=e},async on_player_manifest_error(){if(null==this.play_id)return void console.error("[Manifest error] Play id was undefined");const e=await Promise.all([this.$kapi.instance().playControllerGetVideoSources({playId:this.play_id,xVersion:ju.XVersion}),this.$kuistore.dispatch("mylists/fetch_continue_watching")]);this.play_manifests=e[0].data.manifests,this.$kuistore.dispatch("video_player/set_start_time",function(e,t){const n=null!=e?Pf(t.state.mylists.continuewatching_items??[],e)??0:0;return Math.floor(n/1e3)}(this.metadata_product?.videoId,this.$kuistore))}},components:{VideoPlayer:XD,VideoPlayerError:YD,PlayNextOverlay:ZD,TranscriptView:tR,FadeTransition:LT,PreviewBannerStickingView:uS,VideoPlayerBackIconSvg:ML,VideoPlayerMetadata:Yx}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"windowresize",rawName:"v-windowresize",value:e.update_player_size_for_current_state,expression:"update_player_size_for_current_state"}],staticClass:"kapi-video-player-container"},[t("div",{ref:"player_parts_container"},[e.is_ready_to_play?t("video-player",{key:e.video_thumbnail,ref:"kapi_video_player",staticClass:"kapi-video-player",class:{"caption-button-left":e.caption_button_is_left,"play-next-visible":e.show_play_next_overlay&&!e.has_dismiss_play_next_overlay},attrs:{src:e.stream_url,type:e.media_type,thumbnail:e.video_thumbnail,autoplay:e.autoplay||e.use_fallback,start_time_s:e.start_time_s,end_time_s:e.end_time_s,enable_chromecast:e.enable_chromecast,chromecast_metadata:e.chromecast_metadata,enable_rewind_and_ff:e.enable_rewind_and_ff,enable_playback_speed:e.enable_playback_speed,enable_transcript:e.enable_transcript,enable_picture_in_picture:e.enable_picture_in_picture,enable_fullscreen:e.enable_fullscreen,enable_cut_progress_bar:e.enable_cut_progress_bar,enable_settings_button:e.enable_settings_button,enable_metadata:e.enable_metadata,min_cut_time_second:e.min_cut_time_second,max_cut_time_second:e.max_cut_time_second,mux_metadata:e.mux_metadata,has_transcript_tracks:e.has_transcript_tracks,text_tracks:e.caption_text_tracks,is_protected_content:e.is_protected_content,license_server_configs:e.license_server_configs,show_back_button:e.show_back_button,is_embedded:e.is_embedded,player_sentry_context:e.player_sentry_context}
730,on:{hdcp_play_failed:e.load_hdcp_fallback,clear_error:e.on_clear_player_error,time_update:e.on_time_update,duration_change:e.on_video_duration_change,analytics_update:e.send_play_progress,transcript_toggle:e.on_transcript_toggle,start_time:e.on_start_time_selected,end_time:e.on_end_time_selected,text_track_change:e.on_text_track_change,show_controls:e.show_controls,hide_controls:e.hide_controls,playback_started:e.on_playback_started,ended:e.on_playback_ended,error:e.on_player_error,leave_pip:e.on_leave_picture_in_picture,close:e.on_close_button_clicked,initial_play:e.on_initial_play,player_set:e.on_player_set,manifest_error:e.on_player_manifest_error}}):e._e(),null!=e.metadata_product&&e.show_product_metadata?t("video-player-metadata",{attrs:{product:e.metadata_product}}):e._e(),e.is_com_user?e._e():t("preview-banner-sticking-view",{staticClass:"preview"}),t("fade-transition",[e.enable_top_title&&e.show_title?t("h1",{staticClass:"title"},[e._v(e._s(e.video_title))]):e._e()]),t("fade-transition",{ref:"play_next_overlay"},[e.show_play_next_overlay&&!e.has_dismiss_play_next_overlay?t("play-next-overlay",{staticClass:"play-next-overlay",class:{"transcripts-visible":e.show_transcripts&&null!=e.current_transcript_caption_url},attrs:{title:e.next_video_title},on:{close:e.dismiss_play_next_overlay,play_next:e.play_next}}):e._e()],1),e.show_transcripts&&null!=e.current_transcript_caption_url?t("transcript-view",{ref:"transcript",staticClass:"transcript-view",attrs:{transcript_url:e.current_transcript_caption_url,current_time_second:e.current_time_second},on:{transcript_click:e.on_transcript_clicked,close:e.on_close_transcript}}):e._e()],1),e.has_error?t("div",[t("video-player-error",{staticClass:"video-player-error",attrs:{error:e.player_error,default_action:e.default_error_action},on:{action:e.on_player_error_action_clicked}}),e.show_back_button?t("div",{staticClass:"back-title-row"},[t("button",{staticClass:"back-button",attrs:{"aria-label":"Back".localized()},on:{click:e.on_close_button_clicked}},[t("VideoPlayerBackIconSvg",{attrs:{height:28,width:28}})],1)]):e._e()],1):e._e()])},[],0,0,"63af960c").exports,uR=Xn.extend({name:"ModalCarousel",data:()=>({item_count:0,nav_index:1}),props:{modal_id:{type:String,required:!0}},mounted(){this.item_count=this.$refs.content_rail?.childElementCount,this.$refs.content_rail.firstChild.setAttribute("aria-hidden","false"),setTimeout(()=>this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:"Slide {index} of {total}".localized({index:this.nav_index,total:this.item_count})}),2e3)},computed:{hide_back_button(){return this.nav_index<=1},show_forward_button(){return this.nav_index!==this.item_count},back_button_label(){return"Show slide {index} of {total}".localized({index:this.nav_index-1,total:this.item_count})},forward_button_label(){return"Show slide {index} of {total}".localized({index:this.nav_index+1,total:this.item_count})}},methods:{back(){if(this.nav_index<=1)return;const e=this.$refs.content_rail?.children[this.nav_index-1];e.setAttribute("aria-hidden","true"),this.nav_index--,this.shift_rail()},forward(){if(this.nav_index>=this.item_count)return;const e=this.$refs.content_rail?.children[this.nav_index-1];e.setAttribute("aria-hidden","true"),this.nav_index++,this.shift_rail()},shift_rail(){const e=this.$refs.content_rail?.children[this.nav_index-1];e.setAttribute("aria-hidden","false");const t=getComputedStyle(e),n=-(this.$el.offsetWidth+parseFloat(t.marginLeft)+parseFloat(t.marginRight))*(this.nav_index-1);this.$refs.content_rail.style.transform=`translateX(${n}px)`,this.$nuxt.$emit(Mu.LiveRegionUpdate,{text:"Slide {index} of {total}".localized({index:this.nav_index,total:this.item_count})});const r=document.getElementById(this.modal_id);JC.instance.getFirstFocusableElement(r)?.focus()},on_done_click(){this.$emit("close")}}}),dR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M7.22459%205.23486L2.53564%2010.3927L7.22458%2015.5505'%20stroke='%23F9F9F9'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.535
73057%2010.3928L17.0713%2010.3928'%20stroke='%23F9F9F9'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";const hR=CC(uR,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{ref:"carousel",staticClass:"carousel",attrs:{tabindex:"-1","aria-roledescription":e.item_count>1?"Carousel".localized():null,role:"group"}},[t("div",{staticClass:"content"},[t("div",{ref:"content_rail",staticClass:"rail"},[e._t("default")],2)]),e.item_count>1?t("div",{staticClass:"navigation",attrs:{role:"group","aria-label":"Carousel controls".localized()}},[t("button",{staticClass:"nav-button",class:{hidden:e.hide_back_button},attrs:{disabled:e.hide_back_button,"aria-disabled":e.hide_back_button,"aria-hidden":e.hide_back_button,"aria-label":e.back_button_label},on:{click:e.back}},[t("img",{attrs:{src:dR,alt:""}})]),t("div",e._l(e.item_count,function(n){return t("div",{key:n,staticClass:"dot-container"},[t("div",{staticClass:"dot",class:{active:n===e.nav_index}})])}),0),e.show_forward_button?t("button",{staticClass:"nav-button",attrs:{"aria-label":e.forward_button_label},on:{click:e.forward}},[t("img",{staticClass:"flip",attrs:{src:dR,alt:""}})]):t("button",{staticClass:"done-button",attrs:{"aria-label":"Done".localized()},on:{click:e.on_done_click}},[e._v(" "+e._s("Done".localized())+" ")])]):e._e()])},[],0,0,"8136c3c9").exports,pR=""+new URL("bg-ticket-posters-C7dh0610.png",import.meta.url).href,fR=""+new URL("ticket-animation-intro-Jze4YuVp.svg",import.meta.url).href,mR=""+new URL("puzzle-face-DFLJjeN-.svg",import.meta.url).href;const _R=CC(Xn.extend({name:"NewUserIntroductionModal",data:()=>({show:!1,modal_id:"new-user-modal"}),watch:{$route(){this.determine_show_modal()},is_in_kids_mode(){this.determine_show_modal()}},created(){this.determine_show_modal()},computed:{carousel_slides(){const e=[];return this.$kuistore.getters["site/domain_uses_tickets"]?(e.push(this.carousel_slide_objects.tickets,this.carousel_slide_objects.continue_watching),this.$kuistore.state.site.domain?.hasKids&&e.push(this.carousel_slide_objects.kanopy_kids)):this.$kuistore.state.site.domain?.hasNonKidsSVOD&&(e.push(this.carousel_slide_objects.unlimited_streaming),this.$kuistore.state.site.domain.hasKids&&e.push(this.carousel_slide_objects.kanopy_kids_unlimited_streaming)),e},carousel_slide_objects(){return{tickets:{image:fR,desc:"You'll get {ticket_count} tickets each month to watch films from {vp}.".localized({ticket_count:this.bold_string(this.$kuistore.getters["user/current_membership"]?.maxTicketsPerMonth??0),vp:this.bold_string(this.$kuistore.getters["site/institution_name"])}),alt:"Illustration of Kanopy ticket icon.".localized(),subheading:"Welcome to".localized()},unlimited_streaming:{image:"data:image/svg+xml,%3csvg%20width='708'%20height='334'%20viewBox='0%200%20708%20334'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M311.278%20265.773C314.039%20265.773%20316.278%20268.012%20316.278%20270.773V287.672H391.57C394.331%20287.672%20396.57%20289.911%20396.57%20292.672V299.971C396.569%20302.732%20394.331%20304.971%20391.57%20304.971C388.809%20304.97%20386.57%20302.732%20386.57%20299.971V297.672H264.555C261.794%20297.672%20259.555%20295.433%20259.555%20292.672C259.555%20289.91%20261.794%20287.672%20264.555%20287.672H306.278V270.773C306.278%20268.012%20308.516%20265.774%20311.278%20265.773Z'%20fill='%23B5B5B5'/%3e%3crect%20x='85.0916'%20y='8.12085'%20width='459.763'%20height='262.653'%20fill='url(%23paint0_linear_2012_3497)'/%3e%3cpath%20d='M544.855%20140.113V8H85V156M439.398%20270.774H264.555'%20stroke='%23B5B5B5'%20stroke-width='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M443.779%20143.928H682.309V289.296H443.779V143.928Z'%20fill='url(%23paint1_linear_2012_3497)'/%3e%3cpath%20d='M6.48453%20161.57H235.278V322.371H6.48453V161.57Z'%20fill='url(%23paint2_linear_2012_3497)'/%3e%3cpath%20d='M190.332%20209.347H260.868V328.844H190.332V209.347Z'%20fill='url(%23paint3_linear_2012_3497)'/%3e%3cg%20clip-path='url(%23clip0_2012_3497)'%3e%3cpath%20d='M418%20310.146C418%20308.53%20419.31%20307.219%20420.927%20307.219H704.829C706.446%20307.219%20707.756%20308.53%20707.756%20310.
730146C707.756%20313.379%20705.135%20316%20701.902%20316H423.854C420.621%20316%20418%20313.379%20418%20310.146Z'%20fill='%23B5B5B5'/%3e%3crect%20x='444.237'%20y='144.676'%20width='237.282'%20height='145.087'%20stroke='%23B5B5B5'%20stroke-width='8.57143'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20d='M237.763%20206.115V167.647C237.763%20163.326%20234.26%20159.823%20229.939%20159.823H11.8235C7.50271%20159.823%204%20163.326%204%20167.647V316.294C4%20320.615%207.50271%20324.118%2011.8235%20324.118H187.103'%20stroke='%23B5B5B5'%20stroke-width='7.82353'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3crect%20x='189.206'%20y='208.206'%20width='72.5882'%20height='122.588'%20rx='8.38235'%20stroke='%23B5B5B5'%20stroke-width='5.58824'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2012_3497'%20x1='350.056'%20y1='26.863'%20x2='277.541'%20y2='252.317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231A1A1A'/%3e%3cstop%20offset='1'%20stop-color='%23202020'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2012_3497'%20x1='581.245'%20y1='154.301'%20x2='538.978'%20y2='277.487'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231A1A1A'/%3e%3cstop%20offset='1'%20stop-color='%23202020'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2012_3497'%20x1='138.339'%20y1='173.044'%20x2='86.2308'%20y2='304.731'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231A1A1A'/%3e%3cstop%20offset='1'%20stop-color='%23202020'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2012_3497'%20x1='230.982'%20y1='217.874'%20x2='174.453'%20y2='277.141'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231A1A1A'/%3e%3cstop%20offset='1'%20stop-color='%23202020'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_2012_3497'%3e%3crect%20width='289.756'%20height='180'%20fill='white'%20transform='translate(418%20136)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",desc:"{vp} generously allows for unlimited streaming. Stream any title on Kanopy on any device, with no monthly limits.".localized({vp:this.bold_string(this.$kuistore.getters["site/institution_name"])}),alt:'A grouping of various sized screens, each showing the Kanopy "K" logo'.localized(),subheading:"Welcome to".localized()},continue_watching:{image:"data:image/svg+xml,%3csvg%20id='ani-continue-watching'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20260%20144'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%3e%3cstyle%3e%3c![CDATA[%20%23ani-continue-watching-u-container-glow_to%20{animation:%20ani-continue-watching-u-container-glow_to__to%201000ms%20linear%20infinite%20normal%20forwards}@keyframes%20ani-continue-watching-u-container-glow_to__to%20{%200%25%20{transform:%20translate(579.249984px,319.666985px)}%2050%25%20{transform:%20translate(579.249984px,319.666985px)}%20100%25%20{transform:%20translate(579.249984px,319.666985px)}}%20%23ani-continue-watching-u-container-glow_ts%20{animation:%20ani-continue-watching-u-container-glow_ts__ts%201000ms%20linear%20infinite%20normal%20forwards}@keyframes%20ani-continue-watching-u-container-glow_ts__ts%20{%200%25%20{transform:%20scale(0.632727,0.520956)}%2050%25%20{transform:%20scale(0.976266,0.976266)}%20100%25%20{transform:%20scale(0.632727,0.520957)}}%20%23ani-continue-watching-u-container-glow%20{animation:%20ani-continue-watching-u-container-glow_c_o%201000ms%20linear%20infinite%20normal%20forwards}@keyframes%20ani-continue-watching-u-container-glow_c_o%20{%200%25%20{opacity:%201}%2050%25%20{opacity:%200}%2051%25%20{opacity:%200}%2099%25%20{opacity:%200}%20100%25%20{opacity:%201}}%20]]%3e%3c/style%3e%3cg%20id='ani-continue-watching-u-large-card'%20transform='matrix(.464931%200%200%200.464931-49.779941-126.946902)'%3e%3crect%20id='ani-continue-watching-s-rect1'%20width='533'%20height='300'%20rx='8'%20ry='8'%20transform='translate(120%20278)'%20fill='%23202020'%20stroke='%233a3a3a'/%3e%3crect%20id='ani-continue-watching-s-rect2'%20width='177.082993'%20height='8.33333'%20rx='4.16667'%20ry='4.16667'%20transform='translate(145%20553)'%20fill='%23de3f00'/%3e%3cg%20id='ani-continue-watching-u-expiration'%3e%3cg%20id='ani-continue-watching-u-container-glow_to'%20transform='translate(579.249984,319.666985)'%3e%3cg%20id='ani-continue-watching-u-container-glow_ts'%20transform='scale(0.632727,0.520956)'%3e%3crect%20id='ani-continue-watching-u-container-glow'%20width='173.8506'
730%20height='85.488981'%20rx='19'%20ry='19'%20transform='translate(-86.925292,-42.679965)'%20fill='%23fff'%20stroke-width='4'/%3e%3c/g%3e%3c/g%3e%3crect%20id='ani-continue-watching-s-rect3'%20width='60'%20height='24'%20rx='4'%20ry='4'%20transform='matrix(1.826391%200%200%201.826388%20524.666502%20297.432572)'%20fill='%23f9f9f9'/%3e%3cg%20id='ani-continue-watching-u-clock'%20transform='translate(-5%200)'%3e%3cpath%20id='ani-continue-watching-s-path1'%20d='M557.583,333.556c7.671,0,13.889-6.219,13.889-13.889c0-7.671-6.218-13.889-13.889-13.889-7.67,0-13.888,6.218-13.888,13.889c0,7.67,6.218,13.889,13.888,13.889Z'%20fill='none'%20stroke='%23000'%20stroke-width='2.08333'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='ani-continue-watching-s-path2'%20d='M557.583,311.333v8.334l4.167,4.166'%20fill='none'%20stroke='%23000'%20stroke-width='2.08333'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20id='ani-continue-watching-s-path3'%20d='M215.572,24.5v-1.56l3.289-2.548c1.066-.845,1.404-1.43,1.404-2.054c0-.741-.624-1.183-1.352-1.183-.871,0-1.534.442-2.184,1.183l-1.222-1.183c.884-1.118,2.015-1.742,3.458-1.742c1.898,0,3.276,1.17,3.276,2.847c0,1.196-.52,2.119-2.08,3.25l-1.625,1.261h3.783v1.729h-6.747Zm8.857,0l3.549-7.202h-4.42v-1.729h6.643v1.443L226.6,24.5h-2.171Zm11.083-6.877c1.456,0,2.496,1.079,2.496,2.6v4.277h-1.833v-3.874c0-.832-.52-1.404-1.274-1.404-.793,0-1.404.572-1.404,1.3v3.978h-1.898v-9.087h1.898v3.185c.416-.585,1.157-.975,2.015-.975Z'%20transform='matrix(2.144482%200%200%202.144482%20112.57835%20276.12924)'/%3e%3c/g%3e%3cg%20id='ani-continue-watching-s-g1'%20transform='matrix(1.892026%200%200%201.892031%20154.957176%20264.153318)'%20opacity='0.48'%3e%3cpath%20id='ani-continue-watching-s-path4'%20d='M70.6696,61.7753c2.7694-4.1683,8.8914-4.1683,11.6608,0L132.062,136.626c3.091,4.653-.244,10.874-5.83,10.874h-99.4638c-5.5859,0-8.9216-6.221-5.8304-10.874L70.6696,61.7753Z'%20opacity='0.32'%20fill='%23f9f9f9'/%3e%3cpath%20id='ani-continue-watching-s-path5'%20d='M110.679,41.7152c2.771-4.1494,8.871-4.1495,11.642,0l63.55,95.1468c3.107,4.652-.227,10.888-5.821,10.888h-127.1001c-5.5936,0-8.9277-6.236-5.8209-10.888l63.55-95.1468Z'%20opacity='0.18'%20fill='%23f9f9f9'/%3e%3ccircle%20id='ani-continue-watching-s-circle1'%20r='20'%20transform='translate(205%2042)'%20opacity='0.4'%20fill='%23f9f9f9'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",desc:"Films appear on your {continue_watching} list with the remaining time in your access period.".localized({continue_watching:this.bold_string("Continue Watching".localized())}),alt:"Title card with a badge showing 27 hours remaining in the access period.".localized(),heading:"Continue watching".localized()},kanopy_kids:{image:mR,desc:"{kanopy_kids}, so you can watch as many kid-friendly titles as you'd like.".localized({kanopy_kids:this.bold_string("Kanopy Kids titles don't use tickets".localized())}),alt:"Illustration of Kanopy Kids icon.".localized(),heading:"Kanopy Kids".localized()},kanopy_kids_unlimited_streaming:{image:mR,desc:"{kanopy_kids} You can watch as many kid-friendly titles as you'd like every month.".localized({kanopy_kids:this.bold_string("Kanopy Kids titles allow unlimited streaming.".localized())}),alt:"Illustration of Kanopy Kids icon.".localized(),heading:"Kanopy Kids".localized()}}},background_poster_img:()=>pR},methods:{bold_string:e=>`<span style="font-weight:700;">${e}</span>`,on_close(){this.$kuistore.commit("site/set_new_user_intro_modal",!1),this.show=!1},determine_show_modal(){this.$kuistore.state.site.show_new_user_intro_modal&&this.$kuistore.getters["user/has_user_account_logged_in"]&&!this.$kuistore.getters["site/is_in_kids_mode"]&&!this.$route.fullPath.includes("watch")&&this.carousel_slides.length>0?this.show=!0:this.show=!1}},components:{KanopyModal:eT,ModalCarousel:hR,KanopyLogo:RC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,e.show?t("kanopy-modal",{staticClass:"intro-modal",attrs:{id:e.modal_id,title:"",primary_action_title:"Start watching now".localized(),use_updated_border_and_button_style:!0,background_image:e.background_poster_img,uppercase_cta:!0},on:{close:e.on_close,primary_action:e.on_close}},[t("div",{staticClass:"content"},[t("modal-carousel",{ref:"carousel",attrs:{modal_id:e.modal_id,"aria-label":"Welcome to Kanopy".localized()},on:{close:e.on_close}},e._l(e.carousel_slides,function(n,r){return t("div",{key:r,staticClass:"slide",attrs:{"aria-hidden":"true",role:"group","aria-roledescription":"Slide".localized(),"data-clarity-mask":"true"}},[t("div",{staticClass:"intro"},[e._v(e._s(n.subheading))]),null!=n.heading?t("h1",{staticClass:"header"},[e._v(e._s(n.heading))]):t("h1",{staticClass:"header",attrs:{"aria-label":"Kanopy"}},[t("kanopy-logo",{staticClass:"logo"})],1),t("img",{staticClass:"slide-image",attrs:{src:n.image,alt:n.alt}}),t("div",{staticClass:"slide-desc",domProps:{innerHTML:e._s(n.desc)}})])}
730),0)],1)]):e._e()},[],0,0,"bbc4e7fa").exports;const gR=CC(Xn.extend({name:"SkipLinks",computed:{focus_ids(){return[{focus_id:XC.MainContent,text:"Skip to main content".localized()}].concat(this.$kuistore.state.site.skip_links)}},methods:{focus(e,t){t.preventDefault();const n=document.getElementById(e);null!==n&&(xa.isIOSDevice()?this.$nuxt.$nextTick(()=>JC.instance.getFirstFocusableElement(n)?.focus()):n.focus())}}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"skip-links"},e._l(e.focus_ids,function(n,r){return t("a",{key:r,staticClass:"link",attrs:{href:`#${n.focus_id}`},on:{click:function(t){return e.focus(n.focus_id,t)}}},[e._v(" "+e._s(n.text)+" ")])}),0)},[],0,0,null).exports;const yR=CC(Xn.extend({created(){this.$nuxt.$on(Mu.A11yHideMainContent,(e=!1)=>{this.$refs.layout_container.removeAttribute("tabIndex"),this.$refs.layout_container.setAttribute("aria-hidden","true"),e&&this.$refs.layout_container.setAttribute("inert","")}),this.$nuxt.$on(Mu.A11yShowMainContent,()=>{this.$refs.layout_container.setAttribute("tabIndex","-1"),this.$refs.layout_container.removeAttribute("aria-hidden"),this.$refs.layout_container.removeAttribute("inert")})},beforeDestroy(){this.$nuxt.$off(Mu.A11yHideMainContent),this.$nuxt.$off(Mu.A11yShowMainContent)},computed:{is_player_in_pip(){return this.$kuistore.state.video_player.player_visibility===nR.PiP},is_player_visible(){return this.$kuistore.state.video_player.player_visibility===nR.Open},layout_id:()=>XC.Page,main_content_id:()=>XC.MainContent,show_player(){return this.$kuistore.state.video_player.player_visibility!==nR.Closed}},methods:{send_analytics(e,t={}){const n={...t,title_id:this.$kuistore.state.video_player.media?.video_id,title_name:this.$kuistore.state.video_player.media?.video_title};gf.sendEvent(this.$nuxt.context,e,n)}},components:{MobileSmartBanner:uT,KanopyHeaderAndBanners:dS,KanopyFooter:XS,GlobalViews:Vx,NotificationOverlay:Kx,KanopyVideoPlayer:cR,FadeTransition:LT,NewUserIntroductionModal:_R,SkipLinks:gR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.show_player?e._e():t("skip-links"),t("div",{ref:"layout_container",staticClass:"layout-container",attrs:{id:e.layout_id,tabindex:"-1"}},[e.is_player_visible?e._e():t("mobile-smart-banner"),t("fade-transition",[e.is_player_visible?e._e():t("kanopy-header-and-banners")],1),t("fade-transition",[e.show_player?t("kanopy-video-player",{staticClass:"fullscreen-player",class:e.is_player_in_pip?"hide":"",attrs:{"aria-hidden":e.is_player_in_pip},on:{send_analytics:e.send_analytics}}):e._e()],1),t("nuxt",{staticClass:"page-content",attrs:{id:e.main_content_id,role:"main",tabindex:"-1"}}),t("notification-overlay"),t("fade-transition",[e.is_player_visible?e._e():t("kanopy-footer")],1)],1),t("global-views"),t("new-user-introduction-modal")],1)},[],0,0,"1d1b31ee").exports;const vR=CC(Xn.extend({components:{MobileSmartBanner:uT,NotificationOverlay:Kx,GlobalViews:Vx}}),function(){var e=this._self._c;return this._self._setupProxy,e("div",[e("mobile-smart-banner"),e("nuxt"),e("global-views"),e("notification-overlay")],1)},[],0,0,"2ea1bad4").exports;const bR=CC(Xn.extend({components:{MobileSmartBanner:uT,KanopyFooter:XS,NotificationOverlay:Kx,GlobalViews:Vx}}),function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"layout-container"},[e("mobile-smart-banner"),e("nuxt",{staticClass:"page-content"}),e("global-views"),e("kanopy-footer"),e("notification-overlay")],1)},[],0,0,"4d6f4fdc").exports;const wR=CC(Xn.extend({name:"ButtonWhiteBorder",props:{title:{type:String,required:!1,default:void 0},to:{type:String,required:!1,default:void 0},in_new_tab:{type:Boolean,required:!1,default:!1},rounded:{type:Boolean,required:!1,default:!0},uppercase:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},ticket_enabled:{type:Boolean,required:!1,default:!1},filled:{type:Boolean,required:!1,default:!1}},methods:{on_click(){this.$emit("click")}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("kanopy-link",{staticClass:"button-white-border",class:{rounded:e.rounded,uppercase:e.uppercase,"ticket-enabled":e.ticket_enabled,filled:e.filled},attrs:{title:e.title,to:e.to,in_new_tab:e.in_new_tab,disabled:e.disabled},on:{click:e.on_click}},[e._t("default")],2)},[],0,0,"86165c9c").exports;const kR=CC(Xn.extend({name:"HeaderAuthButton",props:{login_redirection_path:{type:String,required:!1,default:void 0}},computed:{is_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},button_title(){return this.is_logged_in?"Log out":"Log in"},button_destination(){if(!this.is_logged_in)return`/login${this.login_redirection_path??""}`}},methods:{on_click(){this.is_logged_in&&this.$kuistore.dispatch("user/logout").then(()=>{"/"===Aa.path_without_vp_subpath(this.$route)?Uu(this.$nuxt.context):Ia.navigate(this.$router,"/")})}},components:{ButtonWhiteBorder:wR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("button-white-border",{staticClass:"header-auth-button",attrs:{title:e.button_title.localized(),to:e.button_destination,rounded:!1,uppercase:!0},on:{click:e.on_click}})},[],0,0,"485e5635").exports;const CR=CC(Xn.extend({name:"KanopyOnboardingHeader",data:()=>({no_link:!1,show_search_button:!1,login_redirection_path:void 0}),props:{},watch:{$route(e){this.no_link=!this.page_enables_link(e),this.show_search_button=this.page_shows_search_button(e),this.login_redirection_path=this.get_login_redirection_path(e)}},created(){this.no_link=!this.page_enables_link(this.$router.currentRoute),this.show_search_button=this.page_shows_search_button(this.$router.currentRoute),this.login_redirection_path=this.get_login_redirection_path(this.$router.currentRoute)},computed:{domain_name(){return this.$kuistore.getters["site/institution_name"]},has_domain_name(){return null!=this.domain_name},search_img:()=>"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='38px'%20height='38px'%20viewBox='0%200%2038%2038'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2056.3%20(81716)%20-%20https://sketch.com%20--%3e%3ctitle%3esearch%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='VP-Page'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Catalog01'%20transform='translate(-1200.000000,%20-13.000000)'%20stroke='%23FFFFFF'%3e%3cg%20id='search'%20transform='translate(1201.000000,%2014.000000)'%3e%3cg%20id='Group-9'%3e%3ccircle%20id='Oval'%20stroke-width='2'%20cx='18'%20cy='18'%20r='18'%3e%3c/circle%3e%3cg%20id='Group-10'%20transform='translate(12.000000,%2011.000000)'%20stroke-linecap='round'%20stroke-width='2'%3e%3cg%20id='Group-4'%3e%3cg%20id='Group'%3e%3cpath%20d='M11.5,5.75%20C11.5,8.926%208.926,11.5%205.75,11.5%20C2.574,11.5%200,8.926%200,5.75%20C0,2.574%202.574,0%205.75,0%20C8.926,0%2011.5,2.574%2011.5,5.75%20Z'%20id='Stroke-23'%3e%3c/path%3e%3c/g%3e%3cpath%20d='M13.693,13.693%20L10,10'%20id='Stroke-24'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},methods:{page_enables_link:e=>!e.path.endsWith("/tv"),page_shows_search_button(e){return!!this.page_enables_link(e)&&!!e.path.endsWith("/catalog")},get_login_redirection_path:e=>Yf(e),reset_search(){this.$kuistore.dispatch("search/reset"),Ia.navigate(this.$router,"/search")}},components:{HeaderLogoLink:xT,ImageLink:fS,KanopyEnvironment:ET,HeaderAuthButton:kR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("header",{staticClass:"header-container"},[t("div",{staticClass:"header-left"},[t("header-logo-link"),t("kanopy-environment"),e.has_domain_name?t("h1",{staticClass:"header-title",attrs:{"data-clarity-mask":"true"}}
730,[e._v(e._s(e.domain_name))]):e._e()],1),t("div",{staticClass:"header-right"},[e.show_search_button?t("image-link",{staticClass:"search-img",attrs:{to:"/search",src:e.search_img,img_desc:"Search".localized(),click_only:!0},on:{click:e.reset_search}}):e._e(),e.no_link?e._e():t("header-auth-button",{attrs:{login_redirection_path:e.login_redirection_path}})],1)])},[],0,0,"4883143e").exports;const TR=CC(Xn.extend({computed:{is_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},main_content_id:()=>XC.MainContent},components:{MobileSmartBanner:uT,KanopyHeader:rS,KanopyOnboardingHeader:CR,KanopyFooter:XS,NotificationOverlay:Kx,GlobalViews:Vx,SkipLinks:gR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"layout-container"},[t("skip-links"),t("mobile-smart-banner"),e.is_logged_in?t("kanopy-header"):t("kanopy-onboarding-header"),t("nuxt",{staticClass:"page-content",attrs:{id:e.main_content_id,role:"main",tabindex:"-1"}}),t("global-views"),t("kanopy-footer"),t("notification-overlay",{attrs:{is_onboarding:!0}})],1)},[],0,0,"878a1f0a").exports;const SR=CC(Xn.extend({name:"KanopyOnboardingFooter",methods:{open_cookie_preferences(){this.$kuistore.dispatch("site/toggle_cookie_preferences_menu",!0),this.$kuistore.dispatch("site/toggle_menu",!1),JC.instance.setPostNavOrActionFocus(ZC.CookiePreferencesMenu,this.$refs.cookies.$el)}},components:{KanopyLink:EC}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("footer",{staticClass:"footer-container"},[t("kanopy-link",{attrs:{title:"I'm a Librarian".localized(),to:"https://lib.kanopy.com",in_new_tab:!0,use_vp_subpath:!1}}),t("kanopy-link",{attrs:{title:"Support".localized(),to:"https://help.kanopy.com/hc/en-us",in_new_tab:!0}}),t("kanopy-link",{attrs:{title:"Terms of Service".localized(),to:"/terms",in_new_tab:!0,use_vp_subpath:!1}}),t("kanopy-link",{attrs:{title:"Privacy Policy".localized(),to:"/privacy",in_new_tab:!0,use_vp_subpath:!1}}),t("kanopy-link",{ref:"cookies",staticClass:"footer-link",attrs:{title:"Cookies".localized()},on:{click:e.open_cookie_preferences}})],1)},[],0,0,"7a5ae31b").exports;const xR=CC(Xn.extend({computed:{is_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},main_content_id:()=>XC.MainContent,is_on_find_public_library_page(){return this.$route.fullPath.includes("/signup/find/publiclibrary")}},components:{MobileSmartBanner:uT,KanopyHeader:rS,KanopyOnboardingHeader:CR,NotificationOverlay:Kx,GlobalViews:Vx,SkipLinks:gR,KanopyOnboardingFooter:SR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"layout-container"},[t("skip-links"),t("mobile-smart-banner"),e.is_logged_in?t("kanopy-header"):t("kanopy-onboarding-header"),t("nuxt",{staticClass:"page-content",attrs:{id:e.main_content_id,role:"main",tabindex:"-1"}}),t("global-views"),t("notification-overlay",{attrs:{is_onboarding:!0}}),e.is_on_find_public_library_page?t("kanopy-onboarding-footer",{staticClass:"pl-search-footer in-layout"}):e._e()],1)},[],0,0,"b2800f97").exports;const ER=CC(Xn.extend({computed:{main_content_id:()=>XC.MainContent},components:{MobileSmartBanner:uT,KanopyOnboardingHeader:CR,KanopyOnboardingFooter:SR,NotificationOverlay:Kx,GlobalViews:Vx,SkipLinks:gR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("skip-links"),t("div",{staticClass:"layout-container"},[t("mobile-smart-banner"),t("kanopy-onboarding-header"),t("nuxt",{staticClass:"page-content",attrs:{id:e.main_content_id,role:"main",tabindex:"-1"}}),t("kanopy-onboarding-footer"),t("global-views"),t("notification-overlay",{attrs:{is_onboarding:!0}})],1)],1)},[],0,0,"765f7cec").exports;const IR=CC(Xn.extend({created(){this.$nuxt.$on(Mu.A11yHideMainContent,()=>{this.$refs.layout_container.removeAttribute("tabIndex"),this.$refs.layout_container.setAttribute("aria-hidden","true")}),this.$nuxt.$on(Mu.A11yShowMainContent,()=>{this.$refs.layout_container.setAttribute("tabIndex","-1"),this.$refs.layout_container.removeAttribute("aria-hidden")})},beforeDestroy(){this.$nuxt.$off(Mu.A11yHideMainContent),this.$nuxt.$off(Mu.A11yShowMainContent)},computed:{is_logged_in(){return this.$kuistore.getters["user/has_user_account_logged_in"]},layout_id:()=>XC.Page,main_content_id:()=>XC.MainContent},components:{MobileSmartBanner:uT,KanopyHeader:rS,KanopyOnboardingHeader:CR,KanopyOnboardingFooter:SR,NotificationOverlay:Kx,GlobalViews:Vx,SkipLinks:gR}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("skip-links"),t("div",{ref:"layout_container",staticClass:"layout-container",attrs:{id:e.layout_id}},[t("mobile-smart-banner"),e.is_logged_in?t("kanopy-header"):t("kanopy-onboarding-header"),t("nuxt",{staticClass:"page-content",attrs:{id:e.main_content_id,role:"main",tabindex:"-1"}}),t("kanopy-onboarding-footer"),t("global-views"),t("notification-overlay",{attrs:{is_onboarding:!0}})],1)],1)},[],0,0,"ad298bd5").exports,AR={_default:N_(yR),_empty:N_(vR),_landing:N_(bR),"_onboarding-default":N_(TR),"_onboarding-header-only":N_(xR),"_onboarding-loggedin":N_(ER),_onboarding:N_(IR)}
730,PR={render(e,t){const n=e("NuxtLoading",{ref:"loading"}),r=e(this.layout||"nuxt"),i=e("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),s=e("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter(e){window.$nuxt.$nextTick(()=>{window.$nuxt.$emit("triggerScroll")})}}},[i]);return e("div",{domProps:{id:"__nuxt"}},[n,s])},data:()=>({isOnline:!0,layout:null,layoutName:"",nbFetching:0}),beforeCreate(){Xn.util.defineReactive(this,"nuxt",this.$options.nuxt)},created(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},async mounted(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},computed:{isOffline(){return!this.isOnline},isFetching(){return this.nbFetching>0},isPreview(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},async refresh(){const e=U_(this.$route);if(!e.length)return;this.$loading.start();const t=e.map(async e=>{let t=[];e.$options.fetch&&e.$options.fetch.length&&t.push(H_(e.$options.fetch,this.context)),e.$options.asyncData&&t.push(H_(e.$options.asyncData,this.context).then(t=>{for(const n in t)Xn.set(e.$data,n,t[n])})),await Promise.all(t),t=[],e.$fetch&&t.push(e.$fetch());for(const n of R_(e.$vnode.componentInstance))t.push(n.$fetch());return Promise.all(t)});try{await Promise.all(t)}catch(n){this.$loading.fail(n),L_(n),this.error(n)}this.$loading.finish()},errorChanged(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());let e=(rT.options||rT).layout;"function"==typeof e&&(e=e(this.context)),this.nuxt.errPageReady=!0,this.setLayout(e)}},setLayout(e){return e&&AR["_"+e]||(e="default"),this.layoutName=e,this.layout=AR["_"+e],this.layout},loadLayout:e=>(e&&AR["_"+e]||(e="default"),Promise.resolve(AR["_"+e]))},components:{NuxtLoading:sT}},OR={banners:void 0},LR={namespaced:!0,state:()=>OR,getters:{banners:e=>e.banners,home_banners:(e,t,n,r)=>{if("afi"===r["site/domain_stem"]){const t=e.banners?.filter(e=>e.bannerType===Hc);if((t?.length??0)>0)return t}return e.banners?.filter(e=>e.bannerType===zc)},current_term_banner:(e,t,n,r)=>{const i=r["shelves/current_term"];if(null!=i)return e.banners?.find(e=>e.backgroundForTermId===i.termId)},banner_for_termid:e=>t=>e.banners?.find(e=>e.targetTermId===t)},mutations:{set_banners(e,t){e.banners=t}},actions:{async fetch_banners(e){const t=e.rootGetters["site/domain_id"],n=null==t?e.rootGetters["site/webshop"].id:void 0,r=e.rootGetters["site/is_in_kids_mode"];try{const i=await this.$kapi.instance().bannerControllerListBanners({domainId:t,webshopId:n,isKids:r,backgroundTermId:void 0,xVersion:ju.XVersion});e.commit("set_banners",i.data.list)}catch(i){throw ju.unwrapKapiError(i)}},on_domain_change(e){e.dispatch("reset")},on_kids_adult_switch(e){e.dispatch("reset")},on_logout(e){e.dispatch("reset")},reset(e){e.commit("set_banners",void 0)}}},DR=Object.freeze(Object.defineProperty({__proto__:null,default:LR,initial_state:OR},Symbol.toStringTag,{value:"Module"}));var RR=(e=>(e.Toggle="toggle",e.Selector="selector",e))(RR||{});const MR="Default";var NR=(e=>(e[e.Default=MR]="Default",e.Checkmarks="Checkmarks",e.LongWords="Long words",e.LongStrings="Long strings",e.LongStringNoSpaces="Long strings, no spaces",e.ShortStrings="Short strings",e))(NR||{});const jR={mux_service_debug_enabled:{title:"Mux Service debug",description:"Enable debug in Mux for videojs",value:!1,type:"toggle"},sentinel_debug_enabled:{title:"Sentinel console debug",description:"Write Sentinel routing data to console",value:!1,type:"toggle"},show_focus_outline:{title:"Show focus outline",description:"Add border to the currently focused element",value:!1,type:"toggle",fn:e=>document.documentElement.classList.toggle("debug-focus",e)},video_player_debug_enabled:{title:"Video player debug",description:"Write video player info to console",value:!1,type:"toggle"},hdcp_failure:{title:"HDCP failure",description:"Force HDCP failure. KanopyDRM will show HDCP error. StudioDRM should fall back to non-HDCP rendition.",value:!1,type:"toggle"},hide_channel_button:{title:"Hide channel button",description:"Hide the channel button in the header",value:!1,type:"toggle"},disable_native_popover:{title:"Disable native popover",description:"Disable native popover. Browser supports native popover: "+(void 0!==document.documentElement.popover).toString(),value:!1,type:"toggle"},user_role:{title:"Set user role",description:"Set user's role. This is used to block certain UI from non-com
730Users.",value:MR,type:"selector",options:Object.values(eu).concat(MR)},in_gdpr_region:{title:"Force GDPR region",description:"Force the user to be in a GDPR region",value:void 0,type:"toggle"},a11y_text_spacing:{title:"Enable accessible text spacing",description:'See <a href="https://www.w3.org/WAI/WCAG21/Understanding/text-spacing.html">WCAG</a> success criteria',value:!1,type:"toggle",fn:e=>document.documentElement.classList.toggle("debug-a11y-text-spacing",e)},i18n_longer_strings:{title:"Set text length",description:"<b>⢠Checkmarks</b>: Add â around all translated strings<br/><b>⢠Long words</b>: Make each individual word longer<br/><b>⢠Long strings</b>: Make whole strings longer<br/><b>⢠Long strings, no spaces</b>: Add long strings with no spaces<br/><b>⢠Short strings</b>: Shorten each string",value:MR,type:"selector",options:Object.values(NR),fn:(e,t)=>{t||window.location.reload()}}},UR={get_value:e=>t=>e[t].value,toggles:e=>BR(e,RR.Toggle),selectors:e=>BR(e,RR.Selector)},$R=()=>{const e=Ca.instance.get(ka.Debug)??{},t=jR;return Object.entries(e).forEach(e=>{const[n,r]=e;null!=t[n]&&(t[n].value=r??t[n].value,t[n].fn?.(t[n].value,!0))}),t},BR=(e,t)=>Object.entries(e).filter(e=>{const[,n]=e;return n.type===t}).map(([e,t])=>({key:e,...t})),FR={namespaced:!0,state:()=>$R(),getters:UR,mutations:{set_debug_property(e,t){e[t.key].value=t.value}},actions:{set_debug_property(e,t){e.commit("set_debug_property",t),e.dispatch("save_to_local_storage"),null!=e.state[t.key].fn&&e.state[t.key].fn?.(t.value)},save_to_local_storage(e){const t=Object.entries(e.state).reduce((e,t)=>{const[n,r]=t;return void 0===r.value?e:{[n]:r.value,...e}},{});Ca.instance.save(ka.Debug,t)}}},qR=Object.freeze(Object.defineProperty({__proto__:null,default:FR,initial_state:$R},Symbol.toStringTag,{value:"Module"})),VR={domains:{}},HR={namespaced:!0,state:()=>VR,getters:{domains:e=>e.domains,domain_for_id:e=>t=>Object.values(e.domains).find(e=>e.domainId===t),domain_for_stem:e=>t=>e.domains[t]},mutations:{set_domains(e,t){e.domains=t},add_domain(e,t){e.domains={...e.domains,[t.subdomain]:t}}},actions:{add_domain(e,t){e.commit("add_domain",t)},clear_cache(e){e.commit("set_domains",{})}}},zR=Object.freeze(Object.defineProperty({__proto__:null,default:HR,initial_state:VR},Symbol.toStringTag,{value:"Module"}));class GR{static searchControllerSearchVideos(e,t){const n=this._normalize_search_parameters(t);return e.instance().searchControllerSearchVideos(n)}static _normalize_search_parameters(e){const t={...e};return t.page=Math.max(Math.round(e.page??0),0),t}}const KR={shelves:void 0,shelves_nb:void 0,fetching:!1,fetching_more:!1,grid:void 0,grid_total_items:void 0},WR={namespaced:!0,state:()=>KR,getters:{shelves:e=>e.shelves,shelves_nb:e=>e.shelves_nb,fetching:e=>e.fetching,fetching_more:e=>e.fetching_more,can_fetch_more_shelves:e=>null==e.shelves_nb||e.shelves_nb>(e.shelves?.length??0),grid:e=>e.grid,grid_total_items:e=>e.grid_total_items,can_fetch_more_grid_items:e=>null==e.grid_total_items||e.grid_total_items>(e.grid?.length??0)},mutations:{set_shelves(e,t){e.shelves=t},add_shelves(e,t){e.shelves=e.shelves?.concat(t)??t},set_shelves_nb(e,t){e.shelves_nb=t},set_fetching(e,t){e.fetching=t},set_fetching_more(e,t){e.fetching_more=t},set_grid(e,t){e.grid=t},add_grid_items(e,t){e.grid=e.grid?.concat(t)??t},set_grid_total_items(e,t){e.grid_total_items=t}},actions:{fetch_home_shelves:e=>e.dispatch("fetch_home_shelves_with_options",!1),fetch_more_home_shelves:e=>e.state.fetching_more?Promise.resolve(void 0):e.dispatch("fetch_home_shelves_with_options",!0),async fetch_home_shelves_with_options(e,t){if(!t||e.getters.can_fetch_more_shelves){const r=e.rootGetters["site/domain"];if(null==r)return Promise.resolve(void 0);const i=e.rootGetters["site/is_in_kids_mode"];if(i&&!r.hasKids)return Promise.resolve(void 0);const s=t?(e.state.shelves?.length??0)/7:0;t?e.commit("set_fetching_more",!0):e.commit("set_fetching",!0);try{const n=await this.$kapi.instance().shelfGroupControllerGetHomepage({domainId:r.domainId,isKids:i,page:s,shelvesPerPage:7,videosPerShelf:15,xVersion:ju.XVersion});t?e.commit("add_shelves",n.data.list):(e.commit("set_shelves_nb",n.data.count),e.commit("set_shelves",n.data.list))}catch(n){throw t||e.commit("set_shelves",null),ju.unwrapKapiError(n)}finally{t?e.commit("set_fetching_more",!1):e.commit("set_fetching",!1)}}},async fetch_more_shelf_items(e,t){const n=e.state.shelves?.find(e=>e.shelfId===t);if(null!=n)try{const r=e.rootGetters["site/domain_id"],i=e.rootGetters["user/has_active_membership_on_current_domain"]?r:void 0,s=null==i?e.rootGetters["site/webshop"].id:void 0,o=e.rootGetters["site/is_in_kids_mode"],a=(n.list.length??0)/15;if(!Number.isInteger(a))return;const l=await this.$kapi.instance().shelfControllerGetShelf({shelfId:t,domainId:i,webshopId:s,isKids:o,page:a,perPage:15,xVersion:ju.XVersion}),c=n.list.concat(l.data.list),u={...n,list:c},d=e.state.shelves?.map(e=>e.shelfId===t?u:e);e.commit("set_shelves",d)}catch(r){throw ju.unwrapKapiError(r)}},fetch_home_grid:e=>e.dispatch("fetch_home_grid_with_options",!1),fetch_more_home_grid:e=>e.state.fetching_more?Promise.resolve(void 0):e.dispatch("fetch_home_grid_with_options",!0),async fetch_home_grid_with_options(e,t){if(!t||e.getters.can_fetch_more_grid_items){const r=e.rootGetters["site/domain_id"],i=e.rootGetters["site/is_in_kids_mode"],s=t?(e.state.grid?.length??0)/15:0;if(null!=r){t?e.commit("set_fetching_more",!0):e.commit("set_fetching",!0);try{const n=await GR.searchControllerSearchVideos(this.$kapi,{xVersion:ju.XVersion,rfp:"exclude",domainId:r,isKids:i,page:s,perPage:15});t?e.commit("add_grid_items",n.data.list):(e.commit("set_grid_total_items",n.data.count),e.commit("set_grid",n.data.list))}catch(n){throw ju.unwrapKapiError(n)}finally{t?e.commit("set_fetching_more",!1):e.commit("set_fetching",!1)}}}},on_domain_change(e){e.dispatch("reset")},on_kids_adult_switch(e){e.dispatch("reset")},on_logout(e){e.dispatch("reset")},reset(e){e.commit("set_shelves_nb",void 0),e.commit("set_shelves",void 0===e.state.shelves?null:void 0),e.commit("set_grid_total_items",void 0),e.commit("set_grid",void 0)}}},XR=Object.freeze(Object.defineProperty({__proto__:null,default:WR,initial_state:KR},Symbol.toStringTag,{value:"Module"})),YR={is_dev:!1},ZR={namespaced:!0,state:()=>YR,getters:{is_dev:e=>e.is_dev},mutations:{set_is_dev(e,t){e.is_dev=t}},actions:{async nuxtClientInit(e,t){null!=t.env.IS_DEV&&e.commit("set_is_dev","True"===t.env.IS_DEV),Ia.isEmbeddedRoute(t.route)&&await Ba.instance.initialize_third_party_cookies(),await e.dispatch("site/nuxtClientInit",t),await e.dispatch("user/nuxtClientInit",t)}}},JR=Object.freeze(Object.defineProperty({__proto__:null,default:ZR,initial_state:YR},Symbol.toStringTag,{value:"Module"})),QR={custom_playlists:void 0,fetching_custom_playlists:!1,fetching_more_custom_playlists:!1,custom_playlists_nb:void 0,custom_playlist_current_clip_id:void 0,custom_playlist_current_playlist_id:void 0,read_only_custom_playlist:void 0,continuewatching_items:void 0,fetching_continue_watching:!1,watchlist:void 0,watchlist_items:void 0,fetching_watchlist_items:!1,fetching_more_watchlist_items:!1},eM={namespaced:!0,state:()=>QR,getters:{read_only_custom_playlist:e=>e.read_only_custom_playlist,custom_playlists:e=>e.custom_playlists,custom_playlists_nb:e=>e.custom_playlists_nb,fetching_custom_playlists:e=>e.fetching_custom_playlists,fetching_more_custom_playlists:e=>e.fetching_more_custom_playlists,can_fetch_more_custom_playlists:e=>null==e.custom_playlists_nb||e.custom_playlists_nb>(e.custom_playlists?.length??0),custom_playlist_current_playlist_id:e=>e.custom_playlist_current_playlist_id,custom_playlist_current_clip_id:e=>e.custom_playlist_current_clip_id,custom_playlist_current_playlist:e=>{const t=e.custom_playlists?.find(t=>
730t.id===e.custom_playlist_current_playlist_id);return t??e.read_only_custom_playlist},custom_playlist_current_clip:(e,t)=>{const n=t.custom_playlist_current_playlist;return n?.items.find(t=>t.itemId===e.custom_playlist_current_clip_id)},continuewatching_items:e=>e.continuewatching_items,continuewatching_nb_items:e=>e.continuewatching_items?.length,fetching_continue_watching:e=>e.fetching_continue_watching,is_in_continue_watching:e=>t=>null!=e.continuewatching_items?.find(e=>{const n=e.video??e.playlist;return n?.videoId===t}),child_is_in_continue_watching:e=>t=>null!=e.continuewatching_items?.find(e=>{const n=e.video??e.playlist;return n?.ancestorVideoIds?.includes(t)}),watchlist:e=>e.watchlist,watchlist_id:e=>e.watchlist?.watchlistId,is_in_watchlist:e=>t=>null!=e.watchlist?.videos.find(e=>e.videoId===t),watchlist_items:e=>e.watchlist_items,watchlist_nb_items:e=>e.watchlist?.videos.length,can_fetch_more_watchlist_items:e=>null==e.watchlist||e.watchlist.videos.length>(e.watchlist_items?.length??0),fetching_watchlist_items:e=>e.fetching_watchlist_items,fetching_more_watchlist_items:e=>e.fetching_more_watchlist_items},mutations:{set_read_only_custom_playlist(e,t){e.read_only_custom_playlist=t},set_custom_playlists(e,t){e.custom_playlists=t},add_custom_playlists(e,t){e.custom_playlists=e.custom_playlists?.concat(t)??t},set_fetching_custom_playlists(e,t){e.fetching_custom_playlists=t},set_fetching_more_custom_playlists(e,t){e.fetching_more_custom_playlists=t},set_custom_playlists_nb(e,t){e.custom_playlists_nb=t},set_custom_playlist_current_playlist_id(e,t){e.custom_playlist_current_playlist_id=t},set_custom_playlist_current_clip_id(e,t){e.custom_playlist_current_clip_id=t},set_continue_watching(e,t){e.continuewatching_items=t},set_fetching_continue_watching(e,t){e.fetching_continue_watching=t},remove_continue_watching_item(e,t){e.continuewatching_items=e.continuewatching_items?.filter(e=>{const n=e.video??e.playlist;return n?.videoId!==t})},set_watchlist(e,t){e.watchlist=t},set_watchlist_items(e,t){e.watchlist_items=t},add_watchlist_items(e,t){e.watchlist_items=e.watchlist_items?.concat(t)??t},add_watchlist_item(e,t){const n=Tf(t.video);if(null!=e.watchlist&&null!=n){const r={itemId:t.itemId,videoId:n.videoId};e.watchlist.videos=[r].concat(e.watchlist.videos),e.watchlist_items=[t].concat(e.watchlist_items??[])}},remove_watchlist_item(e,t){null!=e.watchlist&&(e.watchlist.videos=e.watchlist.videos.filter(e=>e.itemId!==t),e.watchlist_items=e.watchlist_items?.filter(e=>e.itemId!==t)??[])},set_fetching_watchlist_items(e,t){e.fetching_watchlist_items=t},set_fetching_more_watchlist_items(e,t){e.fetching_more_watchlist_items=t}},actions:{async change_playlist_title(e,t){try{const n={title:t.title};await this.$kapi.instance().playlistControllerUpdateUserPlaylist({playlistId:t.id,createUserPlaylistDto:n,xVersion:ju.XVersion});const r=e.state.custom_playlists?.map(e=>e.id===t.id?{id:e.id,items:e.items,title:t.title}:e)??[];e.commit("set_custom_playlists",r)}catch(n){throw ju.unwrapKapiError(n)}},async add_playlist_item(e,t){try{const n=await this.$kapi.instance().playlistItemControllerCreateUserPlaylistClip({playlistId:t.playlist_id,createUserPlaylistItemDto:t.new_clip,domainId:e.rootGetters["site/domain_id"],xVersion:ju.XVersion});if(null!=e.state.custom_playlists){const r=e.state.custom_playlists.map(e=>{if(e.id!==t.playlist_id)return e;return{title:e.title,id:e.id,items:e.items.concat([n.data])}});e.commit("set_custom_playlists",r)}}catch(n){throw ju.unwrapKapiError(n)}},async delete_playlist_item(e,t){const n=()=>
730{if(null!=e.state.custom_playlists){const n=e.state.custom_playlists.map(e=>{if(e.id!==t.playlist_id)return e;{const n=e.items.filter(e=>e.itemId!==t.item_to_delete.itemId);return{title:e.title,id:e.id,items:n}}});e.commit("set_custom_playlists",n)}};try{await this.$kapi.instance().playlistItemControllerDeleteUserPlaylistClip({playlistId:t.playlist_id,itemId:t.item_to_delete.itemId,xVersion:ju.XVersion}),n()}catch(r){const e=ju.unwrapKapiError(r);throw 404===e.httpCode&&n(),e}},async edit_playlist_item(e,t){try{const n=await this.$kapi.instance().playlistItemControllerUpdateUserPlaylistClip({playlistId:t.playlist_id,itemId:t.item_id,updateUserPlaylistItemDto:t.item_to_edit,xVersion:ju.XVersion});if(null!=e.state.custom_playlists){const r=e.state.custom_playlists.map(e=>{if(e.id!==t.playlist_id)return e;{const t=e.items.map(e=>e.itemId!==n.data.itemId?e:n.data);return{id:e.id,title:e.title,items:t}}});e.commit("set_custom_playlists",r)}}catch(n){throw ju.unwrapKapiError(n)}},delete_playlist(e,t){if(null!=t)try{this.$kapi.instance().playlistControllerDeleteUserPlaylist({playlistId:t.id,xVersion:ju.XVersion});const n=e.state.custom_playlists.filter(e=>e.id!==t.id);e.commit("set_custom_playlists",n),e.commit("set_custom_playlists_nb",(e.state.custom_playlists_nb??1)-1)}catch(n){throw ju.unwrapKapiError(n)}},async create_playlist(e,t){try{const n=await this.$kapi.instance().playlistControllerCreateUserPlaylist({createUserPlaylistDto:t,xVersion:ju.XVersion}),r={id:n.data.playlistId,title:n.data.title,items:[]};e.commit("set_custom_playlists",[r].concat(e.state.custom_playlists??[])),e.commit("set_custom_playlists_nb",(e.state.custom_playlists_nb??0)+1)}catch(n){throw ju.unwrapKapiError(n)}},fetch_read_only_custom_playlist(e,t){if(null!=t.playlist_id&&null!=t.domain_id)try{return this.$kapi.instance().playlistControllerGetUserPlaylist({playlistId:t.playlist_id,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},fetch_read_only_custom_playlist_items(e,t){if(null!=t.playlist_id&&null!=t.domain_id)try{return this.$kapi.instance().playlistItemControllerGetUserPlaylistItems({playlistId:t.playlist_id,domainId:t.domain_id,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},async fetch_read_only_custom_playlist_and_items(e,t){if(null!=t.playlist_id&&null!=t.domain_id)try{const n=await e.dispatch("fetch_read_only_custom_playlist",t),r={items:(await e.dispatch("fetch_read_only_custom_playlist_items",t)).data.list,title:n.data.title,id:n.data.playlistId};e.commit("set_read_only_custom_playlist",r),e.commit("set_custom_playlist_current_playlist_id",n.data.playlistId)}catch(n){throw ju.unwrapKapiError(n)}},async update_current_clip_id(e,t){const n=e.getters.custom_playlist_current_playlist,r=n?.items.find(e=>e.itemId===t);if(null!=r)return e.commit("set_custom_playlist_current_clip_id",r?.itemId),Promise.resolve();null==e.state.continuewatching_items&&await e.dispatch("fetch_continue_watching");const i=n?.items.map(e=>e.video)??[],s=Af(i,e.state.continuewatching_items??[]),o=null==s?0:i.indexOf(s);e.commit("set_custom_playlist_current_clip_id",n?.items[o]?.itemId)},async fetch_custom_playlist(e,t){if(!t||!e.state.fetching_more_custom_playlists&&e.getters.can_fetch_more_custom_playlists){const r=e.rootGetters["user/userId"],i=e.rootGetters["site/domain_id"],s=t?Math.floor((e.state.custom_playlists?.length??0)/15):0;if(null!=r&&null!=i){t?e.commit("set_fetching_more_custom_playlists",!0):e.commit("set_fetching_custom_playlists",!0);try{const n=await this.$kapi.instance().userPlaylistControllerGetUserPlaylists({userId:r,page:s,perPage:15,xVersion:ju.XVersion}),o=n.data.list,a=o.map(e=>this.$kapi.instance().playlistItemControllerGetUserPlaylistItems({playlistId:e.playlistId,domainId:i,xVersion:ju.XVersion})),l=await Promise.all(a);e.commit("set_custom_playlists_nb",n.data.count);const c=l.map((e,t)=>({items:e.data.list,title:o[t].title,id:o[t].playlistId}));t?e.commit("add_custom_playlists",c):e.commit("set_custom_playlists",c)}catch(n){throw ju.unwrapKapiError(n)}finally{t?e.commit("set_fetching_more_custom_playlists",!1):e.commit("set_fetching_custom_playlists",!1)}}}},async fetch_continue_watching(e){const t=e.rootGetters["user/userId"],n=e.rootGetters["site/domain_id"],r=e.rootGetters["site/is_in_kids_mode"];if(null!=t&&null!=n){e.commit("set_fetching_continue_watching",!0);try{const i=await this.$kapi.instance().historyControllerGetHistory({userId:t,domainId:n,isKids:r,xVersion:ju.XVersion});e.commit("set_continue_watching",i.data.list),i.data.list.forEach(t=>{const r=Sf(t);e.dispatch("product_cache/add_product",{product:r,domain_id:n},{root:!0})})}catch(i){console.error(i)}finally{e.commit("set_fetching_continue_watching",!1)}}},mark_continue_watching_as_outdated(e){e.commit("set_continue_watching",void 0)},async delete_item_from_continue_watching(e,t){const n=e.rootGetters["user/userId"];if(null==n){throw{httpCode:401}}if(!e.getters.is_in_continue_watching(t)){throw{httpCode:404}}try{await this.$kapi.instance().historyControllerDeleteVideoFromHistory({userId:n,videoId:t,xVersion:ju.XVersion}),e.commit("remove_continue_watching_item",t)}catch(r){throw ju.unwrapKapiError(r)}},async fetch_watchlist(e){if(!e.rootGetters["user/has_active_membership_on_current_domain"])return;const t=e.rootGetters["user/userId"],n=e.rootGetters["site/domain_id"],r=e.rootGetters["site/is_in_kids_mode"];if(null!=t&&null!=n)try{const i=await this.$kapi.instance().watchlistControllerGetWatchlist({userId:t,domainId:n,isKids:r,xVersion:ju.XVersion});e.commit("set_watchlist",i.data)}catch(i){console.error(i)}},async fetch_watchlist_items(e,t){if(!t||!e.state.fetching_more_watchlist_items&&e.getters.can_fetch_more_watchlist_items){const r=e.state.watchlist?.watchlistId,i=e.rootGetters["site/domain_id"],s=e.rootGetters["site/is_in_kids_mode"],o=t?Math.floor((e.state.watchlist_items?.length??0)/15):0;if(null!=r&&null!=i){t?e.commit("set_fetching_more_watchlist_items",!0):e.commit("set_fetching_watchlist_items",!0);try{const n=await this.$kapi.instance().watchlistItemControllerGetUserWatchlistItems({watchlistId:r,domainId:i,isKids:s,page:o,perPage:15,xVersion:ju.XVersion});if(t){const t=t=>null!=e.state.watchlist_items?.find(e=>e.itemId===t),r=n.data.list.filter(e=>!t(e.itemId));e.commit("add_watchlist_items",r)}else e.commit("set_watchlist_items",n.data.list);n.data.list.forEach(t=>{e.dispatch("product_cache/add_product",{product:t.video,domain_id:i},{root:!0})})}catch(n){throw ju.unwrapKapiError(n)}finally{t?e.commit("set_fetching_more_watchlist_items",!1):e.commit("set_fetching_watchlist_items",!1)}}}},async add_item_to_watchlist(e,t){if(null!=e.state.watchlist){const r={videoId:t};try{const t=await this.$kapi.instance().watchlistItemControllerAddWatchlistItem({watchlistId:e.state.watchlist.watchlistId,createWatchlistItemDto:r,xVersion:ju.XVersion});e.commit("add_watchlist_item",t.data)}catch(n){throw ju.unwrapKapiError(n)}}},async delete_item_from_watchlist(e,t){if(null!=e.state.watchlist){const r=e.state.watchlist.videos.find(e=>e.videoId===t);if(null==r){throw{httpCode:404}}try{await this.$kapi.instance().watchlistItemControllerDeleteWatchlistItem({watchlistId:e.state.watchlist.watchlistId,itemId:r.itemId,xVersion:ju.XVersion}),e.commit("remove_watchlist_item",r.itemId)}catch(n){throw ju.unwrapKapiError(n)}}},on_user_ready:e=>e.dispatch("fetch_watchlist"),on_kids_adult_switch:e=>(e.dispatch("reset"),e.dispatch("fetch_watchlist")),on_domain_change:e=>(e.dispatch("reset"),e.dispatch("fetch_watchlist")),on_domain_became_active:e=>e.dispatch("fetch_watchlist"),on_logout(e){e.dispatch("reset")},reset(e){e.commit("set_custom_playlists",void 0),e.commit("set_continue_watching",void 0),e.commit("set_watchlist",void 0),e.commit("set_watchlist_items",void 0)}}},tM=Object.freeze(Object.defineProperty({__proto__:null,default:eM,initial_state:QR},Symbol.toStringTag,{value:"Module"}));
730class nM{institution;branch;constructor(e,t=void 0){this.institution=e,this.branch=t}is_library(){return null!=this.institution.branches}is_university(){return!this.is_library()}institution_as_library(){return this.is_library()?this.institution:void 0}institution_as_university(){return this.is_university()?this.institution:void 0}institution_branch(){return this.branch}domain_id(){return this.is_library()?this.institution_as_library()?.domain_id:this.institution_as_university()?.domainId}id(){return this.is_library()&&null!=this.branch?`${this.domain_id()}-${this.branch.coordinates[0]}-${this.branch.coordinates[1]}`:`${this.domain_id()}`}name(){return null!=this.branch?this.branch.branch_name??"":this.institution.name??""}stem(){return this.institution.subdomain??""}coordinates(){return null!=this.branch?{lng:this.branch.coordinates[1],lat:this.branch.coordinates[0]}:void 0}address(){return this.branch?.address}can_skip_create_account(){return!(this.institution_as_university()?.isUserRequiredToPlay??1)}}async function rM(e,t,n,r){try{const i=(t?.length??0)>=2?t:void 0,s=n?.bounds,o=s?.getWest(),a=s?.getSouth(),l=s?.getEast(),c=s?.getNorth(),u=n?.center,d=(await e.instance().branchControllerGetBranch({query:i,limit:r,swLongitude:o,swLatitude:a,neLongitude:l,neLatitude:c,longitude:u?.lng,latitude:u?.lat,xVersion:ju.XVersion})).data,h={nb_results:d?.count||0,query:t||"",results:d?.list.map(e=>({name:e.name,branches:e.branches.map(t=>new nM(e,t))}))??[],locations:d.locations};return Promise.resolve(h)}catch(i){return Promise.reject(ju.unwrapKapiError(i))}}async function iM(e,t,n){if(null==t||""===t.trim()||t.length<2)return Promise.resolve(void 0);try{const r=(await e.instance().institutionControllerSearchInstitutions({query:t,limit:n,xVersion:ju.XVersion})).data,i={nb_results:r?.count||0,query:t,results:r?.list.map(e=>({name:void 0,branches:[new nM(e)]}))||[]};return Promise.resolve(i)}catch(r){return Promise.reject(ju.unwrapKapiError(r))}}const sM={is_searching_institution:!1,institution_search:void 0,is_searching_suggestions:!1,institution_suggestions:void 0,map_coordinates:void 0,selected_institution:void 0,missing_institutions_search:void 0,wayf_group:void 0},oM={namespaced:!0,state:()=>sM,getters:{is_searching_institution:e=>e.is_searching_institution,institution_search:e=>e.institution_search,is_searching_suggestions:e=>e.is_searching_suggestions,institution_suggestions:e=>e.institution_suggestions,institution_suggestion_instances:e=>e.institution_suggestions?.results.flatMap(e=>e.branches),map_coordinates:e=>e.map_coordinates,selected_institution:e=>e.selected_institution,missing_institutions_search:e=>e.missing_institutions_search,wayf_group:e=>e.wayf_group},mutations:{set_is_searching_institution(e,t){e.is_searching_institution=t},set_institution_search(e,t){e.institution_search=t},set_is_searching_suggestions(e,t){e.is_searching_suggestions=t},set_institution_suggestions(e,t){e.institution_suggestions=t},set_map_coordinates(e,t){e.map_coordinates=t},set_selected_institution(e,t){e.selected_institution=t},set_missing_institutions_search(e,t){e.missing_institutions_search=t},set_wayf_group(e,t){e.wayf_group=t}},actions:{search_university(e,t){e.commit("set_is_searching_institution",!0),iM(this.$kapi,t,void 0).then(t=>{e.commit("set_institution_search",t)}).catch(e=>{throw e}),e.commit("set_is_searching_institution",!1)},search_public_library(e,t){if(e.commit("set_is_searching_institution",!0),e.commit("set_institution_search",void 0),null!=t){const n=e.state.map_coordinates;rM(this.$kapi,t,n,void 0).then(t=>{e.commit("set_institution_search",t)}).catch(e=>{throw e})}e.commit("set_is_searching_institution",!1)},search_public_library_by_coordinates(e,t=void 0){e.commit("set_is_searching_institution",!0),null!=t&&e.dispatch("update_map_coordinates",t);const n=e.state.institution_search?.query;rM(this.$kapi,n,t,void 0).then(n=>{e.state.map_coordinates===t&&e.commit("set_institution_search",n)}).catch(e=>{throw e}),e.commit("set_is_searching_institution",!1)},fetch_university_auto_complete_results(e,t){e.commit("set_is_searching_suggestions",!0);iM(this.$kapi,t,5).then(t=>{e.commit("set_institution_suggestions",t)}).catch(e=>{throw e}),e.commit("set_is_searching_suggestions",!1)},fetch_public_library_auto_complete_results(e,t){if(e.commit("set_is_searching_suggestions",!0),null==t||t.trim().length<2)e.commit("set_institution_suggestions",void 0);else{const n=3;rM(this.$kapi,t,e.state.map_coordinates,n).then(t=>{e.commit("set_institution_suggestions",t)}).catch(e=>{throw e})}e.commit("set_is_searching_suggestions",!1)},clear_institution_search(e){e.commit("set_institution_search",void 0),e.commit("set_is_searching_institution",!1)},clear_search_suggestion(e){e.commit("set_institution_suggestions",void 0),e.commit("set_is_searching_suggestions",!1)},update_map_coordinates(e,t){e.commit("set_map_coordinates",t)},select_institution(e,t){e.commit("set_selected_institution",t)},async fetch_missing_institutions(e,t){if(Va.isEmpty(t.query))e.commit("set_missing_institutions_search",void 0);else try{const n=await this.$kapi.instance().institutionControllerGetMissingInstitutions({query:t.query,type:t.type,xVersion:ju.XVersion});e.commit("set_missing_institutions_search",n.data.list)}catch(n){throw ju.unwrapKapiError(n)}},async request_missing_institution(e,t){try{await this.$kapi.instance().rflControllerSubmitRfl({rflDto:t,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},clear_missing_institutions(e){e.commit("set_missing_institutions_search",void 0)},async fetch_wayf_group(e,t){if(!Va.isEmpty(t))try{const n=await this.$kapi.instance().institutionControllerGetWayfGroup({groupIdentifier:t,xVersion:ju.XVersion});e.commit("set_wayf_group",n.data)}catch(n){throw ju.unwrapKapiError(n)}},async create_membership(e,t){const n=e.rootGetters["user/userId"];t.userId=n,t.visitorId=this.$kapi.getVisitorId();try{const n=await this.$kapi.instance().membershipControllerCreateMembership({createMembershipDto:t,xVersion:ju.XVersion}),r=await this.$kapi.instance().membershipControllerGetOne({identityId:n.data.identityId,xVersion:ju.XVersion});e.commit("user/add_membership",r.data,{root:!0}),za(r.data,this)}catch(r){throw ju.unwrapKapiError(r)}},async create_account(e,t){try{const n=await this.$kapi.instance().userControllerCreateUser({createUserRequestDto:t,xVersion:ju.XVersion});this.$kapi.setToken(n.data.jwt);const r=Ua.uid;r.value=n.data.user.userId.toString(),Ba.instance.set(r),e.commit("user/set_user",n.data.user,{root:!0}),await e.dispatch("site/on_login",void 0,{root:!0}),function(e,t){const n={...Ua.visitor_identity};n.name=`${t}_${e}_${Ua.visitor_identity.name}`,Ba.instance.delete(n)}(this.$kapi.getVisitorId()??"",e.rootGetters["site/domain_id"])}catch(n){throw ju.unwrapKapiError(n)}}}},aM=Object.freeze(Object.defineProperty({__proto__:null,default:oM,initial_state:sM},Symbol.toStringTag,{value:"Module"})),lM=-1;const cM={product_cache:e=>e.product_cache,product_for_id:e=>(t,n)=>e.product_cache.getProduct(t,n),product_access_expiration_for_id:e=>(t,n)=>e.product_cache.getProductAccessExpiration(t,n),product_for_alias:e=>(t,n)=>e.product_cache.getProductByAlias(t,n),items_for_product:e=>(t,n)=>{const r=Tf(t);if(null==r)return;const i=e.product_cache.getProductItems(r.videoId,n);return null!=i?i.reduce((t,r)=>{const i=e.product_cache.getProduct(r,n);return null==i?t:t.concat([i])},[]):void 0}},uM={add_product(e,t){e.product_cache.addToCache(t.product,t.domain_id)},add_product_items(e,t){e.product_cache.addProductItemsToCache(t.product_items,t.product_id,t.domain_id)},add_product_access_expiration(e,t){e.product_cache.addAccessExpirationToCache(t.product_access_expiration)},clear(e,t){null==t?e.product_cache.clear():e.product_cache.clearForDomain(t)}},dM={add_product(e,t){null!=Tf(t.product)&&e.commit("add_product",{product:t.product,domain_id:t.domain_id})},add_product_access_expiration(e,t){e.commit("add_product_access_expiration",{product_access_expiration:t.product_access_expiration})},add_product_items(e,t){const n=e.state.product_cache.getProductItems(t.product_id,t.domain_id),r=t.product_items.reduce((r,i)=>{const s=Tf(i);return null!=s?n?.includes(s.videoId)?r:(e.dispatch("add_product",{product:i,domain_id:t.domain_id}),r.concat([s.videoId])):r},[]),i=n?.concat(r)??r;e.commit("add_product_items",{product_items:i,product_id:t.product_id,domain_id:t.domain_id})},clear_cache_for_domain_id(e,t){e.commit("clear",t)},clear_cache(e){e.commit("clear")},on_logout(e){e.state.product_cache.clearAccessExpirations()}},hM={product_cache:new class{products;productItems;constructor(){this.products={},this.productItems={}}getProduct(e,t){return this.products[e]?.[t??lM]?.product}getProductAccessExpiration(e,t){return this.products[e]?.[t??lM]?.expiration}getProductByAlias(e,t){const n=Object.entries(this.products).find(t=>{const n=t[1];if(null==n)return!1;const r=Object.entries(n).at(0)?.[1].product;if(null==r)return!1;const i=Tf(r);return i?.alias===e})?.[0];return this.getProduct(Number(n),t)}addToCache(e,t){const n=Tf(e);null!=n&&(this._initializeProduct(n.videoId,t),this.products[n.videoId][t??lM].product=e)}addAccessExpirationToCache(e){this._initializeProduct(e.videoId,e.domainId),this.products[e.videoId][e.domainId??lM].expiration={...e,cachedTimeMs:Date.now()}}removeFromCache(e,t){if(null==t)return void(this.products[e]=void 0);const n=this.products[e];null!=n&&(n[t]={product:void 0,expiration:void 0})}getProductItems(e,t){return this.productItems[e]?.[t??lM]}addProductItemsToCache(e,t,n){null==this.productItems[t]&&(this.productItems[t]={}),this.productItems[t][n??lM]=e}removeProductItemsFromCache(e,t){if(null==t)return void(this.productItems[e]=void 0);const n=this.productItems[e];null!=n&&(n[t]=void 0)}clearForDomain(e){this.products=Object.fromEntries(Object.entries(this.products).map(t=>{if(null==t[1])return t;const n=Object.entries(t[1]).filter(t=>t[0]!==`${e}`),r=Object.fromEntries(n);return t[1]=r,t})),this.productItems=Object.fromEntries(Object.entries(this.productItems).map(t=>{if(null==t[1])return t;const n=Object.entries(t[1]).filter(t=>t[0]!==`${e}`),r=Object.fromEntries(n);return t[1]=r,t}))}clear(){this.products={},this.productItems={}}
730clearAccessExpirations(){Object.entries(this.products).forEach(e=>{null!=e[1]&&Object.entries(e[1]).forEach(e=>{e[1].expiration=void 0})})}_initializeProduct(e,t){this.products[e]=this.products[e]??{},this.products[e][t??lM]=this.products[e][t??lM]??{[t??lM]:{product:void 0,expiration:void 0}}}}},pM={namespaced:!0,state:()=>hM,getters:cM,mutations:uM,actions:dM},fM=Object.freeze(Object.defineProperty({__proto__:null,default:pM,initial_state:hM},Symbol.toStringTag,{value:"Module"})),mM={product_infos:void 0,product_seasons:void 0,product_access_expiration:{},selected_season_id:void 0,product_items:void 0,selected_item_id:void 0,fetching_product_items:!1,related_videos:void 0,related_videos_nb:void 0,fetching_related_videos:!1},_M={namespaced:!0,state:()=>mM,getters:{product_infos:e=>e.product_infos,product_seasons:e=>e.product_seasons,selected_season_id:e=>e.selected_season_id,selected_season:e=>e.product_seasons?.find(t=>{const n=Tf(t);return n?.videoId===e.selected_season_id}),product_items:e=>e.product_items,selected_item_id:e=>e.selected_item_id,selected_item:e=>e.product_items?.find(t=>{const n=Tf(t);return n?.videoId===e.selected_item_id}),fetching_product_items:e=>e.fetching_product_items,related_videos:e=>e.related_videos,related_videos_nb:e=>e.related_videos_nb,fetching_related_videos:e=>e.fetching_related_videos,can_fetch_more_related_videos:e=>null==e.related_videos_nb||e.related_videos_nb>(e.related_videos?.length??0),background_image:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.images.landscapes.large||t?.images.landscapes.medium||t?.images.landscapes.small},background_image_medium:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.images.landscapes.medium||t?.images.landscapes.small},background_image_small:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.images.landscapes.small},product_id:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.videoId},product_title:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.title},product_tagline:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.tagline},release_year:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.productionYear},is_kids_content:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.isKids??!1},duration:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.durationSeconds},rating:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.starRating?.average??5},description:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.descriptionHtml},filmmakers:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return null==t?void 0:If(t.taxonomies.filmmakers)},cast:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return null==t?void 0:If(t.taxonomies.cast)},languages:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return null==t?void 0:If(t.taxonomies.languages)},subjects:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return null==t?void 0:If(t.taxonomies.subjects)},supplier:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.taxonomies.supplier.name},tags:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return null==t?void 0:If(t.taxonomies.tags)},nb_items:e=>{if(null==e.product_infos||e.product_infos.type===wu.Video)return;return Tf(e.product_infos).itemCount},ppr:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.hasPublicPerformanceRights??!1},trailer_id:e=>{const t=null==e.product_infos?void 0:Tf(e.product_infos);return t?.youtubeTrailerId},product_type:e=>e.product_infos?.type??wu.Video,product_instance:e=>null==e.product_infos?void 0:Tf(e.product_infos)},mutations:{set_product(e,t){const n=null==e.product_infos?void 0:Tf(e.product_infos),r=null==t?void 0:Tf(t);r?.videoId!==n?.videoId&&(e.product_items=void 0,e.product_seasons=void 0,e.related_videos=void 0),e.product_infos=t},set_product_access_expiration(e,t){e.product_access_expiration=null!=t?{...e.product_access_expiration,[t.product_id]:t.expiration}:{}},set_product_seasons(e,t){e.product_seasons=t},set_product_items(e,t){e.product_items=t},set_selected_season_id(e,t){e.selected_season_id=t},set_selected_item_id(e,t){e.selected_item_id=t},set_fetching_product_items(e,t){e.fetching_product_items=t},set_related_videos(e,t){e.related_videos=t},add_related_videos(e,t){e.related_videos=e.related_videos?.concat(t)??t},set_related_videos_nb(e,t){e.related_videos_nb=t},set_fetching_related_videos(e,t){e.fetching_related_videos=t}},actions:{async fetch_product_info(e,t){try{const n=await e.dispatch("get_product_info",t);return e.commit("set_product",n),Promise.resolve(n)}catch(n){return Promise.reject(n)}},async fetch_product_items(e){if(null==e.state.product_infos)return Promise.resolve(!1);e.commit("set_fetching_product_items",!0),e.commit("set_product_items",void 0);const t=await e.dispatch("get_child_items",e.state.product_infos);return e.commit("set_product_items",t),e.commit("set_fetching_product_items",!1),Promise.resolve(null!=t)},async fetch_product_seasons(e){if(null==e.state.product_infos)return Promise.resolve(!1);e.commit("set_fetching_product_items",!0);const t=await e.dispatch("get_child_items",e.state.product_infos);return e.commit("set_product_seasons",t),e.commit("set_fetching_product_items",!1),Promise.resolve(null!=t)},async fetch_season_items(e){const t=e.getters.selected_season;if(null==t)return Promise.resolve(!1);e.commit("set_fetching_product_items",!0),e.commit("set_product_items",void 0);const n=await e.dispatch("get_child_items",t);return e.commit("set_product_items",n),e.commit("set_fetching_product_items",!1),Promise.resolve(null!=n)},async fetch_product_access_expiration(e,t){try{const n=await e.dispatch("get_product_access_expiration",t);return e.commit("set_product_access_expiration",{expiration:n,product_id:t.product_id}),Promise.resolve(n)}catch(n){return Promise.reject(n)}},async get_child_items(e,t){const n=Tf(t);if(null==n||e.state.product_infos?.type===wu.Video)return Promise.resolve(void 0);{const i=null==this.$router.currentRoute.query.vp?e.rootGetters["site/domain_id"]:void 0,s=e.rootGetters["product_cache/items_for_product"](t,i);if(null!=s)return Promise.resolve(s);try{const t=await this.$kapi.instance().videoControllerGetItems({videoId:n.videoId,domainId:i,ageRatingDomainId:e.rootGetters["site/domain_id"]??e.rootGetters["domain_cache/domain_for_stem"](this.$router.currentRoute.query.vp)?.domainId,xVersion:ju.XVersion});return e.dispatch("product_cache/add_product_items",{product_id:n.videoId,product_items:t.data.list,domain_id:i},{root:!0}),Promise.resolve(t.data.list)}catch(r){return Promise.resolve(void 0)}}},async fetch_related_videos(e,t=!1){const n=null==e.state.product_infos?void 0:Tf(e.state.product_infos);if(null==n||e.state.fetching_related_videos)return Promise.reject(new Error("Product is undefined or already fetching related videos"));{e.commit("set_fetching_related_videos",!0);const i=e.rootGetters["site/domain_id"],s=null!=i?void 0:e.rootGetters["site/webshop"].id,o=e.rootGetters["site/is_in_kids_mode"],a=t?(e.state.related_videos?.length??0)/10:0;if(!Number.isInteger(a))return Promise.resolve(!1);try{const r=await GR.searchControllerSearchVideos(this.$kapi,{xVersion:ju.XVersion,rfp:"exclude",relatedTo:n.videoId,domainId:i,webshopId:s,isKids:o,page:a,perPage:10});return t?e.commit("add_related_videos",r.data.list):(e.commit("set_related_videos_nb",r.data.count),e.commit("set_related_videos",r.data.list)),Promise.resolve(!0)}catch(r){return Promise.reject(r)}finally{e.commit("set_fetching_related_videos",!1)}}},async get_product_info(e,t){const n=t.use_current_domain?e.rootGetters["site/domain_id"]:void 0,r=e.rootGetters["product_cache/product_for_id"](t.product_id,n);if(null!=r)return Promise.resolve(r);try{const r=this.$router.currentRoute.query.vp??this.$router.currentRoute.params.subpath,i=await this.$kapi.instance().videoControllerGetOne({videoId:t.product_id,domainId:n,ageRatingDomainId:e.rootGetters["site/domain_id"]??e.rootGetters["domain_cache/domain_for_stem"](r)?.domainId,xVersion:ju.XVersion});return e.dispatch("product_cache/add_product",{product:i.data,domain_id:n},{root:!0}),Promise.resolve(i.data)}catch(i){return Promise.reject(ju.unwrapKapiError(i))}},async get_product_info_by_alias(e,t){const n=t.use_current_domain?e.rootGetters["site/domain_id"]:void 0,r=null!=n?void 0:e.rootGetters["site/webshop"].id,i=e.rootGetters["product_cache/product_for_alias"](t.product_alias,n);if(null!=i)return Promise.resolve(i);try{const i=await this.$kapi.instance().videoControllerGetByAlias({alias:t.product_alias,domainId:n,ageRatingDomainId:e.rootGetters["site/domain_id"]??e.rootGetters["domain_cache/domain_for_stem"](this.$router.currentRoute.query.vp)?.domainId,webshopId:r,xVersion:ju.XVersion});return e.dispatch("product_cache/add_product",{product:i.data,domain:n},{root:!0}),Promise.resolve(i.data)}catch(s){return Promise.reject(ju.unwrapKapiError(s))}},async get_product_access_expiration(e,t){if(!e.rootGetters["site/products_have_access_windows"])return Promise.resolve(void 0);const n=e.rootGetters["site/domain_id"],r=e.rootGetters["product_cache/product_access_expiration_for_id"](t.product_id,n);if(null!=r&&!t.skip_cache&&Date.now()-r.cachedTimeMs<3e5)return Promise.resolve(r);try{const r=await this.$kapi.instance().historyControllerGetVideoAccessRemainingTime({userId:e.rootGetters["user/userId"],videoId:t.product_id,domainId:n,xVersion:ju.XVersion});return e.dispatch("product_cache/add_product_access_expiration",{product_access_expiration:r.data},{root:!0}),Promise.resolve(r.data)}catch(i){return console.error(ju.unwrapKapiError(i)),Promise.resolve(void 0)}},select_product_season_id(e,t){e.commit("set_selected_season_id",t),e.commit("set_selected_item_id",void 0)},select_product_item_id(e,t){e.commit("set_selected_item_id",t)},on_logout(e){e.commit("set_product",void 0),e.commit("set_product_access_expiration",void 0),e.commit("set_product_seasons",void 0),e.commit("set_selected_season_id",void 0),e.commit("set_product_items",void 0),e.commit("set_selected_item_id",void 0),e.commit("set_related_videos",void 0),e.commit("set_related_videos_nb",void 0)},on_kids_adult_switch(e){e.commit("set_related_videos",void 0),e.commit("set_related_videos_nb",void 0)},on_domain_change(e){e.commit("set_product_access_expiration",void 0)}}},gM=Object.freeze(Object.defineProperty({__proto__:null,default:_M,initial_state:mM},Symbol.toStringTag,{value:"Module"}));var yM=(e=>(e.Relevance="relevance",e.Popular="popular",e.RecentlyAdded="recently-added",e.AZ="a-z",e.ZA="z-a",e))(yM||{});const vM=[{method:"relevance",name:"Most relevant"},{method:"popular",name:"Most popular"},{method:"recently-added",name:"Most recently added"},{method:"a-z",name:"Title: A-Z"},{method:"z-a",name:"Title: Z-A"}];class bM{key;values;constructor(e){this.key=e,this.values=[]}hasHumanValue(e){return this.humanValues().includes(e)}hasValues(){return this.values.length>0}}class wM extends bM{humanValues(){return this.values.map(e=>e.value)}hasValues(){return(this.values.find(e=>e.value)?.count??0)>0}getValue(e){return this.values.find(t=>t.value===e)}serialize(){if(this.hasValues())return this.values[0]?.value}getCombinedFilter(e){return this.values.find(e=>e.value)?this.values:e.values.find(e=>e.value)?e.values:[]}addValues(e){this.values.push(...e)}removeValue(e){this.values=this.values.filter(t=>t.value!==e)}}class kM extends bM{humanValues(){return this.values.map(e=>e.name)}
730getValue(e){return this.values.find(t=>t.name===e)}getCombinedFilter(e){const t=this.values.concat(e.values),n={};return t.forEach(e=>{e.count>0&&(null!=n[e.name]?n[e.name].count+=e.count:n[e.name]={...e})}),Object.values(n).sort((e,t)=>t.count-e.count)}addValues(e){this.values.push(...e)}removeValue(e){this.values=this.values.filter(t=>t.name!==e)}}class CM extends kM{serialize(){if(this.hasValues())return this.values.map(e=>e.code).join()}}class TM extends kM{serialize(){if(this.hasValues())return this.values.map(e=>e.name).join()}}class SM extends kM{serialize(){if(this.hasValues())return this.values.map(e=>e.id).join()}}class xM extends bM{humanValues(){return this.values.map(e=>e.value.toString())}getValue(e){return this.values.find(t=>t.value===parseInt(e))}serialize(){if(this.hasValues())return[...Array(this.values[0]?.value+1)].map((e,t)=>t).join(",")}getCombinedFilter(e){return this.values.filter(e=>e.count>0)}addValues(e){this.values=e}removeValue(e){this.values=this.values.filter(t=>t.value!==parseInt(e))}}class EM extends xM{humanValues(){return this.values.slice().sort((e,t)=>e.value<t.value?-1:1).map(e=>0===e.value?"0 tickets".localized():"{tickets} tickets or less".localized({tickets:e.value},e.value))}}class IM{audioDescriptionFilterOptions;captionFilterOptions;captionsLanguageFilterOptions;languageFilterOptions;pprFilterOptions;termFilterOptions;ticketFilterOptions;constructor(e){this.audioDescriptionFilterOptions=new wM("audioDescriptionFilterOptions"),this.captionFilterOptions=new wM("captionFilterOptions"),this.captionsLanguageFilterOptions=new CM("captionsLanguageFilterOptions"),this.languageFilterOptions=new TM("languageFilterOptions"),this.pprFilterOptions=new wM("pprFilterOptions"),this.termFilterOptions=new SM("termFilterOptions"),this.ticketFilterOptions=new EM("ticketFilterOptions"),null!=e&&this._setFilterValues(e)}filtersHaveValues(){return Object.values(this).some(e=>e.hasValues())}activeFilterCount(){return Object.values(this).reduce((e,t)=>e+t.values.length,0)}getMergedFilterOptions(e){const t=new IM;return t.keys().forEach(n=>{t[n].values=this[n].getCombinedFilter(e[n])}),t}keys(){return["audioDescriptionFilterOptions","captionFilterOptions","captionsLanguageFilterOptions","languageFilterOptions","pprFilterOptions","termFilterOptions","ticketFilterOptions"]}_setFilterValues(e){this.keys().forEach(t=>{this[t].values=e[t]??[]})}}var AM=(e=>(e.COLLECTION="collection",e.MOST_POPULAR="most_popular",e.RFP="rfp",e))(AM||{});const PM={most_popular_results:e=>e.results.most_popular.results,most_popular_total_count:e=>e.results.most_popular.total_count,most_popular_is_fetching_results:e=>e.results.most_popular.is_fetching_initial_results,most_popular_is_fetching_next_page:e=>e.results.most_popular.is_fetching_next_page,rfp_results:e=>e.results.rfp.results,rfp_total_count:e=>e.results.rfp.total_count,rfp_is_fetching_results:e=>e.results.rfp.is_fetching_initial_results,rfp_is_fetching_next_page:e=>e.results.rfp.is_fetching_next_page,query:e=>e.query,collection_total_count:e=>e.results.collection.total_count,collection_results:e=>e.results.collection.results,available_filters:e=>e.available_filters,active_filters:e=>e.active_filters,value_active_filter_options:e=>e.active_filters.keys().reduce((t,n)=>(t[n]=e.active_filters[n],t),{}),has_active_filters:e=>e.active_filters.filtersHaveValues(),active_filter_count:e=>e.active_filters.activeFilterCount(),current_sort_option:e=>e.current_sort_option,collection_is_fetching_results:e=>e.results.collection.is_fetching_initial_results,collection_is_fetching_next_page:e=>e.results.collection.is_fetching_next_page,suggested_matches:e=>e.suggested_matches,can_fetch_more_suggested_matches:e=>e.can_fetch_more_suggested_matches,has_no_search_results:e=>0===e.results.collection.total_count&&0===e.results.rfp.total_count&&!Va.isEmpty(e.query),has_active_term_filters:e=>e.active_filters.termFilterOptions.hasValues()},OM={set_results(e,t){e.results[t.key].results=t.value},add_more_results(e,t){e.results[t.key].results=e.results[t.key].results.concat(t.value)},set_total_count(e,t){e.results[t.key].total_count=t.value},set_is_fetching(e,t){e.results[t.key].is_fetching_initial_results=t.value},set_is_fetching_more(e,t){e.results[t.key].is_fetching_next_page=t.value},set_search_result_filters(e,t){e.results[t.key].filters=t.value},set_query(e,t){e.query=t},set_available_filters(e,t){e.available_filters=t},set_active_filters(e,t){e.active_filters=t},set_current_sort_option(e,t){e.current_sort_option=t},set_suggested_matches(e,t){e.suggested_matches=t},add_suggested_matches(e,t){e.suggested_matches=e.suggested_matches.concat(t)},set_can_fetch_more_suggested_matches(e,t){e.can_fetch_more_suggested_matches=t},set_active_search_tab(e,t){e.active_search_tab=t},set_is_fetching_from_changed_filters(e,t){e.is_fetching_from_changed_filters=t},add_value_to_filter(e,t){Array.isArray(t.value)||(t.value=[t.value]),t.filter.addValues(t.value)},remove_value_from_filter(e,t){t.filter.removeValue(t.value)}},LM={fetch_most_popular_results:(e,t=!0)=>(t&&e.commit("set_active_filters",new IM),e.dispatch("fetch_most_popular_results_with_options",!1)),fetch_more_most_popular_results:e=>!e.state.results.most_popular.is_fetching_initial_results&&!e.state.results.most_popular.is_fetching_next_page&&e.state.results.most_popular.total_count>e.state.results.most_popular.results.length?e.dispatch("fetch_most_popular_results_with_options",!0):Promise.resolve(void 0),fetch_most_popular_results_with_options(e,t){e.dispatch("query_with_options",{append_results:t,update_available_filters:!0,preserve_active_filters:!0,fetch_result_type_only:"most_popular"})},query(e,t){e.dispatch("query_with_options",{query:t.query,append_results:!1,update_available_filters:!0,preserve_active_filters:!1,debounced:!0,fetch_result_type_only:t.result_type})},query_with_options(e,t){const n=t.append_results?"set_is_fetching_more":"set_is_fetching";null!=t.fetch_result_type_only?e.commit(n,{key:t.fetch_result_type_only,value:!0}):(e.commit(n,{key:"collection",value:!0}),e.commit(n,{key:"rfp",value:!0}));const r=t.update_available_filters&&!t.preserve_active_filters?new IM:e.state.active_filters,i={kapi_plugin:this.$kapi,domainId:e.rootGetters["site/domain_id"],query:t.query,sort:e.state.current_sort_option,webshopId:e.rootGetters["site/webshop"].id,filters:r,kids:e.rootGetters["site/is_in_kids_mode"],rfp:void 0,callback:async(r,i="collection",s)=>{if("most_popular"!==i&&e.commit("set_query",t.query),null!=r&&(t.append_results?e.commit("add_more_results",{key:i,value:r.list}):(e.commit("set_total_count",{key:i,value:r.count}),e.commit("set_results",{key:i,value:r.list})),t.update_available_filters)){const n=new IM(r);if(t.preserve_active_filters){if(e.getters.has_active_term_filters){const t=e.state.active_filters.termFilterOptions.values,r=n.termFilterOptions.values,i=t.filter(e=>null==r.find(t=>
730t.id===e.id)).map(t=>e.dispatch("shelves/fetch_term_info",t.id,{root:!0}));try{const t=(await Promise.all(i)).map(e=>({id:e.termId,name:e.name,count:0}));e.commit("add_value_to_filter",{filter:n.termFilterOptions,value:t})}catch{}}}else e.commit("set_active_filters",new IM);e.commit("set_search_result_filters",{key:i,value:n}),e.commit("set_available_filters",n),e.getters.has_active_filters&&e.dispatch("remove_invalid_active_filters",n)}if(e.commit(n,{key:i,value:!1}),"most_popular"===i){if(t.update_available_filters){const t=e.state.results.most_popular.filters.getMergedFilterOptions(new IM);e.commit("set_available_filters",t)}e.commit("set_is_fetching_from_changed_filters",!1)}else if(!e.getters.collection_is_fetching_results&&!e.getters.rfp_is_fetching_results&&t.update_available_filters){const t=e.state.results.collection.filters.getMergedFilterOptions(e.state.results.rfp.filters);e.commit("set_available_filters",t),e.commit("set_is_fetching_from_changed_filters",!1)}if(null!=s)throw s}},s=t.debounced?MM:jM,o=t.debounced?NM:UM;if(null!=t.fetch_result_type_only){const n=t.append_results?e.state.results[t.fetch_result_type_only].results.length/40:0;"rfp"===t.fetch_result_type_only?o({...i,pageToFetch:n,result_key:"rfp"}):s({...i,pageToFetch:n,result_key:t.fetch_result_type_only})}else o({...i,pageToFetch:t.append_results?e.state.results.rfp.results.length/40:0,result_key:"rfp"}),s({...i,pageToFetch:t.append_results?e.state.results.collection.results.length/40:0,result_key:"collection"})},fetch_more(e,t){!e.state.results[t].is_fetching_initial_results&&!e.state.results[t].is_fetching_next_page&&e.state.results[t].total_count>e.state.results[t].results.length&&e.dispatch("query_with_options",{query:e.state.query,append_results:!0,update_available_filters:!1,preserve_active_filters:!0,fetch_result_type_only:t})},update_active_filters(e,t){if(t.remove_value){if(!e.state.active_filters[t.key].hasHumanValue(t.value))return;e.commit("remove_value_from_filter",{filter:e.state.active_filters[t.key],value:t.value})}else{const n=e.state.available_filters?.[t.key].getValue(t.value);if(null==n||e.state.active_filters[t.key].hasHumanValue(t.value))return;e.commit("add_value_to_filter",{filter:e.state.active_filters[t.key],value:n})}e.commit("set_active_filters",e.state.active_filters),e.commit("set_is_fetching_from_changed_filters",!0),e.dispatch("query_with_options",{query:e.state.query,append_results:!1,update_available_filters:!0,preserve_active_filters:!0,debounced:!1,fetch_result_type_only:BM(e)})},remove_invalid_active_filters(e,t){["languageFilterOptions","captionLanguageFilterOptions"].forEach(n=>{e.state.active_filters[n]?.values.forEach(r=>{t[n].hasHumanValue(r.name)||e.commit("remove_value_from_filter",{filter:e.state.active_filters[n],value:r.name})})})},clear_active_filters(e){Va.isEmpty(e.state.query)?e.dispatch("set_most_popular_filters"):(e.commit("set_current_sort_option",yM.Relevance),e.commit("set_is_fetching_from_changed_filters",!0)),e.commit("set_active_filters",new IM),e.dispatch("query_with_options",{query:e.state.query,append_results:!1,update_available_filters:!0,preserve_active_filters:!0,debounced:!1,fetch_result_type_only:BM(e)})},change_sort_option(e,t){e.commit("set_current_sort_option",t),e.commit("set_is_fetching_from_changed_filters",!0),Va.isEmpty(e.state.query)&&!e.getters.has_active_term_filters?e.dispatch("fetch_most_popular_results",!1):e.dispatch("query_with_options",{query:e.state.query,append_results:!1,update_available_filters:!0,preserve_active_filters:!0,debounced:!1,fetch_result_type_only:BM(e)})},fetch_suggested_matches:(e,t)=>e.dispatch("fetch_suggested_matches_with_options",{query:t,append_results:!1}),fetch_more_suggested_matches:e=>e.dispatch("fetch_suggested_matches_with_options",{query:e.state.query,append_results:!0}),fetch_suggested_matches_with_options(e,t){const n=e.rootGetters["site/domain_id"],r=e.rootGetters["site/is_in_kids_mode"],i=t.append_results?e.state.suggested_matches.length/20:0;RM(this.$kapi,n,t.query,i,r,(n,r)=>{if(null==n)throw r;t.append_results?e.commit("add_suggested_matches",n.list):e.commit("set_suggested_matches",n.list),e.commit("set_can_fetch_more_suggested_matches",20*(i+1)<n.count)})},clear_suggested_matches(e){e.commit("set_suggested_matches",[]),e.commit("set_can_fetch_more_suggested_matches",!0)},on_domain_change(e){e.dispatch("reset"),e.dispatch("clear_most_popular_results")},on_kids_adult_switch(e){e.dispatch("reset"),e.dispatch("clear_most_popular_results")},reset(e){RM.cancel(),MM.cancel(),NM.cancel(),e.commit("set_query",void 0),e.commit("set_total_count",{key:"c
730ollection",value:0}),e.commit("set_results",{key:"collection",value:[]}),e.commit("set_available_filters",void 0),e.commit("set_active_filters",new IM),e.commit("set_current_sort_option",yM.Popular),e.commit("set_is_fetching",{key:"collection",value:!1}),e.commit("set_is_fetching_more",{key:"collection",value:!1}),e.commit("set_total_count",{key:"rfp",value:0}),e.commit("set_results",{key:"rfp",value:[]}),e.commit("set_is_fetching",{key:"rfp",value:!1}),e.commit("set_is_fetching_more",{key:"rfp",value:!1}),e.dispatch("clear_suggested_matches")},clear_most_popular_results(e){e.commit("set_total_count",{key:"most_popular",value:0}),e.commit("set_results",{key:"most_popular",value:[]}),e.commit("set_is_fetching",{key:"most_popular",value:!1}),e.commit("set_is_fetching_more",{key:"most_popular",value:!1})},clear_query(e){e.commit("set_query","")},set_most_popular_filters(e){e.commit("set_current_sort_option",yM.Popular),e.commit("set_available_filters",e.state.results.most_popular.filters)}},DM=1e3,RM=kT(async function(e,t,n,r,i,s){if(null==t||Va.isEmpty(n))return void s({count:0,list:[]});try{s((await e.instance().searchControllerSearchTerms({query:n,domainId:t,sort:"relevance",isKids:i,page:r,perPage:20,xVersion:ju.XVersion})).data)}catch(o){s(void 0,ju.unwrapKapiError(o))}},DM);const MM=kT(jM,DM),NM=kT(UM,DM);function jM(e){$M({...e,rfp:null==e.domainId?void 0:"exclude"})}function UM(e){$M({...e,rfp:"only"})}async function $M(e){if(null!=e.domainId||null!=e.webshopId){const n=null!=e.domainId?void 0:e.webshopId;try{const t=await GR.searchControllerSearchVideos(e.kapi_plugin,{xVersion:ju.XVersion,termFilter:e.filters.termFilterOptions.serialize(),languageFilter:e.filters.languageFilterOptions.serialize(),query:e.query,sort:e.sort,rfp:e.rfp,pprFilter:e.filters.pprFilterOptions.serialize(),captionsFilter:e.filters.captionFilterOptions.serialize(),captionsLanguageFilter:e.filters.captionsLanguageFilterOptions.serialize(),ticketFilter:e.filters.ticketFilterOptions.serialize(),audioDescriptionFilter:e.filters.audioDescriptionFilterOptions.serialize(),domainId:e.domainId,webshopId:n,isKids:e.kids,page:e.pageToFetch,perPage:40});e.callback(t.data,e.result_key)}catch(t){e.callback(void 0,e.result_key,ju.unwrapKapiError(t))}}}function BM(e){return Va.isEmpty(e.state.query)&&!e.getters.has_active_term_filters?"most_popular":e.rootGetters["site/search_result_type_for_rfp"]}const FM={results:[],total_count:0,is_fetching_initial_results:!1,is_fetching_next_page:!1,filters:new IM},qM={query:void 0,available_filters:void 0,active_filters:new IM,current_sort_option:yM.Popular,suggested_matches:[],can_fetch_more_suggested_matches:!0,results:{collection:{...FM},most_popular:{...FM},rfp:{...FM}},active_search_tab:"collection",is_fetching_from_changed_filters:!1},VM={namespaced:!0,state:()=>qM,getters:PM,mutations:OM,actions:LM},HM=Object.freeze(Object.defineProperty({__proto__:null,SearchResultTypes:AM,default:VM,initial_state:qM},Symbol.toStringTag,{value:"Module"})),zM={categories:void 0,shelves:void 0,shelves_nb:void 0,parent_shelves:void 0,parent_shelves_nb:void 0,fetching:!1,fetching_more:!1,grid:void 0,grid_total_items:void 0,current_term:void 0,parent_terms:[],cached_terms:{}},GM={namespaced:!0,state:()=>zM,getters:{categories:e=>e.categories,shelves:e=>e.shelves,shelves_nb:e=>e.shelves_nb,parent_shelves:e=>e.parent_shelves,parent_shelves_nb:e=>e.parent_shelves_nb,can_fetch_more_shelves:e=>null==e.shelves_nb||e.shelves_nb>(e.shelves?.length??0),grid:e=>e.grid,grid_total_items:e=>e.grid_total_items,can_fetch_more_grid_items:e=>null==e.grid_total_items||e.grid_total_items>(e.grid?.length??0),fetching:e=>e.fetching,fetching_more:e=>e.fetching_more,current_term:e=>e.current_term,parent_terms:e=>e.parent_terms,last_parent_term:e=>e.parent_terms[e.parent_terms.length-1],cached_terms:e=>e.cached_terms},mutations:{set_categories(e,t){e.categories=t},set_shelves(e,t){e.shelves=t},add_shelves(e,t){e.shelves=e.shelves?.concat(t)??t},set_shelves_nb(e,t){e.shelves_nb=t},set_parent_shelves(e,t){e.parent_shelves=t},set_parent_shelves_nb(e,t){e.parent_shelves_nb=t},set_fetching(e,t){e.fetching=t},set_fetching_more(e,t){e.fetching_more=t},set_grid(e,t){e.grid=t},add_grid_items(e,t){e.grid=e.grid?.concat(t)??t},set_grid_total_items(e,t){e.grid_total_items=t},set_current_term(e,t){e.current_term=t},clear_parent_terms(e){e.parent_terms=[]},push_parent_term(e,t){e.parent_terms=e.parent_terms?.concat([t])},pop_parent_term(e){0!==e.parent_terms.length&&(e.parent_terms=e.parent_terms.slice(0,e.parent_terms.length-1))},set_cached_terms(e,t){e.cached_terms=t},add_term_to_cache(e,t){e.cached_terms[t.termId]=t}},actions:{async fetch_categories(e){const t=e.rootGetters["site/domain"];if(null==t)return Promise.resolve(void 0);const n=e.rootGetters["site/is_in_kids_mode"];if(n&&!t.hasKids)return Promise.resolve(void 0);try{const r=await this.$kapi.instance().categoryControllerGetCategories({domainId:t.domainId,isKids:n,xVersion:ju.XVersion});e.commit("set_categories",r.data.list),r.data.list.forEach(t=>
730{t.terms.forEach(t=>{e.commit("add_term_to_cache",t)})})}catch(r){throw ju.unwrapKapiError(r)}},fetch_catalog_shelves(e,t){e.dispatch("fetch_shelves_with_options",{add_results:!1,kids:t})},fetch_more_catalog_shelves(e,t){e.state.fetching_more||e.dispatch("fetch_shelves_with_options",{add_results:!0,kids:t})},fetch_category_shelves:e=>null!=e.state.current_term?.termId?e.dispatch("fetch_shelves_with_options",{add_results:!1,kids:e.rootGetters["site/is_in_kids_mode"],term_id:e.state.current_term.termId}):Promise.resolve(),fetch_more_category_shelves(e){e.state.fetching_more||null==e.state.current_term?.termId||e.dispatch("fetch_shelves_with_options",{add_results:!0,kids:e.rootGetters["site/is_in_kids_mode"],term_id:e.state.current_term.termId})},async fetch_shelves_with_options(e,t){if(!t.add_results||e.getters.can_fetch_more_shelves){t.add_results?e.commit("set_fetching_more",!0):e.commit("set_fetching",!0);try{const n=e.rootGetters["site/webshop"].id,r=t.add_results?(e.state.shelves?.length??0)/7:0;let i;if(null!=t.term_id){const s=e.rootGetters["site/domain_id"];i=this.$kapi.instance().shelfGroupControllerGetTerm({termId:t.term_id,domainId:s,webshopId:null==s?n:void 0,isKids:t.kids,page:r,shelvesPerPage:7,videosPerShelf:10,xVersion:ju.XVersion})}else i=this.$kapi.instance().shelfGroupControllerGetWebshopCatalog({webshopId:n,isKids:t.kids,page:r,shelvesPerPage:7,videosPerShelf:10,xVersion:ju.XVersion});const s=await i;t.add_results?e.commit("add_shelves",s.data.list):(e.commit("set_shelves_nb",s.data.count),e.commit("set_shelves",s.data.list))}catch(n){const t=ju.unwrapKapiError(n);if(404!==t.httpCode)throw t;e.commit("set_shelves_nb",0),e.commit("set_shelves",[])}finally{t.add_results?e.commit("set_fetching_more",!1):e.commit("set_fetching",!1)}}return Promise.resolve()},async fetch_more_shelf_items(e,t){const n=e.state.shelves?.find(e=>e.shelfId===t);if(null!=n)try{const r=e.rootGetters["site/domain_id"],i=null!=r?void 0:e.rootGetters["site/webshop"].id,s=n.list[0].isKids??!1,o=(n.list.length??0)/10;if(!Number.isInteger(o))return;const a=await this.$kapi.instance().shelfControllerGetShelf({shelfId:t,domainId:r,webshopId:i,isKids:s,page:o,perPage:10,xVersion:ju.XVersion}),l=n.list.concat(a.data.list),c={...n,list:l},u=e.state.shelves?.map(e=>e.shelfId===t?c:e);e.commit("set_shelves",u)}catch(r){throw ju.unwrapKapiError(r)}},fetch_shelf_items_for_grid:(e,t)=>Va.isEmpty(t)?Promise.resolve(!1):e.dispatch("fetch_category_grid_with_options",{add_results:!1,kids:e.rootGetters["site/is_in_kids_mode"],shelf_id:t}),fetch_more_shelf_items_for_grid(e){const t=e.state.shelves?.at(0)?.shelfId;return(Va.isEmpty(t)||e.state.fetching_more)&&Promise.resolve(void 0),e.dispatch("fetch_category_grid_with_options",{add_results:!0,kids:e.rootGetters["site/is_in_kids_mode"],shelf_id:t})},async fetch_term_info(e,t){if(null!=e.state.cached_terms[t])return Promise.resolve(e.state.cached_terms[t]);try{const n=await this.$kapi.instance().termDataControllerGetTermData({termId:t,xVersion:ju.XVersion});return e.commit("add_term_to_cache",n.data),Promise.resolve(n.data)}catch(n){throw ju.unwrapKapiError(n)}},fetch_category_grid(e){const t=[e.getters.last_parent_term?.termId,e.state.current_term?.termId].filter(e=>null!=e);return e.dispatch("fetch_category_grid_with_options",{add_results:!1,kids:e.rootGetters["site/is_in_kids_mode"],term_ids:t})},fetch_more_category_grid(e){if(!e.state.fetching_more){const t=[e.getters.last_parent_term?.termId,e.state.current_term?.termId].filter(e=>null!=e);return e.dispatch("fetch_category_grid_with_options",{add_results:!0,kids:e.rootGetters["site/is_in_kids_mode"],term_ids:t})}return Promise.resolve(!1)},async fetch_category_grid_with_options(e,t){if(!t.add_results||e.getters.can_fetch_more_grid_items){const r=e.rootGetters["site/domain"],i=null==r?e.rootGetters["site/webshop"].id:void 0;if(null==r&&null==i)return Promise.resolve(!1);if(t.kids&&!(r?.hasKids??1))return Promise.resolve(!1);const s=t.add_results?(e.state.grid?.length??0)/15:0,o=t.term_ids?.join();t.add_results?e.commit("set_fetching_more",!0):e.commit("set_fetching",!0);try{let n;return null!=t.shelf_id?(n=await this.$kapi.instance().shelfControllerGetShelf({shelfId:t.shelf_id,domainId:r?.domainId,webshopId:i,isKids:t.kids,page:s,perPage:15,xVersion:ju.XVersion}),t.add_results?e.commit("add_shelves",n.data.list):e.commit("set_shelves",[n.data])):n=await GR.searchControllerSearchVideos(this.$kapi,{xVersion:ju.XVersion,termFilter:o,rfp:null!=r?"exclude":void 0,domainId:r?.domainId,webshopId:i,isKids:t.kids,page:s,perPage:15}),t.add_results?e.commit("add_grid_items",n.data.list):(e.commit("set_grid_total_items",n.data.count),e.commit("set_grid",n.data.list)),Promise.resolve(!0)}catch(n){return Promise.resolve(!1)}finally{t.add_results?e.commit("set_fetching_more",!1):e.commit("set_fetching",!1)}}return Promise.resolve(!1)},update_current_term(e,t){e.state.current_term?.termId!==t?.termId&&(e.commit("set_current_term",t),e.commit("set_grid_total_items",void 0),e.commit("set_grid",void 0),t?.termId===e.getters.last_parent_term?.termId?(e.commit("set_shelves_nb",e.state.parent_shelves_nb),e.commit("set_shelves",e.state.parent_shelves),e.commit("pop_parent_term")):(e.commit("set_shelves_nb",void 0),e.commit("set_shelves",void 0)))},update_parent_term(e,t){null==t?e.commit("clear_parent_terms"):t.termId!==e.getters.last_parent_term?.termId&&e.commit("push_parent_term",t),t?.termId===e.state.current_term?.termId?(e.commit("set_parent_shelves_nb",e.state.shelves_nb),e.commit("set_parent_shelves",e.state.shelves)):(e.commit("set_parent_shelves_nb",void 0),e.commit("set_parent_shelves",void 0))},on_domain_change:e=>(e.dispatch("reset"),new Promise(t=>{e.dispatch("fetch_categories").then(()=>t()).catch(()=>t())})),on_kids_adult_switch:e=>(e.dispatch("reset"),new Promise(t=>{e.dispatch("fetch_categories").then(()=>t()).catch(()=>t())})),reset(e){e.commit("set_categories",void 0),e.commit("set_shelves_nb",void 0),e.commit("set_shelves",void 0),e.commit("set_parent_shelves_nb",void 0),e.commit("set_parent_shelves",void 0),e.commit("set_current_term",void 0),e.commit("clear_parent_terms",void 0),e.commit("set_cached_terms",{}),e.commit("set_grid_total_items",void 0),e.commit("set_grid",void 0)}}},KM=Object.freeze(Object.defineProperty({__proto__:null,default:GM,initial_state:zM},Symbol.toStringTag,{value:"Module"}));class WM{static async getChannelGuide(){try{return(await Oc.get("/channel-guide.txt")).data}catch(e){return console.error(e),Promise.reject(new Error("Unable to get channel guide"))}}}class XM{ttl;cachedTimeMs;constructor(e,t){this.ttl=e,this.cachedTimeMs=t??Date.now()}isFresh(e){return Date.now()-e<this.ttl}}class YM{banners;freshness;constructor(e){this.banners=e,this.freshness=new XM(864e5)}isFresh(){return this.freshness.isFresh(Date.now())}}const ZM={webshop:e=>e.webshop,is_in_kids_mode:e=>
730e.is_in_kids_mode,require_parental_control_pin:e=>e.require_parental_control_pin,domain:e=>e.domain,environment:e=>e.environment,domain_id:e=>e.domain?.domainId,domain_stem:e=>e.domain?.subdomain,vp_type:e=>e.domain?.institutionType,vp_routing_type:e=>e.domain?.institutionType===Jc.Publiclibrary?"publiclibrary":"university",institution_name:e=>e.domain?.name,show_exit_kids_banner:e=>e.show_exit_kids_banner,is_kids_only_vp:e=>(e.domain?.hasKids&&!e.domain.hasNonKidsSVOD&&!e.domain.hasNonKidsPPU)??!1,is_in_gdpr_region:(e,t,n)=>null!=n.debug.in_gdpr_region.value?n.debug.in_gdpr_region.value:e.is_in_gdpr_region,show_cookie_preferences_menu:e=>e.show_cookie_preferences_menu,channels:e=>e.channels,search_result_type_for_rfp:e=>e.domain?.allowRfp?void 0:AM.COLLECTION,max_tickets:e=>e.domain?.maxTicketsPerMonth,domain_uses_tickets:(e,t)=>null!=t.max_tickets&&!t.is_in_kids_mode,products_have_access_windows:e=>e.domain?.institutionType===Jc.Publiclibrary&&!e.is_in_kids_mode,show_kids_guide_modal:e=>e.show_kids_guide_modal,show_delete_membership_modal:e=>e.show_delete_membership_modal,selected_membership:e=>e.selected_membership,show_delete_playlist_modal:e=>e.show_delete_playlist_modal,selected_playlist:e=>e.selected_playlist,ticket_button_position:e=>e.ticket_button_position,info_banner:(e,t)=>null==t.domain_id?void 0:e.info_banners.banners[t.domain_id]?.banners[0]},JM={set_webshop(e,t){e.webshop=t},set_is_in_kids_mode(e,t){e.is_in_kids_mode=t},set_require_parental_control_pin(e,t){e.require_parental_control_pin=t},set_domain(e,t){e.domain=t},set_environment(e,t){e.environment=t},set_exit_kids_banner(e,t){e.show_exit_kids_banner=t},toggle_menu(e,t){e.show_menu=t},set_is_in_gdpr_region(e,t){e.is_in_gdpr_region=t},set_show_cookie_preferences_menu(e,t){e.show_cookie_preferences_menu=t},set_channels(e,t){e.channels=t},set_ticket_menu(e,t){e.show_ticket_menu=t},set_new_user_intro_modal(e,t){e.show_new_user_intro_modal=t},set_show_kids_guide_modal(e,t){e.show_kids_guide_modal=t},set_show_delete_membership_modal(e,t){e.show_delete_membership_modal=t},membership_selected_for_deletion(e,t){e.selected_membership=t},set_focus_ids(e,t){e.focus_ids={previous:t.previous,fallback:t.fallback}},set_show_delete_playlist_modal(e,t){e.show_delete_playlist_modal=t},playlist_selected_for_deletion(e,t){e.selected_playlist=t},set_ticket_button_position(e,t){e.ticket_button_position=t},add_info_banner(e,t){e.info_banners.setBanner(t.info_banner,t.domain_id)},dismiss_info_banner(e,t){e.info_banners.dismissBanner(t)},clear_dismissed_info_banners(e){e.info_banners.clearDismissedBanners()},set_skip_links(e,t){e.skip_links=t},clear_skip_links(e){e.skip_links=[]}},QM={async nuxtClientInit(e,t){e.commit("set_environment",t.env.ENV_NAME);const n=Ba.instance.get(Ua.kids.name);e.commit("set_is_in_kids_mode",wa.parse(n));const r=Ba.instance.get(Ua.webshop.name);null!=r&&e.commit("set_webshop",r),await e.dispatch("get_gdpr_region_info")},async fetch_institution_from_stem(e,t){if(Va.isEmpty(t))e.commit("set_domain",void 0);else{const r=async()=>{e.getters.is_kids_only_vp&&!e.state.is_in_kids_mode&&await e.dispatch("switch_to_kids"),!(e.state.domain?.hasKids??1)&&e.state.is_in_kids_mode&&await e.dispatch("switch_to_adult",!0);const t=e.dispatch("shelves/on_domain_change",void 0,{root:!0}),n=e.dispatch("mylists/on_domain_change",void 0,{root:!0}),r=e.dispatch("home/on_domain_change",void 0,{root:!0}),i=e.dispatch("search/on_domain_change",void 0,{root:!0}),s=e.dispatch("banner/on_domain_change",void 0,{root:!0}),o=e.dispatch("video_player/on_domain_change",void 0,{root:!0}),a=e.dispatch("product/on_domain_change",void 0,{root:!0});return Promise.all([t,n,r,i,s,o,a])};try{const n=await e.dispatch("get_institution_from_stem",t);e.commit("set_domain",n),await r()}catch(n){return Promise.reject(n)}}},async get_institution_from_stem(e,t){const n=e.rootGetters["domain_cache/domain_for_stem"](t);if(null!=n)return Promise.resolve(n);try{const n=await this.$kapi.instance().institutionControllerGetInstitutionBySubdomain({subdomain:t,xVersion:ju.XVersion});return e.dispatch("domain_cache/add_domain",n.data,{root:!0}),Promise.resolve(n.data)}catch(r){return Promise.reject(ju.unwrapKapiError(r))}},async get_institution_from_domain_id(e,t){const n=e.rootGetters["domain_cache/domain_for_id"](t.id);if(null!=n&&!t.skip_cache)return Promise.resolve(n);try{const n=await this.$kapi.instance().institutionControllerGetInstitution({domainId:t.id,xVersion:ju.XVersion});return e.dispatch("domain_cache/add_domain",n.data,{root:!0}),Promise.resolve(n.data)}catch(r){return Promise.resolve(void 0)}},set_current_region(e,t){if(e.state.webshop.id!==t.id){e.commit("set_webshop",t);const n=Ua.webshop;n.value=t,Ba.instance.set(n)}},async get_gdpr_region_info(e){try{const t=await Oc.get("https://geo.api.overdrive.com/v1/country");e.commit("set_is_in_gdpr_region",t.data.isGdpr)}
730catch(t){console.error("unable to determine GDPR region")}},toggle_cookie_preferences_menu(e,t){e.commit("set_show_cookie_preferences_menu",t)},switch_to_kids:e=>e.dispatch("switch_mode",{enable:!0}),switch_to_adult(e,t){const n=e.rootGetters["user/user"];if(n?.askParentalControlsPin){e.commit("set_require_parental_control_pin",ZS.Exit);const n=new Promise(e=>{const t=this.watch(e=>e.site.require_parental_control_pin,n=>{n===ZS.None&&(e(void 0),t())})});return t?Promise.resolve(void 0):n}{const t={enable:!1};return e.dispatch("switch_mode",t)}},require_parental_controls_pin(e){e.commit("set_require_parental_control_pin",ZS.Access)},send_parental_control_pin(e,t){const n={pin:t,enable:!1};return e.state.require_parental_control_pin===ZS.Exit?e.dispatch("switch_mode",n):e.dispatch("verify_parental_controls_pin",t)},async switch_mode(e,t){const n=e.rootGetters["user/userId"];if(null==n)return;if((e.state.domain?.hasKids??!0)||!t.enable)try{const r=await this.$kapi.instance().parentalControlControllerUpdateKids({userId:n,updateKidsDto:t,xVersion:ju.XVersion});this.$kapi.setToken(r.data.jwt);const i=Ua.kids;i.value=t.enable,Ba.instance.set(i);const s=Ua.visitor_id;s.value=r.data.visitorId??"",Ba.instance.set(s),e.commit("set_is_in_kids_mode",t.enable),e.commit("set_require_parental_control_pin",ZS.None);const o=[e.dispatch("home/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("banner/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("mylists/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("product/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("search/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("shelves/on_kids_adult_switch",void 0,{root:!0}),e.dispatch("video_player/on_kids_adult_switch",void 0,{root:!0})];await Promise.all(o)}catch(r){throw console.error(`switch to ${t.enable?"kids":"adult"} failed:`),r}},async verify_parental_controls_pin(e,t){const n=e.rootGetters["user/userId"];if(null==n)return Promise.reject(new Error("no user"));try{await this.$kapi.instance().parentalControlControllerUpdateKids({userId:n,updateKidsDto:{pin:t,enable:!1},xVersion:ju.XVersion}),e.commit("set_require_parental_control_pin",ZS.None)}catch(r){throw console.error("Incorrect PIN entered"),r}},cancel_parental_controls_modal(e){e.commit("set_require_parental_control_pin",ZS.None)},on_login:e=>e.getters.is_kids_only_vp?e.dispatch("switch_to_kids"):Promise.resolve(void 0),on_logout(e){e.commit("set_is_in_kids_mode",!1)},toggle_menu(e,t){e.commit("toggle_menu",t)},async fetch_channel_guide(e){try{const t=await WM.getChannelGuide();e.commit("set_channels",t.trim().split("\n"))}catch(t){e.commit("set_channels",[])}},toggle_ticket_menu(e,t){e.commit("set_ticket_menu",t)},show_delete_membership_modal(e,t){e.commit("set_show_delete_membership_modal",t)},save_membership_for_deletion(e,t){e.commit("membership_selected_for_deletion",t)},show_delete_playlist_modal(e,t){e.commit("set_show_delete_playlist_modal",t)},save_playlist_for_deletion(e,t){e.commit("playlist_selected_for_deletion",t)},save_ticket_button_position(e,t){e.commit("set_ticket_button_position",t)},async get_info_banner(e){const t=e.state.info_banners.getBanner(e.getters.domain_id);if(null!=t&&t.isFresh())return t.banners[0];try{const t=await e.dispatch("fetch_info_banners");return Promise.resolve(t)}catch(n){return Promise.reject(n)}},async fetch_info_banners(e){try{const t=await this.$kapi.instance().institutionControllerListBannersByDomainId({domainId:e.getters.domain_id,xVersion:ju.XVersion}),n=new YM(t.data.list??[]);return e.commit("add_info_banner",{info_banner:n,domain_id:e.getters.domain_id}),Promise.resolve(n)}catch(t){return console.error("Failed to fetch info banners for "+e.getters.domain_id),Promise.reject(ju.unwrapKapiError(t))}}},eN={webshop:Lu,is_in_kids_mode:!1,require_parental_control_pin:ZS.None,domain:void 0,environment:_a.PROD,show_exit_kids_banner:!1,show_menu:!1,is_in_gdpr_region:!1,show_cookie_preferences_menu:!1,channels:[],show_ticket_menu:!1,show_new_user_intro_modal:!1,show_kids_guide_modal:!1,show_delete_membership_modal:!1,selected_membership:void 0,focus_ids:{previous:"",fallback:""},show_delete_playlist_modal:!1,selected_playlist:void 0,ticket_button_position:void 0,info_banners:new class{banners;_dismissed_banners;constructor(){this.banners={},this._dismissed_banners=Ca.instance.get(ka.InfoBannersDismissed)??[]}getBanner(e){return this.banners[e]}setBanner(e,t){this.banners={...this.banners,[t]:e}}dismissBanner(e){this._dismissed_banners.includes(e)||this._dismissed_banners.push(e),Ca.instance.save(ka.InfoBannersDismissed,this._dismissed_banners)}isBannerDismissed(e){return this._dismissed_banners.includes(e)}clearDismissedBanners(){this._dismissed_banners=[],Ca.instance.delete(ka.InfoBannersDismissed)}},skip_links:[]},tN={namespaced:!0,state:()=>eN,getters:ZM,mutations:JM,actions:QM},nN=Object.freeze(Object.defineProperty({__proto__:null,default:tN,initial_state:eN},Symbol.toStringTag,{value:"Module"}));function rN(e){if(null==e||0===e.length)return;const t=e.find(e=>e.isDefault)??e[0];if(t.status===au.Active)return t;const n=e.find(e=>e.status===au.Active);return null!=n?n:t}function iN(e,t){const n=rN(e),r=function(e,t){return e?.status!==au.Active&&null!=t?`/user/${t.userId}/identities`:"/"}(n,t);return null==n?r:`/${n.subdomain}${r}`}const sN={...eu,Admin:"admin"},oN={user:void 0,role:void 0,memberships:void 0,is_loading:!1,user_geolocation:void 0},aN={namespaced:!0,state:()=>oN,getters:{user:e=>e.user,role:e=>e.role,memberships:e=>e.memberships,current_membership:(e,t,n,r)=>{const i=r["site/domain_id"];
730return e.memberships?.find(e=>e.domainId===i)},is_loading:e=>e.is_loading,is_consumer_user:(e,t,n,r)=>n.debug.user_role.value===MR?null==e.role||e.role===sN.ComUser:n.debug.user_role.value===sN.ComUser,userId:e=>e.user?.userId,username:e=>e.user?.displayName,fullname:e=>null==e.user?.firstName&&null==e.user?.lastName?void 0:`${e.user?.firstName??""}${null==e.user?.firstName||null==e.user?.lastName?"":" "}${e.user?.lastName??""}`,has_parental_control_on:e=>e.user?.askParentalControlsPin??!1,user_geolocation:e=>e.user_geolocation,user_default_membership:e=>rN(e.memberships),user_default_stem:(e,t)=>{const n=t.user_default_membership;return n?.subdomain},has_user_account_logged_in:e=>null!=e.user,has_active_membership_on_current_domain:(e,t)=>{const n=t.current_membership;return n?.status===au.Active},has_membership_on_current_domain:(e,t)=>null!=t.current_membership,has_marketing_email_opt_in_on:e=>e.user?.marketingEmailOptIn??!1},mutations:{set_user(e,t){e.user=t},set_user_role(e,t){e.role=t},set_memberships(e,t){e.memberships=t},add_membership(e,t){const n=e.memberships?.find(e=>e.domainId===t.domainId);null!=n&&(t.isDefault=n.isDefault),0===(e.memberships??[]).length&&(t.isDefault=!0),e.memberships=[t].concat(e.memberships?.filter(e=>e.domainId!==t.domainId)??[])},set_loading(e,t){e.is_loading=t},set_user_geolocation(e,t){e.user_geolocation=t}},actions:{async nuxtClientInit(e,t){const n=Ba.instance.get(Ua.uid),r=null==n?void 0:Number(n);await e.dispatch("fetch_user_data",r)},async attempt_login(e,t){if(null!=t){e.commit("set_loading",!0);try{const n=await this.$kapi.instance().loginControllerLogin({loginUserRequestDto:t});this.$kapi.setToken(n.data.jwt);const r=n.data.userId,i=Ua.uid;i.value=r?.toString()??"",Ba.instance.set(i);const s=Ua.visitor_id;if(s.value=n.data.visitorId??"",Ba.instance.set(s),1===r?e.commit("set_user_role",sN.Admin):e.commit("set_user_role",n.data.userRole),null!=r)if(e.getters.is_consumer_user)await e.dispatch("fetch_user_data",r),await e.dispatch("site/on_login",void 0,{root:!0});else{const t={userId:r,username:"",displayName:"",email:"",emailVerified:!0,askParentalControlsPin:!1,role:vu,status:bu};e.commit("set_user",t)}}catch(n){throw ju.unwrapKapiError(n)}e.commit("set_loading",!1)}},async verify_account(e,t){e.commit("set_loading",!0);try{if((await this.$kapi.instance().loginControllerLogin({loginUserRequestDto:t})).data.userId!==e.state.user?.userId){throw{message:"Verification failed",httpCode:409}}}catch(n){throw ju.unwrapKapiError(n)}e.commit("set_loading",!1)},async logout(e){return e.rootGetters["site/is_in_kids_mode"]&&e.getters.has_parental_control_on&&(e.commit("site/set_require_parental_control_pin",ZS.Exit,{root:!0}),await new Promise(e=>{const t=this.watch(e=>e.site.require_parental_control_pin===ZS.Exit,n=>{n||(t(),e(void 0))})})),e.commit("set_loading",!0),new Promise((t,n)=>{if(e.rootGetters["site/is_in_kids_mode"]&&e.getters.has_parental_control_on)return n(new Error("log out rejected"));const r=this.$kapi.subscribeInit(n=>{this.$kapi.unsubscribeInit(r),e.dispatch("reset"),e.dispatch("site/on_logout",void 0,{root:!0}),e.commit("set_loading",!1),t(void 0)});e.commit("set_user_role",void 0),this.$kapi.setToken(void 0)})},async fetch_user_information(e,t){if(null==t&&(t=e.state.user?.userId),null!=t)try{const n=await this.$kapi.instance().userControllerGetOne({userId:t,xVersion:ju.XVersion});e.commit("set_user",n.data),e.commit("set_user_role",n.data.role)}catch(n){throw ju.unwrapKapiError(n)}},async update_user_information(e,t){const n=e.state.user?.userId;if(null!=n)try{const r=await this.$kapi.instance().userControllerUpdateUser({userId:n,updateUserDto:t,xVersion:ju.XVersion});e.commit("set_user",r.data)}catch(r){throw ju.unwrapKapiError(r)}},async update_user_password(e,t){const n=t.userId??e.state.user?.userId;if(null!=n)try{await this.$kapi.instance().userControllerUpdateUserPassword({userId:n,updateUserPasswordDto:t.passwordJwt,xVersion:ju.XVersion})}catch(r){throw ju.unwrapKapiError(r)}},async fetch_memberships(e,t){if(null==t&&(t=e.state.user?.userId),null!=t){e.commit("set_memberships",void 0),e.commit("set_loading",!0);try{const n=(await this.$kapi.instance().membershipControllerListMemberships({userId:t,xVersion:ju.XVersion})).data.list;e.commit("set_memberships",n)}catch(n){throw ju.unwrapKapiError(n)}finally{e.commit("set_loading",!1)}}},async set_new_default_membership(e,t){try{const n=(await this.$kapi.instance().membershipControllerUpdateDefaultMembership({identityId:t.
730identityId,xVersion:ju.XVersion})).data,r=(e.state.memberships||[]).map(e=>e.identityId===n.identityId?n:e.isDefault?{...e,isDefault:!1}:e);e.commit("set_memberships",r)}catch(n){throw ju.unwrapKapiError(n)}},async delete_membership(e,t){const n=(e.state.memberships?.length??0)>1;if(t.isDefault&&!n)throw new Error("Cannot delete the default membership if it is the last membership remaining");try{if(t.isDefault){const t=e.state.memberships?.find(e=>e.status===au.Active)??e.state.memberships?.find(e=>!e.isDefault);await e.dispatch("set_new_default_membership",t)}await this.$kapi.instance().membershipControllerDeleteMembership({identityId:t.identityId,xVersion:ju.XVersion}),e.commit("set_memberships",e.state.memberships?.filter(e=>e.identityId!==t.identityId))}catch(r){throw ju.unwrapKapiError(r)}},async reactivate_membership(e,t){const n=e.state.memberships??[],r=n.find(e=>e.domainId===t.domainId);if(null==r)return;const i=e.rootGetters["user/userId"];null!=i?t.userId=i:t.visitorId=this.$kapi.getVisitorId();try{const i=await this.$kapi.instance().membershipControllerCreateMembership({createMembershipDto:t,xVersion:ju.XVersion}),s={...r,identityId:i.data.identityId,status:au.Active,ticketsAvailable:r.ticketsAvailable,maxTicketsPerMonth:r.maxTicketsPerMonth},o=n.map(e=>e.domainId===s.domainId?s:e);e.commit("set_memberships",o),t.domainId===e.rootGetters["site/domain_id"]&&e.dispatch("mylists/on_domain_became_active",void 0,{root:!0})}catch(s){throw ju.unwrapKapiError(s)}},async reset_password(e,t){if(t.trim().length>0)try{await this.$kapi.instance().userControllerResetUserPassword({resetUserPasswordDto:{email:t},xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},async update_parental_control_pin(e,t){if(null!=e.state.user)try{await this.$kapi.instance().parentalControlControllerUpdateParentalControls({userId:e.state.user.userId,updateParentalControlsDto:t,xVersion:ju.XVersion});const n={...e.state.user,askParentalControlsPin:null!=t.newPin};e.commit("set_user",n)}catch(n){throw ju.unwrapKapiError(n)}},async reset_parental_controls(e){const t=e.state.user?.userId;if(null!=t)try{await this.$kapi.instance().parentalControlControllerResetParentalControls({userId:t,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},async send_verification_email(e){const t=e.state.user?.userId;if(null!=t)try{await this.$kapi.instance().userControllerResendActivationEmail({userId:t,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},async verify_user_email(e,t){if(!Va.isEmpty(t.jwt))try{if(await this.$kapi.instance().userControllerVerifyUser({userId:t.userId,verifyUserDto:{actionJwt:t.jwt},xVersion:ju.XVersion}),null!=e.state.user){const t={...e.state.user,emailVerified:!0};e.commit("set_user",t)}}catch(n){throw ju.unwrapKapiError(n)}},async get_user_geolocation(e){try{const t=await this.$kapi.instance().geolocationControllerGetIPLocation({xVersion:ju.XVersion});e.commit("set_user_geolocation",t.data)}catch(t){throw ju.unwrapKapiError(t)}},async fetch_user_data(e,t){if(e.dispatch("reset"),null!=t)try{const n=e.dispatch("fetch_user_information",t),r=e.dispatch("fetch_memberships",t);await Promise.all([n,r]),await e.dispatch("mylists/on_user_ready",void 0,{root:!0})}catch(n){const t=ju.unwrapKapiError(n);if(401!==t.httpCode)throw t;e.dispatch("logout")}},async delete_account(e){const t=e.state.user?.userId;if(null!=t)try{await this.$kapi.instance().userControllerDeleteUser({userId:t,xVersion:ju.XVersion})}catch(n){throw ju.unwrapKapiError(n)}},update_tickets_available(e,t){const n=e.getters.current_membership;if(null==n?.ticketsAvailable)return;const r=e.state.memberships?.map(e=>e.identityId!==n.identityId?e:{...e,ticketsAvailable:t});e.commit("set_memberships",r)},reset(e){e.commit("set_user",void 0),e.commit("set_memberships",void 0),e.dispatch("banner/on_logout",void 0,{root:!0}),e.dispatch("home/on_logout",void 0,{root:!0}),e.dispatch("product/on_logout",void 0,{root:!0}),e.dispatch("search/clear_most_popular_results",void 0,{root:!0}),e.dispatch("search/reset",void 0,{root:!0}),e.dispatch("mylists/on_logout",void 0,{root:!0}),e.dispatch("product_cache/on_logout",void 0,{root:!0})}}},lN=Object.freeze(Object.defineProperty({__proto__:null,default:aN,initial_state:oN},Symbol.toStringTag,{value:"Module"}));Xn.use(Rg);const cN=["state","getters","actions","mutations"],uN={banner:DR,debug:qR,domain_cache:zR,home:XR,root:JR,mylists:tM,onboarding:aM,product_cache:fM,product:gM,search:HM,shelves:KM,site:nN,user:lN,video_player:aR};function dN(){let e=function(e,t){if((e=e.default||e).commit)throw new Error(`[nuxt] ${t} should export a method that returns a Vuex instance.`);"function"!=typeof e&&(e={...e});return e.modules=e.modules||{},e}(uN.root||{});for(const t in uN)"root"!==t&&hN(e,uN[t],t);return"function"==typeof e?e:new Rg.Store(Object.assign({strict:!1},e))}function hN(e,t,n){t=t.default||t;
vendor: 5,499 bytes, line 730
730const r=n.split("/").filter(Boolean);let i=r[r.length-1];if(cN.includes(i)){const n=i;return void fN(pN(e,r,{isProperty:!0}),t,n)}const s=pN(e,r);for(const o of cN)fN(s,t[o],o);!1===t.namespaced&&delete s.namespaced}function pN(e,t,{isProperty:n=!1}={}){if(!t.length||n&&1===t.length)return e;const r=t.shift();return e.modules[r]=e.modules[r]||{},e.modules[r].namespaced=!0,e.modules[r].modules=e.modules[r].modules||{},pN(e.modules[r],t,{isProperty:n})}function fN(e,t,n){t&&("state"===n?e.state=t||e.state:e[n]={...e[n],...t})}var mN,_N={exports:{}};var gN=(mN||(mN=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",s="[object Function]",o="[object Object]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[i]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[s]=c["[object Map]"]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof Wa&&Wa&&Wa.Object===Object&&Wa,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=t&&!t.nodeType&&t,f=p&&e&&!e.nodeType&&e,m=f&&f.exports===p,_=m&&u.process,g=function(){try{var e=f&&f.require&&f.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(CL){}}(),y=g&&g.isTypedArray,v=Array.prototype,b=Function.prototype,w=Object.prototype,k=h["__core-js_shared__"],C=b.toString,T=w.hasOwnProperty,S=function(){var e=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x=w.toString,E=C.call(Object),I=RegExp("^"+C.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=m?h.Buffer:void 0,P=h.Symbol,O=h.Uint8Array;A&&A.allocUnsafe;var L,D,R=(L=Object.getPrototypeOf,D=Object,function(e){return L(D(e))}),M=Object.create,N=w.propertyIsEnumerable,j=v.splice,U=P?P.toStringTag:void 0,$=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(CL){}}(),B=A?A.isBuffer:void 0,F=Math.max,q=Date.now,V=ue(h,"Map"),H=ue(Object,"create"),z=function(){function e(){}return function(t){if(!ke(t))return{};if(M)return M(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=this.__data__=new K(e);this.size=t.size}function Y(e,t){var n=ge(e),r=!n&&_e(e),i=!n&&!r&&ve(e),s=!n&&!r&&!i&&Te(e),o=n||r||i||s,a=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)o&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||de(c,l))||a.push(c);return a}function Z(e,t,n){(void 0!==n&&!me(e[t],n)||void 0===n&&!(t in e))&&ee(e,t,n)}function J(e,t,n){var r=e[t];T.call(e,t)&&me(r,n)&&(void 0!==n||t in e)||ee(e,t,n)}function Q(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function ee(e,t,n){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}G.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},G.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},G.prototype.get=function(e){var t=this.__data__;if(H){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},G.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:T.call(t,e)},G.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=H&&void 0===t?n:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=Q(t,e);return!(n<0||(n==t.length-1?t.pop():j.call(t,n,1),--this.size,0))},K.prototype.get=function(e){var t=this.__data__,n=Q(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return Q(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,r=Q(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(V||K),string:new G}},W.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},W.prototype.get=function(e){return ce(this,e).get(e)},W.prototype.has=function(e){return ce(this,e).has(e)},W.prototype.set=function(e,t){var n=ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},X.prototype.clear=function(){this.__data__=new K,this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},X.prototype.get=function(e){return this.__data__.get(e)},X.prototype.has=function(e){return this.__data__.has(e)},X.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W(r)}return n.set(e,t),this.size=n.size,this};var te=function(e,t,n){for(var r=-1,i=Object(e),s=n(e),o=s.length;o--;){var a=s[++r];if(!1===t(i[a],a,i))break}return e};
vendor: 4,297 bytes, line 730
730function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":U&&U in Object(e)?function(e){var t=T.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch(CL){}var i=x.call(e);return r&&(t?e[U]=n:delete e[U]),i}(e):function(e){return x.call(e)}(e)}function re(e){return Ce(e)&&ne(e)==i}function ie(e){return!(!ke(e)||function(e){return!!S&&S in e}(e))&&(be(e)?I:a).test(function(e){if(null!=e){try{return C.call(e)}catch(CL){}try{return e+""}catch(CL){}}return""}(e))}function se(e){if(!ke(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=he(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function oe(e,t,n,r,i){e!==t&&te(t,function(s,a){if(i||(i=new X),ke(s))!function(e,t,n,r,i,s,a){var l=pe(e,n),c=pe(t,n),u=a.get(c);if(u)Z(e,n,u);else{var d,h=s?s(l,c,n+"",e,t,a):void 0,p=void 0===h;if(p){var f=ge(c),m=!f&&ve(c),_=!f&&!m&&Te(c);h=c,f||m||_?ge(l)?h=l:Ce(d=l)&&ye(d)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):m?(p=!1,h=c.slice()):_?(p=!1,h=function(e){var t,n,r=(t=e.buffer,n=new t.constructor(t.byteLength),new O(n).set(new O(t)),n);return new e.constructor(r,e.byteOffset,e.length)}(c)):h=[]:function(e){if(!Ce(e)||ne(e)!=o)return!1;var t=R(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==E}(c)||_e(c)?(h=l,_e(l)?h=function(e){return function(e,t,n){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=void 0;void 0===a&&(a=e[o]),r?ee(n,o,a):J(n,o,a)}return n}(e,Se(e))}(l):ke(l)&&!be(l)||(h=function(e){return"function"!=typeof e.constructor||he(e)?{}:z(R(e))}(c))):p=!1}p&&(a.set(c,h),i(h,c,r,s,a),a.delete(c)),Z(e,n,h)}}(e,t,a,n,oe,r,i);else{var l=r?r(pe(e,a),s,a+"",e,t,i):void 0;void 0===l&&(l=s),Z(e,a,l)}},Se)}function ae(e,t){return fe(function(e,t,n){return t=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=F(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(e,t,Ie),e+"")}var le=$?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ie;function ce(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(n)?n:void 0}function de(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function he(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||w)}function pe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var fe=function(e){var t=0,n=0;return function(){var r=q(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(le);function me(e,t){return e===t||e!=e&&t!=t}var _e=re(function(){return arguments}())?re:function(e){return Ce(e)&&T.call(e,"callee")&&!N.call(e,"callee")},ge=Array.isArray;function ye(e){return null!=e&&we(e.length)&&!be(e)}var ve=B||function(){return!1};function be(e){if(!ke(e))return!1;var t=ne(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function we(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var Te=y?function(e){return function(t){return e(t)}}(y):function(e){return Ce(e)&&we(e.length)&&!!c[ne(e)]};function Se(e){return ye(e)?Y(e):se(e)}var xe,Ee=(xe=function(e,t,n,r){oe(e,t,n,r)},ae(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(i=xe.length>3&&"function"==typeof i?(r--,i):void 0,s&&function(e,t,n){if(!ke(n))return!1;var r=typeof t;return!!("number"==r?ye(n)&&de(t,n.length):"string"==r&&t in n)&&me(n[t],e)}(t[0],t[1],s)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&xe(e,o,n,i)}return e}));function Ie(e){return e}e.exports=Ee}
730(_N,_N.exports)),_N.exports);const yN=Xa(gN),vN=Object.prototype.toString;function bN(e){switch(vN.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return ON(e,Error)}}function wN(e,t){return vN.call(e)===`[object ${t}]`}function kN(e){return wN(e,"ErrorEvent")}function CN(e){return wN(e,"DOMError")}function TN(e){return wN(e,"String")}function SN(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function xN(e){return null===e||SN(e)||"object"!=typeof e&&"function"!=typeof e}function EN(e){return wN(e,"Object")}function IN(e){return"undefined"!=typeof Event&&ON(e,Event)}function AN(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function PN(e){return"number"==typeof e&&e!=e}function ON(e,t){try{return e instanceof t}catch(n){return!1}}function LN(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function DN(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function RN(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const t=e[r];try{LN(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(CL){n.push("[value cannot be serialized]")}}return n.join(t)}function MN(e,t,n=!1){return!!TN(e)&&(wN(t,"RegExp")?t.test(e):!!TN(t)&&(n?e===t:e.includes(t)))}function NN(e,t=[],n=!1){return t.some(t=>MN(e,t,n))}function jN(e,t,n=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&ON(o.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var l,c;a&&(s.exception.values=(l=UN(e,t,i,o.originalException,r,s.exception.values,a,0),c=n,l.map(e=>(e.value&&(e.value=DN(e.value,c)),e))))}function UN(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let l=[...s];if(ON(r[i],Error)){$N(o,a);const s=e(t,r[i]),c=l.length;BN(s,i,c,a),l=UN(e,t,n,r[i],i,[s,...l],s,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(ON(r,Error)){$N(o,a);const c=e(t,r),u=l.length;BN(c,`errors[${s}]`,u,a),l=UN(e,t,n,r,i,[c,...l],c,u)}}),l}function $N(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function BN(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function FN(e){return e&&e.Math==Math?e:void 0}const qN="object"==typeof globalThis&&FN(globalThis)||"object"==typeof window&&FN(window)||"object"==typeof self&&FN(self)||"object"==typeof e&&FN(e)||function(){return this}()||{};function VN(){return qN}function HN(e,t,n){const r=n||qN,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const zN=VN();function GN(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",l=a.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(c=KN(n,u),!("html"===c||s>1&&o+i.length*l+c.length>=d));)i.push(c),o+=c.length,n=n.parentNode;return i.reverse().join(a)}catch(n){return"<unknown>"}}function KN(e,t){const n=e,r=[];let i,s,o,a,l;if(!n||!n.tagName)return"";if(zN.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&TN(i))for(s=i.split(/\s+/),l=0;l<s.length;l++)r.push(`.${s[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)o=u[l],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}const WN="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,XN=["debug","info","warn","error","log","assert","trace"],YN={};function ZN(e){if(!("console"in qN))return e();const t=qN.console,n={},r=Object.keys(YN);r.forEach(e=>{const r=YN[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const JN=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return WN?XN.forEach(n=>{t[n]=(...t)=>{e&&ZN(()=>{qN.console[n](`Sentry Logger [${n}]:`,...t)})}}
730):XN.forEach(e=>{t[e]=()=>{}}),t}(),QN=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ej(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function tj(e){const t=QN.exec(e);if(!t)return void ZN(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",s,o="",a]=t.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return nj({host:s,pass:i,path:l,projectId:c,port:o,protocol:n,publicKey:r})}function nj(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function rj(e){const t="string"==typeof e?tj(e):nj(e);if(t&&function(e){if(!WN)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(JN.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(JN.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(JN.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(JN.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}
730class ij extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function sj(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&aj(i,r),e[t]=i}function oj(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){WN&&JN.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function aj(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,oj(e,"__sentry_original__",t)}catch(n){}}function lj(e){return e.__sentry_original__}function cj(e){if(bN(e))return{message:e.message,name:e.name,stack:e.stack,...dj(e)};if(IN(e)){const t={type:e.type,target:uj(e.target),currentTarget:uj(e.currentTarget),...dj(e)};return"undefined"!=typeof CustomEvent&&ON(e,CustomEvent)&&(t.detail=e.detail),t}return e}function uj(e){try{return t=e,"undefined"!=typeof Element&&ON(t,Element)?GN(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function dj(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function hj(e,t=40){const n=Object.keys(cj(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return DN(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:DN(e,t)}return""}function pj(e){return fj(e,new Map)}function fj(e,t){if(function(e){if(!EN(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(CL){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))void 0!==e[i]&&(r[i]=fj(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(fj(e,t))}),r}return e}const mj=/\(error: (.*)\)/,_j=/captureMessage|captureException/;function gj(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{const r=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=mj.test(e)?e.replace(mj,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),_j.test(t[t.length-1].function||"")&&(t.pop(),_j.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}const yj="<anonymous>";function vj(e){try{return e&&"function"==typeof e&&e.name||yj}catch(CL){return yj}}const bj={},wj={};function kj(e,t){bj[e]=bj[e]||[],bj[e].push(t)}function Cj(e,t){wj[e]||(t(),wj[e]=!0)}function Tj(e,t){const n=e&&bj[e];if(n)for(const r of n)try{r(t)}catch(CL){WN&&JN.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${vj(r)}\nError:`,CL)}}function Sj(){"console"in qN&&XN.forEach(function(e){e in qN.console&&sj(qN.console,e,function(t){return YN[e]=t,function(...t){Tj("console",{args:t,level:e});const n=YN[e];n&&n.apply(qN.console,t)}})})}function xj(){const e=qN,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function Ej(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ij(e){const{message:t,event_id:n}=e;if(t)return t;const r=Ej(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Aj(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Pj(e,t){const n=Ej(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Oj(e){if(e&&e.__sentry_captured__)return!0;try{oj(e,"__sentry_captured__",!0)}catch(t){}return!1}function Lj(e){return Array.isArray(e)?e:[e]}const Dj=qN;let Rj,Mj,Nj;function jj(){if(!Dj.document)return;const e=Tj.bind(null,"dom"),t=Uj(e,!0);Dj.document.addEventListener("click",t,!1),Dj.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Dj[t]&&Dj[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(sj(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=Uj(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(CL){}return t.call(this,n,r,i)}}),sj(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[t];
730s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(CL){}return e.call(this,t,n,r)}}))})}function Uj(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(CL){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;oj(n,"_sentryCaptured",!0),r&&!r._sentryId&&oj(r,"_sentryId",xj());const i="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Mj)return!1;try{if(!e.target||e.target._sentryId!==Nj)return!1}catch(CL){}return!0}(n)){e({event:n,name:i,global:t}),Mj=n.type,Nj=r?r._sentryId:void 0}clearTimeout(Rj),Rj=Dj.setTimeout(()=>{Nj=void 0,Mj=void 0},1e3)}}const $j=VN();function Bj(){if(!("fetch"in $j))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(CL){return!1}}function Fj(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function qj(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Bj())return!1;if(Fj($j.fetch))return!0;let e=!1;const t=$j.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");
730n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Fj(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){WN&&JN.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e})()&&sj(qN,"fetch",function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Hj(t),method:Vj(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Hj(t),method:Vj(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Tj("fetch",{...i}),e.apply(qN,t).then(e=>(Tj("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw Tj("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function Vj(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Hj(e){return"string"==typeof e?e:e?Vj(e,"url")?e.url:e.toString?e.toString():"":""}let zj=null;function Gj(e){const t="error";kj(t,e),Cj(t,Kj)}function Kj(){zj=qN.onerror,qN.onerror=function(e,t,n,r,i){return Tj("error",{column:r,error:i,line:n,msg:e,url:t}),!(!zj||zj.__SENTRY_LOADER__)&&zj.apply(this,arguments)},qN.onerror.__SENTRY_INSTRUMENTED__=!0}let Wj=null;function Xj(e){const t="unhandledrejection";kj(t,e),Cj(t,Yj)}function Yj(){Wj=qN.onunhandledrejection,qN.onunhandledrejection=function(e){return Tj("unhandledrejection",e),!(Wj&&!Wj.__SENTRY_LOADER__)||Wj.apply(this,arguments)},qN.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Zj=VN();const Jj=qN;let Qj;function eU(e){const t="history";kj(t,e),Cj(t,tU)}function tU(){if(!function(){const e=Zj.chrome,t=e&&e.app&&e.app.runtime,n="history"in Zj&&!!Zj.history.pushState&&!!Zj.history.replaceState;return!t&&n}())return;const e=Jj.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Qj,t=String(n);Qj=t;Tj("history",{from:e,to:t})}return e.apply(this,t)}}Jj.onpopstate=function(...t){const n=Jj.location.href,r=Qj;Qj=n;if(Tj("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(i){}},sj(Jj.history,"pushState",t),sj(Jj.history,"replaceState",t)}const nU=qN,rU="__sentry_xhr_v3__";function iU(){if(!nU.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;sj(e,"open",function(e){return function(...t){const n=Date.now(),r=TN(t[0])?t[0].toUpperCase():void 0,i=function(e){if(TN(e))return e;try{return e.toString()}catch(CL){}return}(t[1]);if(!r||!i)return e.apply(this,t);this[rU]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[rU];if(e&&4===this.readyState){try{e.status_code=this.status}catch(CL){}Tj("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?sj(this,"onreadystatechange",function(e){return function(...t){return s(),e.apply(this,t)}}):this.addEventListener("readystatechange",s),sj(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[rU];return i&&TN(n)&&TN(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),sj(e,"send",function(e){return function(...t){const n=this[rU];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return Tj("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})}function sU(e,t=100,n=1/0){try{return aU("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function oU(e,t=3,n=102400){const r=sU(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?oU(e,t-1,n):r;var i}function aU(t,n,r=1/0,i=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[o,a]=s;if(null==n||["number","boolean","string"].includes(typeof n)&&!PN(n))return n;const l=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==e&&n===e)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(LN(n))return"[VueViewModel]";if(EN(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${vj(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(i){return`**non-serializable** (${i})`}var r}(t,n);if(!l.startsWith("[object "))return l;if(n.__sentry_skip_normalization__)return n;const c="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===c)return l.replace("object ","");if(o(n))return"[Circular ~]";const u=n;if(u&&"function"==typeof u.toJSON)try{return aU("",u.toJSON(),c-1,i,s)}catch(f){}const d=Array.isArray(n)?[]:{};let h=0;const p=cj(n);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(h>=i){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=aU(e,t,c-1,i,s),h++}return a(n),d}var lU;function cU(e){return new dU(t=>{t(e)})}function uU(e){return new dU((t,n)=>{n(e)})}
730!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(lU||(lU={}));class dU{constructor(e){dU.prototype.__init.call(this),dU.prototype.__init2.call(this),dU.prototype.__init3.call(this),dU.prototype.__init4.call(this),this._state=lU.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(CL){this._reject(CL)}}then(e,t){return new dU((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(CL){r(CL)}else n(t)},e=>{if(t)try{n(t(e))}catch(CL){r(CL)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new dU((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(lU.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(lU.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===lU.PENDING&&(AN(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===lU.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===lU.RESOLVED&&e[1](this._value),this._state===lU.REJECTED&&e[2](this._value),e[0]=!0)})}}}function hU(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return uU(new ij("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new dU((n,r)=>{let i=t.length;if(!i)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{cU(e).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}function pU(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const fU={ip:!1,request:!0,transaction:!0,user:!0},mU=["cookies","data","headers","method","query_string","url"],_U=["id","username","email"];function gU(e,t={}){const n=e.method&&e.method.toUpperCase();let r="",i="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(r=(e.originalUrl||e.url||"").split(/[\?#]/,1)[0]);let s="";return t.method&&n&&(s+=n),t.method&&t.path&&(s+=" "),t.path&&r&&(s+=r),[s,i]}function yU(e,t){const{include:n=mU,deps:r}=t||{},i={},s=e.headers||{},o=e.method,a=s.host||e.hostname||e.host||"<no host>",l="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",c=e.originalUrl||e.url||"",u=c.startsWith(l)?c:`${l}://${a}${c}`;return n.forEach(t=>{switch(t){case"headers":i.headers=s,n.includes("cookies")||delete i.headers.cookie;break;case"method":i.method=o;break;case"url":i.url=u;break;case"cookies":i.cookies=e.cookies||s.cookie&&function(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let i=e.indexOf(";",n);if(-1===i)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}const s=e.slice(n,r).trim();if(void 0===t[s]){let n=e.slice(r+1,i).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
730try{t[s]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(CL){t[s]=n}}n=i+1}return t}(s.cookie)||{};break;case"query_string":i.query_string=function(e,t){let n=e.originalUrl||e.url||"";if(!n)return;n.startsWith("/")&&(n=`http://dogs.are.great${n}`);try{return e.query||"undefined"!=typeof URL&&new URL(n).search.slice(1)||t&&t.url&&t.url.parse(n).query||void 0}catch(CL){return}}(e,r);break;case"data":if("GET"===o||"HEAD"===o)break;void 0!==e.body&&(i.data=TN(e.body)?e.body:JSON.stringify(sU(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(i[t]=e[t])}}),i}function vU(e,t,n){const r={...fU,...n&&n.include};if(r.request){const i=Array.isArray(r.request)?yU(t,{include:r.request,deps:n&&n.deps}):yU(t,{deps:n&&n.deps});e.request={...e.request,...i}}if(r.user){const n=t.user&&EN(t.user)?function(e,t){const n={};return(Array.isArray(t)?t:_U).forEach(t=>{e&&t in e&&(n[t]=e[t])}),n}(t.user,r.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(r.ip){const n=t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return r.transaction&&!e.transaction&&(e.transaction=function(e,t){switch(t){case"path":return gU(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";default:return gU(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:void 0})[0]}}(t,r.transaction)),e}const bU=["fatal","error","warning","log","info","debug"];function wU(e){return"warn"===e?"warning":bU.includes(e)?e:"log"}function kU(){return Date.now()/1e3}const CU=function(){const{performance:e}=qN;if(!e||!e.now)return kU;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=qN;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+n-r):t;(s||a<t)&&(i<=a&&e.timeOrigin)})();const TU=/^sentry-/;function SU(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}const xU=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function EU(e){if(!e)return;const t=e.match(xU);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function IU(e,t){const n=EU(e),r=function(e){if(!TN(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{const n=SU(t);for(const r of Object.keys(n))e[r]=n[r];return e},{});else{if(!e)return;t=SU(e)}const n=Object.entries(t).reduce((e,[t,n])=>(t.match(TU)&&(e[t.slice(7)]=n),e),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:s,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||xj(),parentSpanId:s||xj().substring(16),spanId:xj().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||xj(),spanId:xj().substring(16)}}}function AU(e,t=[]){return[e,t]}function PU(e,t){const[n,r]=e;return[n,[...r,t]]}function OU(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function LU(e,t){return(t||new TextEncoder).encode(e)}function DU(e,t){const[n,r]=e;let i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[LU(i,t),e]:i.push("string"==typeof e?LU(e,t):e)}for(const o of r){const[e,t]=o;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)s(t);else{let e;try{e=JSON.stringify(t)}catch(CL){e=JSON.stringify(sU(t))}s(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(i)}function RU(e,t){const n="string"==typeof e.data?LU(e.data,t):e.data;return[pj({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const MU={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function NU(e){return MU[e]}function jU(e){if(!e||!e.sdk)return;
730const{name:t,version:n}=e.sdk;return{name:t,version:n}}function UU(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function $U(e,t){return e(t.stack||"",1)}function BU(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=$U(e,t);return r.length&&(n.stacktrace={frames:r}),n}function FU(e,t,n,r){const i="function"==typeof e?e().getClient():e;let s=n;const o=r&&r.data&&r.data.mechanism||{handled:!0,type:"generic"};let a;if(!bN(n)){if(EN(n)){a={__serialized__:oU(n,i&&i.getOptions().normalizeDepth)};const e=function(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}return"message"in e&&"string"==typeof e.message?e.message:`Object captured as exception with keys: ${hj(e)}`}(n);s=r&&r.syntheticException||new Error(e),s.message=e}else s=r&&r.syntheticException||new Error(n),s.message=n;o.synthetic=!0}const l={exception:{values:[BU(t,s)]}};return a&&(l.extra=a),Aj(l,void 0),Pj(l,o),{...l,event_id:r&&r.event_id}}const qU="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,VU="production";function HU(){return HN("globalEventProcessors",()=>[])}function zU(e){HU().push(e)}function GU(e,t,n,r=0){return new dU((i,s)=>{const o=e[r];if(null===t||"function"!=typeof o)i(t);else{const a=o({...t},n);qU&&o.id&&null===a&&JN.log(`Event processor "${o.id}" dropped event`),AN(a)?a.then(t=>GU(e,t,n,r+1).then(i)).then(null,s):GU(e,a,n,r+1).then(i).then(null,s)}})}function KU(e){const t=CU(),n={sid:xj(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return pj({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&WU(n,e),n}function WU(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||CU(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:xj()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function XU(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),WU(e,n)}function YU(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,tags:a,origin:l}=e$(e);return pj({data:r,op:i,parent_span_id:s,span_id:t,status:o,tags:a,trace_id:n,origin:l})}function ZU(e){const{traceId:t,spanId:n}=e.spanContext();return function(e=xj(),t=xj().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}(t,n,t$(e))}function JU(e){return"number"==typeof e?QU(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?QU(e.getTime()):CU()}function QU(e){return e>9999999999?e/1e3:e}function e$(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function t$(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}function n$(e,t,n,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||xj(),timestamp:t.timestamp||kU()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:VU);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=DN(e.message,s));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=DN(o.value,s));const a=e.request;a&&a.url&&(a.url=DN(a.url,s))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{}
730,e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=qN._sentryDebugIds;if(!n)return;let r;const i=r$.get(t);i?r=i:(r=new Map,r$.set(t,r));const s=Object.keys(n).reduce((e,i)=>{let s;const o=r.get(i);o?s=o:(s=t(i),r.set(i,s));for(let t=s.length-1;t>=0;t--){const r=s[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=s[e.filename])})})}catch(CL){}}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new S$;return n.update(t),n}(r,n.captureContext);n.mechanism&&Pj(l,n.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],h=x$().getScopeData();if(s){k$(h,s.getScopeData())}if(u){k$(h,u.getScopeData())}const p=[...n.attachments||[],...h.attachments];p.length&&(n.attachments=p),w$(l,h);return GU([...d,...HU(),...h.eventProcessors],l,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(CL){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:sU(e.data,t,n)}}))},...e.user&&{user:sU(e.user,t,n)},...e.contexts&&{contexts:sU(e.contexts,t,n)},...e.extra&&{extra:sU(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=sU(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>{const r=e$(e).data;return r&&(e.data=sU(r,t,n)),e}));return r}(e,o,a):e))}const r$=new WeakMap;function i$(e){if(e)return function(e){return e instanceof S$||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>s$.includes(e))}(e)?{captureContext:e}:e}const s$=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function o$(e,t){return R$().captureException(e,i$(t))}function a$(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return R$().captureMessage(e,n,r)}function l$(e,t){return R$().captureEvent(e,t)}function c$(e,t){R$().addBreadcrumb(e,t)}function u$(...e){const t=R$();if(2===e.length){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function d$(e,t){const n=p$(),r=h$();if(r){if(r.captureCheckIn)return r.captureCheckIn(e,t,n);qU&&JN.warn("Cannot capture check-in. Client does not support sending check-ins.")}else qU&&JN.warn("Cannot capture check-in. No client defined.");return xj()}function h$(){return R$().getClient()}function p$(){return R$().getScope()}function f$(e){const t=h$(),n=M$(),r=p$(),{release:i,environment:s=VU}=t&&t.getOptions()||{},{userAgent:o}=qN.navigator||{},a=KU({release:i,environment:s,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&"ok"===l.status&&WU(l,{status:"exited"}),m$(),n.setSession(a),r.setSession(a),a}function m$(){const e=M$(),t=p$(),n=t.getSession()||e.getSession();n&&XU(n),_$(),e.setSession(),t.setSession()}function _$(){const e=M$(),t=p$(),n=h$(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function g$(e=!1){e?m$():_$()}function y$(e){return e.transaction}function v$(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},o=pj({environment:r.environment||VU,release:r.release,user_segment:s,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function b$(e){const t=h$();if(!t)return{};const n=v$(e$(e).trace_id||"",t,p$()),r=y$(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:s,source:o}=r.metadata;null!=s&&(n.sample_rate=`${s}`);const a=e$(r);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(t$(r)),t.emit&&t.emit("createDsc",n),n}function w$(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t,l=pj(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=pj(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=pj(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=pj(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});o&&(e.level=o);a&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:YU(t),...e.contexts};const n=y$(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:b$(t),...e.sdkProcessingMetadata};const r=e$(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?Lj(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
730(e,s)}function k$(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;C$(e,"extra",n),C$(e,"tags",r),C$(e,"user",i),C$(e,"contexts",s),C$(e,"sdkProcessingMetadata",a),o&&(e.level=o),p&&(e.transactionName=p),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function C$(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let T$;class S${constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=E$()}static clone(e){return e?e.clone():new S$}clone(){const e=new S$;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&WU(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof S$){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(EN(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=E$(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:kU(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}
730getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:s,_level:o,_fingerprint:a,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:s,level:o,fingerprint:a||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:h}}applyToEvent(e,t={},n=[]){w$(e,this.getScopeData());return GU([...n,...HU(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:xj();if(!this._client)return JN.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:xj();if(!this._client)return JN.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:xj();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(JN.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function x$(){return T$||(T$=new S$),T$}function E$(){return{traceId:xj(),spanId:xj().substring(16)}}const I$="7.120.4",A$=parseFloat(I$),P$=100;class O${constructor(e,t,n,r=A$){let i,s;this._version=r,t?i=t:(i=new S$,i.setClient(e)),n?s=n:(s=new S$,s.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(CL){throw this.popScope(),CL}return AN(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:xj(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:xj(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:xj();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=P$}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:kU(),...e},a=i?ZN(()=>i(o,t)):o;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}
730setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=D$(this);try{e(this)}finally{D$(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return qU&&JN.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(qU&&!n){this.getClient()?JN.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):JN.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&XU(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=VU}=n&&n.getOptions()||{},{userAgent:s}=qN.navigator||{},o=KU({release:r,environment:i,user:t.getUser(),...s&&{userAgent:s},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&WU(a,{status:"exited"}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=L$().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);qU&&JN.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function L$(){return qN.__SENTRY__=qN.__SENTRY__||{extensions:{},hub:void 0},qN}function D$(e){const t=L$(),n=$$(t);return B$(t,e),n}function R$(){const e=L$();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return N$(e)}function M$(){return R$().getIsolationScope()}function N$(e=L$()){return U$(e)&&!$$(e).isOlderThan(A$)||B$(e,new O$),$$(e)}function j$(e,t={}){const n=L$();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function U$(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function $$(e){return HN("hub",()=>new O$,e)}function B$(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function F$(e){return(e||R$()).getScope().getTransaction()}const q$=EU;let V$=!1;function H$(){const e=F$();if(e){const t="internal_error";qU&&JN.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var z$;function G$(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}H$.tag="sentry_tracingErrorCallback",function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(z$||(z$={}));const K$=G$;function W$(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=G$(t);"unknown_error"!==n&&e.setStatus(n)}function X$(e,t,n=()=>{}){let r;try{r=e()}catch(CL){throw t(CL),n(),CL}return function(e,t,n){if(AN(e))return e.then(e=>(n(),e),e=>{throw t(e),n(),e});return n(),e}(r,t,n)}function Y$(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=h$(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Z$(e,t){const n=nB(e);return j$(()=>u$(e.scope,r=>{const i=R$(),s=r.getSpan(),o=e.onlyIfParent&&!s?void 0:tB(i,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return X$(()=>t(o),()=>{if(o){const{status:e}=e$(o);e&&"ok"!==e||o.setStatus("internal_error")}},()=>o&&o.end())}))}const J$=Z$;function Q$(e){if(!Y$())return;const t=nB(e),n=R$(),r=e.scope?e.scope.getSpan():eB();if(e.onlyIfParent&&!r)return;const i=(e.scope||p$()).clone();return tB(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function eB(){return p$().getSpan()}function tB(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!Y$())return;const s=M$();let o;if(t&&!r)o=t.startChild(n);else if(t){const r=b$(t),{traceId:i,spanId:s}=t.spanContext(),a=t$(t);o=e.startTransaction({traceId:i,parentSpanId:s,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:a,sampled:l}={...s.getPropagationContext(),...i.getPropagationContext()};o=e.startTransaction({traceId:t,parentSpanId:a,parentSampled:l,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(o),function(e,t,n){e&&(oj(e,iB,n),oj(e,rB,t))}(o,i,s),o}function nB(e){if(e.startTime){const t={...e};return t.startTimestamp=JU(e.startTime),delete t.startTime,t}return e}const rB="_sentryScope",iB="_sentryIsolationScope";let sB;function oB(e){return sB?sB.get(e):void 0}function aB(e){const t=oB(e);if(!t)return;const n={};for(const[,[r,i]]of t)n[r]||(n[r]=[]),n[r].push(pj(i));return n}function lB(e,t,n,r,i,s){const o=eB();if(o){const a=oB(o)||new Map,l=`${e}:${t}@${r}`,c=a.get(s);if(c){const[,e]=c;
730a.set(s,[l,{min:Math.min(e.min,n),max:Math.max(e.max,n),count:e.count+=1,sum:e.sum+=n,tags:e.tags}])}else a.set(s,[l,{min:n,max:n,count:1,sum:n,tags:i}]);sB||(sB=new WeakMap),sB.set(o,a)}}const cB="sentry.source",uB="sentry.sample_rate",dB="sentry.op",hB="sentry.origin",pB="profile_id";class fB{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class mB{constructor(e={}){this._traceId=e.traceId||xj(),this._spanId=e.spanId||xj().substring(16),this._startTime=e.startTimestamp||CU(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[hB]:e.origin||"manual",[dB]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[dB]}set op(e){this.setAttribute(dB,e)}get origin(){return this._attributes[hB]}set origin(e){this.setAttribute(hB,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}startChild(e){const t=new mB({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=y$(this);if(t.transaction=n,qU&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${e$(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;JN.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return W$(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=y$(this);if(qU&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&JN.log(e.replace("Starting","Finishing"))}this._endTime=JU(e)}toTraceparent(){return ZU(this)}toContext(){return pj({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return YU(this)}getSpanJSON(){return pj({data:this._getData(),description:this._name,op:this._attributes[dB],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[hB],_metrics_summary:aB(this),profile_id:this._attributes[pB],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
730toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}class _B extends mB{constructor(e,t){super(e),this._contexts={},this._hub=t||R$(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[cB]&&{source:this._attributes[cB]},...this._attributes[uB]&&{sampleRate:this._attributes[uB]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(cB,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new fB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=JU(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return pj({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return b$(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(qU&&JN.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return qU&&JN.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e$(e).timestamp):[];if(this._trimEnd&&n.length>0){const e=n.map(e=>e$(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}const{scope:r,isolationScope:i}={scope:(s=this)[rB],isolationScope:s[iB]};var s;const{metadata:o}=this,{source:a}=o,l={contexts:{...this._contexts,trace:YU(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:r,capturedSpanIsolationScope:i,...pj({dynamicSamplingContext:b$(this)})},_metrics_summary:aB(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(qU&&JN.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),qU&&JN.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const gB={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},yB=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class vB extends fB{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===e$(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class bB extends _B{constructor(e,t,n=gB.idleTimeout,r=gB.finalTimeout,i=gB.heartbeatInterval,s=!1,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=yB[4],this._autoFinishAllowed=!o,s&&(qU&&JN.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=yB[3],this.end())},this._finalTimeout)}end(e){const t=JU(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){qU&&JN.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;e$(e).timestamp||(e.setStatus("cancelled"),e.end(t),qU&&JN.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=e$(e),i=n&&n<t,s=(this._finalTimeout+this._idleTimeout)/1e3,o=r&&n&&r-n<s;if(qU){const t=JSON.stringify(e,void 0,2);i?o||JN.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):JN.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return i&&o}),qU&&JN.log("[Tracing] flushing IdleTransaction")}else qU&&JN.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new vB(t,n,this.spanContext().spanId,e),qU&&JN.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=yB[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(qU&&JN.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=yB[1],this.end(e))},this._idleTimeout)}
730_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),qU&&JN.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,qU&&JN.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(qU&&JN.log(`[Tracing] popActivity ${e}`),delete this.activities[e],qU&&JN.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=CU();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=yB[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(qU&&JN.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=yB[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){qU&&JN.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function wB(e,t,n){if(!Y$(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(uB,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(uB,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(uB,Number(r))):(r=1,e.setAttribute(uB,r)),kB(r)?r?(e.sampled=Math.random()<r,e.sampled?(qU&&JN.log(`[Tracing] starting ${e.op} transaction - ${e$(e).description}`),e):(qU&&JN.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(qU&&JN.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(qU&&JN.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function kB(e){return PN(e)||"number"!=typeof e&&"boolean"!=typeof e?(qU&&JN.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(qU&&JN.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function CB(){const e=this.getScope().getSpan();return e?{"sentry-trace":ZU(e)}:{}}function TB(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=e.instrumenter||"sentry";i!==s&&(qU&&JN.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let o=new _B(e,this);return o=wB(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function SB(){const e=L$();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=TB),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=CB),V$||(V$=!0,Gj(H$),Xj(H$)))}function xB(e,t,n,r){const i=jU(n);return AU({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ej(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function EB(e,t,n,r){const i=jU(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const o=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ej(r)},...i&&{trace:pj({...i})}}}(e,i,r,t);delete e.sdkProcessingMetadata;return AU(o,[[{type:s},e]])}class IB{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();
7300!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){const e=Object.keys(this._pendingAggregates).map(e=>this._pendingAggregates[parseInt(e)]);return pj({attrs:this._sessionAttrs,aggregates:e})}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const e=p$(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};const r=this._pendingAggregates[n];switch(r.started||(r.started=new Date(n).toISOString()),e){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}}function AB(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function PB(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");var n}function OB(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${AB(e)}${e.projectId}/envelope/`}(e)}?${PB(e,r)}`}function LB(e,t){const n=rj(e);if(!n)return"";const r=`${AB(n)}embed/error-page/`;let i=`dsn=${ej(n)}`;for(const s in t)if("dsn"!==s&&"onClose"!==s)if("user"===s){const e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const DB=[];function RB(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach(e=>{e.isDefaultInstance=!0}),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Lj(n(t)):t;const i=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(r),s=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(i,e=>"Debug"===e.name);if(-1!==s){const[e]=i.splice(s,1);i.push(e)}return i}function MB(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function NB(e,t,n){if(n[t.name])qU&&JN.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===DB.indexOf(t.name)&&(t.setupOnce(zU,R$),DB.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=(t,r)=>n(t,r,e);r.id=t.name,e.addEventProcessor(r)}qU&&JN.log(`Integration installed: ${t.name}`)}}function jB(e,t){const n=function(...e){return t(...e)};return n.id=e,n}function UB(e){return e}function $B(e,t,n,r){const i=Object.entries(pj(r)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${n}${i}`}function BB(e){return e.replace(/[^\w]+/gi,"_")}function FB(e){return e.replace(/[^\w\-.]+/gi,"_")}function qB(e){return e.replace(/[^\w\-./]+/gi,"")}const VB=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function HB(e){return[...e].reduce((e,t)=>e+function(e){for(const[t,n]of VB)if(e===t)return n;return e}(t),"")}function zB(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t[qB(n)]=HB(String(e[n]))}return t}function GB(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=ej(t));const s=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return AU(i,[s])}const KB="Not capturing exception because it's already been captured.";class WB{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=rj(e.dsn):qU&&JN.warn("No DSN provided, client will not send events."),this._dsn){const t=OB(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Oj(e))return void(qU&&JN.log(KB));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const s=SN(e)?e:String(e),o=xN(e)?this.eventFromMessage(s,t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&Oj(t.originalException))return void(qU&&JN.log(KB));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?qU&&JN.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),WU(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
730ientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):cU(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return qU&&JN.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];NB(this,e,this._integrations),t||MB(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=EB(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=PU(n,RU(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=xB(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,i=`${e}:${t}`;qU&&JN.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){qU&&JN.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=GB(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&NB(e,t,n)}),n}(this,e),MB(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(WU(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new dU(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=M$()){const i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),n$(i,e,t,n,this,r).then(e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...e.contexts};const a=o||v$(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(qU){const t=e;"log"===t.logLevel?JN.log(t.message):JN.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,s=YB(e),o=XB(e),a=e.type||"error",l=`before send for type \`${a}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),uU(new ij(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===a?"replay":a,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new ij("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(XB(t)&&r)return r(t,n);if(YB(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(AN(e))return e.then(e=>{if(!EN(e)&&null!==e)throw new ij(n);return e},e=>{throw new ij(`${t} rejected with ${e}`)});if(!EN(e)&&null!==e)throw new ij(n);return e}(i,l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new ij(`${l} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!s&&i&&this._updateSessionFromEvent(i,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const o=r.transaction_info;if(s&&o&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...o,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof ij)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ij(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}
730_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{qU&&JN.error("Error while sending event:",e)});qU&&JN.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function XB(e){return void 0===e.type}function YB(e){return"transaction"===e.type}function ZB(e,t,n,r,i){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(s.dsn=ej(i)),t&&(s.trace=pj(t));const o=function(e){return[{type:"check_in"},e]}(e);return AU(s,[o])}const JB="c",QB="g",eF="s",tF="d",nF=1e4;const rF={[JB]:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},[QB]:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},[tF]:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},[eF]:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t>>>0}(e):e).join(":")}}};let iF=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),nF),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*nF/1e3),this._forceFlush=!1}add(e,t,n,r="none",i={},s=CU()){const o=Math.floor(s),a=FB(t),l=zB(i),c=BB(r),u=$B(e,a,c,l);let d=this._buckets.get(u);const h=d&&e===eF?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<o&&(d.timestamp=o)):(d={metric:new rF[e](n),timestamp:o,metricType:e,name:a,unit:c,tags:l},this._buckets.set(u,d));lB(e,a,"string"==typeof n?d.metric.weight-h:n,c,i,u),this._bucketsTotalWeight+=d.metric.weight,this._bucketsTotalWeight>=1e4&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();const e=Math.floor(CU())-10-this._flushShift,t=new Map;for(const[n,r]of this._buckets)r.timestamp<=e&&(t.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(const[n]of t)this._buckets.delete(n);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0&&this._client.captureAggregateMetrics){const t=Array.from(e).map(([,e])=>e);this._client.captureAggregateMetrics(t)}}};function sF(e,t){!0===t.debug&&(qU?JN.enable():ZN(()=>{}));p$().update(t.initialScope);const n=new e(t);oF(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}function oF(e){const t=R$().getStackTop();t.client=e,t.scope.setClient(e)}function aF(e,t,n=hU(e.bufferSize||30)){let r={};function i(i){const s=[];if(OU(i,(t,n)=>{const i=NU(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=lF(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)}),0===s.length)return cU();const o=AU(i[0],s),a=t=>{OU(o,(n,r)=>{const i=lF(n,r);e.recordDroppedEvent(t,NU(r),i)})};return n.add(()=>t({body:DU(o,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&qU&&JN.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const a of s.trim().split(",")){const[e,t,,,n]=a.split(":",5),s=parseInt(e,10),o=1e3*(isNaN(s)?60:s);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(i[a]=r+o);else i.all=r+o}else o?i.all=r+UU(o,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>
730{if(e instanceof ij)return qU&&JN.error("Skipped sending event because buffer is full."),a("queue_overflow"),cU();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function lF(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function cF(e,t){qU&&JN.info(`[Offline]: ${e}`,t)}function uF(e,t){let n;return OU(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function dF(e){return[{type:"span"},e]}function hF(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function pF(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:I$})),version:I$}),e._metadata=i}const fF=new Map,mF=new Set;function _F(e,t){return function(e){if(qN._sentryModuleMetadata)for(const t of Object.keys(qN._sentryModuleMetadata)){const n=qN._sentryModuleMetadata[t];if(mF.has(t))continue;mF.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){fF.set(e.filename,n);break}}}(e),fF.get(t)}const gF="ModuleMetadata",yF=()=>({name:gF,setupOnce(){},setup(e){"function"==typeof e.on&&e.on("beforeEnvelope",e=>{OU(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(!function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata})}catch(t){}}(t),e[1]=t)}})})}
730,processEvent:(e,t,n)=>(function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename)continue;const t=_F(e,n.filename);t&&(n.module_metadata=t)}})}catch(n){}}(n.getOptions().stackParser,e),e)}),vF=jB(gF,yF),bF={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},wF="RequestData",kF=(e={})=>{const t=vU,n={...bF,...e,include:{method:!0,...bF.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...bF.include.user,...(e.include||{}).user}}};return{name:wF,setupOnce(){},processEvent(e,r,i){const{transactionNamingScheme:s}=n,{sdkProcessingMetadata:o={}}=e,a=o.request;if(!a)return e;const l=o.requestDataOptionsFromExpressHandler||o.requestDataOptionsFromGCPWrapper||function(e){const{transactionNamingScheme:t,include:{ip:n,user:r,...i}}=e,s=[];for(const[a,l]of Object.entries(i))l&&s.push(a);let o;if(void 0===r)o=!0;else if("boolean"==typeof r)o=r;else{const e=[];for(const[t,n]of Object.entries(r))n&&e.push(t);o=e}return{include:{ip:n,user:o,request:0!==s.length?s:void 0,transaction:t}}}(n),c=t(e,a,l);if("transaction"===e.type||"handler"===s)return c;const u=a._sentryTransaction;if(u){const e=e$(u).description||"",t="sentry.javascript.nextjs"===function(e){try{return e.getOptions()._metadata.sdk.name}catch(t){return}}(i)?e.startsWith("/api"):"path"!==s,[n]=gU(a,{path:!0,method:t,customRoute:e});c.transaction=n}return c}}},CF=jB(wF,kF);const TF=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],SF=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],xF="InboundFilters",EF=(e={})=>({name:xF,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:TF],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:SF],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(CL){}return!1}(e))return qU&&JN.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Ij(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(CL){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));qU&&0===t.length&&JN.error(`Could not extract message for event ${Ij(e)}`);return t}(e).some(e=>NN(e,t))}(e,t.ignoreErrors))return qU&&JN.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ij(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&NN(n,t)}(e,t.ignoreTransactions))return qU&&JN.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ij(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=AF(e);return!!n&&NN(n,t)}(e,t.denyUrls))return qU&&JN.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ij(e)}.\nUrl: ${AF(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=AF(e);return!n||NN(n,t)}(e,t.allowUrls))return qU&&JN.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ij(e)}.\nUrl: ${AF(e)}`),!0;return!1}(t,s)?null:t}}),IF=jB(xF,EF);function AF(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(CL){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return qU&&JN.error(`Cannot extract url for event ${Ij(e)}`),null}}let PF;const OF="FunctionToString",LF=new WeakMap,DF=()=>({name:OF,setupOnce(){PF=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=lj(this),n=LF.has(h$())&&void 0!==t?t:this;return PF.apply(n,e)}}catch(CL){}},setup(e){LF.set(e,!0)}}),RF=jB(OF,DF),MF="LinkedErrors",NF=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:MF,setupOnce(){},preprocessEvent(e,r,i){const s=i.getOptions();jN(BU,s.stackParser,s.maxValueLength,n,t,e,r)}}},jF=jB(MF,NF),UF=Object.freeze(Object.defineProperty({__proto__:null,FunctionToString:RF,InboundFilters:IF,LinkedErrors:jF},Symbol.toStringTag,{value:"Module"}));class $F{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),5e3)}add(e,t,n,r="none",i={},s=CU()){const o=Math.floor(s),a=FB(t),l=zB(i),c=BB(r),u=$B(e,a,c,l);let d=this._buckets.get(u);const h=d&&e===eF?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<o&&(d.timestamp=o)):(d={metric:new rF[e](n),timestamp:o,metricType:e,name:a,unit:c,tags:l},this._buckets.set(u,d));lB(e,a,"string"==typeof n?d.metric.weight-h:n,c,i,u)}flush(){if(0!==this._buckets.size){if(this._client.captureAggregateMetrics){const e=Array.from(this._buckets).map(([,e])=>e);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const BF="MetricsAggregator",FF=()=>({name:BF,setupOnce(){},setup(e){e.metricsAggregator=new $F(e)}});function qF(e,t,n,r={}){const i=h$(),s=p$();if(i){if(!i.metricsAggregator)return void(qU&&JN.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs"));const{unit:o,tags:a,timestamp:l}=r,{release:c,environment:u}=i.getOptions(),d=s.getTransaction(),h={};c&&(h.release=c),u&&(h.environment=u),d&&(h.transaction=e$(d).description||""),qU&&JN.log(`Adding value of ${n} to ${e} metric ${t}`),i.metricsAggregator.add(e,t,n,o,{...h,...a},l)}}const VF={increment:function(e,t=1,n){qF("c",e,t,n)},distribution:function(e,t,n){qF("d",e,t,n)},set:function(e,t,n){qF(eF,e,t,n)},gauge:function(e,t,n){qF("g",e,t,n)},MetricsAggregator:jB(BF,FF),metricsAggregatorIntegration:FF},HF=UF,zF=Object.freeze(Object.defineProperty({__proto__:null,BaseClient:WB,DEFAULT_ENVIRONMENT:VU,FunctionToString:RF,Hub:O$,IdleTransaction:bB,InboundFilters:IF,Integrations:HF,LinkedErrors:jF,ModuleMetadata:vF,RequestData:CF,SDK_VERSION:I$,SEMANTIC_ATTRIBUTE_PROFILE_ID:pB,SEMANTIC_ATTRIBUTE_SENTRY_OP:dB,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:hB,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:uB,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:cB,Scope:S$,ServerRuntimeClient:class extends WB{constructor(e){SB(),super(e),e._experiments&&e._experiments.metricsAggregator&&(this.metricsAggregator=new iF(this))}eventFromException(e,t){return cU(FU(h$(),this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return cU(function(e,t,n="info",r,i){const s={event_id:r&&r.event_id,level:n};if(i&&r&&r.syntheticException){const n=$U(e,r.syntheticException);n.length&&(s.exception={values:[{value:t,stacktrace:{frames:n}}]})}
730if(SN(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){if("exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){const e=n.getRequestSession();e&&"ok"===e.status&&(e.status="errored")}}return super.captureEvent(e,t,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;e?this._sessionFlusher=new IB(this,{release:e,environment:t}):qU&&JN.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,n){const r="checkInId"in e&&e.checkInId?e.checkInId:xj();if(!this._isEnabled())return qU&&JN.warn("SDK not enabled, will not capture checkin."),r;const i=this.getOptions(),{release:s,environment:o,tunnel:a}=i,l={check_in_id:r,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:o};"duration"in e&&(l.duration=e.duration),t&&(l.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone});const[c,u]=this._getTraceInfoFromScope(n);u&&(l.contexts={trace:u});
730const d=ZB(l,c,this.getSdkMetadata(),a,this.getDsn());return qU&&JN.info("Sending checkin:",e.monitorSlug,e.status),this._sendEnvelope(d),r}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():qU&&JN.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];const t=e.getSpan();if(t){return[y$(t)?b$(t):void 0,YU(t)]}const{traceId:n,spanId:r,parentSpanId:i,dsc:s}=e.getPropagationContext(),o={trace_id:n,span_id:r,parent_span_id:i};return s?[s,o]:[v$(n,this,e),o]}},SessionFlusher:IB,Span:mB,get SpanStatus(){return z$},TRACING_DEFAULTS:gB,Transaction:_B,addBreadcrumb:c$,addEventProcessor:function(e){const t=h$();t&&t.addEventProcessor&&t.addEventProcessor(e)},addGlobalEventProcessor:zU,addIntegration:function(e){const t=h$();t&&t.addIntegration?t.addIntegration(e):qU&&JN.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},addTracingExtensions:SB,applyScopeDataToEvent:w$,applySdkMetadata:pF,captureCheckIn:d$,captureEvent:l$,captureException:o$,captureMessage:a$,captureSession:g$,close:async function(e){const t=h$();return t?t.close(e):(qU&&JN.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},closeSession:XU,configureScope:function(e){R$().configureScope(e)},continueTrace:({sentryTrace:e,baggage:t},n)=>{const r=p$(),{traceparentData:i,dynamicSamplingContext:s,propagationContext:o}=IU(e,t);r.setPropagationContext(o),qU&&i&&JN.log(`[Tracing] Continuing trace ${i.traceId}.`);const a={...i,metadata:pj({dynamicSamplingContext:s})};return n?j$(()=>n(a)):a},convertIntegrationFnToClass:jB,createCheckInEnvelope:ZB,createEventEnvelope:EB,createSessionEnvelope:xB,createSpanEnvelope:function(e,t){const n={sent_at:(new Date).toISOString()};return t&&(n.dsn=ej(t)),AU(n,e.map(dF))},createTransport:aF,defineIntegration:UB,endSession:m$,ensureHubOnCarrier:function(e,t=N$()){if(!U$(e)||$$(e).isOlderThan(A$)){const n=t.getClient(),r=t.getScope(),i=t.getIsolationScope();B$(e,new O$(n,r.clone(),i.clone()))}},extractTraceparentData:q$,flush:async function(e){const t=h$();return t?t.flush(e):(qU&&JN.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},functionToStringIntegration:DF,getActiveSpan:eB,getActiveTransaction:F$,getClient:h$,getCurrentHub:R$,getCurrentScope:p$,getDynamicSamplingContextFromClient:v$,getDynamicSamplingContextFromSpan:b$,getEnvelopeEndpointWithUrlEncodedAuth:OB,getGlobalScope:x$,getHubFromCarrier:$$,getIntegrationsToSetup:RB,getIsolationScope:M$,getMainCarrier:L$,getReportDialogEndpoint:LB,getRootSpan:y$,getSpanStatusFromHttpCode:G$,handleCallbackErrors:X$,hasTracingEnabled:Y$,inboundFiltersIntegration:EF,initAndBind:sF,isInitialized:function(){return!!h$()},isSentryRequestUrl:function(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return hF(e)===hF(t)}(e,i)},isValidSampleRate:kB,lastEventId:function(){return R$().lastEventId()},linkedErrorsIntegration:NF,makeMain:D$,makeMultiplexedTransport:function(e,t){return n=>{const r=e(n),i=new Map;function s(t,r){const s=r?`${t}:${r}`:t;let o=i.get(s);if(!o){const a=tj(t);if(!a)return;const l=OB(a,n.tunnel);o=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=uF(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:l}):e({...n,url:l}),i.set(s,o)}return[t,o]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return uF(e,n)}}).map(e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release)).filter(e=>!!e);0===n.length&&n.push(["",r]);return(await Promise.all(n.map(([t,n])=>n.send(function(e,t){return AU(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){const t=[await r.flush(e)];for(const[,n]of i)t.push(await n.flush(e));return t.every(e=>e)}}}},makeOfflineTransport:function(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let i,s=5e3;function o(e,n,r){return i=["replay_event","replay_recording","client_report"],!OU(e,(e,t)=>i.includes(t))&&(!t.shouldStore||t.shouldStore(e,n,r));var i}function a(e){r&&(i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const e=await r.pop();e&&(cF("Attempting to send previously queued event"),c(e).catch(e=>{cF("Failed to retry sending",e)}))},e),"number"!=typeof i&&i.unref&&i.unref())}function l(){i||(a(s),s=Math.min(2*s,36e5))}async function c(e){try{const t=await n.send(e);let r=100;if(t)if(t.headers&&t.headers["retry-after"])r=UU(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return a(r),s=5e3,t}catch(CL){if(r&&await o(e,CL,s))return await r.insert(e),l(),cF("Error sending. Event queued",CL),{};throw CL}}return t.flushAtStartup&&l(),{send:c,flush:e=>n.flush(e)}}},makeSession:KU,mergeScopeData:k$,metrics:VF,moduleMetadataIntegration:yF,notifyEventProcessors:GU,parameterize:function(e,...t){const n=new String(String.raw(e,...t));
730return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n},prepareEvent:n$,requestDataIntegration:kF,runWithAsyncContext:j$,setAsyncContextStrategy:function(e){const t=L$();t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.acs=e},setContext:function(e,t){R$().setContext(e,t)},setCurrentClient:oF,setExtra:function(e,t){R$().setExtra(e,t)},setExtras:function(e){R$().setExtras(e)},setGlobalScope:function(e){T$=e},setHttpStatus:W$,setHubOnCarrier:B$,setMeasurement:function(e,t,n){const r=F$();r&&r.setMeasurement(e,t,n)},setTag:function(e,t){R$().setTag(e,t)},setTags:function(e){R$().setTags(e)},setUser:function(e){R$().setUser(e)},spanIsSampled:t$,spanStatusfromHttpCode:K$,spanToJSON:e$,spanToTraceContext:YU,spanToTraceHeader:ZU,startActiveSpan:J$,startIdleTransaction:function(e,t,n,r,i,s,o,a=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let u=new bB(t,e,n,r,o,i,a);return u=wB(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...s}),u.isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u},startInactiveSpan:Q$,startSession:f$,startSpan:Z$,startSpanManual:function(e,t){const n=nB(e);return j$(()=>u$(e.scope,r=>{const i=R$(),s=r.getSpan(),o=e.onlyIfParent&&!s?void 0:tB(i,{parentSpan:s,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){o&&o.end()}return X$(()=>t(o,a),()=>{if(o&&o.isRecording()){const{status:e}=e$(o);e&&"ok"!==e||o.setStatus("internal_error")}})}))},startTransaction:function(e,t){return R$().startTransaction({...e},t)},trace:function(e,t,n=()=>{},r=()=>{}){const i=R$(),s=p$(),o=s.getSpan(),a=nB(e),l=tB(i,{parentSpan:o,spanContext:a,forceTransaction:!1,scope:s});return s.setSpan(l),X$(()=>t(l),e=>{l&&l.setStatus("internal_error"),n(e,l)},()=>{l&&l.end(),s.setSpan(o),r()})},updateSession:WU,withActiveSpan:function(e,t){return u$(n=>(n.setSpan(e),t(n)))},withIsolationScope:function(e){return j$(()=>e(M$()))},withMonitor:function(e,t,n){const r=d$({monitorSlug:e,status:"in_progress"},n),i=CU();function s(t){d$({monitorSlug:e,status:t,checkInId:r,duration:CU()-i})}let o;try{o=t()}catch(CL){throw s("error"),CL}return AN(o)?Promise.resolve(o).then(()=>{s("ok")},()=>{s("error")}):s("ok"),o},withScope:u$},Symbol.toStringTag,{value:"Module"})),GF=qN;let KF=0;function WF(){return KF>0}function XF(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(lj(e))return e}catch(CL){return e}const r=function(){const n=Array.prototype.slice.call(arguments);try{const r=n.map(e=>XF(e,t));return e.apply(this,r)}catch(r){throw KF++,setTimeout(()=>{KF--}),u$(e=>{e.addEventProcessor(e=>(t.mechanism&&(Aj(e,void 0),Pj(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),o$(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}aj(r,e),oj(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}const YF="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ZF(e,t){const n=QF(e,t),r={type:t&&t.name,value:tq(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function JF(e,t){return{exception:{values:[ZF(e,t)]}}}function QF(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(eq.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(CL){}return[]}const eq=/Minified React error #\d+;/i;function tq(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function nq(e,t,n,r,i){let s;if(kN(t)&&t.error){return JF(e,t.error)}if(CN(t)||wN(t,"DOMException")){const i=t;if("stack"in t)s=JF(e,t);else{const t=i.name||(CN(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;s=rq(e,o,n,r),Aj(s,o)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}if(bN(t))return JF(e,t);if(EN(t)||IN(t)){return s=function(e,t,n,r){const i=h$(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:IN(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:iq(t,{isUnhandledRejection:r})}]},extra:{__serialized__:oU(t,s)}};if(n){const t=QF(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}(e,t,n,i),Pj(s,{synthetic:!0}),s}return s=rq(e,t,n,r),Aj(s,`${t}`),Pj(s,{synthetic:!0}),s}function rq(e,t,n,r){const i={};if(r&&n){const r=QF(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}
730if(SN(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function iq(e,{isUnhandledRejection:t}){const n=hj(e),r=t?"promise rejection":"exception";if(kN(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(IN(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(CL){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}class sq extends WB{constructor(e){pF(e,"browser",["browser"],GF.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&GF.document&&GF.document.addEventListener("visibilitychange",()=>{"hidden"===GF.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=nq(e,t,n&&n.syntheticException||void 0,r);return Pj(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),cU(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const s=rq(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),cU(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(YF&&JN.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ej(r)}},s=function(e){return[{type:"user_report"},e]}(e);return AU(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(YF&&JN.log("No outcomes to send"));if(!this._dsn)return void(YF&&JN.log("No dsn provided, will not send outcomes"));YF&&JN.log("Sending outcomes:",e);const t=(n=e,AU((r=this._options.tunnel&&ej(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:kU(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}let oq;function aq(e,t=function(){if(oq)return oq;if(Fj(GF.fetch))return oq=GF.fetch.bind(GF);const e=GF.document;let t=GF.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(CL){YF&&JN.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",CL)}return oq=t.bind(GF)}()){let n=0,r=0;return aF(e,function(i){const s=i.body.length;n+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(CL){return oq=void 0,n-=s,r--,uU(CL)}})}function lq(e){return aF(e,function(t){return new dU((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}const cq="?";function uq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const dq=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hq=/\((\S*)(?::(\d+))(?::(\d+))\)/,pq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mq=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_q=gj(...[[30,e=>{const t=dq.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=hq.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=gq(t[1]||cq,t[2]);return uq(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=pq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=fq.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||cq;return[n,e]=gq(n,e),uq(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=mq.exec(e);return t?uq(t[2],t[1]||cq,+t[3],t[4]?+t[4]:void 0):void 0}]]),gq=(e,t)=>
730{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:cq,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},yq=1024,vq="Breadcrumbs",bq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:vq,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";kj(t,e),Cj(t,Sj)}(function(e){return function(t){if(h$()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:wU(t.level),message:RN(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${RN(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}c$(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(h$()!==e)return;let r,i,s="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>yq&&(YF&&JN.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=yq),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=GN(t,{keyAttrs:s,maxStringLength:o}),i=function(e){if(!zN.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(t)}catch(CL){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),c$(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),kj("dom",n),Cj("dom",jj)),t.xhr&&function(e){kj("xhr",e),Cj("xhr",iU)}(function(e){return function(t){if(h$()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[rU];if(!n||!r||!i)return;const{method:s,url:o,status_code:a,body:l}=i;c$({category:"xhr",data:{method:s,url:o,status_code:a},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&function(e){const t="fetch";kj(t,e),Cj(t,qj)}(function(e){return function(t){if(h$()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){c$({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;c$({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&eU(function(e){return function(t){if(h$()!==e)return;let n=t.from,r=t.to;const i=pU(GF.location.href);let s=n?pU(n):void 0;const o=pU(r);s&&s.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),c$({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){h$()===e&&c$({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Ij(t)},{event:t})}}(e))}}};jB(vq,bq);const wq="Dedupe",kq=()=>{let e;return{name:wq,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Tq(e,t))return!1;if(!Cq(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Sq(t),r=Sq(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Tq(e,t))return!1;if(!Cq(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return YF&&JN.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function Cq(e,t){let n=xq(e),r=xq(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Tq(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Sq(e){return e.exception&&e.exception.values&&e.exception.values[0]}function xq(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}jB(wq,kq);const Eq="GlobalHandlers",Iq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Eq,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Gj(t=>{const{stackParser:n,attachStacktrace:r}=Oq();if(h$()!==e||WF())return;const{msg:i,url:s,line:o,column:a,error:l}=t,c=void 0===l&&TN(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=kN(e)?e.message:e,o="Error";const a=s.match(i);a&&(o=a[1],s=a[2]);const l={exception:{values:[{type:o,value:s}]}};return Aq(l,t,n,r)}(i,s,o,a):Aq(nq(n,l||i,void 0,r,!1),s,o,a);c.level="error",l$(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}(e),Pq("onerror")),t.onunhandledrejection&&(!function(e){Xj(t=>{const{stackParser:n,attachStacktrace:r}=Oq();if(h$()!==e||WF())return;const i=function(e){if(xN(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(n){}return e}(t),s=xN(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:nq(n,i,void 0,r,!0);s.level="error",l$(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Pq("onunhandledrejection"))}}};function Aq(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=TN(t)&&t.length>0?t:function(){try{return zN.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Pq(e){YF&&JN.log(`Global Handler attached: ${e}`)}function Oq(){const e=h$();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}jB(Eq,Iq);const Lq="HttpContext",Dq=()=>({name:Lq,setupOnce(){},preprocessEvent(e){if(!GF.navigator&&!GF.location&&!GF.document)return;const t=e.request&&e.request.url||GF.location&&GF.location.href,{referrer:n}=GF.document||{},{userAgent:r}=GF.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}});jB(Lq,Dq);const Rq="LinkedErrors",Mq=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Rq,setupOnce(){},preprocessEvent(e,r,i){const s=i.getOptions();jN(ZF,s.stackParser,s.maxValueLength,n,t,e,r)}}};jB(Rq,Mq);const Nq=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],jq="TryCatch",Uq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:jq,setupOnce(){t.setTimeout&&sj(GF,"setTimeout",$q),t.setInterval&&sj(GF,"setInterval",$q),t.requestAnimationFrame&&sj(GF,"requestAnimationFrame",Bq),t.XMLHttpRequest&&"XMLHttpRequest"in GF&&sj(XMLHttpRequest.prototype,"send",Fq);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Nq).forEach(qq)}}}};function $q(e){return function(...t){const n=t[0];return t[0]=XF(n,{mechanism:{data:{function:vj(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Bq(e){return function(t){return e.apply(this,[XF(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vj(e)},handled:!1,type:"instrument"}})])}}function Fq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
730=>{e in n&&"function"==typeof n[e]&&sj(n,e,function(t){const n={mechanism:{data:{function:e,handler:vj(t)},handled:!1,type:"instrument"}},r=lj(t);return r&&(n.mechanism.data.handler=vj(r)),XF(t,n)})}),e.apply(this,t)}}function qq(e){const t=GF,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(sj(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=XF(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vj(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,XF(r,{mechanism:{data:{function:"addEventListener",handler:vj(r),target:e},handled:!1,type:"instrument"}}),i])}}),sj(n,"removeEventListener",function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(CL){}return e.call(this,t,i,r)}}))}jB(jq,Uq);const Vq=[EF(),DF(),Uq(),bq(),Iq(),Mq(),kq(),Dq()];function Hq(e){return[...Vq]}function zq(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Hq()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),GF.SENTRY_RELEASE&&GF.SENTRY_RELEASE.id&&(e.release=GF.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||_q,Array.isArray(n)?gj(...n):n),integrations:RB(e),transport:e.transport||(Bj()?aq:lq)};var n;sF(sq,t),e.autoSessionTracking&&function(){if(void 0===GF.document)return void(YF&&JN.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));f$({ignoreDuration:!0}),g$(),eU(({from:e,to:t})=>{void 0!==e&&e!==t&&(f$({ignoreDuration:!0}),g$())})}()}const Gq="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kq="ExtraErrorData",Wq=(e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:Kq,setupOnce(){},processEvent:(e,r)=>function(e,t={},n,r){if(!t.originalException||!bN(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const i=e[t];r[t]=bN(i)?i.toString():i}if(t&&void 0!==e.cause&&(r.cause=bN(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];r[e]=bN(n)?n.toString():n}}return r}catch(n){Gq&&JN.error("Unable to extract extra data from the Error object:",n)}return null}(t.originalException,r);if(s){const t={...e.contexts},r=sU(s,n);return EN(r)&&(oj(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n)}};jB(Kq,Wq);const Xq=qN,Yq="ReportingObserver",Zq=new WeakMap,Jq=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(Zq.has(h$()))for(const t of e)u$(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else{r=t.body.message||r}}a$(`${n}: ${r}`)})}return{name:Yq,setupOnce(){if(!("ReportingObserver"in $j))return;new Xq.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Zq.set(e,!0)}}};jB(Yq,Jq);let Qq={};GF.Sentry&&GF.Sentry.Integrations&&(Qq=GF.Sentry.Integrations);const eV=["activate","mount","update"],tV=/(?:^|[-_])(\w)/g,nV="<Anonymous>",rV=(e,t)=>{if(!e)return nV;if(e.$root===e)return"<Root>";if(!e.$options)return nV;const n=e.$options;let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${s=r,s.replace(tV,e=>e.toUpperCase()).replace(/[-_]/g,"")}>`:nV)+(i&&!1!==t?` at ${i}`:"");var s},iV=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:i}=e.config;e.config.errorHandler=(s,o,a)=>{const l=rV(o,!1),c=o?(e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}const r=t.map((e,t)=>{return`${(0===t?"---\x3e ":(n=" ",r=5+2*t,n.repeat?n.repeat(r):n))+(Array.isArray(e)?`${rV(e[0])}... (${e[1]} recursive calls)`:rV(e))}`;var n,r}).join("\n");return`\n\nfound in\n\n${r}`}return`\n\n(found in ${rV(e)})`})(o):"",u={componentName:l,lifecycleHook:a,trace:c};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?u.propsData=o.$options.propsData:o.$props&&(u.propsData=o.$props)),setTimeout(()=>{o$(s,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),"function"==typeof n&&n.call(e,s,o,a),t.logErrors){const e="undefined"!=typeof console,t=`Error in ${a}: "${s&&s.toString()}"`;r?r.call(null,t,o,c):e&&!i&&ZN(()=>{console.error(`[Vue warn]: ${t}${c}`)})}}},sV="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oV="ui.vue",aV={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};const lV=e=>
730{const t=(e.hooks||[]).concat(eV).filter((e,t,n)=>n.indexOf(e)===t),n={};for(const r of t){const t=aV[r];if(t)for(const i of t)n[i]=function(){const n=this.$root===this;if(n){eB()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Q$({name:"Application Render",op:`${oV}.render`,origin:"auto.ui.vue"}))}const s=rV(this,!1),o=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(s)>-1:e.trackComponents;var a,l,c;if(n||o)if(this.$_sentrySpans=this.$_sentrySpans||{},i==t[0]){if(this.$root&&this.$root.$_sentryRootSpan||eB()){const e=this.$_sentrySpans[r];e&&e.end(),this.$_sentrySpans[r]=Q$({name:`Vue <${s}>`,op:`${oV}.${r}`,origin:"auto.ui.vue"})}}else{const t=this.$_sentrySpans[r];if(!t)return;t.end(),a=this,l=CU(),c=e.timeout,a.$_sentryRootSpanTimer&&clearTimeout(a.$_sentryRootSpanTimer),a.$_sentryRootSpanTimer=setTimeout(()=>{a.$root&&a.$root.$_sentryRootSpan&&(a.$root.$_sentryRootSpan.end(l),a.$root.$_sentryRootSpan=void 0)},c)}};else sV&&JN.warn(`Unknown hook: ${r}`)}return n},cV={Vue:qN.Vue,attachProps:!0,logErrors:!0,hooks:eV,timeout:2e3,trackComponents:!1},uV=(e={})=>({name:"Vue",setupOnce(){},setup(t){!function(e,t){const n={...cV,...e.getOptions(),...t};if(!n.Vue&&!n.app)return void ZN(()=>{});if(n.app){Lj(n.app).forEach(e=>dV(e,n))}else n.Vue&&dV(n.Vue,n)}(t,e)}});jB("Vue",uV);const dV=(e,t)=>{const n=e;!0===(n._instance&&n._instance.isMounted)&&ZN(()=>{}),iV(e,t),Y$(t)&&e.mixin(lV({...t,...t.tracingOptions}))};const hV={...zF,captureUserFeedback:function(e){const t=h$();t&&t.captureUserFeedback(e)},forceLoad:function(){},onLoad:function(e){e()},showReportDialog:(e={},t=R$())=>{if(!GF.document)return void(YF&&JN.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i)return void(YF&&JN.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const s=GF.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=LB(i,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{o()}finally{GF.removeEventListener("message",e)}};GF.addEventListener("message",e)}const a=GF.document.head||GF.document.body;a?a.appendChild(s):YF&&JN.error("Not injecting report dialog. No injection point found in HTML")},wrap:function(e){return XF(e)()}},pV=[];async function fV(e,t){const n=await function(e){const t={dsn:"https://[email protected]/3",environment:"prod",release:"6.12.1",autoSessionTracking:!1,debug:!1,attachStacktrace:!0},n=[Wq(),Jq({types:["crash"]})];t.integrations=e=>[...e.filter(e=>!pV.includes(e.name)),...n];const r="sentry";return e.$config&&r&&e.$config[r]&&yN(t,e.$config[r].config,e.$config[r].clientConfig),t}(e);!function(e={}){zq({_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:I$}],version:I$}},defaultIntegrations:[...Hq(),uV()],...e})}({Vue:Xn,...n}),t("sentry",hV),e.$sentry=hV}const mV={};Xn.use(Rg);function _V(e,t={},n){for(const r in e){const i=e[r],s=n?`${n}:${r}`:r;"object"==typeof i&&null!==i?_V(i,t,s):"function"==typeof i&&(t[s]=i)}return t}const gV={run:e=>e()},yV=void 0!==console.createTask?console.createTask:()=>gV;function vV(e,t){const n=t.shift(),r=yV(n);return e.reduce((e,n)=>e.then(()=>r.run(()=>n(...t))),Promise.resolve())}function bV(e,t){const n=t.shift(),r=yV(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}function wV(e,t){for(const n of[...e])n(t)}class kV{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||(e=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||this._deprecatedMessages.add(e)}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const r of n)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=_V(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=_V(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(vV,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(bV,e,...t)}callHookWith(e,t,...n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&wV(this._before,r);const i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&wV(this._after,r)}):(this._after&&r&&wV(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}function CV(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function TV(e,t,n=".",r){if(!CV(t))return TV(e,{},n,r);const i={...t};for(const s of Object.keys(e)){if("__proto__"===s||"constructor"===s)continue;const t=e[s];null!=t&&(r&&r(i,s,t,n)||(Array.isArray(t)&&Array.isArray(i[s])?i[s]=[...t,...i[s]]:CV(t)&&CV(i[s])?i[s]=TV(t,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=t))}return i}const SV=(...e)=>e.reduce((e,t)=>
730TV(e,t,"",xV),{});var xV;function EV(e){return async(t,n)=>{const r=await(t.$_nuxtApp,i=e,s=[t.$_nuxtApp],s?i(...s):i());var i,s;if(r&&r.provide)for(const e in r.provide)n(e,r.provide[e]);return r}}const IV=[];function AV(e){var t;return e._asyncData=e._asyncData||{},e._errors=e._errors||(Me(t={},!1),t),new Proxy(e,{get:(e,t)=>"data"===t?e._asyncData:"_data"===t?e.state:Reflect.get(e,t)})}const PV=(e,t)=>e&&["function","object"].includes(typeof e)?e.__nuxt_installed?void 0:(e.__nuxt_installed=!0,t()):t(),OV=async(e,t)=>{const n={vueApp:{component:(e,t)=>PV(t,()=>Xn.component(e,t)),config:{globalProperties:{}},directive:(e,t)=>PV(t,()=>Xn.directive(e,t)),mixin:e=>PV(e,()=>Xn.mixin(e)),mount:()=>{},provide:t,unmount:()=>{},use(e,t){PV(e,()=>Xn.use(e,t))},version:Bt},provide:t,globalName:"nuxt",payload:AV(e.nuxtState),_asyncDataPromises:{},_asyncData:{},static:{data:{}},isHydrating:!0,nuxt2Context:e};n.hooks=new kV,n.hook=n.hooks.hook,n.callHook=n.hooks.callHook;const r=await va(()=>Promise.resolve().then(()=>jm),void 0,import.meta.url).then(e=>e.default);n._middleware=n._middleware||{global:IV,named:r},e.app.router.beforeEach(async(t,r,i)=>{n._processingMiddleware=!0;for(const s of n._middleware.global){const n=await s({...e,route:t,from:r});if(n||!1===n)return i(n)}i()}),e.app.router.afterEach(()=>{delete n._processingMiddleware}),Array.isArray(e.app.created)||(e.app.created=[e.app.created].filter(Boolean)),Array.isArray(e.app.mounted)||(e.app.mounted=[e.app.mounted].filter(Boolean)),e.app.created.push(function(){n.vue2App=this,Xn.config.errorHandler=n.vueApp.config.errorHandler}),e.app.mounted.push(()=>{n.isHydrating=!1});const i=new Proxy(n,{get:(e,t)=>"$store"===t?e.nuxt2Context.store:"$"===t[0]?e.nuxt2Context[t]||e.vue2App?.[t]:Reflect.get(e,t)});window.onNuxtReady(()=>{n.hooks.callHook("app:mounted",n.vueApp)}),t("_nuxtApp",i)},LV=e=>{const t=e.$config;e.$config=new Proxy(t,{get:(e,t)=>"public"===t?e.public:e[t]??e.public?.[t],set:(e,t,n)=>"public"!==t&&"app"!==t&&(e[t]=n,"public"in e&&(e.public[t]=n),!0)})},DV=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,RV=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,MV=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function NV(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t}function jV(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!MV.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(DV.test(e)||RV.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,NV)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class UV extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}const $V=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function BV(e="GET"){return $V.has(e.toUpperCase())}const FV=new Set(["image/svg","application/xml","application/xhtml","application/html"]),qV=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function VV(e,t,n,r){const i=function(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,s);return r}(t?.headers??e?.headers,n?.headers,r);let s;return(n?.query||n?.params||t?.params||t?.query)&&(s={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:s,params:s,headers:i}}async function HV(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const zV=new Set([408,409,425,429,500,502,503,504]),GV=new Set([101,204,205,304]);const KV=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}(),WV=function e(t={}){const{fetch:n=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:i=globalThis.AbortController}=t;async function s(e){const t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;
730t="number"==typeof e.options.retry?e.options.retry:BV(e.options.method)?0:1;const n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):zV.has(n))){const n="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),o(e.request,{...e.options,retry:t-1})}}const n=function(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new UV(`${i}: ${s}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(const a of["request","options","response"])Object.defineProperty(o,a,{get:()=>e[a]});for(const[a,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,a,{get:()=>e.response&&e.response[l]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,o),n}const o=async function(e,o={}){const a={request:e,options:VV(e,o,t.defaults,r),response:void 0,error:void 0};if(a.options.method&&(a.options.method=a.options.method.toUpperCase()),a.options.onRequest&&(await HV(a,a.options.onRequest),a.options.headers instanceof r||(a.options.headers=new r(a.options.headers||{}))),"string"==typeof a.request&&(a.options.baseURL&&(a.request=function(e,t){if(!(n=t)||"/"===n||b_(e))return e;var n;const r=k_(t);if(e.startsWith(r)){const t=e[r.length];if(!t||"/"===t||"?"===t)return e}return x_(r,e)}(a.request,a.options.baseURL)),a.options.query&&(a.request=S_(a.request,a.options.query),delete a.options.query),"query"in a.options&&delete a.options.query,"params"in a.options&&delete a.options.params),a.options.body&&BV(a.options.method))if(function(e){if(void 0===e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&!(e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(a.options.body)){const e=a.options.headers.get("content-type");"string"!=typeof a.options.body&&(a.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(a.options.body).toString():JSON.stringify(a.options.body)),e||a.options.headers.set("content-type","application/json"),a.options.headers.has("accept")||a.options.headers.set("accept","application/json")}else("pipeTo"in a.options.body&&"function"==typeof a.options.body.pipeTo||"function"==typeof a.options.body.pipe)&&("duplex"in a.options||(a.options.duplex="half"));let l;if(!a.options.signal&&a.options.timeout){const e=new i;l=setTimeout(()=>{const t=new Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},a.options.timeout),a.options.signal=e.signal}try{a.response=await n(a.request,a.options)}catch(c){return a.error=c,a.options.onRequestError&&await HV(a,a.options.onRequestError),await s(a)}finally{l&&clearTimeout(l)}if((a.response.body||a.response._bodyInit)&&!GV.has(a.response.status)&&"HEAD"!==a.options.method){const e=(a.options.parseResponse?"json":a.options.responseType)||function(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return qV.test(t)?"json":"text/event-stream"===t?"stream":FV.has(t)||t.startsWith("text/")?"text":"blob"}(a.response.headers.get("content-type")||"");switch(e){case"json":{const e=await a.response.text(),t=a.options.parseResponse||jV;a.response._data=t(e);break}case"stream":a.response._data=a.response.body||a.response._bodyInit;break;default:a.response._data=await a.response[e]()}}return a.options.onResponse&&await HV(a,a.options.onResponse),!a.options.ignoreResponseError&&a.response.status>=400&&a.response.status<600?(a.options.onResponseError&&await HV(a,a.options.onResponseError),await s(a)):a.response},a=async function(e,t){return(await o(e,t))._data};return a.raw=o,a.native=(...e)=>n(...e),a.create=(n={},r={})=>e({...t,...r,defaults:{...t.defaults,...r.defaults,...n}}),a}({fetch:KV.fetch?(...e)=>KV.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Headers:KV.Headers,AbortController:KV.AbortController}),XV=WV;globalThis.$fetch||(globalThis.$fetch=XV);var YV,ZV;var JV=(ZV||(ZV=1,YV=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})}
730,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(1);e.exports=function(t,n){var s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,a="object"===(void 0===t?"undefined":r(t))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==e,l=!o&&!a||o&&a,c=function(e){if(a){var r=t.headers.cookie||"";return e&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map(function(e){return e.split(";")[0]}).join(";"):""),r}if(o)return document.cookie||""},u=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(n){return e}},d={parseJSON:s,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!l)if(t="object"===(void 0===t?"undefined":r(t))?JSON.stringify(t):t,a){var o=function(){var e=n.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]}();o.push(i.serialize(e,t,s)),function(e){n.setHeader("Set-Cookie",e)}(o)}else document.cookie=i.serialize(e,t,s)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l||Array.isArray(e)&&e.forEach(function(e){var t=e.name,n=void 0===t?"":t,r=e.value,i=void 0===r?"":r,s=e.opts,o=void 0===s?{path:"/"}:s;d.set(n,i,o)})},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:d.parseJSON};if(l)return"";var n=i.parse(c(t.fromRes))[e];return u(n,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:d.parseJSON};if(l)return{};var t=i.parse(c(e.fromRes));for(var n in t)t[n]=u(t[n],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};l||(t.expires=new Date(0),d.set(e,"",t))},removeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!l){var t=i.parse(c());for(var n in t)d.remove(n,e)}},nodeCookie:i};return d}},function(e,t,n){function r(e,t){try{return t(e)}catch(n){return e}} 731/*! 732 * cookie 733 * Copyright(c) 2012-2014 Roman Shtylman 734 * Copyright(c) 2015 Douglas Christopher Wilson 735 * MIT Licensed 736 */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},s=t||{},a=e.split(o),l=s.decode||i,c=0;c<a.length;c++){var u=a[c],d=u.indexOf("=");if(!(d<0)){var h=u.substr(0,d).trim(),p=u.substr(++d,u.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[h]&&(n[h]=r(p,l))}}return n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||s;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!a.test(o))throw new TypeError("argument val is invalid");var l=e+"="+o;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(c)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invali
736d");l+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(l+="; HttpOnly"),r.secure&&(l+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l};var i=decodeURIComponent,s=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])),YV);const QV=Xa(JV),eH=({req:e,res:t},n)=>{n("cookies",QV(e,t,!0))},tH={Language:"Language",Edit:"Edit","Account Details":"Account Details","Full Name":"Full Name","First Name":"First Name","Last Name":"Last Name","Email Address":"Email Address","Forgot Password?":"Forgot Password?","Current Password":"Current Password","New Password":"New Password","Confirm New Password":"Confirm New Password",Cancel:"Cancel",Save:"Save","To change your password, enter your current password, and then your new password in the fields below.":"To change your password, enter your current password, and then your new password in the fields below.","Your password must contain at least 6 characters":"Your password must contain at least 6 characters","Log Out":"Log Out","Log out":"Log out","Log In":"Log In","Log in":"Log in",Browse:"Browse","My Lists":"My Lists",Search:"Search","Oops, the page you're<br>looking for does not exist.":"Oops, the page you're<br>looking for does not exist.","You may want to head back to the homepage.":"You may want to head back to the homepage.","If you have further questions, please visit our help center.":"If you have further questions, please visit our help center.",Sorry:"Sorry","An unexpected error occurred.":"An unexpected error occurred.","Try refreshing this page. If the problem persists, contact our support.":"Try refreshing this page. If the problem persists, contact our support.","Looks like we're having":"Looks like we're having","some server issues.":"some server issues.","Go back to the previous page and try again. If you have further questions, please visit our help center.":"Go back to the previous page and try again. If you have further questions, please visit our help center.",Maintenance:"Maintenance","We're undergoing a bit of":"We're undergoing a bit of","scheduled maintenance.":"scheduled maintenance.","Sorry for the inconvenience. We'll be back up and running as fast as possible.":"Sorry for the inconvenience. We'll be back up and running as fast as possible.","Go to homepage":"Go to homepage","Visit help center":"Visit help center",Refresh:"Refresh","The page you are trying to visit is restricted.":"The page you are trying to visit is restricted.","Try to log in for access.":"Try to log in for access.","Access Restricted":"Access Restricted",Error:"Error","Available on":"Available on","I'm a Librarian":"I'm a Librarian",Support:"Support","Terms of Service":"Terms of Service","Privacy Policy":"Privacy Policy","My Account":"My Account","Link Device":"Link Device","Back to":"Back to","Enjoy critically-acclaimed movies, inspiring documentaries, award-winning foreign films and more":"Enjoy critically-acclaimed movies, inspiring documentaries, award-winning foreign films and more","Stream these movies and thousands more":"Stream these movies and thousands more","Browse Movies":"Browse Movies","Find a different library":"Find a different library","Find a different university":"Find a different university","Stream thousands of films for free, thanks to the generous support of your public library or university.":"Stream thousands of films for free, thanks to the generous support of your public library or university.","Get free access to thousands of movies with your library card.":"Get free access to thousands of movies with your library card.","Get free access to thousands of movies through your university library.":"Get free access to thousands of movies through your university library.","Simply add your {institution_name} card number and PIN or password.":"Simply add your {institution_name} card number and PIN or password.","Frequently Asked Questions":"Frequently Asked Questions","Sign up today for free through your public library or university":"Sign up today for free through your public library or university","Stream on all your favorite devices, any time, anywhere":"Stream on all your favorite devices, any time, anywhere","Get Started":"Get Started","Log In To {institution_stem}":"Log In To {institution_stem}","Start streaming movies today with your public library card or university login":"Start streaming movies today with your public library card or university login","We partner with public libraries and universities to bring you ad-free films and series that can be enjoyed on your TV, mobile phone, tablet and online.":"We partner with public libraries and universities to bring you ad-free films and series that can be enjoyed on your TV, mobile phone, tablet and online.","What is Kanopy?":"What is Kanopy?","How is Kanopy free for me?":"How is Kanopy free for me?","Why do I need a library card or university login to sign up?":"Why do I need a library card or university login to sign up?","Why do I need a library card to sign up?":"Why do I need a library card to sign up?","Why do I need a university login to sign up?":"Why do I need a university login to sign up?","How do I get started?":"How do I get started?","What is Kanopy Kids?":"What is Kanopy Kids?","How do I know if my library or university offers Kanopy?":"How do I know if my library or university offers Kanopy?","Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies, documentaries, foreign films, classic cinema, independent films and educational videos that inspire, enrich and entertain. We partner with public libraries and universities to bring you an ad-free experience that can be enjoyed on your TV, mobile phone, tablets and online.":"Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies, documentaries, foreign films, classic cinema, independent films and educational videos that inspire, enrich and entertain. We partner with public libraries and universities to bring you an ad-free experience that can be enjoyed on your TV, mobile phone, tablets and online.","Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies, documentaries, foreign films, classic cinema, independent films and educational videos that inspire, enrich and entertain. We partner with public libraries to bring you an ad-free experience that can be enjoyed on your TV, mobile phones, tablets and online.":"Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies, documentaries, foreign films, classic cinema, independent films and educational videos that inspire, enrich and entertain. We partner with public libraries to bring you an ad-free experience that can be enjoyed on your TV, mobile phones, tablets and online.","Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies and documentaries that your lecturer has assigned, films that broaden your horizons and spark conversations, classic films that prove timeless and foreign films that show you how other people live, think and view the world we all live in. Thanks to your university library, you can watch for free with no ads, any time, anywhere on any device.":"Kanopy is the best video streaming service for quality, thoughtful entertainment. Find movies and documentaries that your lecturer has assigned, films that broaden your horizons and spark conversations, classic films that prove timeless and foreign films that show you how other people live, think and view the world we all live in. Thanks to your university library, you can watch for free with no ads, any time, anywhere on any device.","Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because the public library or university covers all associated costs, allowing you to watch for free with no ads.":"Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because the public library or university covers all associated costs, allowing you to watch for free with no ads.","Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because your library covers all associated costs, allowing you to watch for free with no ads.":"Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because your library covers all associated costs, allowing you to watch for free with no ads.","Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because {institution_name} covers all associated costs, allowing you to watch for free with no ads.":"Just as your library buys books to add to their collection for you to borrow, your library offers a variety of digital resources too - Kanopy is one of their more popular digital resources. Kanopy does not charge you because {institution_name} covers all associated costs, allowing you to watch for free with no ads.","Kanopy is only available through libraries, so you need to be a member of a participating library to start watching Kanopy.":"Kanopy is only available through libraries, so you need to be a member of a participating library to start watching Kanopy.","If you are a member of a participating public library, you can start watching by signing up with a valid public library card number and PIN/password.":"If you are a member of a participating public library, you can start watching by signing up with a valid public library card number and PIN/password.","If you are a currently registered student or faculty member of a participating college university, you can start watching by signing up with a valid university login.":"If you are a currently registered student or faculty member of a participating college university, you can start watching by signing up with a valid university login.","If you are a currently registered student or faculty member of a participating university, you can start watching by signing up with a valid university login.":"If you are a currently registered student or faculty member of a participating university, you can start watching by signing up with a valid university login.","Getting started is easy!":"Getting started is easy!","Click here":"Click here","to find your library and enter your library card information or university login when prompted. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.":"to find your library and enter your library card information or university login when prompted. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.","to enter your library card information. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.":"to enter your library card information. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.","to connect using your university login. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.":"to connect using your university login. Follow the simple instructions to create your Kanopy account using your email address or Google login and then start watching.","Kanopy Kids is our collection of movies and shows for kids available in public libraries only. Your public library offers unlimited plays in Kanopy Kids, so your kids are free to explore enriching, educational and entertaining films and TV series.":"Kanopy Kids is our collection of movies and shows for kids available in public libraries only. Your public library offers unlimited plays in Kanopy Kids, so your kids are free to explore enriching, educational and entertaining films and TV series.","to check out Kanopy Kids!":"to check out Kanopy Kids!","For public libraries, check to see if your library has made Kanopy available":"For public libraries, check to see if your library has made Kanopy available",here:"here","Type in the name of your library, or enter your zip code to display nearby libraries that have made Kanopy available.":"Type in the name of your library, or enter your zip code to display nearby libraries that have made Kanopy available.","For universities, check to see if your library has made Kanopy available":"For universities, check to see if your library has made Kanopy available","Type in the name of your university to see if they have made Kanopy available.":"Type in the name of your university to see if they have made Kanopy available.","step {step} of {total}":"step {step} of {total}","Watch now with your public library card or university login":"Watch now with your public library card or university login","Do you have a public library card?":"Do you have a public library card?","If so, help us find your public library":"If so, help us find your public library","Then, we'll ask you for your public library card number and PIN/password":"Then, we'll ask you for your public library card number and PIN/password","Find your Library":"Find your Library","Available in participating public libraries.":"Available in participating public libraries.","Are you a student or professor?":"Are you a student or professor?","If so, help us find your college or university":"If so, help us find your college or university","Then, we'll ask you for your student or professor login":"Then, we'll ask you for your student or professor login","Find your University":"Find your University","Available in participating colleges and universities.":"Available in participating colleges and universities.",or:"or","Find Your University":"Find Your University","Search by University or College Name":"Search by University or College Name","{nb_result} Search Result for":"{nb_result} Search Result for | {nb_result} Search Results for","Suggested Libraries":"Suggested Libraries","Suggested Universities":"Suggested Universities","We can't locate any libraries using the search terms you provided.
736<br>Consider searching again using a library name, zip code or location.":"We can't locate any libraries using the search terms you provided.<br>Consider searching again using a library name, zip code or location.","Select this library":"Select this library","Select this university":"Select this university","Find Your Public Library":"Find Your Public Library","Search by Library Name, City, or Zip Code":"Search by Library Name, City, or Zip Code","No results found - try using a zip code, location or library name":"No results found - try using a zip code, location or library name","Public Library":"Public Library","Welcome to Kanopy!":"Welcome to Kanopy!","Watch Now":"Watch Now","per month":"per month","Log In to Link Your Device":"Log In to Link Your Device","Log In to Set Up Parental Controls":"Log In to Set Up Parental Controls","Log In to Verify Email":"Log In to Verify Email","Don't have an account yet? Get Started":"Don't have an account yet? Get Started",Password:"Password","{action} with {social_network}":"{action} with {social_network}","{action} on {social_network}":"{action} on {social_network}","Sign Up":"Sign Up","Sign up":"Sign up","Sign In":"Sign In","Follow us":"Follow us","Please log in or create an account to":"Please log in or create an account to","Parental Controls":"Parental Controls","Please log in or create an account to access":"Please log in or create an account to access","Please log in to":"Please log in to","verify your account":"verify your account","Please enter your email address":"Please enter your email address","Please enter your password":"Please enter your password","It looks like this email address is invalid. Please try again.":"It looks like this email address is invalid. Please try again.","The password you've entered is incorrect. Please try again.":"The password you've entered is incorrect. Please try again.","An error occurred":"An error occurred","Start watching with your public library card or university login":"Start watching with your public library card or university login","Welcome to":"Welcome to","Search for your Library or Select your Library from the list":"Search for your Library or Select your Library from the list","Enter the code":"Enter the code","on your TV":"on your TV",Next:"Next","Try again, or refresh your TV screen for a new code":"Try again, or refresh your TV screen for a new code","Kanopy is currently not offered at your {institution_type}. Request Kanopy by completing the form below.":"Kanopy is currently not offered at your {institution_type}. Request Kanopy by completing the form below.",Name:"Name",Email:"Email",Submit:"Submit",Message:"Message",Optional:"Optional","Name of your {institution_type}":"Name of your {institution_type}","Please enter your name.":"Please enter your name.","Please enter your email address.":"Please enter your email address.","Please enter your Library.":"Please enter your Library.","Please enter your University.":"Please enter your University.","Please enter your Institution.":"Please enter your Institution.",library:"library",university:"university","Reset Password":"Reset Password","Enter your new password":"Enter your new password","Enter your email address":"Enter your email address","Email must be filled":"Email must be filled","Password must contain 6 characters":"Password must contain 6 characters","Create Your Account":"Create Your Account","Almost there! Complete the sign up process by creating a Kanopy account.":"Almost there! Complete the sign up process by creating a Kanopy account.",'Almost there! Complete the sign up process by creating a Kanopy account, or click the "Skip" to start watching.':'Almost there! Complete the sign up process by creating a Kanopy account, or click the "Skip" to start watching.',Skip:"Skip",Terms:"Terms",and:"and","Please enter your First name.":"Please enter your First name.","Please enter your Last name.":"Please enter your Last name.","Please enter your Email.":"Please enter your Email.","Please enter your Password.":"Please enter your Password.","Access Kanopy Through Your University":"Acce
736ss Kanopy Through Your University","Add Your Library Card":"Add Your Library Card","Enter the username and password that has been provided to you by the":"Enter the username and password that has been provided to you by the",Username:"Username","Type your Username":"Type your Username","Type your Password":"Type your Password","Please enter your Username":"Please enter your Username","Please enter your Password":"Please enter your Password","Sorry, this username may not be valid. Please try again.":"Sorry, this username may not be valid. Please try again.","Sorry, this password may not be valid. Please try again.":"Sorry, this password may not be valid. Please try again.","Turn On Your VPN":"Turn On Your VPN",'To start watching, your institution requires you to use their VPN. Please log on to {institution_name}\'s VPN and click the "Reload" button below.':'To start watching, your institution requires you to use their VPN. Please log on to {institution_name}\'s VPN and click the "Reload" button below.','If you do not have the VPN downloaded, click on the "Learn More" button below. Once you have successfully logged on to your VPN, click "Reload".':'If you do not have the VPN downloaded, click on the "Learn More" button below. Once you have successfully logged on to your VPN, click "Reload".',Reload:"Reload","Learn More":"Learn More","Use your {institution_name} login to connect with Kanopy":"Use your {institution_name} login to connect with Kanopy","Looks like {institution_name} didnât recognize you.":"Looks like {institution_name} didnât recognize you.","Contact your university or try again.":"Contact your university or try again.","Looks like {institution_name} proxy has bounced you back to Kanopy without authenticating you, or your proxy IP {proxy_ip} isn't whitelisted":"Looks like {institution_name} proxy has bounced you back to Kanopy without authenticating you, or your proxy IP {proxy_ip} isn't whitelisted","Try again or {action} to Kanopy and we will work with your university to resolve it.":"Try again or {action} to Kanopy and we will work with your university to resolve it.","report this issue":"report this issue","Type your {field_label}":"Type your {field_label}","Library Card Number":"Library Card Number","Library Card Pin/Password":"Library Card Pin/Password","Type your PIN/Password":"Type your PIN/Password",Continue:"Continue","Need a card? Apply with your library here":"Need a card? Apply with your library here","Please enter your Library Card Number":"Please enter your Library Card Number","Please enter your PIN/Password":"Please enter your PIN/Password","This library card number may be incorrect. Check the details or contact your library.":"This library card number may be incorrect. Check the details or contact your library.","This PIN/Password may be incorrect. Check the details or contact your library.":"This PIN/Password may be incorrect. Check the details or contact your library.","Trying to Log in?":"Trying to Log in?","Contact {institution_name} for Help":"Contact {institution_name} for Help","Thank you for your inquiry!":"Thank you for your inquiry!","You have successfully requested Kanopy at your {institution}. We hope they make Kanopy available to your community soon.":"You have successfully requested Kanopy at your {institution}. We hope they make Kanopy available to your community soon.","Check if another {institution} you are a member of offers Kanopy":"Check if another {institution} you are a member of offers Kanopy","Find another {institution}":"Find another {institution}",Location:"Location","My Information":"My Information","My Libraries":"My Libraries","Add New Library":"Add New Library","How it Works":"How it Works","Set up Parental Controls to make sure your kids are viewing age-appropriate content on Kanopy.":"Set up Parental Controls to make sure your kids are viewing age-appropriate content on Kanopy.","With Parental Controls enabled, you will need to enter your PIN when exiting Kanopy Kids in order to watch content outside of the kids collection.":"With Parental Controls enabled, you will need to enter your PIN when exiting Kanopy Kids in order to watch content outside of the kids collection.","Reset your PIN":"Reset your PIN","Status: {On}":"Status: {On}","Status: Off":"Status: Off","Turn Off":"Turn Off","Turn On":"Turn On","Forgot PIN?":"Forgot PIN?","Enter a new 4-digit PIN":"Enter a new 4-digit PIN","Please enter PIN to turn it off":"Please enter PIN to turn it off","Enter a 4-digit PIN":"Enter a 4-digit PIN","Incorrect PIN. Reset your PIN or try again":"Incorrect PIN. Reset your PIN or try again","Delete Library":"Delete Library",Delete:"Delete","Are you sure you want to delete {membership_name} from your libraries?":"Are you sure you want to delete {membership_name} from your libraries?",Default:"Default","{remaining_tickets} out of {max_tickets}":"{remaining_tickets} out of {max_tickets}",Reactivate:"Reactivate","Successfully saved!":"Successfully saved!","Successfully deleted!":"Successfully deleted!","Contact your institution or try again":"Contact your institution or try again","Set this library as default":"Set this library as default","You haven't added a library yet.":"You haven't added a library yet.","Add a library below to start watching.":"Add a library below to start watching.",On:"On","Forgot Pin?":"Forgot Pin?","Go to":"Go to","to update your email address.":"to update your email address.",Back:"Back",Send:"Send","We will send instructions to reset your PIN at {email}.":"We will send instructions to reset your PIN at {email}.","Email sent with instructions":"Email sent with instructions","Check your email and follow the instructions to verify your account":"Check your email and follow the instructions to verify your account","Why verify?":"Why verify?","Email sent":"Email sent","Please verify your email address":"Please verify your email address","Resend verification email to {email}":"Resend verification email to {email}","Kanopy Privacy Policy":"Kanopy Privacy Policy","Kanopy Terms of Service":"Kanopy Terms of Service","All Videos":"All Videos","Continue Watching":"Continue Watching","Custom Playlists":"Custom Playlists","Streaming is currently limited at your library.":"Streaming is currently limited at your library.","See More":"See More","Free films each month":"Free films each month","3 days to watch":"3 days to watch","Depending on the title, you have 48 or 72 hours to finish a film after pressing play.":"Depending on the title, you have 48 or 72 hours to finish a film after pressing play.","Track your time remaining":"Track your time remaining","See time remaining at My Lists > Continue Watching.":"See time remaining at My Lists > Continue Watching.","Most Popular":"Most Popular",Filters:"Filters","Sort By":"Sort By","Citation Tool":"Citation Tool","Copy Text":"Copy Text","Text Copied!":"Text Copied!",Playlist:"Playlist","Add to Playlist":"Add to Playlist","Edit Playlist":"Edit Playlist","{clip_count} Clip":"{clip_count} Clips | {clip_count} Clip | {clip_count} Clips","{playlist_count} Playlist":"{playlist_count} Playlists | {playlist_count} Playlist | {playlist_count} Playlists",Director:"Director",Features:"Features",Studio:"Studio",Genres:"Genre | Genres",Tags:"Tags",Supplier:"Supplier",Watchlist:"Watchlist","Add to":"Add to","Remove from":"Remove from",Play:"Play","Play Episode {episode_position}":"Play Episode {episode_position}","Play S{season_position} Episode {episode_position}":"Play S{season_position} Episode {episode_position}",Trailer:"Trailer",Details:"Details",Share:"Share",Playlists:"Playlists","Email & Social Media":"Email & Social Media",Watch:"Watch","Season {season_number}":"Season {season_number}","Episode {episode_number}":"Episode {episode_number}
736",Seasons:"Seasons","{episode_count} Episode":"{episode_count} Episode | {episode_count} Episode | {episode_count} Episodes","Related Videos":"Related Videos",Link:"Link","Copy Link":"Copy Link","Link Copied!":"Link Copied!","Embed This {product_type}":"Embed This {product_type}","Trailers may show ads provided by third-party services and are not endorsed by Kanopy.":"Trailers may show ads provided by third-party services and are not endorsed by Kanopy.",Report:"Report",Add:"Add",Expired:"Expired",Copy:"Copy",Copied:"Copied",Dropdown:"Dropdown","Dropdown Menu":"Dropdown Menu",About:"About",Librarians:"Librarians",Careers:"Careers",Press:"Press",Contact:"Contact","Welcome To Kanopy Kids!":"Welcome To Kanopy Kids!","Start Watching":"Start Watching","Enjoy unlimited plays in our curated collection for kids. To set Parental Controls, please":"Enjoy unlimited plays in our curated collection for kids. To set Parental Controls, please","click here":"click here","To exit, click on the âExit Kanopy Kidsâ button on the top right.":"To exit, click on the âExit Kanopy Kidsâ button on the top right.","Don't show this again":"Don't show this again",List:"List","Your network connection was interrupted":"Your network connection was interrupted","Request Access":"Request Access","Request for Access":"Request for Access","Read Less":"Read Less","Read More":"Read More","See map view":"See map view","Reset password email sent":"Reset password email sent","Saved Successfully":"Saved Successfully","Changes saved":"Changes saved","Deleted successfully":"Deleted successfully","About Kanopy Kids":"About Kanopy Kids","This first name is invalid":"This first name is invalid","This last name is invalid":"This last name is invalid",'This email address is already registered in our system. Do you want to <a href="/user/password">recover your password</a> instead?':'This email address is already registered in our system. Do you want to <a href="/user/password">recover your password</a> instead?',"Are you sure you want to delete {playlist_title}? This action cannot be undone.":"Are you sure you want to delete {playlist_title}? This action cannot be undone.","Delete Playlist":"Delete Playlist","Sorry, {email} is not recognized as a user name or an e-mail address.":"Sorry, {email} is not recognized as a user name or an e-mail address.","In This Series":"In This Series","Sorry, we couldn't verify your email address because you are logged in with a different account":"Sorry, we couldn't verify your email address because you are logged in with a different account","Congratulations, {first_name}! Your account is now verified!":"Congratulations, {first_name}! Your account is now verified!","Your account is already verified or the link was invalid/expired":"Your account is already verified or the link was invalid/expired","Download Kanopy":"Download Kanopy","The email address is already registered in our system":"The email address is already registered in our system","Invalid code or code already activated. Please try again.":"Invalid code or code already activated. Please try again.","Device Linked Successfully!":"Device Linked Successfully!","Enter the Activation Code":"Enter the Activation Code","Your device is now linked to your Kanopy account. To link another device, return to the previous screen to enter a new code.":"Your device is now linked to your Kanopy account. To link another device, return to the previous screen to enter a new code.","
736Experiencing technical issues? Visit our {support_page_link} for more information.":"Experiencing technical issues? Visit our {support_page_link} for more information.","Please enter the code showing on your Kanopy app to link your device to your Kanopy account.":"Please enter the code showing on your Kanopy app to link your device to your Kanopy account.","Support Page":"Support Page","Request Sent!":"Request Sent!","You have exited Kanopy Kids":"You have exited Kanopy Kids","from The Great Courses":"from The Great Courses","Any videos you add to your watchlist will appear in this list.":"Any videos you add to your watchlist will appear in this list.","Any videos you're currently watching will appear in this list.":"Any videos you're currently watching will appear in this list.","{video_count} Video":"{video_count} Video | {video_count} Videos","Create New Playlist":"Create New Playlist","Playlist created":"Playlist created","Failed to create the playlist":"Failed to create the playlist","Playlist deleted":"Playlist deleted","Failed to delete the playlist":"Failed to delete the playlist","Any playlists you create will appear in this list.":"Any playlists you create will appear in this list.",Clip:"Clip",Clips:"Clips","Edit Clip":"Edit Clip","Delete Clip":"Delete Clip","Clip Length":"Clip Length",Notes:"Notes","Total Running Time":"Total Running Time","No Clips added":"No Clips added",'To add a new clip, first search for a video. Then, click on "Playlists" to add it to your playlist.':'To add a new clip, first search for a video. Then, click on "Playlists" to add it to your playlist.',"Play Clip {clip_position}":"Play Clip {clip_position}","Playlist Title":"Playlist Title","Clip Title":"Clip Title","Go to Source":"Go to Source",Instructions:"Instructions","Select the start and end times for your clip. Use the scrubber on the player to drag and drop clip positions, or enter in the timecodes directly in the fields.":"Select the start and end times for your clip. Use the scrubber on the player to drag and drop clip positions, or enter in the timecodes directly in the fields.","Start time":"Start time","End time":"End time","Save Changes":"Save Changes","View Playlist":"View Playlist","You haven't added any clips to this playlist.":"You haven't added any clips to this playlist.","To add a new clip, first":"To add a new clip, first","search for a video":"search for a video","Then, click on âPlaylistsâ to add the video to your playlist.":"Then, click on âPlaylistsâ to add the video to your playlist.","Please add a title to your playlist":"Please add a title to your playlist","Clip deleted!":"Clip deleted!","The clip was already deleted":"The clip was already deleted","Failed to delete the clip":"Failed to delete the clip","Browse catalog":"Browse catalog","Browse Catalog":"Browse Catalog","This library card number is already being used on a Kanopy account":"This library card number is already being used on a Kanopy account",'Your institution requires you to use their VPN. Please turn it "on" and retry':'Your institution requires you to use their VPN. Please turn it "on" and retry',"Try to sign up":"Try to sign up","Sorry, this video is not available for your institution":"Sorry, this video is not available for your institution","Kanopy Kids is our collection of movies and shows for kids.":"Kanopy Kids is our collection of movies and shows for kids.","Here you have unlimited plays so your kids are free to explore enriching, educational and entertaining content.":"Here you have unlimited plays so your kids are free to explore enriching, educational and entertaining content.","Set up parental controls for your kids to watch viewing age-appropriate content on Kanopy.":"Set up parental controls for your kids to watch viewing age-appropriate content on Kanopy.","to set your PIN.":"to set your PIN.","For more information about Kanopy Kids, please visit our":"For more information about Kanopy Kids, please visit our","help article":"help article","Back to Search":"Back to Search","Thank you, your request for this video has been sent! We will notify you if your library chooses to make this video available":"Thank y
736ou, your request for this video has been sent! We will notify you if your library chooses to make this video available","What will this title be used for?":"What will this title be used for?","E.g: It's required or extra credit for my course":"E.g: It's required or extra credit for my course","Describe your role":"Describe your role",'E.g: "Econ 101" or "CS269" or "Faculty Training"':'E.g: "Econ 101" or "CS269" or "Faculty Training"',"Let {institution} know you're interested in {title} by completing this form. If your request is approved, the title will be added to their collection.":"Let {institution} know you're interested in {title} by completing this form. If your request is approved, the title will be added to their collection.","Parental controls enabled":"Parental controls enabled","Incorrect PIN. Please reset your PIN or try again.":"Incorrect PIN. Please reset your PIN or try again.","Back to Video":"Back to Video","Play Next":"Play Next",Dismiss:"Dismiss","Log in with this email address to use this library card.":"Log in with this email address to use this library card.","For more help, contact {support_link}.":"For more help, contact {support_link}.","Kanopy Support":"Kanopy Support","Access account settings":"Acce
736ss account settings","You're ready to start watching on your TV":"You're ready to start watching on your TV","This title contains supplemental material":"This title contains supplemental material","Learn more about this topic with additional documentation available for download":"Learn more about this topic with additional documentation available for download","Unable to link TV to your Kanopy account. Would you like to {retry_link}":"Unable to link TV to your Kanopy account. Would you like to {retry_link}","Your TV was successfully linked to your Kanopy account":"Your TV was successfully linked to your Kanopy account","refresh & retry linking to your TV?":"refresh & retry linking to your TV?","Visit the {institution_stem} Collection":"Visit the {institution_stem} Collection","Add A Library Card":"Add A Library Card","Also available on":"Also available on","Stream thousands of movies with your library card.":"Stream thousands of movies with your library card.","Have a Kanopy account?":"Have a Kanopy account?",Accessibility:"Accessibility","Kanopy and Accessibility":"Kanopy and Accessibility","Active Library":"Active Library","Create an account":"Create an account",Help:"Help","by OverDrive":"by OverDrive","Log in with your university credentials.":"Log in with your university credentials.","Version {version}":"Version {version}","Copyright {year} Kanopy. All rights reserved.":"Copyright {year} Kanopy. All rights reserved.","Closed captions available":"Closed captions available","Closed captions not available":"Closed captions not available","Rated {rating} out of 5 stars":"Rated {rating} out of 5 stars","I'd like to receive emails about new and recommended films on Kanopy.":"I'd like to receive emails about new and recommended films on Kanopy.",optional:"optional","{language} captions off":"{language} captions off","{language} captions on":"{language} captions on",Notifications:"Notifications","Delete Account":"Delete Account","Delete Account Confirmation":"Delete Account Confirmation","Do you want to delete your account?":"Do you want to delete your account?","Yes, delete my account":"Yes, delete my account","No, cancel my request":"No, cancel my request","You are about to delete your account. Once your account is deleted, you won't be able to access Kanopy through the following library memberships:":"You are about to delete your account. Once your account is deleted, you won't be able to access Kanopy through the following library memberships:","We weren't able to delete your account. Please try again.":"We weren't able to delete your account. Please try again.","Your login credentials must match the account you are trying to delete. Please try again.":"Your login credentials must match the account you are trying to delete. Please try again.","By signing up, you confirm that you're 18 years or older and agree to Kanopy's":"By signing up, you confirm that you're 18 years or older and agree to Kanopy's","Your privacy matters":"Your privacy matters","Allow All":"Allow All",Customize:"Customize","We use cookies to help you navigate our website and to enable our core services. Weâd like to use other cookies to improve performance and gather anonymous usage data so we can design better services.":"We use cookies to help you navigate our website and to enable our core services. Weâd like to use other cookies to improve performance and gather anonymous usage data so we can design better services.",Cookies:"Cookies","Privacy Preference Center":"Privacy Preference Center","Kanopy uses required cookies to ensure basic functionality of our website and services. We use additional cookies to make sure our services are reliable and performing well. We also use cookies to anonymously analyze user behavior so we can improve the features and services that matter most to our users. You can adjust your cookie settings at any time.":"Kanopy uses required cookies to ensure basic functionality of our website and services. We use additional cookies to make sure our services are reliable and performing well. We also use cookies to anonymously analyze user behavior so we can improve the features and services that matter most to our users. You can adjust your cookie settings at any time.","Learn more about how we use and protect your information.":"Learn more about how we use and protect your information.",Required:"Required","Always Active":"Always Active","These cookies are necessary so you can do things like log in and see available content. Our services wonât work without these cookies.":"These
736cookies are necessary so you can do things like log in and see available content. Our services wonât work without these cookies.","Performance & reliability":"Performance & reliability","These cookies notify us when our services arenât working as expected so we can fix problems.":"These cookies notify us when our services arenât working as expected so we can fix problems.","Research & analytics":"Research & analytics","These cookies gather anonymous data about how our services are used. This allows us to improve the features and services that our users care about.":"These cookies gather anonymous data about how our services are used. This allows us to improve the features and services that our users care about.","Confirm my choices":"Confirm my choices","PIN digit {index}":"PIN digit {index}",Close:"Close",Blocked:"Blocked",Inactive:"Inactive","Log in or Sign up on Kanopy to watch this film":"Log in or Sign up on Kanopy to watch this film","No Membership":"No Membership","Activate your membership with {name} to start watching this film.":"Activate your membership with {name} to start watching this film.","Reactivate or contact your library for support.":"Reactivate or contact your library for support.","Sorry, this content cannot be embedded.":"Sorry, this content cannot be embedded.","To watch this film, you must exit Kanopy Kids.":"To watch this film, you must exit Kanopy Kids.","Sorry, this content is not available for your institution.":"Sorry, this content is not available for your institution.","Sorry, this playlist doesn't have items available":"Sorry, this playlist doesn't have items available","Reactivation open in another window":"Reactivation open in another window","Authentication opened in another window":"Authentication opened in another window","Skip to {timecode}":"Skip to {timecode}","Enable Transcript":"Enable Transcript","Disable Transcript":"Disable Transcript","Close transcript":"Close transcript","Main Menu":"Main Menu","Certified B Corporation":"Certified B Corporation","Back to Main Menu":"Back to Main Menu",Membership:"Membership","Enter parental controls PIN to access this page.":"Enter parental controls PIN to access this page.","'{title}'. Cover.":"'{title}'. Cover.","Captions Menu":"Captions Menu","Captions Settings":"Captions Settings",Off:"Off","Kanopy will remove your account information within 30 days, and deleted accounts canât be recovered. You wonât be able to create a new account with any memberships listed above until next month. Deleting your Kanopy account will not affect your library or university accounts.":"Kanopy will remove your account information within 30 days, and deleted accounts canât be recovered. You wonât be able to create a new account with any memberships listed above until next month. Deleting your Kanopy account will not affect your library or university accounts.","Watch Kanopy on your phone or tablet":"Watch Kanopy on your phone or tablet","Get The Free App":"Get The Free App","Applied filters":"Applied filters","Clear all":"Clear all","Close filter menu":"Close filter menu","Public performance rights available":"Public performance rights available","Closed captioning available":"Closed captioning available","Suggested Match: ":"Suggested Match: ","Previous Suggested Matches":"Previous Suggested Matches","Next Suggested Matches":"Next Suggested Matches","Clear Search":"Clear Search","Submit Search":"Submit Search","In Collection":"In Collection","See {results} search results available now.":"See {results} search result available now. | See {results} search results available now.","See {results} search results available by request.":"See {results} search result available by request. | See {results} search results available by request.","Show {count} titles":"Show {count} title | Show {count} titles",more:"more",less:"less",Subjects:"Subject | Subjects","Public Performance":"Public Performance","Show fewer {title} filters":"Show fewer {title} filters","Show more {title} filters":"Show more {title} filters","Show filters. {count} filter applied":"Show filters. {count} filter applied. | Show filters. {count} filters applied.","Sort.":"Sort.","Filter.":"Filter.","Clear all filters":"Clear all filters","{title} added to Watchlist.":"{title} added to Watchlist.","{title} removed from Watchlist.":"{title} removed from Watchlist.","Add {title} to Watchlist.":"Add {title} to Watchlist.","Remove {title} from Watchlist.":"Remove {title} from Watchlist.","{number} tickets":"{number} ticket | {number} tickets","WATCH NOW":"WATCH NOW","WATCH EPISODE {episode_position}":"WATCH EPISODE {episode_position}","WATCH S{season_position} EPISODE {episode_position}":"WATCH S{season_position} EPISODE {episode_position}","S{season} Episode {number}":"S{season} Episode {number}","Episode {number}":"Episode {number}","Access all for {window}
736 hours":"Access all for {window} hours","{tickets} tickets available":"{tickets} tickets available | {tickets} ticket available | {tickets} tickets available","Please acknowledge Kanopy's policies to continue.":"Please acknowledge Kanopy's policies to continue.","I confirm that I am 18 years or older, and I agree to Kanopy's {tos_link} and {pp_link}.":"I confirm that I am 18 years or older, and I agree to Kanopy's {tos_link} and {pp_link}.","Select this {type}":"Select this {type}","+{memberships} more":"+{memberships} more","Access expires in {time}":"Access expires in {time}","Season {season} access expires in {time}":"Season {season} access expires in {time}","Films appear on your {continue_watching} list with the remaining time in your access period.":"Films appear on your {continue_watching} list with the remaining time in your access period.","{kanopy_kids}, so you can watch as many kid-friendly titles as you'd like.":"{kanopy_kids}, so you can watch as many kid-friendly titles as you'd like.","Kanopy Kids titles don't use tickets":"Kanopy Kids titles don't use tickets",Done:"Done","Previous item":"Previous item","Next item":"Next item","Learn more about tickets":"Learn more about tickets","Access Season {season} for {window}":"Access Season {season} for {window}","Access all for {window}":"Access all for {window}","{window} access":"{window} access","{num} days":"{num} days | {num} day | {num} days","{num} hours":"{num} hours | {num} hour | {num} hours","You're previewing the site as an admin.":"You're previewing the site as an admin.","Some features aren't available while previewing.":"Some features aren't available while previewing.","Close Preview Window":"Close Preview Window","This feature isn't available when previewing Kanopy.":"This feature isn't available when previewing Kanopy.",Tickets:"Ticket | Tickets","Show slide {index} of {total}":"Show slide {index} of {total}","Slide {index} of {total}":"Slide {index} of {total}",Carousel:"Carousel","Carousel controls":"Carousel controls",Slide:"Slide","You have {num} tickets remaining this month":"You have {num} tickets remaining this month | You have {num} ticket remaining this month | You have {num} tickets remaining this month","Illustration of Kanopy ticket icon.":"Illustration of Kanopy ticket icon.","Continue watching":"Continue watching","Title card with a badge showing 27 hours remaining in the access period.":"Title card with a badge showing 27 hours remaining in the access period.","Kanopy Kids":"Kanopy Kids","Illustration of Kanopy Kids icon.":"Illustration of Kanopy Kids icon.","You'll get {ticket_count} tickets each month to watch films from {vp}.":"You'll get {ticket_count} tickets each month to watch films from {vp}.","{vp} generously allows for unlimited streaming. Stream any title on Kanopy on any device, with no monthly limits.":"{vp} generously allows for unlimited streaming. Stream any title on Kanopy on any device, with no monthly limits.","{kanopy_kids} You can watch as many kid-friendly titles as you'd like every month.":"{kanopy_kids} You can watch as many kid-friendly titles as you'd like every month.","Start watching now":"Start watching now","Welcome to Kanopy":"Welcome to Kanopy",'A grouping of various sized screens, each showing the Kanopy "K" logo':'A grouping of various sized screens, each showing the Kanopy "K" logo',"Kanopy Kids puzzle icon":"Kanopy Kids puzzle icon","Don't see your library? Let them know you're interested in Kanopy.":"Don't see your library? Let them know you're interested in Kanopy.","Don't see your university? Let them know you're interested in Kanopy.":"Don't see your university? Let them know you're interested in Kanopy.","Browse Unlimited Viewing Titles":"Browse Unlimited Viewing Titles","Video shelves loaded.":"Video shelves loaded.","Additional shelves loaded.":"Additional shelves loaded.",'No results found for "{query}".':'No results found for "{query}".',"Try a different search or browse popular titles below.":"Try a different search or browse popular titles below.","First name must be filled":"First name must be filled","Last name must be filled":"Last name must be filled","Current password is needed to change password":"Current password is needed to change password","Wrong password":"Wrong password","Password must contain at least 6 characters":"Password must contain at least 6 characters","Passwords do not match":"Passwords do not match","0 tickets":"0 tickets","{tickets} tickets or less":"{tickets} tickets or less | {tickets} ticket or less | {tickets} tickets or less",Shelf:"Shelf","Go to Kanopy Kids":"Go to Kanopy Kids","Exit Kanopy Kids":"Exit Kanopy Kids",Home:"Home",Settings:"Settings","Not available":"Not available",Subtitles:"Subtitles","Subtitle Styles":"Subtitle Styles",Audio:"Audio","Back to Settings":"Back to Settings",Normal:"Normal",Transcript:"Transcript","If you still have trouble, reach out to your library.":"If you still have trouble, reach out to your library.","Verify your membership":"Verify your membership","Posters of Kanopy Kids shows":"Posters of Kanopy Kids shows","Learn more on Kanopy Help.":"Learn more on Kanopy Help.","You haven't added a library yet. Add a library to start watching.":"You haven't added a library yet. Add a library to start watching.","To watch this title, log in to Kanopy then refresh this page.":"To watch this title, log in to Kanopy then refresh this page.","Log in to see the contents of this playlist.":"Log in to see the contents of this playlist.","To watch this title, log in or sign up for Kanopy then refresh this page.":"To watch this title, log in or sign up for Kanopy then refresh this page.","Log in or sign up to see the contents of this playlist.":"Log in or sign up to see the contents of this playlist.","Sorry, this playlist doesn't have items available.":"Sorry, this playlist doesn't have items available.","Sorry, this title cannot be found.":"Sorry, this title cannot be found.","Add library card":"Add library card","Reactivate card":"Reactivate card","Go to Kanopy Home":"Go to Kanopy Home","To see the contents of this playlist, exit Kanopy Kids.":"To see the contents of this playlist, exit Kanopy Kids.","View in Kanopy":"View in Kanopy","To watch Kanopy through this embedded link, make sure your browser allows pop-ups from this website and that embedded content is allowed from kanopy.com.":"To watch Kanopy through this embedded link, make sure your browser allows pop-ups from this website and that embedded content is allowed from kanopy.com.","Activate your membership with {name} to start watching this playlist.":"Activate your membership with {name} to start watching this playlist.","Displaying most popular films with {filter_count} filter applied.":"Displaying most popular films with {filter_count} filters applied. | Displaying most popular films with {filter_count} filter applied. | Displaying most popular films with {filter_count} filters applied.","Displaying {query} with {filter_count} filter applied.":"Displaying {query} with {filter_count} filters applied. | Displaying {query} with {filter_count} filter applied. | Displaying {query} with {filter_count} filters applied.","Displaying additional search results.":"Displaying additional search results.","No results for {query}. Displaying most popular films in search results.":"No results for {query}. Displaying most popular films in search results.","Displaying most popular films in search results.":"Displaying most popular films in search results.","Displaying search results for {query}.":"Displaying search results for {query}.","Title details":"Title details","Clips and Share":"Clips and Share","Apple iPhone logo. Download on the App Store":"Apple iPhone logo. Download on the App Store","Apple iPad logo. Download on the App Store":"Apple iPad logo. Download on the App Store","Apple TV logo. Download on the App Store":"Apple TV logo. Download on the App Store","Android logo. Download on the Play Store":"Android logo. Download on the Play Store","Android T
736V logo. Download on the Play Store":"Android TV logo. Download on the Play Store","Chromecast logo. Watch Kanopy on Chromecast":"Chromecast logo. Watch Kanopy on Chromecast","Roku logo. Download on the Channel Store for Roku":"Roku logo. Download on the Channel Store for Roku","FireTV logo. Download on the Amazon App Store":"FireTV logo. Download on the Amazon App Store","Fire Tablet logo. Download on the Amazon App Store":"Fire Tablet logo. Download on the Amazon App Store","Apple App Store logo. Download on the App Store":"Apple App Store logo. Download on the App Store","Google Play Store logo. Download on the Google Play Store":"Google Play Store logo. Download on the Google Play Store","Roku store logo. Download on the Roku Channel Store":"Roku store logo. Download on the Roku Channel Store","Fire Tablet store logo. Download on the Amazon App Store":"Fire Tablet store logo. Download on the Amazon App Store","Samsung logo. Read how to get the Samsung app":"Samsung logo. Read how to get the Samsung app","Enter the code on your TV":"Enter the code on your TV","Parental Controls PIN":"Parental Controls PIN","Displaying {number} custom playlists.":"Displaying {number} custom playlists. | Displaying {number} custom playlist. | Displaying {number} custom playlists.","Custom playlists failed to load.":"Custom playlists failed to load.","Displaying additional custom playlists.":"Displaying additional custom playlists.","Additional custom playlists failed to load.":"Additional custom playlists failed to load.","Dismiss announcement":"Dismiss announcement","Displaying {number} videos.":"Displaying {number} videos. | Displaying {number} video. | Displaying {number} videos.","Something went wrong. Videos failed to load.":"Something went wrong. Videos failed to load.","Displaying additional videos.":"Displaying additional videos.","Something went wrong. Additional videos failed to load.":"Something went wrong. Additional videos failed to load.","Watch on kanopy.com":"Watch on kanopy.com","DRM Error":"DRM Error","Your device doesn't support playback of embedded videos with DRM-protection. You can watch this title on the Kanopy website.":"Your device doesn't support playback of embedded videos with DRM-protection. You can watch this title on the Kanopy website.","Go to Kanopy Help":"Go to Kanopy Help",'Clip "{title}" selected. Clip length: {length}':'Clip "{title}" selected. Clip length: {length}',"HDCP Error":"HDCP Error","Devices need to support High-bandwidth Digital Content Protection (HDCP) to play this content. Visit Kanopy Help for help with this error.":"Devices need to support High-bandwidth Digital Content Protection (HDCP) to play this content. Visit Kanopy Help for help with this error.","Kanopy European Privacy Notice (German)":"Kanopy European Privacy Notice (German)","Displaying {count} search results for {query}.":"Displaying {count} search results for {query}. | Displaying {count} search result for {query}. | Displaying {count} search results for {query}.","Displaying suggested libraries in search results.":"Displaying suggested libraries in search results.","No results for {query}. Try searching by library name, zip code, or location.":"No results for {query}. Try searching by library name, zip code, or location.","Kanopy European Privacy Notice":"Kanopy European Privacy Notice","Close map pin popup":"Close map pin popup","Click here to find your library.":"Click here to find your library.","Click here to enter your library card information.":"Click here to enter your library card information.","Click here to connect using your university login.":"Click here to connect using your university login.","Click here to check out out Kanopy Kids!":"Click here to check out out Kanopy Kids!","For public libraries, check to see if your library has made Kanopy available here.":"For public libraries, check to see if your library has made Kanopy available here.","For universities, check to see if your library has made Kanopy available here.":"For universities, check to see if your library has made Kanopy available here.",'Facebook Logo - Share "{title}" on Facebook':'Facebook Logo - Share "{title}" on Facebook','LinkedIn Logo - Share "{title}" on LinkedIn':'LinkedIn Logo - Share "{title}" on LinkedIn','Email Logo - Share "{title}" via email':'Email Logo - Share "{title}" via email','Instagram Logo - Share "{title}" on Instagram':'Instagram Logo - Share "{title}" on Instagram',"Show previous titles":"Show previous titles","Show next titles":"Show next titles","Show previous items":"Show previous items","Show next items":"Show next items","More related videos loaded.":"More related videos loaded.","{title} options":"{title} options","Remove from Watchlist":"Remove from Watchlist","Add to Watchlist":"Add to Watchlist","Remove from Continue Watching":"Remove from Continue Watching","Resume Episode {episode}":"Resume Episode {episode}","Click to dismiss.":"Click to dismiss.","Loading most popular films.":"Loading most popular films.","Loading search results for {query}.":"Loading search results for {query}.","Loading filtered results.":"Loading filtered results.","Loading additional search results.":"Loading additional search results.","Skip to main content":"Skip to main content","an {overdrive_logo} Company.":"an {overdrive_logo} Company.","© {year} OverDrive. All rights reserved.":"© {year} OverDrive. All rights reserved.",'Threads Logo - Share "{title}" on Threads':'Threads Logo - Share "{title}" on Threads','Bluesky Logo - Share "{title}" on Bluesky':'Bluesky Logo - Share "{title}" on Bluesky',"Play marquee":"Play marquee","Pause marquee":"Pause marquee","Change region:":"Change region:","Skip to footer":"Skip to footer",Footer:"Footer","Request access":"Request access","Playlist options menu for {title}":"Playlist options menu for {title}","Clip options menu for {title}":"Clip options menu for {title}","Membership for {membership}":"Membership for {membership}","Cookie preferences banner":"Cookie preferences banner","Close banner":"Close banner","adjust your cookie settings":"adjust your cookie settings","Stream on all your favorite devices any time, anywhere.":"Stream on all your favorite devices any time, anywhere.","Enter your PIN to exit Kanopy Kids.":"Enter your PIN to exit Kanopy Kids.",Exit:"Exit","Remarketing and targeting cookies (OverDrive websites only)":"Remarketing and targeting cookies (OverDrive websites only)","*Opting out of research cookies will automatically opt you out of remarketing cookies and vice versa.":"*Opting out of research cookies will automatically opt you out of remarketing cookies and vice versa.",'These cookies make OverDrive services, their content, and advertisements for OverDrive products or services more relevant to your interests, limit the number of ads, and measure the effectiveness of ads. These cookies are <span class="bold">not</span> in products such as Libby, Sora, and the Kanopy app or in libraries\' OverDrive collection websites. For more information about cookies, visit the <a href="https://www.consumer.ftc.gov/articles/0042-online-tracking" target="_blank">U.S. Federal Trade Commission (FTC)</a>, <a href="http://www.allaboutcookies.org/" target="_blank">All About Cookies</a>, or <a href="http://www.youronlinechoices.eu/" target="_blank">Your Online Choices (EU)</a>
736.':'These cookies make OverDrive services, their content, and advertisements for OverDrive products or services more relevant to your interests, limit the number of ads, and measure the effectiveness of ads. These cookies are <span class="bold">not</span> in products such as Libby, Sora, and the Kanopy app or in libraries\' OverDrive collection websites. For more information about cookies, visit the <a href="https://www.consumer.ftc.gov/articles/0042-online-tracking" target="_blank">U.S. Federal Trade Commission (FTC)</a>, <a href="http://www.allaboutcookies.org/" target="_blank">All About Cookies</a>, or <a href="http://www.youronlinechoices.eu/" target="_blank">Your Online Choices (EU)</a>.',"Stream Smarter":"Stream Smarter","{title} removed from Continue Watching.":"{title} removed from Continue Watching.","Learn more on Kanopy Help":"Learn more on Kanopy Help","No results found":"No results found","{count} results available":"{count} results available | {count} result available | {count} results available","Playlist name":"Playlist name","Create a new PIN":"Create a new PIN","Enter your PIN":"Enter your PIN","Create a PIN":"Create a PIN","See what your library or university offers through Kanopy":"See what your library or university offers through Kanopy","No results found.":"No results found.","Play image slideshow":"Play image slideshow","Pause image slideshow":"Pause image slideshow","Go to Kanopy Kids Home":"Go to Kanopy Kids Home","(required)":"(required)","Playlist name is required":"Playlist name is required","Subtitles on":"Subtitles on","Subtitles off":"Subtitles off","Back to title page":"Back to title page","Forward {seconds} seconds":"Forward {seconds} seconds","Playback speed":"Playback speed","Back {seconds} seconds":"Back {seconds} seconds","Transcript on":"Transcript on","Transcript off":"Transcript off","No subtitles":"No subtitles","What's my library card PIN?":"What's my library card PIN?","Your PIN is set and managed by your library. They often make your initial PIN the last four digits of your phone number.":"Your PIN is set and managed by your library. They often make your initial PIN the last four digits of your phone number.","Get help with your PIN from your library":"Get help with your PIN from your library","For help with your PIN, contact your library directly.":"For help with your PIN, contact your library directly.",username_label_Barcode:"Barcode",username_label_BlackboardLogin:"Blackboard Login",username_label_CanvasLogin:"Canvas Login",username_label_CardKey:"Card Key",username_label_CardNumber:"Card Number",username_label_EmailAddress:"Email Address",username_label_EmployeeID:"Employee ID",username_label_FirstAndLastName:"First and Last Name",username_label_GuestLogin:"Guest Login",username_label_IDNumber:"ID Number",username_label_LastName:"Last Name",username_label_library:"Card number",username_label_LibraryCard:"Library Card",username_label_LibraryCardOrUsername:"Library Card or Username",username_label_Login:"Login",username_label_LunchNumber:"Lunch Number",username_label_NLBMyLibraryID:"NLB MYLIBRARY ID",username_label_Name:"Name",username_label_NetworkID:"Network ID",username_label_Password:"Password",username_label_PIN:"PIN",username_label_SchoologyLogin:"Schoology Login",username_label_StudentID:"Student ID",username_label_StudentOrStaffID:"Student/Staff ID",username_label_UniversityID:"University ID",username_label_UserID:"User ID",username_label_UserLogin:"User Login",username_label_Username:"Username",username_label_VerificationCode:"Verification code",password_label_Birthdate:"Birthdate",password_label_BirthdateMMDDYY:"Birthdate (MMDDYY)",password_label_BirthdateMMDDYYYY:"Birthdate (MMDDYYYY)",password_label_CampaignCode:"Campaign Code",password_label_EmailAddress:"Email Address",password_label_FirstName:"First Name",password_label_GraduationYear:"Graduation Year",password_label_IDNumber:"ID Number",password_label_LastName:"Last Name",password_label_LibraryCard:"Library Card",password_label_LunchNumber:"Lunch Number",password_label_Name:"Name",password_label_Password:"Password",password_label_PhoneLast4Digits:"Phone (Last 4 Digits)",password_label_PhoneNumber:"Phone Number",password_label_PhoneNumberOrPassword:"Phone Number or Password",password_label_PIN:"PIN",password_label_PinKey:"PinKey",password_label_PINOrPassword:"PIN/Password",password_label_StudentID:"Student ID",password_label_StudentOrStaffID:"Student/Staff ID",password_label_ZIPCode:"ZIP Code","{speed}x playback speed":"{speed}x playback speed","Change region":"Change region","Clip changes saved":"Clip changes saved","link your device":"link your device","Library card number":"Library card number","Library card PIN/password":"Library card PIN/password","Have questions? Here's some help from your library.":"Have questions? Here's some help from your library.","Select to see {branch} and {count} more.":"Select to see {branch} and {count} more.","What's my PIN?":"What's my PIN?","Audio description available":"Audio description available","Subtitles available":"Subtitles available","Public performance rights":"Public performance rights","Invalid email. Add an @.":"Invalid email. Add an @.","Invalid email. Add something before @.":"Invalid email. Add something before @.","Invalid email. Add a valid domain, like .edu or .com.":"Invalid email. Add a valid domain, like .edu or .com.","Invalid email. Please try again.":"Invalid email. Please try again.","{citation} Citation":"{citation} Citation","Improve this map":"Improve this map",rfp_role_undergraduate_student:"Undergraduate Student",rfp_role_graduate_student:"Graduate Student",rfp_role_faculty_instructor:"Faculty/Instructor",rfp_role_other:"Other","Your role":"Your role","Full name":"Full name","School email address":"School email address","Course number":"Course number","Title needed by":"Title needed by","Title needed until":"Title needed until","I consent to Kanopy providing the above information to my academic library.":"I consent to Kanopy providing the above information to my academic library.","Please provide your full name.":"Please provide your full name.","Please provide your school email address.":"Please provide your school email address.","Please indicate the course this title is for.":"Please indicate the course this title is for.","Please select your role."
736:"Please select your role.","Please describe your role.":"Please describe your role.","Please check the box to continue.":"Please check the box to continue.",'The "needed until" date must come after the "needed by" date.':'The "needed until" date must come after the "needed by" date.',"Edit Clip {suffix}":"Edit Clip {suffix}","Delete Clip {suffix}":"Delete Clip {suffix}","Delete.":"Delete.","Fields marked with * are required":"Fields marked with * are required","Audio description only":"Audio description only","Closed captions only":"Closed captions only","Audio languages":"Audio languages","Most relevant":"Most relevant","Most popular":"Most popular","Most recently added":"Most recently added","Title: A-Z":"Title: A-Z","Title: Z-A":"Title: Z-A",'By accessing this site, you agree to our {terms_and_conditions}, our {privacy_policy}, and the use of "cookies" and other technologies to collect information about your use of the website and develop targeted ads. You may limit the use of these technologies by clicking "{cookie_settings}." To learn more about how these technologies are used and the information gathered by them, visit our {cookie_policy}.':'By accessing this site, you agree to our {terms_and_conditions}, our {privacy_policy}, and the use of "cookies" and other technologies to collect information about your use of the website and develop targeted ads. You may limit the use of these technologies by clicking "{cookie_settings}." To learn more about how these technologies are used and the information gathered by them, visit our {cookie_policy}.',"Cookie Settings":"Cookie Settings","Cookie Policy":"Cookie Policy","Terms and Conditions":"Terms and Conditions","Audio description":"Audio description","Closed captions":"Closed captions","Subtitle languages":"Subtitle languages","Password updated. Log in with your new password.":"Password updated. Log in with your new password.","No videos in the collection match this category.":"No videos in the collection match this category.","Enter your library information":"Enter your library information","Global Privacy Control":"Global Privacy Control","Based on your browser's privacy settings, all non-required cookies are disabled for this site.":"Based on your browser's privacy settings, all non-required cookies are disabled for this site.","TV series episode":"TV series episode",Film:"Film"},nH={STRATEGIES:{PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},REDIRECT_ON_OPTIONS:{ROOT:"root",NO_PREFIX:"no prefix"}},rH={vueI18n:{fallbackLocale:"en"},vueI18nLoader:!1,locales:[{name:"English",code:"en",file:"en-US.json"},{name:"Français",code:"fr",file:"fr-FR.json"},{name:"Deutsch",code:"de",file:"de-DE.json"}],defaultLocale:"en",defaultDirection:"ltr",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",sortRoutes:!0,strategy:"prefix",lazy:!0,langDir:"services/i18n/lang/",rootRedirect:null,detectBrowserLanguage:!1,differentDomains:!1,baseUrl:"",vuex:{moduleName:"i18n",syncRouteParams:!0},parsePages:!0,pages:{},skipSettingLocaleOnNavigate:!1,onBeforeLanguageSwitch:()=>{},onLanguageSwitched:()=>null,normalizedLocales:[{name:"English",code:"en",file:"en-US.json"},{name:"Français",code:"fr",file:"fr-FR.json"},{name:"Deutsch",code:"de",file:"de-DE.json"}],localeCodes:["en","fr","de"],additionalMessages:[]},iH={
736"en-US.json":()=>Promise.resolve(tH),
736"fr-FR.json":()=>va(()=>import("./fr-FR-nKk1TlMi.js"),[],import.meta.url),
736"de-DE.json":()=>va(()=>import("./de-DE-BulTf1c7.js"),[],import.meta.url)
736};var sH,oH={}; 737/*! 738 * cookie 739 * Copyright(c) 2012-2014 Roman Shtylman 740 * Copyright(c) 2015 Douglas Christopher Wilson 741 * MIT Licensed 742 */ 743/*! js-cookie v3.0.8 | MIT */ 744function aH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}!function(){if(sH)return oH;sH=1,oH.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},s=(t||{}).decode||n,o=0;for(;o<e.length;){var a=e.indexOf("=",o);if(-1===a)break;var l=e.indexOf(";",o);if(-1===l)l=e.length;else if(l<a){o=e.lastIndexOf(";",a-1)+1;continue}var c=e.slice(o,a).trim();if(void 0===r[c]){var u=e.slice(a+1,l).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[c]=i(u,s)}o=l+1}return r},oH.serialize=function(n,i,s){var o=s||{},a=o.encode||r;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!t.test(n))throw new TypeError("argument name is invalid");var l=a(i);if(l&&!t.test(l))throw new TypeError("argument val is invalid");var c=n+"="+l;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(o.domain){if(!t.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!t.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){var d=o.expires;if(!function(t){return"[object Date]"===e.call(t)||t instanceof Date}(d)||isNaN(d.valueOf()))throw new TypeError("option expires is invali
744d");c+="; Expires="+d.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var e=Object.prototype.toString,t=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function r(e){return encodeURIComponent(e)}function i(e,t){try{return t(e)}catch(CL){return e}}}();var lH=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=aH({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var o in i)i[o]&&(s+="; "+o,!0!==i[o]&&(s+="="+i[o].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+s}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var s=n[i].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(a in r||(r[a]=t.read(o,a)),e===a)break}catch(l){}}return e?r[e]:r}},remove:function(e,t){r(e,"",aH({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,aH({},this.attributes,t))},withConverter:function(t){return e(aH({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function cH(e){return`[@nuxtjs/i18n] ${e}`}function uH(e,t){const n=[],r=[];for(const i of e){const{code:e}=i,t=i.iso||e;r.push({code:e,iso:t})}for(const[i,s]of t.entries()){const e=r.find(e=>e.iso.toLowerCase()===s.toLowerCase());if(e){n.push({code:e.code,score:1-i/t.length});break}}for(const[i,s]of t.entries()){const e=s.split("-")[0].toLowerCase(),o=r.find(t=>t.iso.split("-")[0].toLowerCase()===e);if(o){n.push({code:o.code,score:.999-i/t.length});break}}return n.length>1&&n.sort((e,t)=>e.score===t.score?t.code.length-e.code.length:t.score-e.score),n.length?n[0].code:void 0}function dH(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`)}async function hH(e,t){const{app:n}=e,{i18n:r}=n;if(r.loadedLanguages||(r.loadedLanguages=[]),!r.loadedLanguages.includes(t)){const n=rH.normalizedLocales.find(e=>e.code===t);if(n){const{file:s}=n;if(s){let n;{const{nuxtState:r}=e;r&&r.__i18n&&r.__i18n.langs[t]&&(n=r.__i18n.langs[t],e.isDev&&iH[s]())}if(!n)try{const r=await iH[s]().then(e=>e.default||e);n="function"==typeof r?await Promise.resolve(r(e,t)):r}catch(i){console.error(cH(`Failed loading async locale export: ${i.message}`))}n&&(r.setLocaleMessage(t,n),mH(r,rH.additionalMessages,rH.localeCodes,[t]),r.loadedLanguages.push(t))}else cH(`Could not find lang file for locale ${t}`)}else cH(`Attempted to load messages for non-existant locale code "${t}"`)}}function pH(e,t,n,{differentDomains:r,normalizedLocales:i}){if("function"==typeof e)return e(t);if(r&&n){const e=fH(n,t.req,{normalizedLocales:i});if(e)return e}return e}function fH(e,t,{normalizedLocales:n}){const r=n.find(t=>t.code===e);if(r&&r.domain){if(b_(r.domain))return r.domain;let e;return e=window.location.protocol.split(":")[0],`${e}://${r.domain}`}cH(`Could not find domain name for locale ${e}`)}function mH(e,t,n,r){const i=r||n;for(const s of t)for(const t of i){const n=e.getLocaleMessage(t);e.mergeLocaleMessage(t,s[t]),e.mergeLocaleMessage(t,n)}}function _H(e,t){const n=vH.call(this,e,t);return n?n.route.redirectedFrom||n.route.fullPath:""}function gH(e,t){const n=vH.call(this,e,t);return n?n.route:void 0}function yH(e,t){const n=vH.call(this,e,t);return n?n.location:void 0}function vH(e,t){if(!e)return;const{i18n:n}=this;if(!(t=t||n.locale))return;"string"==typeof e&&(e="/"===e[0]?{path:e}:{name:e});let r=Object.assign({},e);if(r.path&&!r.name){const e=this.router.resolve(r).route,i=this.getRouteBaseName(e);
744if(i)r={name:kH(i,t),params:e.params,query:e.query,hash:e.hash};else{!(t===rH.defaultLocale&&[nH.STRATEGIES.PREFIX_EXCEPT_DEFAULT,nH.STRATEGIES.PREFIX_AND_DEFAULT].includes(rH.strategy)||rH.strategy===nH.STRATEGIES.NO_PREFIX||n.differentDomains)&&(r.path=`/${t}${r.path}`),r.path=k_(r.path,!0)}}else{r.name||r.path||(r.name=this.getRouteBaseName()),r.name=kH(r.name,t);const{params:e}=r;e&&void 0===e[0]&&e.pathMatch&&(e[0]=e.pathMatch)}const i=this.router.resolve(r);return i.route.name?i:this.router.resolve(e)}function bH(e){const t=this.getRouteBaseName();if(!t)return"";const{i18n:n,route:r,store:i}=this,{params:s,...o}=r;let a={};rH.vuex&&rH.vuex.syncRouteParams&&i&&(a=i.getters[`${rH.vuex.moduleName}/localeRouteParams`](e));const l=Object.assign({},o,{name:t,params:{...s,...a,0:s.pathMatch}});let c=this.localePath(l,e);if(n.differentDomains){const t={differentDomains:n.differentDomains,normalizedLocales:rH.normalizedLocales},r=fH(e,this.req,t);r&&(c=r+c)}return c}function wH(e){const t=void 0!==e?e:this.route;if(t&&t.name)return t.name.split(rH.routesNameSeparator)[0]}function kH(e,t){let n=e+(rH.strategy===nH.STRATEGIES.NO_PREFIX?"":rH.routesNameSeparator+t);return t===rH.defaultLocale&&rH.strategy===nH.STRATEGIES.PREFIX_AND_DEFAULT&&(n+=rH.routesNameSeparator+rH.defaultLocaleRouteNameSuffix),n}Nm.nuxti18n=async e=>{const{app:t,isHMR:n}=e;if(n)return;const[r,i,s]=await t.i18n.__onNavigate(e.route);if(r&&i){const t=s?e.route.query:void 0;e.redirect(r,i,t)}};const CH=function(e){return function(){const t={getRouteBaseName:this.getRouteBaseName,i18n:this.$i18n,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,req:null,route:this.$route,router:this.$router,store:this.$store};return e.call(t,...arguments)}},TH=function(e,t){return function(){const{app:n,req:r,route:i,store:s}=e,o={getRouteBaseName:n.getRouteBaseName,i18n:n.i18n,localePath:n.localePath,localeLocation:n.localeLocation,localeRoute:n.localeRoute,req:null,route:i,router:n.router,store:s};return t.call(o,...arguments)}},SH={install(e){e.mixin({methods:{localePath:CH(_H),localeRoute:CH(gH),localeLocation:CH(yH),switchLocalePath:CH(bH),getRouteBaseName:CH(wH)}})}},xH=e=>{Xn.use(SH);const{app:t,store:n}=e;t.localePath=e.localePath=TH(e,_H),t.localeRoute=e.localeRoute=TH(e,gH),t.localeLocation=e.localeLocation=TH(e,yH),t.switchLocalePath=e.switchLocalePath=TH(e,bH),t.getRouteBaseName=e.getRouteBaseName=TH(e,wH),n&&(n.localePath=t.localePath,n.localeRoute=t.localeRoute,n.localeLocation=t.localeLocation,n.switchLocalePath=t.switchLocalePath,n.getRouteBaseName=t.getRouteBaseName)}; 745/*! 746 * vue-i18n v8.28.2 747 * (c) 2022 kazuya kawaguchi 748 * Released under the MIT License. 749 */ 750var EH=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],IH=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];var AH=Array.isArray;function PH(e){return null!==e&&"object"==typeof e}function OH(e){return"boolean"==typeof e}function LH(e){return"string"==typeof e}var DH=Object.prototype.toString;function RH(e){return"[object Object]"===DH.call(e)}function MH(e){return null==e}function NH(e){return"function"==typeof e}function jH(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?PH(e[0])||AH(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(PH(e[1])||AH(e[1]))&&(r=e[1])),{locale:n,params:r}}function UH(e){return JSON.parse(JSON.stringify(e))}function $H(e,t){return!!~e.indexOf(t)}var BH=Object.prototype.hasOwnProperty;function FH(e,t){return BH.call(e,t)}function qH(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(null!=i){var s=void 0;for(s in i)FH(i,s)&&(PH(i[s])?n[s]=qH(n[s],i[s]):n[s]=i[s])}}return n}function VH(e,t){if(e===t)return!0;var n=PH(e),r=PH(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=AH(e),s=AH(t);
750if(i&&s)return e.length===t.length&&e.every(function(e,n){return VH(e,t[n])});if(i||s)return!1;var o=Object.keys(e),a=Object.keys(t);return o.length===a.length&&o.every(function(n){return VH(e[n],t[n])})}catch(CL){return!1}}var HH={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,s=t.slots,o=r.$i18n;if(o){var a=i.path,l=i.locale,c=i.places,u=s(),d=o.i(a,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var n=t?function(e){return Array.isArray(e)?e.reduce(GH,{}):Object.assign({},e)}(t):{};if(!e)return n;e=e.filter(function(e){return e.tag||""!==e.text.trim()});var r=e.every(KH);return e.reduce(r?zH:GH,n)}(u.default,c):u),h=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return h?e(h,n,d):d}}};function zH(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function GH(e,t,n){return e[n]=t,e}function KH(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var WH,XH={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,i=t.data,s=r.$i18n;if(!s)return null;var o=null,a=null;LH(n.format)?o=n.format:PH(n.format)&&(n.format.key&&(o=n.format.key),a=Object.keys(n.format).reduce(function(e,t){var r;return $H(EH,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e},null));var l=n.locale||s.locale,c=s._ntp(n.value,l,o,a),u=c.map(function(e,t){var n,r=i.scopedSlots&&i.scopedSlots[e.type];return r?r(((n={})[e.type]=e.value,n.index=t,n.parts=c,n)):e.value}),d=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return d?e(d,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},u):u}};function YH(e,t,n){QH(e,n)&&ez(e,t,n)}function ZH(e,t,n,r){if(QH(e,n)){var i=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&VH(t.value,t.oldValue)&&VH(e._localeMessage,i.getLocaleMessage(i.locale))||ez(e,t,n)}}function JH(e,t,n,r){if(n.context){var i=n.context.$i18n||{};t.modifiers.preserve||i.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}}function QH(e,t){var n=t.context;return!!n&&!!n.$i18n}function ez(e,t,n){var r,i,s=function(e){var t,n,r,i;LH(e)?t=e:RH(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice);return{path:t,locale:n,args:r,choice:i}}(t.value),o=s.path,a=s.locale,l=s.args,c=s.choice;if((o||a||l)&&o){var u=n.context;e._vt=e.textContent=null!=c?(r=u.$i18n).tc.apply(r,[o,c].concat(tz(a,l))):(i=u.$i18n).t.apply(i,[o].concat(tz(a,l))),e._locale=u.$i18n.locale,e._localeMessage=u.$i18n.getLocaleMessage(u.$i18n.locale)}}function tz(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||RH(t))&&n.push(t),n}function nz(e,t){void 0===t&&(t={bridge:!1}),nz.installed=!0,(WH=e).version&&Number(WH.version.split(".")[0]),function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(WH),WH.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof yz){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};
750(e.__i18nBridge||e.__i18n).forEach(function(e){t=qH(t,JSON.parse(e))}),Object.keys(t).forEach(function(n){e.i18n.mergeLocaleMessage(n,t[n])})}catch(CL){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(RH(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof yz?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach(function(e){r=qH(r,JSON.parse(e))}),e.i18n.messages=r}catch(CL){}var i=e.i18n.sharedMessages;i&&RH(i)&&(e.i18n.messages=qH(e.i18n.messages,i)),this._i18n=new yz(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof yz?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof yz&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof yz||RH(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof yz||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof yz)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick(function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)})}}}}(t.bridge)),WH.directive("t",{bind:YH,update:ZH,unbind:JH}),WH.component(HH.name,HH),WH.component(XH.name,XH),WH.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var rz=function(){this._caches=Object.create(null)};rz.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var s="";for(i=e[n++];void 0!==i&&"}"!==i;)s+=i,i=e[n++];var o="}"===i,a=iz.test(s)?"list":o&&sz.test(s)?"named":"unknown";t.push({value:s,type:a})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,i=Array.isArray(t)?"list":PH(t)?"named":"unknown";if("unknown"===i)return n;for(;r<e.length;){var s=e[r];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(t[parseInt(s.value,10)]);break;case"named":"named"===i&&n.push(t[s.value])}r++}return n}(n,t)};var iz=/^(?:\d)+/,sz=/^(?:\w)+/;var oz=[];oz[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},oz[1]={ws:[1],".":[2],"[":[4],eof:[7]},oz[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},oz[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},oz[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},oz[5]={"'":[4,0],eof:8,else:[5,0]},oz[6]={'"':[4,0],eof:8,else:[6,0]};var az=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function lz(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function cz(e){var t,n=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(t=n,az.test(t)?function(e){var t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(n):"*"+n)}var uz=function(){this._cache=Object.create(null)};uz.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,i,s,o,a,l=[],c=-1,u=0,d=0,h=[];function p(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,h[0](),!0}for(h[1]=function(){void 0!==n&&(l.push(n),n=void 0)},h[0]=function(){void 0===n?n=r:n+=r},h[2]=function(){h[0](),d++},h[3]=function(){if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=cz(n)))return!1;h[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!p()){if(i=lz(t),8===(s=(a=oz[u])[i]||a.else||8))return;if(u=s[0],(o=h[s[1]])&&(r=void 0===(r=s[2])?t:r,!1===o()))return;if(7===u)return l}}(e),t&&(this._cache[e]=t)),t||[]},uz.prototype.getPathValue=function(e,t){if(!PH(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var r=n.length,i=e,s=0;s<r;){var o=i[n[s]];if(null==o)return null;i=o,s++}return i};var dz,hz=/<\/?[\w\s="/.':;#-\/]+>/,pz=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,fz=/^@(?:\.([a-zA-Z]+))?:/,mz=/[()]/g,_z={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},gz=new rz,yz=function(e){var t=this;void 0===e&&(e={}),!WH&&"undefined"!=typeof window&&window.Vue&&nz(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},s=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||gz,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new uz,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var i,s;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(i=e,s=n,i=Math.abs(i),2===s?i?i>1?1:0:1:i?Math.min(i,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!MH(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEac
750h(function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])}),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:s,numberFormats:o})},vz={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};function bz(e,t,n){"object"==typeof n.value&&(n.value=wz(n.value)),n.enumerable&&!n.get&&!n.set&&n.configurable&&n.writable&&"__proto__"!==t?e[t]=n.value:Object.defineProperty(e,t,n)}function wz(e){if("object"!=typeof e)return e;var t,n,r,i=0,s=Object.prototype.toString.call(e);if("[object Object]"===s?r=Object.create(e.__proto__||null):"[object Array]"===s?r=Array(e.length):"[object Set]"===s?(r=new Set,e.forEach(function(e){r.add(wz(e))})):"[object Map]"===s?(r=new Map,e.forEach(function(e,t){r.set(wz(t),wz(e))})):"[object Date]"===s?r=new Date(+e):"[object RegExp]"===s?r=new RegExp(e.source,e.flags):"[object DataView]"===s?r=new e.constructor(wz(e.buffer)):"[object ArrayBuffer]"===s?r=e.slice(0):"Array]"===s.slice(-6)&&(r=new e.constructor(e)),r){for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)bz(r,n[i],Object.getOwnPropertyDescriptor(e,n[i]));for(i=0,n=Object.getOwnPropertyNames(e);i<n.length;i++)Object.hasOwnProperty.call(r,t=n[i])&&r[t]===e[t]||bz(r,t,Object.getOwnPropertyDescriptor(e,t))}return r||e}function kz({addDirAttribute:e=!1,addSeoAttributes:t=!1}={}){if(!this.$i18n)return{};const n={htmlAttrs:{},link:[],meta:[]},r=this.$i18n.localeProperties,i=r.iso,s=r.dir||rH.defaultDirection;if(e&&(n.htmlAttrs.dir=s),t&&(hv.hasMetaInfo?hv.hasMetaInfo(this):this._hasMetaInfo)&&this.$i18n.locale&&this.$i18n.locales){i&&(n.htmlAttrs.lang=i);const e=this.$i18n.locales;(function(e,t,n){if(rH.strategy===nH.STRATEGIES.NO_PREFIX)return;const r=new Map;for(const i of e){const e=i.iso;if(!e){cH("Locale ISO code is required to generate alternate link");continue}const[t,n]=e.split("-");t&&n&&(i.isCatchallLocale||!r.has(t))&&r.set(t,i),r.set(e,i)}for(const[i,s]of r.entries()){const e=this.switchLocalePath(s.code);e&&n.push({hid:`i18n-alt-${i}`,rel:"alternate",href:a(e,t),hreflang:i})}if(rH.defaultLocale){const e=this.switchLocalePath(rH.defaultLocale);e&&n.push({hid:"i18n-xd",rel:"alternate",href:a(e,t),hreflang:"x-default"})}}).bind(this)(e,this.$i18n.__baseUrl,n.link),function(e,t,n){const r=this.localeRoute({...this.$route,name:this.getRouteBaseName()});if(r){let i=a(r.path,e);const s="boolean"!=typeof n&&n.canonicalQueries||[];if(s.length){const e=r.query,t=new URLSearchParams;for(const r of s)if(r in e){const n=e[r];Array.isArray(n)?n.forEach(e=>t.append(r,e||"")):t.append(r,n||"")}const n=t.toString();n&&(i=`${i}?${n}`)}t.push({hid:"i18n-can",rel:"canonical",href:i})}}.bind(this)(this.$i18n.__baseUrl,n.link,t),function(e,t,n){if(!e||!t)return;n.push({hid:"i18n-og",property:"og:locale",content:o(t)})}.bind(this)(r,i,n.meta),function(e,t,n){const r=e.filter(e=>{const n=e.iso;return n&&n!==t});if(r.length){const e=r.map(e=>({hid:`i18n-og-alt-${e.iso}`,property:"og:locale:alternate",content:o(e.iso)}));n.push(...e)}}.bind(this)(e,i,n.meta)}function o(e){return(e||"").replace(/-/g,"_")}function a(e,t){return e.match(/^https?:\/\//)?e:t+e}return n}yz.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,i){if(RH(n))Object.keys(n).forEach(function(s){var o=n[s];RH(o)?(i.push(s),i.push("."),r(e,t,o,i),i.pop(),i.pop()):(i.push(s),r(e,t,o,i),i.pop())});else if(AH(n))n.forEach(function(n,s){RH(n)?(i.push("["+s+"]"),i.push("."),r(e,t,n,i),i.pop(),i.pop()):(i.push("["+s+"]"),r(e,t,n,i),i.pop())});else if(LH(n)){if(hz.test(n)){var s="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";
750"warn"===e||"error"===e&&function(e){"undefined"!=typeof console&&console.error("[vue-i18n] "+e)}(s)}}};r(t,e,n,[])},yz.prototype._initVM=function(e){var t=WH.config.silent;WH.config.silent=!0,this._vm=new WH({data:e,__VUE18N__INSTANCE__:!0}),WH.config.silent=t},yz.prototype.destroyVM=function(){this._vm.$destroy()},yz.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},yz.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},yz.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var t,n,r=(t=e._dataListeners,n=[],t.forEach(function(e){return n.push(e)}),n),i=r.length;i--;)WH.nextTick(function(){r[i]&&r[i].$forceUpdate()})},{deep:!0})},yz.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){r.$set(r,"locale",e),r.$forceUpdate()},{immediate:!0})},yz.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},vz.vm.get=function(){return this._vm},vz.messages.get=function(){return UH(this._getMessages())},vz.dateTimeFormats.get=function(){return UH(this._getDateTimeFormats())},vz.numberFormats.get=function(){return UH(this._getNumberFormats())},vz.availableLocales.get=function(){return Object.keys(this.messages).sort()},vz.locale.get=function(){return this._vm.locale},vz.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},vz.fallbackLocale.get=function(){return this._vm.fallbackLocale},vz.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},vz.formatFallbackMessages.get=function(){return this._formatFallbackMessages},vz.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},vz.missing.get=function(){return this._missing},vz.missing.set=function(e){this._missing=e},vz.formatter.get=function(){return this._formatter},vz.formatter.set=function(e){this._formatter=e},vz.silentTranslationWarn.get=function(){return this._silentTranslationWarn},vz.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},vz.silentFallbackWarn.get=function(){return this._silentFallbackWarn},vz.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},vz.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},vz.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},vz.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},vz.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach(function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})}},vz.postTranslation.get=function(){return this._postTranslation},vz.postTranslation.set=function(e){this._postTranslation=e},vz.sync.get=function(){return this._sync},vz.sync.set=function(e){this._sync=e},yz.prototype._getMessages=function(){return this._vm.messages},yz.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},yz.prototype._getNumberFormats=function(){return this._vm.numberFormats},yz.prototype._warnDefault=function(e,t,n,r,i,s){if(!MH(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,i]);if(LH(o))return o}if(this._formatFallbackMessages){var a=jH.apply(void 0,i);return this._render(t,s,a.params,t)}return t},yz.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:MH(e))&&!MH(this._root)&&this._fallbackRoot},yz.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},yz.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)}
750,yz.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},yz.prototype._interpolate=function(e,t,n,r,i,s,o){if(!t)return null;var a,l=this._path.getPathValue(t,n);if(AH(l)||RH(l))return l;if(MH(l)){if(!RH(t))return null;if(!LH(a=t[n])&&!NH(a))return null}else{if(!LH(l)&&!NH(l))return null;a=l}return LH(a)&&(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,r,"raw",s,o)),this._render(a,i,s,n)},yz.prototype._link=function(e,t,n,r,i,s,o){var a=n,l=a.match(pz);for(var c in l)if(l.hasOwnProperty(c)){var u=l[c],d=u.match(fz),h=d[0],p=d[1],f=u.replace(h,"").replace(mz,"");if($H(o,f))return a;o.push(f);var m=this._interpolate(e,t,f,r,"raw"===i?"string":i,"raw"===i?void 0:s,o);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var _=this._root.$i18n;m=_._translate(_._getMessages(),_.locale,_.fallbackLocale,f,r,i,s)}m=this._warnDefault(e,f,m,r,AH(s)?s:[s],i),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):_z.hasOwnProperty(p)&&(m=_z[p](m)),o.pop(),a=m?a.replace(u,m):a}return a},yz.prototype._createMessageContext=function(e,t,n,r){var i=this,s=AH(e)?e:[],o=PH(e)?e:{},a=this._getMessages(),l=this.locale;return{list:function(e){return s[e]},named:function(e){return o[e]},values:e,formatter:t,path:n,messages:a,locale:l,linked:function(e){return i._interpolate(l,a[l]||{},e,null,r,void 0,[e])}}},yz.prototype._render=function(e,t,n,r){if(NH(e))return e(this._createMessageContext(n,this._formatter||gz,r,t));var i=this._formatter.interpolate(e,n,r);return i||(i=gz.interpolate(e,n,r)),"string"!==t||LH(i)?i:i.join("")},yz.prototype._appendItemToChain=function(e,t,n){var r=!1;return $H(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},yz.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var s=i.join("-");r=this._appendItemToChain(e,s,n),i.splice(-1,1)}while(i.length&&!0===r);return r},yz.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&OH(r);i++){var s=t[i];LH(s)&&(r=this._appendLocaleToChain(e,s,n))}return r},yz.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,i=[e];AH(i);)i=this._appendBlockToChain(n,i,t);(i=LH(r=AH(t)?t:PH(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},yz.prototype._translate=function(e,t,n,r,i,s,o){for(var a,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!MH(a=this._interpolate(u,e[u],r,i,s,o,[r])))return a}return null},yz.prototype._t=function(e,t,n,r){for(var i,s=[],o=arguments.length-4;o-- >0;)s[o]=arguments[o+4];if(!e)return"";var a,l=jH.apply(void 0,s);this._escapeParameterHtml&&(l.params=(null!=(a=l.params)&&Object.keys(a).forEach(function(e){"string"==typeof a[e]&&(a[e]=a[e].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))}),a));var c=l.locale||t,u=this._translate(n,c,this.fallbackLocale,e,r,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(s))}return u=this._warnDefault(c,e,u,r,s,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,e)),u},yz.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},yz.prototype._i=function(e,t,n,r,i){var s=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,s,r,[i],"raw")},yz.prototype.i=function(e,t,n){return e?(LH(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},yz.prototype._tc=function(e,t,n,r,i){for(var s,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===i&&(i=1);var l={count:i,n:i},c=jH.apply(void 0,o);return c.params=Object.assign(l,c.params),o=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((s=this)._t.apply(s,[e,t,n,r].concat(o)),i)},yz.prototype.fetchChoice=function(e,t){if(!e||!LH(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},yz.prototype.tc=function(e,t){for(var n,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},yz.prototype._te=function(e,t,n){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var s=jH.apply(void 0,r).locale||t;return this._exist(n[s],e)},yz.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},yz.prototype.getLocaleMessage=function(e){return UH(this._vm.messages[e]||{})},yz.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},yz.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,qH(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},yz.prototype.getDateTimeFormat=function(e){return UH(this._vm.dateTimeFormats[e]||{})},yz.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},yz.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,qH(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},yz.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},yz.prototype._localizeDateTime=function(e,t,n,r,i,s){for(var o=t,a=r[o],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(o=u,!MH(a=r[u])&&!MH(a[i]))break}if(MH(a)||MH(a[i]))return null;var d,h=a[i];if(s)d=new Intl.DateTimeFormat(o,Object.assign({},h,s));else{var p=o+"__"+i;(d=this._dateTimeFormatters[p])||(d=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(o,h))}return d.format(e)},yz.prototype._d=function(e,t,n,r){if(!n)return(r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t)).format(e);var i=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);
750if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return i||""},yz.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,i=null,s=null;return 1===t.length?(LH(t[0])?i=t[0]:PH(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(i=t[0].key)),s=Object.keys(t[0]).reduce(function(e,n){var r;return $H(IH,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e},null)):2===t.length&&(LH(t[0])&&(i=t[0]),LH(t[1])&&(r=t[1])),this._d(e,r,i,s)},yz.prototype.getNumberFormat=function(e){return UH(this._vm.numberFormats[e]||{})},yz.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},yz.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,qH(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},yz.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},yz.prototype._getNumberFormatter=function(e,t,n,r,i,s){for(var o=t,a=r[o],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(o=u,!MH(a=r[u])&&!MH(a[i]))break}if(MH(a)||MH(a[i]))return null;var d,h=a[i];if(s)d=new Intl.NumberFormat(o,Object.assign({},h,s));else{var p=o+"__"+i;(d=this._numberFormatters[p])||(d=this._numberFormatters[p]=new Intl.NumberFormat(o,h))}return d},yz.prototype._n=function(e,t,n,r){if(!yz.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),s=i&&i.format(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return s||""},yz.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,i=null,s=null;return 1===t.length?LH(t[0])?i=t[0]:PH(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(i=t[0].key),s=Object.keys(t[0]).reduce(function(e,n){var r;return $H(EH,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e},null)):2===t.length&&(LH(t[0])&&(i=t[0]),LH(t[1])&&(r=t[1])),this._n(e,r,i,s)},yz.prototype._ntp=function(e,t,n,r){if(!yz.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var i=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),s=i&&i.formatToParts(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return s||[]},Object.defineProperties(yz.prototype,vz),Object.defineProperty(yz,"availabilities",{get:function(){if(!dz){var e="undefined"!=typeof Intl;dz={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return dz}}),yz.install=nz,yz.version="8.28.2",Xn.use(yz);const Cz=async e=>{const{app:t,route:n,store:r,req:i,res:s,redirect:o}=e;rH.vuex&&r&&function(e,t){const n={namespaced:!0,state:()=>({...t.syncRouteParams?{routeParams:{}}:{}}),actions:{...t.syncRouteParams?{setRouteParams({commit:e},t){e("setRouteParams",t)}}:{}},mutations:{...t.syncRouteParams?{setRouteParams(e,t){e.routeParams=t}}:{}},getters:{...t.syncRouteParams?{localeRouteParams:({routeParams:e})=>t=>e&&e[t]||{}}:{}}};e.registerModule(t.moduleName,n,{preserveState:!!e.state[t.moduleName]})}(r,rH.vuex,rH.localeCodes);const{lazy:a}=rH;a&&(!0===a||a.skipNuxtState);const{alwaysRedirect:l,fallbackLocale:c,redirectOn:u,useCookie:d,cookieAge:h,cookieKey:p,cookieDomain:f,cookieSecure:m,cookieCrossOrigin:_}=rH.detectBrowserLanguage,g=function(e,{routesNameSeparator:t,defaultLocaleRouteNameSuffix:n}){const r=`(${e.join("|")})`,i=new RegExp(`${t}${r}(?:${t}${n})?$`),s=dH(e);return e=>{if(e.name){const t=e.name.match(i);if(t&&t.length>1)return t[1]}else if(e.path){const t=e.path.match(s);if(t&&t.length>1)return t[1]}return""}}(rH.localeCodes,{routesNameSeparator:rH.routesNameSeparator,defaultLocaleRouteNameSuffix:rH.defaultLocaleRouteNameSuffix}),y=async(n,{initialSetup:r=!1}={})=>
750{if(!n)return;if(!r&&t.i18n.differentDomains)return;const i=t.i18n.locale;if(n===i)return;const s=t.i18n.onBeforeLanguageSwitch(i,n,r,e);if(s&&t.i18n.localeCodes.includes(s)){if(s===i)return;n=s}if(d&&t.i18n.setLocaleCookie(n),rH.langDir){const r=t.i18n.fallbackLocale;if(rH.lazy){if(r){let t=[];Array.isArray(r)?t=r.map(t=>hH(e,t)):"object"==typeof r?(r[n]&&(t=t.concat(r[n].map(t=>hH(e,t)))),r.default&&(t=t.concat(r.default.map(t=>hH(e,t))))):n!==r&&t.push(hH(e,r)),await Promise.all(t)}await hH(e,n)}else await Promise.all(rH.localeCodes.map(t=>hH(e,t)))}else mH(t.i18n,rH.additionalMessages,rH.localeCodes);t.i18n.locale=n;const a=rH.normalizedLocales.find(e=>e.code===n)||{code:n};for(const e of Object.keys(t.i18n.localeProperties))t.i18n.localeProperties[e]=void 0;for(const[e,o]of Object.entries(a))Xn.set(t.i18n.localeProperties,e,wz(o));const{route:l}=e;let c="";if(!t.i18n.differentDomains&&rH.strategy!==nH.STRATEGIES.NO_PREFIX&&(g(l)!==n||rH.strategy===nH.STRATEGIES.PREFIX_AND_DEFAULT&&n===rH.defaultLocale)){const e=t.switchLocalePath(n)||t.localePath(l.fullPath,n);!e||function(e,t,n={}){return n.trailingSlash||(e=C_(e),t=C_(t)),n.leadingSlash||(e=T_(e),t=T_(t)),n.encoding||(e=u_(e),t=u_(t)),e===t}(e,l.fullPath)||e.startsWith("//")||(c=e)}r?t.i18n.__redirect=c:(t.i18n.onLanguageSwitched(i,n),c&&o(c))},v=async()=>{t.i18n.__pendingLocale&&(await t.i18n.setLocale(t.i18n.__pendingLocale),t.i18n.__resolvePendingLocalePromise(""),t.i18n.__pendingLocale=null)},b=async()=>{t.i18n.__pendingLocale&&await t.i18n.__pendingLocalePromise},w=()=>"undefined"!=typeof navigator&&navigator.languages?uH(rH.normalizedLocales,navigator.languages):i&&void 0!==i.headers["accept-language"]?uH(rH.normalizedLocales,i.headers["accept-language"].split(",").map(e=>e.split(";")[0])):void 0,k=e=>{if(rH.strategy!==nH.STRATEGIES.NO_PREFIX)if(u===nH.REDIRECT_ON_OPTIONS.ROOT){if("/"!==e.path)return""}else if(u===nH.REDIRECT_ON_OPTIONS.NO_PREFIX&&!l&&e.path.match(dH(rH.localeCodes)))return"";let n;d&&(n=t.i18n.getLocaleCookie())||(n=w());const r=n||c;return!r||d&&!l&&t.i18n.getLocaleCookie()||r===t.i18n.locale?"":r},C=e=>{e.locales=wz(rH.locales),e.localeCodes=wz(rH.localeCodes),e.localeProperties=Xn.observable(wz(rH.normalizedLocales.find(t=>t.code===e.locale)||{code:e.locale})),e.defaultLocale=rH.defaultLocale,e.differentDomains=rH.differentDomains,e.onBeforeLanguageSwitch=rH.onBeforeLanguageSwitch,e.onLanguageSwitched=rH.onLanguageSwitched,e.setLocaleCookie=e=>function(e,t,{useCookie:n,cookieAge:r,cookieDomain:i,cookieKey:s,cookieSecure:o,cookieCrossOrigin:a}){if(n){const t={expires:r,path:"/",sameSite:a?"none":"lax",secure:a||o,...i?{domain:i}:{}};lH.set(s,e,t)}}(e,0,{useCookie:d,cookieAge:h,cookieDomain:f,cookieKey:p,cookieSecure:m,cookieCrossOrigin:_}),e.getLocaleCookie=()=>function(e,{useCookie:t,cookieKey:n,localeCodes:r}){if(t){let e;if(e=lH.get(n),e&&r.includes(e))return e}}(0,{useCookie:d,cookieKey:p,localeCodes:rH.localeCodes}),e.setLocale=e=>y(e),e.getBrowserLocale=()=>w(),e.finalizePendingLocaleChange=v,e.waitForPendingLocaleChange=b,e.__baseUrl=t.i18n.__baseUrl,e.__pendingLocale=t.i18n.__pendingLocale,e.__pendingLocalePromise=t.i18n.__pendingLocalePromise,e.__resolvePendingLocalePromise=t.i18n.__resolvePendingLocalePromise},T="function"==typeof rH.vueI18n?await rH.vueI18n(e):wz(rH.vueI18n);if(T.componentInstanceCreatedListener=C,t.i18n=e.i18n=new yz(T),t.i18n.locale="",t.i18n.fallbackLocale=T.fallbackLocale||"",r&&(r.$i18n=t.i18n,r.state.localeDomains))for(const[E,I]of rH.normalizedLocales.entries()){const e=r.state.localeDomains[I.code];if(e){I.domain=e;const t=rH.locales[E];"string"!=typeof t&&(t.domain=e)}}C(t.i18n);const S={differentDomains:rH.differentDomains,normalizedLocales:rH.normalizedLocales};t.i18n.__baseUrl=pH(rH.baseUrl,e,"",S),t.i18n.__onNavigate=async n=>{if("/"===n.path&&rH.rootRedirect){let e=302,t=rH.rootRedirect;return"string"!=typeof rH.rootRedirect&&(e=rH.rootRedirect.statusCode,t=rH.rootRedirect.path),[e,`/${t}`,!0]}const r=t.i18n.__redirect;if(r)return t.i18n.__redirect=null,[302,r];const i={differentDomains:rH.differentDomains,normalizedLocales:rH.normalizedLocales};t.i18n.__baseUrl=pH(rH.baseUrl,e,t.i18n.locale,i);const s=rH.detectBrowserLanguage&&k(n)||!rH.differentDomains&&rH.strategy!==nH.STRATEGIES.NO_PREFIX&&g(n)||t.i18n.locale||t.i18n.defaultLocale||"";return rH.skipSettingLocaleOnNavigate?(t.i18n.__pendingLocale=s,t.i18n.__pendingLocalePromise=new Promise(e=>{t.i18n.__resolvePendingLocalePromise=e})):await t.i18n.setLocale(s),[null,null]},Xn.prototype.$nuxtI18nHead=kz;let x=rH.detectBrowserLanguage?k(n):"";if(!x)if(t.i18n.differentDomains){x=function(e){let t;if(t=window.location.host,t){const n=e.find(e=>e.domain===t);if(n)return n.code}return""}(rH.normalizedLocales)}else if(rH.strategy!==nH.STRATEGIES.NO_PREFIX){x=g(n)}!x&&d&&(x=t.i18n.getLocaleCookie()),x||(x=t.i18n.defaultLocale||""),await y(x,{initialSetup:!0})},Tz={setBaseURL(e){this.defaults.baseURL=e},setHeader(e,t,n="common"){for(const r of Array.isArray(n)?n:[n])t?this.defaults.headers[r][e]=t:delete this.defaults.headers[r][e]},setToken(e,t,n="common"){const r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest(e){this.interceptors.request.use(t=>e(t)||t)},onResponse(e){this.interceptors.response.use(t=>e(t)||t)},onRequestError(e){this.interceptors.request.use(void 0,t=>e(t)||Promise.reject(t))},onResponseError(e){this.interceptors.response.use(void 0,t=>e(t)||Promise.reject(t))},onError(e){this.onRequestError(e),this.onResponseError(e)},create(e){return Sz(SV(e,this.defaults))}};for(const db of["request","delete","get","head","options","post","put","patch"])Tz["$"+db]=function(){return this[db].apply(this,arguments).then(e=>e&&e.data)};const Sz=e=>{const t=Oc.create(e);return t.CancelToken=Oc.CancelToken,t.isCancel=Oc.isCancel,(e=>{for(const t in Tz)e[t]=Tz[t].bind(e)})(t),t.onRequest(e=>{e.headers={...t.defaults.headers.common,...e.headers}}),xz(t),t},xz=e=>{const t={finish:()=>{},start:()=>{},fail:()=>{},set:()=>{}},n=()=>{const e="undefined"!=typeof window&&window.$nuxt;return e&&e.$loading&&e.$loading.set?e.$loading:t};let r=0;e.onRequest(e=>{e&&!1===e.progress||r++}),e.onResponse(e=>{e&&e.config&&!1===e.config.progress||(r--,r<=0&&(r=0,n().finish()))}),e.onError(e=>{e&&e.config&&!1===e.config.progress||(r--,Oc.isCancel(e)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))});const i=e=>{if(!r||!e.total)return;const t=100*e.loaded/(e.total*r);n().set(Math.min(100,t))};e.defaults.onUploadProgress=i,e.defaults.onDownloadProgress=i},Ez=(e,t)=>
750{const n=e.$config&&e.$config.axios||{},r=n.browserBaseURL||n.browserBaseUrl||n.baseURL||n.baseUrl||"http://localhost:3000/",i=Sz({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});e.$axios=i,t("axios",i)},Iz=EV(e=>{const t=e.nuxt2Context.app.setup;e.nuxt2Context.app.setup=function(...n){const r=t instanceof Function?t(...n):{};return e.hooks.callHookWith(e=>e.map(e=>e()),"vue:setup"),r}}),Az=EV(e=>{function t(e){null!=Du.instance&&Du.instance.captureException(e)}e.vueApp.config.errorHandler=(e,t,n)=>{console.error(e,t,n);try{tm.notify("An error occurred".localized()).asFailure().push()}catch(CL){console.error("Unable to send notification")}return Du.instance.captureException({message:e,error_details:{error:e,component:t?.$options.name,info:n}}),!0},window.onerror=(e,n,r,i,s)=>{console.error(e,s),t({message:e.toString(),error_details:{message:e,source:n,line:r,col:i,error:s}})},window.addEventListener("unhandledrejection",e=>{console.error(e),t({message:"Unhandled promise rejection",error_details:{promise:e.promise,reason:e.reason}})})});function Pz(e){const t={app:jh({apiKey:"AIzaSyBP26wFhjyp3fwzqUb8qZQBDeJWFafsw_Q",authDomain:"kanopy-ad362.firebaseapp.com",databaseURL:"https://kanopy-ad362.firebaseio.com",projectId:"kanopy-ad362",storageBucket:"kanopy-ad362.appspot.com",messagingSenderId:"497183239682",appId:"1:497183239682:web:075a359bce85ea87fd811b",measurementId:"G-GGQJZHYDLG"})};Object.defineProperty(Xn.prototype,"$fire",{get:()=>t}),Object.defineProperty(e,"$fire",{get:()=>t,enumerable:!0})}function Oz(e,t){e.$kuistore=e.store} 751/** 752 * @license 753 * Copyright 2020 Google LLC 754 * 755 * Licensed under the Apache License, Version 2.0 (the "License"); 756 * you may not use this file except in compliance with the License. 757 * You may obtain a copy of the License at 758 * 759 * http://www.apache.org/licenses/LICENSE-2.0 760 * 761 * Unless required by applicable law or agreed to in writing, software 762 * distributed under the License is distributed on an "AS IS" BASIS, 763 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 764 * See the License for the specific language governing permissions and 765 * limitations under the License. 766 */ 767$h("firebase","12.16.0","app"),Object.defineProperty(Xn.prototype,"$kuistore",{get(){return this.$store},enumerable:!0});var Lz,Dz={exports:{}};var Rz=(Lz||(Lz=1,function(e){function t(e){return-1!==e.type.indexOf("mouse")?e.clientX:e.touches[0].clientX}function n(e){return-1!==e.type.indexOf("mouse")?e.clientY:e.touches[0].clientY}var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(CL){}return e}(),i=0,s={install:function(e,s){var o=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",namespace:"touch"},s);function a(e){var r=this.$$touchObj,s=e.type.indexOf("touch")>=0,o=e.type.indexOf("mouse")>=0,a=this;s&&(i=e.timeStamp),o&&i&&e.timeStamp-i<350||r.touchStarted||(f(this),r.touchStarted=!0,r.touchMoved=!1,r.swipeOutBounded=!1,r.startX=t(e),r.startY=n(e),r.currentX=0,r.currentY=0,r.touchStartTime=e.timeStamp,r.touchHoldTimer=setTimeout(function(){r.touchHoldTimer=null,p(e,a,"touchhold")},r.options.touchHoldTolerance),p(e,this,"start"))}function l(e){var r=this.$$touchObj;if(r.currentX=t(e),r.currentY=n(e),r.touchMoved){if(!r.swipeOutBounded){var i=r.options.swipeTolerance;r.swipeOutBounded=Math.abs(r.startX-r.currentX)>i&&Math.abs(r.startY-r.currentY)>i}}else{var s=r.options.tapTolerance;r.touchMoved=Math.abs(r.startX-r.currentX)>s||Math.abs(r.startY-r.currentY)>s,r.touchMoved&&(_(r),p(e,this,"moved"))}r.touchMoved&&p(e,this,"moving")}function c(){var e=this.$$touchObj;_(e),m(this),e.touchStarted=e.touchMoved=!1,e.startX=e.startY=0}function u(e){var t=this.$$touchObj,n=e.type.indexOf("touch")>=0,r=e.type.indexOf("mouse")>=0;n&&(i=e.timeStamp);var s=n&&!t.touchHoldTimer;if(_(t),t.touchStarted=!1,m(this),!(r&&i&&e.timeStamp-i<350))if(p(e,this,"end"),t.touchMoved){if(!t.swipeOutBounded){var o,a=t.options.swipeTolerance,l=Math.abs(t.startY-t.currentY),c=Math.abs(t.startX-t.currentX);(l>a||c>a)&&(o=l>c?t.startY>t.currentY?"top":"bottom":t.startX>t.currentX?"left":"right",t.callbacks["swipe."+o]?p(e,this,"swipe."+o,o):p(e,this,"swipe",o))}}else if(t.callbacks.longtap&&e.timeStamp-t.touchStartTime>t.options.longTapTimeInterval)e.cancelable&&e.preventDefault(),p(e,this,"longtap");else{if(t.callbacks.touchhold&&s)return void(e.cancelable&&e.preventDefault());p(e,this,"tap")}}function d(){f(this)}function h(){m(this)}function p(e,t,n,r){var i=t.$$touchObj,s=i&&i.callbacks[n]||[];if(0===s.length)return null;for(var o=0;o<s.length;o++){var a=s[o];a.modifiers.stop&&e.stopPropagation(),a.modifiers.prevent&&e.cancelable&&e.preventDefault(),a.modifiers.self&&e.target!==e.currentTarget||"function"==typeof a.value&&(r?a.value(r,e):a.value(e))}}function f(e){var t=e.$$touchObj.options.touchClass;t&&e.classList.add(t)}function m(e){var t=e.$$touchObj.options.touchClass;t&&e.classList.remove(t)}function _(e){e.touchHoldTimer&&(clearTimeout(e.touchHoldTimer),e.touchHoldTimer=null)}function g(e,t){var n=e.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:o};return t&&(n.options=Object.assign({},n.options,t)),e.$$touchObj=n,e.$$touchObj}e.directive(o.namespace,{bind:function(e,t){var n=g(e),i=!!r&&{passive:!0},s=t.arg||"tap";switch(s){case"swipe":var o=t.modifiers;if(o.left||o.right||o.top||o.bottom){for(var p in t.modifiers)if(["left","right","top","bottom"].indexOf(p)>=0){var f="swipe."+p;n.callbacks[f]=n.callbacks[f]||[],n.callbacks[f].push(t)}}else n.callbacks.swipe=n.callbacks.swipe||[],n.callbacks.swipe.push(t);break;case"start":case"moving":t.modifiers.disablePassive&&(i=!1);default:n.callbacks[s]=n.callbacks[s]||[],n.callbacks[s].push(t)}n.hasBindTouchEvents||(e.addEventListener("touchstart",a,i),e.addEventListener("touchmove",l,i),e.addEventListener("touchcancel",c),e.addEventListener("touchend",u),n.options.disableClick||(e.addEventListener("mousedown",a),e.addEventListener("mousemove",l),e.addEventListener("mouseup",u),e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",h)),n.hasBindTouchEvents=!0)},unbind:function(e){e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",l),e.removeEventListener("touchcancel",c),e.removeEventListener("touchend",u),e.$$touchObj&&!e.$$touchObj.options.disableClick&&(e.removeEventListener("mousedown",a),e.removeEventListener("mousemove",l),e.removeEventListener("mouseup",u),e.removeEventListener("mouseenter",d),e.removeEventListener("mouseleave",h)),delete e.$$touchObj}}),e.directive(o.namespace+"-class",{bind:function(e,t){g(e,{touchClass:t.value})}}),e.directive(o.namespace+"-options",{bind:function(e,t){g(e,t.value)}})}};e.exports=s}(Dz)),Dz.exports);const Mz=Xa(Rz);Xn.use(Mz,{disableClick:!0});const Nz=new Xn({name:"vue-notification"}),jz={x:["left","center","right"],y:["top","bottom"]},Uz=(e=>()=>e++)(0);function $z(e,t,n){let r,i=t;this.pause=function(){clearTimeout(n.timer),i-=Date.now()-r},this.resume=function(){r=Date.now(),clearTimeout(n.timer),n.timer=setTimeout(e,i
767)},this.resume()}var Bz=["top","right"],Fz="vn-fade",qz={enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}};function Vz(e,t,n,r,i,s,o,a,l,c){const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),t&&(d=function(e){t.call(this,a(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}var Hz=Vz({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("transition-group",{attrs:{css:!1},on:{enter:e.enter,leave:e.leave,"after-leave":e.afterLeave}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"VelocityGroup",methods:{enter(e,t){this.$emit("enter",{el:e,complete:t})},leave(e,t){this.$emit("leave",{el:e,complete:t})},afterLeave(){this.$emit("afterLeave")}}},0,0,0,0,void 0);var zz=Vz({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("transition-group",{attrs:{name:e.name}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"CssGroup",props:["name"]},0,0,0,0,void 0);const Gz="[-+]?[0-9]*.?[0-9]+",Kz=[{name:"px",regexp:new RegExp(`^${Gz}px$`)},{name:"%",regexp:new RegExp(`^${Gz}%$`)},{name:"px",regexp:new RegExp(`^${Gz}$`)}];var Wz=e=>{switch(typeof e){case"number":return{type:"px",value:e};case"string":return(e=>{if("auto"===e)return{type:e,value:0};for(var t=0;t<Kz.length;t++){let n=Kz[t];if(n.regexp.test(e))return{type:n.name,value:parseFloat(e)}}return{type:"",value:e}})(e);default:return{type:"",value:e}}};const Xz=0,Yz=2,Zz={name:"Notifications",components:{VelocityGroup:Hz,CssGroup:zz},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:()=>Bz},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css",validator:e=>"css"===e||"velocity"===e},animation:{type:Object,default:()=>qz},animationName:{type:String,default:Fz},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},data:()=>({list:[],velocity:rG.params.velocity,timerControl:""}),mounted(){Nz.$on("add",this.addItem),Nz.$on("close",this.closeItem)},computed:{actualWidth(){return Wz(this.width)},isVA(){return"velocity"===this.animationType},componentName(){return this.isVA?"VelocityGroup":"CssGroup"},styles(){const{x:e,y:t}=(e=>{"string"==typeof e&&(e=(e=>"string"!=typeof e?[]:e.split(/\s+/gi).filter(e=>e))(e));let t=null,n=null;return e.forEach(e=>{-1!==jz.y.indexOf(e)&&(n=e),-1!==jz.x.indexOf(e)&&(t=e)}),{x:t,y:n}})(this.position),n=this.actualWidth.value,r=this.actualWidth.type;let i={width:n+r,[t]:"0px"};return"center"===e?i.left=`calc(50% - ${n/2}${r})`:i[e]="0px",i},active(){return this.list.filter(e=>e.state!==Yz)},botToTop(){return this.styles.hasOwnProperty("bottom")}},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){this.pauseOnHover&&this.timerControl.pause()},resumeTimeout(){this.pauseOnHover&&this.timerControl.resume()},addItem(e){if(e.group=e.group||"",e.data=e.data||{},this.group!==e.group)return;if(e.clean||e.clear)return void this.destroyAll();const t="number"==typeof e.duration?e.duration:this.duration,n="number"==typeof e.speed?e.speed:this.speed,r="boolean"==typeof e.ignoreDuplicates?e.ignoreDuplicates:this.ignoreDuplicates;let{title:i,text:s,type:o,data:a,id:l}=e;const c={id:l||Uz(),title:i,text:s,type:o,state:Xz,speed:n,length:t+2*n,data:a};t>=0&&(this.timerControl=new $z(()=>this.destroy(c),c.length,c));let u=this.reverse?!this.botToTop:this.botToTop,d=-1;const h=this.active.some(t=>t.title===e.title&&t.text===e.text);(!r||!h)&&(u?(this.list.push(c),this.active.length>this.max&&(d=0)):(this.list.unshift(c),this.active.length>this.max&&(d=this.active.length-1)),-1!==d&&this.destroy(this.active[d
767]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type]},notifyWrapperStyle(e){return this.isVA?null:{transition:`all ${e.speed}ms`}},destroy(e){clearTimeout(e.timer),e.state=Yz,this.isVA||this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(t=>t.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){const n=this.animation[e];return"function"==typeof n?n.call(this,t):n},enter({el:e,complete:t}){const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave({el:e,complete:t}){let n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==Yz)}}},Jz="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Qz(e){return(e,t)=>function(e,t){const n=Jz?t.media||"default":e,r=tG[n]||(tG[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===eG&&(eG=document.head||document.getElementsByTagName("head")[0]),eG.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const e=r.ids.size-1,t=document.createTextNode(n),i=r.element.childNodes;i[e]&&r.element.removeChild(i[e]),i.length?r.element.insertBefore(t,i[e]):r.element.appendChild(t)}}}(e,t)}let eG;const tG={};var nG=Vz({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-notification-group",style:e.styles},[n(e.componentName,{tag:"component",attrs:{name:e.animationName},on:{enter:e.enter,leave:e.leave,"after-leave":e.clean}},e._l(e.active,function(t){return n("div",{key:t.id,staticClass:"vue-notification-wrapper",style:e.notifyWrapperStyle(t),attrs:{"data-id":t.id},on:{mouseenter:e.pauseTimeout,mouseleave:e.resumeTimeout}},[e._t("body",function(){return[n("div",{class:e.notifyClass(t),on:{click:function(n){return e.destroyIfNecessary(t)}}},[t.title?n("div",{staticClass:"notification-title",domProps:{innerHTML:e._s(t.title)}}):e._e(),e._v(" "),n("div",{staticClass:"notification-content",domProps:{innerHTML:e._s(t.text)}})])]},{item:t,close:function(){return e.destroy(t)}})],2)}),0)],1)},staticRenderFns:[]},function(e){e&&e("data-v-45619e58_0",{source:".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:#fff;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44a4fc;border-left:5px solid #187fe7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#e54d42;border-left-color:#b82e24}.vue-notification.success{background:#68cd86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter,.vn-fade-leave-to{opacity:0}",map:void 0,media:void 0})},Zz,0,0,0,0,Qz);const rG={install(e,t={}){if(this.installed)return;this.installed=!0,this.params=t,e.component(t.componentName||"notifications",nG);const n=e=>{"string"==typeof e&&(e={title:"",text:e}),"object"==typeof e&&Nz.$emit("add",e)};n.close=function(e){Nz.$emit("close",e)};const r=t.name||"notify";e.prototype["$"+r]=n,e[r]=n}};Xn.use(rG);var iG={},sG={},oG={},aG={},lG={};const cG={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var uG;function dG(){if(uG)return lG;uG=1;
767var e=lG&&lG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lG,"__esModule",{value:!0});var t=e(cG),n=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};return lG.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in t.default&&(e=t.default[e]),n(e))},lG}const hG={Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",amp:"&",AMP:"&",andand:"â©",And:"â©",and:"â§",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angmsd:"â¡",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",apacir:"⩯",ap:"â",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",barwed:"â
",Barwed:"â",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",because:"âµ",Because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxdl:"â",boxdL:"â",boxDl:"â",boxDL:"â",boxdr:"â",boxdR:"â",boxDr:"â",boxDR:"â",boxh:"â",boxH:"â",boxhd:"â¬",boxHd:"â¤",boxhD:"â¥",boxHD:"â¦",boxhu:"â´",boxHu:"â§",boxhU:"â¨",boxHU:"â©",boxminus:"â",boxplus:"â",boxtimes:"â ",boxul:"â",boxuL:"â",boxUl:"â",boxUL:"â",boxur:"â",boxuR:"â",boxUr:"â",boxUR:"â",boxv:"â",boxV:"â",boxvh:"â¼",boxvH:"âª",boxVh:"â«",boxVH:"â¬",boxvl:"â¤",boxvL:"â¡",boxVl:"â¢",boxVL:"â£",boxvr:"â",boxvR:"â",boxVr:"â",boxVR:"â ",bprime:"âµ",breve:"Ë",Breve:"Ë",brvbar:"¦",bscr:"ð·",Bscr:"â¬",bsemi:"â",bsim:"â½",b
767sime:"â",bsolb:"â§
",bsol:"\\",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",capand:"â©",capbrcup:"â©",capcap:"â©",cap:"â©",Cap:"â",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"ð ",Cfr:"â",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cir:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",colon:":",Colon:"â·",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",conint:"â®",Conint:"â¯",ContourIntegral:"â®",copf:"ð",Copf:"â",coprod:"â",Coproduct:"â",copy:"©",COPY:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",cross:"â",Cross:"⨯",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",cupbrcap:"â©",cupcap:"â©",CupCap:"â",cup:"âª",Cup:"â",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",dagger:"â ",Dagger:"â¡",daleth:"â¸",darr:"â",Darr:"â¡",dArr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",ddagger:"â¡",ddarr:"â",DD:"â
",dd:"â
",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",diamond:"â",Diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrowBar:"â¤",downarrow:"â",DownArrow:"â",Downarrow:"â",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVectorBar:"â¥",DownLeftVector:"â½",DownRightTeeVector:"â¥",DownRightVectorBar:"â¥",DownRightVector:"â",DownTeeArrow:"â§",DownTee:"â¤",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",Ecirc:"Ã",ecirc:"ê",ecir:"â",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",edot:"Ä",eDot:"â",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp13:"â",emsp14:"â
",emsp:"â",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",escr:"â¯",Escr:"â°",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",exponentiale:"â
",ExponentialE:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",forall:"â",ForAll:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18
767:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",fscr:"ð»",Fscr:"â±",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",ge:"â¥",gE:"â§",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",gg:"â«",Gg:"â",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gla:"⪥",gl:"â·",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gne:"âª",gnE:"â©",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"â«",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",harrcir:"â¥",harr:"â",hArr:"â",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",hfr:"ð¥",Hfr:"â",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",hopf:"ð",Hopf:"â",horbar:"â",HorizontalLine:"â",hscr:"ð½",Hscr:"â",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",ifr:"ð¦",Ifr:"â",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",Im:"â",imof:"â·",imped:"Ƶ",Implies:"â",incare:"â
",in:"â",infin:"â",infintie:"â§",inodot:"ı",intcal:"âº",int:"â«",Int:"â¬",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"ð¾",Iscr:"â",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",lang:"â¨",Lang:"âª",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",larrb:"â¤",larrbfs:"â¤",larr:"â",Larr:"â",lArr:"â",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",latail:"â¤",lAtail:"â¤",lat:"⪫",late:"âª",lates:"âªï¸",lbarr:"â¤",lBarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",le:"â¤",lE:"â¦",LeftAngleBracket:"â¨",LeftArrowBar:"â¤",leftarrow:"â",LeftArrow:"â",Leftarrow:"â",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"â¥",LeftDownVector:"â",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",leftrightarrow:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTeeArrow:"â¤",LeftTee:"â£",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangleBar:"â§",LeftTriangle:"â²",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVectorBar:"â¥",LeftUpVector:"â¿",LeftVectorBar:"â¥",LeftVector:"â¼",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
767",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",llarr:"â",ll:"âª",Ll:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoustache:"â°",lmoust:"â°",lnap:"âª",lnapprox:"âª",lne:"âª",lnE:"â¨",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",longleftarrow:"âµ",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftrightarrow:"â·",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longmapsto:"â¼",longrightarrow:"â¶",LongRightArrow:"â¶",Longrightarrow:"â¹",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",lscr:"ð",Lscr:"â",lsh:"â°",Lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"âª",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",midast:"*",midcir:"â«°",mid:"â£",middot:"·",minusb:"â",minus:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",mscr:"ð",Mscr:"â³",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natural:"â®",naturals:"â",natur:"â®",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",nearhk:"⤤",nearr:"â",neArr:"â",nearrow:"â",ne:"â ",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nharr:"â®",nhArr:"â",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlarr:"â",nlArr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nleftarrow:"â",nLeftarrow:"â",nleftrightarrow:"â®",nLeftrightarrow:"â",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",nopf:"ð",Nopf:"â",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangle:"âª",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangleBar:"â§Ì¸",NotRightTriangle:"â«",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",nparallel:"â¦",npar:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â
767 ",nprec:"â",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"â",nrArr:"â",nrarrw:"â̸",nrightarrow:"â",nRightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nvdash:"â¬",nvDash:"â",nVdash:"â®",nVDash:"â¯",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwarr:"â",nwArr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",Ocirc:"Ã",ocirc:"ô",ocir:"â",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",orarr:"â»",Or:"â©",or:"â¨",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"â",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",para:"¶",parallel:"â¥",par:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plusacir:"⨣",plusb:"â",pluscir:"⨢",plus:"+",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",popf:"ð¡",Popf:"â",pound:"£",prap:"⪷",Pr:"⪻",pr:"âº",prcue:"â¼",precapprox:"⪷",prec:"âº",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",pre:"⪯",prE:"⪳",precsim:"â¾",prime:"â²",Prime:"â³",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportional:"â",Proportion:"â·",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",qopf:"ð¢",Qopf:"â",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",quot:'"',QUOT:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",rang:"â©",Rang:"â«",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarr:"â",Rarr:"â ",rArr:"â",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",ratail:"â¤",rAtail:"â¤",ratio:"â¶",rationals:"â",rbarr:"â¤",rBarr:"â¤",RBarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",real:"â",realine:"â",realpart:"â",reals:"â",Re:"â",rect:"â",reg:"®",REG:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",rfr:"ð¯",Rfr:"â",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrowBar:"â¥",rightarrow:"â",RightArrow:"â",Rightarrow:"â",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVectorBar:"â¥",RightDownVector:"â",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTeeArrow:"â¦",RightTee:"â¢",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangleBar:"â§",RightTriangle:"â³",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVectorBar:"â¥",RightUpVector:"â¾",RightVectorBar:"â¥",RightVector:"â",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoustache:"â±",rmoust:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",ropf:"ð£",Ropf:"â",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",rscr:"ð",Rscr:"â",rsh:"â±",Rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",scap:"⪸",Scaron:"Å ",scaron:"Å¡",Sc:"⪼",sc:"â»",sccue:"â½",sce:"⪰",scE:"⪴",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",
767scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdotb:"â¡",sdot:"â
",sdote:"⩦",searhk:"⤥",searr:"â",seArr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",solbar:"â¿",solb:"â§",sol:"/",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",square:"â¡",Square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squ:"â¡",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",sub:"â",Sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",subset:"â",Subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succapprox:"⪸",succ:"â»",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",sum:"â",Sum:"â",sung:"âª",sup1:"¹",sup2:"²",sup3:"³",sup:"â",Sup:"â",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",supset:"â",Supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swarr:"â",swArr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",therefore:"â´",Therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",ThinSpace:"â",thinsp:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",tilde:"Ë",Tilde:"â¼",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",timesbar:"⨱",timesb:"â ",times:"Ã",timesd:"⨰",tint:"â",toea:"⤨",topbot:"â¶",topcir:"⫱",top:"â¤",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",trade:"â¢",TRADE:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",uarr:"â",Uarr:"â",uArr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrowBar:"â¤",uparrow:"â",UpArrow:"â",Uparrow:"â",UpArrowDownArrow:"â
",updownarrow:"â",UpDownArrow:"â",Updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",upsi:"Ï
",Upsi:"Ï",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTeeArrow:"â¥",UpTee:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",varr:"â",vArr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",vBar:"⫨",Vbar:"â««",vBarv:"â«©",Vcy:"Ð",vcy:"в",vdash:"â¢",vDash:"â¨",Vdash:"â©",VDash:"â«",Vdashl:"⫦",veebar:"â»",vee:"â¨",Vee:"â",veeeq:"â",vellip:"â®",verbar:"|",Verbar:"â",vert:"|",Vert:"â",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",wedge:"â§",Wedge:"â",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xharr:"â·",xhArr:"âº",Xi:"Î",xi:"ξ",xlarr:"âµ",xlArr:"â¸",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrarr:"â¶",xrArr:"â¹",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",zfr:"ð·",Zfr
767:"â¨",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",zopf:"ð«",Zopf:"â¤",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"},pG={Aacute:"Ã",aacute:"á",Acirc:"Ã",acirc:"â",acute:"´",AElig:"Ã",aelig:"æ",Agrave:"Ã",agrave:"à ",amp:"&",AMP:"&",Aring:"Ã
",aring:"Ã¥",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",brvbar:"¦",Ccedil:"Ã",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"Ã",eacute:"é",Ecirc:"Ã",ecirc:"ê",Egrave:"Ã",egrave:"è",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Ã",iacute:"Ã",Icirc:"Ã",icirc:"î",iexcl:"¡",Igrave:"Ã",igrave:"ì",iquest:"¿",Iuml:"Ã",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ã",ntilde:"ñ",Oacute:"Ã",oacute:"ó",Ocirc:"Ã",ocirc:"ô",Ograve:"Ã",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ã",oslash:"ø",Otilde:"Ã",otilde:"õ",Ouml:"Ã",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"Â",sup1:"¹",sup2:"²",sup3:"³",szlig:"Ã",THORN:"Ã",thorn:"þ",times:"Ã",Uacute:"Ã",uacute:"ú",Ucirc:"Ã",ucirc:"û",Ugrave:"Ã",ugrave:"ù",uml:"¨",Uuml:"Ã",uuml:"ü",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ"},fG={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};var mG,_G;function gG(){if(mG)return aG;mG=1;var e=aG&&aG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
767Object.defineProperty(aG,"__esModule",{value:!0});var t=e(dG()),n=e(hG),r=e(pG),i=e(fG);function s(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function o(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function a(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,s){s===r||s===e?i._state=t:(i._state=n,i._index--)}}function l(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var c=a("C",24,16),u=a("D",25,16),d=a("A",26,16),h=a("T",27,16),p=a("A",28,16),f=l("R",35),m=l("I",36),_=l("P",37),g=l("T",38),y=a("R",40,1),v=a("I",41,1),b=a("P",42,1),w=a("T",43,1),k=l("Y",45),C=l("L",46),T=l("E",47),S=a("Y",49,1),x=a("L",50,1),E=a("E",51,1),I=l("I",54),A=l("T",55),P=l("L",56),O=l("E",57),L=a("I",58,1),D=a("T",59,1),R=a("L",60,1),M=a("E",61,1),N=a("#",63,64),j=a("X",66,65),U=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return o(e)||this.xmlMode&&!s(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||s(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||s(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||s(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:s(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):s(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||s(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):s(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):s(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||s(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||s(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?i.default:n.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(r.default,n))return this.emitPartial(r.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!o(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(r.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,n,r){var i=this.sectionStart+e;if(i!==this._index){var s=this.buffer.substring(i,this._index),o=parseInt(s,n);this.emitPartial(t.default(o)),this.sectionStart=r?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?L(this,e):39===this._state?y(this,e):40===this._state?v(this,e):41===this._state?b(this,e):34===this._state?f(this,e):35===this._state?m(this,e):36===this._state?_(this,e):37===this._state?g(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?w(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?k(this,e):29===this._state?this.stateInCdata(e):45===this._state?C(this,e):46===this._state?T(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?S(this,e):49===this._state?x(this,e):50===this._state?E(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?I(this,e):54===this._state?A(this,e):55===this._state?P(this,e):56===this._state?O(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?D(this,e):59===this._state?R(this,e):60===this._state?M(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?c(this,e):62===this._state?N(this,e):24===this._state?u(this,e):25===this._state?d(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?h(this,e):27===this._state?p(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?j(this,e):this.cbs.onerror
767(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();return aG.default=U,aG}function yG(){if(_G)return oG;_G=1;var e=oG&&oG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
767Object.defineProperty(oG,"__esModule",{value:!0}),oG.Parser=void 0;var t=e(gG()),n=new Set(["input","option","optgroup","select","button","datalist","textarea"]),r=new Set(["p"]),i={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:r,h1:r,h2:r,h3:r,h4:r,h5:r,h6:r,select:n,input:n,output:n,button:n,datalist:n,textarea:n,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:r,article:r,aside:r,blockquote:r,details:r,div:r,dl:r,fieldset:r,figcaption:r,figure:r,footer:r,form:r,header:r,hr:r,main:r,nav:r,ol:r,pre:r,section:r,table:r,ul:r,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},s=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),o=new Set(["math","svg"]),a=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),l=/\s|\//,c=function(){function e(e,n){var r,i,s,o,a;void 0===n&&(n={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=n,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=n.lowerCaseTags)&&void 0!==r?r:!n.xmlMode,this.lowerCaseAttributeNames=null!==(i=n.lowerCaseAttributeNames)&&void 0!==i?i:!n.xmlMode,this.tokenizer=new(null!==(s=n.Tokenizer)&&void 0!==s?s:t.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(i,e))for(var r=void 0;this.stack.length>0&&i[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&s.has(e)||(this.stack.push(e),o.has(e)?this.foreignContext.push(!0):a.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&s.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(o.has(e)||a.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&s.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,s,o;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,e),null===(o=(s=this.cbs).oncdataen
767d)||void 0===o||o.call(s)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();return oG.Parser=c,oG}var vG,bG={},wG={};function kG(){return vG||(vG=1,e=wG,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(n=t=e.ElementType||(e.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),wG;var e,t,n}var CG,TG,SG={};function xG(){if(CG)return SG;CG=1;var e=SG&&SG.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t=SG&&SG.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(SG,"__esModule",{value:!0}),SG.cloneNode=SG.hasChildren=SG.isDocument=SG.isDirective=SG.isComment=SG.isText=SG.isCDATA=SG.isTag=SG.Element=SG.Document=SG.NodeWithChildren=SG.ProcessingInstruction=SG.Comment=SG.Text=SG.DataNode=SG.Node=void 0;var n=kG(),r=new Map([[n.ElementType.Tag,1],[n.ElementType.Script,1],[n.ElementType.Style,1],[n.ElementType.Directive,1],[n.ElementType.Text,3],[n.ElementType.CDATA,4],[n.ElementType.Comment,8],[n.ElementType.Root,9]]),i=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=r.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),y(this,e)},e}();SG.Node=i;var s=function(t){function n(e,n){var r=t.call(this,e)||this;return r.data=n,r}return e(n,t),Object.defineProperty(n.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(i);SG.DataNode=s;var o=function(t){function r(e){return t.call(this,n.ElementType.Text,e)||this}return e(r,t),r}(s);SG.Text=o;var a=function(t){function r(e){return t.call(this,n.ElementType.Comment,e)||this}return e(r,t),r}(s);SG.Comment=a;var l=function(t){function r(e,r){var i=t.call(this,n.ElementType.Directive,r)||this;return i.name=e,i}return e(r,t),r}(s);SG.ProcessingInstruction=l;var c=function(t){function n(e,n){var r=t.call(this,e)||this;return r.children=n,r}return e(n,t),Object.defineProperty(n.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}
767,enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(i);SG.NodeWithChildren=c;var u=function(t){function r(e){return t.call(this,n.ElementType.Root,e)||this}return e(r,t),r}(c);SG.Document=u;var d=function(t){function r(e,r,i,s){void 0===i&&(i=[]),void 0===s&&(s="script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag);var o=t.call(this,s,i)||this;return o.name=e,o.attribs=r,o}return e(r,t),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),r}(c);function h(e){return(0,n.isTag)(e)}function p(e){return e.type===n.ElementType.CDATA}function f(e){return e.type===n.ElementType.Text}function m(e){return e.type===n.ElementType.Comment}function _(e){return e.type===n.ElementType.Directive}function g(e){return e.type===n.ElementType.Root}function y(e,r){var i;if(void 0===r&&(r=!1),f(e))i=new o(e.data);else if(m(e))i=new a(e.data);else if(h(e)){var s=r?v(e.children):[],y=new d(e.name,t({},e.attribs),s);s.forEach(function(e){return e.parent=y}),null!=e.namespace&&(y.namespace=e.namespace),e["x-attribsNamespace"]&&(y["x-attribsNamespace"]=t({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(y["x-attribsPrefix"]=t({},e["x-attribsPrefix"])),i=y}else if(p(e)){s=r?v(e.children):[];var b=new c(n.ElementType.CDATA,s);s.forEach(function(e){return e.parent=b}),i=b}else if(g(e)){s=r?v(e.children):[];var w=new u(s);s.forEach(function(e){return e.parent=w}),e["x-mode"]&&(w["x-mode"]=e["x-mode"]),i=w}else{if(!_(e))throw new Error("Not implemented yet: ".concat(e.type));var k=new l(e.name,e.data);null!=e["x-name"]&&(k["x-name"]=e["x-name"],k["x-publicId"]=e["x-publicId"],k["x-systemId"]=e["x-systemId"]),i=k}return i.startIndex=e.startIndex,i.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(i.sourceCodeLocation=e.sourceCodeLocation),i}function v(e){for(var t=e.map(function(e){return y(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}return SG.Element=d,SG.isTag=h,SG.isCDATA=p,SG.isText=f,SG.isComment=m,SG.isDirective=_,SG.isDocument=g,SG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},SG.cloneNode=y,SG}function EG(){return TG||(TG=1,function(e){var t=bG&&bG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=bG&&bG.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=kG(),i=xG();n(xG(),e);var s=/\s+/g,o={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,s=new i.Element(e,t,void 0,n);this.addNode(s),this.tagStack.push(s)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===r.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var o=new i.Text(e);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(r.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e}
767,e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(bG)),bG}var IG,AG={},PG={},OG={},LG={},DG={},RG={};function MG(){if(IG)return RG;IG=1;var e=RG&&RG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(RG,"__esModule",{value:!0}),RG.decodeHTML=RG.decodeHTMLStrict=RG.decodeXML=void 0;var t=e(hG),n=e(pG),r=e(fG),i=e(dG()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function o(e){var t=l(e);return function(e){return String(e).replace(s,t)}}RG.decodeXML=o(r.default),RG.decodeHTMLStrict=o(t.default);var a=function(e,t){return e<t?1:-1};function l(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?i.default(parseInt(t.substr(3),16)):i.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}return RG.decodeHTML=function(){for(var e=Object.keys(n.default).sort(a),r=Object.keys(t.default).sort(a),i=0,s=0;i<r.length;i++)e[s]===r[i]?(r[i]+=";?",s++):r[i]+=";";var o=new RegExp("&(?:"+r.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=l(t.default);function u(e){return";"!==e.substr(-1)&&(e+=";"),c(e)}return function(e){return String(e).replace(o,u)}}(),RG}var NG,jG,UG={};function $G(){if(NG)return UG;NG=1;var e=UG&&UG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(UG,"__esModule",{value:!0}),UG.escapeUTF8=UG.escape=UG.encodeNonAsciiHTML=UG.encodeHTML=UG.encodeXML=void 0;var t=a(e(fG).default),n=l(t);UG.encodeXML=p(t);var r,i,s=a(e(hG).default),o=l(s);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function l(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];1===s.length?t.push("\\"+s):n.push(s)}t.sort();for(var o=0;o<t.length-1;o++){for(var a=o;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-o;l<3||t.splice(o,l,t[o]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}UG.encodeHTML=(r=s,i=o,function(e){return e.replace(i,function(e){return r[e]}).replace(c,d)}),UG.encodeNonAsciiHTML=p(s);var c=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,u=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function d(e){return"&#x"+(e.length>1?u(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var h=new RegExp(n.source+"|"+c.source,"g");function p(e){return function(t){return t.replace(h,function(t){return e[t]||d(t)})}}return UG.escape=function(e){return e.replace(h,d)},UG.escapeUTF8=function(e){return e.replace(n,d)},UG}function BG(){return jG||(jG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=MG(),n=$G();e.decode=function(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)},e.decodeStrict=function(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)},e.encode=function(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)};var r=$G();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return r.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return r.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return r.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return r.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return r.encodeHTML}});
767var i=MG();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return i.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return i.decodeXML}})}(DG)),DG}var FG,qG,VG,HG={};function zG(){return FG||(FG=1,Object.defineProperty(HG,"__esModule",{value:!0}),HG.attributeNames=HG.elementNames=void 0,HG.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),HG.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])),HG}function GG(){if(qG)return LG;qG=1;var e=LG&&LG.__assign||function(){return e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.apply(this,arguments)},t=LG&&LG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=LG&&LG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
767),r=LG&&LG.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(LG,"__esModule",{value:!0});var i=r(kG()),s=BG(),o=zG(),a=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function c(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=u(n[i],t);return r}function u(t,n){switch(t.type){case i.Root:return c(t.children,n);case i.Directive:case i.Doctype:return"<"+t.data+">";case i.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(t);case i.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(t);case i.Script:case i.Style:case i.Tag:return function(t,n){var r;"foreign"===n.xmlMode&&(t.name=null!==(r=o.elementNames.get(t.name))&&void 0!==r?r:t.name,t.parent&&d.has(t.parent.name)&&(n=e(e({},n),{xmlMode:!1})));!n.xmlMode&&h.has(t.name)&&(n=e(e({},n),{xmlMode:"foreign"}));var i="<"+t.name,a=function(e,t){if(e)return Object.keys(e).map(function(n){var r,i,a=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(i=o.attributeNames.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==a?n+'="'+(!1!==t.decodeEntities?s.encodeXML(a):a.replace(/"/g,"""))+'"':n}).join(" ")}(t.attribs,n);a&&(i+=" "+a);0===t.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&l.has(t.name))?(n.xmlMode||(i+=" "),i+="/>"):(i+=">",t.children.length>0&&(i+=c(t.children,n)),!n.xmlMode&&l.has(t.name)||(i+="</"+t.name+">"));return i}(t,n);case i.Text:return function(e,t){var n=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&a.has(e.parent.name)||(n=s.encodeXML(n));return n}(t,n)}}LG.default=c;var d=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),h=new Set(["svg","math"]);return LG}function KG(){if(VG)return OG;VG=1;var e=OG&&OG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OG,"__esModule",{value:!0}),OG.innerText=OG.textContent=OG.getText=OG.getInnerHTML=OG.getOuterHTML=void 0;var t=EG(),n=e(GG()),r=kG();function i(e,t){return(0,n.default)(e,t)}return OG.getOuterHTML=i,OG.getInnerHTML=function(e,n){return(0,t.hasChildren)(e)?e.children.map(function(e){return i(e,n)}).join(""):""},OG.getText=function e(n){return Array.isArray(n)?n.map(e).join(""):(0,t.isTag)(n)?"br"===n.name?"\n":e(n.children):(0,t.isCDATA)(n)?e(n.children):(0,t.isText)(n)?n.data:""},OG.textContent=function e(n){return Array.isArray(n)?n.map(e).join(""):(0,t.hasChildren)(n)&&!(0,t.isComment)(n)?e(n.children):(0,t.isText)(n)?n.data:""},OG.innerText=function e(n){return Array.isArray(n)?n.map(e).join(""):(0,t.hasChildren)(n)&&(n.type===r.ElementType.Tag||(0,t.isCDATA)(n))?e(n.children):(0,t.isText)(n)?n.data:""},OG}var WG,XG={};function YG(){if(WG)return XG;WG=1,Object.defineProperty(XG,"__esModule",{value:!0}),XG.prevElementSibling=XG.nextElementSibling=XG.getName=XG.hasAttrib=XG.getAttributeValue=XG.getSiblings=XG.getParent=XG.getChildren=void 0;var e=EG(),t=[];function n(e){var n;return null!==(n=e.children)&&void 0!==n?n:t}function r(e){return e.parent||null}return XG.getChildren=n,XG.getParent=r,XG.getSiblings=function(e){var t=r(e);if(null!=t)return n(t);for(var i=[e],s=e.prev,o=e.next;null!=s;)i.unshift(s),s=s.prev;for(;null!=o;)i.push(o),o=o.next;return i},XG.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},XG.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},XG.getName=function(e){return e.name},XG.nextElementSibling=function(t){for(var n=t.next;null!==n&&!(0,e.isTag)(n);)n=n.next;return n},XG.prevElementSibling=function(t){for(var n=t.prev;null!==n&&!(0,e.isTag)(n);)n=n.prev;return n},XG}var ZG,JG={};function QG(){if(ZG)return JG;function e(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}
767return ZG=1,Object.defineProperty(JG,"__esModule",{value:!0}),JG.prepend=JG.prependChild=JG.append=JG.appendChild=JG.replaceElement=JG.removeElement=void 0,JG.removeElement=e,JG.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t}},JG.appendChild=function(t,n){if(e(n),n.next=null,n.parent=t,t.children.push(n)>1){var r=t.children[t.children.length-2];r.next=n,n.prev=r}else n.prev=null},JG.append=function(t,n){e(n);var r=t.parent,i=t.next;if(n.next=i,n.prev=t,t.next=n,n.parent=r,i){if(i.prev=n,r){var s=r.children;s.splice(s.lastIndexOf(i),0,n)}}else r&&r.children.push(n)},JG.prependChild=function(t,n){if(e(n),n.parent=t,n.prev=null,1!==t.children.unshift(n)){var r=t.children[1];r.prev=n,n.next=r}else n.next=null},JG.prepend=function(t,n){e(n);var r=t.parent;if(r){var i=r.children;i.splice(i.indexOf(t),0,n)}t.prev&&(t.prev.next=n),n.parent=r,n.prev=t.prev,n.next=t,t.prev=n},JG}var eK,tK={};function nK(){if(eK)return tK;eK=1,Object.defineProperty(tK,"__esModule",{value:!0}),tK.findAll=tK.existsOne=tK.findOne=tK.findOneChild=tK.find=tK.filter=void 0;var e=EG();function t(n,r,i,s){for(var o=[],a=0,l=r;a<l.length;a++){var c=l[a];if(n(c)&&(o.push(c),--s<=0))break;if(i&&(0,e.hasChildren)(c)&&c.children.length>0){var u=t(n,c.children,i,s);if(o.push.apply(o,u),(s-=u.length)<=0)break}}return o}return tK.filter=function(e,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),Array.isArray(n)||(n=[n]),t(e,n,r,i)},tK.find=t,tK.findOneChild=function(e,t){return t.find(e)},tK.findOne=function t(n,r,i){void 0===i&&(i=!0);for(var s=null,o=0;o<r.length&&!s;o++){var a=r[o];(0,e.isTag)(a)&&(n(a)?s=a:i&&a.children.length>0&&(s=t(n,a.children)))}return s},tK.existsOne=function t(n,r){return r.some(function(r){return(0,e.isTag)(r)&&(n(r)||r.children.length>0&&t(n,r.children))})},tK.findAll=function(t,n){for(var r,i,s=[],o=n.filter(e.isTag);i=o.shift();){var a=null===(r=i.children)||void 0===r?void 0:r.filter(e.isTag);a&&a.length>0&&o.unshift.apply(o,a),t(i)&&s.push(i)}return s},tK}var rK,iK={};function sK(){if(rK)return iK;rK=1,Object.defineProperty(iK,"__esModule",{value:!0}),iK.getElementsByTagType=iK.getElementsByTagName=iK.getElementById=iK.getElements=iK.testElement=void 0;var e=EG(),t=nK(),n={tag_name:function(t){return"function"==typeof t?function(n){return(0,e.isTag)(n)&&t(n.name)}:"*"===t?e.isTag:function(n){return(0,e.isTag)(n)&&n.name===t}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(t){return"function"==typeof t?function(n){return(0,e.isText)(n)&&t(n.data)}:function(n){return(0,e.isText)(n)&&n.data===t}}};function r(t,n){return"function"==typeof n?function(r){return(0,e.isTag)(r)&&n(r.attribs[t])}:function(r){return(0,e.isTag)(r)&&r.attribs[t]===n}}function i(e,t){return function(n){return e(n)||t(n)}}function s(e){var t=Object.keys(e).map(function(t){var i=e[t];return Object.prototype.hasOwnProperty.call(n,t)?n[t](i):r(t,i)});return 0===t.length?null:t.reduce(i)}return iK.testElement=function(e,t){var n=s(e);return!n||n(t)},iK.getElements=function(e,n,r,i){void 0===i&&(i=1/0);var o=s(e);return o?(0,t.filter)(o,n,r,i):[]},iK.getElementById=function(e,n,i){return void 0===i&&(i=!0),Array.isArray(n)||(n=[n]),(0,t.findOne)(r("id",e),n,i)},iK.getElementsByTagName=function(e,r,i,s){return void 0===i&&(i=!0),void 0===s&&(s=1/0),(0,t.filter)(n.tag_name(e),r,i,s)},iK.getElementsByTagType=function(e,r,i,s){return void 0===i&&(i=!0),void 0===s&&(s=1/0),(0,t.filter)(n.tag_type(e),r,i,s)},iK}var oK,aK={};function lK(){if(oK)return aK;oK=1,Object.defineProperty(aK,"__esModule",{value:!0}),aK.uniqueSort=aK.compareDocumentPosition=aK.removeSubsets=void 0;var e=EG();function t(t,n){var r=[],i=[];if(t===n)return 0;for(var s=(0,e.hasChildren)(t)?t:t.parent;s;)r.unshift(s),s=s.parent;for(s=(0,e.hasChildren)(n)?n:n.parent;s;)i.unshift(s),s=s.parent;for(var o=Math.min(r.length,i.length),a=0;a<o&&r[a]===i[a];)a++;if(0===a)return 1;var l=r[a-1],c=l.children,u=r[a],d=i[a];return c.indexOf(u)>c.indexOf(d)?l===n?20:4:l===t?10:2}return aK.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},aK.compareDocumentPosition=t,aK.uniqueSort=function(e){return e=e.filter(function(e,t,n){return!n.includes(e,t+1)}),e.sort(function(e,n){var r=t(e,n);return 2&r?-1:4&r?1:0}),e},aK}var cK,uK,dK,hK,pK,fK,mK={};function _K(){if(cK)return mK;cK=1,Object.defineProperty(mK,"__esModule",{value:!0}),mK.getFeed=void 0;var e=KG(),t=sK();mK.getFeed=function(e){var n=s(l,e);return n?"feed"===n.name?function(e){var n,r=e.children,l={type:"atom",items:(0,t.getElementsByTagName)("entry",r).map(function(e){var t,n=e.children,r={media:i(n)};a(r,"id","id",n),a(r,"title","title",n);var l=null===(t=s("link",n))||void 0===t?void 0:t.attribs.href;l&&(r.link=l);
767var c=o("summary",n)||o("content",n);c&&(r.description=c);var u=o("updated",n);return u&&(r.pubDate=new Date(u)),r})};a(l,"id","id",r),a(l,"title","title",r);var c=null===(n=s("link",r))||void 0===n?void 0:n.attribs.href;c&&(l.link=c);a(l,"description","subtitle",r);var u=o("updated",r);u&&(l.updated=new Date(u));return a(l,"author","email",r,!0),l}(n):function(e){var n,r,l=null!==(r=null===(n=s("channel",e.children))||void 0===n?void 0:n.children)&&void 0!==r?r:[],c={type:e.name.substr(0,3),id:"",items:(0,t.getElementsByTagName)("item",e.children).map(function(e){var t=e.children,n={media:i(t)};a(n,"id","guid",t),a(n,"title","title",t),a(n,"link","link",t),a(n,"description","description",t);var r=o("pubDate",t);return r&&(n.pubDate=new Date(r)),n})};a(c,"title","title",l),a(c,"link","link",l),a(c,"description","description",l);var u=o("lastBuildDate",l);u&&(c.updated=new Date(u));return a(c,"author","managingEditor",l,!0),c}(n):null};var n=["url","type","lang"],r=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function i(e){return(0,t.getElementsByTagName)("media:content",e).map(function(e){for(var t=e.attribs,i={medium:t.medium,isDefault:!!t.isDefault},s=0,o=n;s<o.length;s++){t[c=o[s]]&&(i[c]=t[c])}for(var a=0,l=r;a<l.length;a++){var c;t[c=l[a]]&&(i[c]=parseInt(t[c],10))}return t.expression&&(i.expression=t.expression),i})}function s(e,n){return(0,t.getElementsByTagName)(e,n,!0,1)[0]}function o(n,r,i){return void 0===i&&(i=!1),(0,e.textContent)((0,t.getElementsByTagName)(n,r,i,1)).trim()}function a(e,t,n,r,i){void 0===i&&(i=!1);var s=o(n,r,i);s&&(e[t]=s)}function l(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}return mK}function gK(){return uK||(uK=1,function(e){var t=PG&&PG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=PG&&PG.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(KG(),e),n(YG(),e),n(QG(),e),n(nK(),e),n(sK(),e),n(lK(),e),n(_K(),e);var r=EG();Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(PG)),PG}function yK(){if(dK)return AG;dK=1;var e=AG&&AG.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t=AG&&AG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=AG&&AG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=AG&&AG.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=AG&&AG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AG,"__esModule",{value:!0}),AG.parseFeed=AG.FeedHandler=void 0;var s,o,a,l,c=i(EG()),u=r(gK()),d=yG();(o=s||(s={}))[o.image=0]="image",o[o.audio=1]="audio",o[o.video=2]="video",o[o.document=3]="document",o[o.executable=4]="executable",(l=a||(a={}))[l.sample=0]="sample",l[l.full=1]="full",l[l.nonstop=2]="nonstop";var h=function(t){function n(e,n){return"object"==typeof e&&(n=e=void 0),t.call(this,e,n)||this}return e(n,t),n.prototype.onend=function(){var e,t,n=m(v,this.dom);
767if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",y(r,"id","id",i),y(r,"title","title",i);var s=g("href",m("link",i));s&&(r.link=s),y(r,"description","subtitle",i),(o=_("updated",i))&&(r.updated=new Date(o)),y(r,"author","email",i,!0),r.items=f("entry",i).map(function(e){var t={},n=e.children;y(t,"id","id",n),y(t,"title","title",n);var r=g("href",m("link",n));r&&(t.link=r);var i=_("summary",n)||_("content",n);i&&(t.description=i);var s=_("updated",n);return s&&(t.pubDate=new Date(s)),t.media=p(n),t})}else{var o;i=null!==(t=null===(e=m("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];r.type=n.name.substr(0,3),r.id="",y(r,"title","title",i),y(r,"link","link",i),y(r,"description","description",i),(o=_("lastBuildDate",i))&&(r.updated=new Date(o)),y(r,"author","managingEditor",i,!0),r.items=f("item",n.children).map(function(e){var t={},n=e.children;y(t,"id","guid",n),y(t,"title","title",n),y(t,"link","link",n),y(t,"description","description",n);var r=_("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=p(n),t})}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},n}(c.default);function p(e){return f("media:content",e).map(function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t})}function f(e,t){return u.getElementsByTagName(e,t,!0)}function m(e,t){return u.getElementsByTagName(e,t,!0,1)[0]}function _(e,t,n){return void 0===n&&(n=!1),u.getText(u.getElementsByTagName(e,t,n,1)).trim()}function g(e,t){return t?t.attribs[e]:null}function y(e,t,n,r,i){void 0===i&&(i=!1);var s=_(n,r,i);s&&(e[t]=s)}function v(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}return AG.FeedHandler=h,AG.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new d.Parser(n,t).end(e),n.feed},AG}function vK(){return hK||(hK=1,function(e){var t=sG&&sG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=sG&&sG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=sG&&sG.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=sG&&sG.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)},s=sG&&sG.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.RssHandler=e.DefaultHandler=e.DomUtils=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var o=yG();Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=EG();function l(e,t){var n=new a.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}}),e.parseDocument=l,e.parseDOM=function(e,t){return l(e,t).children},e.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new o.Parser(r,t)};var c=gG();Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return s(c).default}});var u=r(kG());e.ElementType=u,i(yK(),e),e.DomUtils=r(gK());var d=yK();Object.defineProperty(e,"RssHandler",{enumerable:!0,get:function(){return d.FeedHandler}})}(sG)),sG}var bK,wK={};var kK,CK={exports:{}},TK=CK.exports;var SK,xK,EK,IK,AK,PK,OK,LK={exports:{}};function DK(){if(SK)return LK.exports;SK=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreen
vendor: 14,141 bytes, line 767
767Bright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return LK.exports=t(),LK.exports.createColors=t,LK.exports}function RK(){if(EK)return xK;EK=1;let e=DK(),t=_E;class n extends Error{constructor(e,t,r,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let r=this.source;null==n&&(n=e.isColorSupported);let i=e=>e,s=e=>e,o=e=>e;if(n){let{bold:n,gray:r,red:a}=e.createColors(!0);s=e=>n(a(e)),i=e=>r(e),t&&(o=e=>t(e))}let a=r.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map((e,t)=>{let n=l+1+t,r=" "+(" "+n).slice(-u)+" | ";if(n===this.line){if(e.length>160){let t=20,n=Math.max(0,this.column-t),a=Math.max(this.column+t,this.endColumn+t),l=e.slice(n,a),c=i(r.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return s(">")+i(r)+o(l)+"\n "+c+s("^")}let t=i(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+i(r)+o(e)+"\n "+t+s("^")}return" "+i(r)+o(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return xK=n,n.default=n,xK}function MK(){if(AK)return IK;AK=1;const e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function n(n){return"string"!=typeof n?n:n.includes("<")?n.replace(e,"\\3c $2").replace(t,"\\3c $2"):n}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(e,t){let n="@"+t.name,r=t.params?e.rawValue(t,"params"):"";return void 0!==t.raws.afterName?n+=t.raws.afterName:r&&(n+=" "),n+r}function s(e,t,n){let r=n.nodes,i=r.length-1;for(;i>0&&"comment"===r[i].type;)i-=1;let s=e.raw(n,"semicolon"),o="document"===n.type;for(let a=r.length-1;a>=0;a--)t.push({document:o,node:r[a],semicolon:i!==a||s})}function o(e,t,r,i){let o=e.raw(r,"between","beforeOpen");e.builder(n(i+o)+"{",r,"start");let a=r.nodes&&r.nodes.length,l=()=>{let t=a?e.raw(r,"after"):e.raw(r,"after","emptyBody");t&&e.builder(n(t)),e.builder("}",r,"end"),"rule"===r.type&&r.raws.ownSemicolon&&e.builder(n(r.raws.ownSemicolon),r,"end")};a?(t.push(l),s(e,t,r)):l()}class a{constructor(e){this.builder=e}atrule(e,t){let r=i(this,e);if(e.nodes)this.block(e,r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n(r+i),e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(n(t+i)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(n(r)),this.builder("}",e,"end")}body(e){let t=a.prototype,r=["atrule","block","body","rule","stringify"].every(e=>this[e]===t[e]),l=[];for(s(this,l,e);l.length>0;){let e=l.pop();if("function"==typeof e){e();continue}let t=e.node,s=this.raw(t,"before");s&&this.builder(e.document?s:n(s)),r&&"rule"===t.type?o(this,l,t,this.rawValue(t,"selector")):r&&"atrule"===t.type&&t.nodes?o(this,l,t,i(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(n("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=r.important||" !important"),t&&(s+=";"),this.builder(n(s),e)}document(e){this.body(e)}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],void 0!==i))return i;let s=e.parent;if("before"===n){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return r[n];let o=e.root(),a=o.rawCache||(o.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[r]?i=this[r](o,e):o.walk(e=>{if(i=e.raws[t],void 0!==i)return!1})}var l;return void 0===i&&(i=r[n]),a[n]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&"document"===e.parent.type;this.builder(r?t:n(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(n(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return IK=a,a.default=a,IK}function NK(){if(OK)return PK;OK=1;let e=MK();function t(t,n){new e(n).stringify(t)}return PK=t,t.default=t,PK}var jK,UK,$K,BK,FK,qK,VK,HK,zK,GK,KK,WK,XK,YK,ZK,JK,QK,eW={};function tW(){return jK||(jK=1,eW.isClean=Symbol("isClean"),eW.my=Symbol("my")),eW}function nW(){if($K)return UK;$K=1;let e=RK(),t=MK(),n=NK(),{isClean:r,my:i}=tW();function s(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let s=0;s<e.length;s++){if(r===t.line&&n===t.column){i=s;break}"\n"===e[s]?(n=1,r+=1):n+=1}return i}class o{get proxyOf(){return this}constructor(e={}){this.raws={},this[r]=!1,this[i]=!0;for(let t of Object.keys(e))if("__proto__"!==t)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone&&n.parent?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function(e,t){let n=new e.constructor,r=[[e,n,t]];for(;r.length>0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;if("proxyCache"===i)continue;let s=e[i],o=typeof s;if("parent"===i&&"object"===o)n&&(t[i]=n);else if("source"===i)t[i]=s;else if(Array.isArray(s)){let e=[];t[i]=e;for(let n of s){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if("object"===o&&null!==s){let e=new s.constructor;r.push([s,e,void 0]),s=e}t[i]=s}}}return n}(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,n={}){if(this.source){let{end:e,start:r}=this.rangeBy(n);return this.source.input.error(t,{column:r.column,line:r.line},{column:e.column,line:e.line},n)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:s(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(s(t,this.source.start),s(t,this.source.end)).indexOf(e.word);-1!==r&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=s(r,this.source.start),o=i+e;for(let s=i;s<o;s++)"\n"===r[s]?(t=1,n+=1):t+=1;return{column:t,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:s(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:s(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(s(t,this.source.start),s(t,this.source.end)).indexOf(e.word);-1!==i&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:s(t,e.start)}:"number"==typeof e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:s(t,e.end)}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):"number"==typeof e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,n){return(new t).raw(this,e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n=null==t;t=t||new Map;let r=[],i=[[this,r,0]];for(let a=0;a<i.length;a++){let[e,n,r]=i[a],s={};n[r]=s;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if("parent"===a||"proxyCache"===a)continue;let n=e[a];if(Array.isArray(n)){let e=[];s[a]=e;for(let r=0;r<n.length;r++){let s=n[r];"object"==typeof s&&s.toJSON?s.toJSON===o.prototype.toJSON?i.push([s,e,r]):e[r]=s.toJSON(null,t):e[r]=s}}else if("object"==typeof n&&n.toJSON)n.toJSON===o.prototype.toJSON?i.push([n,s,a]):s[a]=n.toJSON(null,t);else if("source"===a){if(null==n)continue;let e=t.get(n.input);null==e&&(e=t.size,t.set(n.input,e)),s[a]={end:n.end,inputId:e,start:n.start}}else s[a]=n}}let s=r[0];return n&&(s.inputs=[...t.keys()].map(e=>e.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let i in n)r[i]=n[i];return e.warn(t,r)}}return UK=o,o.default=o,UK}function rW(){if(FK)return BK;FK=1;let e=nW();class t extends e{constructor(e){super(e),this.type="comment"}}return BK=t,t.default=t,BK}function iW(){if(VK)return qK;VK=1;let e=nW();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}return qK=t,t.default=t,qK}function sW(){if(zK)return HK;zK=1;let e,t,n,r,i=rW(),s=iW(),o=nW(),{isClean:a,my:l}=tW();class c extends o{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let n=t.pop();if(n===this||n.cleanRaws===c.prototype.cleanRaws){if(o.prototype.cleanRaws.call(n,e),n.nodes)for(let e of n.nodes)t.push(e)}else n.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>
767e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);for(let s in this.indexes)n=this.indexes[s],r<n&&(this.indexes[s]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r,0,o);for(let o in this.indexes)n=this.indexes[o],r<=n&&(this.indexes[o]=n+s.length);return this.markDirty(),this}normalize(n,o){if("string"==typeof n)n=function(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}(t(n).nodes);else if(void 0===n)n=[];else if(Array.isArray(n)){n=n.slice(0);for(let e of n)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===n.type&&"document"!==this.type){n=n.nodes.slice(0);for(let e of n)e.parent&&e.parent.removeChild(e,"ignore")}else if(n.type)n=[n];else if(n.prop){if(void 0===n.value)throw new Error("Value field is missed in node creation");"string"!=typeof n.value&&(n.value=String(n.value)),n=[new s(n)]}else if(n.selector||n.selectors)n=[new r(n)];else if(n.name)n=[new e(n)];else{if(!n.text)throw new Error("Unknown node type in node creation");n=[new i(n)]}let u=n.map(e=>(e[l]||c.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&function(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}(e),e.raws||(e.raws={}),void 0===e.raws.before&&o&&void 0!==o.raws.before&&(e.raws.before=o.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e));return u}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let s,o=r.proxyOf.nodes[i];try{s=e(o,i)}catch(CL){throw o.addToError(CL)}if(!1===s){for(let e of t)delete e.node.indexes[e.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}}return c.registerParse=e=>{t=e},c.registerRule=e=>{r=e},c.registerAtRule=t=>{e=t},c.registerRoot=e=>{n=e},HK=c,c.default=c,c.rebuild=t=>{let o=[t];for(;o.length>0;){let t=o.pop();if("atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,r.prototype):"decl"===t.type?Object.setPrototypeOf(t,s.prototype):"comment"===t.type?Object.setPrototypeOf(t,i.prototype):"root"===t.type&&Object.setPrototypeOf(t,n.prototype),t[l]=!0,t.nodes)for(let e of t.nodes)o.push(e)}},HK}function oW(){if(KK)return GK;KK=1;let e=sW();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return GK=t,t.default=t,e.registerAtRule(t),GK}function aW(){if(XK)return WK;XK=1;let e,t,n=sW();class r extends n{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},WK=r,r.default=r,WK}function lW(){if(ZK)return YK;ZK=1;return YK={nanoid:(e=21)=>{let t="",n=0|e;for(;n-- >0;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i-- >0;)r+=e[Math.random()*e.length|0];return r}},YK}function cW(){if(QK)return JK;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}QK=1;var n={resolve:function(){for(var n,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===n&&(n=Sl.cwd()),o=n),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCo
767deAt(0))}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(n){if(e(n),0===n.length)return".";var r=47===n.charCodeAt(0),i=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!r)).length||r||(n="."),n.length>0&&i&&(n+="/"),r?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var s=t.length,o=s-i,a=1;a<r.length&&47===r.charCodeAt(a);++a);for(var l=r.length-a,c=o<l?o:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===r.charCodeAt(a+d))return r.slice(a+d+1);if(0===d)return r.slice(a+d)}else o>c&&(47===t.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var h=t.charCodeAt(i+d);if(h!==r.charCodeAt(a+d))break;47===h&&(u=d)}var p="";for(d=i+u+1;d<=s;++d)d!==s&&47!==t.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(a+u):(a+=u,47===r.charCodeAt(a)&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,s=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,l=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1===--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=t.length),t.slice(i,s)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":t.slice(i,s)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,u=t.length-1,d=0;u>=r;--u)if(47!==(i=t.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=u+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?t.slice(1,l):t.slice(a,l)):(0===a&&s?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(a,o),n.base=t.slice(a,l)),n.ext=t.slice(o,l)),a>0?n.dir=t.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,JK=n}var uW,dW,hW,pW,fW,mW,_W,gW,yW,vW,bW,wW,kW,CW,TW,SW,xW,EW,IW,AW,PW,OW,LW,DW,RW,MW,NW,jW,UW,$W,BW,FW,qW,VW,HW,zW,GW,KW,WW,XW,YW,ZW,JW,QW,eX,tX,nX,rX,iX,sX,oX,aX,lX,cX,uX,dX,hX,pX,fX,mX,_X,gX,yX,vX,bX,wX,kX,CX,TX,SX,xX,EX,IX,AX,PX,OX,LX,DX,RX,MX,NX,jX,UX,$X,BX,FX,qX,VX,HX,zX,GX,KX,WX={exports:{}},XX={exports:{}},YX=XX.exports;function ZX(){return hW?dW:(hW=1,dW=TypeError)}function JX(){if(fW)return pW;fW=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&"function"==typeof t.get?t.get:null,r=e&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=i&&s&&"function"==typeof s.get?s.get:null,a=i&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,p=Function.prototype.toString,f=String.prototype.match,m=String.prototype.slice,_=String.prototype.replace,g=String.prototype.toUpperCase,y=String.prototype.toLowerCase,v=RegExp.prototype.test,b=Array.prototype.concat,w=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E||"symbol")?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||v.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var i=String(r),s=m.call(t,i.length+1);return _.call(i,n,"$&_")+"."+_.call(_.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var L=_E,D=L.custom,R=q(D)?D:null,M={__proto__:null,double:'"',single:"'"},N={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,n){var r=n.quoteStyle||t,i=M[r];return i+e+i}function U(e){return _.call(String(e),/"/g,""")}function $(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function B(e){return"[object Array]"===z(e)&&$(e)}function F(e){return"[object RegExp]"===z(e)&&$(e)}function q(e){if(E)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
vendor: 7,451 bytes, line 767
767if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(CL){}return!1}pW=function e(t,i,s,h){var g=i||{};if(H(g,"quoteStyle")&&!H(M,g.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!H(g,"customInspect")||g.customInspect;if("boolean"!=typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var C=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return C?O(t,S):S}if("bigint"==typeof t){var D=String(t)+"n";return C?O(t,D):D}var N=void 0===g.depth?5:g.depth;if(void 0===s&&(s=0),s>=N&&N>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var V=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=w.call(Array(e.indent+1)," ")}return{base:n,prev:w.call(Array(t+1),n)}}(g,s);if(void 0===h)h=[];else if(G(h,t)>=0)return"[Circular]";function W(t,n,r){if(n&&(h=k.call(h)).push(n),r){var i={depth:g.depth};return H(g,"quoteStyle")&&(i.quoteStyle=g.quoteStyle),e(t,i,s+1,h)}return e(t,g,s+1,h)}if("function"==typeof t&&!F(t)){var ee=function(e){if(e.name)return e.name;var t=f.call(p.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),te=Q(t,W);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+w.call(te,", ")+" }":"")}if(q(t)){var ne=E?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||E?ne:X(ne)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+y.call(String(t.nodeName)),ie=t.attributes||[],se=0;se<ie.length;se++)re+=" "+ie[se].name+"="+j(U(ie[se].value),"double",g);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+y.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var oe=Q(t,W);return V&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+J(oe,V)+"]":"[ "+w.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===z(e)&&$(e)}(t)){var ae=Q(t,W);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(ae,", ")+" }":"{ ["+String(t)+"] "+w.call(b.call("[cause]: "+W(t.cause),ae),", ")+" }"}if("object"==typeof t&&v){if(R&&"function"==typeof t[R]&&L)return L(t,{depth:N-s});if("symbol"!==v&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!n||!e||"object"!=typeof e)return!1;try{n.call(e);try{o.call(e)}catch(re){return!0}return e instanceof Map}catch(CL){}return!1}(t)){var le=[];return r&&r.call(t,function(e,n){le.push(W(n,t,!0)+" => "+W(e,t))}),Z("Map",n.call(t),le,V)}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{n.call(e)}catch(t){return!0}return e instanceof Set}catch(CL){}return!1}(t)){var ce=[];return a&&a.call(t,function(e){ce.push(W(e,t))}),Z("Set",o.call(t),ce,V)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{c.call(e,c)}catch(re){return!0}return e instanceof WeakMap}catch(CL){}return!1}(t))return Y("WeakMap");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{l.call(e,l)}catch(re){return!0}return e instanceof WeakSet}catch(CL){}return!1}(t))return Y("WeakSet");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{return u.call(e),!0}catch(CL){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===z(e)&&$(e)}(t))return X(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(CL){}return!1}(t))return X(W(T.call(t)));if(function(e){return"[object Boolean]"===z(e)&&$(e)}(t))return X(d.call(t));if(function(e){return"[object String]"===z(e)&&$(e)}(t))return X(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Wa&&t===Wa)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===z(e)&&$(e)}(t)&&!F(t)){var ue=Q(t,W),de=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?m.call(z(t),8,-1):he?"Object":"",fe=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||he?"["+w.call(b.call([],pe||[],he||[]),": ")+"] ":"");return 0===ue.length?fe+"{}":V?fe+"{"+J(ue,V)+"}":fe+"{ "+w.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function z(e){return h.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(m.call(e,0,t.maxStringLength),t)+r}var i=N[t.quoteStyle||"single"];return i.lastIndex=0,j(_.call(_.call(e,i,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function X(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Z(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):w.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+w.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=H(e,i)?t(e[i],e):""}var s,o="function"==typeof S?S(e):[];if(E){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||E&&s["$"+l]instanceof Symbol||(v.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof S)for(var c=0;c<o.length;c++)A.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}return pW}function QX(){if(_W)return mW;_W=1;var e=JX(),t=ZX(),n=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r};return mW=function(){var r,i={assert:function(n){if(!i.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=function(e,t){if(e)return n(e,t,!0)}(r,e);return t&&r&&!r.next&&(r=void 0),!!t},get:function(e){return function(e,t){if(e){var r=n(e,t);return r&&r.value}}(r,e)},has:function(e){return function(e,t){return!!e&&!!n(e,t)}(r,e)},set:function(e,t){r||(r={next:void 0}),function(e,t,r){var i=n(e,t);i?i.value=r:e.next={key:t,next:e.next,value:r}}(r,e,t)}};return i}}function eY(){return yW?gW:(yW=1,gW=Object)}function tY(){return bW?vW:(bW=1,vW=Error)}function nY(){return kW?wW:(kW=1,wW=EvalError)}
vendor: 6,281 bytes, line 767
767function rY(){return TW?CW:(TW=1,CW=RangeError)}function iY(){return xW?SW:(xW=1,SW=ReferenceError)}function sY(){return IW?EW:(IW=1,EW=SyntaxError)}function oY(){return PW?AW:(PW=1,AW=URIError)}function aY(){return LW?OW:(LW=1,OW=Math.abs)}function lY(){return RW?DW:(RW=1,DW=Math.floor)}function cY(){return NW?MW:(NW=1,MW=Math.max)}function uY(){return UW?jW:(UW=1,jW=Math.min)}function dY(){return BW?$W:(BW=1,$W=Math.pow)}function hY(){return qW?FW:(qW=1,FW=Math.round)}function pY(){return HW||(HW=1,VW=Number.isNaN||function(e){return e!=e}),VW}function fY(){if(GW)return zW;GW=1;var e=pY();return zW=function(t){return e(t)||0===t?t:t<0?-1:1}}function mY(){return WW?KW:(WW=1,KW=Object.getOwnPropertyDescriptor)}function _Y(){if(YW)return XW;YW=1;var e=mY();if(e)try{e([],"length")}catch(CL){e=null}return XW=e}function gY(){if(JW)return ZW;JW=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(CL){e=!1}return ZW=e}function yY(){return eX?QW:(eX=1,QW=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0})}function vY(){return iX?rX:(iX=1,rX="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function bY(){return oX?sX:(oX=1,sX=eY().getPrototypeOf||null)}function wY(){if(uX)return cX;uX=1;var e=function(){if(lX)return aX;lX=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};return aX=function(r){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,o=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=t(0,i.length-o.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(s=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var e=i.apply(this,n(o,arguments));return Object(e)===e?e:this}return i.apply(r,n(o,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,s.prototype=new u,u.prototype=null}return s},aX}();return cX=Function.prototype.bind||e}function kY(){return hX?dX:(hX=1,dX=Function.prototype.call)}function CY(){return fX?pX:(fX=1,pX=Function.prototype.apply)}function TY(){if(yX)return gX;yX=1;var e=wY(),t=CY(),n=kY(),r=_X?mX:(_X=1,mX="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return gX=r||e.call(n,t)}function SY(){if(bX)return vX;bX=1;var e=wY(),t=ZX(),n=kY(),r=TY();return vX=function(i){if(i.length<1||"function"!=typeof i[0])throw new t("a function is required");return r(e,n,i)}}function xY(){if(kX)return wX;kX=1;var e,t=SY(),n=_Y();try{e=[].__proto__===Array.prototype}catch(CL){if(!CL||"object"!=typeof CL||!("code"in CL)||"ERR_PROTO_ACCESS"!==CL.code)throw CL}var r=!!e&&n&&n(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return wX=r&&"function"==typeof r.get?t([r.get]):"function"==typeof s&&function(e){return s(null==e?e:i(e))}}function EY(){if(TX)return CX;TX=1;var e=vY(),t=bY(),n=xY();return CX=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}function IY(){if(xX)return SX;xX=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=wY();return SX=n.call(e,t)}function AY(){if(IX)return EX;var e;IX=1;var t=eY(),n=tY(),r=nY(),i=rY(),s=iY(),o=sY(),a=ZX(),l=oY(),c=aY(),u=lY(),d=cY(),h=uY(),p=dY(),f=hY(),m=fY(),_=Function,g=function(e){try{return _('"use strict"; return ('+e+").constructor;")()}catch(CL){}},y=_Y(),v=gY(),b=function(){throw new a},w=y?function(){try{return b}catch(e){try{return y(arguments,"callee").get}catch(t){return b}}}():b,k=function(){if(nX)return tX;nX=1;var e="undefined"!=typeof Symbol&&Symbol,t=yY();return tX=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),C=EY(),T=bY(),S=vY(),x=CY(),E=kY(),I={},A="undefined"!=typeof Uint8Array&&C?C(Uint8Array):e,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
767IteratorPrototype%":k&&C?C(C([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&C?C((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&C?C((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":w,"%TypedArray%":A,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":x,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":T,"%Math.abs%":c,"%Math.floor%":u,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":p,"%Math.round%":f,"%Math.sign%":m,"%Reflect.getPrototypeOf%":S};if(C)try{null.error}catch(CL){var O=C(C(CL));P["%Error.prototype%"]=O}var L=function e(t){var n;if("%AsyncFunction%"===t)n=g("async function () {}");else if("%GeneratorFunction%"===t)n=g("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=g("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&C&&(n=C(i.prototype))}return P[t]=n,n},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=wY(),M=IY(),N=R.call(E,Array.prototype.concat),j=R.call(x,Array.prototype.splice),U=R.call(E,String.prototype.replace),$=R.c
vendor: 5,449 bytes, line 767
767all(E,String.prototype.slice),B=R.call(E,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,V=function(e,t){var n,r=e;if(M(D,r)&&(r="%"+(n=D[r])[0]+"%"),M(P,r)){var i=P[r];if(i===I&&(i=L(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};return EX=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=$(e,0,1),n=$(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,F,function(e,t,n,i){r[r.length]=n?U(i,q,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=V("%"+r+"%",t),s=i.name,l=i.value,c=!1,u=i.alias;u&&(r=u[0],j(n,N([0,1],u)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],f=$(p,0,1),m=$(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&h||(c=!0),M(P,s="%"+(r+="."+p)+"%"))l=P[s];else if(null!=l){if(!(p in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&d+1>=n.length){var _=y(l,p);l=(h=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:l[p]}else h=M(l,p),l=l[p];h&&!c&&(P[s]=l)}}return l},EX}function PY(){if(PX)return AX;PX=1;var e=AY(),t=SY(),n=t([e("%String.prototype.indexOf%")]);return AX=function(r,i){var s=e(r,!!i);return"function"==typeof s&&n(r,".prototype.")>-1?t([s]):s}}function OY(){if(LX)return OX;LX=1;var e=AY(),t=PY(),n=JX(),r=ZX(),i=e("%Map%",!0),s=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),a=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),c=t("Map.prototype.size",!0);return OX=!!i&&function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=l(e,t);return 0===c(e)&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&a(e,t)},set:function(t,n){e||(e=new i),o(e,t,n)}};return t}}function LY(){if(NX)return MX;NX=1;var e=ZX(),t=JX(),n=QX(),r=OY(),i=function(){if(RX)return DX;RX=1;var e=AY(),t=PY(),n=JX(),r=OY(),i=ZX(),s=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),a=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),c=t("WeakMap.prototype.delete",!0);return DX=s?function(){var e,t,u={assert:function(e){if(!u.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(r&&t)return t.delete(n);return!1},get:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?o(e,n):t&&t.get(n)},has:function(n){return s&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):!!t&&t.has(n)},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),a(e,n,i)):r&&(t||(t=r()),t.set(n,i))}};return u}:r}(),s=i||r||n;return MX=function(){var n,r={assert:function(n){if(!r.has(n)){var i=n&&Object(n)===n?"the given object key":t(n);throw new e("Side channel does not contain "+i)}},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=s()),n.set(e,t)}};return r}}function DY(){if(UX)return jX;UX=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return jX={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function RY(){if(BX)return $X;BX=1;var e=DY(),t=LY(),n=gY(),r=Object.prototype.hasOwnProperty,i=Array.isArray,s=t(),o=function(e,t){return s.set(e,t),e},a=function(e){return s.has(e)},l=function(e){return s.get(e)},c=function(e,t){s.set(e,t)},u=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),d=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},h=function(e,t,r){"__proto__"===t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},p=1024;return $X={arrayToObject:d,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},combine:function(e,t,n,r,i){if(a(e)){if(i)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");var s=l(e)+1;return e[s]=t,c(e,s),e}var u=[].concat(e,t);if(u.length>n){if(i)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");return o(d(u,{plainObjects:r}),u.length-1)}return u},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],r=t(),s=0;s<n.length;++s)for(var o=n[s],a=o.obj[o.prop],l=Object.keys(a),c=0;c<l.length;++c){var u=l[c],d=a[u];"object"!=typeof d||null===d||r.has(d)||(n[n.length]={obj:a,prop:u},r.set(d,!0))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],s=0;s<n.length;++s)void 0!==n[s]&&(r[r.length]=n[s]);t.obj[t.prop]=r}}}(n),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");
vendor: 9,699 bytes, line 767
767if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(CL){return r}},encode:function(t,n,r,i,s){if(0===t.length)return t;var o=t;if("symbol"==typeof t?o=Symbol.prototype.toString.call(t):"string"!=typeof t&&(o=String(t)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",l=0;l<o.length;l+=p){var c=o.length>=p?o.slice(l,l+p):o;if(l+p<o.length){var d=c.charCodeAt(c.length-1);d>=55296&&d<=56319&&(c=c.slice(0,-1),l-=1)}for(var h=[],f=0;f<c.length;++f){var m=c.charCodeAt(f);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===e.RFC1738&&(40===m||41===m)?h[h.length]=c.charAt(f):m<128?h[h.length]=u[m]:m<2048?h[h.length]=u[192|m>>6]+u[128|63&m]:m<55296||m>=57344?h[h.length]=u[224|m>>12]+u[128|m>>6&63]+u[128|63&m]:(f+=1,m=65536+((1023&m)<<10|1023&c.charCodeAt(f)),h[h.length]=u[240|m>>18]+u[128|m>>12&63]+u[128|m>>6&63]+u[128|63&m])}a+=h.join("")}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:a,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:o,maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(i(t)){var u=t.length;if(s&&"number"==typeof s.arrayLimit&&u>=s.arrayLimit){if(s.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+s.arrayLimit+" element"+(1===s.arrayLimit?"":"s")+" allowed in an array.");return o(d(t.concat(n),s),u)}t[u]=n}else{if(!t||"object"!=typeof t)return[t,n];if(a(t)){var p=l(t)+1;t[p]=n,c(t,p)}else{if(s&&s.strictMerge)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(a(n)){for(var f=Object.keys(n),m=s&&s.plainObjects?{__proto__:null,0:t}:{0:t},_=0;_<f.length;_++){m[parseInt(f[_],10)+1]=n[f[_]]}return o(m,l(n)+1)}var g=[t].concat(n);if(s&&"number"==typeof s.arrayLimit&&g.length>s.arrayLimit){if(s.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+s.arrayLimit+" element"+(1===s.arrayLimit?"":"s")+" allowed in an array.");return o(d(g,s),g.length-1)}return g}var y=t;if(i(t)&&!i(n)&&(y=d(t,s)),i(t)&&i(n)){if(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&"object"==typeof o&&n&&"object"==typeof n?t[i]=e(o,n,s):t[t.length]=n}else t[i]=n}),s&&"number"==typeof s.arrayLimit&&t.length>s.arrayLimit){if(s.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+s.arrayLimit+" element"+(1===s.arrayLimit?"":"s")+" allowed in an array.");return o(d(t,s),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var u=n[i];if(r.call(t,i)?h(t,i,e(t[i],u,s)):h(t,i,u),a(n)&&!a(t)&&o(t,l(n)),a(t)){var d=parseInt(i,10);String(d)===i&&d>=0&&d>l(t)&&c(t,d)}return t},y)}},$X}function MY(){if(qX)return FX;qX=1;var e=LY(),t=RY(),n=DY(),r=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,o=Array.prototype.push,a=function(e,t){o.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,c=n.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:n.formatters[c],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function n(r,i,o,l,c,h,p,f,m,_,g,y,v,b,w,k,C,T){for(var S,x=r,E=T,I=0,A=!1;void 0!==(E=E.get(d))&&!A;){var P=E.get(r);if(I+=1,void 0!==P){if(P===I)throw new RangeError("Cyclic object value");A=!0}void 0===E.get(d)&&(I=0)}if("function"==typeof _?x=_(i,x):x instanceof Date?x=v(x):"comma"===o&&s(x)&&(x=t.maybeMap(x,function(e){return e instanceof Date?v(e):e})),null===x){if(h)return w(m&&!k?m(i,u.encoder,C,"key",b):i);x=""}if("string"==typeof(S=x)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||t.isBuffer(x))return m?[w(k?i:m(i,u.encoder,C,"key",b))+"="+w(m(x,u.encoder,C,"value",b))]:[w(i)+"="+w(String(x))];var O,L=[];if(void 0===x)return L;if("comma"===o&&s(x))k&&m&&(x=t.maybeMap(x,function(e){return null==e?e:m(e)})),O=[{value:x.length>0?x.join(",")||null:void 0}];else if(s(_))O=_;else{var D=Object.keys(x);O=g?D.sort(g):D}var R=f?String(i).replace(/\./g,"%2E"):String(i),M=l&&s(x)&&1===x.length?R+"[]":R;if(c&&s(x)&&0===x.length)return M+"[]";for(var N=0;N<O.length;++N){var j=O[N],U="object"==typeof j&&j&&void 0!==j.value?j.value:x[j];if(!p||null!==U){var $=y&&f?String(j).replace(/\./g,"%2E"):String(j),B=s(x)?"function"==typeof o?o(M,$):M:M+(y?"."+$:"["+$+"]");T.set(r,I);var F=e();F.set(d,T),a(L,n(U,B,o,l,c,h,p,f,"comma"===o&&k&&s(x)?null:m,_,g,y,v,b,w,k,C,F))}}return L};return FX=function(t,o){var l,c=t,d=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=n.default;if(void 0!==e.format){if(!r.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var a,l=n.formatters[o],c=u.filter;if(("function"==typeof e.filter||s(e.filter))&&(c=e.filter),a=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:c,format:o,formatter:l,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(o);"function"==typeof d.filter?c=(0,d.filter)("",c):s(d.filter)&&(l=d.filter);var p=[];if("object"!=typeof c||null===c)return"";var f=i[d.arrayFormat],m="comma"===f&&d.commaRoundTrip;l||(l=Object.keys(c)),d.sort&&l.sort(d.sort);for(var _=e(),g=0;g<l.length;++g){var y=l[g];if(null!=y){var v=c[y];d.skipNulls&&null===v||a(p,h(v,y,f,m,d.allowEmptyArrays,d.strictNullHandling,d.skipNulls,d.encodeDotInKeys,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,_))}}var b=p.join(d.delimiter),w=!0===d.addQueryPrefix?"?":"";return d.charsetSentinel&&("iso-8859-1"===d.charset?w+="utf8=%26%2310003%3B"+d.delimiter:w+="utf8=%E2%9C%93"+d.delimiter),b.length>0?w+b:""},FX}function NY(){if(HX)return VX;HX=1;var e=RY(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(r&&t.throwOnLimitExceeded)for(var i=0,s=e.indexOf(",");s>-1;){if((i+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");s=e.indexOf(",",s+1)}return e.split(",")}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},o=function(n,r,i,o){if(n){var a=function(e,n){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(n.depth<=0){if(!n.plainObjects&&t.call(Object.prototype,r)&&!n.allowPrototypes)return;return[r]}var i=[],s=r.indexOf("["),o=s>=0?r.slice(0,s):r;if(o){if(!n.plainObjects&&t.call(Object.prototype,o)&&!n.allowPrototypes)return;i[i.length]=o}for(var a=r.length,l=s,c=0;l>=0&&c<n.depth;){for(var u=1,d=l+1,h=-1;d<a&&h<0;){var p=r.charCodeAt(d);91===p?u+=1:93===p&&0==(u-=1)&&(h=d),d+=1}if(h<0)return i[i.length]="["+r.slice(l)+"]",i;var f=r.slice(l,h+1),m=f.slice(1,-1);if(!n.plainObjects&&t.call(Object.prototype,m)&&!n.allowPrototypes)return;
vendor: 5,521 bytes, line 767
767i[i.length]=f,c+=1,l=r.indexOf("[",h+1)}if(l>=0){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i}(n,i);if(a)return function(t,n,r,i){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");o=Array.isArray(n)&&n[a]?n[a].length:0}for(var l=i?n:s(n,r,o),c=t.length-1;c>=0;--c){var u,d=t[c];if("[]"===d&&r.parseArrays)u=e.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:e.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,f=parseInt(p,10),m=!isNaN(f)&&d!==p&&String(f)===p&&f>=0&&r.parseArrays;if(r.parseArrays||""!==p)if(m&&f<r.arrayLimit)(u=[])[f]=l;else{if(m&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");m?(u[f]=l,e.markOverflow(u,f)):"__proto__"!==p&&(u[p]=l)}else u={0:l}}l=u}return l}(a,r,i,o)}};return VX=function(a,l){var c=function(t){if(!t)return r;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=void 0===t.charset?r.charset:t.charset,i=void 0===t.duplicates?r.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||r.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:r.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:r.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:r.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:r.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:r.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:r.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:r.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:r.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:r.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(l);if(""===a||null==a)return c.plainObjects?{__proto__:null}:{};for(var u="string"==typeof a?function(o,a){var l={__proto__:null},c=a.ignoreQueryPrefix?o.replace(/^\?/,""):o;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=a.parameterLimit===1/0?void 0:a.parameterLimit,d=c.split(a.delimiter,a.throwOnLimitExceeded&&void 0!==u?u+1:u);if(a.throwOnLimitExceeded&&void 0!==u&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var h,p=-1,f=a.charset;if(a.charsetSentinel)for(h=0;h<d.length;++h)0===d[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[h]?f="utf-8":"utf8=%26%2310003%3B"===d[h]&&(f="iso-8859-1"),p=h,h=d.length);for(h=0;h<d.length;++h)if(h!==p){var m,_,g=d[h],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(m=a.decoder(g,r.decoder,f,"key"),_=a.strictNullHandling?null:""):null!==(m=a.decoder(g.slice(0,v),r.decoder,f,"key"))&&(_=e.maybeMap(s(g.slice(v+1),a,n(l[m])?l[m].length:0,-1===g.indexOf("[]=")),function(e){return a.decoder(e,r.decoder,f,"value")})),_&&a.interpretNumericEntities&&"iso-8859-1"===f&&(_=i(String(_))),g.indexOf("[]=")>-1&&(_=n(_)?[_]:_),a.comma&&n(_)&&_.length>a.arrayLimit&&(_=e.combine([],_,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded)),null!==m){var b=t.call(l,m);b&&("combine"===a.duplicates||g.indexOf("[]=")>-1)?l[m]=e.combine(l[m],_,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded):b&&"last"!==a.duplicates||(l[m]=_)}}return l}(a,c):a,d=c.plainObjects?{__proto__:null}:{},h=Object.keys(u),p=0;p<h.length;++p){var f=h[p],m=o(f,u[f],c,"string"==typeof a);d=e.merge(d,m,c)}return!0===c.allowSparse?d:e.compact(d)},VX}function jY(){if(GX)return zX;GX=1;var e=MY(),t=NY();return zX={formats:DY(),parse:t,stringify:e}}function UY(){return KX||(KX=1,function(e,t){Object.defineProperty(t,"__esMo
767dule",{value:!0});var n=(uW||(uW=1,function(e,t){!function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,s="object"==typeof Wa&&Wa;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var o,a,l=2147483647,c=36,u=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function _(e){throw new RangeError(p[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(h,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],i=0,s=e.length;i<s;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<s?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)}).join("")}function w(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=c)e=f(e/35);return f(r+36*e/(e+38))}function T(e){var t,n,r,i,s,o,a,u,d,h,p=[],m=e.length,g=0,y=128,v=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),p.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(s=g,o=1,a=c;i>=m&&_("invalid-input"),((u=w(e.charCodeAt(i++)))>=c||u>f((l-g)/o))&&_("overflow"),g+=u*o,!(u<(d=a<=v?1:a>=v+26?26:a-v));a+=c)o>f(l/(h=c-d))&&_("overflow"),o*=h;v=C(g-s,t=p.length+1,0==s),f(g/t)>l-y&&_("overflow"),y+=f(g/t),g%=t,p.splice(g++,0,y)}return b(p)}function S(e){var t,n,r,i,s,o,a,u,d,h,p,g,y,b,w,T=[];for(g=(e=v(e)).length,t=128,n=0,s=72,o=0;o<g;++o)(p=e[o])<128&&T.push(m(p));for(r=i=T.length,i&&T.push("-");r<g;){for(a=l,o=0;o<g;++o)(p=e[o])>=t&&p<a&&(a=p);for(a-t>f((l-n)/(y=r+1))&&_("overflow"),n+=(a-t)*y,t=a,o=0;o<g;++o)if((p=e[o])<t&&++n>l&&_("overflow"),p==t){for(u=n,d=c;!(u<(h=d<=s?1:d>=s+26?26:d-s));d+=c)w=u-h,b=c-h,T.push(m(k(h+w%b,0))),u=f(w/b);T.push(m(k(u,0))),s=C(n,y,r==i),n=0,++r}++n,++t}return T.join("")}if(o={version:"1.4.1",ucs2:{decode:v,encode:b},decode:T,encode:S,toASCII:function(e){return y(e,function(e){return d.test(e)?"xn--"+S(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?T(e.slice(4).toLowerCase()):e})}},r&&i)if(e.exports==r)i.exports=o;else for(a in o)o.hasOwnProperty(a)&&(r[a]=o[a]);else n.punycode=o}(YX)}(XX,XX.exports)),XX.exports),r=jY();function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(n),o=i(r),a=s.default;function l(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var c=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(h),f=["%","/","?",";","#"].concat(p),m=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=o.default;function k(e,t,n){if(e&&"object"==typeof e&&e instanceof l)return e;var r=new l;return r.parse(e,t,n),r}l.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var o=e=s.join(i);if(o=o.trim(),!n&&1===e.split("#").length){var l=d.exec(o);if(l)return this.path=o,this.href=o,this.pathname=l[1],l[2]?(this.search=l[2],this.query=t?w.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=c.exec(o);if(u){var h=(u=u[0]).toLowerCase();this.protocol=h,o=o.substr(u.length)}if(n||u||o.match(/^\/\/[^@/]+@[^@/]+/)){var k="//"===o.substr(0,2);!k||u&&v[u]||(o=o.substr(2),this.slashes=!0)}if(!v[u]&&(k||u&&!b[u])){for(var C,T,S=-1,x=0;x<m.length;x++){-1!==(E=o.indexOf(m[x]))&&(-1===S||E<S)&&(S=E)}-1!==(T=-1===S?o.lastIndexOf("@"):o.lastIndexOf("@",S))&&(C=o.slice(0,T),o=o.slice(T+1),this.auth=decodeURIComponent(C)),S=-1;for(x=0;x<f.length;x++){var E;-1!==(E=o.indexOf(f[x]))&&(-1===S||E<S)&&(S=E)}-1===S&&(S=o.length),this.host=o.slice(0,S),o=o.slice(S),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var A=this.hostname.split(/\./),P=(x=0,A.length);x<P;x++){var O=A[x];if(O&&!O.match(_)){for(var L="",D=0,R=O.length;D<R;D++)O.charCodeAt(D)>127?L+="x":L+=O[D];if(!L.match(_)){var M=A.slice(0,x),N=A.slice(x+1),j=O.match(g);
767j&&(M.push(j[1]),N.unshift(j[2])),N.length&&(o="/"+N.join(".")+o),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=a.toASCII(this.hostname));var U=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!y[h])for(x=0,P=p.length;x<P;x++){var B=p[x];if(-1!==o.indexOf(B)){var F=encodeURIComponent(B);F===B&&(F=escape(B)),o=o.split(B).join(F)}}var q=o.indexOf("#");-1!==q&&(this.hash=o.substr(q),o=o.slice(0,q));var V=o.indexOf("?");if(-1!==V?(this.search=o.substr(V),this.query=o.substr(V+1),t&&(this.query=w.parse(this.query)),o=o.slice(0,V)):t&&(this.search="",this.query={}),o&&(this.pathname=o),b[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var H=this.search||"";this.path=U+H}return this.href=this.format(),this},l.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(s=w.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+r},l.prototype.resolve=function(e){return this.resolveObject(k(e,!1,!0)).format()},l.prototype.resolveObject=function(e){if("string"==typeof e){var t=new l;t.parse(e,!1,!0),e=t}for(var n=new l,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),a=0;a<o.length;a++){var c=o[a];"protocol"!==c&&(n[c]=e[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var h=u[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",m=n.search||"";n.path=f+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var _=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=g||_||n.host&&e.pathname,w=y,k=n.pathname&&n.pathname.split("/")||[],C=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),y=y&&(""===p[0]||""===k[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search){if(C)n.host=k.shift(),n.hostname=n.host,(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=k.slice(-1)[0],S=(n.host||e.host||k.length>1)&&("."===T||".."===T)||""===T,x=0,E=k.length;E>=0;E--)"."===(T=k[E])?k.splice(E,1):".."===T?(k.splice(E,1),x++):x&&(k.splice(E,1),x--);if(!y&&!w)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),S&&"/"!==k.join("/").substr(-1)&&k.push("");var I,A=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=A?"":k.length?k.shift():"",n.host=n.hostname,(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname));return(y=y||n.host&&k.length)&&!A&&k.unshift(""),k.length>0?n.pathname=k.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},l.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var C=k,T=function(e,t){return k(e,!1,!0).resolve(t)},S=function(e,t){return e?k(e,!1,!0).resolveObject(t):t},x=function(e){return"string"==typeof e&&(e=k(e)),e instanceof l?e.format():l.prototype.format.call(e)},E=l;var I=function(e){function t(){var t=this||self;return delete e.prototype.__magic__,t}return"object"==typeof globalThis?globalThis:this?t():(e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t}),__magic__)}(Object),A=x,P=C,O=T,L=E,D=I.URL,R=I.URLSearchParams,M=/%/g,N=/\\/g,j=/\n/g,U=/\r/g,$=/\t/g;var B=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new D("http://"+e).hostname},F=function(e){if(void 0===e)throw new TypeError('The "domain" argument must be specified');return new D("http://"+e).hostname},q=function(e){var t=new D("file://"),n=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return e=function(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(function(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}(e);return 47===e.charCodeAt(e.length-1)&&"/"!==n[n.length-1]&&(n+="/"),t.pathname=function(e){return e.includes("%")&&(e=e.replace(M,"%25")),e.includes("\\")&&(e=e.replace(N,"%5C")),e.includes("\n")&&(e=e.replace(j,"%0A")),e.includes("\r")&&(e=e.replace(U,"%0D")),e.includes("\t")&&(e=e.replace($,"%09")),e}(n),t},V=function(e){if(!function(e){var t=null!=e?e:null;return Boolean(null!==t&&(null==t?void 0:t.href)&&(null==t?void 0:t.origin))}(e)&&"string"!=typeof e)throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+" ("+e+")");var t=new D(e);if("file:"!==t.protocol)throw new TypeError("The URL must be of scheme file");return function(e){if(""!==e.hostname)throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if("%"===t[n]){var r=32|t.codePointAt(n+2);if("2"===t[n+1]&&102===r)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}(t)},H=function(e,t){var n,r,i;if(void 0===t&&(t={}),!(e instanceof D))return A(e);
767if("object"!=typeof t||null===t)throw new TypeError('The "options" argument must be of type object.');var s=null==(n=t.auth)||n,o=null==(r=t.fragment)||r,a=null==(i=t.search)||i;t.unicode;var l=new D(e.toString());return s||(l.username="",l.password=""),o||(l.hash=""),a||(l.search=""),l.toString()},z={format:H,parse:P,resolve:O,resolveObject:S,Url:L,URL:D,URLSearchParams:R,domainToASCII:B,domainToUnicode:F,pathToFileURL:q,fileURLToPath:V};t.URL=D,t.URLSearchParams=R,t.Url=L,t.default=z,t.domainToASCII=B,t.domainToUnicode=F,t.fileURLToPath=V,t.format=H,t.parse=P,t.pathToFileURL=q,t.resolve=O,t.resolveObject=S,t=e.exports=z}(WX,WX.exports)),WX.exports}var $Y,BY={exports:{}},FY=BY.exports;var qY,VY,HY,zY,GY,KY,WY,XY={};function YY(){if(WY)return XY;WY=1;var e=(VY||(VY=1,qY=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}),qY),t=function(){if(zY)return HY;function e(e){this.db=e,this._ended=!1,this._nexting=!1}return zY=1,e.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next(function(){t._nexting=!1,e.apply(null,arguments)}):void Sl.nextTick(function(){t._nexting=!1,e()}))},e.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void Sl.nextTick(e))},HY=e}(),n=function(){if(KY)return GY;function e(e){this._db=e,this._operations=[],this._written=!1}return KY=1,e.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},e.prototype.put=function(e,t){this._checkWritten();var n=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(n)throw n;if(n=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw n;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},e.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},e.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},e.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void Sl.nextTick(t)},GY=e}();function r(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}return r.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);Sl.nextTick(t)},r.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);Sl.nextTick(e)},r.prototype.get=function(e,t,n){var r;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("get() requires a callback argument");return(r=this._checkKeyValue(e,"key",this._isBuffer))?n(r):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,n):void Sl.nextTick(function(){n(new Error("NotFound"))}))},r.prototype.put=function(e,t,n,r){var i;if("function"==typeof n&&(r=n),"function"!=typeof r)throw new Error("put() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))||(i=this._checkKeyValue(t,"value",this._isBuffer))?r(i):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t),"object"!=typeof n&&(n={}),"function"==typeof this._put?this._put(e,t,n,r):void Sl.nextTick(r))},r.prototype.del=function(e,t,n){var r;if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("del() requires a callback argument");return(r=this._checkKeyValue(e,"key",this._isBuffer))?n(r):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,n):void Sl.nextTick(n))},r.prototype.batch=function(e,t,n){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(n=t),"function"!=typeof n)throw new Error("batch(array) requires a callback argument");
767if(!Array.isArray(e))return n(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var r,i,s=0,o=e.length;s<o;s++)if("object"==typeof(r=e[s])){if(i=this._checkKeyValue(r.type,"type",this._isBuffer))return n(i);if(i=this._checkKeyValue(r.key,"key",this._isBuffer))return n(i);if("put"==r.type&&(i=this._checkKeyValue(r.value,"value",this._isBuffer)))return n(i)}if("function"==typeof this._batch)return this._batch(e,t,n);Sl.nextTick(n)},r.prototype.approximateSize=function(e,t,n){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof n)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,n);Sl.nextTick(function(){n(null,0)})},r.prototype._setupIteratorOptions=function(t){var n=this;return t=e(t),["start","end","gt","gte","lt","lte"].forEach(function(e){t[e]&&n._isBuffer(t[e])&&0===t[e].length&&delete t[e]}),t.reverse=!!t.reverse,t.reverse&&t.lt&&(t.start=t.lt),t.reverse&&t.lte&&(t.start=t.lte),!t.reverse&&t.gt&&(t.start=t.gt),!t.reverse&&t.gte&&(t.start=t.gte),(t.reverse&&t.lt&&!t.lte||!t.reverse&&t.gt&&!t.gte)&&(t.exclusiveStart=!0),t},r.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new t(this)},r.prototype._chainedBatch=function(){return new n(this)},r.prototype._isBuffer=function(e){return lE.isBuffer(e)},r.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},XY.AbstractLevelDOWN=r,XY.AbstractIterator=t,XY.AbstractChainedBatch=n,XY}var ZY,JY,QY,eZ,tZ,nZ,rZ,iZ,sZ,oZ,aZ,lZ,cZ,uZ,dZ,hZ,pZ,fZ,mZ,_Z,gZ={},yZ={};function vZ(){if(JY)return ZY;JY=1;var e=yY();return ZY=function(){return e()&&!!Symbol.toStringTag}}function bZ(){if(eZ)return QY;eZ=1;var e=vZ()(),t=PY()("Object.prototype.toString"),n=function(n){return!(e&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===t(n)},r=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==t(e)&&"callee"in e&&"[object Function]"===t(e.callee)},i=function(){return n(arguments)}();return n.isLegacyArguments=r,QY=i?n:r}function wZ(){if(iZ)return rZ;iZ=1;var e=PY(),t=function(){if(nZ)return tZ;nZ=1;var e,t=PY(),n=vZ()(),r=IY(),i=_Y();if(n){var s=t("RegExp.prototype.exec"),o={},a=function(){throw o},l={toString:a,valueOf:a};"symbol"==typeof Symbol.toPrimitive&&(l[Symbol.toPrimitive]=a),e=function(e){if(!e||"object"!=typeof e)return!1;var t=i(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{s(e,l)}catch(CL){return CL===o}}}else{var c=t("Object.prototype.toString");e=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}}return tZ=e}(),n=e("RegExp.prototype.exec"),r=ZX();return rZ=function(e){if(!t(e))throw new r("`regex` must be a RegExp");return function(t){return null!==n(e,t)}}}function kZ(){if(oZ)return sZ;oZ=1;const e=function*(){}.constructor;return sZ=()=>e}function CZ(){if(hZ)return dZ;hZ=1;var e=function(){if(uZ)return cZ;uZ=1;var e,t,n=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},r(function(){throw 42},null,e)}catch(h){h!==t&&(r=null)}else r=null;var i=/^\s*class\b/,s=function(e){try{var t=n.call(e);return i.test(t)}catch(CL){return!1}},o=function(e){try{return!s(e)&&(n.call(e),!0)}catch(CL){return!1}},a=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;
767a.call(d)===a.call(document.all)&&(u=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=a.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(CL){}return!1})}return cZ=r?function(n){if(u(n))return!0;if(!n)return!1;if("function"!=typeof n&&"object"!=typeof n)return!1;try{r(n,null,e)}catch(CL){if(CL!==t)return!1}return!s(n)&&o(n)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return o(e);if(s(e))return!1;var t=a.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&o(e)},cZ}(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty;return dZ=function(r,i,s){if(!e(i))throw new TypeError("iterator must be a function");var o,a;arguments.length>=3&&(o=s),a=r,"[object Array]"===t.call(a)?function(e,t,r){for(var i=0,s=e.length;i<s;i++)n.call(e,i)&&(null==r?t(e[i],i,e):t.call(r,e[i],i,e))}(r,i,o):"string"==typeof r?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(r,i,o):function(e,t,r){for(var i in e)n.call(e,i)&&(null==r?t(e[i],i,e):t.call(r,e[i],i,e))}(r,i,o)},dZ}function TZ(){return fZ?pZ:(fZ=1,pZ=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function SZ(){if(_Z)return mZ;_Z=1;var e=TZ(),t="undefined"==typeof globalThis?Wa:globalThis;return mZ=function(){for(var n=[],r=0;r<e.length;r++)"function"==typeof t[e[r]]&&(n[n.length]=e[r]);return n},mZ}var xZ,EZ,IZ,AZ,PZ,OZ,LZ,DZ,RZ,MZ,NZ,jZ,UZ,$Z,BZ,FZ,qZ={exports:{}};function VZ(){if(EZ)return xZ;EZ=1;var e=gY(),t=sY(),n=ZX(),r=_Y();return xZ=function(i,s,o){if(!i||"object"!=typeof i&&"function"!=typeof i)throw new n("`obj` must be an object or a function`");if("string"!=typeof s&&"symbol"!=typeof s)throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new n("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!r&&r(i,s);if(e)e(i,s,{configurable:null===c&&d?d.configurable:!c,enumerable:null===a&&d?d.enumerable:!a,value:o,writable:null===l&&d?d.writable:!l});else{if(!u&&(a||l||c))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");i[s]=o}},xZ}function HZ(){if(AZ)return IZ;AZ=1;var e=gY(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(CL){return!0}},IZ=t}function zZ(){if(OZ)return PZ;OZ=1;var e=AY(),t=VZ(),n=HZ()(),r=_Y(),i=ZX(),s=e("%Math.floor%");return PZ=function(e,o){if("function"!=typeof e)throw new i("`fn` is not a function");if("number"!=typeof o||o<0||o>4294967295||s(o)!==o)throw new i("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],l=!0,c=!0;if("length"in e&&r){var u=r(e,"length");u&&!u.configurable&&(l=!1),u&&!u.writable&&(c=!1)}return(l||c||!a)&&(n?t(e,"length",o,!0,!0):t(e,"length",o)),e},PZ}function GZ(){return RZ||(RZ=1,function(e){var t=zZ(),n=gY(),r=SY(),i=function(){if(DZ)return LZ;DZ=1;var e=wY(),t=CY(),n=TY();return LZ=function(){return n(e,t,arguments)},LZ}();e.exports=function(e){var n=r(arguments),i=1+e.length-(arguments.length-1);return t(n,i>0?i:0,!0)},n?n(e.exports,"apply",{value:i}):e.exports.apply=i}(qZ)),qZ.exports}function KZ(){if(NZ)return MZ;NZ=1;var e=CZ(),t=SZ(),n=GZ(),r=PY(),i=_Y(),s=EY(),o=r("Object.prototype.toString"),a=vZ()(),l="undefined"==typeof globalThis?Wa:globalThis,c=t(),u=r("String.prototype.slice"),d=r("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},h={__proto__:null};return e(c,a&&i&&s?function(e){var t=new l[e];if(Symbol.toStringTag in t&&s){var r=s(t),o=i(r,Symbol.toStringTag);if(!o&&r){var a=s(r);o=i(a,Symbol.toStringTag)}if(o&&o.get){var c=n(o.get);h["$"+e]=c}}}:function(e){var t=new l[e],r=t.slice||t.set;if(r){var i=n(r);h["$"+e]=i}}),MZ=function(t){if(!t||"object"!=typeof t)return!1;if(!a){var n=u(o(t),8,-1);return function(e){return d(c,e)>-1}(n)?n:"Object"===n&&function(t){var n=!1;return e(h,function(e,r){if(!n)try{e(t),n=u(r,1)}catch(CL){}}),n}(t)}return i?function(t){var n=!1;return e(h,function(e,r){if(!n)try{"$"+e(t)===r&&(n=u(r,1))}catch(CL){}}),n}(t):null}}function WZ(){if(UZ)return jZ;UZ=1;var e=KZ();return jZ=function(t){return!!e(t)}}function XZ(){return $Z||($Z=1,function(e){var t=bZ(),n=function(){if(lZ)return aZ;lZ=1;var e=PY(),t=wZ()(/^\s*(?:function)?\*/),n=vZ()(),r=EY(),i=e("Object.prototype.toString"),s=e("Function.prototype.toString"),o=kZ();return aZ=function(e){if("function"!=typeof e)return!1;if(t(s(e)))return!0;
vendor: 11,220 bytes, line 767
767if(!n)return"[object GeneratorFunction]"===i(e);if(!r)return!1;var a=o();return a&&r(e)===a.prototype}}(),r=KZ(),i=WZ();function s(e){return e.call.bind(e)}var o="undefined"!=typeof BigInt,a="undefined"!=typeof Symbol,l=s(Object.prototype.toString),c=s(Number.prototype.valueOf),u=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(o)var h=s(BigInt.prototype.valueOf);if(a)var p=s(Symbol.prototype.valueOf);function f(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(CL){return!1}}function m(e){return"[object Map]"===l(e)}function _(e){return"[object Set]"===l(e)}function g(e){return"[object WeakMap]"===l(e)}function y(e){return"[object WeakSet]"===l(e)}function v(e){return"[object ArrayBuffer]"===l(e)}function b(e){return"undefined"!=typeof ArrayBuffer&&(v.working?v(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===l(e)}function k(e){return"undefined"!=typeof DataView&&(w.working?w(e):e instanceof DataView)}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i,e.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||k(e)},e.isUint8Array=function(e){return"Uint8Array"===r(e)},e.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===r(e)},e.isUint16Array=function(e){return"Uint16Array"===r(e)},e.isUint32Array=function(e){return"Uint32Array"===r(e)},e.isInt8Array=function(e){return"Int8Array"===r(e)},e.isInt16Array=function(e){return"Int16Array"===r(e)},e.isInt32Array=function(e){return"Int32Array"===r(e)},e.isFloat32Array=function(e){return"Float32Array"===r(e)},e.isFloat64Array=function(e){return"Float64Array"===r(e)},e.isBigInt64Array=function(e){return"BigInt64Array"===r(e)},e.isBigUint64Array=function(e){return"BigUint64Array"===r(e)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},_.working="undefined"!=typeof Set&&_(new Set),e.isSet=function(e){return"undefined"!=typeof Set&&(_.working?_(e):e instanceof Set)},g.working="undefined"!=typeof WeakMap&&g(new WeakMap),e.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(g.working?g(e):e instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),e.isWeakSet=function(e){return y(e)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),e.isArrayBuffer=b,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=k;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function S(e){return void 0!==C&&(void 0===T.working&&(T.working=T(new C)),T.working?T(e):e instanceof C)}function x(e){return f(e,c)}function E(e){return f(e,u)}function I(e){return f(e,d)}function A(e){return o&&f(e,h)}function P(e){return a&&f(e,p)}e.isSharedArrayBuffer=S,e.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},e.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},e.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},e.isGeneratorObject=function(e){return"[object Generator]"===l(e)},e.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},e.isNumberObject=x,e.isStringObject=E,e.isBooleanObject=I,e.isBigIntObject=A,e.isSymbolObject=P,e.isBoxedPrimitive=function(e){return x(e)||E(e)||I(e)||A(e)||P(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(b(e)||S(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})}(yZ)),yZ}var YZ,ZZ,JZ={exports:{}};function QZ(){return YZ||(YZ=1,"function"==typeof Object.create?JZ.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:JZ.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),JZ.exports}function eJ(){return ZZ||(ZZ=1,function(e){var t={},n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},r=/%[sdj%]/g;e.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,s=i.length,o=String(e).replace(r,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}}),l=i[n];n<s;l=i[++n])m(l)||!b(l)?o+=" "+l:o+=" "+a(l);return o},e.deprecate=function(t,n){if(void 0!==Sl&&!0===Sl.noDeprecation)return t;if(void 0===Sl)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(Sl.throwDeprecation)throw new Error(n);Sl.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}};var i={},s=/^$/;if(t.NODE_DEBUG){var o=t.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+o+"$","i")}function a(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&e._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,t,r.depth)}function l(e,t){var n=a.styles[t];return n?"�["+a.colors[n][0]+"m"+e+"�["+a.colors[n][1]+"m":e}function c(e,t){return e}function u(t,n,r){if(t.customInspect&&n&&C(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return g(i)||(i=u(t,i,r)),i}var s=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(_(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(t,n);if(s)return s;var o=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(n);if(0===o.length){if(C(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(v(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return d(n)}var c,b="",T=!1,S=["{","}"];(p(n)&&(T=!0,S=["[","]"]),C(n))&&(b=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(b=" "+RegExp.prototype.toString.call(n)),w(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+d(n)),0!==o.length||T&&0!=n.length?r<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=T?function(e,t,n,r,i){for(var s=[],o=0,a=t.length;o<a;++o)E(t,String(o))?s.push(h(e,t,n,r,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(h(e,t,n,r,i,!0))}),s}(t,n,r,a,o):o.map(function(e){return h(t,n,r,a,e,T)}),t.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,b,S)):S[0]+b+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(o="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),y(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function _(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function v(e){return b(e)&&"[object RegExp]"===T(e)}function b(e){return"object"==typeof e&&null!==e}function w(e){return b(e)&&"[object Date]"===T(e)}function k(e){return b(e)&&("[object Error]"===T(e)||e instanceof Error)}function C(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!i[t])if(s.test(t)){var n=Sl.pid;i[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else i[t]=function(){};return i[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=XZ(),e.isArray=p,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(e){return null==e},e.isNumber=_,e.isString=g,e.isSymbol=function(e){return"symbol"==typeof e},e.isUndefined=y,e.isRegExp=v,e.types.isRegExp=v,e.isObject=b,e.isDate=w,e.types.isDate=w,e.isError=k,e.types.isNativeError=k,e.isFunction=C,e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=FZ?BZ:(FZ=1,BZ=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8});var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.log=function(){var t,n;n=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),x[t.getMonth()],n].join(" "),e.format.apply(e,arguments)},e.inherits=QZ(),e._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}e.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,
767configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(o){n(o)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),I&&Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},e.promisify.custom=I,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){Sl.nextTick(s.bind(null,null,e))},function(e){Sl.nextTick(A.bind(null,e,s))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}}(gZ)),gZ}var tJ,nJ,rJ,iJ={};function sJ(){if(rJ)return nJ;rJ=1;var e=eJ(),t=YY().AbstractIterator,n=(tJ||(tJ=1,function(e){function t(e){return void 0!==e&&""!==e}function n(e,t){return Object.hasOwnProperty.call(e,t)}function r(e,t){return Object.hasOwnProperty.call(e,t)&&t}e.compare=function(e,t){if(lE.isBuffer(e)){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e[r]-t[r];if(i)return i}return e.length-t.length}return e<t?-1:e>t?1:0};var i=e.lowerBoundKey=function(e){return r(e,"gt")||r(e,"gte")||r(e,"min")||(e.reverse?r(e,"end"):r(e,"start"))||void 0},s=e.lowerBound=function(e,t){var n=i(e);return n?e[n]:t},o=e.lowerBoundInclusive=function(e){return!n(e,"gt")},a=e.upperBoundInclusive=function(e){return!n(e,"lt")},l=e.lowerBoundExclusive=function(e){return!o(e)},c=e.upperBoundExclusive=function(e){return!a(e)},u=e.upperBoundKey=function(e){return r(e,"lt")||r(e,"lte")||r(e,"max")||(e.reverse?r(e,"start"):r(e,"end"))||void 0},d=e.upperBound=function(e,t){var n=u(e);return n?e[n]:t};function h(e){return e}e.start=function(e,t){return e.reverse?d(e,t):s(e,t)},e.end=function(e,t){return e.reverse?s(e,t):d(e,t)},e.startInclusive=function(e){return e.reverse?a(e):o(e)},e.endInclusive=function(e){return e.reverse?o(e):a(e)},e.toLtgt=function(t,r,i,s,o){r=r||{},i=i||h;var a=arguments.length>3,l=e.lowerBoundKey(t),c=e.upperBoundKey(t);return l?"gt"===l?r.gt=i(t.gt,!1):r.gte=i(t[l],!1):a&&(r.gte=i(s,!1)),c?"lt"===c?r.lt=i(t.lt,!0):r.lte=i(t[c],!0):a&&(r.lte=i(o,!0)),null!=t.reverse&&(r.reverse=!!t.reverse),n(r,"max")&&delete r.max,n(r,"min")&&delete r.min,n(r,"start")&&delete r.start,n(r,"end")&&delete r.end,r},e.contains=function(n,r,i){i=i||e.compare;var o=s(n);if(t(o)&&((a=i(r,o))<0||0===a&&l(n)))return!1;var a,u=d(n);return!t(u)||!((a=i(r,u))>0||0===a&&c(n))},e.filter=function(t,n){return function(r){return e.contains(t,r,n)}}}(iJ)),iJ);function r(e,r){r||(r={}),this.options=r,t.call(this,e),this._order=r.reverse?"DESC":"ASC",this._limit=r.limit,this._count=0,this._done=!1;var i=n.lowerBound(r),s=n.upperBound(r);try{this._keyRange=i||s?this.db.makeKeyRange({lower:i,upper:s,excludeLower:n.lowerBoundExclusive(r),excludeUpper:n.upperBoundExclusive(r)}):null}catch(CL){this._keyRangeError=!0}this.callback=null}return nJ=r,e.inherits(r,t),r.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate(function(){e.onItem.apply(e,arguments)},{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){}})},r.prototype.onItem=function(e,t,n){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var r=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(r=!1),r&&this.callback(!1,t.key,t.value),t&&t.continue()},r.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")},nJ}var oJ,aJ,lJ,cJ={};function uJ(){return oJ||(oJ=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});for(var t={},n={byteLength:function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=l(e),o=r[0],a=r[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,d=a>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},fromByteArray:function(e){for(var t,n=e.length,i=n%3,s=[],o=16383,a=0,l=n-i;a<l;a+=o)s.push(u(e,a,a+o>l?l:a+o));1===i?(t=e[n-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return s.join("")}},r=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 6,315 bytes, lines 767-776
767+/",a=0;a<64;++a)r[a]=o[a],i[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function u(e,t,n){for(var r,i=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63;var d={ 768/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 769read:function(e,t,n,r,i){var s,o,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=c}return(p?-1:1)*o*Math.pow(2,s-r)},write:function(e,t,n,r,i,s){var o,a,l,c=8*s-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}}; 770/*! 771 * The buffer module from node.js, for the browser. 772 * 773 * @author Feross Aboukhadijeh <https://feross.org> 774 * @license MIT 775 */ 776!function(e){const t=n,r=d,i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s;const{Uint8Array:o,ArrayBuffer:a,SharedArrayBuffer:l}=globalThis;function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new o(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return h(e,t,n)}function h(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=c(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(a.isView(e))return function(e){if(J(e,o)){const t=new o(e);return _(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,a)||e&&J(e.buffer,a))return _(e,t,n);if(void 0!==l&&(J(e,l)||e&&J(e.buffer,l)))return _(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|g(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?c(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return p(e),c(e<0?0:0|g(e))}function m(e){const t=e.length<0?0:0|g(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function _(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new o(e):void 0===n?new o(e,t):new o(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function g(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(a.isView(e)||J(e,a))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:X(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof o.prototype.indexOf?i?o.prototype.indexOf.call(e,t,n):o.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,i){let s,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;
vendor: 4,773 bytes, line 776
776o=2,a/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(c(e,s)===c(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+l>a&&(n=a-l),s=n;s>=0;s--){let n=!0;for(let r=0;r<l;r++)if(c(e,s+r)!==c(t,r)){n=!1;break}if(n)return s}return-1}function C(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(Q(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return Z(X(t,e.length-n),e,n,r)}function S(e,t,n,r){return Z(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return Z(Y(t),e,n,r)}function E(e,t,n,r){return Z(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function I(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(s=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(CL){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(u.prototype,o.prototype),Object.setPrototypeOf(u,o),u.alloc=function(e,t,n){return function(e,t,n){return p(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,o)&&(e=u.from(e,e.offset,e.byteLength)),J(t,o)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,o))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):o.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):v.apply(this,arguments)}
vendor: 11,993 bytes, line 776
776,u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,o)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(s,a),c=this.slice(r,i),d=e.slice(t,n);for(let o=0;o<l;++o)if(c[o]!==d[o]){s=c[o],a=d[o];break}return s<a?-1:a<s?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function L(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function D(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let s=t;s<n;++s)i+=ee[e[s]];return i}function R(e,t,n){const r=e.slice(t,n);let i="";for(let s=0;s<r.length-1;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,s){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){z(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function U(e,t,n,r,i){z(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function $(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,i,s){return t=+t,n>>>=0,s||$(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function F(e,t,n,i,s){return t=+t,n>>>=0,s||$(e,0,n,8),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=te(function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=te(function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},u.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=te(function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),u.prototype.readBigInt64BE=te(function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||K(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=te(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=te(function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=te(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=te(function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof o.prototype.copyWithin?this.copyWithin(t,n,r):o.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=u.isBuffer(e)?e:u.from(e,r),o=s.length;
776if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const q={};function V(e,t,n){q[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,i,s){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`,new q.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||K(t,e.length-(n+1))}(r,i,s)}function G(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,n){if(Math.floor(e)!==e)throw G(e,n),new q.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function X(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function Y(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const ee=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function te(e){return"undefined"==typeof BigInt?ne:e}function ne(){throw new Error("BigInt not supported")}}(t);const h=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=h,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode}(cJ)),cJ}var dJ,hJ,pJ,fJ,mJ,_J,gJ,yJ,vJ,bJ,wJ,kJ,CJ,TJ,SJ,xJ={exports:{}};function EJ(){if(hJ)return dJ;hJ=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return dJ=function(n,r){if(!function(e){var n="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===t.call(e);return n||"undefined"==typeof window||(n=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),n}(r))throw new TypeError("iterator must be a function");var i,s,o="string"==typeof n,a=n.length,l=arguments.length>2?arguments[2]:null;if(a===+a)for(i=0;i<a;i++)null===l?r(o?n.charAt(i):n[i],i,n):r.call(l,o?n.charAt(i):n[i],i,n);else for(s in n)e.call(n,s)&&(null===l?r(n[s],s,n):r.call(l,n[s],s,n))},dJ}function IJ(){return mJ||(mJ=1,t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=EJ(),i=function(){if(fJ)return pJ;fJ=1;var e=Object.prototype.toString;return pJ=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}}(),s=!{toString:null}.propertyIsEnumerable("toString"),o=function(){}
776.propertyIsEnumerable("prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=function(e){var l=null!==e&&"object"==typeof e,c="[object Function]"===n.call(e),u=i(e),d=[];if(!l&&!c&&!u)throw new TypeError("Object.keys called on a non-object");if(u)r(e,function(e){d.push(e)});else{var h,p=o&&c;for(h in e)p&&"prototype"===h||!t.call(e,h)||d.push(h)}if(s){var f=e.constructor,m=f&&f.prototype===e;r(a,function(n){m&&"constructor"===n||!t.call(e,n)||d.push(n)})}return d},xJ.exports=e),xJ.exports;var e,t,n,r,i,s,o,a}function AJ(){if(wJ)return bJ;wJ=1;var e=gJ?_J:(gJ=1,_J=Object.keys||IJ()),t=vJ?yJ:(vJ=1,yJ=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)});return bJ=function(){for(var n={},r=0;r<arguments.length;r++){var i=arguments[r];if(t(i))for(var s=e(i),o=0;o<s.length;o++){var a=s[o];n[a]=i[a]}}return n},bJ}function PJ(){if(SJ)return TJ;SJ=1,TJ=a;var e=($Y||($Y=1,function(e){ 777/** 778 * @license IDBWrapper - A cross-browser wrapper for IndexedDB 779 * Version 1.7.2 780 * Copyright (c) 2011 - 2017 Jens Arps 781 * http://jensarps.de/ 782 * 783 * Licensed under the MIT license 784 */ 785var t,n;t=function(){var e=function(e){throw e},t=function(){},n={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},r=function(e,t){for(var r in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),n)this[r]=void 0!==e[r]?e[r]:n[r];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,s=this.implementationPreference.filter(function(e){return e in i});this.implementation=s[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:r,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var n="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(n+=" with error code "+e.target.errorCode),t=new Error(n)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var n=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=n.objectStore(this.storeName);var r=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(e){var n=e.name;if(!n)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),r.splice(r.indexOf(n),1)}else t=!0,this.onError(new Error('Cannot create new index "'+n+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))},this),r.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+r.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var n={autoIncrement:this.autoIncrement};null!==this.keyPath&&(n.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,n)}var r=Array.prototype.slice.call(this.getIndexList());
785this.indexes.forEach(function(e){var n=e.name;if(n||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(n)){var i=this.store.index(n);this.indexComplies(i,e)||(this.store.deleteIndex(n),this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),r.splice(r.indexOf(n),1)}else this.store.createIndex(n,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})},this),r.length&&r.forEach(function(e){this.store.deleteIndex(e)},this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var n=this.idb.deleteDatabase(this.dbName);n.onsuccess=e,n.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(n,r,i,s){null!==this.keyPath&&(s=i,i=r,r=n),s||(s=e),i||(i=t);var o,a=!1,l=null,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);return c.oncomplete=function(){(a?i:s)(l)},c.onabort=s,c.onerror=s,null!==this.keyPath?(this._addIdPropertyIfNeeded(r),o=c.objectStore(this.storeName).put(r)):o=c.objectStore(this.storeName).put(r,n),o.onsuccess=function(e){a=!0,l=e.target.result},o.onerror=s,c},get:function(n,r,i){i||(i=e),r||(r=t);var s=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_ONLY);a.oncomplete=function(){(s?r:i)(o)},a.onabort=i,a.onerror=i;var l=a.objectStore(this.storeName).get(n);return l.onsuccess=function(e){s=!0,o=e.target.result},l.onerror=i,a},remove:function(n,r,i){i||(i=e),r||(r=t);var s=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(s?r:i)(o)},a.onabort=i,a.onerror=i;var l=a.objectStore(this.storeName).delete(n);return l.onsuccess=function(e){s=!0,o=e.target.result},l.onerror=i,a},batch:function(n,r,i){if(i||(i=e),r||(r=t),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("dataArray argument must be of type Array."));else if(0===n.length)return r(!0);var s=n.length,o=!1,a=!1,l=this.db.transaction([this.storeName],this.consts.READ_WRITE);l.oncomplete=function(){(a?r:i)(a)},l.onabort=i,l.onerror=i;var c=function(){0!==--s||o||(o=!0,a=!0)};return n.forEach(function(e){var t=e.type,n=e.key,r=e.value,s=function(e){l.abort(),o||(o=!0,i(e,t,n))};if("remove"==t){var a=l.objectStore(this.storeName).delete(n);a.onsuccess=c,a.onerror=s}else if("put"==t){var u;null!==this.keyPath?(this._addIdPropertyIfNeeded(r),u=l.objectStore(this.storeName).put(r)):u=l.objectStore(this.storeName).put(r,n),u.onsuccess=c,u.onerror=s}},this),l},putBatch:function(e,t,n){var r=e.map(function(e){return{type:"put",value:e}});return this.batch(r,t,n)},upsertBatch:function(n,r,i,s){"function"==typeof r&&(s=i=r,r={}),s||(s=e),i||(i=t),r||(r={}),"[object Array]"!=Object.prototype.toString.call(n)&&s(new Error("dataArray argument must be of type Array."));var o=r.keyField||this.keyPath,a=n.length,l=!1,c=!1,u=0,d=this.db.transaction([this.storeName],this.consts.READ_WRITE);d.oncomplete=function(){c?i(n):s(!1)},d.onabort=s,d.onerror=s;var h=function(e){n[u++][o]=e.target.result,0!==--a||l||(l=!0,c=!0)};return n.forEach(function(e){var t,n=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=d.objectStore(this.storeName).put(e)):t=d.objectStore(this.storeName).put(e,n),t.onsuccess=h,t.onerror=function(e){d.abort(),l||(l=!0,s(e))}},this),d},removeBatch:function(e,t,n){var r=e.map(function(e){return{type:"remove",key:e}});return this.batch(r,t,n)},getBatch:function(n,r,i,s){if(i||(i=e),r||(r=t),s||(s="sparse"),"[object Array]"!=Object.prototype.toString.call(n))i(new Error("keyArray argument must be of type Array."));else if(0===n.length)return r([]);var o=[],a=n.length,l=!1,c=null,u=this.db.transaction([this.storeName],this.consts.READ_ONLY);u.oncomplete=function(){(l?r:i)(c)},u.onabort=i,u.onerror=i;var d=function(e){e.target.result||"dense"==s?o.push(e.target.result):"sparse"==s&&o.length++,0===--a&&(l=!0,c=o)};return n.forEach(function(e){var t=u.objectStore(this.storeName).get(e);t.onsuccess=d,t.onerror=function(e){c=e,i(e),u.abort()}},this),u},getAll:function(n,r){r||(r=e),n||(n=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),s=i.objectStore(this.storeName);return s.getAll?this._getAllNative(i,s,n,r):this._getAllCursor(i,s,n,r),i},_getAllNative:function(e,t,n,r){var i=!1,s=null;e.oncomplete=function(){(i?n:r)(s)},e.onabort=r,e.onerror=r;var o=t.getAll();o.onsuccess=function(e){i=!0,s=e.target.result},o.onerror=r},_getAllCursor:function(e,t,n,r){var i=[],s=!1,o=null;e.oncomplete=function(){(s?n:r)(o)},e.onabort=r,e.onerror=r;var a=t.openCursor();a.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(s=!0,o=i)},a.onError=r},clear:function(n,r){r||(r=e),n||(n=t);var i=!1,s=null,o=this.db.transaction([this.storeName],this.consts.READ_WRITE);o.oncomplete=function(){(i?n:r)(s)},o.onabort=r,o.onerror=r;var a=o.objectStore(this.storeName).clear();return a.onsuccess=function(e){i=!0,s=e.target.result},a.onerror=r,o},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames}
785,hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){var n=["keyPath","unique","multiEntry"].every(function(n){if("multiEntry"==n&&void 0===e[n]&&!1===t[n])return!0;if("keyPath"==n&&"[object Array]"==Object.prototype.toString.call(t[n])){var r=t.keyPath,i=e.keyPath;if("string"==typeof i)return r.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==r.length)return!1;for(var s=0,o=r.length;s<o;s++)if(!(i.contains&&i.contains(r[s])||i.indexOf(-1!==r[s])))return!1;return!0}return t[n]==e[n]});return n},iterate:function(t,n){var r="desc"==(n=o({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},n||{})).order.toLowerCase()?"PREV":"NEXT";n.filterDuplicates&&(r+="_NO_DUPLICATE");var i=!1,s=this.db.transaction([this.storeName],this.consts[n.writeAccess?"READ_WRITE":"READ_ONLY"]),a=s.objectStore(this.storeName);n.index&&(a=a.index(n.index));var l=0;s.oncomplete=function(){i?n.onEnd?n.onEnd():t(null):n.onError(null)},s.onabort=n.onError,s.onerror=n.onError;var c=a.openCursor(n.keyRange,this.consts[r]);return c.onerror=n.onError,c.onsuccess=function(e){var r=e.target.result;if(r)if(n.offset)r.advance(n.offset),n.offset=0;else{var o=t(r.value,r,s);n.allowItemRejection&&!1===o||l++,n.autoContinue&&(l+n.offset<n.limit?r.continue():i=!0)}else i=!0},s},query:function(e,t){var n=[],r=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(n,r)},this.iterate(function(e){r++;var i=!t.filter||t.filter(e);return!1!==i&&n.push(e),i},t)},count:function(t,n){var r=(n=o({index:null,keyRange:null},n||{})).onError||e,i=!1,s=null,a=this.db.transaction([this.storeName],this.consts.READ_ONLY);a.oncomplete=function(){(i?t:r)(s)},a.onabort=r,a.onerror=r;var l=a.objectStore(this.storeName);n.index&&(l=l.index(n.index));var c=l.count(n.keyRange);return c.onsuccess=function(e){i=!0,s=e.target.result},c.onError=r,a},makeKeyRange:function(e){var t,n=void 0!==e.lower,r=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case n&&r:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case n:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case r:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},s={};function o(e,t){var n,r;for(n in t)(r=t[n])!==s[n]&&r!==e[n]&&(e[n]=r);return e}return r.prototype=i,r.version=i.version,r},n=FY,e.exports?e.exports=t():n.IDBStore=t()}(BY)),BY.exports),t=YY().AbstractLevelDOWN,n=eJ(),r=sJ(),i=function(){if(lJ)return aJ;lJ=1;var e=uJ().Buffer;return aJ=function(t){return e.isBuffer(t)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(t))}}(),s=AJ(),o=CJ?kJ:(CJ=1,kJ=function(e){return"function"==typeof lE._augment&&lE.TYPED_ARRAY_SUPPORT?lE._augment(e):new lE(e)});function a(e){if(!(this instanceof a))return new a(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}return n.inherits(a,t),a.prototype._open=function(t,n){var r=this,i={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){n&&n(null,r.idb)},onError:function(e){n&&n(e)}};s(i,t),this.IDBOptions=i,this.idb=new e(i)},a.prototype._get=function(e,t,n){this.idb.get(e,function(r){if(void 0===r)return n(new Error("NotFound"));var i=!0;return!1===t.asBuffer&&(i=!1),t.raw&&(i=!1),i&&(r=r instanceof Uint8Array?o(r):new lE(String(r))),n(null,r,e)},n)},a.prototype._del=function(e,t,n){this.idb.remove(e,n,n)},a.prototype._put=function(e,t,n,r){t instanceof ArrayBuffer&&(t=o(new Uint8Array(t)));var i=this.convertEncoding(e,t,n);lE.isBuffer(i.value)&&("function"==typeof t.toArrayBuffer?i.value=new Uint8Array(t.toArrayBuffer()):i.value=new Uint8Array(t)),this.idb.put(i.key,i.value,function(){r()},r)},a.prototype.convertEncoding=function(e,t,n){if(n.raw)return{key:e,value:t};if(t){var r=t.toString();"NaN"===r&&(t="NaN")}var i=n.valueEncoding,s={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof s.value&&(s.value=r),s},a.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new r(this.idb,e)},a.prototype._batch=function(e,t,n){var r,i,s,o,a=[];if(0===e.length)return setTimeout(n,0);for(r=0;r<e.length;r++){s={},o=e[r],a[r]=s;var l=this.convertEncoding(o.key,o.value,t);
785for(i in o.key=l.key,o.value=l.value,o)"type"===i&&"del"==o[i]?s[i]="remove":s[i]=o[i]}return this.idb.batch(a,function(){n()},n)},a.prototype._close=function(e){this.idb.db.close(),e()},a.prototype._approximateSize=function(e,t,n){var r=new Error("Not implemented");if(n)return n(r);throw r},a.prototype._isBuffer=function(e){return lE.isBuffer(e)},a.destroy=function(e,t){if("object"==typeof e)var n=e.IDBOptions.storePrefix||"IDBWrapper-",r=e.location;else n="IDBWrapper-",r=e;var i=indexedDB.deleteDatabase(n+r);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},a.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):i(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0},TJ}var OJ,LJ,DJ,RJ={exports:{}},MJ={exports:{}};function NJ(){if(OJ)return MJ.exports;OJ=1;var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}MJ.exports=i,MJ.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}f(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,i,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,s,l;if(o(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),l=s[t]),void 0===l)l=s[t]=n,++e._eventsCount;else if("function"==typeof l?l=s[t]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(i=a(e))>0&&l.length>i&&!l.warned){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,console&&console.warn}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function f(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(s){r.once&&e.removeEventListener(t,i),n(s)})}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=p(l,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,i,s,a;
vendor: 1,605 bytes, line 785
785if(o(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},MJ.exports}
785function jJ(){if(DJ)return LJ;return DJ=1,LJ=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e},LJ}var UJ,$J,BJ,FJ={exports:{}},qJ=FJ.exports; 786/*! 787 * prr 788 * (c) 2013 Rod Vagg <[email protected]> 789 * https://github.com/rvagg/prr 790 * License: MIT 791 */var VJ,HJ,zJ,GJ,KJ,WJ,XJ={exports:{}},YJ={exports:{}},ZJ=YJ.exports;function JJ(){if(zJ)return HJ;zJ=1;var e=(VJ||(VJ=1,function(e){var t,n;t=ZJ,n=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var s;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(s in n)Object.hasOwnProperty.call(n,s)&&(i.value=n[s],e(t,s,i));return t}return e(t,n,i)}},e.exports?e.exports=n():t.prr=n()}(YJ)),YJ.exports);function t(t,n,r){n&&"string"!=typeof n&&(n=n.message||n.name),e(this,{type:t,name:t,cause:"string"!=typeof n?n:r,message:n},"ewr")}function n(e,n){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),t.call(this,"CustomError",e,n)}return n.prototype=new Error,HJ=function(e){var r=function(r,i){return function(e,r,i){var s=function(n,i){t.call(this,r,n,i),"FilesystemError"==r&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,s)};return s.prototype=i?new i:new n,s}(e,r,i)};return{CustomError:n,FilesystemError:r("FilesystemError"),createError:r}}}function QJ(){return GJ||(GJ=1,function(e){var t=e
vendor: 3,859 bytes, line 791
791.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];
791e.exports.errno={},e.exports.code={},t.forEach(function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t}),e.exports.custom=JJ()(e.exports),e.exports.create=e.exports.custom.createError}(XJ)),XJ.exports}function eQ(){if(WJ)return KJ;WJ=1;var e=QJ().create,t=e("LevelUPError"),n=e("NotFoundError",t);return n.prototype.notFound=!0,n.prototype.status=404,KJ={LevelUPError:t,InitializationError:e("InitializationError",t),OpenError:e("OpenError",t),ReadError:e("ReadError",t),WriteError:e("WriteError",t),NotFoundError:n,EncodingError:e("EncodingError",t)}}var tQ,nQ,rQ,iQ,sQ,oQ,aQ={exports:{}};function lQ(){return nQ?tQ:(nQ=1,tQ=NJ().EventEmitter)}function cQ(){if(iQ)return rQ;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach(function(e){n(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}iQ=1;var s=uJ().Buffer,o=eJ().inspect,a=o&&o.custom||"inspect";function l(e,t,n){s.prototype.copy.call(e,t,n)}return rQ=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return r(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t=s.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?r+=i:r+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:a,value:function(e,n){return o(this,t(t({},n),{},{depth:0,customInspect:!1}))}}]),e}(),rQ}function uQ(){if(oQ)return sQ;function e(e,r){n(e,r),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return oQ=1,sQ={destroy:function(r,i){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(i?i(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Sl.nextTick(n,this,r)):Sl.nextTick(n,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(n){!i&&n?s._writableState?s._writableState.errorEmitted?Sl.nextTick(t,s):(s._writableState.errorEmitted=!0,Sl.nextTick(e,s,n)):Sl.nextTick(e,s,n):i?(Sl.nextTick(t,s),i(n)):Sl.nextTick(t,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}var dQ,hQ,pQ,fQ,mQ,_Q,gQ,yQ,vQ,bQ={};function wQ(){if(dQ)return bQ;dQ=1;var e={};function t(t,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=t,e[t]=i}function n(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}return t("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
791d for option "'+e+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(e,t,r){var i,s,o;if("string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var a=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(n(t,"type"))}return o+=". Received type ".concat(typeof r)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),bQ.codes=e,bQ}function kQ(){if(pQ)return hQ;pQ=1;var e=wQ().codes.ERR_INVALID_OPT_VALUE;return hQ={getHighWaterMark:function(t,n,r,i){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new e(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}}function CQ(){if(mQ)return fQ;function e(e){try{if(!Wa.localStorage)return!1}catch(n){return!1}var t=Wa.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return mQ=1,fQ=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")&&console.trace(n),r=!0}return t.apply(this,arguments)}},fQ}function TQ(){if(gQ)return _Q;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;gQ=1,_Q=w,w.WritableState=b;var n={deprecate:CQ()},r=lQ(),i=uJ().Buffer,s=(void 0!==Wa?Wa:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var o,a=uQ(),l=kQ().getHighWaterMark,c=wQ().codes,u=c.ERR_INVALID_ARG_TYPE,d=c.ERR_METHOD_NOT_IMPLEMENTED,h=c.ERR_MULTIPLE_CALLBACK,p=c.ERR_STREAM_CANNOT_PIPE,f=c.ERR_STREAM_DESTROYED,m=c.ERR_STREAM_NULL_VALUES,_=c.ERR_STREAM_WRITE_AFTER_END,g=c.ERR_UNKNOWN_ENCODING,y=a.errorOrDestroy;function v(){}function b(n,r,i){t=t||SQ(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=l(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===n.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new h;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Sl.nextTick(i,r),Sl.nextTick(E,e,t),e._writableState.errorEmitted=!0,y(e,r)):(i(r),e._writableState.errorEmitted=!0,y(e,r),E(e,t))}(e,n,r,t,i);else{var s=S(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),r?Sl.nextTick(C,e,n,s,i):C(e,n,s,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w(e){var n=this instanceof(t=t||SQ());if(!n&&!o.call(w,this))return new w(e);this._writableState=new b(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),r.call(this)}function k(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new f("write")):n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function C(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function T(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,s=new Array(i),o=n.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;
vendor: 5,727 bytes, line 791
791s.allBuffers=l,k(t,n,!0,n.length,s,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(k(t,n,!1,n.objectMode?1:c.length,c,u,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final(function(n){t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),E(e,t)})}function E(e,t){var n=S(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Sl.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return QZ()(w,r),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===w&&(e&&e._writableState instanceof b)}})):o=function(e){return e instanceof this},w.prototype.pipe=function(){y(this,new p)},w.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,l=!o.objectMode&&(r=e,i.isBuffer(r)||r instanceof s);return l&&!i.isBuffer(e)&&(e=function(e){return i.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ending?function(e,t){var n=new _;y(e,n),Sl.nextTick(t,n)}(this,n):(l||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new u("chunk",["string","Buffer"],n)),!i||(y(e,i),Sl.nextTick(r,i),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,s,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=i.from(t,n));return t}(t,r,s);r!==a&&(n=!0,s="buffer",r=a)}var l=t.objectMode?1:r.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:s,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else k(e,t,!1,l,r,s,o);return c}(this,o,l,e,t,n)),a},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new g(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new d("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?Sl.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=a.destroy,w.prototype._undestroy=a.undestroy,w.prototype._destroy=function(e,t){t(e)},_Q}function SQ(){if(vQ)return yQ;vQ=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};yQ=o;var t=ZQ(),n=TQ();QZ()(o,t);for(var r=e(n.prototype),i=0;i<r.length;i++){var s=r[i];o.prototype[s]||(o.prototype[s]=n.prototype[s])}function o(e){if(!(this instanceof o))return new o(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",a)))}function a(){this._writableState.ended||Sl.nextTick(l,this)}function l(e){e.end()}return Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),yQ}
vendor: 4,629 bytes, line 791
791var xQ,EQ,IQ,AQ,PQ,OQ,LQ,DQ,RQ,MQ,NQ,jQ,UQ,$Q,BQ,FQ,qQ,VQ,HQ,zQ,GQ={},KQ={exports:{}};function WQ(){if(EQ)return GQ;EQ=1;var e=(xQ||(xQ=1,function(e,t){var n=uJ(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),i(r,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(KQ,KQ.exports)),KQ.exports).Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(n){var r;switch(this.encoding=function(n){var r=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(n);if("string"!=typeof r&&(e.isEncoding===t||!t(n)))throw new Error("Unknown encoding: "+n);return r||n}(n),this.encoding){case"utf16le":this.text=s,this.end=o,r=4;break;case"utf8":this.fillLast=i,r=4;break;case"base64":this.text=a,this.end=l,r=3;break;default:return this.write=c,void(this.end=u)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(r)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function o(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function a(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function u(e){return e&&e.length?this.write(e):""}return GQ.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var s=r(t[i]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--i<n||-2===s)return 0;if(s=r(t[i]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--i<n||-2===s)return 0;if(s=r(t[i]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},GQ}function XQ(){if(AQ)return IQ;AQ=1;var e=wQ().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return IQ=function n(r,i,s){if("function"==typeof i)return n(r,null,i);
vendor: 16,346 bytes, line 791
791i||(i={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(s||t);var o=i.readable||!1!==i.readable&&r.readable,a=i.writable||!1!==i.writable&&r.writable,l=function(){r.writable||u()},c=r._writableState&&r._writableState.finished,u=function(){a=!1,c=!0,o||s.call(r)},d=r._readableState&&r._readableState.endEmitted,h=function(){o=!1,d=!0,a||s.call(r)},p=function(e){s.call(r,e)},f=function(){var t;return o&&!d?(r._readableState&&r._readableState.ended||(t=new e),s.call(r,t)):a&&!c?(r._writableState&&r._writableState.ended||(t=new e),s.call(r,t)):void 0},m=function(){r.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(r)?a&&!r._writableState&&(r.on("end",l),r.on("close",l)):(r.on("complete",u),r.on("abort",f),r.req?m():r.on("request",m)),r.on("end",h),r.on("finish",u),!1!==i.error&&r.on("error",p),r.on("close",f),function(){r.removeListener("complete",u),r.removeListener("abort",f),r.removeListener("request",m),r.req&&r.req.removeListener("finish",u),r.removeListener("end",l),r.removeListener("close",l),r.removeListener("finish",u),r.removeListener("end",h),r.removeListener("error",p),r.removeListener("close",f)}},IQ}function YQ(){if(OQ)return PQ;var e;function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}OQ=1;var n=XQ(),r=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),l=Symbol("handlePromise"),c=Symbol("stream");function u(e,t){return{value:e,done:t}}function d(e){var t=e[r];if(null!==t){var n=e[c].read();null!==n&&(e[a]=null,e[r]=null,e[i]=null,t(u(n,!1)))}}function h(e){Sl.nextTick(d,e)}var p=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((t(e={get stream(){return this[c]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[o])return Promise.resolve(u(void 0,!0));if(this[c].destroyed)return new Promise(function(t,n){Sl.nextTick(function(){e[s]?n(e[s]):t(u(void 0,!0))})});var n,r=this[a];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[o]?n(u(void 0,!0)):t[l](n,r)},r)}}(r,this));else{var i=this[c].read();if(null!==i)return Promise.resolve(u(i,!1));n=new Promise(this[l])}return this[a]=n,n}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,n){e[c].destroy(null,function(e){e?n(e):t(u(void 0,!0))})})}),e),p);return PQ=function(e){var d,p=Object.create(f,(t(d={},c,{value:e,writable:!0}),t(d,r,{value:null,writable:!0}),t(d,i,{value:null,writable:!0}),t(d,s,{value:null,writable:!0}),t(d,o,{value:e._readableState.endEmitted,writable:!0}),t(d,l,{value:function(e,t){var n=p[c].read();n?(p[a]=null,p[r]=null,p[i]=null,e(u(n,!1))):(p[r]=e,p[i]=t)},writable:!0}),d));return p[a]=null,n(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=p[i];return null!==t&&(p[a]=null,p[r]=null,p[i]=null,t(e)),void(p[s]=e)}var n=p[r];null!==n&&(p[a]=null,p[r]=null,p[i]=null,n(u(void 0,!0))),p[o]=!0}),e.on("readable",h.bind(null,p)),p}}function ZQ(){if(MQ)return RQ;var e;MQ=1,RQ=w,w.ReadableState=b,NJ().EventEmitter;var t=function(e,t){return e.listeners(t).length},n=lQ(),r=uJ().Buffer,i=(void 0!==Wa?Wa:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,o=eJ();s=o&&o.debuglog?o.debuglog("stream"):function(){};var a,l,c,u=cQ(),d=uQ(),h=kQ().getHighWaterMark,p=wQ().codes,f=p.ERR_INVALID_ARG_TYPE,m=p.ERR_STREAM_PUSH_AFTER_EOF,_=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;QZ()(w,n);var y=d.errorOrDestroy,v=["error","close","destroy","pause","resume"];function b(t,n,r){e=e||SQ(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=h(this,t,"readableHighWaterMark",r),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=WQ().StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function w(t){if(e=e||SQ(),!(this instanceof w))return new w(t);var r=this instanceof e;this._readableState=new b(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function k(e,t,n,o,a){s("readableAddChunk",t);var l,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(s("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?x(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,E(e)))}(e,c);else if(a||(l=function(e,t){var n;s=t,r.isBuffer(s)||s instanceof i||"string"==typeof t||void 0===t||e.objectMode||(n=new f("chunk",["string","Buffer","Uint8Array"],t));var s;return n}(c,t)),l)y(e,l);else if(c.objectMode||t&&t.length>0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===r.prototype||(t=function(e){return r.from(e)}(t)),o)c.endEmitted?y(e,new g):C(e,c,t,!0);else if(c.ended)y(e,new m);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!n?(t=c.decoder.write(t),c.objectMode||0!==t.length?C(e,c,t,!1):I(e,c)):C(e,c,t,!1)}else o||(c.reading=!1,I(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),I(e,t)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=d.destroy,w.prototype._undestroy=d.undestroy,w.prototype._destroy=function(e,t){t(e)},w.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=r.from(e,t),t=""),n=!0),k(this,e,t,!1,n)},w.prototype.unshift=function(e){return k(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){a||(a=WQ().StringDecoder);var t=new a(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var T=1073741824;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,Sl.nextTick(E,e))}function E(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function I(e,t){t.readingMore||(t.readingMore=!0,Sl.nextTick(A,e,t))}function A(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(s("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){s("readable nexttick read 0"),e.read(0)}function L(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function M(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Sl.nextTick(N,t,e))}function N(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function j(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}return w.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return s("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return s("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&s("length less than watermark",i=!0),t.ended||t.reading?s("reading or ended",i=!1):i&&(s("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?R(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},w.prototype._read=function(e){y(this,new _("_read()"))},w.prototype.pipe=function(e,n){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,n);var o=(!n||!1!==n.end)&&e!==Sl.stdout&&e!==Sl.stderr?l:m;function a(t,n){s("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,s("cleanup"),e.removeListener("close",p),e.removeListener("finish",f),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",a),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",d),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){s("onend"),e.end()}i.endEmitted?Sl.nextTick(o):r.once("end",o),e.on("unpipe",a);var c=function(e){return function(){var n=e._readableState;s("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,D(e))}}(r);e.on("drain",c);var u=!1;function d(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==j(i.pipes,e))&&!u&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(n){s("onerror",n),m(),e.removeListener("error",h),0===t(e,"error")&&y(e,n)}function p(){e.removeListener("finish",f),m()}function f(){s("onfinish"),e.removeListener("close",p),m()}function m(){s("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",p),e.once("finish",f),e.emit("pipe",r),i.flowing||(s("pipe resume"),r.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=j(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},w.prototype.on=function(e,t){var r=n.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?x(this):i.reading||Sl.nextTick(O,this))),r},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var r=n.prototype.removeListener.call(this,e,t);return"readable"===e&&Sl.nextTick(P,this),r},w.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Sl.nextTick(P,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Sl.nextTick(L,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(s("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){s("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=YQ()),l(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),w._fromList=R,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(e,t){return void 0===c&&(c=DQ?LQ:(DQ=1,LQ=function(){throw new Error("Readable.from is not available in the browser")})),c(w,e,t)}),RQ}function JQ(){if(jQ)return NQ;jQ=1,NQ=a;var e=wQ().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=e.ERR_TRANSFORM_WITH_LENGTH_0,s=SQ();function o(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new n);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush(function(t,n){c(e,t,n
791)})}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new i;if(e._transformState.transforming)throw new r;return e.push(null)}return QZ()(a,s),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},a.prototype._transform=function(e,n,r){r(new t("_transform()"))},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},a.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})},NQ}function QQ(){if(FQ)return BQ;var e;FQ=1;var t=wQ().codes,n=t.ERR_MISSING_ARGS,r=t.ERR_STREAM_DESTROYED;function i(e){if(e)throw e}function s(e){e()}function o(e,t){return e.pipe(t)}return BQ=function(){for(var t=arguments.length,a=new Array(t),l=0;l<t;l++)a[l]=arguments[l];var c,u=function(e){return e.length?"function"!=typeof e[e.length-1]?i:e.pop():i}(a);if(Array.isArray(a[0])&&(a=a[0]),a.length<2)throw new n("streams");var d=a.map(function(t,n){var i=n<a.length-1;return function(t,n,i,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var o=!1;t.on("close",function(){o=!0}),void 0===e&&(e=XQ()),e(t,{readable:n,writable:i},function(e){if(e)return s(e);o=!0,s()});var a=!1;return function(e){if(!o&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new r("pipe"))}}(t,i,n>0,function(e){c||(c=e),e&&d.forEach(s),i||(d.forEach(s),u(c))})});return a.reduce(o)},BQ}function e0(){if(VQ)return qQ;VQ=1,qQ=t;var e=NJ().EventEmitter;function t(){e.call(this)}return QZ()(t,e),t.Readable=ZQ(),t.Writable=TQ(),t.Duplex=SQ(),t.Transform=JQ(),t.PassThrough=function(){if($Q)return UQ;$Q=1,UQ=t;var e=JQ();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return QZ()(t,e),t.prototype._transform=function(e,t,n){n(null,e)},UQ}(),t.finished=XQ(),t.pipeline=QQ(),t.Stream=t,t.prototype.pipe=function(t,n){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",s),t._isStdio||n&&!1===n.end||(r.on("end",a),r.on("close",l));var o=!1;function a(){o||(o=!0,t.end())}function l(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(u(),0===e.listenerCount(this,"error"))throw t}function u(){r.removeListener("data",i),t.removeListener("drain",s),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",c),t.on("error",c),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t},qQ}var t0,n0,r0,i0,s0,o0,a0,l0,c0,u0,d0,h0,p0={};function f0(){if(t0)return p0;function e(e){return Object.prototype.toString.call(e)}return t0=1,p0.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},p0.isBoolean=function(e){return"boolean"==typeof e},p0.isNull=function(e){return null===e},p0.isNullOrUndefined=function(e){return null==e},p0.isNumber=function(e){return"number"==typeof e},p0.isString=function(e){return"string"==typeof e},p0.isSymbol=function(e){return"symbol"==typeof e},p0.isUndefined=function(e){return void 0===e},p0.isRegExp=function(t){return"[object RegExp]"===e(t)},p0.isObject=function(e){return"object"==typeof e&&null!==e},p0.isDate=function(t){return"[object Date]"===e(t)},p0.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},p0.isFunction=function(e){return"function"==typeof e},p0.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},p0.isBuffer=uJ().Buffer.isBuffer,p0}function m0(){if(r0)return n0;r0=1,n0=a;var e=zQ?HQ:(zQ=1,HQ=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}),t=uJ().Buffer;a.ReadableState=o;var n=NJ().EventEmitter;n.listenerCount||(n.listenerCount=function(e,t){return e.listeners(t).length});var r,i=e0(),s=f0();function o(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(r||(r=WQ().StringDecoder),this.decoder=new r(e.encoding),this.encoding=e.encoding)}function a(e){if(!(this instanceof a))return new a(e);this._readableState=new o(e),this.readable=!0,i.call(this)}function l(e,n,r,i,s){var o=function(e,n){var r=null;t.isBuffer(n)||"string"==typeof n||null==n||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(n,r);if(o)e.emit("error",o);else if(null==r)n.reading=!1,n.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?d(e):g(e)}(e,n);else if(n.objectMode||r&&r.length>0)if(n.ended&&!s){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(n.endEmitted&&s){a=new Error("stream.unshift() after end event");e.emit("error",a)}else!n.decoder||s||i||(r=n.decoder.write(r)),n.length+=n.objectMode?1:r.length,s?n.buffer.unshift(r):(n.reading=!1,n.buffer.push(r)),n.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,Sl.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,n);else s||(n.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(n)}s.inherits=QZ(),s.inherits(a,i),a.prototype.push=function(e,n){var r=this._readableState;return"string"!=typeof e||r.objectMode||(n=n||r.defaultEncoding)!==r.encoding&&(e=new t(e,n),n=""),l(this,r,e,n,!1)},a.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},a.prototype.setEncoding=function(e){r||(r=WQ().StringDecoder),this._readableState.decoder=new r(e),this._readableState.encoding=e};var c=8388608;function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=c)e=c;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?Sl.nextTick(function(){h(e)}):h(e))}function h(e){e.emit("readable")}function p(e){var t,r=e._readableState;function i(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?i(r.pipes):y(r.pipes,i),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(n.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function f(){this._readableState.ranOut&&(this._readableState.ranOut=!1,p(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,r=!1;e.readable=!0,e.pipe=i.prototype.pipe,e.on=e.addListener=i.prototype.on,e.on("readable",function(){var t;for(r=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(r=!1,e._readableState.needReadable=!0)}
791),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,r?Sl.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function _(e,n){var r,i=n.buffer,s=n.length,o=!!n.decoder,a=!!n.objectMode;if(0===i.length)return null;if(0===s)r=null;else if(a)r=i.shift();else if(!e||e>=s)r=o?i.join(""):t.concat(i,s),i.length=0;else{if(e<i[0].length)r=(d=i[0]).slice(0,e),i[0]=d.slice(e);else if(e===i[0].length)r=i.shift();else{r=o?"":new t(e);for(var l=0,c=0,u=i.length;c<u&&l<e;c++){var d=i[0],h=Math.min(e-l,d.length);o?r+=d.slice(0,h):d.copy(r,l,0,h),h<d.length?i[0]=d.slice(h):i.shift(),l+=h}}}return r}function g(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,Sl.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function y(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}return a.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=u(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=_(e,t),t.length-=n.length),0===t.length&&g(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=u(r,t)),null===(n=e>0?_(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&g(this),n},a.prototype._read=function(e){this.emit("error",new Error("not implemented"))},a.prototype.pipe=function(t,r){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1;var o=(!r||!1!==r.end)&&t!==Sl.stdout&&t!==Sl.stderr?l:u;function a(e){e===i&&u()}function l(){t.end()}s.endEmitted?Sl.nextTick(o):i.once("end",o),t.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&p(e)}}(i);function u(){t.removeListener("close",h),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",a),i.removeListener("end",l),i.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function d(e){_(),t.removeListener("error",d),0===n.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",m),_()}function m(){t.removeListener("close",h),_()}function _(){i.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?e(t._events.error)?t._events.error.unshift(d):t._events.error=[d,t._events.error]:t.on("error",d),t.once("close",h),t.once("finish",m),t.emit("pipe",i),s.flowing||(this.on("readable",f),s.flowing=!0,Sl.nextTick(function(){p(i)})),t},a.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},a.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&d(this):this.read(0))}return n},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},a.prototype.pause=function(){m(this,!0),this.emit("pause")},a.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return y(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},a._fromList=_,n0}function _0(){if(s0)return i0;s0=1,i0=i;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},t=f0();t.inherits=QZ();var n=m0(),r=g0();function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||Sl.nextTick(this.end.bind(this))}return t.inherits(i,n),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(e(r.prototype),function(e){i.prototype[e]||(i.prototype[e]=r.prototype[e])}),i0}function g0(){if(a0)return o0;a0=1,o0=s;var e=uJ().Buffer;s.WritableState=i;var t=f0();t.inherits=QZ();var n=e0();function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=!1===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){n?Sl.nextTick(function(){i(r)}):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,0,r,t,i);else{var s=l(e,n);s||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,s=r.encoding,a=r.callback;if(o(e,t,t.objectMode?1:i.length,i,s,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),r?Sl.nextTick(function(){a(e,n,s,i)}):a(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function s(e){var t=_0();if(!(this instanceof s||this instanceof t))return new s(e);this._writableState=new i(e,this),this.writable=!0,n.call(this)}function o(e,t,n,r,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function a(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&c(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function c(e,t){var n=l(0,t);return n&&(t.finished=!0,e.emit("finish")),n}
791return t.inherits(s,n),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,n,i){var s=this._writableState,a=!1;return"function"==typeof n&&(i=n,n=null),e.isBuffer(t)?n="buffer":n||(n=s.defaultEncoding),"function"!=typeof i&&(i=function(){}),s.ended?function(e,t,n){var r=new Error("write after end");e.emit("error",r),Sl.nextTick(function(){n(r)})}(this,0,i):function(t,n,r,i){var s=!0;if(!e.isBuffer(r)&&"string"!=typeof r&&null!=r&&!n.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),Sl.nextTick(function(){i(o)}),s=!1}return s}(this,s,t,i)&&(a=function(t,n,i,s,a){i=function(t,n,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof n||(n=new e(n,r));return n}(n,i,s),e.isBuffer(i)&&(s="buffer");var l=n.objectMode?1:i.length;n.length+=l;var c=n.length<n.highWaterMark;c||(n.needDrain=!0);n.writing?n.buffer.push(new r(i,s,a)):o(t,n,l,i,s,a);return c}(this,s,t,n,i)),a},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.ending||r.finished||function(e,t,n){t.ending=!0,c(e,t),n&&(t.finished?Sl.nextTick(n):e.once("finish",n));t.ended=!0}(this,r,n)},o0}function y0(){if(c0)return l0;c0=1,l0=r;var e=_0(),t=f0();function n(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i&&i(t);var s=e._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&e._read(s.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState=new n(t,this);var s=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){i(s,e)}):i(s)})}function i(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}return t.inherits=QZ(),t.inherits(r,e),r.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},r.prototype._transform=function(e,t,n){throw new Error("not implemented")},r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l0}function v0(){return h0||(h0=1,function(e,t){var n=e0();(t=e.exports=m0()).Stream=n,t.Readable=t,t.Writable=g0(),t.Duplex=_0(),t.Transform=y0(),t.PassThrough=function(){if(d0)return u0;d0=1,u0=n;var e=y0(),t=f0();function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=QZ(),t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},u0}()}(aQ,aQ.exports)),aQ.exports}const b0={leveldown:"~0.10.0"};var w0,k0,C0,T0;function S0(){if(k0)return w0;k0=1;var e,t,n=jJ(),r=eQ().LevelUPError,i=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],s={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},o=function(){function e(e){return null==e||lE.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},i.forEach(function(n){t[n]||(t[n]={encode:function(t){return e(t)?t:new lE(t,n)},decode:function(e){return e.toString(n)},buffer:!0,type:n})}),t}(),a=(t={}
791,i.forEach(function(e){t[e]={valueEncoding:e}}),t);function l(e,t){var n=t&&t.keyEncoding||e.keyEncoding||"utf8";return o[n]||n}function c(e,t){var n=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return o[n]||n}return w0={defaultOptions:s,copy:function(e,t,n){e.readStream().pipe(t.writeStream()).on("close",n||function(){}).on("error",n||function(e){throw e})},getOptions:function(e,t){var r="string"==typeof t;return!r&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),n(e&&e.options||{},r?a[t]||a[s.valueEncoding]:t)},getLevelDOWN:function(){if(e)return e;var t,n=b0.leveldown,i="Could not locate LevelDOWN, try `npm install leveldown`";try{t=_E.version}catch(CL){throw new r(i)}if(!_E.satisfies(t,n))throw new r("Installed version of LevelDOWN ("+t+") does not match required version ("+n+")");try{return e=_E}catch(CL){throw new r(i)}},dispatchError:function(e,t,n){return"function"==typeof n?n(t):e.emit("error",t)},encodeKey:function(e,t,n){return l(t,n).encode(e)},encodeValue:function(e,t,n){return c(t,n).encode(e)},isValueAsBuffer:function(e,t){return c(e,t).buffer},isKeyAsBuffer:function(e,t){return l(e,t).buffer},decodeValue:function(e,t){return c(t).decode(e)},decodeKey:function(e,t){return l(t).decode(e)}},w0}var x0,E0,I0,A0,P0,O0,L0,D0,R0,M0,N0,j0,U0,$0,B0,F0,q0,V0,H0,z0,G0={exports:{}};function K0(){if(A0)return I0;A0=1,I0=a;var e=E0?x0:(E0=1,x0=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}),t=uJ().Buffer;a.ReadableState=o;var n=NJ().EventEmitter;n.listenerCount||(n.listenerCount=function(e,t){return e.listeners(t).length});var r,i=e0(),s=f0();function o(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(r||(r=WQ().StringDecoder),this.decoder=new r(e.encoding),this.encoding=e.encoding)}function a(e){if(!(this instanceof a))return new a(e);this._readableState=new o(e),this.readable=!0,i.call(this)}function l(e,n,r,i,s){var o=function(e,n){var r=null;t.isBuffer(n)||"string"==typeof n||null==n||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(n,r);if(o)e.emit("error",o);else if(null==r)n.reading=!1,n.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?d(e):g(e)}(e,n);else if(n.objectMode||r&&r.length>0)if(n.ended&&!s){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(n.endEmitted&&s){a=new Error("stream.unshift() after end event");e.emit("error",a)}else!n.decoder||s||i||(r=n.decoder.write(r)),n.length+=n.objectMode?1:r.length,s?n.buffer.unshift(r):(n.reading=!1,n.buffer.push(r)),n.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,Sl.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,n);else s||(n.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(n)}s.inherits=QZ(),s.inherits(a,i),a.prototype.push=function(e,n){var r=this._readableState;return"string"!=typeof e||r.objectMode||(n=n||r.defaultEncoding)!==r.encoding&&(e=new t(e,n),n=""),l(this,r,e,n,!1)},a.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},a.prototype.setEncoding=function(e){r||(r=WQ().StringDecoder),this._readableState.decoder=new r(e),this._readableState.encoding=e};var c=8388608;function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=c)e=c;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?Sl.nextTick(function(){h(e)}):h(e))}function h(e){e.emit("readable")}function p(e){var t,r=e._readableState;function i(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?i(r.pipes):y(r.pipes,i),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(n.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function f(){this._readableState.ranOut&&(this._readableState.ranOut=!1,p(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,r=!1;e.readable=!0,e.pipe=i.prototype.pipe,e.on=e.addListener=i.prototype.on,e.on("readable",function(){var t;for(r=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(r=!1,e._readableState.needReadable=!0)}
791),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,r?Sl.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function _(e,n){var r,i=n.buffer,s=n.length,o=!!n.decoder,a=!!n.objectMode;if(0===i.length)return null;if(0===s)r=null;else if(a)r=i.shift();else if(!e||e>=s)r=o?i.join(""):t.concat(i,s),i.length=0;else{if(e<i[0].length)r=(d=i[0]).slice(0,e),i[0]=d.slice(e);else if(e===i[0].length)r=i.shift();else{r=o?"":new t(e);for(var l=0,c=0,u=i.length;c<u&&l<e;c++){var d=i[0],h=Math.min(e-l,d.length);o?r+=d.slice(0,h):d.copy(r,l,0,h),h<d.length?i[0]=d.slice(h):i.shift(),l+=h}}}return r}function g(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,Sl.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function y(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}return a.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=u(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=_(e,t),t.length-=n.length),0===t.length&&g(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=u(r,t)),null===(n=e>0?_(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&g(this),n},a.prototype._read=function(e){this.emit("error",new Error("not implemented"))},a.prototype.pipe=function(t,r){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1;var o=(!r||!1!==r.end)&&t!==Sl.stdout&&t!==Sl.stderr?l:u;function a(e){e===i&&u()}function l(){t.end()}s.endEmitted?Sl.nextTick(o):i.once("end",o),t.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&p(e)}}(i);function u(){t.removeListener("close",h),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",a),i.removeListener("end",l),i.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function d(e){_(),t.removeListener("error",d),0===n.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",m),_()}function m(){t.removeListener("close",h),_()}function _(){i.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?e(t._events.error)?t._events.error.unshift(d):t._events.error=[d,t._events.error]:t.on("error",d),t.once("close",h),t.once("finish",m),t.emit("pipe",i),s.flowing||(this.on("readable",f),s.flowing=!0,Sl.nextTick(function(){p(i)})),t},a.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},a.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&d(this):this.read(0))}return n},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},a.prototype.pause=function(){m(this,!0),this.emit("pause")},a.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return y(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},a._fromList=_,I0}function W0(){if(O0)return P0;O0=1,P0=i;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},t=f0();t.inherits=QZ();var n=K0(),r=X0();function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||Sl.nextTick(this.end.bind(this))}return t.inherits(i,n),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(e(r.prototype),function(e){i.prototype[e]||(i.prototype[e]=r.prototype[e])}),P0}function X0(){if(D0)return L0;D0=1,L0=s;var e=uJ().Buffer;s.WritableState=i;var t=f0();t.inherits=QZ();var n=e0();function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=!1===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){n?Sl.nextTick(function(){i(r)}):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,0,r,t,i);else{var s=l(e,n);s||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,s=r.encoding,a=r.callback;if(o(e,t,t.objectMode?1:i.length,i,s,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),r?Sl.nextTick(function(){a(e,n,s,i)}):a(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function s(e){var t=W0();if(!(this instanceof s||this instanceof t))return new s(e);this._writableState=new i(e,this),this.writable=!0,n.call(this)}function o(e,t,n,r,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function a(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&c(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function c(e,t){var n=l(0,t);return n&&(t.finished=!0,e.emit("finish")),n}
791return t.inherits(s,n),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,n,i){var s=this._writableState,a=!1;return"function"==typeof n&&(i=n,n=null),e.isBuffer(t)?n="buffer":n||(n=s.defaultEncoding),"function"!=typeof i&&(i=function(){}),s.ended?function(e,t,n){var r=new Error("write after end");e.emit("error",r),Sl.nextTick(function(){n(r)})}(this,0,i):function(t,n,r,i){var s=!0;if(!e.isBuffer(r)&&"string"!=typeof r&&null!=r&&!n.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),Sl.nextTick(function(){i(o)}),s=!1}return s}(this,s,t,i)&&(a=function(t,n,i,s,a){i=function(t,n,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof n||(n=new e(n,r));return n}(n,i,s),e.isBuffer(i)&&(s="buffer");var l=n.objectMode?1:i.length;n.length+=l;var c=n.length<n.highWaterMark;c||(n.needDrain=!0);n.writing?n.buffer.push(new r(i,s,a)):o(t,n,l,i,s,a);return c}(this,s,t,n,i)),a},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.ending||r.finished||function(e,t,n){t.ending=!0,c(e,t),n&&(t.finished?Sl.nextTick(n):e.once("finish",n));t.ended=!0}(this,r,n)},L0}function Y0(){if(M0)return R0;M0=1,R0=r;var e=W0(),t=f0();function n(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i&&i(t);var s=e._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&e._read(s.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState=new n(t,this);var s=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){i(s,e)}):i(s)})}function i(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}return t.inherits=QZ(),t.inherits(r,e),r.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},r.prototype._transform=function(e,t,n){throw new Error("not implemented")},r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},R0}function Z0(){return U0||(U0=1,function(e,t){var n=e0();(t=e.exports=K0()).Stream=n,t.Readable=t,t.Writable=X0(),t.Duplex=W0(),t.Transform=Y0(),t.PassThrough=function(){if(j0)return N0;j0=1,N0=n;var e=Y0(),t=f0();function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=QZ(),t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},N0}()}(G0,G0.exports)),G0.exports}function J0(){if(q0)return F0;q0=1;var e=e0().Stream,t=eJ().inherits,n=jJ(),r=function(){if(B0)return $0;B0=1;var e=Z0().Duplex;function t(n){if(!(this instanceof t))return new t(n);if(this._bufs=[],this.length=0,"function"==typeof n){this._callback=n;var r=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",function(e){e.on("error",r)}),this.on("unpipe",function(e){e.removeListener("error",r)})}else lE.isBuffer(n)?this.append(n):Array.isArray(n)&&n.forEach(function(e){lE.isBuffer(e)&&this.append(e)}.bind(this));e.call(this)}return eJ().inherits(t,e),t.prototype._offset=function(e){for(var t,n=0,r=0;r<this._bufs.length;r++){if(e<(t=n+this._bufs[r].length))return[r,e-n];n=t}},t.prototype.append=function(e){return this._bufs.push(lE.isBuffer(e)?e:new lE(e)),this.length+=e.length,this},t.prototype._write=function(e,t,n){this.append(e),n&&n()},t.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},t.prototype.end=function(t){e.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},t.prototype.get=function(e){return this.slice(e,e+1)[0]},t.prototype.slice=function(e,t){return this.copy(null,0,e,t)},t.prototype.copy=function(e,t,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||new lE(0);if(r<=0)return e||new lE(0);var i,s,o=!!e,a=this._offset(n),l=r-n,c=l,u=o&&t||0,d=a[1];if(0===n&&r==this.length){if(!o)return lE.concat(this._bufs);for(s=0;s<this._bufs.length;s++)this._bufs[s].copy(e,u),u+=this._bufs[s].length;return e}if(c<=this._bufs[a[0]].length-d)return o?this._bufs[a[0]].copy(e,t,d,d+c):this._bufs[a[0]].slice(d,d+c);for(o||(e=new lE(l)),s=a[0];s<this._bufs.length;s++){if(!(c>(i=this._bufs[s].length-d))){this._bufs[s].copy(e,u,d,d+c);break}this._bufs[s].copy(e,u,d),u+=i,c-=i,d&&(d=0)}return e},t.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},t.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},t.prototype.duplicate=function(){for(var e=0,n=new t;e<this._bufs.length;e++)n.append(this._bufs[e]);return n},t.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var n in e)(function(n){t.prototype[n]=function(t){return this.slice(t,t+e[n])[n](0)}})(n)}(),$0=t}(),i=Wa.setImmediate||Sl.nextTick,s=S0().getOptions,o={type:"put"};function a(t,r){if(!(this instanceof a))return new a(t,r);e.call(this),this._options=n(o,s(r,t)),this._db=r,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var l=this,c=function(){l.writable&&(l._status="ready",l.emit("ready"),l._process())};r.isOpen()?i(c):r.once("ready",c)}return t(a,e),a.prototype.write=function(e){return!!this.writable&&(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),!(this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength)||(this._writeBlock=!0,!1))},a.prototype.end=function(e){var t=this;e&&this.write(e),i(function(){t._end=!0,t._process()})},a.prototype.destroy=function(){this.writable=!1,this.end()},a.prototype.destroySoon=function(){this.end()},a.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},a.prototype._processDelayed=function(){var e=this;i(function(){e._process()})},a.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map(function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}}),function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}}),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},a.prototype._write=function(e){var t=e.path||e.props.path,n=this;t&&e.pipe(r(function(e,r){if(e)return n.writable=!1,n.emit("error",e);n._options.fstreamRoot&&t.indexOf(n._options.fstreamRoot)>
791-1&&(t=t.substr(n._options.fstreamRoot.length+1)),n.write({key:t,value:r.slice(0)})}))},a.prototype.toString=function(){return"LevelUP.WriteStream"},F0=a}function Q0(){if(z0)return RJ.exports;z0=1;var e=NJ().EventEmitter,t=eJ().inherits,n=jJ(),r=(UJ||(UJ=1,function(e){var t,n;t=qJ,n=function(){var e="function"==typeof Object.defineProperty?function(e,t,n){return Object.defineProperty(e,t,n),e}:function(e,t,n){return e[t]=n.value,e};return function(t,n,r,i){var s;if(i=function(e,t){var n="object"==typeof t,r=!n&&"string"==typeof t,i=function(e){return n?!!t[e]:!!r&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(r,i),"object"==typeof n){for(s in n)Object.hasOwnProperty.call(n,s)&&(i.value=n[s],e(t,s,i));return t}return e(t,n,i)}},e.exports?e.exports=n():t.prr=n()}(FJ)),FJ.exports),i=function(){if(BJ)return $J;BJ=1;var e=eJ(),t=YY().AbstractLevelDOWN;function n(e){t.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}return e.inherits(n,t),n.prototype.setDb=function(e){this._db=e,this._operations.forEach(function(t){e[t.method].apply(e,t.args)})},n.prototype._open=function(e,t){return Sl.nextTick(t)},n.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach(function(e){n.prototype["_"+e]=function(){this._operation(e,arguments)}}),n.prototype._isBuffer=function(e){return lE.isBuffer(e)},n.prototype._iterator=function(){throw new TypeError("not implemented")},$J=n}(),s=eQ().WriteError,o=eQ().ReadError,a=eQ().NotFoundError,l=eQ().OpenError,c=eQ().EncodingError,u=eQ().InitializationError,d=function(){if(T0)return C0;T0=1;var e=v0().Readable,t=eJ().inherits,n=jJ(),r=eQ().EncodingError,i=S0(),s={keys:!0,values:!0},o=function(e,t){return{key:i.decodeKey(e,this._options),value:i.decodeValue(t,this._options)}},a=function(e){return i.decodeKey(e,this._options)},l=function(e,t){return i.decodeValue(t,this._options)},c=function(){return null};function u(t,r,d){if(!(this instanceof u))return new u(t,r,d);e.call(this,{objectMode:!0,highWaterMark:t.highWaterMark}),this._db=r,t=this._options=n(s,t),this._keyEncoding=t.keyEncoding||t.encoding,this._valueEncoding=t.valueEncoding||t.encoding,void 0!==this._options.start&&(this._options.start=i.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=i.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=i.isKeyAsBuffer(this._options),this._options.valueAsBuffer=i.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?o:this._options.keys?a:this._options.values?l:c;var h=this;this._db.isOpen()?this._iterator=d(this._options):this._db.once("ready",function(){h._destroyed||(h._iterator=d(h._options))})}return t(u,e),u.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",function(){e.call(t)});t._destroyed||t._iterator.next(function(e,n,i){if(e||void 0===n&&void 0===i)return e||t._destroyed||t.push(null),t._cleanup(e);try{i=t._makeData(n,i)}catch(CL){return t._cleanup(new r(CL))}t._destroyed||t.push(i)})},u.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end(function(){t._iterator=null,t.emit("close")}):t.emit("close")}},u.prototype.destroy=function(){this._cleanup()},u.prototype.toString=function(){return"LevelUP.ReadStream"},C0=u}(),h=J0(),p=S0(),f=function(){if(H0)return V0;H0=1;var e=S0(),t=eQ().WriteError,n=e.getOptions,r=e.dispatchError;function i(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}return i.prototype.put=function(r,i,s){s=n(this._levelup,s);var o=e.encodeKey(r,s),a=e.encodeValue(i,s);try{this.batch.put(o,a)}catch(CL){throw new t(CL)}return this.ops.push({type:"put",key:o,value:a}),this},i.prototype.del=function(r,i){i=n(this._levelup,i);var s=e.encodeKey(r,i);try{this.batch.del(s)}catch(o){throw new t(o)}return this.ops.push({type:"del",key:s}),this},i.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new t(e)}return this.ops=[],this},i.prototype.write=function(e){var n=this._levelup,i=this.ops;try{this.batch.write(function(s){if(s)return r(n,new t(s),e);n.emit("batch",i),e&&e()})}catch(s){throw new t(s)}},V0=i}(),m=p.getOptions,_=p.defaultOptions,g=p.getLevelDOWN,y=p.dispatchError;function v(e,t){return"function"==typeof e?e:t}
791function b(t,i,s){if(!(this instanceof b))return new b(t,i,s);var o;if(e.call(this),this.setMaxListeners(1/0),"function"==typeof t?((i="object"==typeof i?i:{}).db=t,t=null):"object"==typeof t&&"function"==typeof t.db&&(i=t,t=null),"function"==typeof i&&(s=i,i={}),(!i||"function"!=typeof i.db)&&"string"!=typeof t){if(o=new u("Must provide a location for the database"),s)return Sl.nextTick(function(){s(o)});throw o}i=m(this,i),this.options=n(_,i),this._status="new",r(this,"location",t,"e"),this.open(s)}function w(e){return function(t,n){g()[e](t,n||function(){})}}return t(b,e),b.prototype.open=function(e){var t,n,r=this;return this.isOpen()?(e&&Sl.nextTick(function(){e(null,r)}),this):this._isOpening()?e&&this.once("open",function(){e(null,r)}):(this.emit("opening"),this._status="opening",this.db=new i(this.location),t=this.options.db||g(),void(n=t(this.location)).open(this.options,function(t){if(t)return y(r,new l(t),e);r.db.setDb(n),r.db=n,r._status="open",e&&e(null,r),r.emit("open"),r.emit("ready")}))},b.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close(function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)}),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return Sl.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",function(){t.close(e)})}},b.prototype.isOpen=function(){return"open"==this._status},b.prototype._isOpening=function(){return"opening"==this._status},b.prototype.isClosed=function(){return/^clos/.test(this._status)},b.prototype.get=function(e,t,n){var r,i=this;return"function"!=typeof(n=v(t,n))?y(this,new o("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=p.getOptions(this,t),r=p.encodeKey(e,t),t.asBuffer=p.isValueAsBuffer(t),void this.db.get(r,t,function(r,s){if(r)return r=/notfound/i.test(r)?new a("Key not found in database ["+e+"]",r):new o(r),y(i,r,n);if(n){try{s=p.decodeValue(s,t)}catch(CL){return n(new c(CL))}n(null,s)}})):y(this,new o("Database is not open"),n)},b.prototype.put=function(e,t,n,r){var i,o,a=this;return r=v(n,r),null==e||null==t?y(this,new s("put() requires key and value arguments"),r):this._isOpening()||this.isOpen()?(n=m(this,n),i=p.encodeKey(e,n),o=p.encodeValue(t,n),void this.db.put(i,o,n,function(n){if(n)return y(a,new s(n),r);a.emit("put",e,t),r&&r()})):y(this,new s("Database is not open"),r)},b.prototype.del=function(e,t,n){var r,i=this;return n=v(t,n),null==e?y(this,new s("del() requires a key argument"),n):this._isOpening()||this.isOpen()?(t=m(this,t),r=p.encodeKey(e,t),void this.db.del(r,t,function(t){if(t)return y(i,new s(t),n);i.emit("del",e),n&&n()})):y(this,new s("Database is not open"),n)},b.prototype.batch=function(e,t,n){var r,i,o,a=this;return arguments.length?(n=v(t,n),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=m(this,t),r=t.keyEncoding,i=t.valueEncoding,o=e.map(function(e){if(void 0===e.type||void 0===e.key)return{};var n,s=e.keyEncoding||r,o=e.valueEncoding||e.encoding||i;return"utf8"!=s&&"binary"!=s||"utf8"!=o&&"binary"!=o?(n={type:e.type,key:p.encodeKey(e.key,t,e)},void 0!==e.value&&(n.value=p.encodeValue(e.value,t,e)),n):e}),void this.db.batch(o,t,function(t){if(t)return y(a,new s(t),n);a.emit("batch",e),n&&n()})):y(this,new s("Database is not open"),n):y(this,new s("batch() requires an array argument"),n)):new f(this)},b.prototype.approximateSize=function(e,t,n){var r,i,a=this;return null==e||null==t||"function"!=typeof n?y(this,new o("approximateSize() requires start, end and callback arguments"),n):(r=p.encodeKey(e,this.options),i=p.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(r,i,function(e,t){if(e)return y(a,new l(e),n);n&&n(null,t)}):y(this,new s("Database is not open"),n))},b.prototype.readStream=b.prototype.createReadStream=function(e){var t=this;return e=n(this.options,e),new d(e,this,function(e){return t.db.iterator(e)})},b.prototype.keyStream=b.prototype.createKeyStream=function(e){return this.createReadStream(n(e,{keys:!0,values:!1}))},b.prototype.valueStream=b.prototype.createValueStream=function(e){return this.createReadStream(n(e,{keys:!1,values:!0}))},b.prototype.writeStream=b.prototype.createWriteStream=function(e){return new h(n(e),this)},b.prototype.toString=function(){return"LevelUP"},RJ.exports=b,RJ.exports.copy=p.copy,RJ.exports.destroy=w("destroy"),RJ.exports.repair=w("repair"),RJ.exports}var e1,t1,n1,r1,i1,s1,o1,a1,l1,c1,u1={};function d1(){if(r1)return n1;r1=1,n1=a;var e=t1?e1:(t1=1,e1=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}),t=uJ().Buffer;a.ReadableState=o;var n=NJ().EventEmitter;n.listenerCount||(n.listenerCount=function(e,t){return e.listeners(t).length});var r,i=e0(),s=f0();function o(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(r||(r=WQ().StringDecoder),this.decoder=new r(e.encoding),this.encoding=e.encoding)}function a(e){if(!(this instanceof a))return new a(e);this._readableState=new o(e),this.readable=!0,i.call(this)}function l(e,n,r,i,s){var o=function(e,n){var r=null;t.isBuffer(n)||"string"==typeof n||null==n||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(n,r);if(o)e.emit("error",o);else if(null==r)n.reading=!1,n.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?d(e):g(e)}(e,n);else if(n.objectMode||r&&r.length>0)if(n.ended&&!s){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(n.endEmitted&&s){a=new Error("stream.unshift() after end event");e.emit("error",a)}else!n.decoder||s||i||(r=n.decoder.write(r)),n.length+=n.objectMode?1:r.length,s?n.buffer.unshift(r):(n.reading=!1,n.buffer.push(r)),n.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,Sl.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,n);else s||(n.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(n)}s.inherits=QZ(),s.inherits(a,i),a.prototype.push=function(e,n){var r=this._readableState;return"string"!=typeof e||r.objectMode||(n=n||r.defaultEncoding)!==r.encoding&&(e=new t(e,n),n=""),l(this,r,e,n,!1)},a.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},a.prototype.setEncoding=function(e){r||(r=WQ().StringDecoder),this._readableState.decoder=new r(e),this._readableState.encoding=e};var c=8388608;function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=c)e=c;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?Sl.nextTick(function(){h(e)}):h(e))}function h(e){e.emit("readable")}function p(e){var t,r=e._readableState;function i(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?i(r.pipes):y(r.pipes,i),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(n.listenerCount(e,"data")>0&&m(e));r.ranOut=!0}function f(){this._readableState.ranOut&&(this._readableState.ranOut=!1,p(this))}function m(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,r=!1;e.readable=!0,e.pipe=i.prototype.pipe,e.on=e.addListener=i.prototype.on,e.on("readable",function(){var t;for(r=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(r=!1,e._readableState.needReadable=!0)}
791),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,r?Sl.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function _(e,n){var r,i=n.buffer,s=n.length,o=!!n.decoder,a=!!n.objectMode;if(0===i.length)return null;if(0===s)r=null;else if(a)r=i.shift();else if(!e||e>=s)r=o?i.join(""):t.concat(i,s),i.length=0;else{if(e<i[0].length)r=(d=i[0]).slice(0,e),i[0]=d.slice(e);else if(e===i[0].length)r=i.shift();else{r=o?"":new t(e);for(var l=0,c=0,u=i.length;c<u&&l<e;c++){var d=i[0],h=Math.min(e-l,d.length);o?r+=d.slice(0,h):d.copy(r,l,0,h),h<d.length?i[0]=d.slice(h):i.shift(),l+=h}}}return r}function g(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,Sl.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function y(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}return a.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=u(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=_(e,t),t.length-=n.length),0===t.length&&g(this),n;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=u(r,t)),null===(n=e>0?_(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&g(this),n},a.prototype._read=function(e){this.emit("error",new Error("not implemented"))},a.prototype.pipe=function(t,r){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1;var o=(!r||!1!==r.end)&&t!==Sl.stdout&&t!==Sl.stderr?l:u;function a(e){e===i&&u()}function l(){t.end()}s.endEmitted?Sl.nextTick(o):i.once("end",o),t.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&p(e)}}(i);function u(){t.removeListener("close",h),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",a),i.removeListener("end",l),i.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function d(e){_(),t.removeListener("error",d),0===n.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",m),_()}function m(){t.removeListener("close",h),_()}function _(){i.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?e(t._events.error)?t._events.error.unshift(d):t._events.error=[d,t._events.error]:t.on("error",d),t.once("close",h),t.once("finish",m),t.emit("pipe",i),s.flowing||(this.on("readable",f),s.flowing=!0,Sl.nextTick(function(){p(i)})),t},a.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",f),t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},a.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||m(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&d(this):this.read(0))}return n},a.prototype.addListener=a.prototype.on,a.prototype.resume=function(){m(this),this.read(0),this.emit("resume")},a.prototype.pause=function(){m(this,!0),this.emit("pause")},a.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return y(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n&&(n=!1,e.resume())},r},a._fromList=_,n1}function h1(){if(s1)return i1;s1=1,i1=i;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},t=f0();t.inherits=QZ();var n=d1(),r=p1();function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||Sl.nextTick(this.end.bind(this))}return t.inherits(i,n),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(e(r.prototype),function(e){i.prototype[e]||(i.prototype[e]=r.prototype[e])}),i1}function p1(){if(a1)return o1;a1=1,o1=s;var e=uJ().Buffer;s.WritableState=i;var t=f0();t.inherits=QZ();var n=e0();function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=!1===e.decodeStrings;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){n?Sl.nextTick(function(){i(r)}):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,0,r,t,i);else{var s=l(e,n);s||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var r=t.buffer[n],i=r.chunk,s=r.encoding,a=r.callback;if(o(e,t,t.objectMode?1:i.length,i,s,a),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),r?Sl.nextTick(function(){a(e,n,s,i)}):a(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function s(e){var t=h1();if(!(this instanceof s||this instanceof t))return new s(e);this._writableState=new i(e,this),this.writable=!0,n.call(this)}function o(e,t,n,r,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function a(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),r(),n&&c(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function c(e,t){var n=l(0,t);return n&&(t.finished=!0,e.emit("finish")),n}
791return t.inherits(s,n),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,n,i){var s=this._writableState,a=!1;return"function"==typeof n&&(i=n,n=null),e.isBuffer(t)?n="buffer":n||(n=s.defaultEncoding),"function"!=typeof i&&(i=function(){}),s.ended?function(e,t,n){var r=new Error("write after end");e.emit("error",r),Sl.nextTick(function(){n(r)})}(this,0,i):function(t,n,r,i){var s=!0;if(!e.isBuffer(r)&&"string"!=typeof r&&null!=r&&!n.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),Sl.nextTick(function(){i(o)}),s=!1}return s}(this,s,t,i)&&(a=function(t,n,i,s,a){i=function(t,n,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof n||(n=new e(n,r));return n}(n,i,s),e.isBuffer(i)&&(s="buffer");var l=n.objectMode?1:i.length;n.length+=l;var c=n.length<n.highWaterMark;c||(n.needDrain=!0);n.writing?n.buffer.push(new r(i,s,a)):o(t,n,l,i,s,a);return c}(this,s,t,n,i)),a},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.ending||r.finished||function(e,t,n){t.ending=!0,c(e,t),n&&(t.finished?Sl.nextTick(n):e.once("finish",n));t.ended=!0}(this,r,n)},o1}var f1,m1,_1,g1,y1,v1,b1,w1,k1={exports:{}};function C1(){if(m1)return f1;m1=1,f1=r;var e=h1(),t=f0();function n(e,t){this.afterTransform=function(e,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i&&i(t);var s=e._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&e._read(s.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState=new n(t,this);var s=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){i(s,e)}):i(s)})}function i(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}return t.inherits=QZ(),t.inherits(r,e),r.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},r.prototype._transform=function(e,t,n){throw new Error("not implemented")},r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},f1}function T1(){return y1||(y1=1,function(e,t){var n=e0();(t=e.exports=d1()).Stream=n,t.Readable=t,t.Writable=p1(),t.Duplex=h1(),t.Transform=C1(),t.PassThrough=function(){if(g1)return _1;g1=1,_1=n;var e=C1(),t=f0();function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=QZ(),t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},_1}()}(k1,k1.exports)),k1.exports}function S1(){return w1||(w1=1,e=u1,t=c1?l1:(c1=1,l1=p1()),n=T1(),r=b1?v1:(b1=1,v1=h1()),i=new lE(0),s=function(){},o=function(e){return"function"==typeof e?e:function(t){t(null,e)}},a=function(e,t){var n=!1,r=!1;return e._read=function(){n=!0},e.destroy=function(){r=!0},t(function(t,i){if(t)return e.emit("error",t);var s=function(){for(var t;null!==(t=i.read());)n=!1,e.push(t)};if(i.on("readable",function(){n&&s()}),i.on("end",function(){s(),e.push(null)}),i.on("error",function(t){e.emit("error",t)}),i.on("close",function(){s(),Sl.nextTick(function(){e.emit("close")})}),e._read=function(){n=!0,s()},e.destroy=function(){r||(r=!0,i.destroy&&i.destroy())},r)return r=!1,void e.destroy();n&&s()}),e},l=function(e,t){var n=s,r=!1;return e._write=function(e,t,r){n=r},e.destroy=function(){r=!0},e.write(i),t(function(t,s){if(t)return e.emit("error",t);s.on("close",function(){e.emit("close")}),s.on("error",function(t){e.emit("error",t)}),e._write=function(e,t,n){if(e===i)return n();s.write(e,t,n)};var o=e.emit;if(s.on("finish",function(){o.call(e,"finish")}),e.destroy=function(){r||(r=!0,s.destroy&&s.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);s.end()},r)return r=!1,void e.destroy();n()}),e},e.readable=function(t,r){return 1===arguments.length?e.readable(null,t):(t||(t={}),a(new n(t),o(r)))},e.writable=function(n,r){return 1===arguments.length?e.writable(null,n):(n||(n={}),l(new t(n),o(r)))},e.duplex=function(t,n,i){if(2===arguments.length)return e.duplex(null,t,n);t||(t={});var s=new r(t);return l(s,o(n)),a(s,o(i)),s}),u1;var e,t,n,r,i,s,o,a,l}var x1,E1={exports:{}},I1={};function A1(){return x1||(x1=1,function(e){var t=e.range=function(e){return null==e?{}:"string"==typeof t?{min:t,max:t+"ÿ"}:e};e.prefix=function(t,n,r){var i={};return r=r||"ÿ",(t=e.range(t))instanceof RegExp||"function"==typeof t?(i.min=n,i.max=n+r,i.inner=function(e){var r=e.substring(n.length);return t.test?t.test(r):t(r)}):"object"==typeof t&&(i.min=n+(t.min||t.start||""),i.max=n+(t.max||t.end||r||"~"),i.reverse=!!t.reverse),i};var n=e.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var n=e.min||e.start,r=e.max||e.end;return t=String(t),(!n||t>=n)&&(!r||t<=r)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0};e.satisfies=function(e,t){return n(t)(e)}}(I1)),I1}var P1,O1,L1,D1={exports:{}};function R1(){if(L1)return O1;L1=1;var e=(P1||(P1=1,function(){function e(e){return Object.prototype.toString.call(e)}var t=function(t){return Array.isArray(t)||"object"==typeof t&&"[object Array]"===e(t)},n=function(t){return"object"==typeof t&&"[object Date]"===e(t)},r=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},i=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t};function s(e,s,o,a){var l=[],c=[],u=void 0!==lE;return void 0===s&&(s=!0),void 0===o&&(o=1/0),function e(o,d){if(null===o)return null;if(0==d)return o;var h,p;if("object"!=typeof o)return o;if(t(o))h=[];else if(r(o))h=new RegExp(o.source,i(o)),o.lastIndex&&(h.lastIndex=o.lastIndex);else if(n(o))h=new Date(o.getTime());else{if(u&&lE.isBuffer(o))return h=new lE(o.length),o.copy(h),h;
791void 0===a?(p=Object.getPrototypeOf(o),h=Object.create(p)):(h=Object.create(a),p=a)}if(s){var f=l.indexOf(o);if(-1!=f)return c[f];l.push(o),c.push(h)}for(var m in o){var _;p&&(_=Object.getOwnPropertyDescriptor(p,m)),_&&null==_.set||(h[m]=e(o[m],d-1))}return h}(e,o)}D1.exports=s,s.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}}()),D1.exports);return O1=function(t){var n=(t=e(t)).reverse,r=t.max||t.end,i=t.min||t.start,s=[i,r];return null!=i&&null!=r&&s.sort(),n&&(s=s.reverse()),t.start=s[0],t.end=s[1],delete t.min,delete t.max,t},O1}var M1,N1,j1,U1,$1,B1,F1,q1,V1,H1,z1,G1,K1,W1,X1,Y1,Z1,J1,Q1,e2,t2,n2,r2,i2,s2,o2,a2,l2={exports:{}},c2={exports:{}};function u2(){return U1||(U1=1,t=Object.prototype.hasOwnProperty,n=function(){if(M1)return c2.exports;M1=1; 792/**! 793 * is 794 * the definitive JavaScript type testing library 795 * 796 * @copyright 2013 Enrico Marino 797 * @license MIT 798 */ 799var e=Object.prototype,t=e.hasOwnProperty,n=e.toString,r=function(e){return e!=e},i={boolean:1,number:1,string:1,undefined:1},s=c2.exports={};return s.a=s.type=function(e,t){return typeof e===t},s.defined=function(e){return void 0!==e},s.empty=function(e){var r,i=n.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(r in e)if(t.call(e,r))return!1;return!0}return"[object String]"===i&&""===e},s.equal=function(e,t){var r,i=n.call(e);if(i!==n.call(t))return!1;if("[object Object]"===i){for(r in e)if(!s.equal(e[r],t[r]))return!1;return!0}if("[object Array]"===i){if((r=e.length)!==t.length)return!1;for(;--r;)if(!s.equal(e[r],t[r]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},s.hosted=function(e,t){var n=typeof t[e];return"object"===n?!!t[e]:!i[n]},s.instance=s.instanceof=function(e,t){return e instanceof t},s.null=function(e){return null===e},s.undefined=function(e){return void 0===e},s.arguments=function(e){var t="[object Arguments]"===n.call(e),r=!s.array(e)&&s.arraylike(e)&&s.object(e)&&s.fn(e.callee);return t||r},s.array=function(e){return"[object Array]"===n.call(e)},s.arguments.empty=function(e){return s.arguments(e)&&0===e.length},s.array.empty=function(e){return s.array(e)&&0===e.length},s.arraylike=function(e){return!!e&&!s.boolean(e)&&t.call(e,"length")&&isFinite(e.length)&&s.number(e.length)&&e.length>=0},s.boolean=function(e){return"[object Boolean]"===n.call(e)},s.false=function(e){return s.boolean(e)&&(!1===e||!1===e.valueOf())},s.true=function(e){return s.boolean(e)&&(!0===e||!0===e.valueOf())},s.date=function(e){return"[object Date]"===n.call(e)},s.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},s.error=function(e){return"[object Error]"===n.call(e)},s.fn=s.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===n.call(e)},s.number=function(e){return"[object Number]"===n.call(e)},s.infinite=function(e){return e===1/0||e===-1/0},s.decimal=function(e){return s.number(e)&&!r(e)&&!s.infinite(e)&&e%1!=0},s.divisibleBy=function(e,t){var n=s.infinite(e),i=s.infinite(t),o=s.number(e)&&!r(e)&&s.number(t)&&!r(t)&&0!==t;return n||i||o&&e%t===0},s.int=function(e){return s.number(e)&&!r(e)&&e%1==0},s.maximum=function(e,t){if(r(e))throw new TypeError("NaN is not a valid value");if(!s.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e<t[n])return!1;return!0},s.minimum=function(e,t){if(r(e))throw new TypeError("NaN is not a valid value");if(!s.arraylike(t))throw new TypeError("second argument must be array-like");for(var n=t.length;--n>=0;)if(e>t[n])return!1;return!0},s.nan=function(e){return!s.number(e)||e!=e},s.even=function(e){return s.infinite(e)||s.number(e)&&e==e&&e%2==0},s.odd=function(e){return s.infinite(e)||s.number(e)&&e==e&&e%2!=0},s.ge=function(e,t){if(r(e)||r(t))throw new TypeError("NaN is not a valid value");return!s.infinite(e)&&!s.infinite(t)&&e>=t},s.gt=function(e,t){if(r(e)||r(t))throw new TypeError("NaN is not a valid value");return!s.infinite(e)&&!s.infinite(t)&&e>t},s.le=function(e,t){if(r(e)||r(t))throw new TypeError("NaN is not a valid value");return!s.infinite(e)&&!s.infinite(t)&&e<=t},s.lt=function(e,t){if(r(e)||r(t))throw new TypeError("NaN is not a valid value");return!s.infinite(e)&&!s.infinite(t)&&e<t},s.within=function(e,t,n){if(r(e)||r(t)||r(n))throw new TypeError("NaN is not a valid value");if(!s.number(e)||!s.number(t)||!s.number(n))throw new TypeError("all arguments must be numbers");return s.infinite(e)||s.infinite(t)||s.infinite(n)||e>=t&&e<=n},s.object=function(e){return e&&"[object Object]"===n.call(e)},s.hash=function(e){return s.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},s.regexp=function(e){return"[object RegExp]"===n.call(e)},s.string=function(e){return"[object String]"===n.call(e)},c2.exports}(),r=function(){if(j1)return N1;j1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return N1=function(n,r,i){if("[object Function]"!==t.call(r))throw new TypeError("iterator must be a function");var s=n.length;if(s===+s)for(var o=0;o<s;o++)r.call(i,n[o],o,n);else for(var a in n)e.call(n,a)&&r.call(i,n[a],a,n)},N1}(),i=!{toString:null}
799.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=function(e){if(!n.object(e)&&!n.array(e))throw new TypeError("Object.keys called on a non-object");var o,a=[];for(o in e)t.call(e,o)&&a.push(o);return i&&r(s,function(n){t.call(e,n)&&a.push(n)}),a},l2.exports=e),l2.exports;var e,t,n,r,i,s}function d2(){if(H1)return V1;H1=1;var e=B1?$1:(B1=1,$1=Object.keys||u2()),t=q1?F1:(q1=1,F1=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)});return V1=function(){for(var n={},r=0;r<arguments.length;r++){var i=arguments[r];if(t(i))for(var s=e(i),o=0;o<s.length;o++){var a=s[o];n[a]=i[a]}}return n},V1}function h2(){if(G1)return z1;function e(e,t,n,r){var i={type:e,key:t,value:n,options:r};return r&&r.prefix&&(i.prefix=r.prefix,delete r.prefix),this._operations.push(i),this}function t(t){this._operations=[],this._sdb=t,this.put=e.bind(this,"put"),this.del=e.bind(this,"del")}G1=1;var n=t.prototype;return n.clear=function(){this._operations=[]},n.write=function(e){this._sdb.batch(this._operations,e)},z1=t}function p2(){if(Z1)return Y1;Z1=1,NJ().EventEmitter,Sl.nextTick;var e=function(){if(K1)return E1.exports;K1=1;var e=NJ().EventEmitter,t=eJ().inherits,n=A1(),r=R1(),i=d2(),s=h2();function o(e,t,n){if("string"==typeof n&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),n={sep:n}),!(this instanceof o))return new o(e,t,n);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(n=n||{}).sep=n.sep||"ÿ",this._parent=e,this._options=n,this.options=n,this._prefix=t,this._root=l(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var r=this;this.hooks={pre:function(){return r.pre.apply(r,arguments)},post:function(){return r.post.apply(r,arguments)}}}t(o,e);var a=o.prototype;function l(e){return e._parent?l(e._parent):e}return a._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},a._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:i(e,this._options),cb:t}},a.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new o(this,e,t||this._options)},a.put=function(e,t,n,r){var i=this._getOptsAndCb(n,r);this._root.put(this.prefix(e),t,i.opts,i.cb)},a.get=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.get(this.prefix(e),r.opts,r.cb)},a.del=function(e,t,n){var r=this._getOptsAndCb(t,n);this._root.del(this.prefix(e),r.opts,r.cb)},a.batch=function(e,t,n){if(!Array.isArray(e))return new s(this);var r=this,i=this._getOptsAndCb(t,n);e.forEach(function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||r).prefix(e.key),e.prefix&&(e.prefix=null)}),this._root.batch(e,i.opts,i.cb)},a._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},a._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},a.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},a.keyStream=a.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},a.valueStream=a.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},a.readStream=a.createReadStream=function(e){e=e||{};var t=l(this),r=this.prefix(),s=n.prefix(e,r);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})}(s,i(e,this._options));var o=t.createReadStream(s);if(!1===s.values){var a;if(a=o.read)o.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(r.length)),t};else{var c=o.emit;o.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(r.length)):c.call(this,e,t)}}return o}return!1===s.keys||((a=o.read)?o.read=function(e){var t=a.call(this,e);return t&&(t.key=t.key.substring(r.length)),t}:o.on("data",function(e){e.key=e.key.substring(r.length)})),o},a.writeStream=a.createWriteStream=function(){var e=l(this),t=this.prefix(),n=e.createWriteStream.apply(e,arguments),r=n.write,i=this._options.encoding,s=this._options.valueEncoding,o=this._options.keyEncoding,a=!i&&!s&&!o;return n.write=a?function(e){return e.key=t+e.key,r.call(n,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),s&&void 0===e.valueEncoding&&(e.valueEncoding=s),o&&void 0===e.keyEncoding&&(e.keyEncoding=o),r.call(n,e)},n},a.approximateSize=function(){var e=l(db);return e.approximateSize.apply(e,arguments)},a.pre=function(e,t){t||(t=e,e=null),e=n.prefix(e,this.prefix(),this._options.sep);var i=l(this._parent),s=this.prefix();return i.hooks.pre(r(e),function(e,n,r){t({key:e.key.substring(s.length),value:e.value,type:e.type},function(e,t){n(e,e.prefix?t:t||s)},r)})},a.post=function(e,t){t||(t=e,e=null);var i=l(this._parent),s=this.prefix();return e=n.prefix(e,s,this._options.sep),i.hooks.post(r(e),function(e){t({key:e.key.substring(s.length),value:e.value,type:e.type})})},E1.exports=o,E1.exports}(),t=h2(),n=R1(),r=function(){if(X1)return W1;X1=1;var e=A1();return W1=function(t){if(!t.hooks){var n=[],r=[];t.hooks={post:function(t,r){r||(r=t,t="");var i={test:e.checker(t),hook:r};return n.push(i),l(n,i)},pre:function(t,n){n||(n=t,t="");var i={test:e.checker(t),hook:n,safe:!1!==t.safe};return r.push(i),l(r,i)},posthooks:n,prehooks:r},t.on("put",function(e,t){c({type:"put",key:e,value:t})}),t.on("del",function(e,t){c({type:"del",key:e,value:t})}),t.on("batch",function(e){e.forEach(c)});var i=t.put,s=t.del,o=t.batch;t.put=function(e,t,n,r){return u(!1,[{key:e,value:t,type:"put"}],n,r)},t.del=function(e,t,n){return u(!1,[{key:e,type:"del"}],t,n)},t.batch=function(e,t,n){return u(!0,e,t,n)}}function a(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function l(e,t){return function(){var n=e.indexOf(t);return!!~n&&(e.splice(n,1),!0)}}
799function c(e){e&&e.type&&n.forEach(function(t){t.test(e.key)&&t.hook(e)})}function u(e,n,l,c){try{n.forEach(function e(t,i){r.forEach(function(r){if(r.test(String(t.key))){var s={add:function(t,s){if(void 0===t)return this;if(!1===t)return delete n[i];var o=a(t.prefix)||a(s)||r.prefix||"";if(o&&(t.prefix=o),t.key=o+t.key,r.safe&&r.test(String(t.key)))throw new Error("prehook cannot insert into own range");var l=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),c=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return l&&(t.keyEncoding=l),c&&(t.valueEncoding=c),n.push(t),e(t,n.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};r.hook.call(s,t,s.add,n)}})})}catch(d){return(c||l)(d)}if(n=n.filter(function(e){return e&&e.type}),1==n.length&&!e){var u=n[0];return"put"==u.type?i.call(t,u.key,u.value,l,c):s.call(t,u.key,l,c)}return o.call(t,n,l,c)}},W1}();return Y1=function(i,s){function o(){}o.prototype=i;var a=new o;if(a.sublevel)return a;var l=(s=s||{}).sep=s.sep||"ÿ";function c(e){return function(t){return(t=n(t=t||{})).reverse?t.start=t.start||l:t.end=t.end||l,e.call(a,t)}}a._options=s,r(a),a.sublevels={},a.sublevel=function(t,n){return a.sublevels[t]?a.sublevels[t]:new e(a,t,n||this._options)},a.methods={},a.prefix=function(e){return""+(e||"")},a.pre=function(e,t){return t||(t=e,e={max:l}),a.hooks.pre(e,t)},a.post=function(e,t){return t||(t=e,e={max:l}),a.hooks.post(e,t)},a.readStream=a.createReadStream=c(a.createReadStream),a.keyStream=a.createKeyStream=c(a.createKeyStream),a.valuesStream=a.createValueStream=c(a.createValueStream);var u=a.batch;return a.batch=function(e,n,r){if(!Array.isArray(e))return new t(a);e.forEach(function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))}),u.call(a,e,n,r)},a},Y1}function f2(){if(t2)return e2;t2=1,e2=l;var e=Q1?J1:(Q1=1,J1=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}),t=uJ().Buffer;l.ReadableState=a;var n=NJ().EventEmitter;n.listenerCount||(n.listenerCount=function(e,t){return e.listeners(t).length});var r,i=e0(),s=f0();s.inherits=QZ();var o=eJ();function a(e,t){var n=m2(),i=(e=e||{}).highWaterMark,s=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:s,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(r||(r=WQ().StringDecoder),this.decoder=new r(e.encoding),this.encoding=e.encoding)}function l(e){if(m2(),!(this instanceof l))return new l(e);this._readableState=new a(e,this),this.readable=!0,i.call(this)}function c(e,t,n,r,i){var a=function(e,t){var n=null;s.isBuffer(t)||s.isString(t)||s.isNullOrUndefined(t)||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(a)e.emit("error",a);else if(s.isNullOrUndefined(n))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,h(e)}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var l=new Error("stream.push() after EOF");e.emit("error",l)}else if(t.endEmitted&&i){l=new Error("stream.unshift() after end event");e.emit("error",l)}else!t.decoder||i||r||(n=t.decoder.write(n)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&h(e)),function(e,t){t.readingMore||(t.readingMore=!0,Sl.nextTick(function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(o("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)}))}(e,t);else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}o=o&&o.debuglog?o.debuglog("stream"):function(){},s.inherits(l,i),l.prototype.push=function(e,n){var r=this._readableState;return s.isString(e)&&!r.objectMode&&(n=n||r.defaultEncoding)!==r.encoding&&(e=new t(e,n),n=""),c(this,r,e,n,!1)},l.prototype.unshift=function(e){return c(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){return r||(r=WQ().StringDecoder),this._readableState.decoder=new r(e),this._readableState.encoding=e,this};var u=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||s.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=u)e=u;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function h(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Sl.nextTick(function(){p(e)}):p(e))}function p(e){o("emit readable"),e.emit("readable"),f(e)}function f(e){var t=e._readableState;if(o("flow",t.flowing),t.flowing)do{var n=e.read()}while(null!==n&&t.flowing)}function m(e,n){var r,i=n.buffer,s=n.length,o=!!n.decoder,a=!!n.objectMode;if(0===i.length)return null;if(0===s)r=null;else if(a)r=i.shift();else if(!e||e>=s)r=o?i.join(""):t.concat(i,s),i.length=0;else{if(e<i[0].length)r=(d=i[0]).slice(0,e),i[0]=d.slice(e);else if(e===i[0].length)r=i.shift();else{r=o?"":new t(e);for(var l=0,c=0,u=i.length;c<u&&l<e;c++){var d=i[0],h=Math.min(e-l,d.length);
vendor: 11,705 bytes, line 799
799o?r+=d.slice(0,h):d.copy(r,l,0,h),h<d.length?i[0]=d.slice(h):i.shift(),l+=h}}}return r}function _(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,Sl.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}return l.prototype.read=function(e){o("read",e);var t=this._readableState,n=e;if((!s.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):h(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&_(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),(t.ended||t.reading)&&o("reading or ended",i=!1),i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(n,t)),r=e>0?m(e,t):null,s.isNull(r)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),n!==e&&t.ended&&0===t.length&&_(this),s.isNull(r)||this.emit("data",r),r},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,r){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,o("pipe count=%d opts=%j",s.pipesCount,r);var a=(!r||!1!==r.end)&&t!==Sl.stdout&&t!==Sl.stderr?c:d;function l(e){o("onunpipe"),e===i&&d()}function c(){o("onend"),t.end()}s.endEmitted?Sl.nextTick(a):i.once("end",a),t.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n.listenerCount(e,"data")&&(t.flowing=!0,f(e))}}(i);function d(){o("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",l),i.removeListener("end",c),i.removeListener("end",d),i.removeListener("data",h),!s.awaitDrain||t._writableState&&!t._writableState.needDrain||u()}function h(e){o("ondata"),!1===t.write(e)&&(o("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,i.pause())}function p(e){o("onerror",e),g(),t.removeListener("error",p),0===n.listenerCount(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),g()}function _(){o("onfinish"),t.removeListener("close",m),g()}function g(){o("unpipe"),i.unpipe(t)}return t.on("drain",u),i.on("data",h),t._events&&t._events.error?e(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",m),t.once("finish",_),t.emit("pipe",i),s.flowing||(o("pipe resume"),i.resume()),t},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var r=this._readableState;if(!r.readableListening)if(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading)r.length&&h(this);else{var s=this;Sl.nextTick(function(){o("readable nexttick read 0"),s.read(0)})}}return n},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!0,e.reading||(o("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Sl.nextTick(function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),f(e),t.flowing&&!t.reading&&e.read(0)}(e,t)}))}(this,e)),this},l.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this},l.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(o("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(o("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length))&&(r.push(i)||(n=!0,e.pause()))}),e)s.isFunction(e[i])&&s.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},r},l._fromList=m,e2}function m2(){if(r2)return n2;r2=1,n2=i;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},t=f0();t.inherits=QZ();var n=f2(),r=_2();function i(e){if(!(this instanceof i))return new i(e);n.call(this,e),r.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||Sl.nextTick(this.end.bind(this))}return t.inherits(i,n),function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(e(r.prototype),function(e){i.prototype[e]||(i.prototype[e]=r.prototype[e])}),n2}function _2(){if(s2)return i2;s2=1,i2=s;var e=uJ().Buffer;s.WritableState=i;var t=f0();t.inherits=QZ();var n=e0();function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function i(e,t){var n=m2(),r=(e=e||{}).highWaterMark,i=e.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){n?Sl.nextTick(function(){t.pendingcb--,i(r)}):(t.pendingcb--,i(r));e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var s=c(e,n);s||n.corked||n.bufferProcessing||!n.buffer.length||l(e,n),r?Sl.nextTick(function(){a(e,n,s,i)}):a(e,n,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function s(e){var t=m2();if(!(this instanceof s||this instanceof t))return new s(e);this._writableState=new i(e,this),this.writable=!0,n.call(this)}function o(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function a(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),d(e,t)}function l(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var n=[],r=0;r<t.buffer.length;r++)n.push(t.buffer[r].callback);t.pendingcb++,o(e,t,!0,t.length,t.buffer,"",function(e){for(var r=0;r<n.length;r++)t.pendingcb--,n[r](e)}),t.buffer=[]}else{for(r=0;r<t.buffer.length;r++){var i=t.buffer[r],s=i.chunk,a=i.encoding,l=i.callback,c=t.objectMode?1:s.length;if(o(e,t,!1,c,s,a,l),t.writing){r++;break}}r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}t.bufferProcessing=!1}function c(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function u(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function d(e,t){var n=c(0,t);return n&&(0===t.pendingcb?(u(e,t),t.finished=!0,e.emit("finish")):u(e,t)),n}return t.inherits(s,n),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(n,i,s){var a=this._writableState,l=!1;return t.isFunction(i)&&(s=i,i=null),t.isBuffer(n)?i="buffer":i||(i=a.defaultEncoding),t.isFunction(s)||(s=function(){}),a.ended?function(e,t,n){var r=new Error("write after end");e.emit("error",r),Sl.nextTick(function(){n(r)})}(this,0,s):function(e,n,r,i){var s=!0;if(!(t.isBuffer(r)||t.isString(r)||t.isNullOrUndefined(r)||n.objectMode)){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),Sl.nextTick(function(){i(o)}),s=!1}return s}(this,a,n,s)&&(a.pendingcb++,l=function(n,i,s,a,l){s=function(n,r,i){!n.objectMode&&!1!==n.decodeStrings&&t.isString(r)&&(r=new e(r,i));return r}(i,s,a),t.isBuffer(s)&&(a="buffer");var c=i.objectMode?1:s.length;i.length+=c;var u=i.length<i.highWaterMark;u||(i.needDrain=!0);i.writing||i.corked?i.buffer.push(new r(s,a,l)):o(n,i,!1,c,s,a,l);return u}(this,a,n,i,s)),l},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||l(this,e))},s.prototype._write=function(e,t,n){n(new Error("not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,n,r){var i=this._writableState;t.isFunction(e)?(r=e,e=null,n=null):t.isFunction(n)&&(r=n,n=null),t.isNullOrUndefined(e)||this.write(e,n),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,n){t.ending=!0,d(e,t),n&&(t.finished?Sl.nextTick(n):e.once("finish",n));t.ended=!0}(this,i,r)},i2}var g2,y2,v2,b2,w2,k2={exports:{}};function C2(){if(y2)return g2;y2=1,g2=r;var e=m2(),t=f0();function n(e,n){this.afterTransform=function(e,r){return function(e,n,r){var i=e._transformState;i.transforming=!1;var s=i.writecb;if(!s)return e.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,i.writecb=null,t.isNullOrUndefined(r)||e.push(r);s&&s(n);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(n,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(s){if(!(this instanceof r))return new r(s);e.call(this,s),this._transformState=new n(s,this);var o=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){t.isFunction(this._flush)?this._flush(function(e){i(o,e)}):i(o)})}function i(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}return t.inherits=QZ(),t.inherits(r,e),r.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},r.prototype._transform=function(e,t,n){throw new Error("not implemented")},r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(e){var n=this._transformState;t.isNull(n.writechunk)||!n.writecb||n.transforming?n.needTransform=!0:(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform))},g2}function T2(){return w2||(w2=1,e=k2.exports,(e=k2.exports=f2()).Stream=e0(),e.Readable=e,e.Writable=_2(),e.Duplex=m2(),e.Transform=C2(),e.PassThrough=function(){if(b2)return v2;
799b2=1,v2=n;var e=C2(),t=f0();function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=QZ(),t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},v2}()),k2.exports;var e}var S2,x2,E2,I2={exports:{}};function A2(){return E2||(E2=1,function(e,t){var n=(x2||(x2=1,S2=function(e){var t=e.reverse,n=e.end,r=e.start,i=[r,n];return null!=r&&null!=n&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}),S2);function r(e,t,n){var r,i,s;t.limit=t.reverse?2:1,r=e.createReadStream(t),i=function(e,r){if(t.reverse&&r&&t.start&&r.key.toString()>t.start)return!1;"error"==e?n(r):"end"==e?n(new Error("range not found"),null,null):n(null,r.key,r.value)},s=[],["data","error","end"].forEach(function(e){function t(t){!1!==i(e,t)&&s.forEach(function(e){e()})}r.on(e,t),s.push(function(){r.removeListener(e,t)})})}(t=I2.exports=r).first=function(e,t,i){i||(i=t,t={});return t.reverse=!1,r(e,n(t),i)},t.last=function(e,t,i){i||(i=t,t={});return t.start,t.reverse=!0,r(e,n(t),function(n,s,o){if(n){var a=t.start;t.start=null,r(e,t,function(e,r,s){if(!r)return i(n,null,null);var o=r.toString();o<=a&&(!t.end||o>=t.end)?i(e,r,s):i(n,null,null)})}else i(n,s,o)})}}(0,I2.exports)),I2.exports}var P2,O2,L2,D2,R2,M2,N2,j2={exports:{}};function U2(){if(L2)return j2.exports;L2=1;var e=(O2||(O2=1,P2=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];
799return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}),P2);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function n(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}return j2.exports=e(t),j2.exports.strict=e(n),t.proto=t(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}),j2.exports}function $2(){if(R2)return D2;R2=1;var e=a2?o2:(a2=1,o2=_2()),t=T2(),n=A2(),r=eJ(),i=U2(),s=new lE(0),o={encode:function(e){return"string"==typeof e?e=new lE(e):e},decode:function(e){return lE.isBuffer(e)?e:new lE(e)},buffer:!0,type:"raw"},a=function(){},l=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};return D2=function(c,u){u||(u={});var d={},h=u.blockSize||65536,p=u.batch||100,f=new lE(h);c.put("\0","ignore",a);var m={},_=function(e,t,n,r,i){var s=function(){--m[e].locks||delete m[e]},a=function(e){if(e.locks++,!e.block&&!t)return e.block=n,void i(null,e.block,s);e.block||(e.block=new lE(h)),e.block.length<t+n.length&&(e.block=function(e,t){var n=new lE(t);return e.copy(n),n}(e.block,t+n.length)),n.copy(e.block,t),!r&&t+n.length<e.block.length&&(e.block=e.block.slice(0,t+n.length)),i(null,e.block,s)};if(m[e])return a(m[e]);c.get(e,{valueEncoding:o},function(t,n){if(t&&!t.notFound)return i(t);m[e]||(m[e]={locks:0,block:n}),a(m[e])})},g=function(t,n){if(!(this instanceof g))return new g(t,n);n||(n={}),this.name=t,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!n.append,this.append=n.append,this._shouldInitAppend=this.append&&void 0===n.start,this._destroyed=!1,this._init(n.start||0
799),e.call(this)};r.inherits(g,e),g.prototype._init=function(e){this.blockIndex=e/h|0,this.blockOffset=e-this.blockIndex*h,this.blockLength=this.blockOffset},g.prototype._flush=function(e){if(!this.batch.length)return e();var t=this.batch[this.batch.length-1].key,n=this.batch;if(this.batch=[],!this.truncate)return c.batch(n,e);this.truncate=!1,this._truncate(n,t,e)},g.prototype._truncate=function(e,t,n){n=i(n);var r=[],s=c.createKeyStream({start:t,end:this.name+"ÿÿ"});s.on("error",n),s.on("data",function(e){r.push({type:"del",key:e})}),s.on("end",function(){r.push.apply(r,e),c.batch(r,n)})},g.prototype._writeBlock=function(e){var t=1===this.blocks.length?this.blocks[0]:lE.concat(this.blocks,this.blockLength-this.blockOffset),n=this.blockIndex,r=this.blockOffset,i=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+l(n),a=function(e,t,n){return e.length&&i.batch.push({type:"put",key:s,value:e,valueEncoding:o}),!t&&i.batch.length<p?n():i._flush(n)};return(r||t.length!==h)&&(r||this.append)?void _(s,r,t,this.append,function(t,n,r){if(t)return e(t);a(n,!0,function(t){r(),e(t)})}):a(t,!1,e)},g.prototype._initAppend=function(e,t,n){var r=this;this._shouldInitAppend=!1,d.size(this.name,function(i,s){if(i)return n(i);r._init(s),r._write(e,t,n)})},g.prototype._write=function(e,t,n){if(!e.length||this._destroyed)return n();if(this._shouldInitAppend)return this._initAppend(e,t,n);var r,i=this,s=h-this.blockLength,o=function(e){return e?n(e):r?i._write(r,t,n):void n()};if(e.length>s&&(r=e.slice(s),e=e.slice(0,s)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<s)return o();this._writeBlock(o)},g.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,Sl.nextTick(this.emit.bind(this,"close")))},g.prototype.end=function(t){var n=this,r=arguments;t&&"function"!=typeof t&&(this.write(t),t=s),this.write(s,function(){n._writeBlock(function(t){if(t)return n.emit("error",t);n._flush(function(t){if(t)return n.emit("error",t);e.prototype.end.apply(n,r)})})})};
799var y=function(e,n){n||(n={});var r=this,i=n.start||0,s=i/h|0,a=i-s*h,u=e+"ÿ"+l(s);this.name=e,this._missing=("number"==typeof n.end?n.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=c.createReadStream({start:u,end:e+"ÿÿ",valueEncoding:o});var d=function(t){return u=e+"ÿ"+l(++s),!!r._missing&&(!(!a||(t=t.slice(a),a=0,t.length))||(t.length>r._missing&&(t=t.slice(0,r._missing)),r._missing-=t.length,r._pause(!r.push(t)),!!r._missing))};this._reader.on("data",function(e){for(;e.key>u;)if(!d(f))return;d(e.value)}),this._reader.on("error",function(e){r.emit("error",e)}),this._reader.on("end",function(){r.push(null)}),t.call(this)};return r.inherits(y,t),y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),Sl.nextTick(this.emit.bind(this,"close")))},y.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},y.prototype._read=function(){this._pause(!1)},d.remove=function(e,t){t=i(t||a);var n=[],r=c.createKeyStream({start:e+"ÿ",end:e+"ÿÿ"});r.on("error",t),r.on("data",function(e){n.push({type:"del",key:e})}),r.on("end",function(){c.batch(n,t)})},d.size=function(e,t){n.last(c,{start:e+"ÿ",end:e+"ÿÿ",valueEncoding:o},function(n,r,i){return n&&"range not found"===n.message?t(null,0):n?t(n):r.slice(0,e.length+1)!==e+"ÿ"?t(null,0):void t(null,parseInt(r.toString().slice(e.length+1),16)*h+i.length)})},d.write=function(e,t,n,r){if("function"==typeof n)return d.write(e,t,null,n);n||(n={}),r||(r=a);var i=d.createWriteStream(e,n);i.on("error",r),i.on("finish",function(){r()}),i.write(t),i.end()},d.read=function(e,t,n){if("function"==typeof t)return d.read(e,null,t);t||(t={});var r=d.createReadStream(e,t),i=[];r.on("error",n),r.on("data",function(e){i.push(e)}),r.on("end",function(){n(null,1===i.length?i[0]:lE.concat(i))})},d.createReadStream=function(e,t){return new y(e,t)},d.createWriteStream=function(e,t){return new g(e,t)},d},D2}function B2(){return N2?M2:(N2=1,M2=function(e,t){return parseInt(e.toString(),t||8)})}var F2,q2={};function V2(){return F2||(F2=1,e=q2,t=QJ(),Object.keys(t.code).forEach(function(n){var r=t.code[n];e[n]=function(e){var t=new Error(n+", "+r.description+(e?" '"+e+"'":""));return t.errno=r.errno,t.code=n,t.path=e,t}})),q2;var e,t}var H2,z2,G2,K2,W2,X2={exports:{}},Y2={exports:{}};function Z2(){if(H2)return Y2.exports;return H2=1,void 0===Sl||!Sl.version||0===Sl.version.indexOf("v0.")||0===Sl.version.indexOf("v1.")&&0!==Sl.version.indexOf("v1.8.")?Y2.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return Sl.nextTick(e);case 2:return Sl.nextTick(function(){e.call(null,t)});case 3:return Sl.nextTick(function(){e.call(null,t,n)});case 4:return Sl.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return Sl.nextTick(function(){e.apply(null,i)})}}}:Y2.exports=Sl,Y2.exports}function J2(){return W2?K2:(W2=1,K2=NJ().EventEmitter)}var Q2,e3={exports:{}};function t3(){return Q2||(Q2=1,function(e,t){var n=uJ(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),i(r,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(e3,e3.exports)),e3.exports}var n3,r3,i3,s3,o3,a3,l3,c3,u3,d3,h3,p3,f3,m3,_3,g3,y3={exports:{}};function v3(){return n3||(n3=1,function(e){var t=t3().Buffer,n=eJ();function r(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var n=t.allocUnsafe(e>>>0),i=this.head,s=0;i;)r(i.data,n,s),s+=i.data.length,i=i.next;return n},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})}(y3)),y3.exports}function b3(){if(i3)return r3;i3=1;var e=Z2();function t(e,t){e.emit("error",t)}return r3={destroy:function(n,r){var i=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(t,this,n)):e.nextTick(t,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(n){!r&&n?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,e.nextTick(t,i,n)):e.nextTick(t,i,n):r&&r(n)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function w3(){if(o3)return s3;o3=1;var e=Z2();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}s3=p;var n,r=e.nextTick;p.WritableState=h;var i=Object.create(f0());i.inherits=QZ();var s={deprecate:CQ()},o=J2(),a=t3().Buffer,l=(void 0!==Wa?Wa:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=b3();function d(){}function h(i,s){n=n||k3(),i=i||{};var o=s instanceof n;this.objectMode=!!i.objectMode,o&&(this.objectMode=this.objectMode||!!i.writableObjectMode);var a=i.highWaterMark,l=i.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:o&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===i.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,n){var i=t._writableState,s=i.sync,o=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),n)!function(t,n,r,i,s){--n.pendingcb,r?(e.nextTick(s,i),e.nextTick(v,t,n),t._writableState.errorEmitted=!0,t.emit("error",i)):(s(i),t._writableState.errorEmitted=!0,t.emit("error",i),v(t,n))}(t,i,s,n,o);else{var a=g(i);a||i.corked||i.bufferProcessing||!i.bufferedRequest||_(t,i),s?r(m,t,i,a,o):m(t,i,a,o)}}(s,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function p(e){if(n=n||k3(),!(c.call(p,this)||this instanceof n))return new p(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),o.call(this)}function f(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function m(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function _(e,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(e._writev&&r&&r.next){var i=n.bufferedRequestCount,s=new Array(i),o=n.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)s[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;
vendor: 4,253 bytes, line 799
799s.allBuffers=l,f(e,n,!0,n.length,s,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new t(n),n.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(f(e,n,!1,n.objectMode?1:c.length,c,u,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function g(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),v(e,t)})}function v(t,n){var r=g(n);return r&&(!function(t,n){n.prefinished||n.finalCalled||("function"==typeof t._final?(n.pendingcb++,n.finalCalled=!0,e.nextTick(y,t,n)):(n.prefinished=!0,t.emit("prefinish")))}(t,n),0===n.pendingcb&&(n.finished=!0,t.emit("finish"))),r}return i.inherits(p,o),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===p&&(e&&e._writableState instanceof h)}})):c=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,n,r){var i,s=this._writableState,o=!1,c=!s.objectMode&&(i=t,a.isBuffer(i)||i instanceof l);return c&&!a.isBuffer(t)&&(t=function(e){return a.from(e)}(t)),"function"==typeof n&&(r=n,n=null),c?n="buffer":n||(n=s.defaultEncoding),"function"!=typeof r&&(r=d),s.ended?function(t,n){var r=new Error("write after end");t.emit("error",r),e.nextTick(n,r)}(this,r):(c||function(t,n,r,i){var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||n.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),e.nextTick(i,o),s=!1),s}(this,s,t,r))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var l=t.objectMode?1:r.length;t.length+=l;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else f(e,t,!1,l,r,i,s);return c}(this,s,c,t,n,r)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||_(this,e))},p.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,n,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,n=null):"function"==typeof n&&(r=n,n=null),null!=t&&this.write(t,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,n,r){n.ending=!0,v(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r));n.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=u.destroy,p.prototype._undestroy=u.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},s3}
vendor: 7,494 bytes, line 799
799function k3(){if(l3)return a3;l3=1;var e=Z2(),t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};a3=l;var n=Object.create(f0());n.inherits=QZ();var r=C3(),i=w3();n.inherits(l,r);for(var s=t(i.prototype),o=0;o<s.length;o++){var a=s[o];l.prototype[a]||(l.prototype[a]=i.prototype[a])}function l(e){if(!(this instanceof l))return new l(e);r.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(t,n){this.push(null),this.end(),e.nextTick(n,t)},a3}function C3(){if(u3)return c3;u3=1;var e=Z2();c3=m;var t,n=function(){if(G2)return z2;G2=1;var e={}.toString;return z2=Array.isArray||function(t){return"[object Array]"==e.call(t)}}();m.ReadableState=f,NJ().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=J2(),s=t3().Buffer,o=(void 0!==Wa?Wa:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a=Object.create(f0());a.inherits=QZ();var l=eJ(),c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,d=v3(),h=b3();a.inherits(m,i);var p=["error","close","destroy","pause","resume"];function f(e,n){e=e||{};var r=n instanceof(t=t||k3());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=WQ().StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function m(e){if(t=t||k3(),!(this instanceof m))return new m(e);this._readableState=new f(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function _(e,t,n,r,i){var a,l=e._readableState;null===t?(l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,b(e)}(e,l)):(i||(a=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(l,t)),a?e.emit("error",a):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):g(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?g(e,l,t,!1):k(e,l)):g(e,l,t,!1))):r||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(l)}function g(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&b(e)),k(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},m.prototype.unshift=function(e){return _(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return u||(u=WQ().StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};var y=8388608;function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=y?e=y:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function b(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?e.nextTick(w,t):w(t))}function w(e){c("emit readable"),e.emit("readable"),x(e)}function k(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(C,t,n))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(c("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){c("readable nexttick read 0"),e.read(0)}function S(e,t){t.reading||(c("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),x(e),t.flowing&&!t.reading&&e.read(0)}function x(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function E(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0===(e-=o)){o===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=s.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function I(t){var n=t._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');n.endEmitted||(n.ended=!0,e.nextTick(A,n,t))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}return m.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):b(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&I(this),null;var r,i=t.needReadable;
vendor: 2,041 bytes, line 799
799return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(n,t))),null===(r=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==r&&this.emit("data",r),r},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(t,i){var s=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,i);var a=(!i||!1!==i.end)&&t!==Sl.stdout&&t!==Sl.stderr?u:y;function l(e,n){c("onunpipe"),e===s&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",_),t.removeListener("finish",g),t.removeListener("drain",d),t.removeListener("error",m),t.removeListener("unpipe",l),s.removeListener("end",u),s.removeListener("end",y),s.removeListener("data",f),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function u(){c("onend"),t.end()}o.endEmitted?e.nextTick(a):s.once("end",a),t.on("unpipe",l);var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,x(e))}}(s);t.on("drain",d);var h=!1;var p=!1;function f(e){c("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==P(o.pipes,t))&&!h&&(c("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),s.pause())}function m(e){c("onerror",e),y(),t.removeListener("error",m),0===r(t,"error")&&t.emit("error",e)}function _(){t.removeListener("finish",g),y()}function g(){c("onfinish"),t.removeListener("close",_),y()}function y(){c("unpipe"),s.unpipe(t)}return s.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
799ndListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",m),t.once("close",_),t.once("finish",g),t.emit("pipe",s),o.flowing||(c("pipe resume"),s.resume()),t},m.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=P(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},m.prototype.on=function(t,n){var r=i.prototype.on.call(this,t,n);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var s=this._readableState;s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.emittedReadable=!1,s.reading?s.length&&b(this):e.nextTick(T,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!0,function(t,n){n.resumeScheduled||(n.resumeScheduled=!0,e.nextTick(S,t,n))}(this,t)),this},m.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<p.length;s++)e.on(p[s],this.emit.bind(this,p[s]));return this._read=function(t){c("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=E,c3}function T3(){if(h3)return d3;h3=1,d3=r;var e=k3(),t=Object.create(f0());function n(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState={afterTransform:n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}return t.inherits=QZ(),t.inherits(r,e),r.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},r.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},r.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},r.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},r.prototype._destroy=function(t,n){var r=this;e.prototype._destroy.call(this,t,function(e){n(e),r.emit("close")})},d3}function S3(){return m3||(m3=1,e=X2.exports,(e=X2.exports=C3()).Stream=e,e.Readable=e,e.Writable=w3(),e.Duplex=k3(),e.Transform=T3(),e.PassThrough=function(){if(f3)return p3;f3=1,p3=n;var e=T3(),t=Object.create(f0());function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=QZ(),t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},p3}()),X2.exports;var e}function x3(){if(g3)return _3;g3=1;var e=Object.prototype.toString,t=void 0!==lE&&"function"==typeof lE.alloc&&"function"==typeof lE.allocUnsafe&&"function"==typeof lE.from;return _3=function(n,r,i){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return s=n,"ArrayBuffer"===e.call(s).slice(8,-1)?function(e,n,r){n>>>=0;var i=e.byteLength-n;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return t?lE.from(e.slice(n,n+r)):new lE(new Uint8Array(e.slice(n,n+r)))}(n,r,i):"string"==typeof n?function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!lE.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return t?lE.from(e,n):new lE(e,n)}(n,r):t?lE.from(n):new lE(n);var s}}var E3,I3,A3,P3,O3,L3,D3,R3,M3,N3,j3,U3,$3,B3,F3,q3,V3,H3,z3,G3,K3,W3,X3,Y3,Z3,J3,Q3,e4,t4,n4,r4,i4,s4,o4,a4,l4,c4,u4,d4,h4,p4,f4,m4,_4,g4,y4,v4,b4,w4,k4,C4,T4,S4={};function x4(){return E3||(E3=1,function(e){var t,n=void 0,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e|0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,s=Math.abs,o=Math.floor,a=Math.log,l=Math.min,c=Math.pow,u=Math.round;function d(e){if(h&&t){var n,r=h(e);for(n=0;n<r.length;
799n+=1)t(e,r[n],{value:e[r[n]],writable:!1,enumerable:!1,configurable:!1})}}t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(CL){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return r.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),r.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),r.HasProperty(n,"value")&&(e[t]=n.value),e};var h=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)r.HasOwnProperty(e,t)&&n.push(t);return n};function p(e,t){var n=32-t;return e<<n>>n}function f(e,t){var n=32-t;return e<<n>>>n}function m(e){return[255&e]}function _(e){return p(e[0],8)}function g(e){return[255&e]}function y(e){return f(e[0],8)}function v(e){return[(e=u(Number(e)))<0?0:e>255?255:255&e]}function b(e){return[e>>8&255,255&e]}function w(e){return p(e[0]<<8|e[1],16)}function k(e){return[e>>8&255,255&e]}function C(e){return f(e[0]<<8|e[1],16)}function T(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function S(e){return p(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function x(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function E(e){return f(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function I(e,t,n){var r,u,d,h,p,f,m,_=(1<<t-1)-1;function g(e){var t=o(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e!=e?(u=(1<<t)-1,d=c(2,n-1),r=0):e===1/0||e===-1/0?(u=(1<<t)-1,d=0,r=e<0?1:0):0===e?(u=0,d=0,r=1/e==-1/0?1:0):(r=e<0,(e=s(e))>=c(2,1-_)?(u=l(o(a(e)/i),1023),(d=g(e/c(2,u)*c(2,n)))/c(2,n)>=2&&(u+=1,d=1),u>_?(u=(1<<t)-1,d=0):(u+=_,d-=c(2,n))):(u=0,d=g(e/c(2,1-_-n)))),p=[],h=n;h;h-=1)p.push(d%2?1:0),d=o(d/2);for(h=t;h;h-=1)p.push(u%2?1:0),u=o(u/2);for(p.push(r?1:0),p.reverse(),f=p.join(""),m=[];f.length;)m.push(parseInt(f.substring(0,8),2)),f=f.substring(8);return m}function A(e,t,n){var r,i,s,o,a,l,u,d,h=[];for(r=e.length;r;r-=1)for(s=e[r-1],i=8;i;i-=1)h.push(s%2?1:0),s>>=1;return h.reverse(),o=h.join(""),a=(1<<t-1)-1,l=parseInt(o.substring(0,1),2)?-1:1,u=parseInt(o.substring(1,1+t),2),d=parseInt(o.substring(1+t),2),u===(1<<t)-1?0!==d?NaN:l*(1/0):u>0?l*c(2,u-a)*(1+d/c(2,n)):0!==d?l*c(2,-(a-1))*(d/c(2,n)):l<0?-0:0}function P(e){return A(e,11,52)}function O(e){return I(e,11,52)}function L(e){return A(e,8,23)}function D(e){return I(e,8,23)}!function(){var i=function(e){if((e=r.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};e.ArrayBuffer=e.ArrayBuffer||i;var s=function(){};function o(e,o,a){var l;return l=function(e,n,s){var o,a,c,u;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===l)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new i(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,o._getter(c));else if("object"!=typeof arguments[0]||(arguments[0]instanceof i||"ArrayBuffer"===r.Class(arguments[0]))){if("object"!=typeof arguments[0]||!(arguments[0]instanceof i||"ArrayBuffer"===r.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=e,this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(s),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(a=arguments[0],this.length=r.ToUint32(a.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new i(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)u=a[c],this._setter(c,Number(u));else{if(this.length=r.ToInt32(arguments[0]),s<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new i(this.byteLength),this.byteOffset=0}this.constructor=l,d(this),function(e){if(t){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var n;for(n=0;n<e.length;n+=1)r(n)}function r(n){t(e,n,{get:function(){return e._getter(n)},set:function(t){e._setter(n,t)},enumerable:!0,configurable:!1})}}(this)},l.prototype=new s,l.prototype.BYTES_PER_ELEMENT=e,l.prototype._pack=o,l.prototype._unpack=a,l.BYTES_PER_ELEMENT=e,l.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=r.ToUint32(e))>=this.length)return n;var t,i,s=[];for(t=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,i+=1)s.push(this.buffer._bytes[i]);return this._unpack(s)},l.prototype.get=l.prototype._getter,l.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=r.ToUint32(e))>=this.length)return n;var i,s,o=this._pack(t);for(i=0,s=this.byteOffset+e*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,s+=1)this.buffer._bytes[s]=o[i]},l.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,i,s,o,a,l,c,u,d,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],(s=r.ToUint32(arguments[1]))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(u=this.byteOffset+s*this.BYTES_PER_ELEMENT,d=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(h=[],a=0,l=n.byteOffset;a<d;a+=1,l+=1)h[a]=n.buffer._bytes[l];for(a=0,c=u;a<d;a+=1,c+=1)this.buffer._bytes[c]=h[a]}else for(a=0,l=n.byteOffset,c=u;a<d;a+=1,l+=1,c+=1)this.buffer._bytes[c]=n.buffer._bytes[l]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(i=arguments[0],o=r.ToUint32(i.length),(s=r.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(a=0;a<o;a+=1)l=i[a],this._setter(s+a,Number(l))}},l.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=r.ToInt32(e),t=r.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var i=(t=n(t,0,this.length))-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},l}var a=o(1,m,_),l=o(1,g,y),c=o(1,v,y),u=o(2,b,w),h=o(2,k,C),p=o(4,T,S),f=o(4,x,E),I=o(4,D,L),A=o(8,O,P);e.Int8Array=e.Int8Array||a,e.Uint8Array=e.Uint8Array||l,e.Uint8ClampedArray=e.Uint8ClampedArray||c,e.Int16Array=e.Int16Array||u,e.Uint16Array=e.Uint16Array||h,e.Int32Array=e.Int32Array||p,e.Uint32Array=e.Uint32Array||f,e.Float32Array=e.Float32Array||I,e.Float64Array=e.Float64Array||A}(),function(){function t(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n,i=(n=new e.Uint16Array([4660]),18===t(new e.Uint8Array(n.buffer),0)),s=function(t,n,i){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===r.Class(t)))throw new TypeError("TypeError");
799if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(n){return function(s,o){if((s=r.ToUint32(s))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");s+=this.byteOffset;var a,l=new e.Uint8Array(this.buffer,s,n.BYTES_PER_ELEMENT),c=[];for(a=0;a<n.BYTES_PER_ELEMENT;a+=1)c.push(t(l,a));return Boolean(o)===Boolean(i)&&c.reverse(),t(new n(new e.Uint8Array(c).buffer),0)}}function a(n){return function(s,o,a){if((s=r.ToUint32(s))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var l,c=new n([o]),u=new e.Uint8Array(c.buffer),d=[];for(l=0;l<n.BYTES_PER_ELEMENT;l+=1)d.push(t(u,l));Boolean(a)===Boolean(i)&&d.reverse(),new e.Uint8Array(this.buffer,s,n.BYTES_PER_ELEMENT).set(d)}}s.prototype.getUint8=o(e.Uint8Array),s.prototype.getInt8=o(e.Int8Array),s.prototype.getUint16=o(e.Uint16Array),s.prototype.getInt16=o(e.Int16Array),s.prototype.getUint32=o(e.Uint32Array),s.prototype.getInt32=o(e.Int32Array),s.prototype.getFloat32=o(e.Float32Array),s.prototype.getFloat64=o(e.Float64Array),s.prototype.setUint8=a(e.Uint8Array),s.prototype.setInt8=a(e.Int8Array),s.prototype.setUint16=a(e.Uint16Array),s.prototype.setInt16=a(e.Int16Array),s.prototype.setUint32=a(e.Uint32Array),s.prototype.setInt32=a(e.Int32Array),s.prototype.setFloat32=a(e.Float32Array),s.prototype.setFloat64=a(e.Float64Array),e.DataView=e.DataView||s}()}(S4)),S4}function E4(){if(A3)return I3;A3=1;var e=S3().Writable,t=QZ(),n=x3();if("undefined"==typeof Uint8Array)var r=x4().Uint8Array;else r=Uint8Array;function i(t,n){if(!(this instanceof i))return new i(t,n);"function"==typeof t&&(n=t,t={}),t||(t={});var r=t.encoding,s=!1;r?"u8"!==(r=String(r).toLowerCase())&&"uint8"!==r||(r="uint8array"):s=!0,e.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=s,n&&this.on("finish",function(){n(this.getBody())}),this.body=[]}function s(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}return I3=i,t(i,e),i.prototype._write=function(e,t,n){this.body.push(e),n()},i.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return lE.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},i.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"string"==typeof i||lE.isBuffer(i)?t.push(i):s(i)?t.push(n(i)):t.push(n(String(i)))}t=lE.isBuffer(e[0])?(t=lE.concat(t)).toString("utf8"):t.join("");return t}(this.body):"buffer"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];lE.isBuffer(i)?t.push(i):s(i)?t.push(n(i)):t.push(n(String(i)))}return lE.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,i=0;i<e.length;i++)"string"==typeof e[i]&&(e[i]=n(e[i])),t+=e[i].length;for(var s=new r(t),o=(i=0,0);i<e.length;i++)for(var a=e[i],l=0;l<a.length;l++)s[o++]=a[l];return s}(this.body):this.body):[]},I3}function I4(){if(M3)return R3;M3=1;var e=D3?L3:(D3=1,L3=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)});return R3=function(){for(var t={},n=0;n<arguments.length;n++){var r=arguments[n];if(e(r))for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t},R3}function A4(){if(j3)return N3;j3=1;var e=cW(),t=U2(),n=E4(),r=B2(),i=function(){if(O3)return P3;O3=1;var e=function(e){return e?"string"==typeof e?new Date(e):e:new Date},t=function(t){this.uid=t.uid||0,this.gid=t.gid||0,this.mode=t.mode||0,this.size=t.size||0,this.mtime=e(t.mtime),this.atime=e(t.atime),this.ctime=e(t.ctime),this.type=t.type,this.target=t.target,this.link=t.link,this.blob=t.blob};return t.prototype.isDirectory=function(){return"directory"===this.type},t.prototype.isFile=function(){return"file"===this.type},t.prototype.isBlockDevice=function(){return!1},t.prototype.isCharacterDevice=function(){return!1},t.prototype.isSymbolicLink=function(){return"symlink"===this.type},t.prototype.isFIFO=function(){return!1},t.prototype.isSocket=function(){return!1},P3=function(e){return new t(e)},P3}(),s=I4(),o=V2(),a=i({type:"directory",mode:r(777),size:4096}),l=function(t){return t="/"===t[0]?t:"/"+t,"/"===(t=e.normalize(t))?t:"/"===t[t.length-1]?t.slice(0,-1):t},c=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};return N3=function(r){var u={};u.normalize=l,u.get=function(e,t){if("/"===(e=l(e)))return Sl.nextTick(t.bind(null,null,a,"/"));r.get(c(e),{valueEncoding:"json"},function(n,r){return n&&n.notFound?t(o.ENOENT(e),null,e):n?t(n,null,e):void t(null,i(r),e)})},u.writable=function(t,n){if("/"===(t=l(t)))return Sl.nextTick(n.bind(null,o.EPERM(t)));u.follow(e.dirname(t),function(e,r){return e?n(e):r.isDirectory()?void n(null,t):n(o.ENOTDIR(t))})},u.list=function(e,i){e=l(e);var s=c("/"===e?e:e+"/"),o=r.createKeyStream({start:s,end:s+"ÿ"});i=t(i),o.on("error",i),o.pipe(n({encoding:"object"},function(e){e=e.map(function(e){return e.split("/").pop()}),i(null,e)}))};return u.follow=function(t,n){!function(t,n){var r="/",i=t.split("/").slice(1),s=function(){u.get(e.join(r,i.shift()),function(e,o,a){return e?n(e,o,t):(r=o.target||a,i.length?void s():n(null,o,a))})};s()}(l(t),function e(t,r,s){return t?n(t,null,s):r.target?u.get(r.target,e):void n(null,i(r),s)})},u.update=function(e,t,n){u.get(e,function(e,r,i){return e?n(e):"/"===i?n(o.EPERM(i)):void u.put(i,s(r,t),n)})},u.put=function(e,t,n){u.writable(e,function(e,s){if(e)return n(e);r.put(c(s),i(t),{valueEncoding:"json"},n)})},u.del=function(e,t){if("/"===(e=l(e)))return Sl.nextTick(t.bind(null,o.EPERM(e)));r.del(c(e),t)},u},N3}
799function P4(){if(F3)return B3;F3=1;var e=S1(),t=p2(),n=$2(),r=A2(),i=U2(),s=B2(),o=V2(),a=A4(),l=function(){if($3)return U3;$3=1;var e=NJ();return U3=function(){var t={},n=new e.EventEmitter;return n.watch=function(n,r){return t[n]||(t[n]=new e.EventEmitter,t[n].setMaxListeners(0)),r&&t[n].on("change",r),t[n]},n.watcher=function(t,r){var i=new e.EventEmitter,s=function(){i.emit("change","change",t)};return n.watch(t,s),r&&i.on("change",r),i.close=function(){n.unwatch(t,s)},i},n.unwatch=function(e,n){t[e]&&(n?t[e].removeListener("change",n):t[e].removeAllListeners("change"),t[e].listeners("change").length||delete t[e])},n.change=function(e){t[e]&&t[e].emit("change"),n.emit("change",e)},n.cb=function(e,t){return function(r,i){e&&n.change(e),t&&t(r,i)}},n}}(),c=function(e,t,n){Sl.nextTick(function(){e(t,n)})},u=function(){};return B3=function(d,h){var p={};d=t(d);var f=n(d.sublevel("blobs"),h),m=a(d.sublevel("stats")),_=d.sublevel("links"),g=l(),y=[],v=Date.now();p.mkdir=function(e,t,n){if("function"==typeof t)return p.mkdir(e,null,t);t||(t=s(777)),n||(n=u),m.follow(e,function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(o.EEXIST(i)):void m.put(i,{type:"directory",mode:t,size:4096},g.cb(i,n))})},p.rmdir=function(e,t){t||(t=u),m.follow(e,function(e,n,r){if(e)return t(e);p.readdir(r,function(e,n){return e?t(e):n.length?t(o.ENOTEMPTY(r)):void m.del(r,g.cb(r,t))})})},p.readdir=function(e,t){m.follow(e,function(e,n,r){return e?t(e):n?n.isDirectory()?void m.list(r,t):t(o.ENOTDIR(r)):t(o.ENOENT(r))})};var b=function(e,t,n){t(e,function(e,t,r){if(e)return n(e);if(!t.isFile())return n(null,t);var i=t&&t.blob||r;f.size(i,function(e,r){if(e)return n(e);t.size=r,n(null,t)})})};p.stat=function(e,t){b(e,m.follow,t)},p.lstat=function(e,t){b(e,m.get,t)},p.exists=function(e,t){m.follow(e,function(e){t(!e)})};var w=function(e,t,n,r){r||(r=u),t(e,function(e,t,i){if(e)return r(e);m.update(i,{mode:n},g.cb(i,r))})};p.chmod=function(e,t,n){w(e,m.follow,t,n)},p.lchmod=function(e,t,n){w(e,m.get,t,n)};var k=function(e,t,n,r,i){i||(i=u),t(e,function(e,t,s){if(e)return i(e);m.update(s,{uid:n,gid:r},g.cb(s,i))})};return p.chown=function(e,t,n,r){k(e,m.follow,t,n,r)},p.lchown=function(e,t,n,r){k(e,m.get,t,n,r)},p.utimes=function(e,t,n,r){r||(r=u),m.follow(e,function(e,i,s){if(e)return r(e);var o={};t&&(o.atime=t),n&&(o.mtime=n),m.update(s,o,g.cb(s,r))})},p.rename=function(e,t,n){n||(n=u),m.follow(e,function(e,r,i){if(e)return n(e);var s=function(){n=g.cb(t,g.cb(i,n)),m.put(t,r,function(e){if(e)return n(e);m.del(i,n)})};m.follow(t,function(e,t,a){return e&&"ENOENT"!==e.code?n(e):t?r.isDirectory()!==t.isDirectory()?n(o.EISDIR(i)):void(t.isDirectory()?p.readdir(a,function(e,t){return e?n(e):t.length?n(o.ENOTEMPTY(i)):void s()}):s()):s()})})},p.realpath=function(e,t,n){if("function"==typeof t)return p.realpath(e,null,t);m.follow(e,function(e,t,r){if(e)return n(e);n(null,r)})},p.writeFile=function(e,t,n,r){if("function"==typeof n)return p.writeFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),r||(r=u),lE.isBuffer(t)||(t=new lE(t,n.encoding||"utf-8"));var i=n.flags||"w";n.append="w"!==i[0],m.follow(e,function(e,a,l){if(e&&"ENOENT"!==e.code)return r(e);if(a&&a.isDirectory())return r(o.EISDIR(l));if(a&&"x"===i[1])return r(o.EEXIST(l));var c=a&&a.blob||l;m.writable(l,function(e){if(e)return r(e);f.write(c,t,n,function(e){if(e)return r(e);m.put(l,{ctime:a&&a.ctime,mtime:new Date,mode:n.mode||s(666),type:"file"},g.cb(l,r))})})})},p.appendFile=function(e,t,n,r){if("function"==typeof n)return p.appendFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",p.writeFile(e,t,n,r)},p.unlink=function(e,t){t||(t=u),m.get(e,function(e,n,i){if(e)return t(e);if(n.isDirectory())return t(o.EISDIR(i));var s=function(e){r(_,{start:e+"ÿ",end:e+"ÿÿ"},function(n){if(n)return f.remove(e,t);t()})};m.del(i,g.cb(i,function(e){return e?t(e):n.link?(r=n.link.slice(0,n.link.indexOf("ÿ")),void _.del(n.link,function(e){if(e)return t(e);s(r)})):void _.del(i+"ÿ",function(e){if(e)return t(e);s(i)});var r}))})},p.readFile=function(e,t,n){if("function"==typeof t)return p.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,m.follow(e,function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(o.EISDIR(i));var s=r&&r.blob||i;f.read(s,function(e,r){if(e)return n(e);n(null,t.encoding?r.toString(t.encoding):r)})})},p.createReadStream=function(t,n){n||(n={});var r=!1,i=e.readable(function(e){m.follow(t,function(t,s,a){if(t)return e(t);
799if(s.isDirectory())return e(o.EISDIR(a));var l=s&&s.blob||a,c=f.createReadStream(l,n);i.emit("open"),c.on("end",function(){Sl.nextTick(function(){r||i.emit("close")})}),e(null,c)})});return i.on("close",function(){r=!0}),i},p.createWriteStream=function(t,n){n||(n={});var r=n.flags||"w",i=!1,a=n.mode||s(666);n.append="a"===r[0];var l=e.writable(function(e){m.follow(t,function(t,s,c){if(t&&"ENOENT"!==t.code)return e(t);if(s&&s.isDirectory())return e(o.EISDIR(c));if(s&&"x"===r[1])return e(o.EEXIST(c));var u=s&&s.blob||c;m.writable(u,function(t){if(t)return e(t);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:a,type:"file"};m.put(c,r,function(t){if(t)return e(t);var s=f.createWriteStream(u,n);l.emit("open"),s.on("finish",function(){r.mtime=new Date,m.put(c,r,function(){g.change(c),i||l.emit("close")})}),e(null,s)})})})});return l.on("close",function(){i=!0}),l},p.truncate=function(e,t,n){m.follow(e,function(e,r,s){if(e)return n(e);var o=r&&r.blob||s;f.size(o,function(e,r){if(e)return n(e);m.writable(s,function(e){if(e)return n(e);if(n=i(g.cb(s,n)),!t)return f.remove(o,n);var a=f.createWriteStream(o,{start:r<t?t-1:t});a.on("error",n),a.on("finish",n),r<t&&a.write(new lE([0])),a.end()})})})},p.watchFile=function(e,t,n){return"function"==typeof t?p.watchFile(e,null,t):g.watch(m.normalize(e),n)},p.unwatchFile=function(e,t){g.unwatch(m.normalize(e),t)},p.watch=function(e,t,n){return"function"==typeof t?p.watch(e,null,t):g.watcher(m.normalize(e),n)},p.notify=function(e){g.on("change",e)},p.open=function(e,t,n,r){if("function"==typeof n)return p.open(e,t,null,n);m.follow(e,function(e,i,a){if(e&&"ENOENT"!==e.code)return r(e);var l=t[0],c="+"===t[1]||"+"===t[2],u=i&&i.blob||a,d={key:a,blob:u,mode:n||s(666),readable:"r"===l||("w"===l||"a"===l)&&c,writable:"w"===l||"a"===l||"r"===l&&c,append:"a"===l};return"r"===l&&e?r(e):"x"===t[1]&&i?r(o.EEXIST(a)):i&&i.isDirectory()?r(o.EISDIR(a)):void f.size(u,function(e,t){if(e)return r(e);d.append&&(d.writePos=t),m.writable(a,function(e){if(e)return r(e);var t=function(e){if(e)return r(e);var t=y.indexOf(null);-1===t&&(t=10+y.push(y.length+10)-1),d.fd=t,y[t]=d,g.change(a),r(null,d.fd)},n=function(e){return e?r(e):i?t():void m.put(u,{ctime:i&&i.ctime,type:"file"},t)};if(!d.append&&d.writable)return f.remove(u,n);n()})})})},p.close=function(e,t){var n=y[e];if(!n)return c(t,o.EBADF());y[e]=null,c(g.cb(n.key,t))},p.write=function(e,t,n,r,i,s){var a=y[e];if(s||(s=u),!a||!a.writable)return c(s,o.EBADF());null===i&&(i=a.writePos||0);var l=t.slice(n,n+r);a.writePos=i+l.length,f.write(a.blob,l,{start:i,append:!0},function(e){if(e)return s(e);s(null,r,t)})},p.read=function(e,t,n,r,i,s){var a=y[e];if(s||(s=u),!a||!a.readable)return c(s,o.EBADF());null===i&&(i=p.readPos||0),f.read(a.blob,{start:i,end:i+r-1},function(e,o){if(e)return s(e);var a=o.slice(0,r);a.copy(t,n),p.readPos=i+a.length,s(null,a.length,t)})},p.fsync=function(e,t){var n=y[e];if(t||(t=u),!n||!n.writable)return c(t,o.EBADF());c(t)},p.ftruncate=function(e,t,n){var r=y[e];if(n||(n=u),!r)return c(n,o.EBADF());p.truncate(r.blob,t,n)},p.fchown=function(e,t,n,r){var i=y[e];if(r||(r=u),!i)return c(r,o.EBADF());p.chown(i.key,t,n,r)},p.fchmod=function(e,t,n){var r=y[e];if(n||(n=u),!r)return c(n,o.EBADF());p.chmod(r.key,t,n)},p.futimes=function(e,t,n,r){var i=y[e];if(r||(r=u),!i)return c(r,o.EBADF());p.utimes(i.key,t,n,r)},p.fstat=function(e,t){var n=y[e];if(!n)return c(t,o.EBADF());p.stat(n.key,t)},p.symlink=function(e,t,n){n||(n=u),m.follow(e,function(e,r,i){if(e)return n(e);m.get(t,function(e,r){return e&&"ENOENT"!==e.code?n(e):r?n(o.EEXIST(t)):void m.put(t,{type:"symlink",target:i,mode:s(777)},n)})})},p.readlink=function(e,t){m.get(e,function(n,r){return n?t(n):r.target?void t(null,r.target):t(o.EINVAL(e))})},p.link=function(e,t,n){n||(n=u),m.follow(e,function(e,r,i){return e?n(e):r.isFile()?void m.get(t,function(e,s){if(e&&"ENOENT"!==e.code)return n(e);if(s)return n(o.EEXIST(t));var a=i+"ÿ"+ ++v;_.put(i+"ÿ",i,function(e){if(e)return n(e);_.put(a,i,function(e){if(e)return n(e);m.put(t,{type:"file",link:a,blob:i,mode:r.mode},n)})})}):n(o.EINVAL(i))})},p},B3}function O4(){if(z3)return H3;z3=1;let{existsSync:e,readFileSync:t}=function(){if(V3)return q3;V3=1;var e=PJ(),t=Q0(),n=P4(),r=t("level-filesystem",{db:e});return q3=n(r)}(),{dirname:n,isAbsolute:r,join:i,relative:s,sep:o}=cW(),{SourceMapConsumer:a,SourceMapGenerator:l}=_E;class c{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new a(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),lE?lE.from(r,"base64").toString():window.atob(r);var r;let i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(i,a,l){if(!l&&!this.unsafeMap){if(!/\.map$/i.test(i))return;if(a){let e=s(n(a),i);if(".."===e||e.startsWith(".."+o)||r(e))return}}if(this.root=n(i),e(i))return this.mapFile=i,t(i,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof a)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw new Error("Unable to load previous source map: "+n.toString());return t}}}
799else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=i(n(e),t));let r=this.loadFile(t,e,!1);if(r)try{this.json=JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return r}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return H3=c,c.default=c,H3}function L4(){if(K3)return G3;K3=1;let{nanoid:e}=lW(),{isAbsolute:t,resolve:n}=cW(),{SourceMapConsumer:r,SourceMapGenerator:i}=_E,{fileURLToPath:s,pathToFileURL:o}=UY(),a=RK(),l=O4(),c=_E,u=Symbol("lineToIndexCache"),d=Boolean(r&&i),h=Boolean(n&&t);function p(e){if(e[u])return e[u];let t=e.css.split("\n"),n=new Array(t.length),r=0;for(let i=0,s=t.length;i<s;i++)n[i]=r,r+=t[i].length+1;return e[u]=n,n}class f{get from(){return this.file||this.id}constructor(r,i={}){if(null==r||"object"==typeof r&&!r.toString)throw new Error(`PostCSS received ${r} instead of CSS string`);if(this.css=r.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,i.document&&(this.document=i.document.toString()),i.from&&(!h||/^\w+:\/\//.test(i.from)||t(i.from)?this.file=i.from:this.file=n(i.from)),h&&d){let e=new l(this.css,i);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,s,l,c,u;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){c=e.offset;let r=this.fromOffset(c);t=r.line,n=r.col}else t=e.line,n=e.column,c=this.fromLineAndColumn(t,n);if("number"==typeof r.offset){l=r.offset;let e=this.fromOffset(l);s=e.line,i=e.col}else s=r.line,i=r.column,l=this.fromLineAndColumn(r.line,r.column)}else if(n)c=this.fromLineAndColumn(t,n);else{c=t;let e=this.fromOffset(c);t=e.line,n=e.col}let d=this.origin(t,n,s,i);return u=d?new a(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new a(e,void 0===s?t:{column:n,line:t},void 0===s?n:{column:i,line:s},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:s,endOffset:l,line:t,offset:c,source:this.css},this.file&&(o&&(u.input.url=o(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return p(this)[e-1]+t-1}fromOffset(e){let t=p(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let r,i=t.length-2;for(;n<i;)if(r=n+(i-n>>1),e<t[r])i=r-1;else{if(!(e>=t[r+1])){n=r;break}n=r+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,r,i){if(!this.map)return!1;let a,l,c=this.map.consumer(),u=c.originalPositionFor({column:n-1,line:e});if(!u.source)return!1;if("number"==typeof r){let e=c.originalPositionFor({column:i-1,line:r});e.source&&(a=e)}l=t(u.source)?o(u.source):new URL(u.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let d={column:u.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");d.file=s(l)}let h=c.sourceContentFor(u.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return G3=f,f.default=f,c&&c.registerInput&&c.registerInput(f),G3}function D4(){if(X3)return W3;X3=1;let e,t,n=sW();class r extends n{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=new Set;for(let s of Array.isArray(e)?e:[e])s&&"object"==typeof s&&!s.parent&&s.raws&&void 0!==s.raws.before&&r.add(s.raws);let i=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)r.has(s.raws)||(s.raws.before=t.raws.before);return i}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},W3=r,r.default=r,n.registerRoot(r),W3}function R4(){if(Z3)return Y3;Z3=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,n){let r=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let u of e)c?c=!1:"\\"===u?c=!0:a?u===l&&(a=!1):'"'===u||"'"===u?(a=!0,l=u):"("===u?o+=1:")"===u?o>0&&(o-=1):0===o&&t.includes(u)&&(s=!0),s?(""!==i&&r.push(i.trim()),i="",s=!1):i+=u;return(n||""!==i)&&r.push(i.trim()),r}};return Y3=e,e.default=e,Y3}function M4(){if(Q3)return J3;Q3=1;let e=sW(),t=R4();
vendor: 5,696 bytes, line 799
799class n extends e{get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return J3=n,n.default=n,e.registerRule(n),J3}function N4(){if(r4)return n4;r4=1;let{dirname:e,relative:t,resolve:n,sep:r}=cW(),{SourceMapConsumer:i,SourceMapGenerator:s}=_E,{pathToFileURL:o}=UY(),a=L4(),l=Boolean(i&&s),c=Boolean(e&&n&&t&&r);return n4=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let n,r=this.toUrl(this.path(t.file)),s=t.root||e(t.file);!1===this.mapOpts.sourcesContent?(n=new i(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=s.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new s({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new s({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=s.match(/\n/g),t?(n+=t.length,e=s.lastIndexOf("\n"),r=s.length-e):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(r){if(this.mapOpts.absolute)return r;if(60===r.charCodeAt(0))return r;if(/^\w+:\/\//.test(r))return r;let i=this.memoizedPaths.get(r);if(i)return i;let s=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(s=e(n(s,this.mapOpts.annotation)));let o=t(s,r);return this.memoizedPaths.set(r,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return lE?lE.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;
vendor: 4,757 bytes, line 799
799if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===r&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},n4}function j4(){if(a4)return o4;a4=1;let e=oW(),t=rW(),n=iW(),r=D4(),i=M4(),s=function(){if(s4)return i4;s4=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),n="\\".charCodeAt(0),r="/".charCodeAt(0),i="\n".charCodeAt(0),s=" ".charCodeAt(0),o="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),_="*".charCodeAt(0),g=":".charCodeAt(0),y="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return i4=function(C,T={}){let S,x,E,I,A,P,O,L,D,R,M=C.css.valueOf(),N=T.ignoreErrors,j=M.length,U=0,$=[],B=[],F=-1;function q(e){throw C.error("Unclosed "+e,U)}return{back:function(e){B.push(e)},endOfFile:function(){return 0===B.length&&U>=j},nextToken:function(C){if(B.length)return B.pop();if(U>=j)return;let T=!!C&&C.ignoreUnclosed;switch(S=M.charCodeAt(U),S){case i:case s:case a:case l:case o:I=U;do{I+=1,S=M.charCodeAt(I)}while(S===s||S===i||S===a||S===l||S===o);P=["space",M.slice(U,I)],U=I-1;break;case c:case u:case p:case f:case g:case m:case h:{let e=String.fromCharCode(S);P=[e,e,U];break}case d:if(R=$.length?$.pop()[1]:"",D=M.charCodeAt(U+1),"url"===R&&D!==e&&D!==t&&D!==s&&D!==i&&D!==a&&D!==o&&D!==l){I=U;do{if(O=!1,I=M.indexOf(")",I+1),-1===I){if(N||T){I=U;break}q("bracket")}for(L=I;M.charCodeAt(L-1)===n;)L-=1,O=!O}while(O);P=["brackets",M.slice(U,I+1),U,I],U=I}else U<=F?P=["(","(",U]:(I=M.indexOf(")",U+1),x=M.slice(U,I+1),-1===I||w.test(x)?(F=-1===I?j:I,P=["(","(",U]):(P=["brackets",x,U,I],U=I));break;case e:case t:A=S===e?"'":'"',I=U;do{if(O=!1,I=M.indexOf(A,I+1),-1===I){if(N||T){I=U+1;break}q("string")}for(L=I;M.charCodeAt(L-1)===n;)L-=1,O=!O}while(O);P=["string",M.slice(U,I+1),U,I],U=I;break;case y:v.lastIndex=U+1,v.test(M),I=0===v.lastIndex?M.length-1:v.lastIndex-2,P=["at-word",M.slice(U,I+1),U,I],U=I;break;case n:for(I=U,E=!0;M.charCodeAt(I+1)===n;)I+=1,E=!E;if(S=M.charCodeAt(I+1),E&&S!==r&&S!==s&&S!==i&&S!==a&&S!==l&&S!==o&&(I+=1,k.test(M.charAt(I)))){for(;k.test(M.charAt(I+1));)I+=1;M.charCodeAt(I+1)===s&&(I+=1)}P=["word",M.slice(U,I+1),U,I],U=I;break;default:S===r&&M.charCodeAt(U+1)===_?(I=M.indexOf("*/",U+2)+1,0===I&&(N||T?I=M.length:q("comment")),P=["comment",M.slice(U,I+1),U,I],U=I):(b.lastIndex=U+1,b.test(M),I=0===b.lastIndex?M.length-1:b.lastIndex-2,P=["word",M.slice(U,I+1),U,I],$.push(P),U=I)}return U++,P},position:function(){return U}}},i4}();const o={empty:!0,space:!0};function a(e,t,n){let r="";for(let i=t;i<n;i++)r+=e[i][1];return r}return o4=class{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){let n,r,i,s=new e;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(n=(t=this.tokenizer.nextToken())[0],"("===n||"["===n?c.push("("===n?")":"]"):"{"===n&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),0===c.length){if(";"===n){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===n){a=!0;break}if("}"===n){if(l.length>0){for(i=l.length-1,r=l[i];r&&"space"===r[0];)r=l[--i];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(s.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(s,"params",l),o&&(t=l[l.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[s,o]of e.entries()){if(n=o,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return s}this.doubleColon(n)}t=n}return!1}comment(e){let n=new t;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let r=e[1].slice(2,-2);if(r.trim()){let e=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=e[2],n.raws.left=e[1],n.raws.right=e[3]}
vendor: 14,434 bytes, line 799
799else n.text="",n.raws.left=r,n.raws.right=""}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let r=new n;this.init(r,e[0][2]);let i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),r.source.end.offset++;let s=0;for(;"word"!==e[s][0];)s===e.length-1&&this.unknownWord([e[s]]),s++;r.raws.before+=a(e,0,s),r.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let t=e[s][0];if(":"===t||"space"===t||"comment"===t)break;s++}r.prop=a(e,o,s);let l,c=s;for(;s<e.length&&(l=e[s],s++,":"!==l[0]);)"word"===l[0]&&/\w/.test(l[1])&&this.unknownWord([l]);r.raws.between=a(e,c,s),"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let u=s;for(;s<e.length;){let t=e[s][0];if("space"!==t&&"comment"!==t)break;s++}let d=e.slice(u,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let n=e.length-1;n>=0;n--){if(l=e[n],"!important"===l[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,n);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===l[1].toLowerCase()){let t=e.slice(0),i="";for(let e=n;e>0;e--){let n=t[e][0];if(i.trim().startsWith("!")&&"space"!==n)break;i=t.pop()[1]+i}i.trim().startsWith("!")&&(r.important=!0,r.raws.important=i,e=t)}if("space"!==l[0]&&"comment"!==l[0])break}let h=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);h&&(r.raws.between+=d.map(e=>e[1]).join(""),d=[]),this.raw(r,"value",d.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),s.push("("===n?")":"]");else if(o&&r&&"{"===n)i||(i=l),s.push("}");else if(0===s.length){if(";"===n){if(r)return void this.decl(a,o);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,s,a,l,c=n.length,u="",d=!0;for(let h=0;h<c;h+=1)i=n[h],s=i[0],"space"!==s||h!==c-1||r?"comment"===s?(l=n[h-1]?n[h-1][0]:"empty",a=n[h+1]?n[h+1][0]:"empty",o[l]||o[a]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},o4}function U4(){if(c4)return l4;c4=1;let e=sW(),t=L4(),n=j4();function r(e,r){let i=new t(e,r),s=new n(i);try{s.parse()}catch(CL){throw CL}return s.root}return l4=r,r.default=r,e.registerParse(r),l4}function $4(){if(d4)return u4;d4=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return u4=e,e.default=e,u4}function B4(){if(p4)return h4;p4=1;let e=$4();class t{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}}return h4=t,t.default=t,h4}function F4(){if(m4)return f4;m4=1;let e=sW(),t=aW(),n=N4(),r=U4(),i=B4(),s=D4(),o=NK(),{isClean:a,my:l}=tW();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0};function h(e){return"object"==typeof e&&"function"==typeof e.then}function p(e){let t=!1,n=c[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function f(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:p(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function m(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}let _={};class g{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,n,s){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof g||n instanceof i)o=m(n.root),n.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=n.map);else{let t=r;s.syntax&&(t=s.syntax.parse),s.parser&&(t=s.parser),t.parse&&(t=t.parse);try{o=t(n,s)}catch(a){this.processed=!0,this.error=a}o&&!o[l]&&e.rebuild(o)}else o=m(n);this.result=new i(t,o,s),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!u[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(h(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[a];){e[a]=!0;let t=[f(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(CL){let n=t[t.length-1].node;throw this.handleError(CL,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(CL){throw this.handleError(CL)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(h(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[a];)e[a]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(CL){throw this.handleError(CL,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(CL){throw this.handleError(CL,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[a])return r[a]=!0,void e.push(f(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[a]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[a]=!0;let t=[{eventIndex:0,events:p(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],n=e.node;if(0!==e.iterator){let r,i=e.iterator,s=!1;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[a]){r[a]=!0,t.push({eventIndex:0,events:p(r),iterator:0,node:r}),s=!0;break}if(s)continue;e.iterator=0,delete n.indexes[i]}if(e.eventIndex<e.events.length){let r=e.events[e.eventIndex];if(e.eventIndex+=1,0===r)n.nodes&&n.nodes.length&&(e.iterator=n.getIterator());else{let e=this.listeners[r];e&&this.visitSync(e,n.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}}return g.registerPostcss=e=>{_=e},f4=g,g.default=g,s.registerLazyResult(g),t.registerLazyResult(g),f4}function q4(){if(v4)return y4;v4=1;let e=aW(),t=F4(),n=function(){if(g4)return _4;g4=1;let e=N4(),t=U4(),n=B4(),r=NK();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=t;try{e=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,i,s){i=i.toString(),this.stringified=!1,this._processor=t,this._css=i,this._opts=s,this._map=void 0;let o=r;this.result=new n(this._processor,void 0,this._opts),this.result.css=i;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new e(o,void 0,this._opts,i);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}
799async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return _4=i,i.default=i,_4}(),r=D4();class i{constructor(e=[]){this.version="8.5.19",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");return t}process(e,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,e,r):new n(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return y4=i,i.default=i,r.registerProcessor(i),e.registerProcessor(i),y4}function V4(){if(w4)return b4;w4=1;var e={};let t=oW(),n=rW(),r=sW(),i=RK(),s=iW(),o=aW(),a=function(){if(t4)return e4;t4=1;let e=oW(),t=rW(),n=iW(),r=L4(),i=O4(),s=D4(),o=M4();function a(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:r.prototype};return t.map&&(t.map={...t.map,__proto__:i.prototype}),t}):t}function l(r,i,a){let l,c={...r};if(delete c.inputs,delete c.nodes,c.source){let{inputId:e,...t}=c.source;c.source=t,null!=e&&(c.source.input=i[e])}if("root"===c.type)l=new s(c);else if("decl"===c.type)l=new n(c);else if("rule"===c.type)l=new o(c);else if("comment"===c.type)l=new t(c);else{if("atrule"!==c.type)throw new Error("Unknown node type: "+r.type);l=new e(c)}if(a){l.nodes=a;for(let e of a)e.parent=l}return l}function c(e,t){if(Array.isArray(e))return e.map(e=>c(e));let n,r=[{childIndex:0,children:[],inputs:a(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let n=t[e.childIndex];e.childIndex+=1,r.push({childIndex:0,children:[],inputs:a(n,e.inputs),json:n});continue}r.pop();let i=l(e.json,e.inputs,t?e.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}return e4=c,c.default=c,e4}(),l=L4(),c=F4(),u=R4(),d=nW(),h=U4(),p=q4(),f=B4(),m=D4(),_=M4(),g=NK(),y=$4();function v(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new p(e)}return v.plugin=function(t,n){let r,i=!1;function s(...r){console&&console.warn&&!i&&(i=!0,e.LANG&&e.LANG.startsWith("cn"));let s=n(...r);return s.postcssPlugin=t,s.postcssVersion=(new p).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,n){return v([s(n)]).process(e,t)},s},v.stringify=g,v.parse=h,v.fromJSON=a,v.list=u,v.comment=e=>new n(e),v.atRule=e=>new t(e),v.decl=e=>new s(e),v.rule=e=>new _(e),v.root=e=>new m(e),v.document=e=>new o(e),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=p,v.Document=o,v.Comment=n,v.Warning=y,v.AtRule=t,v.Result=f,v.Input=l,v.Rule=_,v.Root=m,v.Node=d,c.registerPostcss(v),b4=v,v.default=v,b4}function H4(){if(C4)return k4;C4=1;const e=vK(),t=fK?pK:(fK=1,pK=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),{isPlainObject:n}=function(){if(bK)return wK; 800/*! 801 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> 802 * 803 * Copyright (c) 2014-2017, Jon Schlinkert. 804 * Released under the MIT License. 805 */ 806function e(e){return"[object Object]"===Object.prototype.toString.call(e)}return bK=1,Object.defineProperty(wK,"__esModule",{value:!0}),wK.isPlainObject=function(t){var n,r;return!1!==e(t)&&(void 0===(n=t.constructor)||!1!==e(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))},wK}(),r=Mg(),i=(kK||(kK=1,function(e){var t,n;t=TK,n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(m));if(r)return n=r[0],m+=n.length,n}for(var r,i,s,o,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,_=[];;){if(n(u),m>=l)return _;r=n(d),i=[],","===r.slice(-1)?(r=r.replace(h,""),y()):g()}function g(){for(n(c),s="",o="in descriptor";;){if(a=e.charAt(m),"in descriptor"===o)if(t(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void y();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void y();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void y();s+=a}else if("after descriptor"===o)if(t(a));else{if(""===a)return void y();o="in descriptor",m-=1}m+=1}}function y(){var e,t,n,s,o,a,l,c,u,d=!1,h={};for(s=0;s<i.length;s++)a=(o=i[s])[o.length-1],l=o.substring(0,o.length-1),c=parseInt(l,10),u=parseFloat(l),p.test(l)&&"w"===a?((e||t)&&(d=!0),0===c?d=!0:e=c):f.test(l)&&"x"===a?((e||t||n)&&(d=!0),u<0?d=!0:t=u):p.test(l)&&"h"===a?((n||t)&&(d=!0),0===c?d=!0:n=c):d=!0;d?console&&console.log:(h.url=r,e&&(h.w=e),t&&(h.d=t),n&&(h.h=n),_.push(h))}}},e.exports?e.exports=n():t.parseSrcset=n()}
806(CK)),CK.exports),{parse:s}=V4(),o=["img","audio","video","picture","svg","object","map","iframe","embed"],a=["script","style"];function l(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function c(e,t){return{}.hasOwnProperty.call(e,t)}function u(e,t){const n=[];return l(e,function(e){t(e)&&n.push(e)}),n}k4=h;const d=/^[^\0\t\n\f\r /<=>]+$/;function h(f,m,_){if(null==f)return"";let g="",y="";function v(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=g.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(A.length){A[A.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(A.length&&o.includes(this.tag)){A[A.length-1].mediaChildren.push(this.tag)}}}(m=Object.assign({},h.defaults,m)).parser=Object.assign({},p,m.parser),a.forEach(function(e){!1!==m.allowedTags&&(m.allowedTags||[]).indexOf(e)>-1&&m.allowVulnerableTags});const b=m.nonTextTags||["script","style","textarea","option"];let w,k;m.allowedAttributes&&(w={},k={},l(m.allowedAttributes,function(e,n){w[n]=[];const r=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(t(e).replace(/\\\*/g,".*")):w[n].push(e)}),r.length&&(k[n]=new RegExp("^("+r.join("|")+")$"))}));const C={},T={},S={};l(m.allowedClasses,function(e,n){w&&(c(w,n)||(w[n]=[]),w[n].push("class")),C[n]=[],S[n]=[];const r=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(t(e).replace(/\\\*/g,".*")):e instanceof RegExp?S[n].push(e):C[n].push(e)}),r.length&&(T[n]=new RegExp("^("+r.join("|")+")$"))});const x={};let E,I,A,P,O,L,D;l(m.transformTags,function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=h.simpleTransform(e)),"*"===t?E=n:x[t]=n});let R=!1;N();const M=new e.Parser({onopentag:function(e,t){if(m.enforceHtmlBoundary&&"html"===e&&N(),L)return void D++;const o=new v(e,t);A.push(o);let a=!1;const h=!!o.text;let p;if(c(x,e)&&(p=x[e](e,t),o.attribs=t=p.attribs,void 0!==p.text&&(o.innerText=p.text),e!==p.tagName&&(o.name=e=p.tagName,O[I]=p.tagName)),E&&(p=E(e,t),o.attribs=t=p.attribs,e!==p.tagName&&(o.name=e=p.tagName,O[I]=p.tagName)),(!1!==m.allowedTags&&-1===(m.allowedTags||[]).indexOf(e)||"recursiveEscape"===m.disallowedTagsMode&&!function(e){for(const t in e)if(c(e,t))return!1;return!0}(P)||null!=m.nestingLimit&&I>=m.nestingLimit)&&(a=!0,P[I]=!0,"discard"===m.disallowedTagsMode&&-1!==b.indexOf(e)&&(L=!0,D=1),P[I]=!0),I++,a){if("discard"===m.disallowedTagsMode)return;y=g,g=""}g+="<"+e,"script"===e&&(m.allowedScriptHostnames||m.allowedScriptDomains)&&(o.innerText=""),(!w||c(w,e)||w["*"])&&l(t,function(t,a){if(!d.test(a))return void delete o.attribs[a];let l=!1;if(!w||c(w,e)&&-1!==w[e].indexOf(a)||w["*"]&&-1!==w["*"].indexOf(a)||c(k,e)&&k[e].test(a)||k["*"]&&k["*"].test(a))l=!0;else if(w&&w[e])for(const r of w[e])if(n(r)&&r.name&&r.name===a){l=!0;let e="";if(!0===r.multiple){const n=t.split(" ");for(const t of n)-1!==r.values.indexOf(t)&&(""===e?e=t:e+=" "+t)}else r.values.indexOf(t)>=0&&(e=t);t=e}if(l){if(-1!==m.allowedSchemesAppliedToAttributes.indexOf(a)&&U(e,t))return void delete o.attribs[a];if("script"===e&&"src"===a){let e=!0;try{const n=$(t);if(m.allowedScriptHostnames||m.allowedScriptDomains){const t=(m.allowedScriptHostnames||[]).find(function(e){return e===n.url.hostname}),r=(m.allowedScriptDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=t||r}}catch(CL){e=!1}if(!e)return void delete o.attribs[a]}if("iframe"===e&&"src"===a){let e=!0;try{const n=$(t);if(n.isRelativeUrl)e=c(m,"allowIframeRelativeUrls")?m.allowIframeRelativeUrls:!m.allowedIframeHostnames&&!m.allowedIframeDomains;else if(m.allowedIframeHostnames||m.allowedIframeDomains){const t=(m.allowedIframeHostnames||[]).find(function(e){return e===n.url.hostname}),r=(m.allowedIframeDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=t||r}}catch(CL){e=!1}if(!e)return void delete o.attribs[a]}if("srcset"===a)try{let e=i(t);if(e.forEach(function(e){U("srcset",e.url)&&(e.evil=!0)}),e=u(e,function(e){return!e.evil}),!e.length)return void delete o.attribs[a];t=u(e,function(e){return!e.evil}).map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", "),o.attribs[a]=t}catch(CL){return void delete o.attribs[a]}if("class"===a){const n=C[e],i=C["*"],s=T[e],l=S[e],c=[s,T["*"]].concat(l).filter(function(e){return e});if(!(t=B(t,n&&i?r(n,i):n||i,c)).length)return void delete o.attribs[a]}if("style"===a)try{const n=function(e,t){if(!t)return e;const n=e.nodes[0];let i;i=t[n.selector]&&t["*"]?r(t[n.selector],t["*"]):t[n.selector]||t["*"];i&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(c(e,n.prop)){e[n.prop].some(function(e){return e.test(n.value)}
806)&&t.push(n)}return t}}(i),[]));return e}(s(e+" {"+t+"}"),m.allowedStyles);if(t=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e},[]).join(";")}(n),0===t.length)return void delete o.attribs[a]}catch(CL){return void delete o.attribs[a]}g+=" "+a,t&&t.length&&(g+='="'+j(t,!0)+'"')}else delete o.attribs[a]}),-1!==m.selfClosing.indexOf(e)?g+=" />":(g+=">",!o.innerText||h||m.textFilter||(g+=j(o.innerText),R=!0)),a&&(g=y+j(g),y="")},ontext:function(e){if(L)return;const t=A[A.length-1];let n;if(t&&(n=t.tag,e=void 0!==t.innerText?t.innerText:e),"discard"!==m.disallowedTagsMode||"script"!==n&&"style"!==n){const t=j(e,!1);m.textFilter&&!R?g+=m.textFilter(t,n):R||(g+=t)}else g+=e;if(A.length){A[A.length-1].text+=e}},onclosetag:function(e){if(L){if(D--,D)return;L=!1}const t=A.pop();if(!t)return;if(t.tag!==e)return void A.push(t);L=!!m.enforceHtmlBoundary&&"html"===e,I--;const n=P[I];if(n){if(delete P[I],"discard"===m.disallowedTagsMode)return void t.updateParentNodeText();y=g,g=""}O[I]&&(e=O[I],delete O[I]),m.exclusiveFilter&&m.exclusiveFilter(t)?g=g.substr(0,t.tagPosition):(t.updateParentNodeMediaChildren(),t.updateParentNodeText(),-1===m.selfClosing.indexOf(e)?(g+="</"+e+">",n&&(g=y+j(g),y=""),R=!1):n&&(g=y,y=""))}},m.parser);return M.write(f),M.end(),g;function N(){g="",I=0,A=[],P={},O={},L=!1,D=0}function j(e,t){return"string"!=typeof e&&(e+=""),m.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),t&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),t&&(e=e.replace(/"/g,""")),e}function U(e,t){for(t=t.replace(/[\x00-\x20]+/g,"");;){const e=t.indexOf("\x3c!--");if(-1===e)break;const n=t.indexOf("--\x3e",e+4);if(-1===n)break;t=t.substring(0,e)+t.substring(n+3)}const n=t.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!t.match(/^[/\\]{2}/)&&!m.allowProtocolRelative;const r=n[1].toLowerCase();return c(m.allowedSchemesByTag,e)?-1===m.allowedSchemesByTag[e].indexOf(r):!m.allowedSchemes||-1===m.allowedSchemes.indexOf(r)}function $(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let r=0;r<100;r++)t+=`/${r}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function B(e,t,n){return t?(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)||n.some(function(t){return t.test(e)})}).join(" "):e}}const p={decodeEntities:!0};return h.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},h.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let s;if(n)for(s in t)i[s]=t[s];else i=t;return{tagName:e,attribs:i}}},k4}var z4=function(){if(T4)return iG;T4=1,Object.defineProperty(iG,"__esModule",{value:!0}),iG.default=void 0;const e=H4(),t={install(t,n){const r=n;t.prototype.$sanitize=(t,n=null)=>e(t,n||r)},defaults:e.defaults};return iG.default=t,iG}();const G4=Xa(z4);Xn.use(G4);Xn.directive("windowscroll",{bind(e,t){"function"==typeof t.value?window.addEventListener("scroll",t.value):console.error("windowscroll directive: binding is not a function")},unbind(e,t){"function"==typeof t.value&&window.removeEventListener("scroll",t.value)}}),Xn.directive("scroll",{bind(e,t){"function"==typeof t.value?e.addEventListener("scroll",t.value):console.error("scroll directive: binding is not a function")},unbind(e,t){"function"==typeof t.value&&e.removeEventListener("scroll",t.value)}});class K4{delayedFunction;debounceFunction;constructor(e,t){this.delayedFunction=e,this.debounceFunction=kT(e,t)}run(){this.debounceFunction()}cancel(){this.debounceFunction.cancel()}static waitCondition(e,t){return e()?Promise.resolve(void 0):new Promise((n,r)=>{let i=0;i=null==t||t<=2e3?50:t<=1e4?100:500;let s=0;const o=setInterval(()=>{s+=1,e()&&(clearInterval(o),n()),null!=t&&s*i>=t&&(clearInterval(o),r(new Error("wait condition timeout")))},i)})}}const W4=[];Xn.directive("windowresize",{bind(e,t){if("function"==typeof t.value){if(xa.isIOSDevice()){const e=1e3,n=new K4(t.value,e);window.addEventListener("resize",n.debounceFunction)}else window.addEventListener("resize",t.value)}else console.error("windowresize directive: binding is not a function")},unbind(e,t){if("function"==typeof t.value){if(xa.isIOSDevice()){const e=W4.findIndex(e=>e.delayedFunction===t.value);if(-1===e)return;const n=W4[e];window.removeEventListener("resize",n.debounceFunction),W4.splice(e,1)}else window.removeEventListener("resize",t.value)}}});const X4=[];Xn.directive("windowescape",{bind(e,t){if("function"==typeof t.value){const e=e=>{"Escape"===e.key&&t.value()};X4.push([e,t.value]),window.addEventListener("keydown",e)}else console.error("windowescape directive: binding is not a function")},unbind(e,t){if("function"==typeof t.value){const e=X4.findIndex(e=>e[1]===t.value);if(-1===e)return;const n=X4[e][0];window.removeEventListener("keydown",n),X4.splice(e,1)}}});function Y4(e,t){Ba.instance.initialize(e),pf.instance.initialize(e),Fa.instance.initialize(e),qa.instance.initialize(e),Ca.instance.initialize(e),Du.instance.initialize(e),AD.instance.initialize(e),ba.instance.initialize(e)}async function Z4(e,t){const n=!Va.isEmpty(e.route.query.proxybustercontext),r="1"===Ia.queryParam(e.route,"proxybusterfailed");if(Aa.is_on_proxy_domain()){if(n||r){const t=e.env.ENV_NAME===_a.PROD?"":`.${e.env.ENV_NAME}`;window.location.href=`https://${Aa.DEFAULT_VP}${t}.${Aa.KANOPY_DOMAIN}${e.route.fullPath}`}else{const t=XL.fromString(e.route.fullPath);window.location.href=`${window.location.origin}/auth/proxybuster?redirectPath=${t}`}return await new Promise((e,t)=>
806{setTimeout(()=>{e(void 0)},3e4)}),Ru.showSPALoadingError({httpCode:0,userMessaging:{message:"Failed to redirect to kanopy.com"}})}if(n){const t=XL.decodeObjectFromString(e.route.query.proxybustercontext);if(null!=(i=t)&&"string"==typeof i.visitorId&&"string"==typeof i.jwt&&"number"==typeof i.identityId&&"number"==typeof i.domainId){let n=t.jwt;const r=()=>{const e=Ua.visitor_id;e.value=t.visitorId,Ba.instance.set(e),Ga(t.visitorId,t.domainId,t.identityId)},i=Ba.instance.get(Ua.uid);if(isNaN(Ha.parse(i)))r();else try{n=(await ju.staticInstance(e).membershipControllerConnectIdentityToUser({connectIdentityRequestDto:{loggedInUserId:Ha.parse(i),identityId:t.identityId,olderJwt:t.jwt},xVersion:ju.XVersion})).data.jwt}catch(s){Ba.instance.delete(Ua.uid),r()}const o=Ua.kapi_token;o.value=n,Ba.instance.set(o);const a=Ua.token_set;a.value=new Date,a.opts.expires=Oa.minutesFromNow(Da),Ba.instance.set(a)}}var i}function J4(e){const t=Ua.channel,n=Ba.instance.get(t);null!=e.route.query.channel&&e.route.query.channel!==n?(t.value=e.route.query.channel,Ba.instance.set(t)):(null===e.route.query.channel||null==n&&Aa.are_channels_enabled_for_env(e))&&(t.value=e.env.ENV_NAME,Ba.instance.set(t)),n!==Ba.instance.get(t)&&window.location.reload()}async function Q4(e,t){if(Aa.is_on_proxy_domain())return;const n=new ju(e);return n.isInitialized()||await new Promise((e,t)=>{const r=n.subscribeInit(t=>{n.unsubscribeInit(r),e(void 0)})}),t("kapi",n),e.$kapi=n,Promise.resolve(void 0)}function e6(e,t){Oc.interceptors.response.use(e=>e,e=>{if(Oc.isAxiosError(e)&&429===e.response?.status){const t=ju.unwrapKapiError(e?.response?.data);tm.notify(t.userMessaging?.message??"An error occurred".localized()).asFailure().during(15e3).push()}return Promise.reject(e)})}function t6(){xa.isIOSDevice()&&parseFloat(xa.getSafariVersion()??"")>=26&&document.documentElement.classList.add("ios-dynamic-island")}async function n6(e,t){if(Aa.is_on_proxy_domain())return;try{await e.store.dispatch("nuxtClientInit",e)}catch(n){const e=ju.unwrapKapiError(n);throw Ru.showSPALoadingError(e),n}(0,window.onNuxtReady)(()=>{document.getElementById("app-loader")?.remove();const t=["frontend","proxybustercontext","proxybusterfailed","channel"].filter(t=>null!=e.route.query[t]);if(0===t.length)return;const n=Object.fromEntries(Object.entries(e.route.query).map(e=>{const n=e[0];return t.includes(n)?[n,void 0]:e}));setTimeout(()=>{e.app.router?.replace({query:n})},5e3)})}Xn.component(pv.name,pv),Xn.component(_v.name,{..._v,render:(e,t)=>(_v._warned||(_v._warned=!0),_v.render(e,t))}),Xn.component(bC.name,bC),Xn.component("NChild",bC),Xn.component(iT.name,iT),Object.defineProperty(Xn.prototype,"$nuxt",{get(){const e=this.$root?this.$root.$options.$nuxt:null;return e||"undefined"==typeof window?e:window.$nuxt},configurable:!0}),Xn.use(hv,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});const r6={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};Rg.Store.prototype.registerModule;const i6=window.__NUXT__,s6={beforeCreate(){var e;(e=this).$options&&"function"==typeof e.$options.fetch&&!e.$options.fetch.length&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,Xn.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=l6.bind(this),Q_(this,"created",a6),Q_(this,"beforeMount",o6))}};function o6(){if(!this._hydrated)return this.$fetch()}function a6(){if(!((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey))return;var e;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;const t=i6.fetch[this._fetchKey];if(t&&t._error)this.$fetchState.error=t._error;else for(const n in t)Xn.set(this.$data,n,t[n])}function l6(){return this._fetchPromise||(this._fetchPromise=c6.call(this).then(()=>{delete this._fetchPromise})),this._fetchPromise}async function c6(){this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1;let e=null;const t=Date.now();try{await this.$options.fetch.call(this)}catch(r){e=G_(r)}const n=this._fetchDelay-(Date.now()-t);n>0&&await new Promise(e=>setTimeout(e,n)),this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick(()=>this.$nuxt.nbFetching--)}const u6=window.requestIdleCallback||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},d6=window.cancelIdleCallback||function(e){clearTimeout(e)},h6=window.IntersectionObserver&&new window.IntersectionObserver(e=>{e.forEach(({intersectionRatio:e,target:t})=>{e<=0||!t.__prefetch||t.__prefetch()})}),p6={name:"NuxtLink",extends:Xn.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted(){this.prefetch&&!this.noPrefetch&&(this.handleId=u6(this.observe,{timeout:2e3}))},beforeDestroy(){d6(this.handleId),this.__observed&&(h6.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe(){h6&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),h6.observe(this.$el),this.__observed=!0)},shouldPrefetch(){return this.getPrefetchComponents().length>0},canPrefetch(){const e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(e=>e.components.default).filter(e=>"function"==typeof e&&!e.options&&!e.__prefetched)},prefetchLink(){if(!this.canPrefetch())return;h6.unobserve(this.$el);const e=this.getPrefetchComponents();for(const t of e){const e=t();e instanceof Promise&&e.catch(()=>{}),t.__prefetched=!0}}}};Xn.__nuxt__fetch__mixin__||(Xn.mixin(s6),Xn.__nuxt__fetch__mixin__=!0),Xn.component(p6.name,p6),Xn.component("NLink",p6);let f6,m6,_6=[];const g6=window.__NUXT__||{},y6=g6.config||{};y6._app&&(globalThis.__webpack_public_path__=eg(y6._app.cdnURL,y6._app.assetsPath)),Object.assign(Xn.config,{silent:!0,performance:!1});const v6=Xn.config.errorHandler||console.error;
806function b6(e,t,n){const r=e=>{const r=function(e,t,...n){if(!e||!e.options||!e.options[t])return{};const r=e.options[t];return"function"==typeof r?r(...n):r}(e,"transition",t,n)||{};return"string"==typeof r?{name:r}:r},i=n?j_(n):[],s=Math.max(e.length,i.length),o=[];for(let a=0;a<s;a++){const t=Object.assign({},r(e[a])),n=Object.assign({},r(i[a]));Object.keys(t).filter(e=>void 0!==t[e]&&!e.toLowerCase().includes("leave")).forEach(e=>{n[e]=t[e]}),o.push(n)}return o}async function w6(e,t,n){this._routeChanged=Boolean(f6.nuxt.err)||t.name!==e.name,this._paramChanged=!this._routeChanged&&t.path!==e.path,this._queryChanged=!this._paramChanged&&t.fullPath!==e.fullPath,this._diffQuery=this._queryChanged?function(e,t){const n={},r={...e,...t};for(const i in r)String(e[i])!==String(t[i])&&(n[i]=!0);return n}(e.query,t.query):[],(this._routeChanged||this._paramChanged)&&this.$loading.start&&!this.$loading.manual&&this.$loading.start();try{if(this._queryChanged){const n=await B_(e,(e,t)=>({Component:e,instance:t}));n.some(({Component:n,instance:r})=>{const i=n.options.watchQuery;return!0===i||(Array.isArray(i)?i.some(e=>this._diffQuery[e]):"function"==typeof i&&i.apply(r,[e.query,t.query]))})&&this.$loading.start&&!this.$loading.manual&&this.$loading.start()}n()}catch(r){const i=r||{},s=i.statusCode||i.status||i.response&&i.response.status||500,o=i.message||"";if(/^Loading( CSS)? chunk (\d)+ failed\./.test(o))return void window.location.reload(!0);this.error({statusCode:s,message:o}),this.$nuxt.$emit("routeChanged",e,t,i),n()}}function k6(e,t,n,r){let i=["resolve_subpath","authenticate_visitors","analytics","nuxti18n"],s=!1;if(void 0!==n&&(i=[],(n=N_(n)).options.middleware&&(i=i.concat(n.options.middleware)),e.forEach(e=>{e.options.middleware&&(i=i.concat(e.options.middleware))})),i=i.map(e=>"function"==typeof e?e:("function"!=typeof Nm[e]&&(s=!0,this.error({statusCode:500,message:"Unknown middleware "+e})),Nm[e])),!s)return V_(i,t,r)}async function C6(e,t,n,r){if(!1===this._routeChanged&&!1===this._paramChanged&&!1===this._queryChanged)return n();if(e===t)_6=[];else{const e=[];_6=j_(t,e).map((n,r)=>z_(t.matched[e[r]].path)(t.params))}let i=!1;await q_(f6,{route:e,from:t,error:e=>{r.aborted||f6.nuxt.error.call(this,e)},next:(e=>{t.path===e.path&&this.$loading.finish&&this.$loading.finish(),t.path!==e.path&&this.$loading.pause&&this.$loading.pause(),i||(i=!0,n(e))}).bind(this)}),this._dateLastError=f6.nuxt.dateErr,this._hadError=Boolean(f6.nuxt.err);const s=[],o=j_(e,s);if(!o.length){if(await k6.call(this,o,f6.context,void 0,r),i)return;if(r.aborted)return void n(!1);const e=(rT.options||rT).layout,t=await this.loadLayout("function"==typeof e?e.call(rT,f6.context):e);if(await k6.call(this,o,f6.context,t,r),i)return;return r.aborted?void n(!1):(f6.context.error({statusCode:404,message:"This page could not be found"}),n())}o.forEach(e=>{e._Ctor&&e._Ctor.options&&(e.options.asyncData=e._Ctor.options.asyncData,e.options.fetch=e._Ctor.options.fetch)}),this.setTransitions(b6(o,e,t));try{if(await k6.call(this,o,f6.context,void 0,r),i)return;if(r.aborted)return void n(!1);if(f6.context._errored)return n();let l=o[0].options.layout;if("function"==typeof l&&(l=l(f6.context)),l=await this.loadLayout(l),await k6.call(this,o,f6.context,l,r),i)return;if(r.aborted)return void n(!1);if(f6.context._errored)return n();let c,u=!0;try{for(const e of o)if("function"==typeof e.options.validate&&(u=await e.options.validate(f6.context),!u))break}catch(a){return this.error({statusCode:a.statusCode||"500",message:a.message}),n()}if(!u)return this.error({statusCode:404,message:"This page could not be found"}),n();if(await Promise.all(o.map(async(n,r)=>{n._path=z_(e.matched[s[r]].path)(e.params),n._dataRefresh=!1;const i=n._path!==_6[r];if(this._routeChanged&&i)n._dataRefresh=!0;else if(this._paramChanged&&i){const e=n.options.watchParam;n._dataRefresh=!1!==e}else if(this._queryChanged){const i=n.options.watchQuery;!0===i?n._dataRefresh=!0:Array.isArray(i)?n._dataRefresh=i.some(e=>this._diffQuery[e]):"function"==typeof i&&(c||(c=U_(e)),n._dataRefresh=i.apply(c[r],[e.query,t.query]))}if(!this._hadError&&this._isMounted&&!n._dataRefresh)return;const o=[],a=n.options.asyncData&&"function"==typeof n.options.asyncData,l=Boolean(n.options.fetch)&&n.options.fetch.length,u=a&&l?30:45;if(a){const e=H_(n.options.asyncData,f6.context);e.then(e=>{M_(n,e),this.$loading.increase&&this.$loading.increase(u)}),o.push(e)}if(this.$loading.manual=!1===n.options.loading,l){let e=n.options.fetch(f6.context);e&&(e instanceof Promise||"function"==typeof e.then)||(e=Promise.resolve(e)),e.then(e=>{this.$loading.increase&&this.$loading.increase(u)}),o.push(e)}return Promise.all(o)})),!i){if(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),r.aborted)return void n(!1);n()}}catch(l){if(r.aborted)return void n(!1);const i=l||{};if("ERR_REDIRECT"===i.message)return this.$nuxt.$emit("routeChanged",e,t,i);_6=[],L_(i);let s=(rT.options||rT).layout;"function"==typeof s&&(s=s(f6.context)),await this.loadLayout(s),this.error(i),this.$nuxt.$emit("routeChanged",e,t,i),n()}}function T6(e,t){$_(e,(e,t,n,r)=>("object"!=typeof e||e.options||((e=Xn.extend(e))._Ctor=e,n.components[r]=e),e))}(async function(e,t={}){const n=dN(),r=await function(e,t){const n=t._app&&t._app.basePath||vC.base,r=new cw({...vC,base:n}),i=r.push;
806r.push=function(e,t=yC,n){return i.call(this,e,t,n)};const s=r.resolve.bind(r);return r.resolve=(e,t,n)=>("string"==typeof e&&(e=E_(e)),s(e,t,n)),r}(0,t);n.$router=r;const i={head:{title:"Kanopy - Stream Classic Cinema, Indie Film and Top Documentaries",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, viewport-fit=cover"},{hid:"description",name:"description",content:"kui"},{name:"apple-itunes-app",content:"app-id=1205614510"},{name:"google-site-verification",content:"iOYoYaSDdfzz3_LhN5Xxz5NR6s6VftTAY9AwGsc7B9M"}],link:[{rel:"icon",type:"image/x-icon",href:"/kui-assets/favicon.ico"}],style:[],script:[]},store:n,router:r,nuxt:{defaultTransition:r6,transitions:[r6],setTransitions(e){return Array.isArray(e)||(e=[e]),e=e.map(e=>e=e?"string"==typeof e?Object.assign({},r6,{name:e}):Object.assign({},r6,e):r6),this.$options.nuxt.transitions=e,e},err:null,errPageReady:!1,dateErr:null,error(e){e=e||null,i.context._errored=Boolean(e),e=e?G_(e):null;let t=i.nuxt;return this&&(t=this.nuxt||this.$options.nuxt),t.dateErr=Date.now(),t.err=e,t.errPageReady=!1,e}},...PR};let s;n.app=i;{const e=function(e,t){if("hash"===t)return window.location.hash.replace(/^#\//,"");e=decodeURI(e).slice(0,-1);let n=decodeURI(window.location.pathname);return e&&n.startsWith(e)&&(n=n.slice(e.length)),E_((n||"/")+window.location.search+window.location.hash)}(r.options.base,r.options.mode);s=r.resolve(e).route}function o(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error(`inject('${e}', value) has no value provided`);i[e="$"+e]=t,i.context[e]||(i.context[e]=t),n[e]=i[e];const r="__nuxt_"+e+"_installed__";Xn[r]||(Xn[r]=!0,Xn.use(()=>{Object.prototype.hasOwnProperty.call(Xn.prototype,e)||Object.defineProperty(Xn.prototype,e,{get(){return this.$root.$options[e]}})}))}return await q_(i,{route:s,next:e=>i.router.push(e),error:i.nuxt.error.bind(i),payload:void 0,req:void 0,res:void 0,ssrContext:e}),o("config",t),window.__NUXT__&&window.__NUXT__.state&&n.replaceState(window.__NUXT__.state),await fV(i.context,o),"function"==typeof mV&&await mV(i.context,o),await void i.context,await OV(i.context,o),await LV(i.context),await void i.context,await eH(i.context,o),await void i.context,await xH(i.context),await Cz(i.context),await Ez(i.context,o),"function"==typeof Iz&&await Iz(i.context,o),"function"==typeof Az&&await Az(i.context,o),await Pz(i.context),await Oz(i.context),await void i.context,await void i.context,await void i.context,await void i.context,await void i.context,await void i.context,await Y4(i.context),await Z4(i.context),await J4(i.context),await Q4(i.context,o),await e6(i.context),await t6(i.context),await n6(i.context),await new Promise((e,t)=>{{const{route:t}=r.resolve(i.context.route.fullPath);if(!t.matched.length)return e()}r.replace(i.context.route.fullPath,e,n=>{if(!n._isRouter)return t(n);if(2!==n.type)return e();const s=r.afterEach(async(t,n)=>{i.context.route=await F_(t),i.context.params=t.params||{},i.context.query=t.query||{},s(),e()})})}),{store:n,app:i,router:r}})(null,g6.config).then(async function(e){f6=e.app,m6=e.router,e.store;const t=new Xn(f6),n=()=>{t.$mount("#__nuxt"),m6.afterEach(T6),m6.beforeResolve(x6.bind(t)),m6.afterEach(E6.bind(t)),m6.afterEach(A6.bind(t)),Xn.nextTick(()=>{!function(e){window.onNuxtReadyCbs.forEach(t=>{"function"==typeof t&&t(e)}),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(e);m6.afterEach((t,n)=>{Xn.nextTick(()=>e.$nuxt.$emit("routeChanged",t,n))})}(t)})},r=await Promise.all((i=f6.context.route,$_(i,async(e,t,n,r,i)=>{"function"!=typeof e||e.options||(e=await e());const s=function(e,t){return g6.serverRendered&&t&&M_(e,t),e._Ctor=e,e}(N_(e),g6.data?g6.data[i]:null);return n.components[r]=s,s})));var i;t.setTransitions=t.$options.nuxt.setTransitions.bind(t),r.length&&(t.setTransitions(b6(r,m6.currentRoute)),_6=m6.currentRoute.matched.map(e=>z_(e.path)(m6.currentRoute.params)));t.$loading={},g6.error&&(t.error(g6.error),t.nuxt.errPageReady=!0);m6.beforeEach(w6.bind(t));let s=null;const o=C6.bind(t);if(m6.beforeEach((e,t,n)=>{s&&(s.aborted=!0),s={aborted:!1},o(e,t,n,s)}),g6.serverRendered&&tg(g6.routePath,t.context.route.path))return n();const a=()=>{T6(m6.currentRoute,m6.currentRoute),x6.call(t,m6.currentRoute),E6.call(t,m6.currentRoute),I6(t),n()};await new Promise(e=>setTimeout(e,0)),C6.call(t,m6.currentRoute,m6.currentRoute,e=>{if(!e)return void a();const t=m6.afterEach((e,n)=>{t(),a()});m6.push(e,void 0,e=>{e&&v6(e)})},{aborted:!1})}).catch(v6);const S6=new WeakMap;function x6(e,t,n){let r=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(r=!1);let i=r?(rT.options||rT).layout:e.matched[0].components.default.options.layout;"function"==typeof i&&(i=i(f6.context)),S6.set(e,i),n&&n()}function E6(e){const t=S6.get(e);S6.delete(e);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(this.$options.nuxt.err=null),this.setLayout(t)}function I6(e){e._hadError&&e._dateLastError===e.$options.nuxt.dateErr&&e.error()}function A6(e,t){if(!1===this._routeChanged&&!1===this._paramChanged&&!1===this._queryChanged)return;const n=U_(e),r=j_(e);let i=!1;Xn.nextTick(()=>
806{n.forEach((e,t)=>{if(e&&!e._isDestroyed&&e.constructor._dataRefresh&&r[t]===e.constructor&&!0!==e.$vnode.data.keepAlive&&"function"==typeof e.constructor.options.data){const t=e.constructor.options.data.call(e);for(const n in t)Xn.set(e.$data,n,t[n]);i=!0}}),i&&window.$nuxt.$nextTick(()=>{window.$nuxt.$emit("triggerScroll")}),I6(this)})}export{LL as $,tx as A,WT as B,IC as C,Oa as D,Yf as E,JC as F,xa as G,gu as H,cm as I,EC as J,ju as K,Xf as L,zT as M,Ia as N,YS as O,am as P,YT as Q,Em as R,kf as S,zC as T,yu as U,Xn as V,wm as W,HT as X,eD as Y,_f as Z,Ts as _,nm as a,ox as a$,FD as a0,Hx as a1,Jc as a2,RC as a3,fS as a4,Pu as a5,xu as a6,Iu as a7,Su as a8,Eu as a9,ud as aA,Nh as aB,Od as aC,Sd as aD,nd as aE,ad as aF,Gu as aG,td as aH,Oh as aI,wd as aJ,$h as aK,fd as aL,Ex as aM,GC as aN,AM as aO,vM as aP,gf as aQ,AT as aR,Ix as aS,LT as aT,jf as aU,yM as aV,wu as aW,mu as aX,Xc as aY,Af as aZ,Nf as a_,Au as aa,Sx as ab,wR as ac,lx as ad,_a as ae,Aa as af,su as ag,iN as ah,ou as ai,$a as aj,xC as ak,Dh as al,Lh as am,Zu as an,Xu as ao,Uh as ap,pd as aq,yd as ar,dd as as,vd as at,bd as au,ld as av,ed as aw,rd as ax,Qu as ay,id as az,Ha as b,Lf as b$,SD as b0,Lm as b1,CD as b2,Ta as b3,TD as b4,Tf as b5,Of as b6,Ea as b7,Yx as b8,um as b9,ka as bA,xm as bB,QS as bC,Im as bD,Sf as bE,Am as bF,sm as bG,KT as bH,GT as bI,Pm as bJ,Sm as bK,rm as bL,Cm as bM,za as bN,Tm as bO,Zc as bP,cR as bQ,Cf as bR,Rm as bS,Dm as bT,qf as bU,Ef as bV,xf as bW,qT as bX,lR as bY,gS as bZ,_S as b_,hm as ba,Hf as bb,Uf as bc,Wc as bd,Wx as be,Xx as bf,fm as bg,mm as bh,iu as bi,Sa as bj,Yc as bk,au as bl,vx as bm,DT as bn,QC as bo,XL as bp,ba as bq,_m as br,dx as bs,ux as bt,vm as bu,YC as bv,gm as bw,ym as bx,bm as by,Ca as bz,im as c,Rf as c0,pm as c1,Sl as c2,uJ as c3,Wa as c4,xo as c5,lo as c6,cs as c7,vT as c8,Mf as c9,Df as ca,sx as cb,_u as cc,dm as cd,NR as ce,tm as d,SC as e,Mm as f,cx as g,Ua as h,Zf as i,Ba as j,lm as k,kT as l,Xa as m,CC as n,ZC as o,BT as p,Va as q,Mu as r,Om as s,KS as t,GS as u,XC as v,nx as w,JT as x,ZT as y,XT as z}; 807//# sourceMappingURL=client-ANZ33kkl.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.